<commit_before>package ceylon.language;

import java.util.StringTokenizer;

import com.redhat.ceylon.compiler.java.metadata.Ceylon;
import com.redhat.ceylon.compiler.java.metadata.Class;
import com.redhat.ceylon.compiler.java.metadata.Defaulted;
import com.redhat.ceylon.compiler.java.metadata.Ignore;
import com.redhat.ceylon.compiler.java.metadata.Name;
import com.redhat.ceylon.compiler.java.metadata.SatisfiedTypes;
import com.redhat.ceylon.compiler.java.metadata.Sequenced;
import com.redhat.ceylon.compiler.java.metadata.TypeInfo;

@Ceylon
@Class(extendsType="ceylon.language.Object")
@SatisfiedTypes({"ceylon.language.List<ceylon.language.Character>",
                 "ceylon.language.Comparable<ceylon.language.String>",
                 "ceylon.language.Ranged<ceylon.language.Integer,ceylon.language.String>",
                 "ceylon.language.FixedSized<ceylon.language.Character>",
                 "ceylon.language.Summable<ceylon.language.String>",
                 "ceylon.language.Castable<ceylon.language.String>",
                 "ceylon.language.Cloneable<ceylon.language.String>"})
public abstract class String
    implements Comparable<String>, List<Character>,
               Summable<String>, Castable<String>,
               FixedSized<Character> {

    public final java.lang.String value;

    String(java.lang.String s) {
        value = s;
    }

    public java.lang.String toString() {
        return value;
    }

    @Ignore
    public static ceylon.language.String instance(java.lang.String s) {
        return s.isEmpty() ? StringOfNone.instance : new StringOfSome(s);
    }

    @Ignore
    public static ceylon.language.String instance(java.lang.String... strings) {
        StringBuffer buf = new StringBuffer();
        for (java.lang.String s: strings)
            buf.append(s);
        return instance(buf.toString());
    }

    @Ignore
    public static ceylon.language.String instance(String... strings) {
        StringBuffer buf = new StringBuffer();
        for (String s: strings)
            buf.append(s.value);
        return instance(buf.toString());
    }

    public java.lang.String getUppercased() {
        return value.toUpperCase();
    }
<commit_msg>fix npe that sometimes occurs in interop code<commit_after>package ceylon.language;

import java.util.StringTokenizer;

import com.redhat.ceylon.compiler.java.metadata.Ceylon;
import com.redhat.ceylon.compiler.java.metadata.Class;
import com.redhat.ceylon.compiler.java.metadata.Defaulted;
import com.redhat.ceylon.compiler.java.metadata.Ignore;
import com.redhat.ceylon.compiler.java.metadata.Name;
import com.redhat.ceylon.compiler.java.metadata.SatisfiedTypes;
import com.redhat.ceylon.compiler.java.metadata.Sequenced;
import com.redhat.ceylon.compiler.java.metadata.TypeInfo;

@Ceylon
@Class(extendsType="ceylon.language.Object")
@SatisfiedTypes({"ceylon.language.List<ceylon.language.Character>",
                 "ceylon.language.Comparable<ceylon.language.String>",
                 "ceylon.language.Ranged<ceylon.language.Integer,ceylon.language.String>",
                 "ceylon.language.FixedSized<ceylon.language.Character>",
                 "ceylon.language.Summable<ceylon.language.String>",
                 "ceylon.language.Castable<ceylon.language.String>",
                 "ceylon.language.Cloneable<ceylon.language.String>"})
public abstract class String
    implements Comparable<String>, List<Character>,
               Summable<String>, Castable<String>,
               FixedSized<Character> {

    public final java.lang.String value;

    String(java.lang.String s) {
        value = s;
    }

    public java.lang.String toString() {
        return value;
    }

    @Ignore
    public static ceylon.language.String instance(java.lang.String s) {
        if (s==null) return null;
        return s.isEmpty() ? StringOfNone.instance : new StringOfSome(s);
    }

    @Ignore
    public static ceylon.language.String instance(java.lang.String... strings) {
        StringBuffer buf = new StringBuffer();
        for (java.lang.String s: strings)
            buf.append(s);
        return instance(buf.toString());
    }

    @Ignore
    public static ceylon.language.String instance(String... strings) {
        StringBuffer buf = new StringBuffer();
        for (String s: strings)
            buf.append(s.value);
        return instance(buf.toString());
    }

    public java.lang.String getUppercased() {
        return value.toUpperCase();
    }

{'fraction_non_alphanumeric': 0.11826280623608018, 'fraction_numerical': 0.0, 'mean_word_length': 3.0026737967914436, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '2252868', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1284, 'n_words': 215}