text:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class frm_Main
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frm_Main))
        Me.tabAbout = New System.Windows.Forms.TabControl()
        Me.tab_page1 = New System.Windows.Forms.TabPage()
        Me.Label8 = New System.Windows.Forms.Label()
        Me.o230_spannungsabfall = New System.Windows.Forms.TextBox()
        Me.btn_beenden = New System.Windows.Forms.Button()
        Me.btn_berechnen = New System.Windows.Forms.Button()
        Me.Label7 = New System.Windows.Forms.Label()
        Me.o230_querschnitt = New System.Windows.Forms.TextBox()
        Me.Label6 = New System.Windows.Forms.Label()
        Me.i230_leitwert = New System.Windows.Forms.TextBox()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.i230_abfall = New System.Windows.Forms.TextBox()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.i230_wirkungsgrad = New System.Windows.Forms.TextBox()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.i230_strom = New System.Windows.Forms.TextBox()
        Me.i230_spannung = New System.Windows.Forms.TextBox()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.i230_laenge = New System.Windows.Forms.TextBox()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.tab_page2 = New System.Windows.Forms.TabPage()
        Me.Label16 = New System.Windows.Forms.Label()
        Me.o400_querschnitt = New System.Windows.Forms.TextBox()
        Me.btn_beenden400 = New System.Windows.Forms.Button()
        Me.btn_berechnen400 = New System.Windows.Forms.Button()
        Me.Label11 = New System.Windows.Forms.Label()
        Me.i400_leitwert = New System.Windows.Forms.TextBox()
        Me.Label12 = New System.Windows.Forms.Label()
        Me.i400_abfall = New System.Windows.Forms.TextBox()
        Me.Label13 = New System.Windows.Forms.Label()
        Me.i400_wirkungsgrad = New System.Windows.Forms.TextBox()
        Me.Label14 = New System.Windows.Forms.Label()
        Me.i400_strom = New System.Windows.Forms.TextBox()
        Me.i400_spannung = New System.Windows.Forms.TextBox()
        Me.Label15 = New System.Windows.Forms.Label()
        Me.Label9 = New System.Windows.Forms.Label()
        Me.o400_spannungsabfall = New System.Windows.Forms.TextBox()
        Me.i400_laenge = New System.Windows.Forms.TextBox()
        Me.Label10 = New System.Windows.Forms.Label()
        Me.tab3 = New System.Windows.Forms.TabPage()
        Me.oAus_rechnung = New System.Windows.Forms.Label()
        Me.Label17 = New System.Windows.Forms.Label()
        Me.oAus_ausschaltstrom = New System.Windows.Forms.TextBox()
        Me.iAus_type = New System.Windows.Forms.ComboBox()
        Me.Label23 = New System.Windows.Forms.Label()
        Me.Label22 = New System.Windows.Forms.Label()
        Me.iAus_faktor = New System.Windows.Forms.TextBox()
        Me.check_ueber32A = New System.Windows.Forms.RadioButton()
        Me.check_unter32A = New System.Windows.Forms.RadioButton()
        Me.iAus_nennspannung = New System.Windows.Forms.ComboBox()
        Me.btn_beendenAus = New System.Windows.Forms.Button()
        Me.btn_berechnenAus = New System.Windows.Forms.Button()
        Me.Label21 = New System.Windows.Forms.Label()
        Me.iAus_nennstrom = New System.Windows.Forms.TextBox()
        Me.Label18 = New System.Windows.Forms.Label()
        Me.Label19 = New System.Windows.Forms.Label()
        Me.oAus_ergebnis = New System.Windows.Forms.TextBox()
        Me.iAus_schleife = New System.Windows.Forms.TextBox()
        Me.Label20 = New System.Windows.Forms.Label()
        Me.tabPageAbout = New System.Windows.Forms.TabPage()
        Me.lblAboutName = New System.Windows.Forms.Label()
        Me.lblAboutTirol = New System.Windows.Forms.Label()
        Me.linkAboutEmail = New System.Windows.Forms.LinkLabel()
        Me.linkAboutWebsite = New System.Windows.Forms.LinkLabel()
        Me.linkAboutGithub = New System.Windows.Forms.LinkLabel()
        Me.tabAbout.SuspendLayout()
        Me.tab_page1.SuspendLayout()
        Me.tab_page2.SuspendLayout()
        Me.tab3.SuspendLayout()
        Me.tabPageAbout.SuspendLayout()
        Me.SuspendLayout()
        '
        'tabAbout
        '
        Me.tabAbout.Controls.Add(Me.tab_page1)
        Me.tabAbout.Controls.Add(Me.tab_page2)
        Me.tabAbout.Controls.Add(Me.tab3)
        Me.tabAbout.Controls.Add(Me.tabPageAbout)
        Me.tabAbout.Dock = System.Windows.Forms.DockStyle.Fill
        Me.tabAbout.Location = New System.Drawing.Point(0, 0)
        Me.tabAbout.Name = "tabAbout"
        Me.tabAbout.SelectedIndex = 0
        Me.tabAbout.Size = New System.Drawing.Size(475, 250)
        Me.tabAbout.TabIndex = 0
        '
        'tab_page1
        '
        Me.tab_page1.Controls.Add(Me.Label8)
        Me.tab_page1.Controls.Add(Me.o230_spannungsabfall)
        Me.tab_page1.Controls.Add(Me.btn_beenden)
        Me.tab_page1.Controls.Add(Me.btn_berechnen)
        Me.tab_page1.Controls.Add(Me.Label7)
        Me.tab_page1.Controls.Add(Me.o230_querschnitt)
        Me.tab_page1.Controls.Add(Me.Label6)
        Me.tab_page1.Controls.Add(Me.i230_leitwert)
        Me.tab_page1.Controls.Add(Me.Label5)
        Me.tab_page1.Controls.Add(Me.i230_abfall)
        Me.tab_page1.Controls.Add(Me.Label4)
        Me.tab_page1.Controls.Add(Me.i230_wirkungsgrad)
        Me.tab_page1.Controls.Add(Me.Label3)
        Me.tab_page1.Controls.Add(Me.i230_strom)
        Me.tab_page1.Controls.Add(Me.i230_spannung)
        Me.tab_page1.Controls.Add(Me.Label2)
        Me.tab_page1.Controls.Add(Me.i230_laenge)
        Me.tab_page1.Controls.Add(Me.Label1)
        Me.tab_page1.Location = New System.Drawing.Point(4, 22)
        Me.tab_page1.Name = "tab_page1"
        Me.tab_page1.Padding = New System.Windows.Forms.Padding(3)
        Me.tab_page1.Size = New System.Drawing.Size(467, 224)
        Me.tab_page1.TabIndex = 0
        Me.tab_page1.Text = "Wechselstrom (230V)"
        Me.tab_page1.UseVisualStyleBackColor = True
        '
        'Label8
        '
        Me.Label8.AutoSize = True
        Me.Label8.Location = New System.Drawing.Point(251, 28)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(108, 13)
        Me.Label8.TabIndex = 18
        Me.Label8.Text = "Spannungsabfall [ V ]"
        '
        'o230_spannungsabfall
        '
        Me.o230_spannungsabfall.Location = New System.Drawing.Point(387, 25)
        Me.o230_spannungsabfall.Name = "o230_spannungsabfall"
        Me.o230_spannungsabfall.ReadOnly = True
        Me.o230_spannungsabfall.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.o230_spannungsabfall.Size = New System.Drawing.Size(65, 20)
        Me.o230_spannungsabfall.TabIndex = 17
        '
        'btn_beenden
        '
        Me.btn_beenden.Location = New System.Drawing.Point(254, 181)
        Me.btn_beenden.Name = "btn_beenden"
        Me.btn_beenden.Size = New System.Drawing.Size(198, 27)
        Me.btn_beenden.TabIndex = 16
        Me.btn_beenden.Text = "BEENDEN"
        Me.btn_beenden.UseVisualStyleBackColor = True
        '
        'btn_berechnen
        '
        Me.btn_berechnen.Location = New System.Drawing.Point(11, 181)
        Me.btn_berechnen.Name = "btn_berechnen"
        Me.btn_berechnen.Size = New System.Drawing.Size(197, 27)
        Me.btn_berechnen.TabIndex = 15
        Me.btn_berechnen.Text = "BERECHNEN"
        Me.btn_berechnen.UseVisualStyleBackColor = True
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.Location = New System.Drawing.Point(251, 54)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(116, 13)
        Me.Label7.TabIndex = 13
        Me.Label7.Text = "Leiterquerschnitt [ mm ]"
        '
        'o230_querschnitt
        '
        Me.o230_querschnitt.Location = New System.Drawing.Point(387, 51)
        Me.o230_querschnitt.Name = "o230_querschnitt"
        Me.o230_querschnitt.ReadOnly = True
        Me.o230_querschnitt.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.o230_querschnitt.Size = New System.Drawing.Size(65, 20)
        Me.o230_querschnitt.TabIndex = 12
        '
        'Label6
        '
        Me.Label6.AutoSize = True
        Me.Label6.Location = New System.Drawing.Point(8, 158)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(44, 13)
        Me.Label6.TabIndex = 11
        Me.Label6.Text = "Leitwert"
        '
        'i230_leitwert
        '
        Me.i230_leitwert.Location = New System.Drawing.Point(144, 155)
        Me.i230_leitwert.Name = "i230_leitwert"
        Me.i230_leitwert.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i230_leitwert.Size = New System.Drawing.Size(64, 20)
        Me.i230_leitwert.TabIndex = 10
        Me.i230_leitwert.Text = "56"
        '
        'Label5
        '
        Me.Label5.AutoSize = True
        Me.Label5.Location = New System.Drawing.Point(8, 132)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(109, 13)
        Me.Label5.TabIndex = 9
        Me.Label5.Text = "Spannungsabfall [ % ]"
        '
        'i230_abfall
        '
        Me.i230_abfall.Location = New System.Drawing.Point(144, 129)
        Me.i230_abfall.Name = "i230_abfall"
        Me.i230_abfall.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i230_abfall.Size = New System.Drawing.Size(64, 20)
        Me.i230_abfall.TabIndex = 8
        Me.i230_abfall.Text = "3"
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.Location = New System.Drawing.Point(8, 106)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(73, 13)
        Me.Label4.TabIndex = 7
        Me.Label4.Text = "Wirkungsgrad"
        '
        'i230_wirkungsgrad
        '
        Me.i230_wirkungsgrad.Location = New System.Drawing.Point(144, 103)
        Me.i230_wirkungsgrad.Name = "i230_wirkungsgrad"
        Me.i230_wirkungsgrad.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i230_wirkungsgrad.Size = New System.Drawing.Size(64, 20)
        Me.i230_wirkungsgrad.TabIndex = 6
        Me.i230_wirkungsgrad.Text = "0,8"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.Location = New System.Drawing.Point(8, 80)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(80, 13)
        Me.Label3.TabIndex = 5
        Me.Label3.Text = "Leiterstrom [ A ]"
        '
        'i230_strom
        '
        Me.i230_strom.Location = New System.Drawing.Point(144, 77)
        Me.i230_strom.Name = "i230_strom"
        Me.i230_strom.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i230_strom.Size = New System.Drawing.Size(64, 20)
        Me.i230_strom.TabIndex = 4
        Me.i230_strom.Text = "16"
        '
        'i230_spannung
        '
        Me.i230_spannung.Location = New System.Drawing.Point(144, 51)
        Me.i230_spannung.Name = "i230_spannung"
        Me.i230_spannung.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i230_spannung.Size = New System.Drawing.Size(64, 20)
        Me.i230_spannung.TabIndex = 3
        Me.i230_spannung.Text = "230"
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.Location = New System.Drawing.Point(8, 54)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(78, 13)
        Me.Label2.TabIndex = 2
        Me.Label2.Text = "Spannung [ V ]"
        '
        'i230_laenge
        '
        Me.i230_laenge.Location = New System.Drawing.Point(144, 25)
        Me.i230_laenge.Name = "i230_laenge"
        Me.i230_laenge.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i230_laenge.Size = New System.Drawing.Size(64, 20)
        Me.i230_laenge.TabIndex = 1
        Me.i230_laenge.Text = "20"
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.Location = New System.Drawing.Point(8, 28)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(96, 13)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "Leitungslänge [ m ]"
        '
        'tab_page2
        '
        Me.tab_page2.Controls.Add(Me.Label16)
        Me.tab_page2.Controls.Add(Me.o400_querschnitt)
        Me.tab_page2.Controls.Add(Me.btn_beenden400)
        Me.tab_page2.Controls.Add(Me.btn_berechnen400)
        Me.tab_page2.Controls.Add(Me.Label11)
        Me.tab_page2.Controls.Add(Me.i400_leitwert)
        Me.tab_page2.Controls.Add(Me.Label12)
        Me.tab_page2.Controls.Add(Me.i400_abfall)
        Me.tab_page2.Controls.Add(Me.Label13)
        Me.tab_page2.Controls.Add(Me.i400_wirkungsgrad)
        Me.tab_page2.Controls.Add(Me.Label14)
        Me.tab_page2.Controls.Add(Me.i400_strom)
        Me.tab_page2.Controls.Add(Me.i400_spannung)
        Me.tab_page2.Controls.Add(Me.Label15)
        Me.tab_page2.Controls.Add(Me.Label9)
        Me.tab_page2.Controls.Add(Me.o400_spannungsabfall)
        Me.tab_page2.Controls.Add(Me.i400_laenge)
        Me.tab_page2.Controls.Add(Me.Label10)
        Me.tab_page2.Location = New System.Drawing.Point(4, 22)
        Me.tab_page2.Name = "tab_page2"
        Me.tab_page2.Padding = New System.Windows.Forms.Padding(3)
        Me.tab_page2.Size = New System.Drawing.Size(467, 224)
        Me.tab_page2.TabIndex = 1
        Me.tab_page2.Text = "Drehstrom (400V)"
        Me.tab_page2.UseVisualStyleBackColor = True
        '
        'Label16
        '
        Me.Label16.AutoSize = True
        Me.Label16.Location = New System.Drawing.Point(251, 54)
        Me.Label16.Name = "Label16"
        Me.Label16.Size = New System.Drawing.Size(116, 13)
        Me.Label16.TabIndex = 36
        Me.Label16.Text = "Leiterquerschnitt [ mm ]"
        '
        'o400_querschnitt
        '
        Me.o400_querschnitt.Location = New System.Drawing.Point(387, 51)
        Me.o400_querschnitt.Name = "o400_querschnitt"
        Me.o400_querschnitt.ReadOnly = True
        Me.o400_querschnitt.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.o400_querschnitt.Size = New System.Drawing.Size(65, 20)
        Me.o400_querschnitt.TabIndex = 35
        '
        'btn_beenden400
        '
        Me.btn_beenden400.Location = New System.Drawing.Point(254, 181)
        Me.btn_beenden400.Name = "btn_beenden400"
        Me.btn_beenden400.Size = New System.Drawing.Size(198, 27)
        Me.btn_beenden400.TabIndex = 34
        Me.btn_beenden400.Text = "BEENDEN"
        Me.btn_beenden400.UseVisualStyleBackColor = True
        '
        'btn_berechnen400
        '
        Me.btn_berechnen400.Location = New System.Drawing.Point(11, 181)
        Me.btn_berechnen400.Name = "btn_berechnen400"
        Me.btn_berechnen400.Size = New System.Drawing.Size(197, 27)
        Me.btn_berechnen400.TabIndex = 33
        Me.btn_berechnen400.Text = "BERECHNEN"
        Me.btn_berechnen400.UseVisualStyleBackColor = True
        '
        'Label11
        '
        Me.Label11.AutoSize = True
        Me.Label11.Location = New System.Drawing.Point(8, 158)
        Me.Label11.Name = "Label11"
        Me.Label11.Size = New System.Drawing.Size(44, 13)
        Me.Label11.TabIndex = 32
        Me.Label11.Text = "Leitwert"
        '
        'i400_leitwert
        '
        Me.i400_leitwert.Location = New System.Drawing.Point(144, 155)
        Me.i400_leitwert.Name = "i400_leitwert"
        Me.i400_leitwert.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i400_leitwert.Size = New System.Drawing.Size(64, 20)
        Me.i400_leitwert.TabIndex = 31
        Me.i400_leitwert.Text = "56"
        '
        'Label12
        '
        Me.Label12.AutoSize = True
        Me.Label12.Location = New System.Drawing.Point(8, 132)
        Me.Label12.Name = "Label12"
        Me.Label12.Size = New System.Drawing.Size(109, 13)
        Me.Label12.TabIndex = 30
        Me.Label12.Text = "Spannungsabfall [ % ]"
        '
        'i400_abfall
        '
        Me.i400_abfall.Location = New System.Drawing.Point(144, 129)
        Me.i400_abfall.Name = "i400_abfall"
        Me.i400_abfall.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i400_abfall.Size = New System.Drawing.Size(64, 20)
        Me.i400_abfall.TabIndex = 29
        Me.i400_abfall.Text = "3"
        '
        'Label13
        '
        Me.Label13.AutoSize = True
        Me.Label13.Location = New System.Drawing.Point(8, 106)
        Me.Label13.Name = "Label13"
        Me.Label13.Size = New System.Drawing.Size(73, 13)
        Me.Label13.TabIndex = 28
        Me.Label13.Text = "Wirkungsgrad"
        '
        'i400_wirkungsgrad
        '
        Me.i400_wirkungsgrad.Location = New System.Drawing.Point(144, 103)
        Me.i400_wirkungsgrad.Name = "i400_wirkungsgrad"
        Me.i400_wirkungsgrad.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i400_wirkungsgrad.Size = New System.Drawing.Size(64, 20)
        Me.i400_wirkungsgrad.TabIndex = 27
        Me.i400_wirkungsgrad.Text = "0,8"
        '
        'Label14
        '
        Me.Label14.AutoSize = True
        Me.Label14.Location = New System.Drawing.Point(8, 80)
        Me.Label14.Name = "Label14"
        Me.Label14.Size = New System.Drawing.Size(80, 13)
        Me.Label14.TabIndex = 26
        Me.Label14.Text = "Leiterstrom [ A ]"
        '
        'i400_strom
        '
        Me.i400_strom.Location = New System.Drawing.Point(144, 77)
        Me.i400_strom.Name = "i400_strom"
        Me.i400_strom.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i400_strom.Size = New System.Drawing.Size(64, 20)
        Me.i400_strom.TabIndex = 25
        Me.i400_strom.Text = "16"
        '
        'i400_spannung
        '
        Me.i400_spannung.Location = New System.Drawing.Point(144, 51)
        Me.i400_spannung.Name = "i400_spannung"
        Me.i400_spannung.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i400_spannung.Size = New System.Drawing.Size(64, 20)
        Me.i400_spannung.TabIndex = 24
        Me.i400_spannung.Text = "400"
        '
        'Label15
        '
        Me.Label15.AutoSize = True
        Me.Label15.Location = New System.Drawing.Point(8, 54)
        Me.Label15.Name = "Label15"
        Me.Label15.Size = New System.Drawing.Size(78, 13)
        Me.Label15.TabIndex = 23
        Me.Label15.Text = "Spannung [ V ]"
        '
        'Label9
        '
        Me.Label9.AutoSize = True
        Me.Label9.Location = New System.Drawing.Point(251, 28)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(108, 13)
        Me.Label9.TabIndex = 22
        Me.Label9.Text = "Spannungsabfall [ V ]"
        '
        'o400_spannungsabfall
        '
        Me.o400_spannungsabfall.Location = New System.Drawing.Point(387, 25)
        Me.o400_spannungsabfall.Name = "o400_spannungsabfall"
        Me.o400_spannungsabfall.ReadOnly = True
        Me.o400_spannungsabfall.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.o400_spannungsabfall.Size = New System.Drawing.Size(65, 20)
        Me.o400_spannungsabfall.TabIndex = 21
        '
        'i400_laenge
        '
        Me.i400_laenge.Location = New System.Drawing.Point(144, 25)
        Me.i400_laenge.Name = "i400_laenge"
        Me.i400_laenge.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.i400_laenge.Size = New System.Drawing.Size(64, 20)
        Me.i400_laenge.TabIndex = 20
        Me.i400_laenge.Text = "30"
        '
        'Label10
        '
        Me.Label10.AutoSize = True
        Me.Label10.Location = New System.Drawing.Point(8, 28)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(96, 13)
        Me.Label10.TabIndex = 19
        Me.Label10.Text = "Leitungslänge [ m ]"
        '
        'tab3
        '
        Me.tab3.Controls.Add(Me.oAus_rechnung)
        Me.tab3.Controls.Add(Me.Label17)
        Me.tab3.Controls.Add(Me.oAus_ausschaltstrom)
        Me.tab3.Controls.Add(Me.iAus_type)
        Me.tab3.Controls.Add(Me.Label23)
        Me.tab3.Controls.Add(Me.Label22)
        Me.tab3.Controls.Add(Me.iAus_faktor)
        Me.tab3.Controls.Add(Me.check_ueber32A)
        Me.tab3.Controls.Add(Me.check_unter32A)
        Me.tab3.Controls.Add(Me.iAus_nennspannung)
        Me.tab3.Controls.Add(Me.btn_beendenAus)
        Me.tab3.Controls.Add(Me.btn_berechnenAus)
        Me.tab3.Controls.Add(Me.Label21)
        Me.tab3.Controls.Add(Me.iAus_nennstrom)
        Me.tab3.Controls.Add(Me.Label18)
        Me.tab3.Controls.Add(Me.Label19)
        Me.tab3.Controls.Add(Me.oAus_ergebnis)
        Me.tab3.Controls.Add(Me.iAus_schleife)
        Me.tab3.Controls.Add(Me.Label20)
        Me.tab3.Location = New System.Drawing.Point(4, 22)
        Me.tab3.Name = "tab3"
        Me.tab3.Padding = New System.Windows.Forms.Padding(3)
        Me.tab3.Size = New System.Drawing.Size(467, 224)
        Me.tab3.TabIndex = 2
        Me.tab3.Text = "Ausschaltbedingung"
        Me.tab3.UseVisualStyleBackColor = True
        '
        'oAus_rechnung
        '
        Me.oAus_rechnung.AutoSize = True
        Me.oAus_rechnung.Location = New System.Drawing.Point(260, 131)
        Me.oAus_rechnung.Name = "oAus_rechnung"
        Me.oAus_rechnung.Size = New System.Drawing.Size(66, 13)
        Me.oAus_rechnung.TabIndex = 61
        Me.oAus_rechnung.Text = "Rechnung..."
        '
        'Label17
        '
        Me.Label17.AutoSize = True
        Me.Label17.Location = New System.Drawing.Point(260, 80)
        Me.Label17.Name = "Label17"
        Me.Label17.Size = New System.Drawing.Size(100, 13)
        Me.Label17.TabIndex = 60
        Me.Label17.Text = "Ausschaltstrom [ A ]"
        '
        'oAus_ausschaltstrom
        '
        Me.oAus_ausschaltstrom.Enabled = False
        Me.oAus_ausschaltstrom.Location = New System.Drawing.Point(387, 77)
        Me.oAus_ausschaltstrom.Name = "oAus_ausschaltstrom"
        Me.oAus_ausschaltstrom.Size = New System.Drawing.Size(65, 20)
        Me.oAus_ausschaltstrom.TabIndex = 59
        '
        'iAus_type
        '
        Me.iAus_type.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.iAus_type.FormattingEnabled = True
        Me.iAus_type.Items.AddRange(New Object() {"Schmelz", "B", "C", "D"})
        Me.iAus_type.Location = New System.Drawing.Point(144, 103)
        Me.iAus_type.Name = "iAus_type"
        Me.iAus_type.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.iAus_type.Size = New System.Drawing.Size(64, 21)
        Me.iAus_type.TabIndex = 58
        '
        'Label23
        '
        Me.Label23.AutoSize = True
        Me.Label23.Location = New System.Drawing.Point(8, 106)
        Me.Label23.Name = "Label23"
        Me.Label23.Size = New System.Drawing.Size(80, 13)
        Me.Label23.TabIndex = 57
        Me.Label23.Text = "Sicherungstype"
        '
        'Label22
        '
        Me.Label22.AutoSize = True
        Me.Label22.Location = New System.Drawing.Point(8, 132)
        Me.Label22.Name = "Label22"
        Me.Label22.Size = New System.Drawing.Size(105, 13)
        Me.Label22.TabIndex = 55
        Me.Label22.Text = "Ausschaltstromfaktor"
        '
        'iAus_faktor
        '
        Me.iAus_faktor.Location = New System.Drawing.Point(144, 129)
        Me.iAus_faktor.Name = "iAus_faktor"
        Me.iAus_faktor.ReadOnly = True
        Me.iAus_faktor.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.iAus_faktor.Size = New System.Drawing.Size(64, 20)
        Me.iAus_faktor.TabIndex = 54
        '
        'check_ueber32A
        '
        Me.check_ueber32A.AutoSize = True
        Me.check_ueber32A.Location = New System.Drawing.Point(254, 52)
        Me.check_ueber32A.Name = "check_ueber32A"
        Me.check_ueber32A.Size = New System.Drawing.Size(140, 17)
        Me.check_ueber32A.TabIndex = 51
        Me.check_ueber32A.Text = "Endstromkreis über 32 A"
        Me.check_ueber32A.UseVisualStyleBackColor = True
        '
        'check_unter32A
        '
        Me.check_unter32A.AutoSize = True
        Me.check_unter32A.Checked = True
        Me.check_unter32A.Location = New System.Drawing.Point(254, 26)
        Me.check_unter32A.Name = "check_unter32A"
        Me.check_unter32A.Size = New System.Drawing.Size(143, 17)
        Me.check_unter32A.TabIndex = 50
        Me.check_unter32A.TabStop = True
        Me.check_unter32A.Text = "Endstromkreis unter 32 A"
        Me.check_unter32A.UseVisualStyleBackColor = True
        '
        'iAus_nennspannung
        '
        Me.iAus_nennspannung.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.iAus_nennspannung.FormattingEnabled = True
        Me.iAus_nennspannung.Items.AddRange(New Object() {"230", "400"})
        Me.iAus_nennspannung.Location = New System.Drawing.Point(144, 77)
        Me.iAus_nennspannung.Name = "iAus_nennspannung"
        Me.iAus_nennspannung.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.iAus_nennspannung.Size = New System.Drawing.Size(64, 21)
        Me.iAus_nennspannung.TabIndex = 49
        '
        'btn_beendenAus
        '
        Me.btn_beendenAus.Location = New System.Drawing.Point(254, 181)
        Me.btn_beendenAus.Name = "btn_beendenAus"
        Me.btn_beendenAus.Size = New System.Drawing.Size(198, 27)
        Me.btn_beendenAus.TabIndex = 48
        Me.btn_beendenAus.Text = "BEENDEN"
        Me.btn_beendenAus.UseVisualStyleBackColor = True
        '
        'btn_berechnenAus
        '
        Me.btn_berechnenAus.Location = New System.Drawing.Point(11, 181)
        Me.btn_berechnenAus.Name = "btn_berechnenAus"
        Me.btn_berechnenAus.Size = New System.Drawing.Size(197, 27)
        Me.btn_berechnenAus.TabIndex = 47
        Me.btn_berechnenAus.Text = "BERECHNEN"
        Me.btn_berechnenAus.UseVisualStyleBackColor = True
        '
        'Label21
        '
        Me.Label21.AutoSize = True
        Me.Label21.Location = New System.Drawing.Point(8, 80)
        Me.Label21.Name = "Label21"
        Me.Label21.Size = New System.Drawing.Size(102, 13)
        Me.Label21.TabIndex = 45
        Me.Label21.Text = "Nennspannung [ V ]"
        '
        'iAus_nennstrom
        '
        Me.iAus_nennstrom.Location = New System.Drawing.Point(144, 51)
        Me.iAus_nennstrom.Name = "iAus_nennstrom"
        Me.iAus_nennstrom.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.iAus_nennstrom.Size = New System.Drawing.Size(64, 20)
        Me.iAus_nennstrom.TabIndex = 42
        Me.iAus_nennstrom.Text = "16"
        '
        'Label18
        '
        Me.Label18.AutoSize = True
        Me.Label18.Location = New System.Drawing.Point(8, 54)
        Me.Label18.Name = "Label18"
        Me.Label18.Size = New System.Drawing.Size(91, 13)
        Me.Label18.TabIndex = 41
        Me.Label18.Text = "Vorsicherung [ A ]"
        '
        'Label19
        '
        Me.Label19.AutoSize = True
        Me.Label19.Location = New System.Drawing.Point(260, 105)
        Me.Label19.Name = "Label19"
        Me.Label19.Size = New System.Drawing.Size(85, 13)
        Me.Label19.TabIndex = 40
        Me.Label19.Text = "Widerstand OK?"
        '
        'oAus_ergebnis
        '
        Me.oAus_ergebnis.BackColor = System.Drawing.SystemColors.Window
        Me.oAus_ergebnis.Enabled = False
        Me.oAus_ergebnis.Location = New System.Drawing.Point(387, 102)
        Me.oAus_ergebnis.Name = "oAus_ergebnis"
        Me.oAus_ergebnis.ReadOnly = True
        Me.oAus_ergebnis.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.oAus_ergebnis.Size = New System.Drawing.Size(65, 20)
        Me.oAus_ergebnis.TabIndex = 39
        '
        'iAus_schleife
        '
        Me.iAus_schleife.Location = New System.Drawing.Point(144, 25)
        Me.iAus_schleife.Name = "iAus_schleife"
        Me.iAus_schleife.RightToLeft = System.Windows.Forms.RightToLeft.Yes
        Me.iAus_schleife.Size = New System.Drawing.Size(64, 20)
        Me.iAus_schleife.TabIndex = 38
        Me.iAus_schleife.Text = "3"
        '
        'Label20
        '
        Me.Label20.AutoSize = True
        Me.Label20.Location = New System.Drawing.Point(8, 28)
        Me.Label20.Name = "Label20"
        Me.Label20.Size = New System.Drawing.Size(133, 13)
        Me.Label20.TabIndex = 37
        Me.Label20.Text = "Schleifenimpedanz [ Ohm ]"
        '
        'tabPageAbout
        '
        Me.tabPageAbout.Controls.Add(Me.linkAboutGithub)
        Me.tabPageAbout.Controls.Add(Me.linkAboutWebsite)
        Me.tabPageAbout.Controls.Add(Me.linkAboutEmail)
        Me.tabPageAbout.Controls.Add(Me.lblAboutTirol)
        Me.tabPageAbout.Controls.Add(Me.lblAboutName)
        Me.tabPageAbout.Location = New System.Drawing.Point(4, 22)
        Me.tabPageAbout.Name = "tabPageAbout"
        Me.tabPageAbout.Padding = New System.Windows.Forms.Padding(3)
        Me.tabPageAbout.Size = New System.Drawing.Size(467, 224)
        Me.tabPageAbout.TabIndex = 3
        Me.tabPageAbout.Text = "About"
        Me.tabPageAbout.UseVisualStyleBackColor = True
        '
        'lblAboutName
        '
        Me.lblAboutName.AutoSize = True
        Me.lblAboutName.Location = New System.Drawing.Point(25, 30)
        Me.lblAboutName.Name = "lblAboutName"
        Me.lblAboutName.Size = New System.Drawing.Size(76, 13)
        Me.lblAboutName.TabIndex = 0
        Me.lblAboutName.Text = "Dominic Reich"
        '
        'lblAboutTirol
        '
        Me.lblAboutTirol.AutoSize = True
        Me.lblAboutTirol.Location = New System.Drawing.Point(25, 45)
        Me.lblAboutTirol.Name = "lblAboutTirol"
        Me.lblAboutTirol.Size = New System.Drawing.Size(68, 13)
        Me.lblAboutTirol.TabIndex = 1
        Me.lblAboutTirol.Text = "Tirol - Austria"
        '
        'linkAboutEmail
        '
        Me.linkAboutEmail.AutoSize = True
        Me.linkAboutEmail.Location = New System.Drawing.Point(25, 60)
        Me.linkAboutEmail.Name = "linkAboutEmail"
        Me.linkAboutEmail.Size = New System.Drawing.Size(117, 13)
        Me.linkAboutEmail.TabIndex = 2
        Me.linkAboutEmail.TabStop = True
        Me.linkAboutEmail.Text = "info@dominicreich.com"
        '
        'linkAboutWebsite
        '
        Me.linkAboutWebsite.AutoSize = True
        Me.linkAboutWebsite.Location = New System.Drawing.Point(25, 75)
        Me.linkAboutWebsite.Name = "linkAboutWebsite"
        Me.linkAboutWebsite.Size = New System.Drawing.Size(125, 13)
        Me.linkAboutWebsite.TabIndex = 3
        Me.linkAboutWebsite.TabStop = True
        Me.linkAboutWebsite.Text = "https://dominicreich.com"
        '
        'linkAboutGithub
        '
        Me.linkAboutGithub.AutoSize = True
        Me.linkAboutGithub.Location = New System.Drawing.Point(25, 90)
        Me.linkAboutGithub.Name = "linkAboutGithub"
        Me.linkAboutGithub.Size = New System.Drawing.Size(127, 13)
        Me.linkAboutGithub.TabIndex = 4
        Me.linkAboutGithub.TabStop = True
        Me.linkAboutGithub.Text = "Dieses Projekt auf Github"
        '
        'frm_Main
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(475, 250)
        Me.Controls.Add(Me.tabAbout)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.MaximizeBox = False
        Me.Name = "frm_Main"
        Me.Text = "Leitungslängenberechnung"
        Me.tabAbout.ResumeLayout(False)
        Me.tab_page1.ResumeLayout(False)
        Me.tab_page1.PerformLayout()
        Me.tab_page2.ResumeLayout(False)
        Me.tab_page2.PerformLayout()
        Me.tab3.ResumeLayout(False)
        Me.tab3.PerformLayout()
        Me.tabPageAbout.ResumeLayout(False)
        Me.tabPageAbout.PerformLayout()
        Me.ResumeLayout(False)

    End Sub
    Friend WithEvents tabAbout As System.Windows.Forms.TabControl
    Friend WithEvents tab_page1 As System.Windows.Forms.TabPage
    Friend WithEvents tab_page2 As System.Windows.Forms.TabPage
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents o230_querschnitt As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents i230_leitwert As System.Windows.Forms.TextBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents i230_abfall As System.Windows.Forms.TextBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents i230_wirkungsgrad As System.Windows.Forms.TextBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents i230_strom As System.Windows.Forms.TextBox
    Friend WithEvents i230_spannung As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents i230_laenge As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents btn_beenden As System.Windows.Forms.Button
    Friend WithEvents btn_berechnen As System.Windows.Forms.Button
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents o230_spannungsabfall As System.Windows.Forms.TextBox
    Friend WithEvents Label16 As System.Windows.Forms.Label
    Friend WithEvents o400_querschnitt As System.Windows.Forms.TextBox
    Friend WithEvents btn_beenden400 As System.Windows.Forms.Button
    Friend WithEvents btn_berechnen400 As System.Windows.Forms.Button
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents i400_leitwert As System.Windows.Forms.TextBox
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents i400_abfall As System.Windows.Forms.TextBox
    Friend WithEvents Label13 As System.Windows.Forms.Label
    Friend WithEvents i400_wirkungsgrad As System.Windows.Forms.TextBox
    Friend WithEvents Label14 As System.Windows.Forms.Label
    Friend WithEvents i400_strom As System.Windows.Forms.TextBox
    Friend WithEvents i400_spannung As System.Windows.Forms.TextBox
    Friend WithEvents Label15 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents o400_spannungsabfall As System.Windows.Forms.TextBox
    Friend WithEvents i400_laenge As System.Windows.Forms.TextBox
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents tab3 As System.Windows.Forms.TabPage
    Friend WithEvents Label21 As System.Windows.Forms.Label
    Friend WithEvents iAus_nennstrom As System.Windows.Forms.TextBox
    Friend WithEvents Label18 As System.Windows.Forms.Label
    Friend WithEvents Label19 As System.Windows.Forms.Label
    Friend WithEvents oAus_ergebnis As System.Windows.Forms.TextBox
    Friend WithEvents iAus_schleife As System.Windows.Forms.TextBox
    Friend WithEvents Label20 As System.Windows.Forms.Label
    Friend WithEvents btn_beendenAus As System.Windows.Forms.Button
    Friend WithEvents btn_berechnenAus As System.Windows.Forms.Button
    Friend WithEvents iAus_nennspannung As System.Windows.Forms.ComboBox
    Friend WithEvents check_ueber32A As System.Windows.Forms.RadioButton
    Friend WithEvents check_unter32A As System.Windows.Forms.RadioButton
    Friend WithEvents Label22 As System.Windows.Forms.Label
    Friend WithEvents iAus_faktor As System.Windows.Forms.TextBox
    Friend WithEvents Label23 As System.Windows.Forms.Label
    Friend WithEvents iAus_type As System.Windows.Forms.ComboBox
    Friend WithEvents Label17 As System.Windows.Forms.Label
    Friend WithEvents oAus_ausschaltstrom As System.Windows.Forms.TextBox
    Friend WithEvents oAus_rechnung As System.Windows.Forms.Label
    Friend WithEvents tabPageAbout As TabPage
    Friend WithEvents lblAboutName As Label
    Friend WithEvents linkAboutWebsite As LinkLabel
    Friend WithEvents linkAboutEmail As LinkLabel
    Friend WithEvents lblAboutTirol As Label
    Friend WithEvents linkAboutGithub As LinkLabel
End Class


text:
/*
 * Created by IntelliJ IDEA.
 * User: dsl
 * Date: 06.06.2002
 * Time: 11:30:13
 * To change template for new class use
 * Code Style | Class Templates options (Tools | IDE Options).
 */
package com.intellij.refactoring.turnRefsToSuper;

import com.intellij.openapi.help.HelpManager;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiClass;
import com.intellij.refactoring.HelpID;
import com.intellij.refactoring.JavaRefactoringSettings;
import com.intellij.refactoring.RefactoringBundle;
import com.intellij.refactoring.ui.ClassCellRenderer;
import com.intellij.refactoring.ui.RefactoringDialog;
import com.intellij.refactoring.util.RefactoringHierarchyUtil;
import com.intellij.ui.IdeBorderFactory;
import com.intellij.ui.ScrollPaneFactory;
import com.intellij.ui.components.JBList;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;
import java.awt.*;
import java.util.List;

public class TurnRefsToSuperDialog extends RefactoringDialog {
  @NotNull private final PsiClass mySubClass;
  private final List mySuperClasses;

  private JList mySuperClassesList = null;
  private final JCheckBox myCbReplaceInstanceOf = new JCheckBox();

  TurnRefsToSuperDialog(Project project, @NotNull PsiClass subClass, List superClasses) {
    super(project, true);

    mySubClass = subClass;
    mySuperClasses = superClasses;

    setTitle(TurnRefsToSuperHandler.REFACTORING_NAME);
    init();
  }

  public PsiClass getSuperClass() {
    if(mySuperClassesList != null) {
      return (PsiClass) mySuperClassesList.getSelectedValue();
    }
    else {
      return null;
    }
  }

  public boolean isUseInInstanceOf() {
    return myCbReplaceInstanceOf.isSelected();
  }

  protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(HelpID.TURN_REFS_TO_SUPER);
  }

  public JComponent getPreferredFocusedComponent() {
    return mySuperClassesList;
  }

  protected JComponent createNorthPanel() {
    JPanel panel = new JPanel();
    panel.setBorder(IdeBorderFactory.createRoundedBorder());

    panel.setLayout(new GridBagLayout());
    GridBagConstraints gbConstraints = new GridBagConstraints();

    gbConstraints.insets = new Insets(4, 8, 4, 8);
    gbConstraints.weighty = 1;
    gbConstraints.weightx = 1;
    gbConstraints.gridy = 0;
    gbConstraints.gridwidth = GridBagConstraints.REMAINDER;
    gbConstraints.fill = GridBagConstraints.BOTH;
    gbConstraints.anchor = GridBagConstraints.WEST;
    final JLabel classListLabel = new JLabel();
    panel.add(classListLabel, gbConstraints);

    mySuperClassesList = new JBList(mySuperClasses.toArray());
    mySuperClassesList.setCellRenderer(new ClassCellRenderer());
    mySuperClassesList.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    classListLabel.setText(RefactoringBundle.message("turnRefsToSuper.change.usages.to", mySubClass.getQualifiedName()));

    PsiClass nearestBase = RefactoringHierarchyUtil.getNearestBaseClass(mySubClass, true);
    int indexToSelect = 0;
    if(nearestBase != null) {
      indexToSelect = mySuperClasses.indexOf(nearestBase);
    }
    mySuperClassesList.setSelectedIndex(indexToSelect);
    gbConstraints.gridy++;
    panel.add(ScrollPaneFactory.createScrollPane(mySuperClassesList), gbConstraints);

    gbConstraints.gridy++;
    myCbReplaceInstanceOf.setText(RefactoringBundle.message("turnRefsToSuper.use.superclass.in.instanceof"));
    myCbReplaceInstanceOf.setSelected(false);
    myCbReplaceInstanceOf.setFocusable(false);
    panel.add(myCbReplaceInstanceOf, gbConstraints);

    return panel;
  }

  protected String getDimensionServiceKey() {
    return "#com.intellij.refactoring.turnRefsToSuper.TurnRefsToSuperDialog";
  }

  protected void doAction() {
    JavaRefactoringSettings.getInstance().TURN_REFS_TO_SUPER_PREVIEW_USAGES = isPreviewUsages();
    final TurnRefsToSuperProcessor processor = new TurnRefsToSuperProcessor(
      getProject(), mySubClass, getSuperClass(), isUseInInstanceOf());
    invokeRefactoring(processor);
  }

  protected JComponent createCenterPanel() {
    return null;
  }
}

redpajama_set_name: RedPajamaGithub


text:
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.17)
# Database: shopphie
# Generation Time: 2017-04-02 22:42:40 +0000
# ************************************************************

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

# Dump of table cart
# ------------------------------------------------------------

DROP TABLE IF EXISTS `cart`;

CREATE TABLE `cart` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cart_orderID` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `cart_orderID` (`cart_orderID`),
  CONSTRAINT `cart_orderID` FOREIGN KEY (`cart_orderID`) REFERENCES `orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dump of table categories
# ------------------------------------------------------------

DROP TABLE IF EXISTS `categories`;

CREATE TABLE `categories` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `catName` varchar(45) DEFAULT NULL,
  `catDescription` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dump of table orderDetails
# ------------------------------------------------------------

DROP TABLE IF EXISTS `orderDetails`;

CREATE TABLE `orderDetails` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `orderID` int(11) unsigned NOT NULL,
  `productID` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `orderID` (`orderID`),
  KEY `productID` (`productID`),
  CONSTRAINT `orderID` FOREIGN KEY (`orderID`) REFERENCES `orders` (`id`),
  CONSTRAINT `productID` FOREIGN KEY (`productID`) REFERENCES `products` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dump of table orders
# ------------------------------------------------------------

DROP TABLE IF EXISTS `orders`;

CREATE TABLE `orders` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `userID` int(11) unsigned NOT NULL,
  `orderNumber` int(50) DEFAULT NULL,
  `orderDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `userID` (`userID`),
  CONSTRAINT `userID` FOREIGN KEY (`userID`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dump of table products
# ------------------------------------------------------------

DROP TABLE IF EXISTS `products`;

CREATE TABLE `products` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `productName` varchar(45) DEFAULT NULL,
  `productPrice` decimal(10,2) DEFAULT NULL,
  `productDescription` varchar(250) DEFAULT NULL,
  `categoryID` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `categoryID` (`categoryID`),
  CONSTRAINT `categoryID` FOREIGN KEY (`categoryID`) REFERENCES `categories` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dump of table users
# ------------------------------------------------------------

DROP TABLE IF EXISTS `users`;

CREATE TABLE `users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `userName` varchar(20) NOT NULL DEFAULT '',
  `password` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


text:
[![CI Status](http://img.shields.io/travis/lvconan@foxmail.com/NiceKit.svg?style=flat)](https://travis-ci.org/lvconan@foxmail.com/NiceKit)
[![Version](https://img.shields.io/cocoapods/v/NiceKit.svg?style=flat)](http://cocoapods.org/pods/NiceKit)
[![License](https://img.shields.io/cocoapods/l/NiceKit.svg?style=flat)](http://cocoapods.org/pods/NiceKit)
[![Platform](https://img.shields.io/cocoapods/p/NiceKit.svg?style=flat)](http://cocoapods.org/pods/NiceKit)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

- Swift 3.0
- iOS 8.0

## Sources Used

- [SwifterSwift](https://github.com/SwifterSwift/SwifterSwift)
- [EZSwiftExtensions](https://github.com/goktugyil/EZSwiftExtensions)
- [TinyConsole](https://github.com/Cosmo/TinyConsole)
- [XCGLogger](https://github.com/DaveWoodCom/XCGLogger)

## Reference
- [ObjectiveKit](https://github.com/marmelroy/ObjectiveKit)
- [DeviceKit](https://github.com/dennisweissmann/DeviceKit)
- [Armchair](https://github.com/UrbanApps/Armchair)
- [PermissionScope](https://github.com/nickoneill/PermissionScope)
- [Siren](https://github.com/ArtSabintsev/Siren)
- [ReachabilitySwift](https://github.com/ashleymills/Reachability.swift)
- [SwiftyAttributes](https://github.com/eddiekaiger/SwiftyAttributes)

## Installation

NiceKit is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod "NiceKit"
```

## License

NiceKit is available under the MIT license. See the LICENSE file for more info.


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>
org.apache.commons.compress.archivers.tar (Commons Compress 1.1 API)
</TITLE>

<META NAME="date" CONTENT="2010-08-13">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

      Overview
    Package
      Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV PACKAGE
 NEXT PACKAGE

  FRAMES
 NO FRAMES

  All Classes

Package org.apache.commons.compress.archivers.tar

Provides stream classes for reading and writing archives using
      the TAR format.

See:

          Description

Interface Summary

TarConstants
This interface contains all the definitions used in the package.

Class Summary

TarArchiveEntry
This class represents an entry in a Tar archive.

TarArchiveInputStream
The TarInputStream reads a UNIX tar archive as an InputStream.

TarArchiveOutputStream
The TarOutputStream writes a UNIX tar archive as an OutputStream.

TarUtils
This class provides static utility methods to work with byte streams.

Package org.apache.commons.compress.archivers.tar Description

Provides stream classes for reading and writing archives using
      the TAR format.

There are many different format dialects that call themselves
      TAR.  The classes of this package can read and write archives in
      the traditional pre-POSIX ustar format and support GNU
      specific extensions for long filenames that GNU tar itself by
      now refers to as oldgnu.

      Overview
    Package
      Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV PACKAGE
 NEXT PACKAGE

  FRAMES
 NO FRAMES

  All Classes

Copyright © 2010 The Apache Software Foundation. All Rights Reserved.


text:
$(document).ready(function () {

	var startingHeight = 21; // Specifies the height of your navigation when collapsed
	var speed = 300; // Specifies the speed of the animation

	var heights = new Array();

	var i = 1;
	while ($("#nav"+i).length) {
		heights.push($("#nav"+i).height() + 8);
		$("#nav"+i).height(startingHeight);
		$("#nav"+i).mouseover(function () {
			$(this).stop().animate({height:heights[this.id.substr(3)-1]},{queue:false, duration:speed});
		});
		$("#nav"+i).mouseout(function () {
			$(this).stop().animate({height:startingHeight+'px'},{queue:false, duration:speed});
		});
		i++;
	}

	$("#nav ul").css("visibility", "visible");

});


text:
package org.assertj.core.util;

import static org.assertj.core.api.Assertions.*;

import java.util.ArrayList;

import org.junit.Test;

/**
 * Tests for {@link Lists#newArrayList(Object...)}.
 *
 * @author Yvonne Wang
 * @author Alex Ruiz
 */
public class Lists_newArrayList_withVarArgs_Test {
  @Test
  public void should_return_List_containing_all_elements_in_array() {
    String[] expected = { "One", "Two" };
    ArrayList<String> list = Lists.newArrayList(expected);
    assertThat(list.toArray()).isEqualTo(expected);
  }

  @Test
  public void should_return_null_if_array_is_null() {
    Object[] elements = null;
    assertThat(Lists.newArrayList(elements)).isNull();
  }

  @Test
  public void should_return_empty_List_if_array_is_empty() {
    ArrayList<Object> list = Lists.newArrayList(new Object[0]);
    assertThat(list).isEmpty();
  }
}


text:
module.exports = {
	description: 'deconflicts generated default export names'
};


text:
import math
import os
import random
import re
import sys

N, M = map(int, input().split())

rows = [input()for _ in range(N)]
K = int(input())

for row in sorted(rows, key=lambda row: int(row.split()[K])):
    print(row)


text:
BRANCHNAME=prepare-push
TRUNKBRANCH=trunk-push
TEMP_BRANCH=v8-push-to-trunk-script-temporary-branch
VERSION_FILE="src/version.cc"
PERSISTFILE_BASENAME=/tmp/v8-push-to-trunk-tempfile
CHANGELOG_ENTRY_FILE="$PERSISTFILE_BASENAME-changelog-entry"
PATCH_FILE="$PERSISTFILE_BASENAME-patch"
COMMITMSG_FILE="$PERSISTFILE_BASENAME-commitmsg"
TOUCHED_FILES_FILE="$PERSISTFILE_BASENAME-touched-files"
TRUNK_REVISION_FILE="$PERSISTFILE_BASENAME-trunkrevision"
STEP=0

########## Function definitions

usage() {
cat << EOF
usage: $0 OPTIONS

Performs the necessary steps for a V8 push to trunk. Only works for \
git checkouts.

OPTIONS:
  -h    Show this message
  -s    Specify the step where to start work. Default: 0.
  -l    Manually specify the git commit ID of the last push to trunk.
EOF
}

die() {
  [[ -n "$1" ]] && echo "Error: $1"
  echo "Exiting."
  exit 1
}

confirm() {
  echo -n "$1 [Y/n] "
  read ANSWER
  if [[ -z "$ANSWER" || "$ANSWER" == "Y" || "$ANSWER" == "y" ]] ; then
    return 0
  else
    return 1
  fi
}

delete_branch() {
  local MATCH=$(git branch | grep $1 | awk '{print $NF}' )
  if [ "$MATCH" == "$1" ] ; then
    confirm "Branch $1 exists, do you want to delete it?"
    if [ $? -eq 0 ] ; then
      git branch -D $1 || die "Deleting branch '$1' failed."
      echo "Branch $1 deleted."
    else
      die "Can't continue. Please delete branch $1 and try again."
    fi
  fi
}

# Persist and restore variables to support canceling/resuming execution
# of this script.
persist() {
  local VARNAME=$1
  local FILE="$PERSISTFILE_BASENAME-$VARNAME"
  echo "${!VARNAME}" > $FILE
}

restore() {
  local VARNAME=$1
  local FILE="$PERSISTFILE_BASENAME-$VARNAME"
  local VALUE="$(cat $FILE)"
  eval "$VARNAME=\"$VALUE\""
}

restore_if_unset() {
  local VARNAME=$1
  [[ -z "${!VARNAME}" ]] && restore "$VARNAME"
  [[ -z "${!VARNAME}" ]] && die "Variable '$VARNAME' could not be restored."
}

########## Option parsing

while getopts ":hs:l:" OPTION ; do
  case $OPTION in
    h)  usage
        exit 0
        ;;
    s)  STEP=$OPTARG
        ;;
    l)  LASTPUSH=$OPTARG
        ;;
    ?)  echo "Illegal option: -$OPTARG"
        usage
        exit 1
        ;;
  esac
done

########## Regular workflow

# Cancel if this is not a git checkout.
[[ -d .git ]] \
  || die "This is not a git checkout, this script won't work for you."

# Cancel if EDITOR is unset or not executable.
[[ -n "$EDITOR" && -x "$(which $EDITOR)" ]] \
  || die "Please set your EDITOR environment variable, you'll need it."

if [ $STEP -le 0 ] ; then
  echo ">>> Step 0: Preparation"
  # Check for a clean workdir.
  [[ -z "$(git status -s -uno)" ]] \
    || die "Workspace is not clean. Please commit or undo your changes."

  # Persist current branch.
  CURRENT_BRANCH=$(git status -s -b -uno | grep "^##" | awk '{print $2}')
  persist "CURRENT_BRANCH"
  # Get ahold of a safe temporary branch and check it out.
  if [ "$CURRENT_BRANCH" != "$TEMP_BRANCH" ] ; then
    delete_branch $TEMP_BRANCH
    git checkout -b $TEMP_BRANCH
  fi
  # Delete branches if they exist.
  delete_branch $BRANCHNAME
  delete_branch $TRUNKBRANCH
fi

if [ $STEP -le 1 ] ; then
  echo ">>> Step 1: Fetch unfetched revisions."
  git svn fetch || die "'git svn fetch' failed."
fi

if [ $STEP -le 2 ] ; then
  echo ">>> Step 2: Create a fresh branch."
  git checkout -b $BRANCHNAME svn/bleeding_edge \
    || die "Creating branch $BRANCHNAME failed."
fi

if [ $STEP -le 3 ] ; then
  echo ">>> Step 3: Detect commit ID of last push to trunk."
  [[ -n "$LASTPUSH" ]] || LASTPUSH=$(git log -1 --format=%H ChangeLog)
  LOOP=1
  while [ $LOOP -eq 1 ] ; do
    # Print assumed commit, circumventing git's pager.
    git log -1 $LASTPUSH | cat
    confirm "Is the commit printed above the last push to trunk?"
    if [ $? -eq 0 ] ; then
      LOOP=0
    else
      LASTPUSH=$(git log -1 --format=%H $LASTPUSH^ ChangeLog)
    fi
  done
  persist "LASTPUSH"
fi

if [ $STEP -le 4 ] ; then
  echo ">>> Step 4: Prepare raw ChangeLog entry."
# These version numbers are used again later for the trunk commit.
  MAJOR=$(grep "#define MAJOR_VERSION" "$VERSION_FILE" | awk '{print $NF}')
  persist "MAJOR"
  MINOR=$(grep "#define MINOR_VERSION" "$VERSION_FILE" | awk '{print $NF}')
  persist "MINOR"
  BUILD=$(grep "#define BUILD_NUMBER" "$VERSION_FILE" | awk '{print $NF}')
  persist "BUILD"

  DATE=$(date +%Y-%m-%d)
  persist "DATE"
  echo "$DATE: Version $MAJOR.$MINOR.$BUILD" > "$CHANGELOG_ENTRY_FILE"
  echo "" >> "$CHANGELOG_ENTRY_FILE"
  COMMITS=$(git log $LASTPUSH..HEAD --format=%H)
  for commit in $COMMITS ; do
    # Get the commit's title line.
    git log -1 $commit --format="%w(80,8,8)%s" >> "$CHANGELOG_ENTRY_FILE"
    # Grep for "BUG=xxxx" lines in the commit message and convert them to
    # "(issue xxxx)".
    git log -1 $commit --format="%B" \
        | grep "^BUG=" | grep -v "BUG=$" \
        | sed -e 's/^/        /' \
        | sed -e 's/BUG=v8:\(.*\)$/(issue \1)/' \
        | sed -e 's/BUG=\(.*\)$/(Chromium issue \1)/' \
        >> "$CHANGELOG_ENTRY_FILE"
    # Append the commit's author for reference.
    git log -1 $commit --format="%w(80,8,8)(%an)" >> "$CHANGELOG_ENTRY_FILE"
    echo "" >> "$CHANGELOG_ENTRY_FILE"
  done
fi

if [ $STEP -le 5 ] ; then
  echo ">>> Step 5: Edit ChangeLog entry."
  echo -n "Please press <Return> to have your EDITOR open the ChangeLog entry, \
then edit its contents to your liking. When you're done, save the file and \
exit your EDITOR. "
  read ANSWER
  $EDITOR "$CHANGELOG_ENTRY_FILE"
  NEWCHANGELOG=$(mktemp)
  # Eliminate any trailing newlines by going through a shell variable.
  # Also (1) eliminate tabs, (2) fix too little and (3) too much indentation,
  # and (4) eliminate trailing whitespace.
  CHANGELOGENTRY=$(cat "$CHANGELOG_ENTRY_FILE" \
                   | sed -e 's/\t/        /g' \
                   | sed -e 's/^ \{1,7\}\([^ ]\)/        \1/g' \
                   | sed -e 's/^ \{9,80\}\([^ ]\)/        \1/g' \
                   | sed -e 's/ \+$//')
  [[ -n "$CHANGELOGENTRY" ]] || die "Empty ChangeLog entry."
  echo "$CHANGELOGENTRY" > "$NEWCHANGELOG"
  echo "" >> "$NEWCHANGELOG" # Explicitly insert two empty lines.
  echo "" >> "$NEWCHANGELOG"
  cat ChangeLog >> "$NEWCHANGELOG"
  mv "$NEWCHANGELOG" ChangeLog
fi

if [ $STEP -le 6 ] ; then
  echo ">>> Step 6: Increment version number."
  restore_if_unset "BUILD"
  NEWBUILD=$(($BUILD + 1))
  confirm "Automatically increment BUILD_NUMBER? (Saying 'n' will fire up \
your EDITOR on $VERSION_FILE so you can make arbitrary changes. When \
you're done, save the file and exit your EDITOR.)"
  if [ $? -eq 0 ] ; then
    sed -e "/#define BUILD_NUMBER/s/[0-9]*$/$NEWBUILD/" \
        -i "$VERSION_FILE"
  else
    $EDITOR "$VERSION_FILE"
  fi
  NEWMAJOR=$(grep "#define MAJOR_VERSION" "$VERSION_FILE" | awk '{print $NF}')
  persist "NEWMAJOR"
  NEWMINOR=$(grep "#define MINOR_VERSION" "$VERSION_FILE" | awk '{print $NF}')
  persist "NEWMINOR"
  NEWBUILD=$(grep "#define BUILD_NUMBER" "$VERSION_FILE" | awk '{print $NF}')
  persist "NEWBUILD"
fi

if [ $STEP -le 7 ] ; then
  echo ">>> Step 7: Commit to local branch."
  restore_if_unset "NEWMAJOR"
  restore_if_unset "NEWMINOR"
  restore_if_unset "NEWBUILD"
  PREPARE_COMMIT_MSG="Prepare push to trunk.  \
Now working on version $NEWMAJOR.$NEWMINOR.$NEWBUILD."
  persist "PREPARE_COMMIT_MSG"
  git commit -a -m "$PREPARE_COMMIT_MSG" \
    || die "'git commit -a' failed."
fi

if [ $STEP -le 8 ] ; then
  echo ">>> Step 8: Upload for code review."
  echo -n "Please enter the email address of a V8 reviewer for your patch: "
  read REVIEWER
  git cl upload -r $REVIEWER --send-mail \
    || die "'git cl upload' failed, please try again."
fi

if [ $STEP -le 9 ] ; then
  echo ">>> Step 9: Commit to the repository."
  echo "Please wait for an LGTM, then type \"LGTM<Return>\" to commit your \
change. (If you need to iterate on the patch, do so in another shell. Do not \
modify the existing local commit's commit message.)"
  unset ANSWER
  while [ "$ANSWER" != "LGTM" ] ; do
    [[ -n "$ANSWER" ]] && echo "That was not 'LGTM'."
    echo -n "> "
    read ANSWER
  done
  # Re-read the ChangeLog entry (to pick up possible changes).
  cat ChangeLog | awk --posix '{
    if ($0 ~ /^[0-9]{4}-[0-9]{2}-[0-9]{2}:/) {
      if (in_firstblock == 1) {
        exit 0;
      } else {
        in_firstblock = 1;
      }
    };
    print $0;
  }' > "$CHANGELOG_ENTRY_FILE"
  git cl dcommit || die "'git cl dcommit' failed, please try again."
fi

if [ $STEP -le 10 ] ; then
  echo ">>> Step 10: Fetch straggler commits that sneaked in between \
steps 1 and 9."
  git svn fetch || die "'git svn fetch' failed."
  git checkout svn/bleeding_edge
  restore_if_unset "PREPARE_COMMIT_MSG"
  PREPARE_COMMIT_HASH=$(git log -1 --format=%H --grep="$PREPARE_COMMIT_MSG")
  persist "PREPARE_COMMIT_HASH"
fi

if [ $STEP -le 11 ] ; then
  echo ">>> Step 11: Squash commits into one."
  # Instead of relying on "git rebase -i", we'll just create a diff, because
  # that's easier to automate.
  restore_if_unset "PREPARE_COMMIT_HASH"
  git diff svn/trunk $PREPARE_COMMIT_HASH > "$PATCH_FILE"
  # Convert the ChangeLog entry to commit message format:
  # - remove date
  # - remove indentation
  # - merge paragraphs into single long lines, keeping empty lines between them.
  restore_if_unset "DATE"
  CHANGELOGENTRY=$(cat "$CHANGELOG_ENTRY_FILE")
  echo "$CHANGELOGENTRY" \
    | sed -e "s/^$DATE: //" \
    | sed -e 's/^ *//' \
    | awk '{
        if (need_space == 1) {
          printf(" ");
        };
        printf("%s", $0);
        if ($0 ~ /^$/) {
          printf("\n\n");
          need_space = 0;
        } else {
          need_space = 1;
        }
      }' > "$COMMITMSG_FILE" || die "Commit message editing failed."
  LOOP=1
  while [ $LOOP -eq 1 ] ; do
    echo "This is the trunk commit message:"
    echo "--------------------"
    cat "$COMMITMSG_FILE"
    echo -e "\n--------------------"
    confirm "Does this look good to you? (Saying 'n' will fire up your \
EDITOR so you can change the commit message. When you're done, save the \
file and exit your EDITOR.)"
    if [ $? -eq 0 ] ; then
      LOOP=0
    else
      $EDITOR "$COMMITMSG_FILE"
    fi
  done
  rm -f "$CHANGELOG_ENTRY_FILE"
fi

if [ $STEP -le 12 ] ; then
  echo ">>> Step 12: Create a new branch from trunk."
  git checkout -b $TRUNKBRANCH svn/trunk \
    || die "Checking out a new branch '$TRUNKBRANCH' failed."
fi

if [ $STEP -le 13 ] ; then
  echo ">>> Step 13: Apply squashed changes."
  patch -p1 < "$PATCH_FILE" | tee >(awk '{print $NF}' >> "$TOUCHED_FILES_FILE")
  [[ $? -eq 0 ]] || die "Applying the patch to trunk failed."
  # Stage added and modified files.
  TOUCHED_FILES=$(cat "$TOUCHED_FILES_FILE")
  for FILE in $TOUCHED_FILES ; do
    git add "$FILE"
  done
  # Stage deleted files.
  DELETED_FILES=$(git status -s -uno --porcelain | grep "^ D" \
                                                 | awk '{print $NF}')
  for FILE in $DELETED_FILES ; do
    git rm "$FILE"
  done
  rm -f "$PATCH_FILE"
  rm -f "$TOUCHED_FILES_FILE"
fi

if [ $STEP -le 14 ] ; then
  echo ">>> Step 14: Set correct version for trunk."
  restore_if_unset "MAJOR"
  restore_if_unset "MINOR"
  restore_if_unset "BUILD"
  sed -e "/#define MAJOR_VERSION/s/[0-9]*$/$MAJOR/" \
      -e "/#define MINOR_VERSION/s/[0-9]*$/$MINOR/" \
      -e "/#define BUILD_NUMBER/s/[0-9]*$/$BUILD/" \
      -e "/#define PATCH_LEVEL/s/[0-9]*$/0/" \
      -e "/#define IS_CANDIDATE_VERSION/s/[0-9]*$/0/" \
      -i "$VERSION_FILE" || die "Patching $VERSION_FILE failed."
fi

if [ $STEP -le 15 ] ; then
  echo ">>> Step 15: Commit to local trunk branch."
  git add "$VERSION_FILE"
  git commit -F "$COMMITMSG_FILE" || die "'git commit' failed."
  rm -f "$COMMITMSG_FILE"
fi

if [ $STEP -le 16 ] ; then
  echo ">>> Step 16: Sanity check."
  confirm "Please check if your local checkout is sane: Inspect $VERSION_FILE, \
compile, run tests. Do you want to commit this new trunk revision to the \
repository?"
  [[ $? -eq 0 ]] || die "Execution canceled."
fi

if [ $STEP -le 17 ] ; then
  echo ">>> Step 17. Commit to SVN."
  git svn dcommit | tee >(grep -E "^Committed r[0-9]+" \
                          | sed -e 's/^Committed r\([0-9]\+\)/\1/' \
                          > "$TRUNK_REVISION_FILE") \
    || die "'git svn dcommit' failed."
fi

if [ $STEP -le 18 ] ; then
  echo ">>> Step 18: Tag the new revision."
  restore_if_unset "MAJOR"
  restore_if_unset "MINOR"
  restore_if_unset "BUILD"
  git svn tag $MAJOR.$MINOR.$BUILD -m "Tagging version $MAJOR.$MINOR.$BUILD" \
    || die "'git svn tag' failed."
fi

if [ $STEP -le 19 ] ; then
  echo ">>> Step 19: Cleanup."
  restore_if_unset "CURRENT_BRANCH"
  git checkout -f $CURRENT_BRANCH
  [[ "$TEMP_BRANCH" != "$CURRENT_BRANCH" ]] && git branch -D $TEMP_BRANCH
  [[ "$BRANCHNAME" != "$CURRENT_BRANCH" ]] && git branch -D $BRANCHNAME
  [[ "$TRUNKBRANCH" != "$CURRENT_BRANCH" ]] && git branch -D $TRUNKBRANCH
fi

if [ $STEP -le 20 ] ; then
  echo ">>> Step 20: Done!"
  restore_if_unset "MAJOR"
  restore_if_unset "MINOR"
  restore_if_unset "BUILD"
  echo "Congratulations, you have successfully created the trunk revision \
$MAJOR.$MINOR.$BUILD. Please don't forget to roll this new version into \
Chromium, and to update the v8rel spreadsheet:"
  TRUNK_REVISION=$(cat "$TRUNK_REVISION_FILE")
  echo -e "$MAJOR.$MINOR.$BUILD\ttrunk\t$TRUNK_REVISION"
  # Clean up all temporary files.
  rm -f "$PERSISTFILE_BASENAME"*
fi


text:
package org.kie.pmml.models.regression.compiler.factories;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.NodeList;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.ConstructorDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.expr.DoubleLiteralExpr;
import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.ast.expr.NameExpr;
import com.github.javaparser.ast.expr.SimpleName;
import com.github.javaparser.ast.expr.StringLiteralExpr;
import com.github.javaparser.ast.stmt.BlockStmt;
import com.github.javaparser.ast.stmt.ReturnStmt;
import com.github.javaparser.ast.stmt.Statement;
import org.dmg.pmml.regression.CategoricalPredictor;
import org.dmg.pmml.regression.NumericPredictor;
import org.dmg.pmml.regression.PredictorTerm;
import org.dmg.pmml.regression.RegressionModel;
import org.dmg.pmml.regression.RegressionTable;
import org.junit.Before;
import org.junit.Test;
import org.kie.pmml.api.enums.RESULT_FEATURE;
import org.kie.pmml.api.exceptions.KiePMMLException;
import org.kie.pmml.api.exceptions.KiePMMLInternalException;
import org.kie.pmml.commons.model.KiePMMLOutputField;
import org.kie.pmml.compiler.commons.testutils.PMMLModelTestUtils;
import org.kie.pmml.compiler.commons.utils.JavaParserUtils;
import org.kie.pmml.models.regression.model.tuples.KiePMMLTableSourceCategory;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.kie.pmml.compiler.commons.testutils.CodegenTestUtils.commonEvaluateConstructor;
import static org.kie.pmml.compiler.commons.utils.JavaParserUtils.getFromFileName;
import static org.kie.pmml.models.regression.compiler.factories.KiePMMLRegressionTableRegressionFactory.KIE_PMML_EVALUATE_METHOD_TEMPLATE;
import static org.kie.pmml.models.regression.compiler.factories.KiePMMLRegressionTableRegressionFactory.KIE_PMML_EVALUATE_METHOD_TEMPLATE_JAVA;
import static org.kie.pmml.models.regression.compiler.factories.KiePMMLRegressionTableRegressionFactory.KIE_PMML_REGRESSION_TABLE_REGRESSION_TEMPLATE;
import static org.kie.pmml.models.regression.compiler.factories.KiePMMLRegressionTableRegressionFactory.KIE_PMML_REGRESSION_TABLE_REGRESSION_TEMPLATE_JAVA;
import static org.kie.pmml.models.regression.compiler.factories.KiePMMLRegressionTableRegressionFactory.MAIN_CLASS_NOT_FOUND;
import static org.kie.test.util.filesystem.FileUtils.getFileContent;

public class KiePMMLRegressionTableRegressionFactoryTest extends AbstractKiePMMLRegressionTableRegressionFactoryTest {

    private static final String TEST_01_SOURCE = "KiePMMLRegressionTableRegressionFactoryTest_01.txt";
    private static final String TEST_02_SOURCE = "KiePMMLRegressionTableRegressionFactoryTest_02.txt";
    private static final String TEST_03_SOURCE = "KiePMMLRegressionTableRegressionFactoryTest_03.txt";
    private static final String TEST_04_SOURCE = "KiePMMLRegressionTableRegressionFactoryTest_04.txt";
    private static final String TEST_05_SOURCE = "KiePMMLRegressionTableRegressionFactoryTest_05.txt";
    private static final String TEST_06_SOURCE = "KiePMMLRegressionTableRegressionFactoryTest_06.txt";

    private final static List<RegressionModel.NormalizationMethod> SUPPORTED_NORMALIZATION_METHODS =
            Arrays.asList(RegressionModel.NormalizationMethod.SOFTMAX,
                          RegressionModel.NormalizationMethod.LOGIT,
                          RegressionModel.NormalizationMethod.EXP,
                          RegressionModel.NormalizationMethod.PROBIT,
                          RegressionModel.NormalizationMethod.CLOGLOG,
                          RegressionModel.NormalizationMethod.CAUCHIT,
                          RegressionModel.NormalizationMethod.NONE);
    private final static List<RegressionModel.NormalizationMethod> UNSUPPORTED_NORMALIZATION_METHODS =
            Arrays.asList(
                    RegressionModel.NormalizationMethod.SIMPLEMAX,
                    RegressionModel.NormalizationMethod.LOGLOG);
    private static CompilationUnit compilationUnit;
    private static ClassOrInterfaceDeclaration modelTemplate;

    @Before
    public void setup() {
        compilationUnit = getFromFileName(KIE_PMML_REGRESSION_TABLE_REGRESSION_TEMPLATE_JAVA);
        modelTemplate = compilationUnit.getClassByName(KIE_PMML_REGRESSION_TABLE_REGRESSION_TEMPLATE).get();
    }

    @Test
    public void getRegressionTableTest() {
        regressionTable = getRegressionTable(3.5, "professional");
        List<RegressionTable> regressionTables = Collections.singletonList(regressionTable);
        Map<String, KiePMMLTableSourceCategory> retrieved =
                KiePMMLRegressionTableRegressionFactory.getRegressionTables(regressionTables,
                                                                            RegressionModel.NormalizationMethod.CAUCHIT,
                                                                            Collections.emptyList(),
                                                                            "targetField",
                                                                            "packageName");
        assertNotNull(retrieved);
        retrieved.values().forEach(kiePMMLTableSourceCategory -> commonValidateKiePMMLRegressionTable(kiePMMLTableSourceCategory.getSource()));
    }

    @Test
    public void setConstructor() {
        regressionTable = getRegressionTable(3.5, "professional");
        ConstructorDeclaration constructorDeclaration = modelTemplate.getDefaultConstructor().get();
        SimpleName tableName = new SimpleName("TableName");
        String targetField = "targetField";
        KiePMMLRegressionTableRegressionFactory.setConstructor(regressionTable,
                                                               constructorDeclaration,
                                                               tableName,
                                                               targetField);
        Map<Integer, Expression> superInvocationExpressionsMap = new HashMap<>();
        Map<String, Expression> assignExpressionMap = new HashMap<>();
        assignExpressionMap.put("targetField", new StringLiteralExpr(targetField));
        assignExpressionMap.put("intercept", new DoubleLiteralExpr(String.valueOf(3.5)));
        assertTrue(commonEvaluateConstructor(constructorDeclaration, tableName.asString(),
                                             superInvocationExpressionsMap, assignExpressionMap));
    }

    @Test
    public void addNumericPredictorWithExponent() throws IOException {
        String predictorName = "predictorName";
        int exponent = 2;
        double coefficient = 1.23;
        NumericPredictor numericPredictor = PMMLModelTestUtils.getNumericPredictor(predictorName, exponent,
                                                                                coefficient);
        int arity = 3;
        ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
        MethodDeclaration retrieved = KiePMMLRegressionTableRegressionFactory.addNumericPredictor(numericPredictor,
                                                                                tableTemplate, arity);
        BlockStmt body = retrieved.getBody().get();
        String text = getFileContent(TEST_01_SOURCE);
        BlockStmt expected = JavaParserUtils.parseBlock(String.format(text, coefficient, exponent));
        assertTrue(JavaParserUtils.equalsNode(expected, body));
    }

    @Test
    public void addNumericPredictors() {
        final List<NumericPredictor> numericPredictors = IntStream.range(0, 3).mapToObj(index -> {
            String predictorName = "predictorName-" + index;
            double coefficient = 1.23 * index;
            return PMMLModelTestUtils.getNumericPredictor(predictorName, index, coefficient);
        }).collect(Collectors.toList());
        ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
        Map<String, MethodDeclaration> retrieved =
                KiePMMLRegressionTableRegressionFactory.addNumericPredictors(numericPredictors, tableTemplate);
        assertEquals(numericPredictors.size(), retrieved.size());
    }

    @Test
    public void addNumericPredictorWithoutExponent() throws IOException {
        String predictorName = "predictorName";
        int exponent = 1;
        double coefficient = 1.23;
        NumericPredictor numericPredictor = PMMLModelTestUtils.getNumericPredictor(predictorName, exponent,
                                                                                coefficient);
        int arity = 3;
        ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
        MethodDeclaration retrieved = KiePMMLRegressionTableRegressionFactory.addNumericPredictor(numericPredictor,
                                                                                tableTemplate, arity);
        BlockStmt body = retrieved.getBody().get();
        String text = getFileContent(TEST_02_SOURCE);
        BlockStmt expected = JavaParserUtils.parseBlock(String.format(text, coefficient));
        assertTrue(JavaParserUtils.equalsNode(expected, body));
    }

    @Test
    public void getNumericPredictorWithExponentTemplate() throws IOException {
        String predictorName = "predictorName";
        int exponent = 2;
        double coefficient = 1.23;
        NumericPredictor numericPredictor = PMMLModelTestUtils.getNumericPredictor(predictorName, exponent,
                                                                                coefficient);
        CompilationUnit templateEvaluate = getFromFileName(KIE_PMML_EVALUATE_METHOD_TEMPLATE_JAVA);
        CompilationUnit cloneEvaluate = templateEvaluate.clone();
        ClassOrInterfaceDeclaration evaluateTemplateClass =
                cloneEvaluate.getClassByName(KIE_PMML_EVALUATE_METHOD_TEMPLATE)
                        .orElseThrow(() -> new KiePMMLException(MAIN_CLASS_NOT_FOUND));
        MethodDeclaration retrieved =
                KiePMMLRegressionTableRegressionFactory.getNumericPredictorWithExponentTemplate(numericPredictor,
                                                                                evaluateTemplateClass);
        BlockStmt body = retrieved.getBody().get();
        String text = getFileContent(TEST_03_SOURCE);
        BlockStmt expected = JavaParserUtils.parseBlock(String.format(text, coefficient, exponent));
        assertTrue(JavaParserUtils.equalsNode(expected, body));
    }

    @Test
    public void getNumericPredictorWithoutExponentTemplate() throws IOException {
        String predictorName = "predictorName";
        int exponent = 2;
        double coefficient = 1.23;
        NumericPredictor numericPredictor = PMMLModelTestUtils.getNumericPredictor(predictorName, exponent,
                                                                                coefficient);
        CompilationUnit templateEvaluate = getFromFileName(KIE_PMML_EVALUATE_METHOD_TEMPLATE_JAVA);
        CompilationUnit cloneEvaluate = templateEvaluate.clone();
        ClassOrInterfaceDeclaration evaluateTemplateClass =
                cloneEvaluate.getClassByName(KIE_PMML_EVALUATE_METHOD_TEMPLATE)
                        .orElseThrow(() -> new KiePMMLException(MAIN_CLASS_NOT_FOUND));
        MethodDeclaration retrieved =
                KiePMMLRegressionTableRegressionFactory.getNumericPredictorWithoutExponentTemplate(numericPredictor,
                                                                                evaluateTemplateClass);
        BlockStmt body = retrieved.getBody().get();
        String text = getFileContent(TEST_04_SOURCE);
        BlockStmt expected = JavaParserUtils.parseBlock(String.format(text, coefficient));
        assertTrue(JavaParserUtils.equalsNode(expected, body));
    }

    @Test
    public void addCategoricalPredictors() {
        List<CategoricalPredictor> categoricalPredictors = IntStream.range(0, 3).mapToObj(index ->
                                                                                IntStream.range(0,
                                                                                3).mapToObj(i -> {
                                                                                String predictorName = "predictorName-" + index;
                                                                                double coefficient = 1.23 * i;
                                                                                return PMMLModelTestUtils.getCategoricalPredictor(predictorName, i, coefficient);
                                                                                })
                                                                                .collect(Collectors.toList())).reduce((categoricalPredictors1, categoricalPredictors2) -> {
            List<CategoricalPredictor> toReturn = new ArrayList<>();
            toReturn.addAll(categoricalPredictors1);
            toReturn.addAll(categoricalPredictors2);
            return toReturn;
        }).get();
        ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
        Map<String, MethodDeclaration> retrieved =
                KiePMMLRegressionTableRegressionFactory.addCategoricalPredictors(categoricalPredictors, tableTemplate);
        assertEquals(3, retrieved.size());
    }

    @Test
    public void addGroupedCategoricalPredictor() throws IOException {
        final List<CategoricalPredictor> categoricalPredictors = IntStream.range(0, 3).mapToObj(index -> {
            String predictorName = "predictorName-" + index;
            double coefficient = 1.23 * index;
            return PMMLModelTestUtils.getCategoricalPredictor(predictorName, index, coefficient);
        }).collect(Collectors.toList());
        ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
        int arity = 3;
        MethodDeclaration retrieved =
                KiePMMLRegressionTableRegressionFactory.addGroupedCategoricalPredictor(categoricalPredictors,
                                                                                tableTemplate, arity);
        String expectedName = String.format("evaluateCategoricalPredictor%d", arity);
        assertEquals(expectedName, retrieved.getNameAsString());
        BlockStmt body = retrieved.getBody().get();
        String text = getFileContent(TEST_05_SOURCE);
        BlockStmt expected = JavaParserUtils.parseBlock(String.format(text,
                                                                      categoricalPredictors.get(0).getValue(),
                                                                      categoricalPredictors.get(0).getCoefficient(),
                                                                      categoricalPredictors.get(1).getValue(),
                                                                      categoricalPredictors.get(1).getCoefficient(),
                                                                      categoricalPredictors.get(2).getValue(),
                                                                      categoricalPredictors.get(2).getCoefficient()
        ));
        assertTrue(JavaParserUtils.equalsNode(expected, body));
    }

    @Test
    public void addPredictorTerms() {
        final List<PredictorTerm> predictorTerms = IntStream.range(0, 3).mapToObj(index -> {
            String predictorName = "predictorName-" + index;
            double coefficient = 1.23 * index;
            String fieldRef = "fieldRef-" + index;
            return PMMLModelTestUtils.getPredictorTerm(predictorName, coefficient,
                                                       Collections.singletonList(fieldRef));
        }).collect(Collectors.toList());
        ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
        Map<String, MethodDeclaration> retrieved =
                KiePMMLRegressionTableRegressionFactory.addPredictorTerms(predictorTerms, tableTemplate);
        assertEquals(predictorTerms.size(), retrieved.size());
        IntStream.range(0, predictorTerms.size()).forEach(index -> {
            PredictorTerm predictorTerm = predictorTerms.get(index);
            assertTrue(retrieved.containsKey(predictorTerm.getName().getValue()));
            MethodDeclaration methodDeclaration = retrieved.get(predictorTerm.getName().getValue());
            String expected = String.format("evaluatePredictorTerm%d", index + 1);
            assertEquals(expected, methodDeclaration.getNameAsString());
        });
    }

    @Test
    public void addPredictorTerm() throws IOException {
        String predictorName = "predictorName";
        double coefficient = 23.12;
        String fieldRef = "fieldRef";
        int arity = 3;
        PredictorTerm predictorTerm = PMMLModelTestUtils.getPredictorTerm(predictorName, coefficient,
                                                                          Collections.singletonList(fieldRef));
        ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
        MethodDeclaration retrieved = KiePMMLRegressionTableRegressionFactory.addPredictorTerm(predictorTerm,
                                                                                tableTemplate, arity);
        String expectedName = String.format("evaluatePredictorTerm%d", arity);
        assertEquals(expectedName, retrieved.getNameAsString());
        BlockStmt body = retrieved.getBody().get();
        String text = getFileContent(TEST_06_SOURCE);
        BlockStmt expected = JavaParserUtils.parseBlock(String.format(text, fieldRef, coefficient));
        assertTrue(JavaParserUtils.equalsNode(expected, body));
    }

    @Test
    public void populateGetTargetCategoryTargetCategoryNull() {
        KiePMMLRegressionTableRegressionFactory.populateGetTargetCategory(modelTemplate, null);
        final Expression expectedExpression = new NameExpr("null");
        commonEvaluateGetTargetCategory(modelTemplate, expectedExpression);
    }

    @Test
    public void populateGetTargetCategoryTargetCategoryString() {
        KiePMMLRegressionTableRegressionFactory.populateGetTargetCategory(modelTemplate, "CATEGORY");
        final Expression expectedExpression = new StringLiteralExpr("CATEGORY");
        commonEvaluateGetTargetCategory(modelTemplate, expectedExpression);
    }

    @Test
    public void populateGetTargetCategoryTargetCategoryNoString() {
        KiePMMLRegressionTableRegressionFactory.populateGetTargetCategory(modelTemplate, 435);
        final Expression expectedExpression = new NameExpr("435");
        commonEvaluateGetTargetCategory(modelTemplate, expectedExpression);
    }

    @Test
    public void populateUpdateResultSupported() {
        SUPPORTED_NORMALIZATION_METHODS.forEach(normalizationMethod -> {
            KiePMMLRegressionTableRegressionFactory.populateUpdateResult(modelTemplate, normalizationMethod);
            MethodDeclaration methodDeclaration =
                    modelTemplate.getMethodsByName("updateResult").get(0);
            BlockStmt body = methodDeclaration.getBody().get();
            assertNotNull(body.getStatements());
            if (normalizationMethod.equals(RegressionModel.NormalizationMethod.NONE)) {
                assertTrue(body.getStatements().isEmpty());
            } else {
                assertFalse(body.getStatements().isEmpty());
            }
        });
    }

    @Test
    public void populateUpdateResultUnsupported() {
        UNSUPPORTED_NORMALIZATION_METHODS.forEach(normalizationMethod -> {
            try {
                KiePMMLRegressionTableRegressionFactory.populateUpdateResult(modelTemplate, normalizationMethod);
                fail("Expecting KiePMMLInternalException with normalizationMethod " + normalizationMethod);
            } catch (Exception e) {
                assertTrue(e instanceof KiePMMLInternalException);
            }
        });
    }

    @Test
    public void populateOutputFieldsMap() {
        final List<KiePMMLOutputField> outputFields = new ArrayList<>();
        KiePMMLOutputField predictedOutputField = getOutputField("KOF-TARGET", RESULT_FEATURE.PREDICTED_VALUE,
                                                                 "TARGET");
        outputFields.add(predictedOutputField);
        final List<KiePMMLOutputField> probabilityOutputFields = IntStream.range(0, 2)
                .mapToObj(index -> getOutputField("KOF-PROB-" + index, RESULT_FEATURE.PROBABILITY, "PROB-" + index))
                .collect(Collectors.toList());
        outputFields.addAll(probabilityOutputFields);
    }

    private void commonEvaluateGetTargetCategory(final ClassOrInterfaceDeclaration tableTemplate,
                                                 final Expression expectedExpression) {
        final MethodDeclaration methodDeclaration = tableTemplate.getMethodsByName("getTargetCategory").get(0);
        final BlockStmt body = methodDeclaration.getBody().get();
        final NodeList<Statement> retrieved = body.getStatements();
        assertEquals(1, retrieved.size());
        assertTrue(retrieved.get(0) instanceof ReturnStmt);
        ReturnStmt returnStmt = (ReturnStmt) retrieved.get(0);
        assertEquals(expectedExpression, returnStmt.getExpression().get());
    }

    private KiePMMLOutputField getOutputField(String name, RESULT_FEATURE resultFeature, String targetField) {
        return KiePMMLOutputField.builder(name, Collections.emptyList())
                .withResultFeature(resultFeature)
                .withTargetField(targetField)
                .build();
    }
}


text:
<!DOCTYPE html>

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
  {{ if eq .Title .Site.Title }}
  <title>{{ .Title }}</title>
  <meta name="description" content="{{.Site.Params.description}}">
  <meta property="og:description" content="{{.Site.Params.description}}">
  {{ else }}
  <title>{{ .Title }} - {{ .Site.Title }}</title>
  <meta name="description" content="{{.Description}}">
  <meta property="og:description" content="{{.Description}}">
  {{ end }}
  <meta name="keywords" content="{{delimit .Keywords ", "}}">
  {{if .Site.Params.facebookAppId}}
  <meta property="fb:app_id" content="{{.Site.Params.facebookAppId}}">
  {{end}}
  <meta property="og:url" content="{{.Permalink}}">
  <meta property="og:site_name" content="{{.Site.Title}}">
  <meta property="og:title" content="{{.Title}}">
  <meta property="og:image" content="{{.Site.BaseURL}}/{{.Site.Params.footerCover}}">
  <link href="//cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css" type="text/css" rel="stylesheet" media="screen"/>
  <link href="{{.Site.BaseURL}}/css/style.css" type="text/css" rel="stylesheet" media="screen"/>
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/default.min.css">

Home

Categories

Tags

{{.Site.Title}}

{{.Site.Params.description}}

        {{if .Site.Params.github}}

        {{end}}
        {{if .Site.Params.facebook}}

        {{end}}
        {{if .Site.Params.twitter}}

        {{end}}
        {{if .Site.Params.gplus}}

        {{end}}
        {{if .Site.Params.linkedin}}

        {{end}}
        {{if .Site.Params.hatenaBookmark}}

        {{end}}
        {{if .Site.Params.flickr}}

        {{end}}

    {{if .Site.Params.headerCover}}

    {{else}}

    {{end}}


text:
author: admin
comments: true
date: 2010-08-31 10:44:28+00:00
layout: post
slug: why-i-blog
title: Why I blog
wordpress_id: 132
categories:
- Blogging
tags:
- Blogging
- branding
- Nigeria
---

I thought about a more critical title for this post but decided to take a different approach. Instead of inquiring to know why other software developers and entrepreneurs in Nigeria do not blog, I decided to share my reason for blogging.

IMO blogs are pretty much an avenue for self expression, inquiry and note taking - Oh yeah that's pretty much what I use my blog for. I'm not a professional blogger so I don't have to write what you might want to read. As you would have noticed, I don't have any ads and I don't plan to (at least in the immediate future :))

The reason I blog is pretty much also the reason why I use social media, the way I do. In discussing with colleagues, I sometimes stress the need to be _visible._ Why is this important?

It so turns out that the more visible people are the ones people tend to think about first when they have a problem that they know they can solve. Let me ask you a simple question: If you had mobile application or a mobile web application you wanted to build, who would you think of first? Me of course! Ok that was cheap :)

I've built a lot of contacts and gotten lots of referrals for business and work this way. The law of reciprocity works whether you know it or not. When you share knowledge or enrich others with what you know or what you have, you'll get compensated one way or the other for it.

I started blogging late 2004. For one reason or the other, I lost the first two incarnations of my blog until I finally settled on this. When I started blogging, it was more of a me-too activity but I quickly began to get the hang of it. I didn't think (and I still don't think) I was a good writer but that didn't matter. Over time, I saw my writing skills improve and I've heard a few people comment that they enjoy my blog.

I'm not saying that there aren't Nigerians blogging but what we should see is a lot more. If you can write Facebook notes, you can write a blog.


text:
body{background-color: #000;}
.panel{border-color: #0e920b;background-color: #000;}
.panel>.panel-heading{color: #0e920b;background-color: #111;border-bottom: #0e920b 1px solid;}
.mainCtrl{padding-top: 20px;}
.btn{padding: 3px 8px;}

.itemHeader b{font-size: 12px;display: inline-block;padding-top: 4px;}
.nodevice{color: #c00;font-size: 16px;}
.devItem{padding: 0 5px;}

.itemARFCN{padding: 0;max-height: 400px;overflow-y:auto; }
.itemARFCN .scanDate{margin: 0;padding: 5px;color:#0e920b;  }
.itemARFCN table{table-layout: fixed;width: 100%;}
.itemARFCN table th{color: #0e920b;border-left: none;text-align: center;padding: 5px 0;border-top: #0e920b 1px solid;}
.itemARFCN table td{color: #0e920b;border-left: none;text-align: center;padding: 5px 0;border-top: #0e920b 1px solid;}
.itemARFCN table .thid{border-left: none;}
.itemARFCN table .tdid{border-left: none;}

.deviceList .panel-body ul{list-style: none;padding: 0;margin: 0;}
.deviceList .panel-body ul li{display: inline-block;margin: 0 2px;}
.deviceList .panel-body ul li button{margin: 4px 0;}

.downloadList .panel-body button{margin: 4px 2px;}

.arfcnList{border-bottom: none;}
.arfcnList .panel-body{padding: 0;}
.arfcnList table{table-layout: fixed;width: 100%;}
.arfcnList table th{color: #0e920b;border-left: #0e920b 1px solid;text-align: center;padding: 5px 0;border-bottom: #0e920b 1px solid;}
.arfcnList table td{color: #0e920b;border-left: #0e920b 1px solid;text-align: center;padding: 5px 0;border-bottom: #0e920b 1px solid;}
.arfcnList table .thid{border-left: none;}
.arfcnList table .tdid{border-left: none;}

.smsList{border-bottom: none;}
.smsList .panel-body{padding: 0;}
.smsList table{table-layout: fixed;width: 100%;}
.smsList table th{color: #0e920b;border-left: #0e920b 1px solid;text-align: center;padding: 5px 0;border-bottom: #0e920b 1px solid;}
.smsList table td{color: #0e920b;border-left: #0e920b 1px solid;text-align: center;padding: 5px 0;border-bottom: #0e920b 1px solid;}
.smsList table .thid{border-left: none;}
.smsList table .tdid{border-left: none;}

.loading{ display: none; position: fixed;z-index: 3000;background: rgba(0,0,0,0.8);top: 0;left: 0;text-align: center;}
.loading p{border: 2px solid #ccc;display: inline-block;padding: 10px;font-size: 20px;color: #fff;margin-top: 20%;}


text:
package org.killbill.billing.mock.api;

import java.util.LinkedList;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.CopyOnWriteArrayList;

import org.joda.time.DateTimeZone;

import org.killbill.billing.account.api.Account;
import org.killbill.billing.account.api.AccountApiException;
import org.killbill.billing.account.api.AccountData;
import org.killbill.billing.account.api.AccountEmail;
import org.killbill.billing.account.api.AccountUserApi;
import org.killbill.billing.catalog.api.Currency;
import org.killbill.billing.mock.MockAccountBuilder;
import org.killbill.billing.util.callcontext.CallContext;
import org.killbill.billing.util.callcontext.TenantContext;
import org.killbill.billing.util.entity.DefaultPagination;
import org.killbill.billing.util.entity.Pagination;

public class MockAccountUserApi implements AccountUserApi {

    private final CopyOnWriteArrayList<Account> accounts = new CopyOnWriteArrayList<Account>();

    public Account createAccountFromParams(final UUID id,
                                           final String externalKey,
                                           final String email,
                                           final String name,
                                           final int firstNameLength,
                                           final Currency currency,
                                           final int billCycleDayLocal,
                                           final UUID paymentMethodId,
                                           final DateTimeZone timeZone,
                                           final String locale,
                                           final String address1,
                                           final String address2,
                                           final String companyName,
                                           final String city,
                                           final String stateOrProvince,
                                           final String country,
                                           final String postalCode,
                                           final String phone) {
        final Account result = new MockAccountBuilder(id)
                .externalKey(externalKey)
                .email(email)
                .name(name).firstNameLength(firstNameLength)
                .currency(currency)
                .billingCycleDayLocal(billCycleDayLocal)
                .paymentMethodId(paymentMethodId)
                .timeZone(timeZone)
                .locale(locale)
                .address1(address1)
                .address2(address2)
                .companyName(companyName)
                .city(city)
                .stateOrProvince(stateOrProvince)
                .country(country)
                .postalCode(postalCode)
                .phone(phone)
                .isNotifiedForInvoices(false)
                .build();
        accounts.add(result);
        return result;
    }

    @Override
    public Account createAccount(final AccountData data, final CallContext context) throws AccountApiException {
        final Account result = new MockAccountBuilder(data).build();
        accounts.add(result);
        return result;
    }

    @Override
    public Account getAccountByKey(final String key, final TenantContext context) {
        for (final Account account : accounts) {
            if (key.equals(account.getExternalKey())) {
                return account;
            }
        }
        return null;
    }

    @Override
    public Account getAccountById(final UUID uid, final TenantContext context) {
        for (final Account account : accounts) {
            if (uid.equals(account.getId())) {
                return account;
            }
        }
        return null;
    }

    @Override
    public Pagination<Account> searchAccounts(final String searchKey, final Long offset, final Long limit, final TenantContext tenantContext) {
        final List<Account> results = new LinkedList<Account>();
        for (final Account account : accounts) {
            if ((account.getName() != null && account.getName().contains(searchKey)) ||
                (account.getEmail() != null && account.getEmail().contains(searchKey)) ||
                (account.getExternalKey() != null && account.getExternalKey().contains(searchKey)) ||
                (account.getCompanyName() != null && account.getCompanyName().contains(searchKey))) {
                results.add(account);
            }
        }
        return DefaultPagination.<Account>build(offset, limit, accounts.size(), results);
    }

    @Override
    public Pagination<Account> getAccounts(final Long offset, final Long limit, final TenantContext context) {
        return DefaultPagination.<Account>build(offset, limit, accounts);
    }

    @Override
    public UUID getIdFromKey(final String externalKey, final TenantContext context) {
        for (final Account account : accounts) {
            if (externalKey.equals(account.getExternalKey())) {
                return account.getId();
            }
        }
        return null;
    }

    @Override
    public List<AccountEmail> getEmails(final UUID accountId, final TenantContext context) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void addEmail(final UUID accountId, final AccountEmail email, final CallContext context) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void removeEmail(final UUID accountId, final AccountEmail email, final CallContext context) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void updateAccount(final Account account, final CallContext context) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void updateAccount(final String key, final AccountData accountData, final CallContext context)
            throws AccountApiException {
        throw new UnsupportedOperationException();
    }

    @Override
    public void updateAccount(final UUID accountId, final AccountData accountData, final CallContext context)
            throws AccountApiException {
        throw new UnsupportedOperationException();
    }
}


text:
import { Injectable } from '@angular/core';
import { Http, Headers, Response } from '@angular/http';

import { User } from '../../_models/user';

@Injectable()
export class UsersService {

    constructor(private http: Http) { }

    create(user: User) {
        return this.http.post('http://smktesting.herokuapp.com/api/register/', user).map((response: Response) => response.json());
    }
}


text:
import _plotly_utils.basevalidators

class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator):
    def __init__(self, plotly_name="xanchor", parent_name="layout.legend", **kwargs):
        super(XanchorValidator, self).__init__(
            plotly_name=plotly_name,
            parent_name=parent_name,
            edit_type=kwargs.pop("edit_type", "legend"),
            values=kwargs.pop("values", ["auto", "left", "center", "right"]),
            **kwargs,
        )