<commit_before>/*
 * Copyright (C) 2012 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.auraframework.util.adapter;

import java.io.File;
import java.io.IOException;

import org.auraframework.test.UnitTestCase;

import org.junit.Ignore;

public class GitSourceControlAdapterTest extends UnitTestCase {
    public GitSourceControlAdapterTest(String name){
        super(name);
    }

    public void testCanCheckout() {
        //FIXME: nothing to test.
    }

    public void testCheckout() {
        //FIXME: nothing to test.
    }

    public void testAdd() {
        //FIXME: nothing to test.
    }

    public void testWriteIfDifferentInvalidFile() {
        StringBuilder sb = new StringBuilder("new data");
        File badFile = new File("/god/I/hope/this/file/doesnt/exist/and/no/one/creates/it");
        SourceControlAdapterImpl scai = new SourceControlAdapterImpl();

        try {
            scai.writeIfDifferent(sb, badFile);
            fail("should have thrown an IO exception");
        } catch (IOException expected) {
            // FIXME: Check for type of exception.
        }
    }

    public void testWriteIfDifferentValid() {
        // FIXME: come up with a test scenario.
    }
}
<commit_msg>Fixing an unused import.<commit_after>/*
 * Copyright (C) 2012 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.auraframework.util.adapter;

import java.io.File;
import java.io.IOException;

import org.auraframework.test.UnitTestCase;

public class GitSourceControlAdapterTest extends UnitTestCase {
    public GitSourceControlAdapterTest(String name){
        super(name);
    }

    public void testCanCheckout() {
        //FIXME: nothing to test.
    }

    public void testCheckout() {
        //FIXME: nothing to test.
    }

    public void testAdd() {
        //FIXME: nothing to test.
    }

    public void testWriteIfDifferentInvalidFile() {
        StringBuilder sb = new StringBuilder("new data");
        File badFile = new File("/god/I/hope/this/file/doesnt/exist/and/no/one/creates/it");
        SourceControlAdapterImpl scai = new SourceControlAdapterImpl();

        try {
            scai.writeIfDifferent(sb, badFile);
            fail("should have thrown an IO exception");
        } catch (IOException expected) {
            // FIXME: Check for type of exception.
        }
    }

    public void testWriteIfDifferentValid() {
        // FIXME: come up with a test scenario.
    }
}

{'fraction_non_alphanumeric': 0.08959455628012475, 'fraction_numerical': 0.004536433229373405, 'mean_word_length': 2.8017241379310347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6965262', 'n_tokens_mistral': 956, 'n_tokens_neox': 927, 'n_words': 337}