<commit_before>#include "CurieImu.h"

int16_t ax, ay, az;

void setup() {
  Serial.begin(9600);
  while (!Serial);

  CurieImu.initialize();

  if (!CurieImu.testConnection()) {
    Serial.println("CurieImu connection failed");
  }

  CurieImu.setFullScaleAccelRange(BMI160_ACCEL_RANGE_8G);
}

void loop() {
  CurieImu.getAcceleration(&ax, &ay, &az);
  Serial.print(ax);
  Serial.print("\t");
  Serial.print(ay);
  Serial.print("\t");
  Serial.print(az);
  Serial.println();
}
<commit_msg>Use Arduino101 CurieIMU new APIs.<commit_after>#include "CurieIMU.h"

int ax, ay, az;

void setup() {
  Serial.begin(9600);
  while (!Serial);

  CurieIMU.begin();

  if (!CurieIMU.testConnection()) {
    Serial.println("CurieImu connection failed");
  }

  CurieIMU.setAccelerometerRange(8);
}

void loop() {
  CurieIMU.readAccelerometer(ax, ay, az);
  Serial.print(ax);
  Serial.print("\t");
  Serial.print(ay);
  Serial.print("\t");
  Serial.print(az);
  Serial.println();
}

{'fraction_non_alphanumeric': 0.1778697001034126, 'fraction_numerical': 0.01861427094105481, 'mean_word_length': 4.438202247191011, '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': '4331288', 'n_tokens_mistral': 396, 'n_tokens_neox': 376, 'n_words': 62}