text:
/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package com.beardedhen.androidbootstrap.test;

public final class R {
    public static final class attr {
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bb_icon_left=0x7f010001;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bb_icon_right=0x7f010002;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bb_roundedCorners=0x7f010003;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bb_size=0x7f010005;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bb_text_alignment=0x7f010004;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bb_text_gravity=0x7f010006;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bb_type=0x7f010000;
        /**
Must be an integer value, such as "100".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bct_image=0x7f010007;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bct_minimal=0x7f010009;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bct_size=0x7f010008;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int be_roundedCorners=0x7f01000a;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int be_state=0x7f01000b;
        /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bt_height=0x7f01000f;
        /**
Must be an integer value, such as "100".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bt_image=0x7f01000d;
        /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bt_inside_padding=0x7f010010;
        /**
Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bt_roundedCorners=0x7f01000c;
        /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int bt_width=0x7f01000e;
        /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static final int fa_icon=0x7f010011;
    }
    public static final class color {
        public static final int bbutton_danger=0x7f060000;
        public static final int bbutton_danger_disabled=0x7f060001;
        public static final int bbutton_danger_disabled_edge=0x7f060002;
        public static final int bbutton_danger_edge=0x7f060003;
        public static final int bbutton_danger_pressed=0x7f060004;
        public static final int bbutton_danger_pressed_edge=0x7f060005;
        public static final int bbutton_default=0x7f060006;
        public static final int bbutton_default_disabled=0x7f060007;
        public static final int bbutton_default_disabled_edge=0x7f060008;
        public static final int bbutton_default_edge=0x7f060009;
        public static final int bbutton_default_pressed=0x7f06000a;
        public static final int bbutton_default_pressed_edge=0x7f06000b;
        public static final int bbutton_edittext_border=0x7f06000c;
        public static final int bbutton_edittext_disabled=0x7f06000d;
        public static final int bbutton_info=0x7f06000e;
        public static final int bbutton_info_disabled=0x7f06000f;
        public static final int bbutton_info_disabled_edge=0x7f060010;
        public static final int bbutton_info_edge=0x7f060011;
        public static final int bbutton_info_pressed=0x7f060012;
        public static final int bbutton_info_pressed_edge=0x7f060013;
        public static final int bbutton_inverse=0x7f060014;
        public static final int bbutton_inverse_disabled=0x7f060015;
        public static final int bbutton_inverse_disabled_edge=0x7f060016;
        public static final int bbutton_inverse_edge=0x7f060017;
        public static final int bbutton_inverse_pressed=0x7f060018;
        public static final int bbutton_inverse_pressed_edge=0x7f060019;
        public static final int bbutton_primary=0x7f06001a;
        public static final int bbutton_primary_disabled=0x7f06001b;
        public static final int bbutton_primary_disabled_edge=0x7f06001c;
        public static final int bbutton_primary_edge=0x7f06001d;
        public static final int bbutton_primary_pressed=0x7f06001e;
        public static final int bbutton_primary_pressed_edge=0x7f06001f;
        public static final int bbutton_success=0x7f060020;
        public static final int bbutton_success_disabled=0x7f060021;
        public static final int bbutton_success_disabled_edge=0x7f060022;
        public static final int bbutton_success_edge=0x7f060023;
        public static final int bbutton_success_pressed=0x7f060024;
        public static final int bbutton_success_pressed_edge=0x7f060025;
        public static final int bbutton_warning=0x7f060026;
        public static final int bbutton_warning_disabled=0x7f060027;
        public static final int bbutton_warning_disabled_edge=0x7f060028;
        public static final int bbutton_warning_edge=0x7f060029;
        public static final int bbutton_warning_pressed=0x7f06002a;
        public static final int bbutton_warning_pressed_edge=0x7f06002b;
        public static final int black=0x7f06002c;
        public static final int bthumbnail_background=0x7f06002d;
        public static final int bthumbnail_border=0x7f06002e;
        public static final int bthumbnail_font=0x7f06002f;
        public static final int bthumbnail_placeholder=0x7f060030;
        public static final int white=0x7f060031;
    }
    public static final class dimen {
        public static final int activity_horizontal_margin=0x7f040000;
        public static final int activity_vertical_margin=0x7f040001;
        public static final int bbuton_rounded_corner_radius=0x7f040002;
        public static final int bthumbnail_rounded_corner_radius=0x7f040003;
        public static final int padding_large=0x7f040004;
        public static final int padding_medium=0x7f040005;
        public static final int padding_micro=0x7f040006;
        public static final int padding_small=0x7f040007;
    }
    public static final class drawable {
        public static final int bbuton_brown=0x7f020000;
        public static final int bbuton_brown_rounded=0x7f020001;
        public static final int bbuton_danger=0x7f020002;
        public static final int bbuton_danger_rounded=0x7f020003;
        public static final int bbuton_default=0x7f020004;
        public static final int bbuton_default_rounded=0x7f020005;
        public static final int bbuton_info=0x7f020006;
        public static final int bbuton_info_rounded=0x7f020007;
        public static final int bbuton_inverse=0x7f020008;
        public static final int bbuton_inverse_rounded=0x7f020009;
        public static final int bbuton_primary=0x7f02000a;
        public static final int bbuton_primary_rounded=0x7f02000b;
        public static final int bbuton_success=0x7f02000c;
        public static final int bbuton_success_rounded=0x7f02000d;
        public static final int bbuton_warning=0x7f02000e;
        public static final int bbuton_warning_rounded=0x7f02000f;
        public static final int bthumbnail_container_rounded=0x7f020010;
        public static final int bthumbnail_container_square=0x7f020011;
        public static final int bthumbnail_placeholder_default=0x7f020012;
        public static final int edittext_background=0x7f020013;
        public static final int edittext_background_danger=0x7f020014;
        public static final int edittext_background_rounded=0x7f020015;
        public static final int edittext_background_rounded_danger=0x7f020016;
        public static final int edittext_background_rounded_success=0x7f020017;
        public static final int edittext_background_rounded_warning=0x7f020018;
        public static final int edittext_background_success=0x7f020019;
        public static final int edittext_background_warning=0x7f02001a;
        public static final int thumbnail_circle=0x7f02001b;
        public static final int thumbnail_circle_container=0x7f02001c;
        public static final int thumbnail_circle_minimal=0x7f02001d;
    }
    public static final class id {
        public static final int action_settings=0x7f09000e;
        public static final int container=0x7f090005;
        public static final int dimensionsLabel=0x7f090007;
        public static final int image=0x7f090008;
        public static final int layout=0x7f090000;
        public static final int lblColA=0x7f09000c;
        public static final int lblColB=0x7f09000d;
        public static final int lblLeft=0x7f090001;
        public static final int lblMiddle=0x7f090002;
        public static final int lblRight=0x7f090003;
        public static final int lblSubTitle=0x7f09000b;
        public static final int lblText=0x7f090009;
        public static final int lblTitle=0x7f09000a;
        public static final int placeholder=0x7f090006;
        public static final int txtText=0x7f090004;
    }
    public static final class layout {
        public static final int bootstrap_button=0x7f030000;
        public static final int bootstrap_edit_text=0x7f030001;
        public static final int bootstrap_thumbnail=0x7f030002;
        public static final int bootstrap_thumbnail_circle=0x7f030003;
        public static final int font_awesome_text=0x7f030004;
        public static final int row_title=0x7f030005;
        public static final int row_title_and_subtitle=0x7f030006;
        public static final int row_two_columns=0x7f030007;
    }
    public static final class menu {
        public static final int main=0x7f080000;
    }
    public static final class string {
        public static final int action_settings=0x7f070000;
        public static final int app_name=0x7f070001;
        public static final int hello_world=0x7f070002;
    }
    public static final class style {
        /**  API 11 theme customizations can go here.
 API 14 theme customizations can go here.

            Theme customizations available in newer API levels can go in
            res/values-vXX/styles.xml, while customizations related to
            backward-compatibility can go here.

         */
        public static final int AppBaseTheme=0x7f050000;
    }
    public static final class styleable {
        /** Attributes that can be used with a BootstrapButton.

Includes the following attributes:

           <colgroup align="left" />
           <colgroup align="left" />

Attribute	Description

{@link #BootstrapButton_android_enabled android:enabled}

{@link #BootstrapButton_android_layout_weight android:layout_weight}

{@link #BootstrapButton_android_layout_width android:layout_width}

{@link #BootstrapButton_android_text android:text}

{@link #BootstrapButton_android_textSize android:textSize}

{@link #BootstrapButton_bb_icon_left com.beardedhen.androidbootstrap.test:bb_icon_left}

{@link #BootstrapButton_bb_icon_right com.beardedhen.androidbootstrap.test:bb_icon_right}

{@link #BootstrapButton_bb_roundedCorners com.beardedhen.androidbootstrap.test:bb_roundedCorners}

{@link #BootstrapButton_bb_size com.beardedhen.androidbootstrap.test:bb_size}

{@link #BootstrapButton_bb_text_alignment com.beardedhen.androidbootstrap.test:bb_text_alignment}

{@link #BootstrapButton_bb_text_gravity com.beardedhen.androidbootstrap.test:bb_text_gravity}

{@link #BootstrapButton_bb_type com.beardedhen.androidbootstrap.test:bb_type}

           @see #BootstrapButton_android_enabled
           @see #BootstrapButton_android_layout_weight
           @see #BootstrapButton_android_layout_width
           @see #BootstrapButton_android_text
           @see #BootstrapButton_android_textSize
           @see #BootstrapButton_bb_icon_left
           @see #BootstrapButton_bb_icon_right
           @see #BootstrapButton_bb_roundedCorners
           @see #BootstrapButton_bb_size
           @see #BootstrapButton_bb_text_alignment
           @see #BootstrapButton_bb_text_gravity
           @see #BootstrapButton_bb_type
         */
        public static final int[] BootstrapButton = {
            0x0101000e, 0x01010095, 0x010100f4, 0x0101014f,
            0x01010181, 0x7f010000, 0x7f010001, 0x7f010002,
            0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006
        };
        /**

This symbol is the offset where the {@link android.R.attr#enabled}
          attribute's value can be found in the {@link #BootstrapButton} array.
          @attr name android:enabled
        */
        public static final int BootstrapButton_android_enabled = 0;
        /**

This symbol is the offset where the {@link android.R.attr#layout_weight}
          attribute's value can be found in the {@link #BootstrapButton} array.
          @attr name android:layout_weight
        */
        public static final int BootstrapButton_android_layout_weight = 4;
        /**

This symbol is the offset where the {@link android.R.attr#layout_width}
          attribute's value can be found in the {@link #BootstrapButton} array.
          @attr name android:layout_width
        */
        public static final int BootstrapButton_android_layout_width = 2;
        /**

This symbol is the offset where the {@link android.R.attr#text}
          attribute's value can be found in the {@link #BootstrapButton} array.
          @attr name android:text
        */
        public static final int BootstrapButton_android_text = 3;
        /**

This symbol is the offset where the {@link android.R.attr#textSize}
          attribute's value can be found in the {@link #BootstrapButton} array.
          @attr name android:textSize
        */
        public static final int BootstrapButton_android_textSize = 1;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bb_icon_left}
          attribute's value can be found in the {@link #BootstrapButton} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bb_icon_left
        */
        public static final int BootstrapButton_bb_icon_left = 6;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bb_icon_right}
          attribute's value can be found in the {@link #BootstrapButton} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bb_icon_right
        */
        public static final int BootstrapButton_bb_icon_right = 7;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bb_roundedCorners}
          attribute's value can be found in the {@link #BootstrapButton} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bb_roundedCorners
        */
        public static final int BootstrapButton_bb_roundedCorners = 8;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bb_size}
          attribute's value can be found in the {@link #BootstrapButton} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bb_size
        */
        public static final int BootstrapButton_bb_size = 10;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bb_text_alignment}
          attribute's value can be found in the {@link #BootstrapButton} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bb_text_alignment
        */
        public static final int BootstrapButton_bb_text_alignment = 9;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bb_text_gravity}
          attribute's value can be found in the {@link #BootstrapButton} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bb_text_gravity
        */
        public static final int BootstrapButton_bb_text_gravity = 11;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bb_type}
          attribute's value can be found in the {@link #BootstrapButton} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bb_type
        */
        public static final int BootstrapButton_bb_type = 5;
        /** Attributes that can be used with a BootstrapCircleThumbnail.

Includes the following attributes:

           <colgroup align="left" />
           <colgroup align="left" />

Attribute	Description

{@link #BootstrapCircleThumbnail_android_text android:text}

{@link #BootstrapCircleThumbnail_bct_image com.beardedhen.androidbootstrap.test:bct_image}

{@link #BootstrapCircleThumbnail_bct_minimal com.beardedhen.androidbootstrap.test:bct_minimal}

{@link #BootstrapCircleThumbnail_bct_size com.beardedhen.androidbootstrap.test:bct_size}

           @see #BootstrapCircleThumbnail_android_text
           @see #BootstrapCircleThumbnail_bct_image
           @see #BootstrapCircleThumbnail_bct_minimal
           @see #BootstrapCircleThumbnail_bct_size
         */
        public static final int[] BootstrapCircleThumbnail = {
            0x0101014f, 0x7f010007, 0x7f010008, 0x7f010009
        };
        /**

This symbol is the offset where the {@link android.R.attr#text}
          attribute's value can be found in the {@link #BootstrapCircleThumbnail} array.
          @attr name android:text
        */
        public static final int BootstrapCircleThumbnail_android_text = 0;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bct_image}
          attribute's value can be found in the {@link #BootstrapCircleThumbnail} array.

Must be an integer value, such as "100".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bct_image
        */
        public static final int BootstrapCircleThumbnail_bct_image = 1;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bct_minimal}
          attribute's value can be found in the {@link #BootstrapCircleThumbnail} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bct_minimal
        */
        public static final int BootstrapCircleThumbnail_bct_minimal = 3;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bct_size}
          attribute's value can be found in the {@link #BootstrapCircleThumbnail} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bct_size
        */
        public static final int BootstrapCircleThumbnail_bct_size = 2;
        /** Attributes that can be used with a BootstrapEditText.

Includes the following attributes:

           <colgroup align="left" />
           <colgroup align="left" />

Attribute	Description

{@link #BootstrapEditText_android_enabled android:enabled}

{@link #BootstrapEditText_android_hint android:hint}

{@link #BootstrapEditText_android_text android:text}

{@link #BootstrapEditText_android_textSize android:textSize}

{@link #BootstrapEditText_be_roundedCorners com.beardedhen.androidbootstrap.test:be_roundedCorners}

{@link #BootstrapEditText_be_state com.beardedhen.androidbootstrap.test:be_state}

           @see #BootstrapEditText_android_enabled
           @see #BootstrapEditText_android_hint
           @see #BootstrapEditText_android_text
           @see #BootstrapEditText_android_textSize
           @see #BootstrapEditText_be_roundedCorners
           @see #BootstrapEditText_be_state
         */
        public static final int[] BootstrapEditText = {
            0x0101000e, 0x01010095, 0x0101014f, 0x01010150,
            0x7f01000a, 0x7f01000b
        };
        /**

This symbol is the offset where the {@link android.R.attr#enabled}
          attribute's value can be found in the {@link #BootstrapEditText} array.
          @attr name android:enabled
        */
        public static final int BootstrapEditText_android_enabled = 0;
        /**

This symbol is the offset where the {@link android.R.attr#hint}
          attribute's value can be found in the {@link #BootstrapEditText} array.
          @attr name android:hint
        */
        public static final int BootstrapEditText_android_hint = 3;
        /**

This symbol is the offset where the {@link android.R.attr#text}
          attribute's value can be found in the {@link #BootstrapEditText} array.
          @attr name android:text
        */
        public static final int BootstrapEditText_android_text = 2;
        /**

This symbol is the offset where the {@link android.R.attr#textSize}
          attribute's value can be found in the {@link #BootstrapEditText} array.
          @attr name android:textSize
        */
        public static final int BootstrapEditText_android_textSize = 1;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#be_roundedCorners}
          attribute's value can be found in the {@link #BootstrapEditText} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:be_roundedCorners
        */
        public static final int BootstrapEditText_be_roundedCorners = 4;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#be_state}
          attribute's value can be found in the {@link #BootstrapEditText} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:be_state
        */
        public static final int BootstrapEditText_be_state = 5;
        /** Attributes that can be used with a BootstrapThumbnail.

Includes the following attributes:

           <colgroup align="left" />
           <colgroup align="left" />

Attribute	Description

{@link #BootstrapThumbnail_android_text android:text}

{@link #BootstrapThumbnail_bt_height com.beardedhen.androidbootstrap.test:bt_height}

{@link #BootstrapThumbnail_bt_image com.beardedhen.androidbootstrap.test:bt_image}

{@link #BootstrapThumbnail_bt_inside_padding com.beardedhen.androidbootstrap.test:bt_inside_padding}

{@link #BootstrapThumbnail_bt_roundedCorners com.beardedhen.androidbootstrap.test:bt_roundedCorners}

{@link #BootstrapThumbnail_bt_width com.beardedhen.androidbootstrap.test:bt_width}

           @see #BootstrapThumbnail_android_text
           @see #BootstrapThumbnail_bt_height
           @see #BootstrapThumbnail_bt_image
           @see #BootstrapThumbnail_bt_inside_padding
           @see #BootstrapThumbnail_bt_roundedCorners
           @see #BootstrapThumbnail_bt_width
         */
        public static final int[] BootstrapThumbnail = {
            0x0101014f, 0x7f01000c, 0x7f01000d, 0x7f01000e,
            0x7f01000f, 0x7f010010
        };
        /**

This symbol is the offset where the {@link android.R.attr#text}
          attribute's value can be found in the {@link #BootstrapThumbnail} array.
          @attr name android:text
        */
        public static final int BootstrapThumbnail_android_text = 0;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bt_height}
          attribute's value can be found in the {@link #BootstrapThumbnail} array.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bt_height
        */
        public static final int BootstrapThumbnail_bt_height = 4;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bt_image}
          attribute's value can be found in the {@link #BootstrapThumbnail} array.

Must be an integer value, such as "100".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bt_image
        */
        public static final int BootstrapThumbnail_bt_image = 2;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bt_inside_padding}
          attribute's value can be found in the {@link #BootstrapThumbnail} array.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bt_inside_padding
        */
        public static final int BootstrapThumbnail_bt_inside_padding = 5;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bt_roundedCorners}
          attribute's value can be found in the {@link #BootstrapThumbnail} array.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bt_roundedCorners
        */
        public static final int BootstrapThumbnail_bt_roundedCorners = 1;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#bt_width}
          attribute's value can be found in the {@link #BootstrapThumbnail} array.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:bt_width
        */
        public static final int BootstrapThumbnail_bt_width = 3;
        /** Attributes that can be used with a FontAwesomeText.

Includes the following attributes:

           <colgroup align="left" />
           <colgroup align="left" />

Attribute	Description

{@link #FontAwesomeText_android_textColor android:textColor}

{@link #FontAwesomeText_android_textSize android:textSize}

{@link #FontAwesomeText_fa_icon com.beardedhen.androidbootstrap.test:fa_icon}

           @see #FontAwesomeText_android_textColor
           @see #FontAwesomeText_android_textSize
           @see #FontAwesomeText_fa_icon
         */
        public static final int[] FontAwesomeText = {
            0x01010095, 0x01010098, 0x7f010011
        };
        /**

This symbol is the offset where the {@link android.R.attr#textColor}
          attribute's value can be found in the {@link #FontAwesomeText} array.
          @attr name android:textColor
        */
        public static final int FontAwesomeText_android_textColor = 1;
        /**

This symbol is the offset where the {@link android.R.attr#textSize}
          attribute's value can be found in the {@link #FontAwesomeText} array.
          @attr name android:textSize
        */
        public static final int FontAwesomeText_android_textSize = 0;
        /**

This symbol is the offset where the {@link com.beardedhen.androidbootstrap.test.R.attr#fa_icon}
          attribute's value can be found in the {@link #FontAwesomeText} array.

Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.beardedhen.androidbootstrap.test:fa_icon
        */
        public static final int FontAwesomeText_fa_icon = 2;
    };
}


text:
package edu.utah.sci.cyclist.core.ui;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javafx.application.Platform;
import javafx.beans.property.ObjectProperty;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Orientation;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuBar;
import javafx.scene.control.MenuItem;
import javafx.scene.control.SeparatorMenuItem;
import javafx.scene.control.SplitPane;
import javafx.scene.control.TabPane;
import javafx.scene.input.KeyCombination;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.stage.Window;
import javafx.stage.WindowEvent;
import edu.utah.sci.cyclist.ToolsLibrary;
import edu.utah.sci.cyclist.core.controller.IMemento;
import edu.utah.sci.cyclist.core.model.Context;
import edu.utah.sci.cyclist.core.model.Resource;
import edu.utah.sci.cyclist.core.model.Simulation;
import edu.utah.sci.cyclist.core.tools.ToolFactory;
import edu.utah.sci.cyclist.core.ui.panels.FiltersListPanel;
import edu.utah.sci.cyclist.core.ui.panels.InputPanel;
import edu.utah.sci.cyclist.core.ui.panels.JobsPanel;
import edu.utah.sci.cyclist.core.ui.panels.SchemaPanel;
import edu.utah.sci.cyclist.core.ui.panels.SimulationsPanel;
import edu.utah.sci.cyclist.core.ui.panels.TablesPanel;
import edu.utah.sci.cyclist.core.ui.panels.TitledPanel;
import edu.utah.sci.cyclist.core.ui.panels.ToolsPanel;
import edu.utah.sci.cyclist.core.ui.wizards.WorkspaceWizard;
import edu.utah.sci.cyclist.core.util.AwesomeIcon;
import edu.utah.sci.cyclist.core.util.GlyphRegistry;

public class MainScreen extends VBox implements Resource {
	public static final String ID = "main-screen";

	private SplitPane _sp;
	private SplitPane _toolsPane;
	private TablesPanel _datasourcesPanel;
	private SchemaPanel _fieldsPanel;
    private ToolsPanel _toolsPanel;
    private InputPanel _inputPanel;
	private TabPane _tabsPane;
	private SimulationsPanel _simulationPanel;
	private JobsPanel _jobsPanel;
	private Map<String, TitledPanel> _panels = new HashMap<>();

	private Menu _perspectiveMenu;
    private Menu _toolsMenu;
//    private Menu _inputMenu;
//	private Menu _runMenu;

	private ObjectProperty<EventHandler<WindowEvent>> _stageCloseProperty;

	/**
	 */
	public  MainScreen(Stage stage) {
		super();
		setId(ID);

		build(stage);
	}

	public Window getWindow() {
		return getScene().getWindow();
	}

	@Override
    public String getUID() {
		// not used
	    return null;
    }

	public ObservableList<String> selectWorkspace(ObservableList<String> list, int chosenIndex) {
		WorkspaceWizard wizard = new WorkspaceWizard();
		wizard.setItems(list,chosenIndex);
		return wizard.show(getScene().getWindow());
	}

	public TabPane getTabPane() {
		return _tabsPane;
	}

	public void showPanels(List<String> list, double[] pos) {
		_toolsPane.getItems().clear();
		for (String name : list) {
			TitledPanel panel = _panels.get(name);
			if (panel != null)
				_toolsPane.getItems().add(panel);
			else
				System.out.println("MainScreen error: unknow panel ["+name+"]");
		}

		Platform.runLater(new Runnable() {
			@Override
			public void run() {
				_toolsPane.setDividerPositions(pos);
			}
		});
	}

	public TablesPanel getDatasourcesPanel() {
		return _datasourcesPanel;
	}

	public SchemaPanel getFieldsPanel(){
		return _fieldsPanel;
	}

    public ToolsPanel getToolsPanel() {
        return _toolsPanel;
    }

    public InputPanel getInputPanel() {
        return _inputPanel;
    }

	public SimulationsPanel getSimulationPanel(){
		return _simulationPanel;
	}

	public JobsPanel getJobsPanel() {
		return _jobsPanel;
	}

	private double TOOLS_WIDTH = 120;

	private void build(Stage stage){
		getStyleClass().add("main-screen");
		double [] mainDividers = {TOOLS_WIDTH/600.0};

		this.setPrefWidth(600);
		this.setPrefHeight(400);
		this.setPadding(new Insets(0));
		this.setSpacing(0);

		_panels.put("Builder", _inputPanel = new InputPanel());
		_panels.put("Simulations", _simulationPanel = new SimulationsPanel());
		_panels.put("Tables", _datasourcesPanel = new TablesPanel());
		_panels.put("Fields", _fieldsPanel = new SchemaPanel("Fields"));
		_panels.put("Tools", _toolsPanel = new ToolsPanel());
		_panels.put("Jobs", _jobsPanel = new JobsPanel());
		_panels.put("Filters", new FiltersListPanel());

		_sp = new SplitPane();
		_sp.setOrientation(Orientation.HORIZONTAL);
		_sp.setDividerPositions(mainDividers);

		_toolsPane = new SplitPane();
		_toolsPane.getStyleClass().add("hiddenSplitter");
		_toolsPane.setPrefWidth(USE_COMPUTED_SIZE);
		_toolsPane.setPrefHeight(USE_COMPUTED_SIZE);
		_toolsPane.setOrientation(Orientation.VERTICAL);

		_sp.getItems().addAll(
				_toolsPane,
				_tabsPane = new TabPane());

		this.getChildren().addAll(
				createMenuBar(stage),
				_sp
				);

		VBox.setVgrow(_sp, Priority.ALWAYS);

		SplitPane.setResizableWithParent(_toolsPane, false);

		_stageCloseProperty = stage.onCloseRequestProperty();
//		_remoteServers = FXCollections.observableArrayList();
//		_remoteServers.addListener(new ListChangeListener<MenuItem>() {
//			@Override
//			public void onChanged(ListChangeListener.Change<? extends MenuItem> change) {
//				List<MenuItem> newServers = new ArrayList<MenuItem>();
//				List<MenuItem> deletedServers = new ArrayList<MenuItem>();
//				while (change.next()) {
//					for (MenuItem item : change.getRemoved()) {
//						deletedServers.add(item);
//					}
//					for (MenuItem item : change.getAddedSubList()) {
//						item.setUserData(item.getText());
//						item.onActionProperty().set(_runMenuItem.getOnAction());
//						newServers.add(item);
//					}
//					updateRunOnMenu(newServers,deletedServers);
//				}
//			}
//		});
	}

	/*
	 * Menus & Actions
	 */

    public Menu getToolsMenu() {
        return _toolsMenu;
    }

//    public Menu getInputMenu() {
//        return _inputMenu;
//    }

	public Menu getPerspectiveMenu() {
		return _perspectiveMenu;
	}

//	public Menu getRunMenu() {
//		return _runMenu;
//	}

	private MenuItem _datasourceMenuItem;
	private MenuItem _workspaceMenuItem;
	private MenuItem _quitMenuItem;
	private MenuItem _saveMenuItem;
	private MenuItem _saveAsMenuItem;
	private MenuItem _simulationMenuItem;
	private MenuItem _sqliteLoaderMenuItem;
//	private MenuItem _runMenuItem;
//	private MenuItem _manageMenuItem;
//	private Menu     _runOnMenu;
//	private MenuItem _runOnOtherItem;
	private MenuItem _preferencesMenuItem;
//	private ObservableList<MenuItem> _remoteServers;

	public ObjectProperty<EventHandler<ActionEvent>> onAddDatasource() {
		return _datasourceMenuItem.onActionProperty();
	}

	public ObjectProperty<EventHandler<ActionEvent>> onAddSimulation() {
		return _simulationMenuItem.onActionProperty();
	}

	public ObjectProperty<EventHandler<ActionEvent>> onLoadSqlite() {
		return _sqliteLoaderMenuItem.onActionProperty();
	}

	public ObjectProperty<EventHandler<ActionEvent>> onSelectWorkspace() {
		return _workspaceMenuItem.onActionProperty();
	}

	public ObjectProperty<EventHandler<ActionEvent>> onSave() {
		return _saveMenuItem.onActionProperty();
	}

	public ObjectProperty<EventHandler<ActionEvent>> onSaveAs() {
		return _saveAsMenuItem.onActionProperty();
	}
	public ObjectProperty<EventHandler<ActionEvent>> onQuit() {
		return _quitMenuItem.onActionProperty();
	}

//	public ObjectProperty<EventHandler<ActionEvent>> onRun() {
//		return _runMenuItem.onActionProperty();
//	}

//	public ObjectProperty<EventHandler<ActionEvent>> onManage() {
//		return _manageMenuItem.onActionProperty();
//	}
//
//	public ObjectProperty<EventHandler<ActionEvent>> onRunOnOther() {
//		return _runOnOtherItem.onActionProperty();
//	}

	public ObjectProperty<Boolean> editDataSourceProperty() {
		return _datasourcesPanel.editTableProperty();
	}

	public ObjectProperty<EventHandler<ActionEvent>> onSetPreferences() {
		return _preferencesMenuItem.onActionProperty();
	}

//	public ObservableList<MenuItem> getRemoteServers(){
//		return _remoteServers;
//	}

	/**
	 * Property which is changed when user wants to edit a simulation entry in the simulations panel.
	 * (Changes the simulation alias field).
	 * (keyboard - escape or enter pressed)
	 * @return ObjectProperty<Simulation> - property is set to the new Simulation value on enter/escape pressed.
	 */
	public ObjectProperty<Simulation> editSimulationProperty() {
		return _simulationPanel.editSimulationProperty();
	}

	/**
	 * Property which is changed when the user selects a simulation entry in the simulations panel.
	 * (trigger - mouse click)
	 * @return ObjectProperty<Simulation> - the selected simulation.
	 */
	public ObjectProperty<Simulation> selectSimulationProperty() {
		return _simulationPanel.selectedItemProperty();
	}

	public ObjectProperty<EventHandler<WindowEvent>> onSystemClose(){
		return _stageCloseProperty;
	}

	public double[] getToolsPositions() {
		return _toolsPane.getDividerPositions();
	}

	public double[] getSplitPositions() {
		return _sp.getDividerPositions();
	}

	public void save(IMemento memento) {
		memento.createChild("sp-pos").putString("values", Arrays.toString(_sp.getDividerPositions()));
	}

	public void restore(IMemento memento, Context ctx) {
		if (memento.getChild("sp-pos") != null) {
			final double [] pos = parseArray(memento.getChild("sp-pos").getString("values"));

			Platform.runLater(new Runnable() {
				@Override
				public void run() {
					_sp.setDividerPositions(pos);
				}
			});
		}
	}

	private double[] parseArray(String str) {
		String[] fields = str.substring(1, str.length()-1).split(",");
		double v[] = new double[fields.length];
		for (int i=0; i<fields.length; i++) {
			v[i] = Double.valueOf(fields[i]);
		}
		return v;

	}
	private MenuBar createMenuBar(Stage stage) {
		MenuBar menubar = new MenuBar();

		Menu fileMenu = createFileMenu();
		Menu dataMenu = createDataMenu();
        _toolsMenu = createToolsMenu();
//        _inputMenu = createInputMenu();
//		_runMenu = createRunMenu();

        menubar.getMenus().addAll(fileMenu, dataMenu, _toolsMenu /*, _inputMenu , _runMenu*/);

		return menubar;
	}

	private Menu createFileMenu() {

		_workspaceMenuItem = new MenuItem("Work Directory",GlyphRegistry.get(AwesomeIcon.FOLDER_OPEN_ALT));

		_saveMenuItem = new MenuItem("Save", GlyphRegistry.get(AwesomeIcon.SAVE));
		_saveMenuItem.setAccelerator(KeyCombination.keyCombination("Meta+S"));

		_saveAsMenuItem = new MenuItem("Save As", GlyphRegistry.get(AwesomeIcon.SAVE));

		_preferencesMenuItem = new MenuItem("Preferences", GlyphRegistry.get(AwesomeIcon.COG));

		// -- Quit
		_quitMenuItem = new MenuItem("Quit", GlyphRegistry.get(AwesomeIcon.SIGN_OUT));
		_quitMenuItem.setAccelerator(KeyCombination.keyCombination("Meta+Q"));

		// -- setup the menu
		Menu fileMenu = new Menu("File");
		fileMenu.getItems().addAll(
					new SeparatorMenuItem(),
					_workspaceMenuItem,
					_saveMenuItem,
					_saveAsMenuItem,
					new SeparatorMenuItem(),
					_preferencesMenuItem,
					new SeparatorMenuItem(),
					_quitMenuItem);
		return fileMenu;
	}

	private Menu createDataMenu() {
		_datasourceMenuItem = new MenuItem("Datatable", GlyphRegistry.get(AwesomeIcon.FOLDER_OPEN_ALT));
		_simulationMenuItem = new MenuItem("Simulation", GlyphRegistry.get(AwesomeIcon.FOLDER_OPEN_ALT));
		_sqliteLoaderMenuItem = new MenuItem("Load Sqlite", GlyphRegistry.get(AwesomeIcon.FOLDER_OPEN_ALT));

		// -- setup the menu
		Menu dataMenu = new Menu("Data");
		dataMenu.getItems().addAll(
				_datasourceMenuItem,_simulationMenuItem,_sqliteLoaderMenuItem);
		return dataMenu;
	}

    private Menu createToolsMenu() {
        Menu menu = new Menu("Tools");

        for (final ToolFactory factory : ToolsLibrary.getFactoriesOfType(ToolsLibrary.SCENARIO_TOOL)) {
        	if (factory.isUserLevel()) {
	            MenuItem item = new MenuItem(factory.getToolName(), GlyphRegistry.get(factory.getIcon()));
	            item.getProperties().put("type", ToolsLibrary.SCENARIO_TOOL);
	            menu.getItems().add(item);
        	}
        }

        for (final ToolFactory factory : ToolsLibrary.getFactoriesOfType(ToolsLibrary.VIS_TOOL)) {
            MenuItem item = new MenuItem(factory.getToolName(), GlyphRegistry.get(factory.getIcon()));
            item.getProperties().put("type", ToolsLibrary.VIS_TOOL);
            menu.getItems().add(item);
        }

        return menu;
    }

    public void selectTools(String type) {
    	for (MenuItem item : _toolsMenu.getItems()) {
    		item.setDisable(item.getProperties().get("type") != type);
    	}
    }

//    private Menu createInputMenu() {
//        Menu menu = new Menu("Scenario Builder");
//
//        for (final ToolFactory factory : ToolsLibrary.getFactoriesOfType(ToolsLibrary.SCENARIO_TOOL)) {
//            MenuItem item = new MenuItem(factory.getToolName(), GlyphRegistry.get(factory.getIcon()));
//            menu.getItems().add(item);
//        }
//
//        return menu;
//    }

//	private Menu createRunMenu() {
//		Menu menu= new Menu("Run");
//		_runMenuItem = new MenuItem("Submit file"/*, GlyphRegistry.get(AwesomeIcon.EXCHANGE))*/);
//		_runMenuItem.setAccelerator(KeyCombination.keyCombination("Meta+R"));
//		//Let the controller retrieve the current default server each time the menu item is selected.
//		_runMenuItem.setUserData("");
//
//		_runOnMenu = new Menu("Run on");
//	    _runOnOtherItem = new MenuItem("other...");
//
//		_runOnMenu.getItems().add(_runOnOtherItem);
//
//		_manageMenuItem = new MenuItem("Manage list");
//
//		menu.getItems().addAll(_runMenuItem,_runOnMenu,_manageMenuItem);
//
//		return menu;
//	}

	/*
	 * Updates the remote servers menu after the list of remote addresses has changed.
	 * Each address is represented by one menu item. Adds or removes menu items according to the
	 * changes in the remote servers list.
	 * @param List<MenuItem> newServers - list of new addresses to add.
	 * @param List<MenuItem> deletedServers - list of addresses to remove.
	 *
	 */
//	private void updateRunOnMenu(List<MenuItem> newServers, List<MenuItem> deletedServers){
//
//		List<MenuItem> deleted = new ArrayList<MenuItem>();
//		//First deleted old items
//		for(MenuItem item : deletedServers){
//			for(MenuItem menuItem :_runOnMenu.getItems()){
//				if(menuItem.getText() != null &&  menuItem.getText().equals(item.getText())){
//					deleted.add(menuItem);
//				}
//			}
//		}
//
//		for(MenuItem menuItem : deleted){
//			_runOnMenu.getItems().remove(menuItem);
//		}
//
//		//If only the separator and "other" where left
//		if(_runOnMenu.getItems().size()==2 && _runOnMenu.getItems().get(0) instanceof SeparatorMenuItem){
//			 _runOnMenu.getItems().remove(0);
//		}
//
//		//If only "other" menu item exists - add a separator
//		if(_runOnMenu.getItems().size()==1 && newServers.size()>0 ){
//			_runOnMenu.getItems().add(0,new SeparatorMenuItem());
//		}
//		if(newServers.size()>0){
//			_runOnMenu.getItems().addAll(0, newServers);
//		}
//	}
}

redpajama_set_name: RedPajamaGithub


text:
package org.apache.mahout.classifier.naivebayes;

import org.apache.mahout.math.DenseVector;
import org.junit.Before;
import org.junit.Test;

public final class StandardNaiveBayesClassifierTest extends NaiveBayesTestBase {

  private StandardNaiveBayesClassifier classifier;

  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    NaiveBayesModel model = createNaiveBayesModel();
    classifier = new StandardNaiveBayesClassifier(model);
  }

  @Test
  public void testNaiveBayes() throws Exception {
    assertEquals(4, classifier.numCategories());
    assertEquals(0, maxIndex(classifier.classifyFull(new DenseVector(new double[] { 1.0, 0.0, 0.0, 0.0 }))));
    assertEquals(1, maxIndex(classifier.classifyFull(new DenseVector(new double[] { 0.0, 1.0, 0.0, 0.0 }))));
    assertEquals(2, maxIndex(classifier.classifyFull(new DenseVector(new double[] { 0.0, 0.0, 1.0, 0.0 }))));
    assertEquals(3, maxIndex(classifier.classifyFull(new DenseVector(new double[] { 0.0, 0.0, 0.0, 1.0 }))));

  }

}


text:
package es.tododev.auth.server.resource;

import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import es.tododev.auth.commons.Constants;

@Path(Constants.LOGIN_CALLBACK_RESOURCE)
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class CookieResource {

	private final static Logger log = LogManager.getLogger();

	private final HttpServletRequest request;

	@Inject
	public CookieResource(HttpServletRequest request){
		this.request = request;
	}

	@GET
	@Path("/login")
	public Response login(){
		String username = (String) request.getAttribute(Constants.USER_NAME_KEY);
		log.info("{} doing login", username);
		return Response.ok().build();
	}

	@GET
	@Path("/logout")
	public Response logout(){
		String username = (String) request.getAttribute(Constants.USER_NAME_KEY);
		log.info("{} doing logout", username);
		return Response.ok().build();
	}

}


text:
export class ValidationOptions {
    public undefinedAllowed:boolean = false;
    public nullAllowed:boolean = false;
    public stringEmptyAllowed:boolean = false;
    public numberZeroAllowed:boolean = true;
    public numberPositiveAllowed:boolean = true;
    public numberNegativeAllowed:boolean = true;
    public booleanFalseAllowed:boolean = true;
    public arrayEmptyAllowed:boolean = false;
    public objectEmptyAllowed:boolean = false;
}

export class ObjectUtils {

    static Validate(obj:any, options?:ValidationOptions): boolean {
        if(options === undefined) {
            options = new ValidationOptions();
        }

        if(obj === undefined) {
            return options.undefinedAllowed;
        }

        if(obj === null) {
            return options.nullAllowed;
        }

        if(typeof obj === "number") {
            if(obj === 0) {
                return options.numberZeroAllowed;
            }
            if(obj < 0) {
                return options.numberNegativeAllowed;
            }
            if(obj > 0) {
                return options.numberPositiveAllowed;
            }
        }

        if(typeof obj === "string") {
            return obj === "" ? options.stringEmptyAllowed : true;
        }

        if(typeof obj === "boolean") {
            return obj === false ? options.booleanFalseAllowed : true;
        }

        if(obj instanceof Array) {
            if(obj.length == 0 && !options.objectEmptyAllowed) {
                return false;
            }
            for(let val of obj) {
                if(!this.Validate(val, options)) {
                    return false;
                }
            }
            return true;
        }

        if(obj instanceof Object) {
            let keys:string[] = Object.keys(obj);

            if(keys.length == 0 && !options.arrayEmptyAllowed) {

                return false;
            }

            for(let key of keys) {
                if(!this.Validate(obj[key], options)) {
                    return false;
                }
            }

            return true;
        }

        return false;
    }

}


text:
using NakedFramework.Architecture.Interactions;
using NakedFramework.Core.Error;

namespace NakedFramework.Metamodel.Error;

/// <summary>
///     The interaction is invalid because the property or action parameter is mandatory
///     (eg not annotated with <see cref="OptionallyAttribute" />).
/// </summary>
public class InvalidMandatoryException : InvalidException {
    public InvalidMandatoryException(IInteractionContext ic, string message)
        : base(ic, message) { }
}


text:
<?php
class MY_Form_validation extends CI_Form_validation {

  function __constuct() {
    parent::__constuct();
  }

  function isnt($str,$field){
    $this->CI->form_validation->set_message('isnt', "%s contains an invalid response");
    return $str!==$field;
  }

  // Transforma los erroeres del form_validation en un array.
  public function error_array() {
        return $this->_error_array;
    }

}
?>


text:
namespace cast {
namespace utils {

namespace {

// Converts gRPC StatusCode to string.
static std::string GrpcStatusCodeToString(grpc::StatusCode code) {
  switch (code) {
    case grpc::StatusCode::OK:
      return "OK";
    case grpc::StatusCode::CANCELLED:
      return "CANCELLED";
    case grpc::StatusCode::UNKNOWN:
      return "UNKNOWN";
    case grpc::StatusCode::INVALID_ARGUMENT:
      return "INVALID_ARGUMENT";
    case grpc::StatusCode::DEADLINE_EXCEEDED:
      return "DEADLINE_EXCEEDED";
    case grpc::StatusCode::NOT_FOUND:
      return "NOT_FOUND";
    case grpc::StatusCode::ALREADY_EXISTS:
      return "ALREADY_EXISTS";
    case grpc::StatusCode::PERMISSION_DENIED:
      return "PERMISSION_DENIED";
    case grpc::StatusCode::UNAUTHENTICATED:
      return "UNAUTHENTICATED";
    case grpc::StatusCode::RESOURCE_EXHAUSTED:
      return "RESOURCE_EXHAUSTED";
    case grpc::StatusCode::FAILED_PRECONDITION:
      return "FAILED_PRECONDITION";
    case grpc::StatusCode::ABORTED:
      return "ABORTED";
    case grpc::StatusCode::OUT_OF_RANGE:
      return "OUT_OF_RANGE";
    case grpc::StatusCode::UNIMPLEMENTED:
      return "UNIMPLEMENTED";
    case grpc::StatusCode::INTERNAL:
      return "INTERNAL";
    case grpc::StatusCode::UNAVAILABLE:
      return "UNAVAILABLE";
    case grpc::StatusCode::DATA_LOSS:
      return "DATA_LOSS";
    default:
      return "";
  }
}

}  // namespace

// static
std::string GrpcStatusToString(const grpc::Status& status) {
  return base::StringPrintf("[status=%s: %s]",
                            GrpcStatusCodeToString(status.error_code()).c_str(),
                            status.error_message().c_str());
}

}  // namespace utils
}  // namespace cast


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.fusesource.mvnplugins</groupId>
    <artifactId>mvnplugins</artifactId>
    <version>1.46-SNAPSHOT</version>
  </parent>

  <groupId>org.fusesource.mvnplugins</groupId>
  <artifactId>maven-uberize-plugin</artifactId>
  <version>1.46-SNAPSHOT</version>
  <packaging>maven-plugin</packaging>

  <name>Maven Uberize Plugin</name>
  <description>Repackages the project classes together with their dependencies into a single uber-jar, optionally applying transofrmations like class renaming and resources aggregation.</description>

  <prerequisites>
    <maven>${mavenVersion}</maven>
  </prerequisites>

  <properties>
    <mavenVersion>2.0.6</mavenVersion>
    <currentVersion>${project.version}</currentVersion>
  </properties>

  <dependencies>
    <!-- Maven -->
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <version>${mavenVersion}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-model</artifactId>
      <version>${mavenVersion}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-project</artifactId>
      <version>${mavenVersion}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact</artifactId>
      <version>${mavenVersion}</version>
    </dependency>

    <!-- Plexus -->
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-container-default</artifactId>
      <version>1.0-alpha-9-stable-1</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <version>1.5.5</version>
    </dependency>

    <dependency>
      <groupId>com.google.code.google-collections</groupId>
      <artifactId>google-collect</artifactId>
      <version>snapshot-20080530</version>
    </dependency>

    <!-- Others -->
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>3.1</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-commons</artifactId>
      <version>3.1</version>
    </dependency>
    <dependency>
      <groupId>jdom</groupId>
      <artifactId>jdom</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.shared</groupId>
      <artifactId>maven-dependency-tree</artifactId>
      <version>1.1</version>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.2</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
      <version>3.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-maven-plugin</artifactId>
        <version>1.3.8</version>
        <executions>
          <execution>
            <goals>
              <goal>descriptor</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>run-its</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-invoker-plugin</artifactId>
            <version>1.3</version>
            <configuration>
              <debug>true</debug>
              <projectsDirectory>src/it</projectsDirectory>
              <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
              <pomIncludes>
                <pomInclude>*/pom.xml</pomInclude>
              </pomIncludes>
              <preBuildHookScript>setup</preBuildHookScript>
              <postBuildHookScript>verify</postBuildHookScript>
              <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
              <settingsFile>src/it/settings.xml</settingsFile>
              <goals>
                <goal>clean</goal>
                <goal>install</goal>
              </goals>
            </configuration>
            <executions>
              <execution>
                <id>integration-test</id>
                <goals>
                  <goal>install</goal>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>


text:
layout: post
title: Deloitte Italy joins AssoB.it association and strengthens its blockchain practice
img: /img/deloitte_assobit3.png
bgimg: /img/post-bg.jpg
membro: L'associazione AssoB.it e Deloitte
ruolo:
---
[//]: # "Scrivere qui  sotto un summary del post"
Milan, April 2016 – Deloitte strengthens its leading position at the
forefront of FinTech innovation by joining AssoB.it, the Italian association
for fostering blockchain knowledge and adoption.
<!-- more -->

## Deloitte and AssoB.it leading blockchain innovation in Italy

"This strategic choice aims to support our clients to better understand
this technology. The adoption of blockchain could bring more efficiency,
security and open up to new possibilities, but, at the same time, it
challenges existing business models" says **Paolo Gianturco, FinTech
leader of Deloitte Consulting Italy**. "The FinTech practice is a key
element of Deloitte Consulting offering:  for this reason we make the
decision to join AssoB.it where the most advanced businesses and experts
in the blockchain space work together at the forefront of technological
innovation.

Deloitte Consulting Italy has been working with financial institutions
on blockchain and cryptocurrency projects for some time already, now
it has launched an internal course to train its professionals and
create new competences in this area.

"Assob.it is proud of having Deloitte has new member, this company has
proven for long time a proactive and passionate interest in the
blockchain technology. With this new entry, AssoB.it improves its
role as blockchain evangelist at institutional and corporate levels"
says **Assob.it President Gabriele Domenichini**.

AssoB.IT (www.assob.it)

No profit Italian association that brings together companies and prominent
experts in blockchain technologies aiming to spread blockchain technology
awareness among people, companies, regulators and public institutions.
Its activities mainly consist in organizing educational events and materials
addressing technological innovation, regulation and opportunities and points
of attention in the blockchain field. Assob.it offers support in legal and
business areas for payment systems, smart contracts, decentralization and
investments in digital assets, privacy and IT security. It encourages
relationships between stakeholders and institutions and regulators
throughout its network.


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<title>PMD Core 5.5.1 Reference Package net.sourceforge.pmd.lang.rule.properties.factories</title>
		<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="style" />

        	net.sourceforge.pmd.lang.rule.properties.factories

Classes

            	BasicPropertyDescriptorFactory

            	PropertyDescriptorUtil


text:
package oculus.aperture.spi.layout.options;

/**
 * @author djonker
 *
 */
public interface VerticalTreeLayoutOptions extends TreeLayoutOptions {

	/**
	 * A vertical layout ideal for a hierarchy or directed acyclic graph (DAG)
	 */
	final static String VERTICAL_TREE = "vtree";

	/**
	 * For vertical directional layouts like trees, a boolean that reverses the default
	 * direction from top-to-bottom to bottom-to-top.
	 */
	public boolean isBottomToTop();

}