<commit_before>﻿using System;
using System.Runtime.InteropServices;

namespace principia {
namespace ksp_plugin_adapter {

internal partial struct Status {
  public bool is_aborted() {
    return error == 10;
  }
  public bool is_failed_precondition() {
    return error == 9;
  }
  public bool is_invalid_argument() {
    return error == 3;
  }
  public bool is_out_of_range() {
    return error == 11;
  }
  public bool ok() {
    return error == 0;<commit_msg>Status update.<commit_after>﻿using System;
using System.Runtime.InteropServices;

namespace principia {
namespace ksp_plugin_adapter {

internal partial struct Status {
  public bool is_aborted() {
    return error == 10;
  }
  public bool is_failed_precondition() {
    return error == 9;
  }
  public bool is_invalid_argument() {
    return error == 3;
  }
  public bool is_out_of_range() {
    return error == 11;
  }
  public bool ok() {
    return error == 0;
  }
  public void Update(Status s) {
    if (ok() && !s.ok()) {
      this = s;
    }
{'fraction_non_alphanumeric': 0.10760118460019744, 'fraction_numerical': 0.013820335636722606, 'mean_word_length': 3.278481012658228, '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': '6936394', 'n_tokens_mistral': 339, 'n_tokens_neox': 323, 'n_words': 93}