<commit_before>package me.foxaice.smartlight.fragments.modes.music_mode.presenter;

import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.os.Process;

import me.foxaice.smartlight.fragments.modes.ModeBasePresenter;
import me.foxaice.smartlight.fragments.modes.music_mode.model.IMusicInfo;
import me.foxaice.smartlight.fragments.modes.music_mode.view.IMusicModeView;
import me.foxaice.smartlight.utils.FrequencyCalculator;


public class MusicModePresenter extends ModeBasePresenter<IMusicModeView> implements IMusicModePresenter {
    private IMusicInfo mMusicInfo;
    private String[] mBytesColors;


    @Override
    public void onTouchPlayButton() {

    }

    @Override
    public void onTouchStopButton() {

    }

    @Override
    public void loadMusicInfoFromPreferences() {

    }<commit_msg>implemented loadMusicInfoFromPreferences method in MusicModePresenter<commit_after>package me.foxaice.smartlight.fragments.modes.music_mode.presenter;

import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.os.Process;

import me.foxaice.smartlight.fragments.modes.ModeBasePresenter;
import me.foxaice.smartlight.fragments.modes.music_mode.model.IMusicInfo;
import me.foxaice.smartlight.fragments.modes.music_mode.view.IMusicModeView;
import me.foxaice.smartlight.utils.FrequencyCalculator;


public class MusicModePresenter extends ModeBasePresenter<IMusicModeView> implements IMusicModePresenter {
    private IMusicInfo mMusicInfo;
    private String[] mBytesColors;


    @Override
    public void onTouchPlayButton() {

    }

    @Override
    public void onTouchStopButton() {

    }

    @Override
    public void loadMusicInfoFromPreferences() {
        mMusicInfo = sharedPreferences.getMusicInfo();
        modeView.setMaxVolumeText(mMusicInfo.getMaxVolumeThreshold());
        modeView.setMinVolumeText(mMusicInfo.getMinVolumeThreshold());
        modeView.setColorModeText(mMusicInfo.getColorMode());
        modeView.setWaveFormVisible(mMusicInfo.getSoundViewType() != IMusicInfo.ViewType.NONE);
    }
{'fraction_non_alphanumeric': 0.08333333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 5.210982658959537, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4159555', 'n_tokens_mistral': 663, 'n_tokens_neox': 636, 'n_words': 97}