<commit_before>package org.literacyapp.appstore.service;

import android.app.job.JobParameters;
import android.app.job.JobService;
import android.util.Log;

import org.literacyapp.appstore.task.DownloadApplicationsAsyncTask;
import org.literacyapp.appstore.util.ConnectivityHelper;

public class ApplicationSynchronizationService extends JobService {

    @Override
    public boolean onStartJob(JobParameters jobParameters) {
        Log.i(getClass().getName(), "onStartJob");

        boolean isWifiEnabled = ConnectivityHelper.isWifiEnabled(getApplicationContext());
        Log.i(getClass().getName(), "isWifiEnabled: " + isWifiEnabled);

        boolean isWifiConnected = ConnectivityHelper.isWifiConnected(getApplicationContext());
        Log.i(getClass().getName(), "isWifiConnected: " + isWifiConnected);

        // Start processing work
        new DownloadApplicationsAsyncTask(getApplicationContext()).execute();
        // TODO: call jobFinished once AsyncTask completes

        boolean isWorkProcessingPending = false;
        return isWorkProcessingPending;
    }

    @Override
    public boolean onStopJob(JobParameters jobParameters) {
        Log.i(getClass().getName(), "onStopJob");

        // Job execution stopped, even before jobFinished was called.
        // TODO: stop processing work?

        boolean isJobToBeRescheduled = false;
        return isJobToBeRescheduled;
    }
}<commit_msg>#26 Changes after code review<commit_after>package org.literacyapp.appstore.service;

import android.app.job.JobParameters;
import android.app.job.JobService;
import android.util.Log;

import org.literacyapp.appstore.task.DownloadApplicationsAsyncTask;

public class ApplicationSynchronizationService extends JobService {

    @Override
    public boolean onStartJob(JobParameters jobParameters) {
        Log.i(getClass().getName(), "onStartJob");

        // Start processing work
        new DownloadApplicationsAsyncTask(getApplicationContext()).execute();
        // TODO: call jobFinished once AsyncTask completes

        boolean isWorkProcessingPending = false;
        return isWorkProcessingPending;
    }

    @Override
    public boolean onStopJob(JobParameters jobParameters) {
        Log.i(getClass().getName(), "onStopJob");

        // Job execution stopped, even before jobFinished was called.
        // TODO: stop processing work?

        boolean isJobToBeRescheduled = false;
        return isJobToBeRescheduled;
    }
}
{'fraction_non_alphanumeric': 0.08939455505891913, 'fraction_numerical': 0.0008126777732629012, 'mean_word_length': 3.7805825242718445, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5111332', 'n_tokens_mistral': 644, 'n_tokens_neox': 635, 'n_words': 142}