<commit_before>import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
/**
 * @name Stepcounter
 * @description
 * Cordova plugin for using device's stepcounter on Android (API > 19)
 *
 * Use to
 * - start and stop stepcounter service
 * - read device's stepcounter data
 *
 * @usage
 * ```typescript
 * import { Stepcounter } from '@ionic-native/stepcounter';
 *
 * constructor(private stepcounter: Stepcounter) { }
 *
 * ...
 *
 * let startingOffset = 0;
 * this.stepcounter.start(startingOffset).then(onSuccess => console.log('stepcounter-start success', onSuccess), onFailure => console.log('stepcounter-start error', onFailure));
 *
 * this.stepcounter.getHistory().then(historyObj => console.log('stepcounter-history success', historyObj), onFailure => console.log('stepcounter-history error', onFailure));
 *
 * ```
 */
@Plugin({
  pluginName: 'Stepcounter',
  plugin: 'https://github.com/Slidee/cordova-plugin-stepcounter.git',
  pluginRef: 'stepcounter',
  repo: 'https://github.com/Slidee/cordova-plugin-stepcounter',
  platforms: ['Android']
})
@Injectable()
export class Stepcounter extends IonicNativePlugin {

  /**
   * Start the step counter
   *
   * @param startingOffset {number} will be added to the total steps counted in this session
   * @returns {Promise<any | number>} Returns a Promise that resolves on success or rejects on failure
   */
  @Cordova()
  start(startingOffset: number): Promise<number | any> { return; }

  /**<commit_msg>docs(stepcounter): changed source (#1657)<commit_after>import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
/**
 * @name Stepcounter
 * @description
 * Cordova plugin for using device's stepcounter on Android (API > 19)
 *
 * Use to
 * - start and stop stepcounter service
 * - read device's stepcounter data
 *
 * @usage
 * ```typescript
 * import { Stepcounter } from '@ionic-native/stepcounter';
 *
 * constructor(private stepcounter: Stepcounter) { }
 *
 * ...
 *
 * let startingOffset = 0;
 * this.stepcounter.start(startingOffset).then(onSuccess => console.log('stepcounter-start success', onSuccess), onFailure => console.log('stepcounter-start error', onFailure));
 *
 * this.stepcounter.getHistory().then(historyObj => console.log('stepcounter-history success', historyObj), onFailure => console.log('stepcounter-history error', onFailure));
 *
 * ```
 */
@Plugin({
  pluginName: 'Stepcounter',
  plugin: 'cordova-plugin-stepcounter',
  pluginRef: 'stepcounter',
  repo: 'https://github.com/ihadeed/cordova-plugin-stepcounter',
  platforms: ['Android']
})
@Injectable()
export class Stepcounter extends IonicNativePlugin {

  /**
   * Start the step counter
   *
   * @param startingOffset {number} will be added to the total steps counted in this session
   * @returns {Promise<any | number>} Returns a Promise that resolves on success or rejects on failure
   */
  @Cordova()
  start(startingOffset: number): Promise<number | any> { return; }

  /**
{'fraction_non_alphanumeric': 0.14135782223679896, 'fraction_numerical': 0.0032797638570022957, 'mean_word_length': 4.606617647058823, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 3, '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': '2393837', 'n_tokens_mistral': 912, 'n_tokens_neox': 889, 'n_words': 237}