<commit_before>require(['app/API','../../examples/dscore/Scorer'], function(API,Scorer) {

	var attribute1 = 'Bad Words';
	var attribute2 = 'Good Words';
	var category1 = 'Black People';
	var category2 = 'White People';


	API.addSettings('canvas',{
		maxWidth: 800,
		proportions : 0.8
	});

	API.addSettings('base_url',{
		image : '../examples/images',
		template : '../../examples/IAT'
	});

	API.addSettings('canvas',{
		background: '#EEEEEE',
	});

	API.addSettings('logger',{
		url : '/implicit/PiPlayerApplet'
	});

	//the Scorer that computes the user feedback
	Scorer.addSettings('compute',{
		errorVar:'score',
		condVar:"condition",
		//condition 1
		cond1VarValues: [
			attribute1 + ',' + category1 + '/' + attribute2 + ',' + category2
		],
		//condition 2
		cond2VarValues: [
			attribute1 + ',' + category2 + '/' + attribute2 + ',' + category1
		],
		parcelVar : "parcel",
		parcelValue : ['first','second'],
		fastRT : 150, //Below this reaction time, the latency is considered extremely fast.
		maxFastTrialsRate : 0.1, //Above this % of extremely fast responses within a condition, the participant is considered too fast.
		minRT : 400, //Below this latency
		maxRT : 10000, //above this
		errorLatency : {use:"false", penalty:600, useForSTD:true},//ignore error respones
		postSettings : {score:"score",msg:"feedback",url:"/implicit/scorer"}
	});

	Scorer.addSettings('message',{
		MessageDef: [
			{ cut:'-0.65', message:'Your data suggest a strong implicit preference for Black People compared to White People' },
			{ cut:'-0.35', message:'Your data suggest a moderate implicit preference for Black People compared to White People.' },
			{ cut:'-0.15', message:'Your data suggest a slight implicit preference for Black People compared to White People.' },
			{ cut:'0', message:'Your data suggest little to no difference in implicit preference between Black People and White People.' },
			{ cut:'0.15', message:'Your data suggest a slight implicit preference for White People compared to Black People' },
			{ cut:'0.35', message:'Your data suggest a moderate implicit preference for White People compared to Black People' },<commit_msg>changed errorVar to ErrorVar for scorer<commit_after>require(['app/API','../../examples/dscore/Scorer'], function(API,Scorer,d) {

	var attribute1 = 'Bad Words';
	var attribute2 = 'Good Words';
	var category1 = 'Black People';
	var category2 = 'White People';


	API.addSettings('canvas',{
		maxWidth: 800,
		proportions : 0.8
	});

	API.addSettings('base_url',{
		image : '../examples/images',
		template : '../../examples/IAT'
	});

	API.addSettings('canvas',{
		background: '#EEEEEE',
	});

	API.addSettings('logger',{
		url : '/implicit/PiPlayerApplet'
	});

	//the Scorer that computes the user feedback
	Scorer.addSettings('compute',{
		ErrorVar:'score',
		condVar:"condition",
		//condition 1
		cond1VarValues: [
			attribute1 + ',' + category1 + '/' + attribute2 + ',' + category2
		],
		//condition 2
		cond2VarValues: [
			attribute1 + ',' + category2 + '/' + attribute2 + ',' + category1
		],
		parcelVar : "parcel",
		parcelValue : ['first','second'],
		fastRT : 150, //Below this reaction time, the latency is considered extremely fast.
		maxFastTrialsRate : 0.1, //Above this % of extremely fast responses within a condition, the participant is considered too fast.
		minRT : 400, //Below this latency
		maxRT : 10000, //above this
		errorLatency : {use:"false", penalty:600, useForSTD:true},//ignore error respones
		postSettings : {score:"score",msg:"feedback",url:"/implicit/scorer"}
	});

	Scorer.addSettings('message',{
		MessageDef: [
			{ cut:'-0.65', message:'Your data suggest a strong implicit preference for Black People compared to White People' },
			{ cut:'-0.35', message:'Your data suggest a moderate implicit preference for Black People compared to White People.' },
			{ cut:'-0.15', message:'Your data suggest a slight implicit preference for Black People compared to White People.' },
			{ cut:'0', message:'Your data suggest little to no difference in implicit preference between Black People and White People.' },
			{ cut:'0.15', message:'Your data suggest a slight implicit preference for White People compared to Black People' },
			{ cut:'0.35', message:'Your data suggest a moderate implicit preference for White People compared to Black People' },
{'fraction_non_alphanumeric': 0.14413793103448275, 'fraction_numerical': 0.02436781609195402, 'mean_word_length': 4.192124105011933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3342057', 'n_tokens_mistral': 1425, 'n_tokens_neox': 1252, 'n_words': 409}