<commit_before>package com.softmotions.ncms.mhttl;

import com.softmotions.ncms.asm.render.AsmRendererContext;

import org.apache.commons.beanutils.BeanUtils;

/**
 * @author <NAME> (<EMAIL>)
 */
public final class Image extends ImageMeta {

    private final AsmRendererContext ctx;

    public Image(AsmRendererContext ctx) {
        this.ctx = ctx;
    }

    public String getLink() {
        String link = ctx.getMediaRepository().resolveFileLink(id);
        if (resize || cover) {
            if (optionsWidth != null) {
                link += "?w=" + optionsWidth;
            }
            if (optionsHeight != null) {<commit_msg>minors<commit_after>package com.softmotions.ncms.mhttl;

import com.softmotions.ncms.asm.render.AsmRendererContext;

import org.apache.commons.beanutils.BeanUtils;

/**
 * @author <NAME> (<EMAIL>)
 */
public class Image extends ImageMeta {

    private final AsmRendererContext ctx;

    private String forceLink;

    public Image(AsmRendererContext ctx) {
        this.ctx = ctx;
    }

    public Image(AsmRendererContext ctx, String forceLink) {
        this.forceLink = forceLink;
        this.ctx = ctx;
    }

    public String getLink() {
        if (forceLink != null) {
            return forceLink;
        }
        String link = ctx.getMediaRepository().resolveFileLink(id);
        if (resize || cover) {
            if (optionsWidth != null) {
                link += "?w=" + optionsWidth;
            }
            if (optionsHeight != null) {
{'fraction_non_alphanumeric': 0.11274182788525684, 'fraction_numerical': 0.0, 'mean_word_length': 2.4403669724770642, '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': '4377818', 'n_tokens_mistral': 446, 'n_tokens_neox': 433, 'n_words': 100}