<commit_before>#!/usr/bin/python

import pprint
from planetlab.types import *

# name  : the slice name
# index : the index into the iplist for each node to assign to this slice
# attr  : a list of slice attributes.
slice_list = [

    Slice(name='gt_partha',              index=0, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name='iupui_ndt',              index=1, attrs=[
                    Attr('MeasurementLab',    capabilities='VXC_PROC_WRITE'),
                    Attr('MeasurementLab',    disk_max='60000000'),
                    Attr('MeasurementLabK32', disk_max='60000000'), ],
                    ipv6=['mlab4.nuq01', 'mlab4.nuq02']),

    Slice(name='iupui_npad',             index=2, attrs=[
                    Attr(None,                initscript='iupui_npad_initscript'),
                    Attr('MeasurementLab',    capabilities='VXC_PROC_WRITE'),
                    Attr('MeasurementLab',    disk_max='10000000'),
                    Attr('MeasurementLabK32', disk_max='10000000'),
                    Attr('MeasurementLabK32', vsys='web100_proc_write'),
                    Attr('MeasurementLabK32', pldistro='mlab'), 
                    Attr('MeasurementLabK32XidMask', disk_max='10000000'),
                    Attr('MeasurementLabK32XidMask', vsys='web100_proc_write'),
                    ],
                    ipv6="all"),

    Slice(name='mpisws_broadband',       index=3, attrs=[
                    Attr(None,                initscript='mpisws_broadband_initscript'),
                    Attr('MeasurementLab',    capabilities='CAP_NET_RAW'),
                    Attr('MeasurementLab',    disk_max='35000000'),
                    Attr('MeasurementLabK32', capabilities='CAP_NET_RAW'),
                    Attr('MeasurementLabK32', disk_max='35000000'), ],
                    ipv6=['mlab4.nuq01', 'mlab4.nuq02']),

    Slice(name="uw_geoloc4",             index=5, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name="mlab_ooni",              index=6, ipv6=['mlab4.nuq02']),
    Slice(name="samknows_ispmon",        index=7, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name="gt_bismark",             index=8, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name="mlab_neubot",            index=9, ipv6="all"),
    Slice(name="michigan_1",             index=10, ipv6="all"),
    Slice(name='princeton_namecast',     index=11, attrs=[
                    Attr('MeasurementLab',    capabilities='CAP_NET_BIND_SERVICE'),
                    Attr('MeasurementLabK32', capabilities='CAP_NET_BIND_SERVICE'), ],
                    ipv6=['mlab4.nuq01', 'mlab4.nuq02']),

    Slice(name="pl_netflow"),
    Slice(name="pl_default"),
    Slice(name="princeton_comon"),
    Slice(name="princeton_slicestat"),
    Slice(name="mlab_pipeline"),
    Slice(name="mlab_ops", attrs=[
                    Attr(None, vsys='slice_restart'),
                    Attr(None, vsys='slice_recreate'),
               ]),
]
<commit_msg>add mlab_mitate, mlab_ooni, and slice attributes to pl-default<commit_after>#!/usr/bin/python

import pprint
from planetlab.types import *

# name  : the slice name
# index : the index into the iplist for each node to assign to this slice
# attr  : a list of slice attributes.
slice_list = [

    Slice(name='gt_partha',              index=0, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name='iupui_ndt',              index=1, attrs=[
                    Attr('MeasurementLab',    capabilities='VXC_PROC_WRITE'),
                    Attr('MeasurementLab',    disk_max='60000000'),
                    Attr('MeasurementLabK32', disk_max='60000000'), ],
                    ipv6=['mlab4.nuq01', 'mlab4.nuq02']),

    Slice(name='iupui_npad',             index=2, attrs=[
                    Attr(None,                initscript='iupui_npad_initscript'),
                    Attr('MeasurementLab',    capabilities='VXC_PROC_WRITE'),
                    Attr('MeasurementLab',    disk_max='10000000'),
                    Attr('MeasurementLabK32', disk_max='10000000'),
                    Attr('MeasurementLabK32', vsys='web100_proc_write'),
                    Attr('MeasurementLabK32', pldistro='mlab'), 
                    Attr('MeasurementLabK32XidMask', disk_max='10000000'),
                    Attr('MeasurementLabK32XidMask', vsys='web100_proc_write'),
                    ],
                    ipv6="all"),

    Slice(name='mpisws_broadband',       index=3, attrs=[
                    Attr(None,                initscript='mpisws_broadband_initscript'),
                    Attr('MeasurementLab',    capabilities='CAP_NET_RAW'),
                    Attr('MeasurementLab',    disk_max='35000000'),
                    Attr('MeasurementLabK32', capabilities='CAP_NET_RAW'),
                    Attr('MeasurementLabK32', disk_max='35000000'), ],
                    ipv6=['mlab4.nuq01', 'mlab4.nuq02']),

    Slice(name="mlab_mitate",            index=4, ipv6="all"),
    Slice(name="uw_geoloc4",             index=5, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name="mlab_ooni",              index=6, ipv6=['mlab4.nuq02', 'mlab1.nuq0t', 'mlab2.nuq0t']),
    Slice(name="samknows_ispmon",        index=7, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name="gt_bismark",             index=8, ipv6=['mlab4.nuq01', 'mlab4.nuq02']),
    Slice(name="mlab_neubot",            index=9, ipv6="all"),
    Slice(name="michigan_1",             index=10, ipv6="all"),
    Slice(name='princeton_namecast',     index=11, attrs=[
                    Attr('MeasurementLab',    capabilities='CAP_NET_BIND_SERVICE'),
                    Attr('MeasurementLabK32', capabilities='CAP_NET_BIND_SERVICE'), ],
                    ipv6=['mlab4.nuq01', 'mlab4.nuq02']),

    Slice(name="pl_netflow"),
    # NOTE: codemux=-1 disables codemux thereby freeing port 80 for slices.
    # NOTE: net_max_rate=-1 disables bwlimits via configuration. (new feature).
    Slice(name="pl_default", attrs=[Attr('MeasurementLabK32XidMask', codemux='-1'), 
                                    Attr('MeasurementLabK32XidMask', net_max_rate='-1'),]),
    Slice(name="princeton_comon"),
    Slice(name="princeton_slicestat"),
    Slice(name="mlab_pipeline"),
    Slice(name="mlab_ops", attrs=[
                    Attr(None, vsys='slice_restart'),
                    Attr(None, vsys='slice_recreate'),
               ]),
]

{'fraction_non_alphanumeric': 0.14558058925476602, 'fraction_numerical': 0.05010241058767922, 'mean_word_length': 2.2738525012893245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 10, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1151913', 'n_tokens_mistral': 2325, 'n_tokens_neox': 2018, 'n_words': 278}