<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: caktux
# @Date:   2015-03-06 16:34:42
# @Last Modified by:   caktux
# @Last Modified time: 2015-03-20 00:54:15

import factory
reload(factory)
from factory import *


def backport_factory(name=None, distribution='trusty', architecture='amd64'):
    factory = BuildFactory()

    packages = [
        "harfbuzz",
        "qtbase-opensource-src",
        "qtxmlpatterns-opensource-src",
        "qtdeclarative-opensource-src",
        "qtscript-opensource-src",
        "qtwebkit-opensource-src",
        "qttools-opensource-src",
        "qtquick1-opensource-src",
        "qtquickcontrols-opensource-src",
        "qtlocation-opensource-src"
    ]

    if distribution == 'trusty':
        packages.append("libinput")

    for package in packages:
        for step in [
            # Create backport
            ShellCommand(
                haltOnFailure=True,
                logEnviron = False,
                name="backport-%s" % package,
                description='backporting %s' % package,<commit_msg>add qtwebsockets-opensource-src to backported packages<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: caktux
# @Date:   2015-03-06 16:34:42
# @Last Modified by:   caktux
# @Last Modified time: 2015-03-21 05:01:58

import factory
reload(factory)
from factory import *


def backport_factory(name=None, distribution='trusty', architecture='amd64'):
    factory = BuildFactory()

    packages = [
        "harfbuzz",
        "qtbase-opensource-src",
        "qtxmlpatterns-opensource-src",
        "qtdeclarative-opensource-src",
        "qtscript-opensource-src",
        "qtwebsockets-opensource-src",
        "qtwebkit-opensource-src",
        "qttools-opensource-src",
        "qtquick1-opensource-src",
        "qtquickcontrols-opensource-src",
        "qtlocation-opensource-src"
    ]

    if distribution == 'trusty':
        packages.append("libinput")

    for package in packages:
        for step in [
            # Create backport
            ShellCommand(
                haltOnFailure=True,
                logEnviron = False,
                name="backport-%s" % package,
                description='backporting %s' % package,
{'fraction_non_alphanumeric': 0.12422083704363313, 'fraction_numerical': 0.028495102404274265, 'mean_word_length': 2.3537313432835822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1034768', 'n_tokens_mistral': 745, 'n_tokens_neox': 673, 'n_words': 130}