<commit_before>import { Component, Input, OnInit } from '@angular/core'

import { AbstractStorageService } from 'core/AbstractStorageService'

@Component({
  selector: 'mute-storage',
  templateUrl: './storage.component.html',
  styleUrls: ['./storage.component.scss']
})
export class StorageComponent implements OnInit {

  private available: boolean
  private tooltipMsg: string
  @Input() storageService: AbstractStorageService

  constructor () {}

  ngOnInit () {
    this.storageService.isReachable()
      .then((isReachable: boolean) => {
        this.available = isReachable
      })
      .catch(() => {
        this.available = false
      })
      .then(() => {
        if (this.available) {
          this.tooltipMsg = `Is available on: ${this.storageService}`
        } else {
          this.tooltipMsg = `${this.storageService} is not available`
        }
      })
  }

  isAvailable (): boolean {
    return this.available
  }
}<commit_msg>fix(storage): Rename property from 'available' to 'isAvailable'<commit_after>import { Component, Input, OnInit } from '@angular/core'

import { AbstractStorageService } from 'core/AbstractStorageService'

@Component({
  selector: 'mute-storage',
  templateUrl: './storage.component.html',
  styleUrls: ['./storage.component.scss']
})
export class StorageComponent implements OnInit {

  private isAvailable: boolean
  private tooltipMsg: string
  @Input() storageService: AbstractStorageService

  constructor () {}

  ngOnInit () {
    this.storageService.isReachable()
      .then((isReachable: boolean) => {
        this.isAvailable = isReachable
      })
      .catch(() => {
        this.isAvailable = false
      })
      .then(() => {
        if (this.isAvailable) {
          this.tooltipMsg = `Is available on: ${this.storageService}`
        } else {
          this.tooltipMsg = `${this.storageService} is not available`
        }
      })
  }
}
{'fraction_non_alphanumeric': 0.13134484563055993, 'fraction_numerical': 0.0, 'mean_word_length': 2.966804979253112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5701882', 'n_tokens_mistral': 548, 'n_tokens_neox': 545, 'n_words': 120}