id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/classes/dom/DOMUtils.js | (function(tinymce) {
// Shorten names
var each = tinymce.each,
is = tinymce.is,
isWebKit = tinymce.isWebKit,
isIE = tinymce.isIE,
Entities = tinymce.html.Entities,
simpleSelectorRe = /^([a-z0-9],?)+$/i,
blockElementsMap = tinymce.html.Schema.blockElementsMap,
whiteSpaceRegExp = /^[ \t\r\n]*$/;
/**
*... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ebmlib/calllock.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: calllock.py 65794 2010-10-13 14:10:09Z CJP $"
__revision__ = "$Revision: 65794 $"
__all__ = [ 'CallLock', 'StaticCallLock', 'LockCall']
#-----------------------------------------------------------------------------#
class CallLock(object):
"""Cl... | PypiClean |
/Fo4doG_mess_client-0.0.2.tar.gz/Fo4doG_mess_client-0.0.2/client/common/decos.py | import socket
import logging
import sys
sys.path.append('../')
# метод определения модуля, источника запуска.
if sys.argv[0].find('client') == -1:
# если не клиент то сервер!
logger = logging.getLogger('server')
else:
# иначе сервер
logger = logging.getLogger('client')
def log(func_to_log):
'''
... | PypiClean |
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/epochs.py | import numpy as np
import ipfx.time_series_utils as tsu
# global constants
#TODO: read them from the config file
NOISE_EPOCH = 0.0015
PRESTIM_STABILITY_EPOCH = 0.5
POSTSTIM_STABILITY_EPOCH = 0.5
TEST_PULSE_MAX_TIME = 0.4
def get_first_stability_epoch(stim_start_idx, hz):
num_steps = int(PRESTIM_STABILITY_EPOC... | PypiClean |
/Cahoots-0.5.2.zip/Cahoots-0.5.2/cahoots/parsers/programming/bayesian.py | from SereneRegistry import registry
import simplebayes
import zipfile
import os
class ProgrammingBayesianClassifier(object):
"""
Responsible for classifying an example of source
code into a specific programming language
"""
@staticmethod
# pylint: disable=unused-argument
def bootstrap(con... | PypiClean |
/Evgeny_client-0.0.1.tar.gz/Evgeny_client-0.0.1/client/main_window.py | from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox, QApplication, QListView
from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor
from PyQt5.QtCore import pyqtSlot, QEvent, Qt
from Crypto.Cipher import PKCS1_OAEP
from Crypto.PublicKey import RSA
import json
import logging
import base64
from... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/Heterogeneous_Highway_Env/envs/summon_env.py | from gym.envs.registration import register
import numpy as np
from highway_env import utils
from highway_env.envs import ParkingEnv
from highway_env.road.lane import StraightLane, LineType
from highway_env.road.road import Road, RoadNetwork
from highway_env.vehicle.kinematics import Vehicle
from highway_env.vehicle.ob... | PypiClean |
/MatchZoo-2.2.0.tar.gz/MatchZoo-2.2.0/matchzoo/contrib/models/match_srnn.py |
import keras
from matchzoo.contrib.layers import MatchingTensorLayer
from matchzoo.contrib.layers import SpatialGRU
from matchzoo.engine import hyper_spaces
from matchzoo.engine.base_model import BaseModel
from matchzoo.engine.param import Param
from matchzoo.engine.param_table import ParamTable
class MatchSRNN(Bas... | PypiClean |
/Adjector-1.0b1.tar.gz/Adjector-1.0b1/adjector/forms/validators.py |
import logging, re, time
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
from paste.deploy.converters import asbool
from tw.forms.validators import FancyValidator, FormValidator, Invalid, UnicodeString, Wrapper
from adjector.core.conf import conf
AsBool = Wrapper(to_python=... | PypiClean |
/Mock.GPIO-0.1.8-py3-none-any.whl/Mock/GPIO.py | import time
import logging
import os
logger = logging.getLogger(__name__)
log_level = os.getenv('LOG_LEVEL')
if log_level is not None:
if log_level == "Info":
logger.setLevel(logging.INFO)
if log_level == "Debug":
logger.setLevel(logging.DEBUG)
if log_level == "Warning":
logger.se... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/specific_report_response_py3.py |
from msrest.serialization import Model
class SpecificReportResponse(Model):
"""SpecificReportResponse.
:param specific_report_id: Unique identifier for the report
:type specific_report_id: int
:param base_report:
:type base_report: ~energycap.sdk.models.ReportChild
:param specific_report_cod... | PypiClean |
/Marcellus-1.1.3.tar.gz/Marcellus-1.1.3/marcellus/postgres/search.py |
from marcellus.dataset import DataSet
from sqlalchemy import Table, MetaData, select
from sqlalchemy.sql.expression import and_, Select, or_, alias
from sqlalchemy.types import DATE, TIME, DATETIME, TIMESTAMP, INTEGER, NUMERIC, BOOLEAN, BIGINT
import re
import datetime as dt
_CONSTANT_DATE_TODAY = 'today'
_CONS... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/es_UY.py |
languages={'gv': u'ga\xe9lico man\xe9s', 'gu': u'goujarat\xed', 'gd': u'ga\xe9lico escoc\xe9s', 'ga': u'irland\xe9s', 'gl': 'gallego', 'la': u'lat\xedn', 'ln': 'lingala', 'lo': 'laosiano', 'tt': u't\xe1taro', 'tr': 'turco', 'ts': 'tsonga', 'lv': 'letonio', 'lt': 'lituano', 'th': u'tailand\xe9s', 'ti': 'tigrinya', 'te'... | PypiClean |
/Flask-Reuploaded-1.3.0.tar.gz/Flask-Reuploaded-1.3.0/PACKAGING.rst | PACKAGING
=========
This guide is loosely following one of Hynek's fantastic blog posts:
https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
Note
----
This document is meant as a help for the maintainer only.
Preparation
-----------
- make sure changelog is up to date
- make sure the `lo... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/search_place_child_search_place_child_py3.py |
from msrest.serialization import Model
class SearchPlaceChildSearchPlaceChild(Model):
"""SearchPlaceChildSearchPlaceChild.
All required parameters must be populated in order to send to Azure.
:param place_id: The place identifier
:type place_id: int
:param place_code: Required. The place code <... | PypiClean |
/Labeventtable-0.0.1.tar.gz/Labeventtable-0.0.1/src/Labeventtable.py | import pandas as pd
import numpy as np
import datetime
import math
from datetime import datetime, timedelta
def labeventtable(labevents_data,propensity_data,labitems_data):
labevents_data_demo=labevents_data[['subject_id','charttime','storetime','itemid']].drop_duplicates()
propensity_data_demo=propensity_data[['... | PypiClean |
/AISTLAB_nitrotyper-0.6.10.tar.gz/AISTLAB_nitrotyper-0.6.10/README.rst | AISTLAB\_nitrotyper
===================
https://www.nitrotype.com/race auto typer using python3 and cv2
only supported 1920x1080 Resolution currently.
winxos, AISTLAB 2017-03-17
INSTALL:
--------
pip3 install nitrotyper
USAGE:
------
1. open https://www.nitrotype.com/race using your web browser
2. op... | PypiClean |
/NEURAL_py_EEG-0.1.4.tar.gz/NEURAL_py_EEG-0.1.4/src/NEURAL_py_EEG/NEURAL_parameters.py |
def NEURAL_parameters():
"""
This function is to generate all the default NEURAL parameters
:return: a dictionary containing all the system parameters
"""
params = dict()
'''
---------------------------------------------------------------------
Proprocessing (lowpass filter and resamp... | PypiClean |
/BatchQ-0.1-1-pre-alpha.tar.gz/BatchQ-0.1-1-pre-alpha/batchq/core/communication.py |
import os
import sys
import time
import re
from batchq.core.process import Process
from batchq.core.terminal import XTermInterpreter
from batchq.core.errors import CommunicationIOException, BasePipeException, CommunicationTimeout
from batchq.core.memory import Memory
class BasePipe(object):
def __init__(self, pi... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/de-at.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-hr-HR.min.js | !function(e,a){if("object"==typeof exports&&"object"==typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var o=a();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(function(){return(e=jQuery).extend(e.summernote.lang,{"hr-HR":{font:{bold:"Podebljano",ital... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/mobile/static/js/jquery.mobile-1.0a2.js | * jQuery UI Widget @VERSION
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Widget
*/
(function( $, undefined ) {
// jQuery 1.4+
if ( $.cleanData ) {
var _cleanData = $.cleanData;
$.... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/api/piggy_banks_api.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_client.api_client import ApiClient, Endpoint as _Endpoint
from firefly_iii_client.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
... | PypiClean |
/KPay_sdk-1.0.1-py3-none-any.whl/api/payment.py | import json
import math
from datetime import datetime
from typing import TypeVar
import requests
from exception.CustomException import CustomException
from model.CancelPayment import *
from model.CheckPayment import *
from model.CreatePayment import *
from service.security import Security
T = TypeVar('T')
class Pay... | PypiClean |
/NativDebugging-35.tar.gz/NativDebugging-35/src/RecursiveFind.py | from __future__ import print_function
from builtins import range
from abc import ABCMeta
from .Interfaces import MemReaderInterface, ReadError
from .Utilities import makeQwordsList, makeDwordsList, integer_types
class RecursiveFind( MemReaderInterface ):
""" Search for offsets using a recurisve method """
__me... | PypiClean |
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/step/condition/state.py |
# @black_format
"""The implementation for the ChangeStateCondition."""
from __future__ import annotations
from typing import ClassVar, List
from autotransform.change.base import Change, ChangeState, ReviewState, TestState
from autotransform.step.condition.base import ComparisonCondition, ConditionName
from autotra... | PypiClean |
/CubicReport-0.4.18.tar.gz/CubicReport-0.4.18/geraldo/widgets.py | import datetime, types, decimal, re
try:
set
except NameError:
from sets import Set as set # Python 2.3 fallback
from base import BAND_WIDTH, BAND_HEIGHT, Element, SubReport
from utils import get_attr_value, SYSTEM_FIELD_CHOICES, FIELD_ACTION_VALUE, FIELD_ACTION_COUNT,\
FIELD_ACTION_AVG, FIELD... | PypiClean |
/guibits-1.0-py3-none-any.whl/src/guibits1_0/writing.py |
# version 12 Jan 23 18:48
# author RNB
import PyQt6.QtCore
import PyQt6.QtGui
from . import coloring, command_listing, fonting
from . import font_size_checking, font_styling, resolving
from . import type_checking2_0, windowing
"""
Copyright (C) 2013,2014,2015,2016,2017,2018,2020,2021,2022,2023 R.N.Bosworth
This... | PypiClean |
/Mopidy_YouTube-3.7-py3-none-any.whl/mopidy_youtube/frontend.py | import random
import pykka
from mopidy.core import listener
from mopidy_youtube import logger, youtube
from mopidy_youtube.data import extract_video_id, format_video_uri
autoplay_enabled = False
strict_autoplay = False
max_autoplay_length = None
autoplayed = []
max_degrees_of_separation = 3
class YouTubeAutoplayer... | PypiClean |
/Gbtestapi0.1-0.1a10-py3-none-any.whl/gailbot/core/engines/whisperEngine/parsers.py |
import sys
import os
import json
from typing import Dict, List, Any, Tuple
# from pyannote.core import Segment
from gailbot.core.utils.logger import makelogger
_DEFAULT_SPEAKER = 0
logger = makelogger("parsers")
def parse_into_word_dicts(transcription: Dict) -> List[Dict]:
"""
Parse the results of the tran... | PypiClean |
/Keg-Auth-0.7.2.tar.gz/Keg-Auth-0.7.2/changelog.rst | Changelog
=========
0.7.2 released 2023-05-22
-------------------------
- handle multiple potential session cookies resulting from werkzeug 2.3 and flask 2.3 changes (8b4680e_)
.. _8b4680e: https://github.com/level12/keg-auth/commit/8b4680e
0.7.1 released 2023-05-12
-------------------------
- allow request loade... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/monitoring/frontend/monitoring/src/components/organisms/alert-list/index.js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import CircularProgress from 'material-ui/CircularProgress';
import SettingsIcon from 'material-ui/svg-icons/action/settings';
import HoverPaper from '../../atoms/ho... | PypiClean |
/KataBankOCR-0.8.0.tar.gz/KataBankOCR-0.8.0/parse/test/fixture_methods.py | "methods that provide values for testing and an interface to constants"
import os
import copy
import random
from toolz import pipe, curry
from toolz.curried import nth
from toolz.curried import map as cmap
from parse import settings
import parse
from common_tools import get_one_or_more, adulterate_iterable, bad_len... | PypiClean |
/Hatak_Toster-0.2.1.tar.gz/Hatak_Toster-0.2.1/src/haplugin/toster/cases.py | from mock import MagicMock
from hatak.unpackrequest import unpack
from toster import TestCase as BaseTestCase
class TestCase(BaseTestCase):
cache = {}
def setUp(self):
super().setUp()
self.request = MagicMock()
self.request.registry = {
'db': MagicMock(),
'un... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/reppoints_head.py | import numpy as np
import torch
import torch.nn as nn
from mmcv.cnn import ConvModule
from mmcv.ops import DeformConv2d
from mmdet.core import (build_assigner, build_sampler, images_to_levels,
multi_apply, unmap)
from mmdet.core.anchor.point_generator import MlvlPointGenerator
from mmdet.core.u... | PypiClean |
/FITS_tools-0.2.tar.gz/FITS_tools-0.2/astropy_helpers/ez_setup.py | import os
import shutil
import sys
import tempfile
import zipfile
import optparse
import subprocess
import platform
import textwrap
import contextlib
from distutils import log
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
try:
from site import USER_SITE
except Im... | PypiClean |
/ApiDoc-1.4.0.tar.gz/ApiDoc-1.4.0/apidoc/command/run.py | import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
import time
import logging
import logging.config
import argparse
from datetime import datetime
from apidoc import __version__
from apidoc.lib.fswatcher.observer import Observer
from apidoc.lib.fswatch... | PypiClean |
/Deliverance-0.6.1.tar.gz/Deliverance-0.6.1/deliverance/editor/media/editarea/edit_area/reg_syntax/coldfusion.js | editAreaLoader.load_syntax["coldfusion"] = {
'COMMENT_SINGLE' : {1 : '//', 2 : '#'}
,'COMMENT_MULTI' : {'<!--' : '-->'}
,'COMMENT_MULTI2' : {'<!---' : '--->'}
,'QUOTEMARKS' : {1: "'", 2: '"'}
,'KEYWORD_CASE_SENSITIVE' : false
,'KEYWORDS' : {
'statements' : [
'include', 'require', 'include_once', 'require_on... | PypiClean |
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/module/qat/module.py | from abc import abstractmethod
# avoid circular reference
from ...quantization.fake_quant import FakeQuantize
from ...quantization.observer import Observer
from ...quantization.qconfig import QConfig
from ...quantization.utils import fake_quant_bias
from ...tensor import Tensor
from ..module import Module
class QATM... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/help_full.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 help_full(path):
"""Health Evaluation and Linkage to Primary Care
The HELP study was a cli... | PypiClean |
/CombatWiz-0.12.tar.gz/CombatWiz-0.12/scripts/combatwiz_runner.py |
from __future__ import division
import sys
import csv
import fileinput
import math
import random
import argparse
from pprint import pprint as pp
#--- gristle modules -------------------
sys.path.append('../') # allows running from project structure
sys.path.append('../../') # allows running from project structu... | PypiClean |
/MikeT_messenger_server-0.4.1.tar.gz/MikeT_messenger_server-0.4.1/server/server.py | import sys
import os
import argparse
import logging
import configparser
import logs.config_server_log
from common.utils import *
from common.decos import log
from server.core import MessageProcessor
from server.database import ServerStorage
from server.main_window import MainWindow
from PyQt5.QtWidgets import QApplicat... | PypiClean |
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/LangTools/TextPrediction.py | __all__ = [
'FixupDistribution',
'Decoder',
'LoadLanguageModel', 'LanguageModel',
'PPM', 'NGram', 'MKN',
'pdict'
]
import numpy
import os,sys
import codecs
from . import TreeStructure
from .ProgressMonitoring import progress
import pickle, gzip, time
import md5
###################################################... | PypiClean |
/ECmean4-0.1.4.tar.gz/ECmean4-0.1.4/ecmean/libs/files.py | import os
import re
import logging
from pathlib import Path
from glob import glob
import yaml
import xarray as xr
loggy = logging.getLogger(__name__)
##################
# FILE FUNCTIONS #
##################
def inifiles_priority(inidict):
"""
For areas dictionary and remap dictionary, provides a priority of... | PypiClean |
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/layout.py | from __future__ import unicode_literals
from __future__ import absolute_import, division, print_function
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 2014-2016, G. Klyne"
__license__ = "MIT (http://opensource.org/licenses/MIT)"
import os.path
import logging
log = logging.getLogger(_... | PypiClean |
/Flask-DataTables-peewee-0.1.2.tar.gz/Flask-DataTables-peewee-0.1.2/flask_datatables/model.py | import functools
import traceback
from typing import TYPE_CHECKING
import flask
from peewee import Field
from peewee import Metadata as _Metadata
from peewee import Model as _Model
from .utils import parse_request
if TYPE_CHECKING:
from typing import Callable, Dict, List, Optional, Union
from peewee import ... | PypiClean |
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/strategy/experimental/single_factor.py | import code
from tokenize import group
from ultron.factor.experimental.normalize import rolling_groups
from ultron.factor.analysis.quantile_analysis import er_quantile_analysis
from ultron.factor.data.quantile import quantile
from ultron.tradingday import *
import numpy as np
import pandas as pd
import copy
class Sin... | PypiClean |
/DSNS-SDK-0.1.1.tar.gz/DSNS-SDK-0.1.1/dsns/services.py | from __future__ import absolute_import
import json
from dsns.connection import BaseConnection
class ChannelAPIService(BaseConnection):
"""
Channel service to serve various api endpoints
"""
def __init__(self, **kwargs):
self.config.resp_format = 'json'
super(ChannelAPIService, self).... | PypiClean |
/Flask-Execute-0.1.6.tar.gz/Flask-Execute-0.1.6/flask_execute/managers.py |
# imports
# -------
import re
import sys
import json
import subprocess
from celery.schedules import crontab
from .cli import cli
# classes
# -------
class TaskManager(object):
"""
Object for managing registered celery tasks, providing
users a way of submitting tasks via the celery API when
using th... | PypiClean |
/BiologicalProcessNetworks-1.0a3.tar.gz/BiologicalProcessNetworks-1.0a3/bpn/mcmc/sabpn.py |
# Copyright (c) 2011 Chris D. Lasher & Phillip Whisenhunt
#
# This software is released under the MIT License. Please see
# LICENSE.txt for details.
"""A program to detect Process Linkage Networks using
Simulated Annealing.
"""
import collections
import itertools
import sys
from convutils import convutils
impor... | PypiClean |
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/cythons/modelutils.py | # import...
# ...from standard library
from __future__ import annotations
import copy
import distutils.core
import distutils.extension
# pylint: enable=no-name-in-module
# pylint: enable=import-error
import functools
import importlib
import inspect
import math
import os
import platform
import shutil
import sys
import ... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/web-animations-js/src/animation.js |
(function(shared, scope, testing) {
shared.sequenceNumber = 0;
var AnimationEvent = function(target, currentTime, timelineTime) {
this.target = target;
this.currentTime = currentTime;
this.timelineTime = timelineTime;
this.type = 'finish';
this.bubbles = false;
this.cancelable = false;
... | PypiClean |
/Lantz-0.3.zip/Lantz-0.3/lantz/drivers/kentech/hri.py | from lantz import Feat, Action
from lantz.errors import InstrumentError
from lantz.messagebased import MessageBasedDriver
def between(s, before, after):
ndx1 = s.index(before)
ndx2 = s.index(after)
return s[ndx1+len(before):ndx2]
class HRI(MessageBasedDriver):
"""Kentech High Repetition Rate Image In... | PypiClean |
/Flask_Static_Digest-0.4.0-py3-none-any.whl/flask_static_digest/digester.py | import functools
import glob
import gzip
import hashlib
import json
import os.path
import re
import shutil
DIGESTED_FILE_REGEX = r"-[a-f\d]{32}"
CHUNK_SIZE = 1024 * 1024
def compile(
input_path, output_path, digest_blacklist_filter, gzip_files, brotli_files
):
"""
Generate md5 tagged static files compres... | PypiClean |
/GeneticEngine-0.7.3.tar.gz/GeneticEngine-0.7.3/geneticengine/algorithms/gp/simplegp.py | from __future__ import annotations
from typing import Any
from typing import Callable
from typing import TypeVar
from geneticengine.algorithms.callbacks.callback import Callback
from geneticengine.algorithms.callbacks.callback import DebugCallback
from geneticengine.algorithms.callbacks.callback import PrintBestCallb... | PypiClean |
/CHIP_IO-0.7.1.tar.gz/CHIP_IO-0.7.1/README.rst | CHIP_IO
============================
A CHIP GPIO library
Debian File Installation:
There are now pre-compiled binary deb files for the CHIP that do not require any build tools on a CHIP/CHIP Pro.
Go to this page: https://github.com/xtacocorex/CHIP_IO/releases/latest
Or
Go to this page: https://xtacocorex.github.io/c... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/ar_SA.py |
languages={'el': u'\u0627\u0644\u064a\u0648\u0646\u0627\u0646\u064a\u0629', 'gu': u'\u0627\u0644\u063a\u0648\u062c\u0627\u0631\u0627\u062a\u064a\u0629', 'en': u'\u0627\u0644\u0627\u0646\u062c\u0644\u064a\u0632\u064a\u0629', 'zh': u'\u0627\u0644\u0635\u064a\u0646\u064a\u0629', 'sw': u'\u0627\u0644\u0633\u0648\u0627\u06... | PypiClean |
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Script/SConscript.py | from __future__ import division
__revision__ = "src/engine/SCons/Script/SConscript.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog"
import SCons
import SCons.Action
import SCons.Builder
import SCons.Defaults
import SCons.Environment
import SCons.Errors
import SCons.Node
import SCons.Node.Alias
import SCon... | PypiClean |
/Highton-2.3.0.tar.gz/Highton-2.3.0/highton/models/note.py | from highton.models import HightonModel
from highton.highton_constants import HightonConstants
from highton import (
fields,
call_mixins,
)
from highton.models.attachment import Attachment
class Note(
HightonModel,
call_mixins.DetailCallMixin,
call_mixins.CreateCallMixin,
call_mixins.UpdateCal... | PypiClean |
/DeepManufacturing-0.0.7.tar.gz/DeepManufacturing-0.0.7/ManufacturingNet/models/alexnet.py | import datetime
import os
import sys
import time
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
from sklearn.metrics import confusion_matrix
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.optim.lr_scheduler as scheduler
import torc... | PypiClean |
/DeepClaw-1.0.2-py3-none-any.whl/deepclaw/driver/arms/UR10eController.py | import time
import sys
import os
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(ROOT)
from driver.arms.ArmController import ArmController
from driver.arms.URConnector import URConnector
from utils.Math import *
class UR10eController(ArmController):
def __init... | PypiClean |
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/ner/kashgari/embeddings/word_embedding.py |
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# file: w2v_embedding.py
# time: 2019-05-20 17:32
import logging
from typing import Union, Optional, Dict, Any, List, Tuple
import numpy as np
from gensim.models import KeyedVectors
from tensorflow import keras
from kashgari.embeddings.b... | PypiClean |
/Flappy-0.3.7.tar.gz/Flappy-0.3.7/flappy/geom/rectangle.py | from flappy.geom import Point, Matrix
class Rectangle(object):
def __init__(self, x=0.0, y=0.0, width=0.0, height=0.0):
self.x = x
self.y = y
self.width = width
self.height = height
def clone(self):
return Rectangle(self.x, self.y, self.width, self.height)
def con... | PypiClean |
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/litleSdkPythonTestv2/certification/TestCert3.py |
import os, sys
lib_path = os.path.abspath('../all')
sys.path.append(lib_path)
from SetupTest import *
import unittest
class certTest3(unittest.TestCase):
#
def test32(self):
authorization = litleXmlFields.authorization()
authorization.orderId = '32'
authorization.amount = 100... | PypiClean |
/CosmoTech-SupplyChain-5.1.0.tar.gz/CosmoTech-SupplyChain-5.1.0/Supplychain/Generic/cosmo_api_parameters.py | import os
import json
from types import SimpleNamespace
from typing import Union
from pathlib import Path
from pprint import pformat
from Supplychain.Generic.timer import Timer
# prefix components:
space = ' '
branch = '│ '
# pointers:
tee = '├── '
last = '└── '
def tree(dir_path: Path, prefix: str = ''):
... | PypiClean |
/Mopidy-Slack-0.1.0.tar.gz/Mopidy-Slack-0.1.0/mopidy_slack/__init__.py | from __future__ import unicode_literals
import logging
import os
from .song_notification import SongNotification
from .command import help, request, next, keep, start
from .connector import SlackConnector
import tornado.web
from mopidy import config, ext
import json
import time
__version__ = '0.1.0'
logger = loggin... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/owcreateinstance.py | from typing import Optional, Callable, List, Union, Dict
from collections import namedtuple
from functools import singledispatch
import numpy as np
from AnyQt.QtCore import Qt, QSortFilterProxyModel, QSize, QDateTime, \
QModelIndex, Signal, QPoint, QRect, QEvent
from AnyQt.QtGui import QStandardItemModel, QStanda... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-core.min.js | var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{... | PypiClean |
/DjangoFileStorageHandler-1.0.tar.gz/DjangoFileStorageHandler-1.0/README.md | # DjangoFileStorageHandler
You can handle your storage files to MINIO, S3 or Local through Settings
About
-----
This project is useful if you want to store and serve your file to different types of servers. You need to change a switch in settings.py and storage server will change their server in one go.
Installation
... | PypiClean |
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/methods/messages/forward_messages.py |
from datetime import datetime
from typing import Union, List, Iterable
import pyrogram
from pyrogram import raw, utils
from pyrogram import types
class ForwardMessages:
async def forward_messages(
self: "pyrogram.Client",
chat_id: Union[int, str],
from_chat_id: Union[int, str],
m... | PypiClean |
/NREL_shift-0.1.0a0-py3-none-any.whl/shift/utils.py |
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2. Redist... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/mail/utils.py |
from email.utils import escapesre, parseaddr, specialsre
from django.conf import settings
def build_email_address(email, full_name=None):
"""Build an e-mail address for a To/CC/BCC field from a user's information.
Args:
email (unicode):
The e-mail address.
full_name (unicode, o... | PypiClean |
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Model/GaussianModel.py | from abc import abstractmethod
from io import TextIOWrapper
from Math.DiscreteDistribution import DiscreteDistribution
from Math.Vector import Vector
from Classification.Instance.CompositeInstance import CompositeInstance
from Classification.Instance.Instance import Instance
from Classification.Model.ValidatedModel i... | PypiClean |
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/outputs/cli/ci/system/impls/base/colored.py | import logging
from overrides import overrides
from cibyl.cli.query import QueryType
from cibyl.models.ci.base.system import System
from cibyl.models.product.feature import Feature
from cibyl.outputs.cli.ci.system.common.features import is_features_query
from cibyl.outputs.cli.ci.system.printer import CISystemPrinter... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/extensions/TeX/AMSmath.js | MathJax.Extension["TeX/AMSmath"]={version:"2.7.9",number:0,startNumber:0,IDs:{},eqIDs:{},labels:{},eqlabels:{},refs:[]};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.ElementJax.mml,h=MathJax.InputJax.TeX,g=MathJax.Extension["TeX/AMSmath"];var d=h.Definitions,f=h.Stack.Item,a=h.config.equatio... | PypiClean |
/NAT-PMP-1.3.2.tar.gz/NAT-PMP-1.3.2/README.rst | .. image:: https://img.shields.io/pypi/v/NAT-PMP.svg
:target: `PyPI link`_
.. image:: https://img.shields.io/pypi/pyversions/NAT-PMP.svg
:target: `PyPI link`_
.. _PyPI link: https://pypi.org/project/NAT-PMP
.. image:: https://github.com/jaraco/NAT-PMP/workflows/tests/badge.svg
:target: https://github.com/ja... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/langs/nb_NO.js | tinymce.addI18n('nb_NO',{
"Cut": "Klipp ut",
"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.": "Nettleseren din st\u00f8tter ikke direkte tilgang til utklippsboken. Bruk istedet tastatur-snarve... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/public/VAADIN/widgetsets/org.muntiacus.MuntjacWidgetSet/mode/rust/rust.js | CodeMirror.defineMode("rust", function() {
var indentUnit = 4, altIndentUnit = 2;
var valKeywords = {
"if": "if-style", "while": "if-style", "else": "else-style",
"do": "else-style", "ret": "else-style", "fail": "else-style",
"break": "atom", "cont": "atom", "const": "let", "resource": "fn",
"let": ... | PypiClean |
/GTW-1.2.6.tar.gz/GTW-1.2.6/__test__/rst_harness.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from _GTW.__test__.Test_Command import *
from _TFL.Regexp import Multi_Re_Replacer, Re_Replacer, re
from posixpath import join as pp_join
import multiprocessing
import requests
import subprocess
import sys
imp... | PypiClean |
/lib/Repeat.py | from __future__ import absolute_import, division, print_function
from .Code import WarningMsg
from .Patterns import Pattern, Cycle, asStream
from .Utils import modi
from .TimeVar import var, Pvar
import inspect
class MethodList:
""" Class for holding information about the order of which methods have been
... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/trackers/strongsort/sort/iou_matching.py | from __future__ import absolute_import
import numpy as np
from . import linear_assignment
def iou(bbox, candidates):
"""Computer intersection over union.
Parameters
----------
bbox : ndarray
A bounding box in format `(top left x, top left y, width, height)`.
candidates : ndarray
A... | PypiClean |
/OMSTD-hh-001-0.1.2.tar.gz/OMSTD-hh-001-0.1.2/omstd_hh_001/lib/data.py | __author__ = 'cr0hn - cr0hn<-at->cr0hn.com (@ggdaniel)'
# --------------------------------------------------------------------------
class Parameters:
"""Program parameters"""
# ----------------------------------------------------------------------
def __init__(self, **kwargs):
"""
:param... | PypiClean |
/Hector_Observations_Pipeline-1.4-py3-none-any.whl/hop/distortion_correction/HectorTranslationSoftware/Packages/sds/README.txt | # "@(#) $Id: ACMM:sds/README.txt,v 3.94 09-Dec-2020 17:15:24+11 ks $"
The DRAMA Self Defining data System (Sds). Can also be used
indpendent of DRAMA - see the Standalone directory.
This software has made use of the ESO cmm system (known internally
at AAO as "acmm").
This module is a DRAMA module - it must have a... | PypiClean |
/GangaCK-1.0.0.tar.gz/GangaCK-1.0.0/scripts/xmlmerge.py | import re
import sys
import os
import subprocess
import argparse
import ConfigParser
import logging
from collections import defaultdict
from glob import glob
import xml.etree.cElementTree as ET
## TODO: leave out the outputfile, determine ad-hoc
OUTPUTDIR = 'output'
OUTPUT = 'output/summary.xml' # Name of output file... | PypiClean |
/DFTtoolbox-1.6.3.tar.gz/DFTtoolbox-1.6.3/README.md | # DFTtoolbox
DFTtoolbox is a Python module that aims to help computational condensed
matter physicist or material scientists who use density functional
theory (DFT) codes , such as quantum espresso, abinit, elk, etc., as a
tool to study material properties quickly build their calculations and
analyze the calculated... | PypiClean |
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/event_high_cpu_response.py | import re # noqa: F401
import sys # noqa: F401
from openapi_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 |
/Flask-uWSGI-WebSocket-0.6.1.tar.gz/Flask-uWSGI-WebSocket-0.6.1/flask_uwsgi_websocket/_gevent.py | import uuid
from gevent import spawn, wait
from gevent.event import Event
from gevent.monkey import patch_all
from gevent.queue import Queue, Empty
from gevent.select import select
from werkzeug.exceptions import HTTPException
from .websocket import WebSocket, WebSocketMiddleware
from ._uwsgi import uwsgi
class Gev... | PypiClean |
/GooeyDev-1.0.8b2.tar.gz/GooeyDev-1.0.8b2/gooey/gui/formatters.py | import os
import itertools
from gooey.gui.util.quoting import quote
def checkbox(metadata, value):
return metadata['commands'][0] if value else None
def radioGroup(metadata, value):
# TODO
try:
return self.commands[self._value.index(True)][0]
except ValueError:
return None
def mu... | PypiClean |
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/exports/glances_csv.py | import os.path
import csv
import sys
import time
from glances.compat import PY3, iterkeys, itervalues
from glances.logger import logger
from glances.exports.glances_export import GlancesExport
class Export(GlancesExport):
"""This class manages the CSV export module."""
def __init__(self, config=None, args=... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/bootstrap-multiselect.js | (function (root, factory) {
'use strict';
// check to see if 'knockout' AMD module is specified if using requirejs
if (typeof define === 'function' && define.amd &&
typeof require === 'function' && typeof require.specified === 'function' && require.specified('knockout')) {
// AMD. Register ... | PypiClean |
/fastmbar-1.4.1.tar.gz/fastmbar-1.4.1/docs/build/_static/copybutton.js | const messages = {
'en': {
'copy': 'Copy',
'copy_to_clipboard': 'Copy to clipboard',
'copy_success': 'Copied!',
'copy_failure': 'Failed to copy',
},
'es' : {
'copy': 'Copiar',
'copy_to_clipboard': 'Copiar al portapapeles',
'copy_success': '¡Copiado!',
'copy_failure': 'Error al copi... | PypiClean |
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/MakeEnv/UpdateEnv.py | import time
import os
import grid2op.MakeEnv.PathUtils
from grid2op.Exceptions import UnknownEnv
from grid2op.MakeEnv.UserUtils import list_available_local_env
from grid2op.MakeEnv.Make import _retrieve_github_content
_LIST_REMOTE_URL = (
"https://api.github.com/repos/bdonnot/grid2op-datasets/contents/updates.js... | PypiClean |
/DnaWeaver-0.3.8.tar.gz/DnaWeaver-0.3.8/dnaweaver/AssemblyPlanReport/mixins/PlotsMixin/AssemblyBlocksMixin.py | from dna_features_viewer import GraphicRecord
import matplotlib.pyplot as plt
from copy import deepcopy
import matplotlib.patches as mpatches
import matplotlib.font_manager as fm
from Bio import SeqIO
from ...config import SETTINGS
class AssemblyBlocksMixin:
def plot_assembly_blocks(
self,
parts_o... | PypiClean |
/LDB_Inventory_Barcode-0.14.1.tar.gz/LDB_Inventory_Barcode-0.14.1/docs/changelog.rst | Changelog
---------
v0.13.1
~~~~~~~
* Fix a crash when using the ``generate`` shortcut function.
v0.13.0
~~~~~~~
* Added support for transparent backgrounds. This is done by setting the ``mode`` option
for a writer to ``RGBA``.
v0.12.0
~~~~~~~
* Removed ``writer_options`` from ``barcode.get``. This parameter wa... | PypiClean |
/GxAutoTestManager-1.0.1.tar.gz/GxAutoTestManager-1.0.1/AutoTestManager/client/modules/reboot.py |
from multiprocessing import Process, Lock
from multiprocessing.managers import BaseManager
import serial
import time
import re
class RebootManager(BaseManager):
pass
def rebootmanager():
m = RebootManager()
m.start()
return m
class Reboot:
def __init__(self):
self.serial_dev = []
... | PypiClean |
/Accern-0.4.0.tar.gz/Accern-0.4.0/accern/historical.py | from accern import default_client, error, util
from accern.default_client import AccernClient
from accern.schema import Schema
from accern.config import get_config
def get_api_base(env):
try:
return get_config()["io"][env]
except KeyError:
raise ValueError("Unknown env type: {0}".format(env))
... | PypiClean |
/DS-OOP-Review-0.1.2.tar.gz/DS-OOP-Review-0.1.2/football/season.py | from possible_values import *
from game import Game
from random import randint, uniform, sample
def generate_rand_games(n=15):
'''Generate n random games using value lists in possible_values
'''
# Begin with enpty list
games = []
# For the specified number of games, create an instance of the Game... | PypiClean |
/Flask-Api-Awesomesauce-0.1.tar.gz/Flask-Api-Awesomesauce-0.1/flask_api_awesomesauce/api_decorators.py | from functools import wraps
from flask import jsonify, request
from flask.wrappers import BadRequest
import utilities
def json_response(status_code, message, additional_data=None):
"""
Args:
status_code (int): HTTP Status Code for response object.
response_data (dict): Data to be returned as... | PypiClean |
/MCdeck-0.6.3-py3-none-any.whl/mcdeck/tts.py | import os.path
from PySide6 import QtCore, QtWidgets, QtGui
from lcgtools.graphics import LcgImage
from mcdeck.util import ErrorDialog
class TTSExportDialog(QtWidgets.QDialog):
"""Dialog for Tabletop Simulator export.
:param parent: parent widget
:param settings: the application settings object
:... | PypiClean |
/NeuralPlayground-0.0.7.tar.gz/NeuralPlayground-0.0.7/neuralplayground/agents/agent_core.py | import os
import pickle
import numpy as np
import pandas as pd
from deepdiff import DeepDiff
from scipy.stats import levy_stable
class AgentCore(object):
"""Abstract class for all EHC models
Attributes
----------
agent_name : str
Name of the specific instantiation of the ExcInhPlasticity cla... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.