<commit_before>import {Platform, Page, ActionSheet} from 'ionic/ionic';

@Page({
  templateUrl: 'actionSheet/actionSheet.html',
})
export class ActionSheetPage {

  constructor(actionSheet: ActionSheet, platform: Platform) {
    this.actionSheet = actionSheet;
    console.log('actionSheet', actionSheet);
    this.platform = platform;
  }

  openMenu() {
    if (this.platform.is('android')) {
      var androidSheet = {

        buttons: [
          { text: 'Share', icon: 'share' },
          { text: 'Play', icon: 'arrow-dropright-circle'},
          { text: 'Favorite', icon: 'ion-md-heart-outline'}
        ],
        destructiveText: 'Delete',
        titleText: 'Albums',
        cancelText: 'Cancel',
        cancel: function() {
          console.log('Canceled');
        },
        destructiveButtonClicked: () => {
          console.log('Destructive clicked');
        },
        buttonClicked: function(index) {
          console.log('Button clicked', index);
          if (index == 1) { return false; }<commit_msg>fix(demos): fix actionSheet import error<commit_after>import {IonicPlatform, Page, ActionSheet} from 'ionic/ionic';

@Page({
  templateUrl: 'actionSheet/actionSheet.html',
})
export class ActionSheetPage {

  constructor(actionSheet: ActionSheet, platform: IonicPlatform) {
    this.actionSheet = actionSheet;
    this.platform = platform;
  }

  openMenu() {
    if (this.platform.is('android')) {
      var androidSheet = {

        buttons: [
          { text: 'Share', icon: 'share' },
          { text: 'Play', icon: 'arrow-dropright-circle'},
          { text: 'Favorite', icon: 'ion-md-heart-outline'}
        ],
        destructiveText: 'Delete',
        titleText: 'Albums',
        cancelText: 'Cancel',
        cancel: function() {
          console.log('Canceled');
        },
        destructiveButtonClicked: () => {
          console.log('Destructive clicked');
        },
        buttonClicked: function(index) {
          console.log('Button clicked', index);
          if (index == 1) { return false; }
{'fraction_non_alphanumeric': 0.1455078125, 'fraction_numerical': 0.0009765625, 'mean_word_length': 2.582167832167832, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1452627', 'n_tokens_mistral': 600, 'n_tokens_neox': 585, 'n_words': 126}