<commit_before>package org.stepic.droid.util;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.stepic.droid.configuration.Config;
import org.stepik.android.model.Course;
import org.stepik.android.model.Unit;

import java.util.List;

public class StepikLogicHelper {
    public static long[] fromUnitsToLessonIds(List<Unit> units) {
        long[] lessonsIds = new long[units.size()];
        for (int i = 0; i < units.size(); i++) {
            Unit unit = units.get(i);
            if (unit != null) {
                lessonsIds[i] = unit.getLesson();
            }
        }
        return lessonsIds;
    }

    @NotNull
    public static String getPathForCourseOrEmpty(@Nullable Course course, Config config) {
        if (course == null) {
            return "";
        }
        return course.getCover() == null ? "" : config.getBaseUrl() + course.getCover();
    }
}<commit_msg>change output of method to just course cover<commit_after>package org.stepic.droid.util;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.stepik.android.model.Course;
import org.stepik.android.model.Unit;

import java.util.List;

public class StepikLogicHelper {
    public static long[] fromUnitsToLessonIds(List<Unit> units) {
        long[] lessonsIds = new long[units.size()];
        for (int i = 0; i < units.size(); i++) {
            Unit unit = units.get(i);
            if (unit != null) {
                lessonsIds[i] = unit.getLesson();
            }
        }
        return lessonsIds;
    }

    @NotNull
    public static String getPathForCourseOrEmpty(@Nullable Course course) {
        if (course == null) {
            return "";
        }
        return course.getCover() == null ? "" : course.getCover();
    }
}
{'fraction_non_alphanumeric': 0.12334801762114538, 'fraction_numerical': 0.0011013215859030838, 'mean_word_length': 2.528155339805825, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6742490', 'n_tokens_mistral': 544, 'n_tokens_neox': 532, 'n_words': 124}