<commit_before>import {Component, Directive, forwardRef, Inject, Input, Query, QueryList} from 'angular2/angular2';

import {NgbCollapse} from '../collapse/collapse';

@Component({
  selector: 'ngb-accordion-panel',
  directives: [NgbCollapse],
  template: `
    <div class="panel panel-default" [class.panel-open]="isOpen">
      <div class="panel-heading">
        <h4 class="panel-title">
          <a href tabindex="0"><span [class.text-muted]="isDisabled" (click)="toggleOpen($event)">{{title}}</span></a>
        </h4>
      </div>
      <div class="panel-collapse" [ngb-collapse]="!isOpen">
        <div class="panel-body">
          <ng-content></ng-content>
        </div>
      </div>
    </div>
  `
})
export class NgbAccordionPanel {
  private _isOpen = false;
  @Input() isDisabled: boolean;
  @Input() title: string;

  @Input()<commit_msg>refactor(accordion): organize code inside component<commit_after>import {Component, Directive, forwardRef, Inject, Input, Query, QueryList} from 'angular2/angular2';

import {NgbCollapse} from '../collapse/collapse';

@Component({
  selector: 'ngb-accordion-panel',
  directives: [NgbCollapse],
  template: `
    <div class="panel panel-default" [class.panel-open]="isOpen">
      <div class="panel-heading">
        <h4 class="panel-title">
          <a href tabindex="0"><span [class.text-muted]="isDisabled" (click)="toggleOpen($event)">{{title}}</span></a>
        </h4>
      </div>
      <div class="panel-collapse" [ngb-collapse]="!isOpen">
        <div class="panel-body">
          <ng-content></ng-content>
        </div>
      </div>
    </div>
  `
})
export class NgbAccordionPanel {
  private _isOpen = false;

  @Input() isDisabled: boolean;
  @Input() title: string;

  @Input()
{'fraction_non_alphanumeric': 0.18030910131654265, 'fraction_numerical': 0.005724098454493417, 'mean_word_length': 3.5051546391752577, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '487395', 'n_tokens_mistral': 586, 'n_tokens_neox': 575, 'n_words': 117}