<commit_before>package org.atlasapi.query.v4.meta;

import static com.google.common.base.Preconditions.checkNotNull;


public class MetaApiLinkCreator implements LinkCreator {
    
    private final String atlasUriBase;
    
    public MetaApiLinkCreator(String atlasUriBase) {
        this.atlasUriBase = checkNotNull(atlasUriBase);
    }

    @Override
    public String createModelLink(String type) {
        StringBuilder modelLink = new StringBuilder(); 
        
//        String platform = Configurer.getPlatform();
//        // TODO this is a MASSIVELY ENORMOUS HACK, but along the right lines
//        modelLink.append("http://");
//        if ("STAGE".equalsIgnoreCase(platform)) {
//            modelLink.append("stage.atlas.metabroadcast.com");
//        } else if ("PROD".equalsIgnoreCase(platform)) {
//            modelLink.append("atlas.metabroadcast.com");
//        } else {
//            modelLink.append("dev.mbst.tv:8080");
//        }
        modelLink.append(atlasUriBase);
        modelLink.append("/4/model_classes/"); 
        modelLink.append(type);
        modelLink.append(".json");
        
        return modelLink.toString();<commit_msg>Correct path for LinkCreator<commit_after>package org.atlasapi.query.v4.meta;

import static com.google.common.base.Preconditions.checkNotNull;


public class MetaApiLinkCreator implements LinkCreator {
    
    private final String atlasUriBase;
    
    public MetaApiLinkCreator(String atlasUriBase) {
        this.atlasUriBase = checkNotNull(atlasUriBase);
    }

    @Override
    public String createModelLink(String type) {
        StringBuilder modelLink = new StringBuilder(); 
        
//        String platform = Configurer.getPlatform();
//        // TODO this is a MASSIVELY ENORMOUS HACK, but along the right lines
//        modelLink.append("http://");
//        if ("STAGE".equalsIgnoreCase(platform)) {
//            modelLink.append("stage.atlas.metabroadcast.com");
//        } else if ("PROD".equalsIgnoreCase(platform)) {
//            modelLink.append("atlas.metabroadcast.com");
//        } else {
//            modelLink.append("dev.mbst.tv:8080");
//        }
        modelLink.append(atlasUriBase);
        modelLink.append("/4/meta/model_classes/"); 
        modelLink.append(type);
        modelLink.append(".json");
        
        return modelLink.toString();
{'fraction_non_alphanumeric': 0.12245762711864407, 'fraction_numerical': 0.005084745762711864, 'mean_word_length': 2.5397301349325336, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3404982', 'n_tokens_mistral': 683, 'n_tokens_neox': 667, 'n_words': 120}