<commit_before>package nl.mpi.kinnate.userstorage;

import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;
import javax.swing.JLabel;
import nl.mpi.arbil.data.importexport.ShibbolethNegotiator;
import nl.mpi.arbil.userstorage.SessionStorage;
import nl.mpi.arbil.util.BugCatcher;
import nl.mpi.arbil.util.DownloadAbortFlag;

/**
 *  Document   : KinSessionStorage
 *  Created on : Dec 9, 2011, 10:20:43 AM
 *  Author     : <NAME>
 */
public class KinSessionStorage implements SessionStorage {

    static private KinSessionStorage singleInstance = null;

    static synchronized public KinSessionStorage getSingleInstance() {
        if (singleInstance == null) {
            singleInstance = new KinSessionStorage();
//            singleInstance.checkForMultipleStorageDirectories();
            HttpURLConnection.setFollowRedirects(false); // how sad it is that this method is static and global, sigh
        }
        return singleInstance;
    }
    private static BugCatcher bugCatcher;

    public static void setBugCatcher(BugCatcher bugCatcherInstance) {
        bugCatcher = bugCatcherInstance;
    }

    public void changeCacheDirectory(File preferedCacheDirectory, boolean moveFiles) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getCacheDirectory() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getExportPath(String pathString, String destinationDirectory) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getFavouritesDir() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String[] getLocationOptions() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public URI getNewArbilFileName(File parentDirectory, String nodeType) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public URI getOriginatingUri(URI locationInCacheURI) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getSaveLocation(String pathString) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getStorageDirectory() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getTypeCheckerConfig() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean isTrackTableSelection() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean isUseLanguageIdInColumnName() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean loadBoolean(String filename, boolean defaultValue) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Object loadObject(String filename) throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String loadString(String filename) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String[] loadStringArray(String filename) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean pathIsInFavourites(File fullTestFile) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean pathIsInsideCache(File fullTestFile) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean replaceCacheCopy(String pathString) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveBoolean(String filename, boolean storableValue) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveObject(Serializable object, String filename) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean saveRemoteResource(URL targetUrl, File destinationFile, ShibbolethNegotiator shibbolethNegotiator, boolean expireCacheCopy, DownloadAbortFlag abortFlag, JLabel progressLabel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveString(String filename, String storableValue) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveStringArray(String filename, String[] storableValue) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void setTrackTableSelection(boolean trackTableSelection) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void setUseLanguageIdInColumnName(boolean useLanguageIdInColumnName) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File updateCache(String pathString, int expireCacheDays) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File updateCache(String pathString, ShibbolethNegotiator shibbolethNegotiator, boolean expireCacheCopy, DownloadAbortFlag abortFlag, JLabel progressLabel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getFromCache(String pathString, boolean followRedirect) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean saveRemoteResource(URL targetUrl, File destinationFile, ShibbolethNegotiator shibbolethNegotiator, boolean expireCacheCopy, boolean followRedirect, DownloadAbortFlag abortFlag, JLabel progressLabel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File updateCache(String pathString, int expireCacheDays, boolean followRedirect) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File updateCache(String pathString, ShibbolethNegotiator shibbolethNegotiator, boolean expireCacheCopy, boolean followRedirect, DownloadAbortFlag abortFlag, JLabel progressLabel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}<commit_msg>Made changes to match the latest Arbil update.<commit_after>package nl.mpi.kinnate.userstorage;

import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.net.URI;
import java.net.URL;
import javax.swing.JLabel;
import nl.mpi.arbil.data.importexport.ShibbolethNegotiator;
import nl.mpi.arbil.userstorage.ArbilSessionStorage;
import nl.mpi.arbil.userstorage.SessionStorage;
import nl.mpi.arbil.util.BugCatcher;
import nl.mpi.arbil.util.DownloadAbortFlag;

/**
 *  Document   : KinSessionStorage
 *  Created on : Dec 9, 2011, 10:20:43 AM
 *  Author     : <NAME>
 */
public class KinSessionStorage implements SessionStorage {

//    static private SessionStorage singleInstance = null;
    static synchronized public SessionStorage getSingleInstance() {
//        if (singleInstance == null) {
//            singleInstance = new KinSessionStorage();
////            singleInstance.checkForMultipleStorageDirectories();
//            HttpURLConnection.setFollowRedirects(false); // how sad it is that this method is static and global, sigh
//        }
//        return singleInstance;
        return ArbilSessionStorage.getSingleInstance();
    }
//    private static BugCatcher bugCatcher;

    public static void setBugCatcher(BugCatcher bugCatcherInstance) {
//        bugCatcher = bugCatcherInstance;
        ArbilSessionStorage.setBugCatcher(bugCatcherInstance);
    }

    public void changeCacheDirectory(File preferedCacheDirectory, boolean moveFiles) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getCacheDirectory() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getExportPath(String pathString, String destinationDirectory) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getFavouritesDir() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getFromCache(String pathString, boolean followRedirect) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String[] getLocationOptions() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public URI getNewArbilFileName(File parentDirectory, String nodeType) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public URI getOriginatingUri(URI locationInCacheURI) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getSaveLocation(String pathString) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getStorageDirectory() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File getTypeCheckerConfig() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean isTrackTableSelection() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean isUseLanguageIdInColumnName() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean loadBoolean(String filename, boolean defaultValue) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Object loadObject(String filename) throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String loadString(String filename) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String[] loadStringArray(String filename) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean pathIsInFavourites(File fullTestFile) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean pathIsInsideCache(File fullTestFile) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean replaceCacheCopy(String pathString) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveBoolean(String filename, boolean storableValue) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveObject(Serializable object, String filename) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean saveRemoteResource(URL targetUrl, File destinationFile, ShibbolethNegotiator shibbolethNegotiator, boolean expireCacheCopy, boolean followRedirect, DownloadAbortFlag abortFlag, JLabel progressLabel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveString(String filename, String storableValue) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void saveStringArray(String filename, String[] storableValue) throws IOException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void setTrackTableSelection(boolean trackTableSelection) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void setUseLanguageIdInColumnName(boolean useLanguageIdInColumnName) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File updateCache(String pathString, int expireCacheDays, boolean followRedirect) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public File updateCache(String pathString, ShibbolethNegotiator shibbolethNegotiator, boolean expireCacheCopy, boolean followRedirect, DownloadAbortFlag abortFlag, JLabel progressLabel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
{'fraction_non_alphanumeric': 0.07572622693039809, 'fraction_numerical': 0.0018207398824795166, 'mean_word_length': 3.9565217391304346, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2562769', 'n_tokens_mistral': 2972, 'n_tokens_neox': 2847, 'n_words': 835}