#!/usr/bin/python

import analysis
import os
import sys
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
import types


def cdf_compare( dists, title, xl, xr, yl, yr, labels ):
   mm = min(dists[0])
   ma = max(dists[0])
   cnt = len(dists[0])
   for i in xrange(1,len(dists)):
      mm = min( mm, min(dists[i]) )
      ma = max( ma, max(dists[i]) )
      cnt = min( cnt, len(dists[i]) )

   print "cnt = " + str(cnt)
   x = np.linspace( mm, ma, cnt )

   i = 0
   for dist in dists:
      ecdf = sm.distributions.ECDF( dist )
      plt.step( x, ecdf(x), label=labels[i] )
      i += 1

      dist.sort()
      #print dist

   plt.title( title )
   plt.xticks( xr )
   plt.yticks( yr )
   plt.xlabel( xl )
   plt.ylabel( yl )
   plt.legend( labels, loc=4 )
   plt.show()


syndicate_write_90 = [2.501262903213501, 2.5318450927734375, 1.7620110511779785, 1.5451109409332275, 5.321501970291138, 1.9783580303192139, 6.775236129760742, 3.009706974029541, 1.4002830982208252, 1.3070549964904785, 11.482914924621582, 0.7869188785552979, 10.173274040222168, 2.2017710208892822, 3.041693925857544, 1.5651681423187256, 3.2649037837982178, 1.9607610702514648, 16.888894081115723, 4.928647994995117, 1.3740260601043701, 13.213519811630249, 1.2319869995117188, 2.41050386428833, 1.4627690315246582, 47.92611002922058, 2.1494808197021484, 3.7548341751098633, 2.148750066757202, 1.5802640914916992, 3.4671828746795654, 0.9756770133972168, 1.2671878337860107, 0.8476099967956543, 3.906485080718994, 9.805192947387695, 2.4320068359375, 2.3457438945770264, 6.882066965103149, 12.009412050247192, 0.9913449287414551, 34.947674036026, 2.952415943145752, 2.770968198776245, 1.5019137859344482, 1.9561150074005127, 4.137318134307861, 1.004883050918579, 2.0904619693756104, 1.9685900211334229, 2.5172770023345947, 6.294512987136841, 1.8555219173431396, 1.431938886642456, 4.995061874389648, 1.2815868854522705, 5.394690036773682, 1.808985948562622, 4.501054048538208, 5.640284061431885, 4.92337703704834, 12.209849834442139, 1.5136959552764893, 1.8134829998016357, 1.7815289497375488, 1.3633649349212646, 0.8034231662750244, 0.9731869697570801, 2.0820090770721436, 5.05452299118042, 3.7995331287384033, 1.802720069885254, 1.6024301052093506, 1.1725449562072754, 1.2297210693359375, 1.199502944946289, 3.221121072769165, 2.9005181789398193, 1.2678771018981934, 3.2392659187316895, 1.3259291648864746, 4.411695957183838, 1.3821959495544434, 2.8377020359039307, 2.738178014755249, 1.8641691207885742, 3.362143039703369, 2.271605968475342, 1.7196078300476074, 2.988002061843872, 0.9641819000244141, 3.038814067840576, 2.7805299758911133, 1.0064749717712402, 3.165860891342163, 4.0470240116119385, 2.669351100921631, 1.55051589012146, 7.2243170738220215, 0.8301742076873779, 2.5314857959747314, 31.164664030075073, 1.7022778987884521, 5.975684881210327, 2.099140167236328, 6.330000162124634, 1.4704909324645996, 1.375756025314331, 5.255220174789429, 1.9293749332427979, 3.714294910430908, 1.5704960823059082, 1.4391148090362549, 1.7017409801483154, 1.0691919326782227, 1.6597809791564941, 1.9088971614837646, 0.6507079601287842, 1.554800033569336, 2.2374107837677, 1.6609160900115967, 3.40881609916687, 10.643485069274902, 1.5485739707946777, 1.0593960285186768, 1.2423641681671143, 1.0630371570587158, 0.8061990737915039, 3.3505020141601562, 2.316697120666504, 3.7275390625, 2.6588430404663086, 1.263833999633789, 3.800985097885132, 3.6974539756774902, 4.297569036483765, 8.43190598487854, 1.6606018543243408, 58.46958613395691, 1.3264439105987549, 24.755337953567505, 53.237257957458496, 7.928254127502441, 2.331339120864868, 4.18779993057251, 2.4464731216430664, 9.048243045806885, 1.4700961112976074, 2.709820032119751, 2.0625691413879395, 1.653001070022583, 2.3048548698425293, 1.0565321445465088, 11.874253034591675, 1.4129359722137451, 0.9492459297180176, 5.002956867218018, 8.075098037719727, 1.7484660148620605, 1.404979944229126, 2.755887031555176, 2.172039031982422, 2.2823150157928467, 7.880645036697388, 2.7528750896453857, 1.6464910507202148, 1.8559269905090332, 2.037674903869629, 1.7630810737609863, 2.452242851257324, 4.613830089569092, 1.97975492477417, 2.1246399879455566, 1.1253600120544434, 3.0031280517578125, 1.4077270030975342, 5.180299997329712, 1.1011979579925537, 3.358397960662842, 0.9121301174163818, 3.9760091304779053, 4.323978900909424, 1.802428960800171, 4.069288969039917, 2.031005859375, 2.010132074356079, 2.143409013748169, 1.8348958492279053, 0.7204630374908447, 2.8941490650177, 1.2935791015625, 1.806149959564209, 0.8920631408691406, 2.276718854904175, 10.463989019393921, 4.056196928024292, 1.5790081024169922, 1.1437089443206787, 1.2665369510650635, 2.067768096923828, 1.7251980304718018, 1.908370018005371, 1.3601100444793701, 1.3771910667419434, 19.652069091796875, 1.2411060333251953, 1.8755781650543213, 4.153378963470459, 2.846851110458374, 7.359823942184448, 2.335901975631714, 96.63807821273804, 2.189188003540039, 3.232017993927002, 3.4675588607788086, 1.948728084564209, 4.285085916519165, 2.2879278659820557, 11.663019895553589, 1.9347209930419922, 1.200141191482544, 2.5260491371154785, 5.514906883239746, 3.9804999828338623, 1.3114850521087646, 6.80097508430481, 3.9841160774230957, 1.56712007522583, 4.869113922119141, 2.3671679496765137, 1.3372738361358643, 3.2719078063964844, 37.164311170578, 1.5578839778900146, 2.5484280586242676, 2.711583137512207, 6.493817090988159, 62.58063101768494, 1.5215439796447754, 9.970371007919312, 2.032384157180786, 47.558587074279785, 2.2606217861175537, 1.3974061012268066, 1.343458890914917, 1.7402408123016357, 1.1528139114379883, 12.73325490951538, 2.980952024459839, 2.8655450344085693, 1.1450531482696533, 2.3901820182800293, 1.6914708614349365, 2.716799020767212, 4.359600782394409, 2.026176929473877, 1.0836400985717773, 1.2446658611297607, 2.0329911708831787, 3.3196511268615723, 1.9705801010131836, 3.0718541145324707, 8.168164014816284, 12.781420946121216, 2.6398520469665527, 1.2344651222229004, 15.160281896591187, 2.304633140563965, 2.971651077270508, 1.9896180629730225, 24.226102113723755, 3.2234041690826416, 1.3688161373138428, 1.7468140125274658, 2.625044107437134, 2.410398006439209, 2.359174966812134, 11.414005041122437, 4.167654037475586, 56.92660903930664, 2.5136070251464844, 0.9855790138244629, 1.8184499740600586, 2.5890119075775146, 5.574373960494995, 10.65214204788208, 9.933212041854858, 1.7113170623779297, 0.9691388607025146, 8.142560958862305, 9.469985961914062, 4.986528158187866, 2.003702163696289, 0.8435869216918945, 2.8737080097198486, 2.01127290725708, 0.9754149913787842, 1.3983449935913086, 5.305581092834473, 11.989668130874634, 26.61614179611206, 1.7922730445861816, 1.0848438739776611, 60.40379214286804, 2.003541946411133, 0.8155958652496338, 2.4969918727874756, 1.0003650188446045, 2.3161370754241943, 2.1254100799560547, 5.397359848022461, 1.7341258525848389, 1.9882540702819824, 3.188646078109741, 5.3369529247283936, 35.3225519657135, 3.5963361263275146, 1.347848892211914, 15.797849178314209, 1.178882122039795, 1.0143241882324219, 16.470288038253784, 1.4565260410308838, 1.5774829387664795, 7.417927026748657, 1.1123058795928955, 3.837663173675537, 8.702363014221191, 1.4926230907440186, 28.76677894592285, 2.4535369873046875, 1.917382001876831, 1.969264030456543, 1.1014080047607422, 1.350951910018921, 1.9151618480682373, 1.6009750366210938, 0.8990399837493896, 11.621562004089355, 1.8552968502044678, 2.00639009475708, 2.5746240615844727, 1.812218189239502, 1.4799671173095703, 0.8992288112640381, 3.018278121948242, 3.6175670623779297, 1.1564161777496338, 4.3612799644470215, 6.322253227233887, 2.008249044418335, 1.4085960388183594, 2.175657033920288, 0.8914971351623535, 1.2889149188995361, 23.62670397758484, 1.4820070266723633, 0.902921199798584, 81.50528001785278, 1.4305651187896729, 2.6145801544189453, 170.49386978149414, 1.203711986541748, 7.05512809753418, 3.2098469734191895, 1.6393520832061768, 1.5642058849334717, 185.45801615715027, 1.1095330715179443, 1.6467440128326416, 1.163404941558838, 2.2851901054382324, 56.807096004486084, 56.28407096862793, 1.614649772644043, 1.2655830383300781, 1.2713439464569092, 3.9220499992370605, 2.3716437816619873, 1.0311510562896729, 40.666351079940796, 1.8369019031524658, 1.862549066543579, 2.6905009746551514, 4.335265874862671, 2.411431074142456, 2.2102057933807373, 1.8479859828948975, 2.0886659622192383, 127.93558287620544, 9.112732172012329, 2.296212911605835, 0.49195313453674316, 2.207149028778076, 936.1489858627319, 2.5480360984802246, 1.4088330268859863, 0.7919430732727051, 3.4946348667144775, 12.303199768066406, 2.493774890899658, 1.857466220855713, 1.164424180984497, 20.68438196182251, 12.33175015449524, 2.817335844039917, 1.9386141300201416, 64.03950309753418, 1.4631640911102295, 0.9627878665924072, 4.785452127456665, 39.40970492362976, 1.127993106842041, 2.4095208644866943, 48.499032974243164, 1.3455281257629395, 3.305600881576538, 3.876059055328369, 1.1429409980773926, 53.98169493675232, 3.074517011642456]

syndicate_write_50 = [2.6785128116607666, 1.3889498710632324, 2.843716859817505, 1.726227045059204, 1.1747300624847412, 0.5478839874267578, 3.115283966064453, 2.264798164367676, 3.4107680320739746, 1.860564947128296, 4.601518154144287, 1.0039830207824707, 7.223186016082764, 12.767681121826172, 0.4054739475250244, 1.331218957901001, 9.074574947357178, 1.6475729942321777, 2.396638870239258, 32.078068017959595, 2.0177738666534424, 3.3235199451446533, 3.51346492767334, 3.527277946472168, 0.8666651248931885, 9.968343019485474, 1.0051078796386719, 1.397273063659668, 2.2134180068969727, 0.9089019298553467, 2.1864728927612305, 2.5979268550872803, 1.2047350406646729, 12.121454954147339, 1.5232560634613037, 1.3178479671478271, 2.2987520694732666, 0.7522611618041992, 0.9767370223999023, 2.3489279747009277, 1.238548994064331, 1.5204041004180908, 61.39883804321289, 1.1756250858306885, 2.1476900577545166, 1.6639771461486816, 1.1663780212402344, 1.0680711269378662, 2.739147186279297, 2.1886470317840576, 4.786375999450684, 0.860292911529541, 1.0786030292510986, 1.442763090133667, 0.88730788230896, 1.8289051055908203, 1.9541640281677246, 2.7268290519714355, 3.9190919399261475, 2.6593241691589355, 1.8734970092773438, 13.906442880630493, 2.7570860385894775, 0.5518369674682617, 1.1038811206817627, 1.2945141792297363, 1.4427239894866943, 1.6736350059509277, 0.931887149810791, 2.10385799407959, 1.7546439170837402, 0.8012990951538086, 2.2761261463165283, 2.7699480056762695, 1.2728848457336426, 1.083690881729126, 1.3891470432281494, 2.3241350650787354, 1.3965981006622314, 3.8074660301208496, 1.6328868865966797, 1.443742036819458, 2.776467800140381, 2.1012790203094482, 3.3813509941101074, 1.2266809940338135, 1.1559648513793945, 1.4392030239105225, 1.666654109954834, 7.058226108551025, 0.8360190391540527, 1.1251790523529053, 1.6976900100708008, 1.266597032546997, 1.1872541904449463, 0.18956494331359863, 1.49379301071167, 2.3748221397399902, 1.3918020725250244, 4.245408058166504, 8.434684038162231, 2.1701438426971436, 1.0180549621582031, 3.101921796798706, 1.6227750778198242, 1.6392199993133545, 1.6142518520355225, 1.0163650512695312, 1.253075122833252, 2.103703022003174, 1.8682658672332764, 3.7133700847625732, 1.8646519184112549, 1.2099320888519287, 1.6439390182495117, 3.809384822845459, 2.7271180152893066, 1.3010599613189697, 0.8917210102081299, 2.0988190174102783, 0.8744890689849854, 0.8002958297729492, 0.7271380424499512, 1.2767009735107422, 0.9525420665740967, 1.0973219871520996, 0.9980759620666504, 1.829514980316162, 1.2095110416412354, 2.5482280254364014, 51.83528518676758, 0.2885160446166992, 0.47195911407470703, 6.067754030227661, 4.536072015762329, 1.4449779987335205, 1.6332318782806396, 2.9693970680236816, 2.123141050338745, 1.544806957244873, 1.1622560024261475, 10.392884016036987, 1.7105700969696045, 3.1932830810546875, 5.862432956695557, 1.4609401226043701, 52.42060685157776, 3.265052080154419, 1.9689421653747559, 2.324842929840088, 1.6570518016815186, 6.035822153091431, 2.5448038578033447, 1.2188239097595215, 3.1329610347747803, 1.3738598823547363, 1.0507760047912598, 36.78186011314392, 1.229233980178833, 9.415432929992676, 4.9705469608306885, 0.8715550899505615, 18.507338047027588, 1.5410480499267578, 2.04544997215271, 0.9938809871673584, 52.87841820716858, 1.0032308101654053, 1.0866360664367676, 1.2203729152679443, 0.981173038482666, 6.53754997253418, 3.357651948928833, 11.387729167938232, 2.8662378787994385, 1.2334070205688477, 6.2593700885772705, 0.8281760215759277, 4.7838661670684814, 2.165168046951294, 1.274439811706543, 2.8225650787353516, 1.6396839618682861, 1.8806450366973877, 1.331468105316162, 1.538572072982788, 4.433152914047241, 4.655562162399292, 1.8826940059661865, 12.73323392868042, 0.9048020839691162, 1.7711420059204102, 0.4763529300689697, 0.8687679767608643, 69.36639189720154, 2.2859649658203125, 1.8819148540496826, 1.6143498420715332, 2.140169858932495, 1.0785620212554932, 0.9460198879241943, 1.4397928714752197, 3.1590590476989746, 1.864288091659546, 22.64845108985901, 1.015049934387207, 2.5898869037628174, 1.2926990985870361, 1.7823519706726074, 1.8446011543273926, 1.7599270343780518, 1.0339610576629639, 1.3937640190124512, 2.353656053543091, 2.048460006713867, 2.0423879623413086, 1.4244179725646973, 45.629075050354004, 6.859850883483887, 2.0905370712280273, 1.425462007522583, 3.4520368576049805, 1.2491130828857422, 3.3302149772644043, 1.8954319953918457, 0.9070949554443359, 9.855361223220825, 1.2280189990997314, 2.158491849899292, 0.8379521369934082, 0.9030218124389648, 1.4635820388793945, 0.7587840557098389, 1.7562651634216309, 1.7849111557006836, 1.445410966873169, 13.161787033081055, 1.2059249877929688, 2.6687920093536377, 5.632779836654663, 1.3650760650634766, 2.6297788619995117, 1.2657408714294434, 2.6187989711761475, 1.9515459537506104, 1.9375231266021729, 3.458707094192505, 1.9937207698822021, 0.9824080467224121, 1.1016249656677246, 1.3914070129394531, 3.04305100440979, 8.073104858398438, 0.7717561721801758, 1.0106549263000488, 40.89425992965698, 2.9578299522399902, 1.390519142150879, 1.5058398246765137, 1.6928989887237549, 11.216930150985718, 1.5382189750671387, 1.1885488033294678, 2.8581860065460205, 0.8440670967102051, 1.449009895324707, 3.0297248363494873, 0.6479041576385498, 2.1240007877349854, 0.8177168369293213, 1.7223389148712158, 9.151201009750366, 2.654872179031372, 1.181771993637085, 1.1769750118255615, 1.3581061363220215, 3.1461470127105713, 0.961655855178833, 1.9437048435211182, 1.4223251342773438, 1.050765037536621, 2.1269309520721436, 9.17175006866455, 3.014482021331787, 1.431934118270874, 2.6116230487823486, 2.7469451427459717, 4.692831039428711, 1.4865379333496094, 2.562372922897339, 1.8527038097381592, 3.561898946762085, 2.4247751235961914, 2.0631730556488037, 1.9875738620758057, 7.4712159633636475, 5.069094896316528, 2.033277988433838, 2.7761080265045166, 0.9478209018707275, 1.268122911453247, 12.486233949661255, 21.260860919952393, 1.1035139560699463, 2.30432391166687, 11.282920122146606, 41.988889932632446, 1.3588690757751465, 1.9650490283966064, 2.066675901412964, 2.1801280975341797, 1.015172004699707, 1.471343994140625, 8.104355096817017, 1.5362920761108398, 5.3823630809783936, 0.8463118076324463, 1.8385958671569824, 0.4364781379699707, 1.8637759685516357, 1.8904399871826172, 3.145482063293457, 1.0628221035003662, 2.1968350410461426, 2.8917839527130127, 2.032137155532837, 1.534256935119629, 62.9125611782074, 13.92892599105835, 1.0094890594482422, 1.735478162765503, 1.1336328983306885, 1.0707859992980957, 5.848974943161011, 1.1705009937286377, 1.8747730255126953, 3.7330238819122314, 1.4959759712219238, 1.322793960571289, 1.11142897605896, 1.708913803100586, 2.5957939624786377, 3.385672092437744, 1.3531429767608643, 2.012902021408081, 2.9817399978637695, 1.4535019397735596, 1.3907158374786377, 1.6463730335235596, 1.1391680240631104, 21.606348037719727, 4.480906963348389, 2.413839101791382, 2.052901029586792, 1.2709169387817383, 0.8629579544067383, 2.014117956161499, 1.1051080226898193, 1.2206969261169434, 1.1088569164276123, 4.265312910079956, 1.546328067779541, 1.388725996017456, 1.1612648963928223, 1.423631191253662, 1.3058531284332275, 5.847002029418945, 1.0090620517730713, 1.858841896057129, 2.028014898300171, 0.6347320079803467, 1.7950470447540283, 2.0012869834899902, 16.333009004592896, 1.412247896194458, 4.724524021148682, 1.095470905303955, 1.688452959060669, 3.3612260818481445, 1.372649908065796, 5.021523952484131, 0.813115119934082, 2.0593268871307373, 7.804898023605347, 2.9086270332336426, 3.3949332237243652, 1.3052070140838623, 3.033940076828003, 1.793687105178833, 13.306915044784546, 7.344409942626953, 13.994407892227173, 5.941357851028442, 1.1130259037017822, 1.1796669960021973, 1.692836046218872, 1.5977590084075928, 1.5082910060882568, 2.9589009284973145, 0.9978609085083008, 1.6448931694030762, 2.297369956970215, 2.450176954269409, 17.75980305671692, 5.109787940979004, 3.7233707904815674, 7.26288104057312, 1.5245420932769775, 6.919026136398315, 12.510313034057617]

syndicate_write_30 = [3.440509080886841, 2.3108091354370117, 0.9465179443359375, 3.4152939319610596, 1.1769399642944336, 0.7742199897766113, 1.1875629425048828, 2.2875168323516846, 1.1708760261535645, 1.0444719791412354, 2.0342929363250732, 1.0831670761108398, 2.010532855987549, 2.036005973815918, 2.2221078872680664, 2.6878769397735596, 3.114037036895752, 1.3392438888549805, 0.9967911243438721, 2.761620044708252, 1.6428940296173096, 12.469451904296875, 2.8410451412200928, 11.159996032714844, 1.1639430522918701, 4.61076283454895, 1.4864649772644043, 2.1711719036102295, 3.3423750400543213, 1.5104029178619385, 1.1863429546356201, 1.3638041019439697, 1.8899180889129639, 2.498898983001709, 1.4515070915222168, 16.07046103477478, 4.774704933166504, 1.1802361011505127, 0.8417220115661621, 2.4319379329681396, 2.4224648475646973, 1.7315688133239746, 985.1404509544373, 2.080271005630493, 2.1608991622924805, 1.6195111274719238, 2.5856869220733643, 2.7743618488311768, 1.1553478240966797, 120.37138795852661, 934.1318740844727, 2.6380720138549805, 21.484594106674194, 1.5840158462524414, 0.7378749847412109, 0.7775540351867676, 5.11879301071167, 1.7488410472869873, 1.24739408493042, 2.5627191066741943, 2.3972151279449463, 2.9440419673919678, 1.2171821594238281, 1.095628023147583, 1.841235876083374, 3.917586088180542, 10.826201915740967, 1.319674015045166, 2.5660641193389893, 11.450874090194702, 2.090290069580078, 1.593554973602295, 1.7944440841674805, 1.4124219417572021, 1.41945219039917, 2.7992918491363525, 1.7478671073913574, 941.066976070404, 9.630638837814331, 2.393845796585083, 2.440885066986084, 2.3499040603637695, 1.3306021690368652, 14.811263799667358, 1.077929973602295, 1.4156808853149414, 2.939950942993164, 948.4633741378784, 14.960408926010132, 2.571904182434082, 2.3405191898345947, 1.49226713180542, 0.7731690406799316, 3.7443389892578125, 954.1089661121368, 1.0370759963989258, 2.231549024581909, 1.6213188171386719, 1.9341819286346436, 1.234522819519043, 0.7309939861297607, 1.6099181175231934, 3.903575897216797, 2.6163339614868164, 956.4703860282898, 2.2308509349823, 0.9357268810272217, 3.2434680461883545, 1.0158360004425049, 1.9999728202819824, 1.6650550365447998, 1.7690129280090332, 1.1745600700378418, 1.8375802040100098, 948.667249917984, 1.6880919933319092, 4.335904121398926, 1.285310983657837, 1.901993989944458, 0.9397768974304199, 2.6135799884796143, 0.6638240814208984, 1.034693956375122, 7.103796005249023, 0.9145300388336182, 1.5690782070159912, 15.268306016921997, 1.093513011932373, 1.3074169158935547, 13.826910972595215, 2.736453056335449, 2.728228807449341, 1.4335570335388184, 0.9770510196685791, 4.020056962966919, 7.622332811355591, 975.59215092659, 2.9843430519104004, 1.3650469779968262, 0.7997980117797852, 1.2627179622650146, 1.2243199348449707, 1.2455241680145264, 974.1989240646362, 0.9361679553985596, 2.4227089881896973, 1.879861831665039, 3.0462729930877686, 1.1771140098571777, 2.748291015625, 2.571192979812622, 0.9612109661102295, 1.5891971588134766, 1.2258610725402832, 1.660938024520874, 1.5065979957580566, 2.1797239780426025, 3.85079288482666, 3.0929088592529297, 3.6284940242767334, 0.8941671848297119, 1.7272429466247559, 1.555215835571289, 10.66914701461792, 2.503627061843872, 1.8747291564941406, 2.4448599815368652, 8.881606101989746, 1.1938109397888184, 0.8496279716491699, 0.8442230224609375, 1.5343198776245117, 1.3120851516723633, 1.005295991897583, 3.0059750080108643, 2.343186855316162, 1.3874120712280273, 1.0103468894958496, 4.584160089492798, 0.7107181549072266, 2.3647050857543945, 3.117845058441162, 1.8795199394226074, 1.7241768836975098, 2.3582558631896973, 1.5432648658752441, 2.6406869888305664, 22.078895092010498, 1.3444349765777588, 2.658818006515503, 2.3714001178741455, 1.4022119045257568, 16.898962020874023, 2.1996190547943115, 1.1687078475952148, 6.0907299518585205, 1.443955898284912, 1.191772222518921, 2.4163308143615723, 1.047903060913086, 1.2090098857879639, 1.114952802658081, 938.2013409137726, 1.0228290557861328, 3.4401438236236572, 2.16682505607605, 7.079674959182739, 1.2331819534301758, 0.9978799819946289, 2.5892419815063477, 1.1612329483032227, 1.1660070419311523, 2.4013259410858154, 37.71523404121399, 2.824143886566162, 1.4957399368286133, 6.26813006401062, 4.0780839920043945, 0.8567068576812744, 1.7632968425750732, 2.491436004638672, 975.5187258720398, 1.9003500938415527, 1.4966721534729004, 1.1138601303100586, 1.603606939315796, 1.268841028213501, 1.3836162090301514, 11.30561113357544, 1.7010221481323242, 2.304638147354126, 1.4778900146484375, 3.1176528930664062, 908.3028619289398, 23.19441509246826, 0.8800539970397949, 1.105402946472168, 1.0548620223999023, 2.2265639305114746, 2.1613478660583496, 1.708392858505249, 22.122885942459106, 1.6563928127288818, 0.984666109085083, 120.28642892837524, 936.1933341026306, 1.7014899253845215, 12.226810932159424, 0.9168069362640381, 1.9428341388702393, 2.626244068145752, 20.933873891830444, 3.53741192817688, 1.775156021118164, 3.0174560546875, 1.6767351627349854, 3.1188650131225586, 2.076853036880493, 1043.7623257637024, 5.702238082885742, 2.10304594039917, 3.0795540809631348, 1.9633021354675293, 956.7678079605103, 1.4349110126495361, 11.389563798904419, 1.7166459560394287, 1.570936918258667, 2.8178110122680664, 10.633270978927612, 120.50137090682983, 3.7975800037384033, 0.924597978591919, 2.6978049278259277, 1.4568960666656494, 0.9579808712005615, 1.8232338428497314, 2.6702778339385986, 3.296431064605713, 12.951642990112305, 1.7567789554595947, 1.8644001483917236, 1.438934087753296, 1.7621519565582275, 1.8034589290618896, 0.7254419326782227, 2.971458911895752, 1.5214548110961914, 11.282685995101929, 2.329495906829834, 2.8155460357666016, 2.1825079917907715, 6.666762113571167, 5.133780002593994, 2.6490280628204346, 3.9821529388427734, 5.0049378871917725, 1.272608995437622, 1.5860118865966797, 2.058335065841675, 3.3653039932250977, 1.6048941612243652, 3.8902809619903564, 1.5309109687805176, 1.2252161502838135, 7.040464878082275, 1.3859400749206543, 945.532665014267, 2.21608304977417, 1.7041699886322021, 9.804271936416626, 11.491597890853882, 1.2214698791503906, 1.4512951374053955, 2.58817195892334, 2.899722099304199, 3.020043134689331, 3.656826972961426, 1.0307400226593018, 0.8507130146026611, 2.519083023071289, 991.1573588848114, 0.9778609275817871, 1.969897985458374, 0.8823161125183105, 949.8848769664764, 0.9874000549316406, 1.6707611083984375, 3.111237049102783, 11.254250049591064, 120.84388494491577, 2.5968728065490723, 4.969738006591797, 1.2035789489746094, 0.9382040500640869, 2.320067882537842, 1.6734349727630615, 1.2225492000579834, 3.3279950618743896, 1.3640367984771729, 2.926064968109131, 1.4041261672973633, 1.808638095855713, 2.1171281337738037, 4.993941068649292, 1.1495399475097656, 1.0873219966888428, 1.8529369831085205, 0.3071761131286621, 1.581028938293457, 1.4387741088867188, 2.9289770126342773, 1.494621992111206, 1.3023698329925537, 1.575674057006836, 1.1880841255187988, 21.797413110733032, 1.6021771430969238, 3.9267828464508057, 3.608771800994873, 0.9661049842834473, 1.587339162826538, 1.264620065689087, 2.3610308170318604, 1.1918981075286865, 1.50667405128479, 2.147052049636841, 0.9240322113037109, 1.5916030406951904, 2.2329869270324707, 7.41413688659668, 0.9757218360900879, 1.8776180744171143, 0.7635560035705566, 2.9800260066986084, 1.6095919609069824, 0.7664928436279297, 4.525861978530884, 2.4205381870269775, 1.0173571109771729, 6.319643974304199, 1.6933729648590088, 1.4827229976654053, 120.48502492904663, 0.9640300273895264, 1.0511431694030762, 6.013452053070068, 2.7853798866271973, 1.8231770992279053, 1.9951231479644775, 2.0813159942626953, 2.8682949542999268, 1.416693925857544, 2.1920881271362305, 2.5081849098205566, 2.9620509147644043, 2.746056079864502, 120.64967799186707, 1.6906590461730957, 3.332847833633423, 0.8081519603729248, 0.75760817527771, 2.598607063293457, 2.2563159465789795, 1.9358680248260498, 4.421971082687378, 1.095350980758667, 0.9999330043792725, 1.3709940910339355, 120.5183789730072, 5.309844970703125, 8.9341139793396, 3.3327670097351074, 2.6513350009918213, 9.111454963684082, 1.590939998626709, 1.299673080444336, 4.400744915008545, 3.266840934753418, 2.457134962081909, 3.7373790740966797]

syndicate_write_70 = [8.479350090026855, 1.6076500415802002, 12.422783136367798, 3.6212100982666016, 2.7091917991638184, 1.6202960014343262, 26.40534996986389, 2.4796981811523438, 0.3284461498260498, 1.6027929782867432, 8.4116051197052, 2.0122549533843994, 2.8079819679260254, 0.5164270401000977, 5.4653480052948, 3.4777979850769043, 1.0628008842468262, 5.193747043609619, 4.523927927017212, 4.118879079818726, 1.7146270275115967, 3.0870890617370605, 1.7439260482788086, 975.039500951767, 0.38776612281799316, 3.2768421173095703, 0.6822900772094727, 0.6829540729522705, 0.9934461116790771, 1.0274920463562012, 3.5620920658111572, 2.167891025543213, 2.406635046005249, 2.565647840499878, 0.9875979423522949, 0.9322948455810547, 0.8273611068725586, 1.1241378784179688, 0.8515708446502686, 0.3957390785217285, 2.2506799697875977, 15.147710800170898, 0.4046440124511719, 2.6250739097595215, 2.3069000244140625, 0.8665831089019775, 0.932509183883667, 1.146056890487671, 1.0492169857025146, 1.179013967514038, 4.900593996047974, 4.441015958786011, 1.3855159282684326, 1.786890983581543, 3.3134539127349854, 10.155036926269531, 0.7335329055786133, 2.301862955093384, 1.4579789638519287, 0.5236501693725586, 1.6272590160369873, 89.09752106666565, 1.8479578495025635, 2.0328400135040283, 1.9309349060058594, 85.93787288665771, 1.6729340553283691, 2.80008602142334, 1.240339994430542, 7.099982976913452, 1.5854301452636719, 1.908092975616455, 1.0617120265960693, 2.344099998474121, 2.8225839138031006, 2.5278408527374268, 3.1741650104522705, 1.1551251411437988, 0.8539650440216064, 5.952578067779541, 1.3517200946807861, 4.704143047332764, 120.37876510620117, 0.9292728900909424, 11.25994086265564, 4.073195219039917, 0.9482910633087158, 1.3369240760803223, 4.594084024429321, 2.482970952987671, 1.0496289730072021, 1.1257870197296143, 2.1184260845184326, 0.41355085372924805, 1.4441649913787842, 0.8839800357818604, 2.1074700355529785, 0.37817907333374023, 0.5154328346252441, 4.5295820236206055, 2.2032389640808105, 2.2614309787750244, 0.8997759819030762, 1.7806191444396973, 0.43849706649780273, 1.092806100845337, 3.3622450828552246, 0.9551219940185547, 1.6334919929504395, 1.591430902481079, 20.60679793357849, 1.753877878189087, 0.9012749195098877, 6.0717527866363525, 1.469045877456665, 1.417464017868042, 1.960460901260376, 0.9470548629760742, 0.5254988670349121, 1.830920934677124, 2.579335927963257, 1.50754714012146, 28.849024057388306, 0.9780290126800537, 2.004564046859741, 2.79537296295166, 1.1240038871765137, 0.3548769950866699, 2.521615982055664, 3.3368799686431885, 9.477498054504395, 1.226867914199829, 3.045823097229004, 2.550395965576172, 1.3902409076690674, 1.289011001586914, 2.6187219619750977, 2.67763090133667, 1.5399901866912842, 3.3747730255126953, 2.903848886489868, 5.395647048950195, 120.79671502113342, 1.2777941226959229, 1.4122910499572754, 19.664952993392944, 2.440025806427002, 3.0607168674468994, 1.7262630462646484, 1.1592390537261963, 1.4987609386444092, 1.8637399673461914, 1.4307079315185547, 0.897536039352417, 1.0183019638061523, 5.093628883361816, 1.5449960231781006, 1.1120600700378418, 2.738863229751587, 3.1300508975982666, 0.40257787704467773, 3.382737874984741, 2.0871620178222656, 12.196362018585205, 2.0861711502075195, 0.8511872291564941, 12.556631088256836, 1.17252779006958, 1.7603628635406494, 0.7552390098571777, 1.206151008605957, 1.1389350891113281, 2.706428050994873, 9.63506293296814, 1.0733749866485596, 0.7302238941192627, 1.288701057434082, 4.111541986465454, 0.4899320602416992, 1.0918731689453125, 1.9516241550445557, 965.3457560539246, 1.0444271564483643, 1.118474006652832, 0.9717268943786621, 2.618356943130493, 1.581333875656128, 1.1822600364685059, 2.2980849742889404, 2.0169098377227783, 3.55244517326355, 1.5998361110687256, 3.8819258213043213, 1.223193883895874, 1.4457039833068848, 4.6531829833984375, 949.0223848819733, 1.3452119827270508, 1.295729160308838, 46.065738916397095, 1.9942491054534912, 2.544193983078003, 17.235687971115112, 0.9647231101989746, 1.831408977508545, 2.3985440731048584, 3.6917788982391357, 1.9033429622650146, 1.144078016281128, 2.0570478439331055, 3.1290509700775146, 1.050004005432129, 1.222174882888794, 1.0029029846191406, 1.046450138092041, 0.9228270053863525, 1.077174186706543, 0.6828148365020752, 1.1720750331878662, 1.6670989990234375, 2.231997013092041, 938.7510797977448, 8.048286199569702, 1.2252600193023682, 11.660937070846558, 0.9367721080780029, 0.38095593452453613, 0.6343231201171875, 0.7670650482177734, 1.196465015411377, 1.707719087600708, 7.900661945343018, 1.5480291843414307, 1.2764410972595215, 941.1661128997803, 1.2634329795837402, 8.817207098007202, 4.775749921798706, 1.8573060035705566, 11.404283046722412, 4.435083866119385, 0.8914070129394531, 1.1262130737304688, 3.0373780727386475, 2.901218891143799, 1.1164400577545166, 27.81853699684143, 0.8398261070251465, 0.9077000617980957, 1.8765599727630615, 1.4868590831756592, 5.235619068145752, 4.2306809425354, 1.9919679164886475, 2.6364870071411133, 2.3954060077667236, 1.3696110248565674, 1.7411417961120605, 8.53006100654602, 15.094177007675171, 2.3885059356689453, 1.380486011505127, 1.5398550033569336, 8.21045994758606, 2.7205629348754883, 17.631343126296997, 2.0621230602264404, 2.1195218563079834, 5.924543857574463, 1.0057110786437988, 1.1680991649627686, 0.8209719657897949, 6.20351505279541, 4.922128915786743, 3.0374958515167236, 40.81702709197998, 2.434299945831299, 1.2217161655426025, 12.377449035644531, 0.9952521324157715, 2.1777560710906982, 1.7520270347595215, 65.84727501869202, 1.0674490928649902, 1.0647001266479492, 2.921020984649658, 27.93046498298645, 4.629468202590942, 4.18529200553894, 2.902289867401123, 4.165174961090088, 0.5921580791473389, 0.818382978439331, 1.3029420375823975, 1.5756471157073975, 0.564694881439209, 1.2376279830932617, 2.0715630054473877, 1.0124890804290771, 0.831279993057251, 1.6352760791778564, 5.741539001464844, 1.9602649211883545, 2.18887996673584, 0.9201610088348389, 2.9226839542388916, 3.4105570316314697, 3.2647640705108643, 3.6176910400390625, 54.691941022872925, 1.3425581455230713, 1.203974962234497, 1.9928269386291504, 0.6426599025726318, 1.9714641571044922, 0.8599860668182373, 1.0371382236480713, 59.90576100349426, 1.5970242023468018, 8.774839162826538, 2.9178571701049805, 2.3108088970184326, 0.4057760238647461, 1.0619068145751953, 0.5325150489807129, 2.4298369884490967, 5.352406978607178, 1.153935194015503, 6.197025775909424, 1.1019930839538574, 2.9285778999328613, 2.0384700298309326, 1.9812779426574707, 7.747836112976074, 2.93232798576355, 1.3813529014587402, 6.499248027801514, 1.2847669124603271, 1.2004120349884033, 1.1786079406738281, 1.28609299659729, 915.6798768043518, 2.1005401611328125, 3.4066319465637207, 2.0983240604400635, 0.9846630096435547, 1.2025370597839355, 1.703970193862915, 7.992609024047852, 3.3593320846557617, 1.4261140823364258, 4.018649101257324, 0.8718199729919434, 0.6351721286773682, 1.5826258659362793, 0.49988412857055664, 2.239169120788574, 1.1090459823608398, 2.4521350860595703, 2.157363176345825, 6.211032867431641, 1.4640860557556152, 0.8597240447998047, 1047.5992081165314, 0.9654679298400879, 0.9299991130828857, 4.031306028366089, 0.9590950012207031, 1.0355439186096191, 921.1176187992096, 6.144232988357544, 0.42184901237487793, 1.7146520614624023, 0.9134130477905273, 3.149026870727539, 4.36550498008728, 5.1445019245147705, 4.301419973373413, 0.6760411262512207, 2.331634044647217, 2.0644519329071045, 20.72947907447815]

syndicate_read_10 = [89.5342321395874, 208.20170521736145, 31.770099878311157, 87.330402135849, 105.36784195899963, 40.581851959228516, 72.65460801124573, 125.87846517562866, 46.988440990448, 96.10596895217896, 128.73399686813354, 103.67257881164551, 73.55296993255615, 159.5800609588623, 94.73757600784302, 171.15384578704834, 111.9376630783081, 451.07310605049133, 92.87427306175232, 70.70726084709167, 92.29207801818848, 137.3781759738922, 149.04860591888428, 408.70596408843994, 156.25517201423645, 206.35531902313232, 113.15284585952759, 76.20343708992004, 163.66664695739746, 17.00877594947815, 115.33298897743225, 113.59612488746643, 210.75794196128845, 76.58831214904785, 106.29132103919983, 197.16220688819885, 155.28177905082703, 49.16494297981262, 51.99949884414673, 272.67341709136963, 49.91968107223511, 58.12633800506592, 85.65797114372253, 69.90464305877686, 78.14599800109863, 90.18469190597534, 73.67556500434875, 81.69891715049744, 83.46651005744934, 445.5233840942383, 120.03857207298279, 175.89123010635376, 40.716378927230835, 75.40945720672607, 68.62640714645386, 83.97835397720337, 175.39731311798096, 95.35210704803467, 122.67720007896423, 130.14205980300903, 148.37338209152222, 158.34794902801514, 92.16339802742004, 81.37728595733643, 441.352108001709, 119.83630609512329, 88.1758279800415, 234.13558197021484, 49.12032914161682, 83.89258003234863, 80.2816801071167, 148.53778100013733, 42.200291872024536, 37.567501068115234, 203.14923691749573, 24.524950981140137, 62.792524099349976, 37.51167106628418, 65.93252801895142, 190.0285279750824, 104.22137308120728, 308.6830201148987, 94.67241382598877, 19.483226776123047, 164.93441009521484, 78.17500710487366, 40.81718397140503, 84.78559803962708, 34.020174980163574, 96.06212902069092, 103.09097003936768, 30.933680772781372, 88.31883478164673, 24.55060911178589, 34.01871395111084, 139.06184601783752, 96.55429005622864, 117.82198715209961, 54.947680950164795, 201.6113040447235, 168.51726603507996, 196.96514296531677, 71.12588500976562, 37.22267389297485, 104.40437293052673, 151.74501299858093, 34.24054002761841, 72.48050379753113, 33.3921160697937, 46.144569873809814, 108.3645670413971, 62.75682997703552, 67.71641302108765, 31.590718030929565, 87.2806499004364, 56.752103090286255, 198.85961604118347, 120.25838494300842, 76.2203722000122, 82.53649306297302, 49.82799005508423, 110.00308799743652, 111.21683883666992, 110.05815196037292, 72.08845591545105, 150.94203400611877, 45.78043007850647, 107.43871808052063, 165.38188791275024, 88.57165908813477, 174.4754979610443, 101.20847797393799, 72.5144510269165, 208.0776069164276, 91.93074202537537, 142.2496201992035, 166.9893341064453, 134.5373191833496, 88.89570188522339, 226.13938403129578, 56.481253147125244, 74.33250308036804, 43.768638134002686, 184.48517513275146, 105.96088790893555, 83.75320601463318, 49.34052300453186, 126.9334659576416, 173.4481110572815, 75.1496410369873, 72.97776985168457, 67.06097197532654, 85.5665340423584, 78.68984484672546, 158.32182002067566, 97.63072681427002, 92.84295701980591, 14.453448057174683, 140.66666293144226, 84.08560299873352, 124.72800588607788, 68.48883485794067, 86.20544600486755, 81.08631181716919, 137.1963701248169, 142.04646611213684, 118.73005700111389, 16.741708993911743, 54.693536043167114, 67.99075102806091, 144.6234791278839, 83.92287611961365, 139.86566805839539, 86.79403305053711, 131.14864492416382, 202.27385210990906, 43.99477791786194, 84.72847294807434, 98.76081585884094, 114.62992691993713, 66.49804711341858, 73.88522005081177, 68.04636693000793, 147.19244194030762, 21.878656148910522, 209.6260209083557, 27.472272157669067, 191.46259903907776, 20.528186082839966, 106.11948585510254, 78.9723629951477, 26.5033540725708, 21.881141901016235, 106.35343194007874, 86.56686592102051, 70.05741786956787, 68.04385900497437, 81.82879400253296, 154.91488218307495, 132.27811002731323, 74.37930703163147, 102.15133810043335, 79.92350792884827, 91.23921799659729, 183.36542582511902, 345.08738589286804, 0.03860211372375488, 80.54235696792603, 112.62361884117126, 138.59600114822388, 78.2456750869751, 103.2767059803009, 433.37652015686035, 155.4007339477539, 84.85070013999939, 155.3143241405487, 95.61720895767212, 37.36302995681763, 98.85184907913208, 161.19204711914062, 164.85388803482056, 80.95233297348022, 153.94773697853088, 153.18307304382324, 81.90522384643555, 152.9878990650177, 160.37963914871216, 197.60453009605408, 202.67697620391846, 82.68922090530396, 68.83706712722778, 329.4445061683655, 482.33488297462463, 92.84130597114563, 171.03089904785156, 353.24323296546936, 84.15056800842285, 83.99142813682556, 151.1921591758728, 94.80036401748657, 89.04183888435364, 116.88542294502258, 194.26081609725952, 116.4036660194397, 34.25191402435303, 171.6136989593506, 96.18376803398132, 208.47142815589905, 146.2193160057068, 122.25971412658691, 111.25947904586792, 21.92274308204651, 15.057104110717773, 177.91860604286194, 72.81271409988403, 198.57540798187256, 81.97822403907776, 136.91342687606812, 15.314650058746338, 133.8629469871521, 96.14987301826477, 72.6945469379425, 97.39798784255981, 89.61776494979858, 178.4437301158905, 195.18085312843323, 62.77205514907837, 110.88100099563599, 198.26160502433777, 0.02246689796447754, 465.03380703926086, 143.95104503631592, 126.42681908607483, 204.4709451198578, 38.01244902610779, 102.24351096153259, 74.57538914680481, 55.81587791442871, 74.18299579620361, 128.99686288833618, 220.02255821228027, 68.95835900306702, 85.53157210350037, 111.32265591621399, 112.77739095687866, 69.51943588256836, 94.94932699203491, 6.573436975479126, 174.82452201843262, 89.40380311012268, 93.22188687324524, 99.37063193321228, 143.98865699768066, 148.79306507110596, 239.02863192558289, 17.5072340965271, 33.892334938049316, 226.7560670375824, 229.1222710609436, 14.575923919677734, 134.9440999031067, 120.28535413742065, 219.8715479373932, 113.98085188865662, 163.0020830631256, 103.8554790019989, 101.97799897193909, 124.39241909980774, 81.48099899291992, 153.1266269683838, 72.84035301208496, 110.14356517791748, 89.8548800945282, 164.7540318965912, 81.82055807113647, 138.5580439567566, 92.0229799747467, 22.762852907180786, 266.9729540348053, 35.11681795120239, 141.38239908218384, 91.55975604057312, 74.08672595024109, 122.00452613830566, 120.91933298110962, 195.7090368270874, 110.4675829410553, 119.91355085372925, 91.14291095733643, 101.6396918296814, 70.89448404312134, 66.35980200767517, 41.374401807785034, 93.9921088218689, 78.07165098190308, 76.13698887825012, 212.04130506515503, 57.32099199295044, 79.29177904129028, 88.11273694038391, 197.53933215141296, 120.8564829826355, 131.07662296295166, 29.302353143692017, 357.72699785232544, 18.998974084854126, 128.7064619064331, 83.38974785804749, 78.67349100112915, 226.49764895439148, 87.3019449710846, 96.15606594085693, 476.85300397872925, 59.24132990837097, 455.38683104515076, 64.34952402114868, 424.45799112319946, 154.15100598335266, 86.39738988876343, 86.34413409233093, 439.24645805358887, 79.374263048172, 31.03300189971924, 23.12514615058899, 161.2463948726654, 166.37152910232544, 272.16107988357544, 65.33110404014587, 37.76049780845642, 119.78583598136902, 112.78260397911072, 97.25263094902039, 90.20807409286499, 77.44400310516357, 86.86372590065002, 81.36002802848816, 115.39356708526611, 239.17532110214233, 196.7306671142578, 55.59528684616089, 204.04805898666382, 69.15017509460449, 95.27891302108765, 75.37249302864075, 168.61248207092285, 160.96339297294617, 120.46606802940369, 217.70134091377258, 76.54841804504395, 88.91197991371155, 87.37553000450134, 38.62466597557068, 68.21583080291748, 117.29923796653748, 99.25417900085449, 106.85147094726562, 339.03697419166565, 58.06915092468262, 92.20181584358215, 225.0480740070343, 205.21724796295166, 129.0833809375763, 221.3525218963623, 217.84463000297546, 52.907453775405884, 80.02847981452942, 240.77451014518738, 76.51830005645752, 222.55106496810913, 150.97437000274658]

syndicate_read_50 = [48.34751605987549, 16.100756883621216, 186.74558186531067, 76.8512167930603, 44.48004388809204, 56.704418897628784, 104.58366799354553, 15.844325065612793, 47.71601486206055, 34.38723802566528, 52.124220848083496, 44.334409952163696, 11.04455018043518, 105.99292612075806, 43.49366593360901, 13.381431102752686, 98.50291919708252, 15.113729000091553, 58.580888986587524, 0.10701704025268555, 23.263596057891846, 92.93509292602539, 60.226346015930176, 13.262870073318481, 54.814725160598755, 98.85699009895325, 8.410747766494751, 16.765758991241455, 26.30963706970215, 58.94804501533508, 48.12150812149048, 98.43797588348389, 34.51870512962341, 185.08754920959473, 16.40564203262329, 57.45214295387268, 73.27463579177856, 11.61147403717041, 42.99851894378662, 44.528483867645264, 12.475005149841309, 37.612263202667236, 37.45554780960083, 35.3380241394043, 38.36609697341919, 21.023519039154053, 15.78487515449524, 56.361741065979004, 44.14948296546936, 18.440603971481323, 24.775344133377075, 63.848084926605225, 18.493984937667847, 45.086764097213745, 12.603837966918945, 64.61208200454712, 120.03635811805725, 150.7865149974823, 78.64101600646973, 11.62844181060791, 84.92524194717407, 228.75441098213196, 69.70763397216797, 81.56878399848938, 113.03275299072266, 66.22498893737793, 21.359230041503906, 25.873589992523193, 20.748484134674072, 64.11683893203735, 3.608423948287964, 39.548094034194946, 53.56125092506409, 49.50097393989563, 53.30027794837952, 36.1109299659729, 49.18850612640381, 45.757282972335815, 125.353355884552, 6.764614105224609, 56.57425498962402, 20.106307983398438, 14.210654973983765, 34.200767040252686, 17.461663007736206, 109.07291316986084, 15.619619846343994, 13.269284963607788, 36.174558877944946, 11.995634078979492, 11.126061916351318, 69.14641189575195, 81.56786108016968, 43.55404591560364, 13.02150297164917, 15.242937803268433, 75.703449010849, 22.95858097076416, 38.161983013153076, 105.30898404121399, 25.595722913742065, 77.72358798980713, 29.851263999938965, 50.08767318725586, 15.863501071929932, 9.889142036437988, 32.36358094215393, 8.936724185943604, 23.18606996536255, 39.71651601791382, 79.68098998069763, 78.32834696769714, 115.76961994171143, 41.223780155181885, 65.37973093986511, 41.17444086074829, 47.37607407569885, 52.01527786254883, 41.18379187583923, 57.33099699020386, 61.70211577415466, 16.24715280532837, 40.55016112327576, 39.25457000732422, 103.56319904327393, 88.64292693138123, 57.89201998710632, 51.61219882965088, 18.157266855239868, 32.465667963027954, 14.768112897872925, 14.934494018554688, 105.02658295631409, 50.878031969070435, 91.63833999633789, 8.695712089538574, 198.9154109954834, 29.64685583114624, 69.49984097480774, 53.91772699356079, 37.92954611778259, 75.13925409317017, 28.613919973373413, 59.73980188369751, 49.746495962142944, 87.38606715202332, 48.71524715423584, 97.01447081565857, 13.72881007194519, 13.471610069274902, 94.74000000953674, 12.432494163513184, 170.1555371284485, 11.391709089279175, 74.21413898468018, 30.16666293144226, 49.758220911026, 60.88548398017883, 30.481906175613403, 28.641949892044067, 39.92999291419983, 38.955633878707886, 7.187309980392456, 56.69941210746765, 105.51081991195679, 70.16851902008057, 124.12806987762451, 32.4297399520874, 170.44318199157715, 101.02741503715515, 42.16416001319885, 128.57466983795166, 80.32307887077332, 71.30190205574036, 68.10455799102783, 39.77390384674072, 26.118951082229614, 49.37665581703186, 25.22030997276306, 55.12191605567932, 24.39416003227234, 56.023205041885376, 31.49086594581604, 42.11949396133423, 22.717391967773438, 11.612106084823608, 17.88516902923584, 93.14694786071777, 19.0308940410614, 0.26993799209594727, 58.899696826934814, 16.141695976257324, 47.42009615898132, 14.40761399269104, 110.53754687309265, 50.2389600276947, 92.0544810295105, 73.96693801879883, 70.04855298995972, 18.43627095222473, 19.136667013168335, 83.00493788719177, 43.054171085357666, 55.704148054122925, 80.29249501228333, 29.482168912887573, 0.06402707099914551, 29.593818187713623, 24.519638061523438, 44.379356145858765, 75.31124806404114, 64.80450201034546, 83.2697331905365, 82.81612205505371, 28.852899074554443, 21.541301012039185, 47.76697087287903, 63.004026889801025, 113.61851000785828, 16.243016958236694, 64.25906705856323, 88.17256093025208, 21.26415991783142, 36.04650616645813, 23.542152881622314, 28.95535898208618, 9.69182300567627, 38.28957486152649, 32.866085052490234, 11.845400094985962, 22.003772020339966, 231.86371994018555, 9.411655902862549, 38.46857213973999, 17.382703065872192, 17.265264987945557, 74.27572584152222, 41.97391605377197, 72.87180304527283, 22.814548015594482, 96.8827109336853, 121.74430799484253, 38.55403184890747, 10.951581001281738, 21.260029077529907, 35.94027304649353, 114.18374109268188, 72.04704689979553, 7.474658966064453, 6.875770092010498, 145.50360703468323, 127.08418893814087, 19.021059036254883, 45.316242933273315, 41.667348861694336, 20.481915950775146, 46.60639405250549, 59.979711055755615, 5.0973968505859375, 17.16705012321472, 34.58730101585388, 8.933575868606567, 23.495123863220215, 43.20975613594055, 11.185431957244873, 22.277525186538696, 0.052169084548950195, 20.244751930236816, 63.509560108184814, 31.028499841690063, 27.826072931289673, 35.85619783401489, 16.585163116455078, 13.6531400680542, 7.036880970001221, 77.61274003982544, 192.3631031513214, 118.60564088821411, 38.770931005477905, 29.132409811019897, 105.21574306488037, 75.1111969947815, 11.397450923919678, 32.90755319595337, 70.88646697998047, 35.50627303123474, 24.903218984603882, 32.63844895362854, 103.57643294334412, 56.084168910980225, 33.24887299537659, 125.71758818626404, 85.31116509437561, 15.182810068130493, 58.19625806808472, 41.79780101776123, 56.60915684700012, 42.75694489479065, 18.280504941940308, 172.43448996543884, 34.22078990936279, 78.26646900177002, 0.06304407119750977, 98.08074498176575, 58.463156938552856, 26.241534948349, 50.80481791496277, 17.128042936325073, 23.217658042907715, 8.766227006912231, 9.180935859680176, 89.34828805923462, 52.57153582572937, 25.332384824752808, 102.94710302352905, 47.68812394142151, 113.718013048172, 74.26702499389648, 22.624587774276733, 39.85977101325989, 47.510130167007446, 44.43992590904236, 18.58545684814453, 29.687555074691772, 70.18189883232117, 37.067883014678955, 39.538941860198975, 61.08420395851135, 53.54006290435791, 82.38691401481628, 21.185945987701416, 7.416338205337524, 39.171226024627686, 60.39440417289734, 145.0269730091095, 100.08800101280212, 20.614110946655273, 86.3602569103241, 59.828733921051025, 64.17662811279297, 99.41199898719788, 46.71538686752319, 23.82005786895752, 0.18611478805541992, 27.20449709892273, 52.36796498298645, 45.80601501464844, 10.997448921203613, 6.578874826431274, 17.83101797103882, 7.72855806350708, 19.639344930648804, 52.06844615936279, 76.99945592880249, 16.081905126571655, 6.96141505241394, 39.82786583900452, 20.438292980194092, 76.26539587974548, 195.96227312088013, 8.44361400604248, 19.87173080444336, 49.043879985809326, 10.023614883422852, 22.573009967803955, 22.068597078323364, 193.354327917099, 0.07167291641235352, 63.34040188789368, 37.12529110908508, 22.89525008201599, 119.39031505584717, 42.344810962677, 104.68114614486694, 41.51541614532471, 76.82803392410278, 41.74229407310486, 24.99273109436035, 24.052031993865967, 35.46250605583191, 78.21301412582397, 17.447700023651123, 30.515857934951782, 179.23991703987122, 94.48180294036865, 78.22750520706177, 22.978273153305054, 32.08439087867737, 43.235069036483765, 34.89366412162781, 59.19159388542175, 182.95271921157837, 16.484036922454834, 16.5524799823761, 51.347216844558716, 58.054136991500854, 18.81475305557251, 34.888336181640625, 162.02168798446655, 51.76670289039612, 58.96149396896362, 22.737734079360962, 119.9207911491394]

syndicate_read_30 = [42.2484929561615, 27.264437913894653, 25.734850883483887, 60.73731589317322, 27.761991024017334, 8.909862041473389, 9.847312927246094, 14.454811811447144, 5.851563930511475, 28.849135875701904, 43.31075119972229, 52.937918186187744, 93.17235279083252, 46.75030207633972, 35.463292837142944, 43.72784614562988, 30.570393085479736, 11.001864910125732, 33.403802156448364, 173.13950490951538, 12.36917495727539, 23.362628936767578, 32.16127300262451, 11.441172122955322, 10.060436010360718, 9.45442795753479, 22.301270008087158, 16.45478391647339, 13.88413405418396, 42.810786962509155, 21.011859893798828, 6.6795759201049805, 19.629217863082886, 23.30553102493286, 64.80003690719604, 67.0278868675232, 7.4253928661346436, 43.400997161865234, 17.339253902435303, 24.078586101531982, 20.539655923843384, 19.160897970199585, 18.735734939575195, 31.72831702232361, 34.03056001663208, 21.678205966949463, 30.672614812850952, 40.03816509246826, 0.13984394073486328, 7.999366044998169, 19.303112030029297, 25.344013929367065, 52.46492600440979, 13.358521938323975, 23.323259830474854, 14.477389097213745, 25.716315984725952, 14.603393077850342, 26.6719708442688, 11.331938982009888, 8.503780126571655, 14.298049926757812, 50.115638971328735, 39.904775857925415, 63.8011269569397, 56.584579944610596, 12.376126050949097, 9.181666135787964, 8.533627033233643, 46.49953579902649, 14.540770053863525, 78.24637413024902, 23.936108827590942, 57.076767921447754, 20.809253931045532, 16.157000064849854, 25.510277032852173, 42.182183027267456, 48.86280298233032, 10.406599044799805, 8.34318494796753, 26.40616488456726, 26.968794107437134, 8.194736003875732, 22.978408098220825, 12.227504014968872, 41.93264603614807, 45.58750796318054, 44.4084370136261, 23.701730966567993, 25.251353979110718, 61.529380798339844, 35.27771496772766, 60.924816846847534, 26.15317416191101, 25.807515144348145, 43.87355899810791, 39.15824604034424, 25.574424028396606, 9.838201999664307, 7.182857990264893, 44.88422513008118, 22.09676194190979, 14.444842100143433, 3.973579168319702, 8.743329048156738, 22.237916946411133, 67.11658096313477, 86.12382912635803, 22.502193927764893, 7.028619050979614, 34.63857698440552, 32.03589701652527, 7.500908136367798, 189.28244709968567, 7.242455005645752, 127.6742959022522, 20.672152042388916, 8.242249965667725, 40.349725008010864, 31.94671607017517, 47.072898864746094, 7.787010908126831, 31.115637063980103, 16.071006059646606, 19.174020051956177, 25.694226026535034, 34.62304902076721, 50.059834003448486, 36.97174906730652, 9.67567491531372, 49.99671983718872, 43.54519295692444, 16.36934494972229, 21.63838005065918, 50.13976001739502, 27.9060480594635, 12.680277824401855, 20.8143470287323, 9.010486841201782, 20.830451011657715, 11.849790096282959, 36.33182215690613, 46.59971809387207, 74.54730916023254, 17.49297595024109, 20.627811193466187, 44.132604122161865, 34.17398405075073, 8.708901166915894, 32.30885910987854, 20.970852851867676, 63.30642104148865, 7.360994815826416, 53.502482175827026, 7.090753078460693, 39.171935081481934, 4.273022890090942, 10.775048017501831, 13.018136978149414, 21.71437978744507, 22.47658896446228, 14.652714014053345, 10.468020915985107, 28.362325191497803, 18.921719074249268, 3.2571558952331543, 46.976166009902954, 20.532907962799072, 16.21273398399353, 66.20150399208069, 7.598962783813477, 13.973038911819458, 28.933873176574707, 13.060570001602173, 19.73978304862976, 54.52348804473877, 28.250703811645508, 64.82240104675293, 40.32398700714111, 11.848291873931885, 8.350929975509644, 14.129549026489258, 66.11742281913757, 10.35008192062378, 36.21397089958191, 26.652534008026123, 20.20671510696411, 23.04660701751709, 51.78632307052612, 10.804924964904785, 34.483762979507446, 41.84424114227295, 28.744660139083862, 3.4607441425323486, 56.723803997039795, 38.31390905380249, 9.645834922790527, 23.54004693031311, 38.79785203933716, 23.46192502975464, 32.71257519721985, 29.2253680229187, 7.895763158798218, 30.80203890800476, 19.7765851020813, 14.458822011947632, 24.83932113647461, 10.152522087097168, 5.767735004425049, 12.413152933120728, 58.676270961761475, 20.592376947402954, 22.0530788898468, 18.05499505996704, 17.742547035217285, 87.47665214538574, 1.8202991485595703, 46.84356212615967, 22.693931818008423, 48.296566009521484, 18.496315956115723, 8.385957956314087, 139.93340301513672, 7.909533977508545, 6.967350959777832, 20.065917015075684, 64.99881291389465, 52.78454279899597, 18.83749294281006, 18.880682945251465, 0.12446379661560059, 17.196474075317383, 32.8220009803772, 3.657799005508423, 43.65830111503601, 44.281005859375, 17.84966492652893, 72.12065505981445, 30.037914991378784, 23.699695825576782, 10.56787896156311, 104.19229817390442, 29.78861403465271, 30.5625319480896, 15.444647073745728, 58.13124704360962, 39.89869999885559, 5.309035062789917, 80.3564338684082, 25.24312400817871, 39.177983045578, 11.699826955795288, 48.27696394920349, 40.715054988861084, 194.4645619392395, 18.515738010406494, 39.2510039806366, 19.57010793685913, 19.37353491783142, 24.078897953033447, 37.81083798408508, 56.23412108421326, 16.374072074890137, 19.2512149810791, 24.275324821472168, 35.95135998725891, 15.822458028793335, 44.587533950805664, 32.513887882232666, 32.96687293052673, 19.52411985397339, 27.020489931106567, 8.138065099716187, 15.50960898399353, 24.24453592300415, 26.022313117980957, 61.192232847213745, 8.745821952819824, 38.760961055755615, 68.50740385055542, 17.79191493988037, 18.370287895202637, 41.494072914123535, 10.326492071151733, 23.264976024627686, 19.025771141052246, 1.2080779075622559, 0.07304096221923828, 22.430532932281494, 7.093254089355469, 2.184813976287842, 42.72989511489868, 5.5814149379730225, 9.175202131271362, 30.764899015426636, 3.634934902191162, 36.88770604133606, 8.766971111297607, 143.80776000022888, 53.10894298553467, 31.108498096466064, 60.314619064331055, 40.1903510093689, 31.498250007629395, 21.14940905570984, 6.441487073898315, 34.34446096420288, 13.072050094604492, 9.76863408088684, 31.385087966918945, 16.214675903320312, 60.43872809410095, 4.27272891998291, 9.721224069595337, 8.201711893081665, 4.4254631996154785, 26.025042057037354, 15.119830131530762, 37.43380784988403, 10.54403305053711, 6.453416109085083, 3.8794660568237305, 14.92979383468628, 42.48995018005371, 51.50385594367981, 1.5005788803100586, 180.9889199733734, 22.54396104812622, 6.174965143203735, 52.08615493774414, 18.546913146972656, 26.533066034317017, 21.30822992324829, 33.59306001663208, 37.89561486244202, 11.981481075286865, 9.965896844863892, 22.47996997833252, 4.363946914672852, 184.78708004951477, 22.118006944656372, 8.626314163208008, 10.45481014251709, 3.68947696685791, 19.67573118209839, 15.43391489982605, 30.318265914916992, 35.747857093811035, 65.19572615623474, 13.837411165237427, 0.10514712333679199, 26.1220440864563, 28.576523065567017, 61.51812982559204, 26.032312870025635, 5.907059907913208, 45.763036012649536, 30.07260799407959, 52.074305057525635, 60.083717823028564, 79.57925200462341, 10.266683101654053, 12.255610942840576, 86.16471123695374, 5.51138710975647, 43.42959809303284, 59.65814208984375, 38.219871044158936, 66.86784410476685, 44.28938317298889, 33.864213943481445, 30.876841068267822, 11.546425104141235, 17.688536882400513, 40.391560077667236, 25.500077962875366, 7.63624906539917, 10.815099954605103, 31.93349003791809, 10.84131383895874, 27.51426386833191, 182.3551480770111, 52.75881505012512]

syndicate_read_70 = [247.7883939743042, 38.16594099998474, 47.05233883857727, 11.901812076568604, 143.33486199378967, 15.860963106155396, 52.17451095581055, 88.37497401237488, 63.372703075408936, 21.725250959396362, 151.01179122924805, 92.54022312164307, 99.40061211585999, 59.89960479736328, 44.89312815666199, 24.887104988098145, 27.28909993171692, 122.57374501228333, 160.66179895401, 74.97288298606873, 53.43002891540527, 30.6295108795166, 51.55944299697876, 63.199784994125366, 55.5439350605011, 104.40158700942993, 5.912176847457886, 67.06714606285095, 63.784393072128296, 22.36066699028015, 166.33378505706787, 72.31931805610657, 295.4342420101166, 109.43560099601746, 12.70685601234436, 62.83068799972534, 16.205320119857788, 245.8704571723938, 15.179690837860107, 57.19021010398865, 25.035736083984375, 6.044436931610107, 77.56013917922974, 32.493407011032104, 39.07961106300354, 11.102776050567627, 54.86628198623657, 97.4198830127716, 20.287710189819336, 29.274291038513184, 21.356224060058594, 25.954897165298462, 84.0285120010376, 146.15585803985596, 99.82736110687256, 168.36374402046204, 153.1779980659485, 44.80197787284851, 28.133591175079346, 58.258567810058594, 0.047586917877197266, 51.48631310462952, 25.813580989837646, 81.76618599891663, 88.37132096290588, 27.298974990844727, 19.562064170837402, 43.390575885772705, 161.72654914855957, 130.05055499076843, 40.31539297103882, 29.795860052108765, 88.6541531085968, 28.73781394958496, 28.804272890090942, 230.38198399543762, 57.7625892162323, 11.602855920791626, 157.07485508918762, 17.351440906524658, 25.034307956695557, 57.52034592628479, 61.92991781234741, 107.42492485046387, 49.059813022613525, 66.4778950214386, 36.08463191986084, 151.5279700756073, 23.53144907951355, 82.72845506668091, 76.79539608955383, 142.85681796073914, 211.22071194648743, 13.55913496017456, 59.8834331035614, 74.07301712036133, 68.861154794693, 75.2053689956665, 149.19788908958435, 26.63163185119629, 11.928279161453247, 66.41299700737, 25.52988576889038, 59.762089014053345, 8.946290969848633, 96.40799903869629, 39.43010997772217, 167.6276581287384, 102.33595395088196, 16.756000995635986, 73.3546359539032, 29.96552801132202, 34.37919592857361, 162.60609412193298, 26.301739931106567, 65.41634607315063, 13.936769962310791, 35.61316514015198, 81.60150289535522, 257.4080319404602, 27.144778966903687, 19.743271112442017, 17.193694829940796, 19.76300311088562, 70.15408110618591, 23.587668895721436, 60.90977692604065, 95.56829595565796, 46.87908601760864, 81.57330012321472, 56.6549232006073, 29.742625951766968, 25.293583869934082, 71.21409511566162, 100.95779585838318, 22.62591791152954, 26.496868133544922, 156.0145239830017, 84.20133209228516, 133.6219449043274, 25.991481065750122, 40.451372146606445, 26.716960906982422, 97.98460698127747, 89.0018789768219, 18.533926963806152, 115.55461001396179, 10.140628099441528, 68.23807501792908, 81.95237183570862, 62.15288996696472, 19.236590147018433, 65.53892302513123, 106.18815612792969, 68.12169599533081, 96.69829988479614, 22.298327922821045, 44.13225698471069, 21.03453016281128, 79.16436910629272, 47.103196144104004, 37.91945481300354, 60.07425880432129, 15.560385942459106, 24.066749095916748, 76.01197290420532, 42.26164793968201, 72.96971797943115, 24.729590892791748, 94.60490417480469, 164.99254608154297, 74.62068390846252, 96.8501329421997, 21.0846209526062, 24.12160015106201, 24.01699209213257, 22.573126077651978, 121.44667601585388, 43.41178584098816, 74.89515805244446, 108.90524888038635, 29.43338394165039, 26.03812313079834, 153.1930902004242, 92.5930860042572, 60.42368507385254, 0.03471112251281738, 168.47074580192566, 39.22973108291626, 19.341248989105225, 101.417484998703, 72.71967887878418, 154.96666598320007, 54.378458976745605, 22.7982439994812, 80.94314503669739, 158.6080641746521, 152.40691494941711, 25.655948162078857, 25.725348949432373, 62.19737792015076, 38.293946981430054, 78.58219599723816, 62.52836990356445, 28.73146390914917, 110.81198906898499, 146.31300806999207, 5.702900171279907, 17.799094200134277, 21.487031936645508, 31.55418586730957, 13.497943878173828, 28.936875104904175, 58.22630310058594, 226.65638518333435, 50.32540702819824, 66.894366979599, 11.061822891235352, 21.886140823364258, 5.842562913894653, 61.55134415626526, 56.128467082977295, 13.04605484008789, 1.0083949565887451, 85.07279515266418, 151.60283613204956, 160.73668599128723, 10.991497039794922, 63.09360694885254, 175.05081987380981, 57.07581901550293, 4.975491046905518, 309.101114988327, 39.90011692047119, 58.304182052612305, 262.78590416908264, 308.28704595565796, 32.09169292449951, 35.96182298660278, 33.78642678260803, 22.487970113754272, 196.1400170326233, 0.05035114288330078, 229.26916003227234, 37.042304039001465, 17.691625833511353, 9.059203147888184, 56.917186975479126, 11.253529071807861, 55.44762206077576, 44.859540939331055, 69.99557900428772, 21.337432861328125, 191.96037912368774, 4.922644138336182, 48.85970711708069, 24.575129985809326, 53.863264083862305, 17.54073405265808, 30.778061866760254, 85.78556513786316, 122.7718939781189, 61.3357880115509, 232.6759090423584, 52.94359493255615, 28.754317045211792, 79.01666808128357, 166.60428595542908, 34.24548387527466, 13.769569873809814, 32.50581383705139, 168.186341047287, 16.024172067642212, 16.826730012893677, 8.374660968780518, 258.58123993873596, 61.545063972473145, 168.12623190879822, 144.55333995819092, 118.62232089042664, 74.76128196716309, 112.27095007896423, 15.096984148025513, 131.9155080318451, 127.19932198524475, 62.685847997665405, 112.70994400978088, 17.538100957870483, 143.11346817016602, 115.37027597427368, 26.98662805557251, 162.14156794548035, 59.7272789478302, 23.36065983772278, 14.320665121078491, 109.33928918838501, 157.6417510509491, 54.82247185707092, 128.45969700813293, 32.83720803260803, 21.287518978118896, 56.671923875808716, 140.33836817741394, 147.2207169532776, 10.053019046783447, 74.15168905258179, 279.2462410926819, 11.809585809707642, 158.08359003067017, 46.61002993583679, 12.786829948425293, 77.54965901374817, 28.901660203933716, 145.14685201644897, 45.176039934158325, 162.93389201164246, 59.71957206726074, 90.48742699623108, 132.27129697799683, 149.7989239692688, 54.45327687263489, 42.80717897415161, 18.418781042099, 38.34570598602295, 28.158233880996704, 136.98297309875488, 71.96765303611755, 25.329517126083374, 105.81255793571472, 98.8810248374939, 147.72081899642944, 31.670060873031616, 67.188481092453, 37.74508786201477, 43.8807590007782, 29.56591796875, 28.546529054641724, 27.027341842651367, 19.05649495124817, 81.97602605819702, 55.550719022750854, 80.61179208755493, 150.056706905365, 75.96661710739136, 70.80381393432617, 166.021821975708, 21.88487195968628, 26.205647230148315, 81.84659600257874, 54.22345995903015, 12.833751916885376, 24.595176935195923, 14.554741859436035, 18.05821204185486, 68.27081513404846, 76.91085600852966, 87.92399287223816, 51.989299058914185, 67.42449712753296, 21.04920792579651, 73.2573790550232, 108.88344597816467, 140.1898169517517, 40.12224888801575, 74.49316501617432, 35.84902095794678, 94.09691095352173, 32.931248903274536, 95.16734099388123]


def eval_dict( s ):
   ret = None
   try:
      exec("ret = " + s)
   except:
      return None

   return ret

if __name__ == "__main__":
   s3_cache_hit_100blk = []
   s3_cache_miss_100blk = []
   plc_cache_miss_100blk = []
   
   syn_first_read_times = {
      0.0: [],
      0.1: [],
      0.2: [],
      0.3: [],
      0.4: [],
      0.5: [],
      0.6: [],
      0.7: [],
      0.8: [],
      0.9: []
   }
   syn_last_read_times = {
      0.0: [],
      0.1: [],
      0.2: [],
      0.3: [],
      0.4: [],
      0.5: [],
      0.6: [],
      0.7: [],
      0.8: [],
      0.9: []
   }
   syn_write_times = {
      0.0: [],
      0.1: [],
      0.2: [],
      0.3: [],
      0.4: [],
      0.5: [],
      0.6: [],
      0.7: [],
      0.8: [],
      0.9: []
   }
   
   bad_files = []
   

   for expfile in os.listdir( sys.argv[1] ):

      expfd = open( os.path.join( sys.argv[1], expfile ), "r" )
      expdata = analysis.parse_experiments( expfd )
      expfd.close()

      if len(expdata['fcdistro']) > 0 and "12" not in expdata['fcdistro']:
         print >> sys.stderr, "%s: wrong distro '%s'" % (expfile, expdata['fcdistro'])
         continue

      syn_exp_nrnw = analysis.read_experiment_data( expdata, "NrNw.py" )
      if syn_exp_nrnw == None or len(syn_exp_nrnw) == 0 or syn_exp_nrnw[-1] == None:
         print "no data for " + expfile
         bad_files.append( expfile )
         continue

      syn_nrnw_data = eval_dict( syn_exp_nrnw[-1][0] )

      if syn_nrnw_data == None:
         print "no data for " + expfile
         bad_files.append( expfile )
         continue


      if type(syn_nrnw_data) != types.DictType:
         print "no data for " + expfile
         bad_files.append( expfile )
         continue

      # sanity check
      got_read_exception = False
      got_write_exception = False

      #print ""
      #print syn_nrnw_data
      #print ""
      
      if not syn_nrnw_data.has_key('read_file') or not syn_nrnw_data.has_key('write_file'):
         print "incomplete data for " + expfile
         bad_files.append( expfile)
         continue

      for filename in syn_nrnw_data['read_file']:
         for k in ['exception', 'size']:
            if not syn_nrnw_data['read_file'][filename].has_key(k):
               print "no key '%s' for %s" % (k, expfile)
               got_read_exception = True
               break

         if got_read_exception:
            break
         """
         for e in syn_nrnw_data['read_file'][filename]['exception']:
            if e != None:
               print 'got exception on read for ' + expfile
               got_read_exception = True
               break
         """
         if got_read_exception:
            break
         """
         for size in syn_nrnw_data['read_file'][filename]['size']:
            if size != 6144000:
               print "size too small for " + expfile
               got_read_exception = True
               break
         """
         """
         if len(syn_nrnw_data['read_file'][filename]['size']) != 50:
            print 'got %s reads for %s' % ( len(syn_nrnw_data['read_file'][filename]['size']), expfile )
            got_read_exception = True
            break
         """

      if got_read_exception:
         bad_files.append( expfile )
         continue

      for filename in syn_nrnw_data['write_file']:
         """
         for e in syn_nrnw_data['write_file'][filename]['exception']:
            if e != None:
               print 'got exception on write for ' + expfile
               got_write_exception = True
               break
         """
         if got_write_exception:
            break
         """
         if len(syn_nrnw_data['write_file'][filename]['exception']) != 9:
            print 'got %s writes for %s' % (len(syn_nrnw_data['write_file'][filename]['exception']), expfile)
            got_write_exception = True
            break
         """


      if got_write_exception:
         print "bad write data on " + expfile
         bad_files.append( expfile )
         continue

      # clean run; get first and last times
      for percentile in [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]:
         for filename in syn_nrnw_data['read_file']:
            start = int( percentile * 50 )
            end = start + 4

            if len(syn_nrnw_data['read_file'][filename]['end_recv']) > end and sum(syn_nrnw_data['read_file'][filename]['size'][start:end+1]) == 5 * 6144000:
               syn_first_read_times[percentile].append( syn_nrnw_data['read_file'][filename]['end_recv'][start] - syn_nrnw_data['read_file'][filename]['start_recv'][start] )
               syn_last_read_times[percentile].append( syn_nrnw_data['read_file'][filename]['end_recv'][end] - syn_nrnw_data['read_file'][filename]['start_recv'][end] )

         for filename in syn_nrnw_data['write_file']:
            if percentile < 0.1:
               syn_write_times[percentile].append(0)
            else:
               i = int(percentile * 10) - 1
               if len(syn_nrnw_data['write_file'][filename]['end_write']) > i and syn_nrnw_data['write_file'][filename]['exception'][i] == None:
                  syn_write_times[percentile].append( syn_nrnw_data['write_file'][filename]['end_write'][i] - syn_nrnw_data['write_file'][filename]['start_write'][i] )
               


   num_pts = 0
   for expfile in os.listdir( sys.argv[1] ):
      """
      if expfile in bad_files:
         continue
      """

      expfd = open( os.path.join( sys.argv[1], expfile ), "r" )
      expdata = analysis.parse_experiments( expfd )
      expfd.close()

      if len(expdata['fcdistro']) > 0 and "12" not in expdata['fcdistro']:
         print >> sys.stderr, "%s: wrong distro '%s'" % (expfile, expdata['fcdistro'])
         continue

      s3_exp_100blk = analysis.read_experiment_data( expdata, "Nr1w-x5-100blk-s3-chunked.py" )
      if s3_exp_100blk == None or len(s3_exp_100blk) == 0 or s3_exp_100blk[0] == None:
         print "no S3 data for " + expfile
         continue

      plc_exp_100blk = analysis.read_experiment_data( expdata, "Nr1w-x5-100blk-planetlab-cache-chunked.py" )
      if plc_exp_100blk == None or len(plc_exp_100blk) == 0 or plc_exp_100blk[0] == None:
         print "no plc data for " + expfile
         continue

      s3_data = eval_dict( s3_exp_100blk[-1][0] )
      plc_data = eval_dict( plc_exp_100blk[-1][0] )

      if s3_data == None:
         continue

      if plc_data == None:
         continue

      if len(s3_data['exception']) > 0:
         continue

      if len(plc_data['exception']) > 0:
         continue

      num_pts += 1
      s3_cache_miss_100blk.append( s3_data['end_recv'][0] - s3_data['start_recv'][0] )
      plc_cache_miss_100blk.append( plc_data['end_recv'][0] - plc_data['start_recv'][0] )
      s3_cache_hit_100blk.append( s3_data['end_recv'][-1] - s3_data['start_recv'][-1] )

   print "data points: " + str(num_pts)

   print len(plc_cache_miss_100blk)
   print len(s3_cache_miss_100blk)
   print len(syn_first_read_times[0.1])
   print len(syn_first_read_times[0.9])

   print len(syn_write_times[0.1])
   print len(syn_write_times[0.5])
   print len(syn_write_times[0.9])

   l_01 = len(syn_write_times[0.1])
   l_02 = len(syndicate_write_50)
   l_03 = len(syndicate_write_90)
   
   print "0.1: 50: %s, 90: %s, 99: %s" % (syn_write_times[0.1][l_01/2], syn_write_times[0.1][int(l_01*0.9)], syn_write_times[0.1][int(l_01*0.99)])
   print "0.5: 50: %s, 90: %s, 99: %s" % (syndicate_write_50[l_02/2], syndicate_write_50[int(l_02*0.9)], syndicate_write_50[int(l_02*0.99)])
   print "0.9: 50: %s, 90: %s, 99: %s" % (syndicate_write_90[l_03/2], syndicate_write_90[int(l_03*0.9)], syndicate_write_90[int(l_03*0.99)])
   
   # [syn_first_read_times[p] for p in [0.1,0.9]]
   #cdf_compare( [syn_first_read_times[p] for p in [0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9]], "Syndicate Download Times Following File Writes", "Seconds", np.arange(0,2000,200), "CDF(x)", np.arange(0,1.05,0.05))
   cdf_compare( [syn_write_times[p] for p in [0.1]] + [syndicate_write_30, syndicate_write_50, syndicate_write_70, syndicate_write_90], "Syndicate Write Times", "Seconds", np.arange(0,1000,100), "CDF(x)", np.arange(0,1.05,0.05), ['10 blocks', '30 blocks', '50 blocks', '70 blocks', '90 blocks'])
   cdf_compare( [syn_first_read_times[p] for p in [0.1]] + [syndicate_read_30, syndicate_read_50, syndicate_read_70, syndicate_read_10], "Syndicate Download Times Following File Writes", "Seconds", np.arange(0,600,60), "CDF(x)", np.arange(0,1.05,0.05), ["10% refresh", "30% refresh", "50% refresh", "70% refresh", "90% refresh"] )
   
   #cdf_compare( [s3_cache_miss_100blk, syn_first_read_times[0.0]], "Amazon S3 versus Syndicate Cache Miss Download Times", "Seconds", np.arange(0, 1000, 60), "CDF(x)", np.arange(0, 1.05, 0.05) )
   #cdf_compare( [s3_cache_hit_100blk, syn_last_read_times[0.0]], "Amazon S3 versus Syndicate Cache Hit Download Times", "Seconds", np.arange(0, 1000, 60), "CDF(x)", np.arange(0, 1.05, 0.05) )
   
   #cdf_compare( [s3_cache_miss_100blk, s3_cache_hit_100blk], "Amazon S3 Cache Miss and Cache Hit Download Times", "Seconds", np.arange(0, 1000, 60), "CDF(x)", np.arange(0, 1.05, 0.05) )
   
      
   