code
stringlengths
1
199k
import collections import logging import re import time import irc.client from . import message __all__ = ['Event3', 'ServerConnection3'] log = logging.getLogger(__name__) class Event3(irc.client.Event): """An IRC event with tags See `tag specification <http://ircv3.net/specs/core/message-tags-3.2.html>`_. ...
from . import questions, users, wiki, forums # noqa
from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() class UnsubscribeForm(forms.Form): email = forms.EmailField()
"""Auto-generated file, do not edit by hand. PM metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_PM = PhoneMetadata(id='PM', country_code=508, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[45]\\d{5}', possible_number_pattern='\\d...
import math from klampt import vectorops from klampt import so3 def solve_2R_inverse_kinematics(x,y,L1=1,L2=1): """For a 2R arm centered at the origin, solves for the joint angles (q1,q2) that places the end effector at (x,y). The result is a list of up to 2 solutions, e.g. [(q1,q2),(q1',q2')]. """ ...
''' A categorical scatter plot based on GitHub commit history. This example demonstrates using a ``jitter`` transform. .. bokeh-example-metadata:: :sampledata: commits :apis: bokeh.plotting.figure.scatter :refs: :ref:`userguide_categorical` > :ref:`userguide_categorical_scatters` > :ref:`userguide_categoric...
import os import sys sys.path.insert(0, os.path.abspath("..")) extensions = ["sphinx.ext.viewcode"] templates_path = ["_templates"] source_suffix = ".rst" master_doc = "index" project = "django-functest" copyright = "2016-2018, Luke Plant" version = "1.2" release = "1.2" exclude_patterns = ["_build"] pygments_style = "...
""" This modules provides the translation tables from python to c++. """ import ast import inspect import logging import sys from pythran import cxxtypes from pythran.conversion import to_ast, ToNotEval from pythran.cxxtypes import NamedType from pythran.intrinsic import Class from pythran.intrinsic import ClassWithCon...
import datetime from django.conf import settings from django.contrib.auth.decorators import login_required from django import forms from django.contrib.auth.models import Group from django.core.urlresolvers import reverse from django.forms import extras from django.http import HttpResponseRedirect from django.shortcuts...
import sys import traceback from urllib import urlencode, unquote from urlparse import parse_qs import re from twisted.internet import defer from twisted.internet.defer import inlineCallbacks from twisted.internet.error import ConnectionRefusedError from twisted.web import http from twisted.web.resource import Resource...
__author__ = 'Juan' from SurveyDataViewer.settings.base import * DEBUG = True TEMPLATE_DEBUG = True STATIC_URL = '/static/' SITE_URL = '' MEDIA_ROOT = data["media_files_dir"] MEDIA_URL = '/surveydata/'
import pytest import numpy as np import pandas as pd import pandas.util.testing as tm import pandas.core.indexes.period as period from pandas.compat import lrange, PY3, text_type, lmap from pandas import (Period, PeriodIndex, period_range, offsets, date_range, Series, Index) class TestPeriodIndex(ob...
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 7, transform = "Quantization", sigma = 0.0, exog_count = 0, ar_order = 0);
""" Verifies that LD_DYLIB_INSTALL_NAME and DYLIB_INSTALL_NAME_BASE are handled correctly. """ import TestGyp import re import subprocess import sys if sys.platform == 'darwin': test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) CHDIR = 'installname' test.run_gyp('test.gyp', chdir=CHDIR) test.build('tes...
class StorageProperties(object): def __init__(self): self.compression = None self.chunked = None def getCompression(self): return self.compression def setCompression(self, compression): self.compression = compression def getChunked(self): return self.chunked d...
from sequana import snpeff from easydev import TempFile import os from . import test_dir sharedir=f"{test_dir}/data/vcf" def test_snpeff(): # a custom refrence fh_log = TempFile() mydata = snpeff.SnpEff(annotation=f"{sharedir}/JB409847.gbk", log=fh_log.name) with TempFile() as fh: mydata.launch_...
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("orgs", "0024_populate_org_backend")] operations = [ migrations.AlterField( model_name="orgbackend", name="api_token", field=models.CharField(default="", help_text="The AP...
from __future__ import absolute_import, unicode_literals from django.http import Http404 from django.shortcuts import render from django.template.loader import get_template def learnings(request, slug): file_name = (slug.replace('-', '_') + '.html').lower() try: t = get_template('learnings/' + file_name...
from collections import deque import psutil from .compatibility import WINDOWS from .metrics import time class SystemMonitor: def __init__(self, n=10000): self.proc = psutil.Process() self.time = deque(maxlen=n) self.cpu = deque(maxlen=n) self.memory = deque(maxlen=n) self.co...
""" python generate_sparsetools.py Generate manual wrappers for C++ sparsetools code. Type codes used: 'i': integer scalar 'I': integer array 'T': data array 'B': boolean array 'V': std::vector<integer>* 'W': std::vector<data>* '*': indicates that the next argument is an output argume...
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('snh.views', #ROOT (r'^$', 'index'), #TWITTER (r'^tw/(?P<harvester_id>\d+)$', 'tw'), (r'^tw_user_detail/(?P<harvester_id>\d+)/(?P<screen_name>\w+)/$', 'tw_user_detail'), (r'^tw_search_detail/(?P<harvester_id>\d+)...
""" Copyright (C) 2018 Roberto Bruttomesso <roberto.bruttomesso@gmail.com> This file is distributed under the terms of the 3-clause BSD License. A copy of the license can be found in the root directory or at https://opensource.org/licenses/BSD-3-Clause. Author: Roberto Bruttomesso <roberto.bruttomesso@gmail.com> Date...
from django.contrib.sitemaps import Sitemap from django.core.urlresolvers import reverse from presentations.models import * class PresentationSitemap(Sitemap): changefreq = "monthly" priority = 0.1 def item(self): return Presentation.objects.all() def lastmod(self, obj): return obj.presentation_date
from __future__ import print_function from builtins import str import sys import pmagpy.pmag as pmag def main(): """ NAME sites_locations.py DESCRIPTION reads in er_sites.txt file and finds all locations and bounds of locations outputs er_locations.txt file SYNTAX sites_l...
""" zbx.config.hosts ~~~~~~~~~~~~~~~~~~~~~~~ """ from __future__ import absolute_import __all__ = ['Host', 'Interface', 'Template'] from .bases import Model from .fields import Field, SetField class Template(Model): """ Template model """ xml_tag = 'template' name = Field() template = Fi...
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('convos', '0003_auto_20150511_0440'), ] operations = [ migrations.AlterField( model_name='convomessage', name='body', ...
__usage__ = """ To run tests locally: python tests/test_arpack.py [-l<int>] [-v<int>] """ import threading import itertools import numpy as np from numpy.testing import assert_allclose, assert_equal, suppress_warnings from pytest import raises as assert_raises import pytest from numpy import dot, conj, random from sc...
"""Django settings for hawk project.""" import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend', ) SECRET_KEY = '*ip7#(8)u&+*rx%30qywt*9z&oq3w1=u#n!#u6^2u*paobx...
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 12, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0);
""" ----------------------------------------------------------------------- This module implements gamma- and zeta-related functions: * Bernoulli numbers * Factorials * The gamma function * Polygamma functions * Harmonic numbers * The Riemann zeta function * Constants related to these functions ------------------------...
import numpy as np from numpy.testing import * import unittest from conformalmapping import * class TestZline(unittest.TestCase): def test_create(self): line = Zline(np.array([0.0, 1.0j])) def test_position(self): line = Zline(np.array([0.0, 1.0j])) pt = line.position(0) assert_a...
from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse_lazy OSCAR_SHOP_NAME = 'e-ticaret' OSCAR_SHOP_TAGLINE = '' OSCAR_HOMEPAGE = reverse_lazy('promotions:home') OSCAR_BASKET_COOKIE_LIFETIME = 7 * 24 * 60 * 60 OSCAR_BASKET_COOKIE_OPEN = 'oscar_open_basket' OSCAR_MAX_BASKET...
def extractZazaTranslations(item): """ Parser for 'ZAZA Translations' """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or 'preview' in item['title'].lower(): return None if 'WATTT' in item['tags']: return buildReleaseMessageWithType(item, 'WATTT', vol, chp, fra...
from flask import Flask from webservices.models import Provider from webservices.sync import provider_for_flask import os app = Flask(__name__) with open(os.path.join(os.path.dirname(__file__), 'keys.txt')) as fobj: data = fobj.read() app.keys = dict([ line.split(':') for line in data.split('\n'...
from paste import httpexceptions from paste.cascade import Cascade from paste.urlparser import StaticURLParser from paste.registry import RegistryManager from paste.deploy.config import ConfigMiddleware, CONFIG from paste.deploy.converters import asbool from pylons.error import error_template from pylons import config ...
import sys import os project_root = os.path.abspath("../") sys.path.insert(0, project_root) sys.path.insert(0, os.path.abspath("../scripts/examples")) # allow autodoc and sphinxdoc on nut_shell.py sys.path.insert(0, os.path.abspath('.')) import ec extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinxcontri...
import os import sys def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "private_files.tests.settings") import django django.setup() from django.core.management import call_command from django.conf import settings try: settings.configure() except RuntimeError: pass ...
import logging from collections import defaultdict from itertools import combinations import re import os import os.path as op import numpy as np from scipy.spatial.distance import pdist from ..io.pick import pick_types from ..io.constants import FIFF from ..utils import _clean_names from ..externals.six.moves import m...
from __future__ import annotations import logging import math import os from dxtbx.serialize import load import xia2.Wrappers.Dials.Integrate from xia2.Handlers.Citations import Citations from xia2.Handlers.Files import FileHandler from xia2.Handlers.Phil import PhilIndex from xia2.lib.bits import auto_logfiler from xi...
"""Generate minidump symbols for use by the Crash server. Note: This should be run inside the chroot. This produces files in the breakpad format required by minidump_stackwalk and the crash server to dump stack information. Basically it scans all the split .debug files in /build/$BOARD/usr/lib/debug/ and converts them ...
from __future__ import absolute_import import unittest import os from mciutil.cli.common import get_config_filename class CliCommonTests(unittest.TestCase): def test_get_config_filename(self): """ check that package default config exists, otherwise fail this will show up on remote build when...
from __future__ import unicode_literals from django.db import migrations, models import datetime class Migration(migrations.Migration): dependencies = [ ('notaro', '0016_auto_20160303_2115'), ] operations = [ migrations.AddField( model_name='document', name='date_adde...
import os import copy import glob import json import logging from django.db.models import Q from django.contrib.contenttypes.models import ContentType from opencivicdata.legislative.models import LegislativeSession from pupa.exceptions import DuplicateItemError from pupa.utils import get_pseudo_id, utcnow from pupa.exc...
from __future__ import print_function, division from pandas import read_csv, DataFrame from sklearn import cross_validation from sklearn.feature_extraction.text import CountVectorizer from sklearn.ensemble import RandomForestClassifier from sklearn.naive_bayes import BernoulliNB, MultinomialNB import numpy as np from b...
""" Splash can send outgoing network requests through an HTTP proxy server. This modules provides classes ("proxy factories") which define which proxies to use for a given request. QNetworkManager calls a proxy factory for each outgoing request. Not to be confused with Splash Proxy mode when Splash itself works as an H...
""" User defined type utilities for psycopg2. """ import psycopg2 def get_type_oid(cursor, typename, namespace="public"): """ Get a user defined type oid using a psycopg2 cursor, the typename and namespace. """ cursor.execute(""" SELECT pgt.oid FROM pg_type pgt JOIN pg_na...
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('results', '0007_auto_20160407_2104'), ('results', '0006_auto_20160406_0659'), ] operations = [ ]
def run(cfg): """JMS Fix to deal with 11.1.1.5+ requirements""" domainPath=cfg.getProperty('wls.domain.dir') domainName=cfg.getProperty('wls.domain.name') domainFullPath=str(domainPath) + '/' + str(domainName) try: readDomain(domainFullPath) cd('/JMSSystemResource/jmsResources/JmsResource/NO_NAME_...
from six import iteritems from django.core.exceptions import ValidationError from django.contrib.gis.geos import GEOSGeometry from rest_framework.fields import Field from ashlar.validators import validate_json_schema class JsonBField(Field): """ Custom serializer class for JsonB Do no transformations, as we alw...
import getpass import logging import os import shutil from django.conf import settings log = logging.getLogger(__name__) SYNC_USER = getattr(settings, 'SYNC_USER', getpass.getuser()) def copy(path, target, file=False): """ A better copy command that works with files or directories. Respects the ``MULTIPLE_A...
from dmutils.audit import AuditTypes from flask import jsonify, abort, request, current_app from sqlalchemy.exc import IntegrityError from sqlalchemy import asc from sqlalchemy.types import String from .. import main from ... import db from ...utils import drop_foreign_fields, json_has_required_keys from ...validation ...
import py from rpython.rtyper.lltypesystem import lltype, llmemory, rffi from rpython.translator.tool.cbuild import ExternalCompilationInfo from rpython.rtyper.tool import rffi_platform from rpython.rlib.rarithmetic import is_emulated_long from rpython.translator import cdir cdir = py.path.local(cdir) eci = ExternalCom...
import os import re import string import sys import time import posixpath import subprocess etchosts_template = """127.0.0.1 localhost fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts """ from starcluster.clustersetup import ClusterSetup from starcluste...
import glob import gzip import hashlib import logging import os import re import subprocess import sys import textwrap import tempfile from collections import defaultdict import ftputil import pandas as pd import requests from Bio import SeqIO from Bio.SeqRecord import SeqRecord from colors import green from bs4 import...
import unittest import numpy as np from pydl.models.pipeline import Reshaper3D, Reshaper4D, Reshaper5D class Reshaper3DTestCase(unittest.TestCase): def test_get_config(self): r = Reshaper3D(n_steps=5) config = r.get_config() expected_config = dict( n_steps=5, name='re...
from .sub_resource import SubResource class ApplicationGatewayUrlPathMap(SubResource): """UrlPathMaps give a url path to the backend mapping information for PathBasedRouting. :param id: Resource ID. :type id: str :param default_backend_address_pool: Default backend address pool resource of URL ...
""" Base class that contains common methods """ class CorpusBase: def loadLines(self, fileName): """ Args: fileName (str): file to load Return: list<dict<str>>: the extracted fields for each line """ lines = [] with open(fileName, 'r') as f: ...
""" Shows an empty window. """ from pylibui.core import App from pylibui.controls import Window class MyWindow(Window): def onClose(self, data): super().onClose(data) app.stop() app = App() window = MyWindow('Window', 800, 600) window.setMargined(True) window.show() app.start() app.close()
from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_rebel_sergeant_major_bothan_male_01.iff" result.attribute_template_id = 9 result.stfName("npc_name","bothan_base_male") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
from decimal import Decimal PLUGIN_NAME = "Highlighter" def calculateGrades(gradeList): ''' Basic (and default) late calculator only colors late submissions red so that they can be noticed in the gradebook ''' for assignment in gradeList: for problem in assignment: #check for no submission and skip ...
class SessionStorage: def get(self, key, default=None): raise NotImplementedError() def set(self, key, value, ttl=None): raise NotImplementedError() def delete(self, key): raise NotImplementedError() def __getitem__(self, key): self.get(key) def __setitem__(self, key,...
""" This module contains the PyGTKCodeBuffer-class. This class is a specialisation of the gtk.TextBuffer and enables syntax-highlighting for PyGTK's TextView-widget. To use the syntax-highlighting feature you have load a syntax-definition or specify your own. To load one please read the docs for the Syn...
from pandac.PandaModules import * from direct.task.Task import Task from direct.directnotify import DirectNotifyGlobal from direct.fsm import StateData from direct.fsm import ClassicFSM, State from direct.fsm import State class Walk(StateData.StateData): notify = DirectNotifyGlobal.directNotify.newCategory('Walk') ...
"""String interpolation routines, i.e. the splitting up a given text into some parts that are literal strings, and others that are Python expressions. """ from itertools import chain import os import re from tokenize import PseudoToken from genshi.core import TEXT from genshi.template.base import TemplateSyntaxError, E...
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('forms', '0007_merge_20170614_1019'), ] operations = [ migrations.RemoveField( model_name='questionnaire', name='description', ), ...
import abc import sys if sys.version_info == (2, 7): import httplib as HttpStatusCode elif sys.version_info >= (3, 0): import http.client as HttpStatusCode import requests from nose.tools import (assert_equal, assert_in, assert_is_instance, ...
from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('social', '0004_auto_20161105_1920'), ] operations = [ migrations.AlterField( ...
""" PyMF Simplex Volume Maximization [1] SIVM_SGREEDY: class for greedy-search SiVM [1] C. Thurau, K. Kersting, and C. Bauckhage. Yes We Can - Simplex Volume Maximization for Descriptive Web-Scale Matrix Factorization. In Proc. Int. Conf. on Information and Knowledge Management. ACM. 2010. """ import numpy as np im...
import datetime from markupupdowndown import config from markupupdowndown.generators import render_theme_skel def init_subparser(subparsers): help_msg = 'create new theme' parser_content = subparsers.add_parser('theme', help=help_msg) parser_content.set_defaults(func=command_theme) parser_content.add_ar...
def check_types(oktypes, o): if not isinstance(o, oktypes): raise TypeError(f"Wrong element type: object {o}, type {type(o)}")
from ferrox.model.db import BaseTable from sqlalchemy import Column, types from sqlalchemy.orm import object_mapper, relation from sqlalchemy.ext.declarative import DeclarativeMeta class Discussion(BaseTable): __tablename__ = 'discussions' id = Column(types.Integer, primary_key=True) ...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/mission/quest_item/shared_daclif_gallamby_q3_needed.iff" result.attribute_template_id = -1 result.stfName("loot_corl_n","daclif_gallamby_q3_needed") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### re...
import os import types import sys import codecs import tempfile import tkFileDialog import tkMessageBox import re from Tkinter import * from SimpleDialog import SimpleDialog from configHandler import idleConf try: from codecs import BOM_UTF8 except ImportError: # only available since Python 2.3 BOM_UTF8 = '...
from celery import chain from waldur_core.core import executors as core_executors from waldur_core.core import tasks as core_tasks from . import tasks class IssueCreateExecutor(core_executors.CreateExecutor): @classmethod def get_task_signature(cls, issue, serialized_issue, **kwargs): return chain( ...
""" Blackjack.py - Yevheniy Chuba - Spring 2014 Implementation of Blackjack. Enjoy: http://www.codeskulptor.org/#user31_R8PVRLqskziSghE.py Although we used class-specific CodeSculptor for graphics, most of the methods and the rest of the concepts are similar if not the same in other Python librararies, ...
from backbone import Backbone from datetime import datetime import re import json import glob import os def extractYouTubeIDFRomLink(url): #youtu.be/qFIUHACQ-gM?a pattern = 'youtu.be/(.*)\?a$' p = re.compile(pattern,re.M | re.I) matches = p.findall(url) if len(matches) > 0: return matches[0]...
import mido import random import math from PIL import Image random.seed() class X: def eval(self, x, y): return x def __str__(self): return "x" class Y: def eval(self, x, y): return y def __str__(self): return "y" class SinPi: def __init__(self, prob): self.ar...
"""This module defines a base Exporter class. For Jinja template-based export, see templateexporter.py. """ from __future__ import print_function, absolute_import import io import os import copy import collections import datetime from IPython.config.configurable import LoggingConfigurable from IPython.config import Con...
import sys import os import socket import unittest import time import logging from plumbum import RemotePath, SshMachine, ProcessExecutionError, local, ProcessTimedOut, NOHUP from plumbum import CommandNotFound from plumbum.lib import six from plumbum._testtools import skipIf, skip_without_chown, skip_on_windows TEST_H...
from rospy import init_node, Subscriber, Publisher, get_param from rospy import Rate, is_shutdown, ROSInterruptException, spin, on_shutdown from barc.msg import ECU from numpy import pi import rospy import time motor_pwm = 1500 servo_pwm = 1580 def arduino_interface(): global ecu_pub, motor_pwm, servo_pwm init_...
from __future__ import unicode_literals DATE_FORMAT = r'\N\gà\y d \t\há\n\g n \nă\m Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = r'H:i \N\gà\y d \t\há\n\g n \nă\m Y' YEAR_MONTH_FORMAT = 'F Y' MONTH_DAY_FORMAT = 'j F' SHORT_DATE_FORMAT = 'd-m-Y' SHORT_DATETIME_FORMAT = 'H:i d-m-Y' DECIMAL_SEPARATOR = ',' THOUSAND_SEPARATOR ...
import json import logging import requests from requests.auth import HTTPBasicAuth log = logging.getLogger(__name__) class NoGithubCredentials(Exception): pass class BasicAuthRequester(object): """ Object used for issuing authenticated API calls. """ def __init__(self, username, password): s...
__author__ = "mozman <mozman@gmx.at>" def normalize_dxf_chunk(dxfstr): def round_floats_but_not_ints(tag, places=7): try: return int(tag) except ValueError: pass try: value = float(tag) return round(value, places) except ValueError: ...
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import abel import os import bz2 import matplotlib.pylab as plt imagefile = bz2.BZ2File('data/O2-ANU1024.txt.bz2') IM = np.loadtxt(imagefile) if os.environ.get('READTHEDOCS', None) == 'True':...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/lair/quenker/shared_lair_quenker_grassland.iff" result.attribute_template_id = -1 result.stfName("lair_n","quenker_grassland") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
from msrest.serialization import Model class Sku(Model): """The SKU of the cognitive services account. Variables are only populated by the server, and will be ignored when sending a request. :param name: Gets or sets the sku name. Required for account creation, optional for update. Possible values ...
""" Functions dealing with execute commands. """ import argparse def execute_module_command(module, command='', command_line=[], *args, **kwargs): """ Executes the given command line in the given module. module the module command to execute command_line list of strings to be parsed a...
from __future__ import absolute_import import sys import decimal import datetime import codecs import re import collections import contextlib try: from StringIO import StringIO except ImportError: from io import StringIO try: from collections.abc import Iterable except ImportError: from collections impo...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/hair/sullustan/shared_sul_hair_s15_f.iff" result.attribute_template_id = -1 result.stfName("hair_name","hair") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
import SuitDNA from SuitLegList import * import SuitTimings from direct.directnotify import DirectNotifyGlobal from direct.distributed.ClockDelta import * from pandac.PandaModules import * from pandac.PandaModules import Point3 from toontown.battle import SuitBattleGlobals from toontown.toonbase import TTLocalizer TIME...
database( thermoLibraries = ['primaryThermoLibrary'], reactionLibraries = [], seedMechanisms = [], kineticsDepositories = ['training'], kineticsFamilies = 'default', kineticsEstimator = 'rate rules', ) generatedSpeciesConstraints( maximumRadicalElectrons = 3, ) species( label='octane', ...
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='phone', field=models.CharF...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/inventory/shared_character_inventory.iff" result.attribute_template_id = -1 result.stfName("item_n","inventory") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/mission/quest_item/shared_xaan_talmaron_q3_needed.iff" result.attribute_template_id = -1 result.stfName("loot_dant_n","xaan_talmaron_q3_needed") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return...
import sys import logging from elftools.elf.elffile import ELFFile from elftools.elf.descriptions import describe_p_type import capstone import okita.code_coverage as code_coverage import okita.binary_disassembler as binary_disassembler def linear_sweep_disassemble(base_addr, code, arch, mode): # Dumb strategy, dis...
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cabotapp', '0001_initial'), ] operations = [ migrations.CreateModel( name='EmailAlert', fields=[ ('alertplugin_pt...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/fishing/fish/shared_blowfish.iff" result.attribute_template_id = -1 result.stfName("fish_n","blowfish") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
from __future__ import absolute_import, print_function import logging import requests from requests.exceptions import Timeout from threading import Thread from time import sleep import six import ssl from tweepy.models import Status from tweepy.api import API from tweepy.error import TweepError from tweepy.utils import...
from ...features import Feature class Infonoise(Feature): def __init__(self, name, stopwords, stem_word, words_source): self.stopwords = set(stopwords) self.stem_word = stem_word super().__init__(name, self.process, returns=float, depends_on=[words_source]) def p...