<commit_before>package ru.nsu.bobrofon.easysshfs.mountpointList;


import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;

import org.json.JSONArray;
import org.json.JSONException;

import java.util.LinkedList;
import java.util.List;

import ru.nsu.bobrofon.easysshfs.log.LogSingleton;
import ru.nsu.bobrofon.easysshfs.mountpointList.mountpoint.MountPoint;

public class MountPointsList {
	public final static String TAG = "MOUNT_POINTS_LIST";
	public final static String STORAGE_FILE = "mountpoints";

	private List<MountPoint> mMountPoints;

	private static MountPointsList self;

	private MountPointsList() {
	}

	public List<MountPoint> getMountPoints() {
		return mMountPoints;
	}

	public void autoMount(final Context context) {
		for (final MountPoint item : mMountPoints) {
			if (item.getAutoMount()/* && !item.isMounted()*/) {
				item.mount(context);
			}
		}
	}

	public void umount(final Context context) {
		for (final MountPoint item: mMountPoints) {
			item.umount(false, context);
		}
	}

	public void registerObserver(final MountPoint.Observer observer, final Context context) {
		for (final MountPoint item : mMountPoints) {
			item.registerObserver(observer, context);
		}<commit_msg>fix mount list warnings<commit_after>package ru.nsu.bobrofon.easysshfs.mountpointList;


import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;

import org.json.JSONArray;
import org.json.JSONException;

import java.util.LinkedList;
import java.util.List;

import ru.nsu.bobrofon.easysshfs.log.LogSingleton;
import ru.nsu.bobrofon.easysshfs.mountpointList.mountpoint.MountPoint;

public class MountPointsList {
	private final static String TAG = "MOUNT_POINTS_LIST";
	private final static String STORAGE_FILE = "mountpoints";

	private List<MountPoint> mMountPoints;

	private static MountPointsList self;

	private MountPointsList() {
	}

	public List<MountPoint> getMountPoints() {
		return mMountPoints;
	}

	public void autoMount(final Context context) {
		for (final MountPoint item : mMountPoints) {
			if (item.getAutoMount()/* && !item.isMounted()*/) {
				item.mount(context);
			}
		}
	}

	public void umount(final Context context) {
		for (final MountPoint item: mMountPoints) {
			item.umount(false, context);
		}
	}

	public void registerObserver(final MountPoint.Observer observer, final Context context) {
		for (final MountPoint item : mMountPoints) {
			item.registerObserver(observer, context);
		}
{'fraction_non_alphanumeric': 0.09968102073365231, 'fraction_numerical': 0.0, 'mean_word_length': 5.0603864734299515, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2564673', 'n_tokens_mistral': 852, 'n_tokens_neox': 784, 'n_words': 183}