<commit_before>from pylab import *
import re
import inspect

formatter = matplotlib.ticker.EngFormatter(places=3)
formatter.ENG_PREFIXES[-6] = 'u'

def scatterplot_RplRootMultiTransparentBridge_400x(results):

    print "scatterplot_RplRootMultiTransparentBridge_400x"
    data = {}

    ncol = 4
    nrow = 3
    
    xtitle = "Hop Count"
    ytitle = "Reach Delay (ms)"

    for result in results:
        if result.mode == "RplRootMultiTransparentBridge" and 'S400' in result.id:
            if 'ping1' in result.ping_info and result.ping_info['ping1'] != None:
                if 'pingm' in result.time_info and result.time_info['pingm'] > -1:
                    if result.id not in data:
                        data[result.id] = {'x':[], 'y':[]}

                    data[result.id]['x'].append(64 - int(result.ping_info['ping1']['ttl']))
                    data[result.id]['y'].append(int(result.time_info['pingm'])/1000)

    fig400x = plt.figure(figsize=(25,15)) #figsize=(,)
    index400x = 1

    for testid in sorted(data.keys()):
        if 'S400' in testid:
            ax = fig400x.add_subplot(nrow,ncol,index400x, title="%s, %d points" % (testid,len(data[testid]['x'])), xlim=(0,10), ylim=(0,80), xlabel=xtitle, ylabel=ytitle)
            ax.scatter(data[testid]['x'],data[testid]['y'])
            print("plotting %s len %d" % (testid, len(data[testid]['x'])))
            # print(index400x)
            index400x+=1

    fig400x.savefig('RplRootMultiTransparentBridge_400x.pdf', format='pdf')

def scatterplot_RplRootMultiTransparentBridge_500x_by_traffic(results):(results):

    print "scatterplot_RplRootMultiTransparentBridge_500x_by_traffic"
    data = {}
<commit_msg>Fixed syntax error from last merge<commit_after>from pylab import *
import re
import inspect

formatter = matplotlib.ticker.EngFormatter(places=3)
formatter.ENG_PREFIXES[-6] = 'u'

def scatterplot_RplRootMultiTransparentBridge_400x(results):

    print "scatterplot_RplRootMultiTransparentBridge_400x"
    data = {}

    ncol = 4
    nrow = 3
    
    xtitle = "Hop Count"
    ytitle = "Reach Delay (ms)"

    for result in results:
        if result.mode == "RplRootMultiTransparentBridge" and 'S400' in result.id:
            if 'ping1' in result.ping_info and result.ping_info['ping1'] != None:
                if 'pingm' in result.time_info and result.time_info['pingm'] > -1:
                    if result.id not in data:
                        data[result.id] = {'x':[], 'y':[]}

                    data[result.id]['x'].append(64 - int(result.ping_info['ping1']['ttl']))
                    data[result.id]['y'].append(int(result.time_info['pingm'])/1000)

    fig400x = plt.figure(figsize=(25,15)) #figsize=(,)
    index400x = 1

    for testid in sorted(data.keys()):
        if 'S400' in testid:
            ax = fig400x.add_subplot(nrow,ncol,index400x, title="%s, %d points" % (testid,len(data[testid]['x'])), xlim=(0,10), ylim=(0,80), xlabel=xtitle, ylabel=ytitle)
            ax.scatter(data[testid]['x'],data[testid]['y'])
            print("plotting %s len %d" % (testid, len(data[testid]['x'])))
            # print(index400x)
            index400x+=1

    fig400x.savefig('RplRootMultiTransparentBridge_400x.pdf', format='pdf')

def scatterplot_RplRootMultiTransparentBridge_500x_by_traffic(results):

    print "scatterplot_RplRootMultiTransparentBridge_500x_by_traffic"
    data = {}

{'fraction_non_alphanumeric': 0.14512805416544008, 'fraction_numerical': 0.040035325287017955, 'mean_word_length': 3.1439024390243904, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '141378', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1148, 'n_words': 209}