This collection contains experiment and analysis code, stimuli and data for the manuscript 'Expected distractor context biases the attentional template for target shapes' by Maƫlle Lerebourg, Floris de Lange and Marius Peelen. preprint: https://doi.org/10.1101/2022.10.18.512686 The folders labelled ExpX contain the content of each github folder used to run the experiments on Pavlovia. The individual experiments can also be run using the following links: https://run.pavlovia.org/mlerebourg/dimsntempsver1 (Exp1) https://run.pavlovia.org/mlerebourg/dimsntempsver4 (Exp 2) https://run.pavlovia.org/mlerebourg/dimsntempsver3 (Exp3) https://run.pavlovia.org/mlerebourg/DimsntempsVer5 (Exp 5) to recreate analyses, run the provided matlab files, or use the csv files to rerun the statistics in another program For questions/requests/comments, please contact maelle.lerebourg@donders.ru.nl General note regarding variable naming in csv/matlab files om - orientation match (unique orientation trials, orientation context) omm - orientation mismatch (unique orientation trials, rectilinearity context) rm - rectilinearity match (unique rectilinearity trials, rectilinearity context) rmm - rectilinearity mismatch (unique rectilinearity trials, orientation context) d_r = context facilitation rectilinearity trials (difference rm, rmm) d_o = context facilitation orientation trials (difference om, omm) d = main effect context match/ context facilitation ((omm - om)/2 + (rmm - rm)/2 = d_r/2 + d_o/2) d_tr = difference trialtype/ main effect trialtype ((om + omm)/2 - (rm + rmm)/2 ) d_int = interaction trial type x context match ((omm - om) - (rmm - rm)) = d_r - d_o