text
stringlengths
12
6.59M
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_countryname # Purpose: SpiderFoot plug-in for scanning retreived content by other # modules (such as sfp_iban, sfp_phone, sfp_whois) and identifying country names # # Author: ...
import pytest import os from slack_today_i_did.bot_file import TodayIDidBot MOCK_PERSON = 'dave' MOCK_CHANNEL = '#durp' MOCK_START_SESSION_TEXT = 'start-session' MOCK_TEST_FILE = '.testdata_sessions' def test_session(mocker): mocked_channel_message = mocker.patch.object(TodayIDidBot, 'send_channel_message') ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from re import match from json import dumps from ..decorators import requires_auth from .comment import IssueComment, issue_comment_params from .event import IssueEvent from .label import Label from .milestone import Milestone from ..models import GitHubC...
# -*- coding: utf-8 -*- """ Django settings for wristband project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from __future__ import absolute_import, unicode_l...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from json import dumps from ..models import GitHubCore from .commit import RepoCommit class Branch(GitHubCore): """The :class:`Branch <Branch>` object. It holds the information GitHub returns about a branch on a :class:`Repository <github3.r...
# -*- coding: utf-8 -*- """ Django settings for med_project project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from __future__ import absolute_import, unicode...
# -*- coding: utf-8 -*- import random from datetime import timedelta, date from django.contrib.auth import get_user_model from tests.testapp.models import Author, Publisher, Book, Store from autofixture import generators, register, AutoFixture class PublisherGenerator(generators.Generator): publishers = [ ...
from json import dumps, loads from math import fabs from os import path, stat from twisted.python import log from twisted.protocols import basic from twisted.internet.protocol import ServerFactory, ClientFactory from twisted.protocols.basic import FileSender, LineReceiver from twisted.internet.defer import Deferred fro...
def group_rowspan(data, group): noSpan = True for i in range(len(data)): data[i]['rowspan'] = 1 inferior = [] atual = [] for i in range(len(data)-1, -1, -1): atual = [data[i][f] for f in group] if atual == inferior: noSpan = False data[i]['rowspan'] ...
#! /usr/bin/env python import copy import criros import itertools import numpy as np import openravepy as orpy # Convex hull from scipy.spatial import ConvexHull # ROS import rospy import roslib.message import rosgraph from sensor_msgs.msg import JointState # Transformations import tf import tf.transformations as tr # ...
from FAdo.fa import * class DummyAutomatonInterface(): _negation_string = "not" _sigma = [] for i in range(26): _sigma.append(chr(ord('A') + i)) def __init__(self, description, logical_op): self.description = description self.description_split = self.description.split(' ') ...
import numpy as np from skimage import io from skimage.color import rgb2grey import cv2 # import matplotlib.pyplot as plt # import pylab # the RBG vector that we are testing against ####################################################################### # NOTE: This would change if the main colour that you are looking...
# -*- coding: utf-8 -*- ''' tests.unit.api_config_test ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing libs from salttesting import skipIf, TestCase from salttesting.helpers import destructiveTest, ensure_in_syspath from salttesting.mock import ( MagicMock, NO_MOCK, N...
####################################################################### # DB Settings # Just put your settings here. ######################################################################## db_name="mconf_production" db_user="mconf" db_pass="my-password" db_host="my-server.com" db_table="users" db_username_fie...
# -*- coding: utf-8 -*- import os.path from shutil import rmtree from tempfile import mkdtemp from urllib2 import URLError, HTTPError from django.conf import settings from django.test import TestCase from commons import http_utils from commons.exceptions import TemplateParseException from commons.get_data import get...
# -*- coding: utf-8 -*- ''' :codauthor: :email:`Mike Place <mp@saltstack.com>` ''' # Import Salt Testing libs from salttesting import TestCase, skipIf from salttesting.helpers import ensure_in_syspath from salttesting.mock import MagicMock, patch, call ensure_in_syspath('../../') from salt.modules import ps HAS...
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Mike Place <mp@saltstack.com>` ''' # Import Salt Testing libs from salttesting import TestCase, skipIf from salttesting.helpers import ensure_in_syspath from salttesting.mock import MagicMock, patch, call, Mock ensure_in_syspath('../../') from salt.modules import ...
from __future__ import absolute_import, division, print_function import tempfile from contextlib import contextmanager import os import zlib from mock import MagicMock from ... import core from ...core.application_base import Application @contextmanager def make_file(contents, suffix, decompress=False): """Con...
# Import Salt Testing libs from salttesting import skipIf, TestCase from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') try: from mock import MagicMock, patch has_mock = True except ImportError: has_mock = False if has_mock: import salt.states.rvm as rvm rvm.__salt__ = {}...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/l...
import markdown import os import json import shutil import argparse import time import http.server import socketserver import threading import atexit from datetime import datetime from html import escape as escape_HTML # fetch key, possibly nested thru dot notation def ctx_fetch(ctx, line): key, params = (line.spl...
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010-2011, GEM Foundation. # # OpenQuake is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 # only, as published by the Free Software Foundation. # # OpenQuak...
# -*- encoding: utf-8 -*- # # Copyright © 2014-2015 eNovance # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright (c) 2015-2016 Matthias Geier # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
# -*- test-case-name: go.vumitools.tests.test_routing -*- from twisted.internet.defer import inlineCallbacks, returnValue, gatherResults from vumi.dispatchers.endpoint_dispatchers import RoutingTableDispatcher from vumi.config import ConfigDict, ConfigText from vumi.message import TransportEvent from vumi.worker impo...
# -*- coding: utf-8 -*- # Author: Simone Marsili # License: BSD 3 clause # pylint: disable=c-extension-no-member """Base EntropyEstimator class.""" import abc import logging import numpy from ndd.base_estimator import BaseEstimator from ndd.exceptions import AlphaError, CardinalityError, CountsError logger = logging...
import random import os import multiprocessing import time import yaml import cmdserver from cmdclient import CmdClient class RemoteControl(object): """Handle on remote goaway servers.""" def __init__(self, myaddress=None): config_path = os.path.join(os.path.dirname(__file__), "config.yaml") ...
LOGIN = 'https://www.google.com/accounts/ServiceLoginAuth?service=grandcentral' FEEDS = ('inbox', 'starred', 'all', 'spam', 'trash', 'voicemail', 'sms', 'recorded', 'placed', 'received', 'missed') BASE = 'https://www.google.com/voice/' LOGOUT = BASE + 'account/signout' INBOX = BASE + '#inbox' CALL = BAS...
# gozerlib/console/bot.py # # """ console bot. """ ## gozerlib imports from gozerlib.datadir import datadir from gozerlib.socklib.utils.generic import waitforqueue from gozerlib.errors import NoSuchCommand, NoInput from gozerlib.botbase import BotBase from gozerlib.exit import globalshutdown from gozerlib.utils.gene...
import os from gitdb import GitDB from git import Repo, Git from github import Github, GithubObject from gpm.utils.operation import LocalOperation from gpm.utils.log import Log from gpm.utils.console import gets from gpm.const.status import Status from gpm.utils.conf import SYSConf import getpass class GitClient(Local...
DEBUG = True import time import os import os.path import sys import pickle import logging import logging.handlers from logging.handlers import TimedRotatingFileHandler import SocketServer import struct import socket from multiprocessing import Process, Event import threading import sys import signal import static imp...
import argparse import random import sys from datetime import datetime from twisted.python import log from twisted.internet import reactor, task from autobahn.websocket import connectWS from autobahn.wamp import WampClientFactory, \ WampClientProtocol from utils import Autoreconnec...
import base64 import hashlib import hmac import random import struct import sys import platform from puresasl import SASLError, SASLProtocolException, QOP try: import kerberos have_kerberos = True except ImportError: have_kerberos = False if platform.system() == 'Windows': try: import winkerb...
import json, ast, urllib, requests, sys class user: # Example: # client = kippt_wrapper.user('myUsername','kjsdfklj2lhg323423klj42') def __init__(self, username, apitoken): self.username = username self.apitoken = apitoken self.header = {'X-Kippt-Username': username, 'X-Kippt-API-Token': apitoken, 'X-Kippt-Cl...
""" This is the main dispatcher module. Dispatch works as follows: Start at the RootController, the root controller must have a _dispatch function, which defines how we move from object to object in the system. Continue following the dispatch mechanism for a given controller until you reach another controller with a _...
import inspect import re from . import messages class PodTestCase(object): _regex_tests = None def __init__(self, pod, paths_to_contents): self.pod = pod self.paths_to_contents = paths_to_contents def __iter__(self): for name, func in inspect.getmembers(self, predicate=inspect.ismethod): if...
import abc import time import asyncio import logging log = logging.getLogger(__name__) DEFAULT_CHECK_TTL = 30 class CheckBase(abc.ABC): @abc.abstractmethod def __status__(self): pass @abc.abstractmethod async def __check__(self): pass @abc.abstractmethod async def __subsc...
# -*- coding: utf-8 -*- """ Created on Wed Apr 6 18:14:46 2016 @author: Balázs Hidasi @lastmodified: Loreto Parisi (loretoparisi at gmail dot com) """ import sys import os sys.path.append('../..') import numpy as np import pandas as pd import gru4rec import evaluation # To redirect output to file class Logger(obje...
# Copyright (c) 2009-2013 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
from __future__ import print_function import os, json, socket join = os.path.join def cmd(s): print(s) if os.system(s): raise RuntimeError def chdir(): os.chdir(os.path.split(os.path.abspath(__file__))[0]) def base_url(port=None): info_file = join(os.environ['SMC'], 'info.json') info = ...
# Author: J. Michael Burgess # Provides some universal statistical utilities and stats comparison tools import numpy as np import pandas as pd from threeML.io.rich_display import display import copy import warnings def li_and_ma(total, background, alpha=1.): """"Li and Ma (1983) signal to noise significance""...
# Author: J. Michael Burgess # Provides some universal statistical utilities and stats comparison tools import numpy as np import pandas as pd from threeML.io.rich_display import display import copy import warnings def li_and_ma(total, background, alpha=1.): """"Li and Ma (1983) signal to noise significance"""...
""" Fuzz Testing for Thrift Services """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import collections import imp import itertools import json import logging import os import pprint import random ...
# Tron made using Pygame import pygame import random import gameMenu from Player import Player pygame.init() screen_x = 500 screen_y = 500 size = (screen_x, screen_y) screen = pygame.display.set_mode(size) pygame.display.set_caption("Tron") lbound, rbound, ubound, dbound = 0, 490, 0, 490 done = False BLACK = (0, 0, 0...
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/globocom/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com timehome@corp.globo.com import functools from os.path import splitext import datetime import...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2018 Guenter Bartsch # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) ...
from __future__ import division from __future__ import print_function import numpy as np import logging import time import ess_k_sampler import sys import os import numpy.testing import pickle import glob import slice_sample_hyperparameters import util import kernels import copy import gc dtype_for_arrays=np.float32 ...
from apscheduler.scheduler import Scheduler from ticketz_backend_app.models import * from dateutil.relativedelta import relativedelta from tastypie.models import ApiKey from tastypie.api import Api from rq import Queue from worker import conn ################################ # begin asyn methods ####################...
from django.conf.urls import url from molo.core.admin import ReactionQuestionsModelAdmin, \ ReactionQuestionsSummaryModelAdmin from molo.core.admin_views import ReactionQuestionResultsAdminView, \ ReactionQuestionSummaryAdminView from molo.core.models import LanguageRelation, PageTranslation, Languages from mo...
# -*- coding: utf-8 -*- {'name': 'Connector8', 'version': '0.1', 'author': 'Openerp Connector Core Editors and Amdeb', 'license': 'AGPL-3', 'category': 'Generic Modules', 'description': """ This is a port of OCA connector to Odoo 8.0 """, 'depends': ['mail' ], 'data': ['security/connector_security....
""" Render markdown syntax wikitext to HTML using the markdown2 library. If 'markdown.wiki_link_base' is set in config, then CamelCase words will becomes links, prefix by wiki_link_base. Set it to '' to activate WikiLinks without any prefix. To use on Tiddlers which have a type of 'text/x-markdown' adjust config to i...
# whatlastgenre # Improves genre metadata of audio files # based on tags from various music sites. # # Copyright (c) 2012-2015 YetAnotherNerd # # 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...
# -*- coding: utf-8 -*- # Copyright (C) 2016 Cordell Bloor # Published under the MIT License """Replace #pragma once with C and C++ include guards.""" from __future__ import print_function import argparse import sys import os from functools import partial from string import Template from .pattern_compiler import comp...
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import os import gdb import pwndbg.auxv import pwndbg.commands import pwndbg.vmmap def get_exe_name(): """ Returns exe name, tries AUXV first which should work fine on both local and remote (gdbserver, qemu gdbserver) targets. If the va...
__author__ = 'abdul' import os import mongoctl.repository as repository from base import DocumentWrapper from mongoctl.utils import resolve_path, document_pretty_string, is_host_local import pymongo from pymongo.errors import AutoReconnect, OperationFailure from mongoctl.mongoctl_logging import ( log_verbose, l...
#------------------------------------------------------------------------------ # @file : ibs.cpp # @brief : Intelligent Board System # @author : Akio Shigekane, Pyo # @version: Ver1.1.1 (since 2012.00.00) # @date : 2015.2.25 #------------------------------------------------------------------------------ '''not ...
''' Code for quickly generating an output zcatalog given fiber assignment tiles, a truth catalog, and optionally a previous zcatalog. The current redshift errors and ZWARN completeness are based upon Redmonster performance on the zdc1 training samples, documented by Govinda Dhungana at https://desi.lbl.gov/DocDB/cgi-b...
from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtCore as QtCore import electrum from electrum.i18n import _ from electrum import Wallet, Wallet_2of2, Wallet_2of3 from electrum import bitcoin from electrum import util import seed_dialog from network_dialog import NetworkDialog from util import * fro...
from mongoengine import * from django.utils.hashcompat import md5_constructor, sha_constructor from django.utils.encoding import smart_str from django.contrib.auth.models import AnonymousUser import datetime REDIRECT_FIELD_NAME = 'next' def get_hexdigest(algorithm, salt, raw_password): raw_password, salt = smar...
# -*- coding: utf-8 -*- import numpy as np import scipy.interpolate as scpinterp import datastock as ds from ..geom import _etendue # ############################################################################# # ############################################################################# # ...
''' Preprocess raw DESI exposures ''' import re import os import numpy as np import scipy.interpolate from pkg_resources import resource_exists, resource_filename from scipy import signal from desispec.image import Image from desispec import cosmics from desispec.maskbits import ccdmask from desiutil.log import get_...
""" This is a base implementation of thread-like network programming on top of greenlets. From API available here it's quite unlikely that you would like to use anything except wait(). Higher level interface is available in pipe directory """ import os, sys try: from stackless import greenlet except ImportError: ...
import datetime from typing import List, Tuple, Dict, Union, Optional # noqa from calendar import monthrange cron_attributes = [ ('minute', (0, 59), {}), ('hour', (0, 23), {}), ('day', (1, 31), {}), ('month', (1, 12), {'jan': 1, 'feb': 2, 'mar': 3, 'apr': 4, 'may': 5, 'jun': 6, 'jul': 7, 'aug': 8, 'se...
from ._metakernel import ( ExceptionWrapper, MetaKernel, IPythonKernel, register_ipython_magics, get_metakernel) from . import pexpect from .replwrap import REPLWrapper, u from .process_metakernel import ProcessMetaKernel from .magic import Magic, option from .parser import Parser __all__ = ['Magic', 'MetaKernel',...
import asyncio import urllib # from py12306.config import UserType from pyppeteer import launch from py12306.config import Config from py12306.helpers.api import * from py12306.helpers.func import * from py12306.helpers.notification import Notification from py12306.helpers.type import UserType, SeatType from py12306....
from ._metakernel import ( MetaKernel, IPythonKernel, register_ipython_magics, get_metakernel) from . import pexpect from .replwrap import REPLWrapper, u from .process_metakernel import ProcessMetaKernel from .magic import Magic, option from .parser import Parser __all__ = ['Magic', 'MetaKernel', 'option'] __vers...
# Copyright 2017 James Fong # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
""" ************ Factor Class ************ This class holds a Conditional Probability Table structure -- i.e. a factor. The benefit of this class structure is that all factor manipulation happens in a centralized location, thereby making it easier to write fast and readable code. The Joint Probability Distr...
from pyMKL import pardisoinit, pardiso from ctypes import POINTER, byref, c_longlong, c_int, c_float import numpy as np import scipy.sparse as sp """ mtype options 1 -> real and structurally symmetric 2 -> real and symmetric positive definite -2 -> real and symmetric indefinite 3 -> complex and structurally symmetric ...
#! /usr/bin/env python # -*- coding: utf-8 -*- # pyAggr3g470r - A Web based news aggregator. # Copyright (C) 2010-2014 Cédric Bonhomme - http://cedricbonhomme.org/ # # For more information : https://bitbucket.org/cedricbonhomme/pyaggr3g470r/ # # This program is free software: you can redistribute it and/or modify # i...
import logging import re import os import struct from ast import literal_eval from collections import OrderedDict import copy import datetime from contextlib import contextmanager from importlib import import_module from operator import itemgetter import numpy as np import tables as tb from bitarray impo...
""" Wrap C++ class methods and constructods. """ import warnings import traceback from copy import copy from typehandlers.base import ForwardWrapperBase, ReverseWrapperBase, \ join_ctype_and_name, CodeGenerationError from typehandlers.base import ReturnValue, Parameter from typehandlers import codesink import ove...
# This file is part of pycam02ucs # Copyright (C) 2014 Nathaniel Smith <njs@pobox.com> # See file LICENSE.txt for license information. # Simple script using CIECAM02 and CAM02-UCS to visualize properties of a # matplotlib colormap import numpy as np # Most of this file doesn't actually need matpotlib, and I'm too la...
"""High-level functions to help perform complex tasks """ from __future__ import print_function, division import os import multiprocessing as mp import warnings from datetime import datetime import platform import struct import shutil import copy import numpy as np import pandas as pd import time pd.options.display.m...
from __future__ import print_function, division import os import multiprocessing as mp import subprocess as sp import platform import time import warnings import struct import socket import shutil import numpy as np import pandas as pd pd.options.display.max_colwidth = 100 import pyemu def run(cmd_str): exe_name...
# # Pyrex - Module parse tree node # import cython from cython import set cython.declare(Naming=object, Options=object, PyrexTypes=object, TypeSlots=object, error=object, warning=object, py_object_type=object, UtilityCode=object, EncodedString=object) import os, time from PyrexTypes im...
from __future__ import unicode_literals import logging import re import sqlite3 from Queue import Queue from mopidy.mpd import protocol from . import dispatcher from mopidy.utils import formatting, network from mopidy.models import Artist, Album, Track, Playlist logger = logging.getLogger(__name__) class DictatorS...
# # Pyrex - Module parse tree node # import os, time from PyrexTypes import CPtrType import Future try: set except NameError: # Python 2.3 from sets import Set as set import Annotate import Code import Naming import Nodes import Options import PyrexTypes import TypeSlots import Version import DebugFlags f...
# No shebang line, this module is meant to be imported # # Copyright 2013 Oliver Palmer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
# # Cython/Python language types # from __future__ import absolute_import import collections import copy import re try: reduce except NameError: from functools import reduce from Cython.Utils import cached_function from .Code import UtilityCode, LazyUtilityCode, TempitaUtilityCode from . import StringEnco...
import serial import inspect import time import itertools import os from util import two_byte_iter_to_str, to_two_bytes # Message command bytes - straight from Firmata.h DIGITAL_MESSAGE = 0x90 # send data for a digital pin ANALOG_MESSAGE = 0xE0 # send data for an analog pin (or PWM) DIGITAL_PULSE = 0x91 ...
''' Created on Sep 18, 2014 @author: David Zwicker <dzwicker@seas.harvard.edu> ''' from __future__ import division import subprocess as sp import os from .project import HPCProjectBase from ..algorithm.utils import change_directory def parse_time(text): """ parse time of slurm output """ # check for days...
import os import os.path import json import libcask.container import libcask.error class ContainerGroup(object): def __init__(self, data_path): # Directory where serialized Containers are stored self.data_path = data_path # Path to directory holding container root directories sel...
#!/usr/bin/python -Wall # Author: Ron Lockwood-Childs # Licensed under LGPL v2.1 (see file COPYING for details) # pygame maker object resource import pygame import re import math import yaml import pygame_maker_event as pygm_event import pygame_maker_action as pygm_action import pygame_maker_sprite as pygm_sprite i...
from django.db.models import Q from django.shortcuts import get_object_or_404 import django_filters from funfactory.urlresolvers import reverse from rest_framework import viewsets, serializers from rest_framework.response import Response from mozillians.common.helpers import absolutify, markdown from mozillians.users...
""" It contains the functions to build the tree and """ import numpy from scipy.misc import factorial, comb # Wrapped code from multipole import multipole_c, setIndex, getIndex_arr, multipole_sort, multipoleKt_sort from direct import direct_c, direct_sort, directKt_sort from calculateMultipoles import P2M, M2M # CUD...
import abc import importlib import logging from ..io.testio import TestIO log = logging.getLogger("MPP-Solar") PORT_TYPE_UNKNOWN = 0 PORT_TYPE_TEST = 1 PORT_TYPE_USB = 2 PORT_TYPE_ESP32 = 4 PORT_TYPE_SERIAL = 8 PORT_TYPE_JKBLE = 16 PORT_TYPE_ASYNCSERIAL = 32 class AbstractDevice(metaclass=abc.ABCMeta): """ ...
# -*- coding: utf-8 -*- """ pygments.lexers.asm ~~~~~~~~~~~~~~~~~~~ Lexers for assembly languages. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, include, bygroups, using, words, \ ...
from django.http import Http404 from django.shortcuts import render, redirect from cubes import cube_manager from utils import jsonify, csvify from django.views.decorators.clickjacking import xframe_options_exempt def get_cube(name): """ Load the named cube from the current registered ``CubeManager``. """ i...
# -*- coding: utf-8 -*- """ pygments.lexers.asm ~~~~~~~~~~~~~~~~~~~ Lexers for assembly languages. :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, include, bygroups, using, DelegatingL...
# Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
# -*- coding: utf-8 -*- """ pygments.lexers.jvm ~~~~~~~~~~~~~~~~~~~ Pygments lexers for JVM languages. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, ...
# This file is part of the myhdl_numeric library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2015 Jase M. Gomez # # The myhdl_numeric library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as # pu...
# -*- coding: utf-8 -*- """ pygments.lexers.jvm ~~~~~~~~~~~~~~~~~~~ Pygments lexers for JVM languages. :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, ...
from aiida.orm import Code, DataFactory from aiida.orm.workflow import Workflow from aiida.orm.calculation.inline import make_inline from aiida.workflows.wf_gruneisen_pressure import WorkflowGruneisen from aiida.workflows.wf_phonon import WorkflowPhonon from aiida.orm import load_workflow StructureData = DataFactory...
import mysite.base.unicode_sanity import simplejson from django.core.urlresolvers import reverse import django.contrib.auth.views from django.core.cache import cache from django.conf import settings import pprint import sha import re import traceback import logging import mysite.base.decorators import datetime import b...
# -*- coding: utf-8 -*- """The module that parses Pixar's Universal Scene Description file format.""" from pygments.lexer import RegexLexer, bygroups from pygments.lexer import words as words_ from pygments.lexers._usd_builtins import COMMON_ATTRIBUTES, KEYWORDS, \ OPERATORS, SPECIAL_NAMES, TYPES from pygments.to...
''' Project: Farnsworth Author: Karandeep Singh Nagra ''' from django.db import models from threads.models import UserProfile from managers.models import Manager class WorkshiftType(models.Model): ''' A workshift type; for example, a "Pots" workshift type. ''' name = models.CharField(blank=False, null=False, uni...
# -*- coding: utf-8 -*- """ pygments.lexers.web ~~~~~~~~~~~~~~~~~~~ Lexers for web-related languages and markup. :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import copy from pygments.lexer import RegexLexer, ExtendedReg...
#-- # Copyright (c) 2008, Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. #-- """The XHTML renderer This renderer is dedicated to the Nagare framework """ from __future__ import ...