<commit_before>package org.adligo.i.log.client.models;

import org.adligo.i.log.client.models.LogUrl;
import org.adligo.tests.ATest;

public class LogUrlTests extends ATest {

	public void testCgi() {
		LogUrl url = new LogUrl("hey?", true);
		assertEquals("hey?",url.toString());
		assertEquals("",url.toQueryString());
		
		url.append(LogUrl.LEVEL, 1);
		
		assertEquals("hey?l=1",url.toString());
		assertEquals("l=1",url.toQueryString());
		
		url.addMissingParameters();
		assertEquals("hey?l=1&m=&s=&t=&n=&w=FAIL_ON_PURPOSE",url.toString());
		//assertEquals("hey?l=1&m=&s=&t=&n=&w=",url.toString());
		assertEquals("l=1&m=&s=&t=&n=&w=",url.toQueryString());
		
		url = new LogUrl("hey?", true);
		url.append(LogUrl.MESSAGE, "mes");
		
		assertEquals("hey?m=mes",url.toString());
		assertEquals("m=mes",url.toQueryString());
		
		url.addMissingParameters();
		assertEquals("hey?m=mes&l=0&s=&t=&n=&w=",url.toString());
		assertEquals("m=mes&l=0&s=&t=&n=&w=",url.toQueryString());
		
		
		url = new LogUrl("hey?", true);
		url.append(LogUrl.NAME, "name");
		
		assertEquals("hey?n=name",url.toString());
		assertEquals("n=name",url.toQueryString());
		
		url.addMissingParameters();
		assertEquals("hey?n=name&l=0&m=&s=&t=&w=",url.toString());
		assertEquals("n=name&l=0&m=&s=&t=&w=",url.toQueryString());
		
		url = new LogUrl("hey?", true);
		url.append(LogUrl.STACK, "stack");
		
		assertEquals("hey?s=stack",url.toString());<commit_msg>ok hudson is doing what I want now<commit_after>package org.adligo.i.log.client.models;

import org.adligo.i.log.client.models.LogUrl;
import org.adligo.tests.ATest;

public class LogUrlTests extends ATest {

	public void testCgi() {
		LogUrl url = new LogUrl("hey?", true);
		assertEquals("hey?",url.toString());
		assertEquals("",url.toQueryString());
		
		url.append(LogUrl.LEVEL, 1);
		
		assertEquals("hey?l=1",url.toString());
		assertEquals("l=1",url.toQueryString());
		
		url.addMissingParameters();
		assertEquals("hey?l=1&m=&s=&t=&n=&w=",url.toString());
		//assertEquals("hey?l=1&m=&s=&t=&n=&w=",url.toString());
		assertEquals("l=1&m=&s=&t=&n=&w=",url.toQueryString());
		
		url = new LogUrl("hey?", true);
		url.append(LogUrl.MESSAGE, "mes");
		
		assertEquals("hey?m=mes",url.toString());
		assertEquals("m=mes",url.toQueryString());
		
		url.addMissingParameters();
		assertEquals("hey?m=mes&l=0&s=&t=&n=&w=",url.toString());
		assertEquals("m=mes&l=0&s=&t=&n=&w=",url.toQueryString());
		
		
		url = new LogUrl("hey?", true);
		url.append(LogUrl.NAME, "name");
		
		assertEquals("hey?n=name",url.toString());
		assertEquals("n=name",url.toQueryString());
		
		url.addMissingParameters();
		assertEquals("hey?n=name&l=0&m=&s=&t=&w=",url.toString());
		assertEquals("n=name&l=0&m=&s=&t=&w=",url.toQueryString());
		
		url = new LogUrl("hey?", true);
		url.append(LogUrl.STACK, "stack");
		
		assertEquals("hey?s=stack",url.toString());
{'fraction_non_alphanumeric': 0.23289564616447822, 'fraction_numerical': 0.006910850034554251, 'mean_word_length': 6.095588235294118, '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': '1557550', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1035, 'n_words': 122}