<commit_before>/**
 * Created by ketangote on 1/4/18.
 */
/*
Component Name : Amexio BorderLayout
Component Selector : <amexio-borderlayout-item>
Component Description : Amexio border layout lays out a container,
                       arranging and resizing its components to fit in five regions:
                        north, south, east, west, and center.

*/
import { Component, Input, OnInit } from '@angular/core';

@Component({
  selector: 'amexio-borderlayout-item',
  templateUrl: './borderlayoutitem.component.html',
  host: {
    '[class]': 'positionClass',
  },
})
export class AmexioBorderLayoutItemComponent implements OnInit {

  /*
Properties
name : position
datatype : string
version : 4.0 onwards
default :
description : Layout the contents to North , East , West , Center & South positions
*/
  @Input() position: string;
  positionClass: string = "borderlayout-";
  constructor() {
  }
  ngOnInit() {
  }

  getClassType() {
    let pos = "";
    if (this.position.toLowerCase() === "north") {
      pos = "N";
    } else if (this.position.toLowerCase() === "east") {
      pos = "E";
    } else if (this.position.toLowerCase() === "center") {
      pos = "C";
    } else if (this.position.toLowerCase() === "west") {
      pos = "W";
    } else if (this.position.toLowerCase() === "south") {
      pos = "S";
    }

    this.positionClass = this.positionClass + pos;

    return pos;
  }
}<commit_msg>layout:borderlayoutitem int updated<commit_after>/**
 * Created by ketangote on 1/4/18.
 */
/*
Component Name : Amexio BorderLayout
Component Selector : <amexio-borderlayout-item>
Component Description : Amexio border layout lays out a container,
                       arranging and resizing its components to fit in five regions:
                        north, south, east, west, and center.

*/
import { Component, Input, OnInit } from '@angular/core';

@Component({
  selector: 'amexio-borderlayout-item',
  templateUrl: './borderlayoutitem.component.html',
  host: {
    '[class]': 'positionClass',
  },
})
export class AmexioBorderLayoutItemComponent implements OnInit {

  /*
Properties
name : position
datatype : string
version : 4.0 onwards
default :
description : Layout the contents to North , East , West , Center & South positions
*/
  @Input() position: string;
  positionClass= 'borderlayout-';
  constructor() {
  }
  ngOnInit() {
  }

  getClassType() {
    let pos = '';
    if (this.position.toLowerCase() === 'north') {
      pos = 'N';
    } else if (this.position.toLowerCase() === 'east') {
      pos = 'E';
    } else if (this.position.toLowerCase() === 'center') {
      pos = 'C';
    } else if (this.position.toLowerCase() === 'west') {
      pos = 'W';
    } else if (this.position.toLowerCase() === 'south') {
      pos = 'S';
    }

    this.positionClass = this.positionClass + pos;

    return pos;
  }
}
{'fraction_non_alphanumeric': 0.14270724029380902, 'fraction_numerical': 0.004197271773347324, 'mean_word_length': 2.955739972337483, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1367429', 'n_tokens_mistral': 873, 'n_tokens_neox': 863, 'n_words': 245}