<commit_before>import check { check }

shared object toplevel483 {
  string = "object.";
}

shared Object getToplevel483() {
  return object {
    string = "method.";
  };
}

shared class Test483() {
  shared object nested483 {
    string="object.";
  }
  shared Object getNested483() {
    return object {
      string="method.";
    };
  }
  check(nested483.string=="object.", "#483.1 member (inside)");
  check(getNested483().string=="method.", "#483.2 member (inside)");
}

void issues() {
  check(toplevel483.string=="object.", "#483.1 toplevel ``toplevel483``");
  check(getToplevel483().string=="method.", "#483.2 toplevel ``getToplevel483()``");
  object nested483 {
    string="object.";
  }
  Object getNested483() {
    return object {
      string="method.";
    };
  }
  check(nested483.string=="object.", "#483.1 in method ``nested483``");
  check(getNested483().string=="method.", "#483.2 in method ``getNested483()``");
  value t=Test483();
  check(t.nested483.string=="object.", "#483.1 member (outside) ``t.nested483``");
  check(t.getNested483().string=="method.", "#483.2 member (outside) ``t.getNested483()``");
}<commit_msg>tests for #483 with toplevel values<commit_after>import check { check }

shared object topObject483 {
  string = "object.";
}
shared Object getTopObject483() {
  return object {
    string = "method.";
  };
}

shared String topValue483 = "value.";
shared String getTopValue483() => "method.";

shared class Test483() {
  shared object nestedObject483 {
    string="object.";
  }
  shared Object getNestedObject483() {
    return object {
      string="method.";
    };
  }
  shared String nestedValue="value.";
  shared String getNestedValue() => "method.";
  check(nestedObject483.string=="object.", "#483.1 member (inside) ``nestedObject483``");
  check(getNestedObject483().string=="method.", "#483.2 member (inside) ``getNestedObject483()``");
  check(nestedValue=="value.", "#483.3 member (inside) ``nestedValue``");
  check(getNestedValue()=="method.", "#483.4 member (inside) ``getNestedValue()``");
}

void issues() {
  check(topObject483.string=="object.", "#483.1 toplevel ``topObject483``");
  check(getTopObject483().string=="method.", "#483.2 toplevel ``getTopObject483()``");
  check(topValue483=="value.", "#483.3 toplevel ``topValue483``");
  check(getTopValue483()=="method.", "#483.4 toplevel ``getTopValue483()``");

  object nestedObject483 {
    string="object.";
  }
  Object getNestedObject483() {
    return object {
      string="method.";
    };
  }
  check(nestedObject483.string=="object.", "#483.1 in method ``nestedObject483``");
  check(getNestedObject483().string=="method.", "#483.2 in method ``getNestedObject483()``");

  String nestedValue483="value.";
  String getNestedValue483() => "method.";
  check(nestedValue483=="value.", "#483.3 in method ``nestedValue483``");
  check(getNestedValue483()=="method.", "#483.4 in method ``getNestedValue483()``");

  value t=Test483();
  check(t.nestedObject483.string=="object.", "#483.1 member (outside) ``t.nestedObject483``");
  check(t.getNestedObject483().string=="method.", "#483.2 member (outside) ``t.getNestedObject483()``");
  check(t.nestedValue=="value.", "#483.3 member (outside) ``t.nestedValue``");
  check(t.getNestedValue()=="method.", "#483.4 member (outside) ``t.getNestedValue()``");
}
{'fraction_non_alphanumeric': 0.20606788825473116, 'fraction_numerical': 0.08200660859116853, 'mean_word_length': 4.935828877005347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4995083', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1082, 'n_words': 217}