<commit_before>package com.softlayer.api.gen;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/** Entry point for the code generator */
public class Main {
    
    public static final String USAGE = 
        "Arguments:\n\n" +
        " --help - Show this.\n" +
        " --src DIR - Optional directory to generate source into. The com.softlayer.api.service package\n" +
        "   underneath this directory will be cleaned before code is generated. If not given,\n" +
        "   ../src/main/java is used\n" +
        " --url URL - Optional metadata URL. If not given, http://api.softlayer.com/metadata is used.\n" +
        " --whitelist FILENAME - Optional set of types, properties, and methods to whitelist. It is one\n" +
        "   entry per line and anything not entered will not be included in the generated client. Simply\n" +
        "   give the type name, the property as type_name.propertyName, or the method as type_name::methodName.\n" +
        "   This is mutually exclusive with --blacklist.\n" +
        " --blacklist FILENAME - Similar to, and mututally exclusive with, --whitelist. Anything included\n" +
        "   here will NOT be generated.\n";

    public static void main(String[] args) throws Exception {
        // Load up args
        File dir;
        URL url;
        Restriction whitelist;
        Restriction blacklist;
        try {
            List<String> argList = new ArrayList<String>(Arrays.asList(args));
            if (argList.contains("--help")) {
                System.out.println(USAGE);
                return;
            }
            String dirString = getArg("--src", argList);
            dir = new File(dirString != null ? dirString : "../src/main/java");
            String urlString = getArg("--url", argList);
            url = new URL(urlString != null ? urlString : "https://api.softlayer.com/metadata");
            whitelist = getRestriction(getArg("--whitelist", argList));<commit_msg>Add version on metadata URL for code generator<commit_after>package com.softlayer.api.gen;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/** Entry point for the code generator */
public class Main {
    
    public static final String USAGE = 
        "Arguments:\n\n" +
        " --help - Show this.\n" +
        " --src DIR - Optional directory to generate source into. The com.softlayer.api.service package\n" +
        "   underneath this directory will be cleaned before code is generated. If not given,\n" +
        "   ../src/main/java is used\n" +
        " --url URL - Optional metadata URL. If not given, http://api.softlayer.com/metadata is used.\n" +
        " --whitelist FILENAME - Optional set of types, properties, and methods to whitelist. It is one\n" +
        "   entry per line and anything not entered will not be included in the generated client. Simply\n" +
        "   give the type name, the property as type_name.propertyName, or the method as type_name::methodName.\n" +
        "   This is mutually exclusive with --blacklist.\n" +
        " --blacklist FILENAME - Similar to, and mututally exclusive with, --whitelist. Anything included\n" +
        "   here will NOT be generated.\n";

    public static void main(String[] args) throws Exception {
        // Load up args
        File dir;
        URL url;
        Restriction whitelist;
        Restriction blacklist;
        try {
            List<String> argList = new ArrayList<String>(Arrays.asList(args));
            if (argList.contains("--help")) {
                System.out.println(USAGE);
                return;
            }
            String dirString = getArg("--src", argList);
            dir = new File(dirString != null ? dirString : "../src/main/java");
            String urlString = getArg("--url", argList);
            url = new URL(urlString != null ? urlString : "https://api.softlayer.com/metadata/v3.1");
            whitelist = getRestriction(getArg("--whitelist", argList));
{'fraction_non_alphanumeric': 0.11488970588235294, 'fraction_numerical': 0.00045955882352941176, 'mean_word_length': 2.33819018404908, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1454289', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1208, 'n_words': 392}