text:
package net.pixomania.StatCrawl.stats;

import java.util.ArrayList;
import java.util.Comparator;
import javax.swing.JFrame;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;
import net.pixomania.StatCrawl.db.Db;
import net.pixomania.StatCrawl.db.DbSingleton;

/**
 * The view that shows the stats
 * @author galaxyAbstractor
 */
public class StatView extends javax.swing.JFrame {
    static {
      System.setProperty("swing.defaultlaf", "org.pushingpixels.substance.api.skin.SubstanceGeminiLookAndFeel");
    }
    private Db db = DbSingleton.getDb();
    /** Creates new form Main */
    public StatView() {
        initComponents();

        // Here we set the stats

        // Get the IP stats for the labels and set them
        int[] ip = db.getIPTotalCount();
        totalIPCrawlsLbl.setText(ip[0]+"");
        totalIPCountLbl.setText(ip[1]+"");

        // Get the Host stats for the labels and set them
        int[] host = db.getHostTotalCount();
        totalHostCrawlsLbl.setText(host[0]+"");
        totalHostCountLbl.setText(host[1]+"");

        // Here we create a model for the IP table
        Object[][] topIPs = db.getTopIPs();
        TableModel topIpModel = new DefaultTableModel(topIPs, new String[]{"IP","Count"});
        topIPTable.setModel(topIpModel);

        // To be able to sort the numbers correctly, we have to make a new RowSorter
        // and a comparator to go with it, to sort ints
        TableRowSorter<TableModel> ipSorter = new TableRowSorter<TableModel>(topIPTable.getModel());
        Comparator<Integer> comparator = new Comparator<Integer>() {
            @Override
            public int compare(Integer s1, Integer s2) {
                return s1.compareTo(s2);
            }
        };
        // Set the comparator on the count column which contains the ints
        ipSorter.setComparator(1, comparator);
        topIPTable.setRowSorter(ipSorter);

        // Now create the model for the hosts
        Object[][] topHosts = db.getTopHosts();
        TableModel topHostModel = new DefaultTableModel(topHosts, new String[]{"Host","Count"});
        topHostTable.setModel(topHostModel);

        // create an identical sorter for this model as for the IP model
        TableRowSorter<TableModel> hostSorter = new TableRowSorter<TableModel>(topHostTable.getModel());

        // Still, column 1/count is the one containing the ints
        hostSorter.setComparator(1, comparator);
        topHostTable.setRowSorter(hostSorter);

        // Now get the image stats and set them on the labels associated
        Object[] images = db.getImageTotalCount();
        totalImagesLbl.setText(images[0]+"");
        imageTotalTypesLbl.setText(images[1]+"");
        totalSizeLbl.setText(images[2]+"");
        averageSizeLbl.setText(images[3]+"");

        // Create its model
        Object[][] topImages = db.getTopImageTypes();
        TableModel topImagesModel = new DefaultTableModel(topImages, new String[]{"Type","Size(MB)","Average Size(KB)", "Count"});
        topImageTable.setModel(topImagesModel);
        // We need to make a new TableRowSorter as we have Doubles now, not Integers
        TableRowSorter<TableModel> imageSorter = new TableRowSorter<TableModel>(topImageTable.getModel());
        Comparator<Double> doubleComparator = new Comparator<Double>() {
            @Override
            public int compare(Double s1, Double s2) {
                return s1.compareTo(s2);
            }
        };
        // Set the doubleComparator for column 1 and 2, which contains the doubles,
        // and the integer comparator for the third column, count
        imageSorter.setComparator(1, doubleComparator);
        imageSorter.setComparator(2, doubleComparator);
        imageSorter.setComparator(3, comparator);
        topImageTable.setRowSorter(imageSorter);

        // Fetch the error stats and associate them with the correct labels
        int[] errors = db.getErrorTotalCount();
        totalErrorTypesLbl.setText(errors[1]+"");
        totalErrorsLbl.setText(errors[0]+"");

        // Create its model
        Object[][] topErrors = db.getTopErrors();
        TableModel topErrorModel = new DefaultTableModel(topErrors, new String[]{"Error","Count"});
        topErrorsTable.setModel(topErrorModel);
        TableRowSorter<TableModel> errorSorter = new TableRowSorter<TableModel>(topErrorsTable.getModel());
        // Column 1, count, is the column that needs sorting abillities
        errorSorter.setComparator(1, comparator);
        topErrorsTable.setRowSorter(errorSorter);

        // Set the crawler stats
        int[] crawlerStats = db.getCrawlerStats();
        sitesCrawledLbl.setText(crawlerStats[0]+"");
        pendingLbl.setText(crawlerStats[1]+"");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        ArrayList<Location> countries = db.getCountryStats();

        LocationMutableTreeTableNode root = new LocationMutableTreeTableNode(countries, true);

        for(int i = 0; i < countries.size();i++){
            ArrayList<Location> regions = countries.get(i).getList();

            LocationMutableTreeTableNode country = new LocationMutableTreeTableNode(countries.get(i), true);
            for(int n = 0; n < regions.size();n++){
                ArrayList<Location> cities = regions.get(n).getList();

                LocationMutableTreeTableNode region = new LocationMutableTreeTableNode(regions.get(n), true);
                for(int x = 0; x < cities.size();x++){

                    LocationMutableTreeTableNode city = new LocationMutableTreeTableNode(cities.get(x), false);
                    region.add(city);
                }
                country.add(region);
            }
            root.add(country);
        }
        jXTreeTable1 = new org.jdesktop.swingx.JXTreeTable(new LocationTreeTableModel(root));
        jPanel2 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        totalIPCountLbl = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        topIPTable = new javax.swing.JTable();
        jLabel2 = new javax.swing.JLabel();
        totalIPCrawlsLbl = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        totalHostCountLbl = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        topHostTable = new javax.swing.JTable();
        jLabel7 = new javax.swing.JLabel();
        totalHostCrawlsLbl = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        imageTotalTypesLbl = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        topImageTable = new javax.swing.JTable();
        jLabel9 = new javax.swing.JLabel();
        totalImagesLbl = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        totalSizeLbl = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        averageSizeLbl = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        totalErrorTypesLbl = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        topErrorsTable = new javax.swing.JTable();
        jLabel12 = new javax.swing.JLabel();
        totalErrorsLbl = new javax.swing.JLabel();
        jPanel8 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        sitesCrawledLbl = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        pendingLbl = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("StatCrawl Statistics");

        jScrollPane1.setViewportView(jXTreeTable1);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 662, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 521, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Country", jPanel1);

        jPanel2.setMinimumSize(new java.awt.Dimension(602, 521));
        jPanel2.setLayout(new java.awt.GridBagLayout());

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("IP-addreses"));
        jPanel3.setMinimumSize(new java.awt.Dimension(301, 476));
        jPanel3.setPreferredSize(new java.awt.Dimension(331, 476));

        jLabel1.setText("Total IPs:");

        totalIPCountLbl.setText("0");

        jLabel3.setText("Top IPs:");

        topIPTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "IP", "Count"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane2.setViewportView(topIPTable);

        jLabel2.setText("Total crawls:");

        totalIPCrawlsLbl.setText("0");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jLabel3)
                .addContainerGap())
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jLabel1))
                .addGap(231, 231, 231)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(totalIPCountLbl)
                    .addComponent(totalIPCrawlsLbl))
                .addContainerGap(21, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(totalIPCountLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(totalIPCrawlsLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 397, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;
        jPanel2.add(jPanel3, gridBagConstraints);

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Hosts"));
        jPanel4.setMinimumSize(new java.awt.Dimension(301, 501));
        jPanel4.setPreferredSize(new java.awt.Dimension(331, 501));

        jLabel4.setText("Total Hosts:");

        totalHostCountLbl.setText("0");

        jLabel6.setText("Top Hosts:");

        topHostTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Host", "Count"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane3.setViewportView(topHostTable);

        jLabel7.setText("Total crawls:");

        totalHostCrawlsLbl.setText("0");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jLabel6)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 219, Short.MAX_VALUE)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(totalHostCrawlsLbl)
                    .addComponent(totalHostCountLbl))
                .addGap(33, 33, 33))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(totalHostCountLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(totalHostCrawlsLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;
        jPanel2.add(jPanel4, gridBagConstraints);

        jTabbedPane1.addTab("IP/Host", jPanel2);

        jPanel5.setLayout(new java.awt.GridLayout(1, 0));

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder("Images"));
        jPanel6.setMinimumSize(new java.awt.Dimension(301, 476));
        jPanel6.setPreferredSize(new java.awt.Dimension(331, 476));

        jLabel5.setText("Total Types:");

        imageTotalTypesLbl.setText("0");

        jLabel8.setText("Top Types:");

        topImageTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Type", "Size (MB)", "Average Size (MB)", "Count"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class, java.lang.Object.class, java.lang.Integer.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane4.setViewportView(topImageTable);

        jLabel9.setText("Total Images:");

        totalImagesLbl.setText("0");

        jLabel13.setText("Total Size:");

        totalSizeLbl.setText("0");

        jLabel15.setText("Average Size:");

        averageSizeLbl.setText("0");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addComponent(jLabel8)
                .addContainerGap())
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 236, Short.MAX_VALUE)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(imageTotalTypesLbl)
                    .addComponent(totalImagesLbl)
                    .addComponent(totalSizeLbl)
                    .addComponent(averageSizeLbl))
                .addContainerGap())
            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel15))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(imageTotalTypesLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(totalImagesLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(totalSizeLbl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(averageSizeLbl)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addComponent(jLabel8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel5.add(jPanel6);

        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder("Errors"));
        jPanel7.setMinimumSize(new java.awt.Dimension(301, 501));
        jPanel7.setPreferredSize(new java.awt.Dimension(331, 501));

        jLabel10.setText("Total Error Types:");

        totalErrorTypesLbl.setText("0");

        jLabel11.setText("Top Errors:");

        topErrorsTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Error", "Count"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane5.setViewportView(topErrorsTable);

        jLabel12.setText("Total Errors:");

        totalErrorsLbl.setText("0");

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel10)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 193, Short.MAX_VALUE)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(totalErrorsLbl)
                    .addComponent(totalErrorTypesLbl))
                .addGap(33, 33, 33))
            .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addComponent(jLabel11)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(totalErrorTypesLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(totalErrorsLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 77, Short.MAX_VALUE)
                .addComponent(jLabel11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 356, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel5.add(jPanel7);

        jTabbedPane1.addTab("Pages", jPanel5);

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Crawler"));

        jLabel14.setText("Sites crawled:");

        sitesCrawledLbl.setText("0");

        jLabel17.setText("Pending:");

        pendingLbl.setText("0");

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 124, Short.MAX_VALUE)
                        .addComponent(sitesCrawledLbl))
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(jLabel17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 149, Short.MAX_VALUE)
                        .addComponent(pendingLbl)))
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(sitesCrawledLbl))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(pendingLbl))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(423, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(442, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Crawler", jPanel8);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 667, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 538, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-683)/2, (screenSize.height-576)/2, 683, 576);
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        JFrame.setDefaultLookAndFeelDecorated(true);
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new StatView().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel averageSizeLbl;
    private javax.swing.JLabel imageTotalTypesLbl;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JTabbedPane jTabbedPane1;
    private org.jdesktop.swingx.JXTreeTable jXTreeTable1;
    private javax.swing.JLabel pendingLbl;
    private javax.swing.JLabel sitesCrawledLbl;
    private javax.swing.JTable topErrorsTable;
    private javax.swing.JTable topHostTable;
    private javax.swing.JTable topIPTable;
    private javax.swing.JTable topImageTable;
    private javax.swing.JLabel totalErrorTypesLbl;
    private javax.swing.JLabel totalErrorsLbl;
    private javax.swing.JLabel totalHostCountLbl;
    private javax.swing.JLabel totalHostCrawlsLbl;
    private javax.swing.JLabel totalIPCountLbl;
    private javax.swing.JLabel totalIPCrawlsLbl;
    private javax.swing.JLabel totalImagesLbl;
    private javax.swing.JLabel totalSizeLbl;
    // End of variables declaration//GEN-END:variables

}


text:
package com.idurdyev.torgcrm.jhipster.service;

import com.idurdyev.torgcrm.jhipster.service.dto.CustomerTypeDTO;
import java.util.List;

/**
 * Service Interface for managing CustomerType.
 */
public interface CustomerTypeService {

    /**
     * Save a customerType.
     *
     * @param customerTypeDTO the entity to save
     * @return the persisted entity
     */
    CustomerTypeDTO save(CustomerTypeDTO customerTypeDTO);

    /**
     * Get all the customerTypes.
     *
     * @return the list of entities
     */
    List<CustomerTypeDTO> findAll();

    /**
     * Get the "id" customerType.
     *
     * @param id the id of the entity
     * @return the entity
     */
    CustomerTypeDTO findOne(Long id);

    /**
     * Delete the "id" customerType.
     *
     * @param id the id of the entity
     */
    void delete(Long id);
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
  <display-name>Basic Jawr web app sample</display-name>

	<servlet>
	      <servlet-name>dispatcher</servlet-name>
	      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
	      <load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
	      <servlet-name>dispatcher</servlet-name>
	      <url-pattern>*.form</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
	      <servlet-name>dispatcher</servlet-name>
	      <url-pattern>*.js</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
	      <servlet-name>dispatcher</servlet-name>
	      <url-pattern>*.css</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
	      <servlet-name>dispatcher</servlet-name>
	      <url-pattern>*.png</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
	      <servlet-name>dispatcher</servlet-name>
	      <url-pattern>*.gif</url-pattern>
	</servlet-mapping>

	<session-config>
		<session-timeout>10</session-timeout>
	</session-config>
</web-app>


text:
package com.intropro.prairie.comparator;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;

/**
 * Created by presidentio on 10/13/15.
 */
@RunWith(Parameterized.class)
public class ByLineComparatorTest {

    private ByLineComparator<String> byLineComparator = new ByLineComparator<>();

    @Parameterized.Parameters
    public static Collection<Object[]> parameters() {
        return Arrays.asList(
                new Object[]{Arrays.asList("a", "b"), Arrays.asList("a", "b"), true},
                new Object[]{Arrays.asList("a", "b"), Arrays.asList("b", "a"), true},
                new Object[]{Arrays.asList("a", "b"), Arrays.asList("a", "b", "c"), false},
                new Object[]{Arrays.asList("a", "b"), Arrays.asList("a", "b", "a"), false},
                new Object[]{Arrays.asList("a", "b", "c"), Arrays.asList("a", "b"), false},
                new Object[]{Arrays.asList(), Arrays.asList(), true});
    }

    private List<String> expected;
    private List<String> retrieved;
    private boolean equals;

    public ByLineComparatorTest(List<String> expected, List<String> retrieved, boolean equals) {
        this.expected = expected;
        this.retrieved = retrieved;
        this.equals = equals;
    }

    @Test
    public void testCompare() throws Exception {
        CompareResponse<String> compareResponse = byLineComparator.compare(expected, retrieved);
        if (equals) {
            compareResponse.assertEquals();
        } else {
            compareResponse.assertNotEquals();
        }
    }
}


text:
var tester  = require('./test.lib.js');

tester.config.uri = 'http://127.0.0.1:3001';

// Test Files
var testAuthentication     = require('./authentication.test.js');

// Tests to Execute

suite('Authentication', function () {
	testAuthentication.run(tester);
});


text:
@import Foundation;

// Identity of the user of the app would be gathered using PyzeIdentity class.

@interface PyzeIdentity : NSObject

+(void) setAppSpecificUserId:(nonnull NSString *) appSpecificUserId;

+(void) setFbID:(nonnull NSString *) fbId;

+(void) setTwitterId: (nonnull NSString *) twitterId;

+(void) setEmail:(nonnull NSString *) emailId;

+(void) setPhoneNumber:(nonnull NSString *) phoneNumber;

+(void) setPushNotificationRegistrationId:(nonnull NSString *) pushNotificatioId;

+(void) setUserName:(nonnull NSString *) userName;

+(void) setCustomUserIdentifier:(nonnull NSString *) identifier forKey:(nonnull NSString *) key;

+(nullable NSDictionary *) identities;

+(void) postIfChanged; // call after the fields are set.

@end

/**
 *  PyzeCustomEvent
 *  Base class for events
 */
@interface PyzeCustomEvent : NSObject

/**
 *  Base class method which will post the data to server.
 *
 *  @param eventName  The event name to capture.
 *  @param attributes Additional custom attributes the app would want to share with server.
 */
+(void) postWithEventName:(nonnull NSString *) eventName withAttributes:(nullable NSDictionary *)attributes;

@end

@interface PyzeExplicitActivation : PyzeCustomEvent

+ (void) post;

+ (void) post: (nullable NSDictionary *)attributeDictionary;

@end

#pragma mark - Ad

/**
 *  ### PyzeAd
 *  Subclass of PyzeCustomEvent. This class can be used for posting events related to ads in your apps.
 */
@interface PyzeAd : PyzeCustomEvent

/**
 *  Post the event to server once the ad request has successfully been sent to the server.
 *
 *  @param adNetwork  The ad network the app referring to.
 *  @param appScreen  ViewController name where ad would be shown.
 *  @param size       Size of the ad.
 *  @param type       Type of ad for example Interstitial, Banner Ads, DFP ads etc.,
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postAdRequested:(nullable NSString *)adNetwork
          fromAppScreen:(nonnull NSString *)appScreen
             withAdSize:(CGSize)size
                 adType:(nonnull NSString *) type
         withAttributes:(nullable NSDictionary *)attributes;

/**
 *  Post the event to server once the ad data received from the provider.
 *
 *  @param adNetwork  The ad network the app referring to.
 *  @param appScreen  ViewController name where ad would be shown.
 *  @param resultCode Result code received, if any.
 *  @param success    Success or failed to load the ad.
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postAdReceived:(nullable NSString *)adNetwork
         fromAppScreen:(nonnull NSString *)appScreen
        withResultCode:(nullable NSString *) resultCode
             isSuccess:(BOOL) success
        withAttributes:(nullable NSDictionary *)attributes;

/**
 *  Post the event to server when user taps on ad.
 *
 *  @param adNetwork  The ad network the app referring to.
 *  @param appScreen  ViewController name where ad would be shown.
 *  @param adCode     Ad code received from the server, if any.
 *  @param success    Success or failed to load the ad.
 *  @param errorCode  Pass the errorCode if ad click operation fails.
 *  @param attributes Additional custom attributes app would like to share with server.
 */

+(void) postAdClicked:(nullable NSString *)adNetwork
        fromAppScreen:(nonnull NSString *)appScreen
               adCode:(nonnull NSString *) adCode
            isSuccess:(BOOL) success
        withErrorCode:(nullable NSString *) errorCode
       withAttributes:(nullable NSDictionary *)attributes;

@end

NS_ASSUME_NONNULL_BEGIN
/**
 *  ### PyzeAdvocacy
 *  Subclass of PyzeCustomEvent class used for posting support for feedbacks.
 */
@interface PyzeAdvocacy : PyzeCustomEvent

/**
 *  Post request for feedback.
 *
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postRequestForFeedback:(NSDictionary *)attributes;

/**
 *  Post the feedback received.
 *
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postFeedbackProvided:(NSDictionary *)attributes;

/**
 *  Post request rating.
 *
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postRequestRating:(NSDictionary *)attributes;

@end
NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
/**
 *  ### PyzeAccount
 *  Subclass of PyzeCustomEvent class used to post the details related to Accounts.
 */
@interface PyzeAccount : PyzeCustomEvent

/**
 *  Post registration offered details.
 *
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postRegistrationOffered:(NSDictionary *) attributes;

/**
 *  Post registration started details.
 *
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postRegistrationStarted:(NSDictionary *) attributes;

/**
 *  Post registration completed details.
 *
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postRegistrationCompleted:(NSDictionary *) attributes;

/**
 *  Post the login operation completion details.
 *
 *  @param success    a status to indicate the operation successful or failed.
 *  @param errCodeStr On error, pass the localizedDescription to this parameter.
 *  @param dictionary Additional custom attributes app would like to share with server.
 */
+(void) postLoginCompleted:(BOOL) success withErrCode:(NSString *) errCodeStr withAttributes:(NSDictionary *) dictionary;

/**
 *  Post logout details
 *
 *  @param logoutExplicit A boolean status to determine whether logout is explicit logout or not.
 *  @param dictionary     Additional custom attributes app would like to share with server.
 */
+(void) postLogoutCompleted:(BOOL)logoutExplicit withAttributes:(NSDictionary *) dictionary;

/**
 *  Post password reset request details.
 *
 *  @param dictionary Additional custom attributes app would like to share with server.
 */
+(void) postPasswordResetRequest:(NSDictionary *) dictionary;

@end

/**
 *  ### PyzeCommerceDiscovery
 *  Subclass of PyzeCustomEvent used to post the details of events related to Discovery of a item in particular category.
 */
@interface PyzeCommerceDiscovery : PyzeCustomEvent

/**
 *  Post the search details, latency value with details.
 *
 *  @param searchString Search string used
 *  @param latency      Latency to complete the operation.
 *  @param attributes   Additional custom attributes app would like to share with server.
 */

+(void) postSearched:(NSString *) searchString
         withLatency:(NSNumber *) latency
      withAttributes:(NSDictionary *)attributes;
/**
 *  Post browsed category details.
 *
 *  @param category   Category name
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postBrowsedCategory:(NSString *) category
             withAttributes:(NSDictionary *)attributes;

/**
 *  Post browsed deal details
 *
 *  @param uniqueDealID Unique deal identification string/number.
 *  @param attributes   Additional custom attributes app would like to share with server.
 */
+(void) postBrowsedDeals:(NSString *) uniqueDealID
          withAttributes:(NSDictionary *)attributes;

/**
 *  Post browsed recommendation details.
 *
 *  @param uniqueRecommendationID uniqueRecommendationID containing a string/number.
 *  @param attributes             Additional custom attributes app would like to share with server.
 */
+(void) postBrowsedRecommendations:(NSString *) uniqueRecommendationID
                    withAttributes:(NSDictionary *)attributes;

/**
 *  Post browsed previous order details.
 *
 *  @param rangeStart Starting range of the order browsed.
 *  @param rangeEnd   Ending range of the order browsed.
 *  @param attributes Additional custom attributes app would like to share with server.
 */
+(void) postBrowsedPrevOrders:(NSString *) rangeStart
                      withEnd:(NSString *) rangeEnd
               withAttributes:(NSDictionary *)attributes;
@end

/**
 *  ### PyzeCommerceCuratedList
 *  Subclass of PyzeCustomEvent class used post details of the events related to curated list.
 */
@interface PyzeCommerceCuratedList: PyzeCustomEvent

/**
 *  Post creation details of curated list.
 *
 *  @param uniqueCuratedListID Curated list id.
 *  @param curatedListType     Type of curated list.
 *  @param attributes          Additional custom attributes app would like to share with server.
 */
+(void) postCreated:(NSString *) uniqueCuratedListID
           withType:(NSString *) curatedListType
     withAttributes:(NSDictionary *)attributes;

/**
 *  Post browsed details of curated list.
 *
 *  @param curatedList        Curated list id.
 *  @param curatedListCreator Curated list creation id.
 *  @param attributes         Additional custom attributes app would like to share with server.
 */
+(void) postBrowsed:(NSString *) curatedList
        withCreator:(NSString *) curatedListCreator
     withAttributes:(NSDictionary *)attributes;

/**
 *  Post details of adding an item to curated list.
 *
 *  @param uniqueCuratedListId Curated list id.
 *  @param itemCategory        Category name to add the item.
 *  @param itemID              Item id details.
 *  @param attributes          Additional custom attributes app would like to share with server.
 */
+(void) postAddedItem:(NSString *) uniqueCuratedListId
         withCategory:(NSString *) itemCategory
           withItemId:(NSString *) itemID
       withAttributes:(NSDictionary *)attributes;

/**
 *  <#Description#>
 *
 *  @param uniqueCuratedListID <#uniqueCuratedListID description#>
 *  @param curatedListType     <#curatedListType description#>
 *  @param itemID              <#itemID description#>
 *  @param attributes          <#attributes description#>
 */
+(void) postRemovedItem:(NSString *) uniqueCuratedListID
           withListType:(NSString *) curatedListType
             withItemID:(NSString *) itemID
         withAttributes:(NSDictionary *)attributes;

+(void) postShared:(NSString *) curatedList
       withCreator:(NSString *) curatedListCreator
    withAttributes:(NSDictionary *)attributes;

+(void) postPublished:(NSString *) curatedList
          withCreator:(NSString *) curatedListCreator
       withAttributes:(NSDictionary *)attributes;
@end

@interface PyzeCommerceWishList : PyzeCustomEvent

+(void) postCreated:(NSString *) uniqueWishListId
   withWishListType:(NSString *) wishListtype
     withAttributes:(NSDictionary *)attributes;

+(void) postBrowsed:(NSString *) uniqueWishListId
     withAttributes:(NSDictionary *)attributes;

+(void) postAddedItem:(NSString *) uniqueWishListId
     withItemCategory:(NSString *) itemCategory
           withItemId:(NSString *) itemId
       withAttributes:(NSDictionary *)attributes;

+(void) postRemovedItem:(NSString *) uniqueWishListId
       withItemCategory:(NSString *) itemCategory
             withItemId:(NSString *) itemId
         withAttributes:(NSDictionary *)attributes;

+(void) postShared:(NSString *) uniqueWishListId
    withAttributes:(NSDictionary *)attributes;

@end

#pragma  mark - CommerceBeacon

@interface PyzeCommerceBeacon : PyzeCustomEvent

/**
 *  <#Description#>
 *
 *  @param iBeaconUUID            <#iBeaconUUID description#>
 *  @param iBeaconMajor           <#iBeaconMajor description#>
 *  @param iBeaconMinor           <#iBeaconMinor description#>
 *  @param uniqueRegionIdentifier <#uniqueRegionIdentifier description#>
 *  @param attributes             <#attributes description#>
 */
+(void) postEnteredRegion:(NSString *) iBeaconUUID
          withBeaconMajor:(NSString *) iBeaconMajor
          withBeaconMinor:(NSString *) iBeaconMinor
withUniqueRegionIdentifier:(NSString *)uniqueRegionIdentifier
           withAttributes:(NSDictionary *)attributes;

+(void) postExitedRegion:(NSString *) iBeaconUUID
         withBeaconMajor:(NSString *) iBeaconMajor
         withBeaconMinor:(NSString *) iBeaconMinor
withUniqueRegionIdentifier:(NSString *)uniqueRegionIdentifier
          withAttributes:(NSDictionary *)attributes;

+(void) postTransactedInRegion:(NSString *) iBeaconUUID
               withBeaconMajor:(NSString *) iBeaconMajor
               withBeaconMinor:(NSString *) iBeaconMinor
    withUniqueRegionIdentifier:(NSString *) uniqueRegionIdentifier
                 withProximity:(NSString *) proximity
                  withActionId:(NSString *) actionId
                withAttributes:(NSDictionary *)attributes;
@end

@interface PyzeCommerceCart : PyzeCustomEvent

+(void) postAddItem:(NSString *) cartId
   withItemCategory:(NSString *) itemCatefory
         withItemId:(NSString *) itemId
     withAttributes:(NSDictionary *)attributes;

+(void) postAddItemFromDeals:(NSString *) cartId
            withItemCategory:(NSString *) itemCatefory
                  withItemId:(NSString *) itemId
            withUniqueDealId:(NSString *) uniqueDealId
              withAttributes:(NSDictionary *)attributes;

+(void) postAddItemFromWishList:(NSString *) cartId
               withItemCategory:(NSString *) itemCatefory
                     withItemId:(NSString *) itemId
           withUniqueWishListId:(NSString *) uniqueWishListId
                 withAttributes:(NSDictionary *)attributes;

+(void) postAddItemFromCuratedList:(NSString *) cartId
                  withItemCategory:(NSString *) itemCatefory
                        withItemId:(NSString *) itemId
           withUniqueCuratedListId:(NSString *) uniqueCuratedListId
                    withAttributes:(NSDictionary *)attributes;

+(void) postAddItemFromRecommendations:(NSString *) cartId
                      withItemCategory:(NSString *) itemCatefory
                            withItemId:(NSString *) itemId
            withUniqueRecommendationId:(NSString *) uniqueRecommendationId
                        withAttributes:(NSDictionary *)attributes;

+(void) postAddItemFromPreviousOrders:(NSString *) cartId
                     withItemCategory:(NSString *) itemCatefory
                           withItemId:(NSString *) itemId
                  withPreviousOrderId:(NSString *) previousOrderId
                       withAttributes:(NSDictionary *)attributes;

+(void) postAddItemFromSearchResults:(NSString *) cartId
                    withItemCategory:(NSString *) itemCatefory
                          withItemId:(NSString *) itemId
                    withSearchString:(NSString *) searchString
                      withAttributes:(NSDictionary *)attributes;

+(void) postAddItemFromSubcriptionList:(NSString *) cartId
                      withItemCategory:(NSString *) itemCatefory
                            withItemId:(NSString *) itemId
                      withUniqueDealId:(NSString *) uniqueDealId
                        withAttributes:(NSDictionary *)attributes;

+(void) postRemoveItemFromCart:(NSString *) cartId
              withItemCategory:(NSString *) itemCatefory
                    withItemId:(NSString *) itemId
                withAttributes:(NSDictionary *)attributes;

+(void) postView:(NSString *) cartId
  withAttributes:(NSDictionary *)attributes;

+(void) postShare:(NSString *) cartId
withItemSharedWith:(NSString *) sharedWith
       withItemId:(NSString *) itemId
   withAttributes:(NSDictionary *)attributes;
@end

@interface PyzeCommerceItem : PyzeCustomEvent

+(void) postViewedItem:(NSDictionary *) attributes;

+(void) postScannedItem:(NSDictionary *) attributes;

+(void) postViewedReviews:(NSDictionary *) attributes;

+(void) postViewedDetails:(NSDictionary *) attributes;

+(void) postViewedPrice:(NSDictionary *) attributes;

+(void) postItemShareItem:(NSDictionary *) attributes;

+(void) postItemRateOn5Scale:(NSString *) itemSKU withRating:(NSString *) rating withAttributes:(NSDictionary *)attributes;

@end

@interface PyzeCommerceCheckout : PyzeCustomEvent

+(void) postCheckoutStarted:(NSDictionary *) attributes;

+(void) postCheckoutCompleted:(NSDictionary *) attributes;

+(void) postCheckoutAbandoned:(NSDictionary *) attributes;

+(void) postCheckoutFailed:(NSDictionary *) attributes;

@end

@interface PyzeCommerceShipping : PyzeCustomEvent

+(void) postShippingStarted:(NSDictionary *) attributes;

+(void) postShippingCompleted:(NSDictionary *) attributes;

+(void) postShippingAbandoned:(NSDictionary *) attributes;

+(void) postShippingFailed:(NSDictionary *) attributes;

@end

@interface PyzeCommerceBilling : PyzeCustomEvent

+(void) postBillingStarted:(NSDictionary *) attributes;

+(void) postBillingCompleted:(NSDictionary *) attributes;

+(void) postBillingAbandoned:(NSDictionary *) attributes;

+(void) postBillingFailed:(NSDictionary *) attributes;

@end

@interface PyzeCommercePayment : PyzeCustomEvent

+(void) postPaymentStarted:(NSDictionary *) attributes;

+(void) postPaymentCompleted:(NSDictionary *) attributes;

+(void) postPaymentAbandoned:(NSDictionary *) attributes;

+(void) postPaymentFailed:(NSDictionary *) attributes;

@end

@interface PyzeCommerceRevenue : PyzeCustomEvent
+(void) postRevenue:(NSNumber*) revenue withAttributes:(NSDictionary*) attributes;
+(void) postRevenueUsingApplePay:(NSNumber*) revenue withAttributes:(NSDictionary*) attributes;
+(void) postRevenueUsingSamsungPay:(NSNumber*) revenue withAttributes:(NSDictionary*) attributes;
+(void) postRevenueUsingGooglePay:(NSNumber*) revenue withAttributes:(NSDictionary*) attributes;
+(void) postRevenue:(NSNumber*) revenue withPaymentInstrument: (NSString*) paymentInstrument withAttributes:(NSDictionary*) attributes;
@end

@interface PyzeGaming : PyzeCustomEvent

+(void) postLevelStarted:(NSString *) level
          withAttributes:(NSDictionary *)attributes;

+(void) postLevelEnded:(NSString *) level
            withScore:(NSString *) score
  withSuccessOrFailure:(NSString *) success
        withAttributes:(NSDictionary*) attributes;

+(void) postPowerUpConsumed:(NSString *) level
                   withType:(NSString *) type
                  withValue:(NSString *) value
             withAttributes:(NSDictionary*) attributes;

+(void) postInGameItemPurchased:(NSString *) uniqueItemId
                   withItemType:(NSString *) itemType
                  withItemValue:(NSString *) value
                 withAttributes:(NSDictionary*) attributes;

+(void) postAchievementEarned:(NSString *) uniqueAchievementId
                     withType:(NSString *) type
               withAttributes:(NSDictionary*) attributes;

+(void) postSummaryViewed:(NSString*) level
                withScore:(NSString *) score
           withAttributes:(NSDictionary*) attributes;

+(void) postLeaderBoardViewed:(NSString*) level
                    withScore:(NSString *) score
               withAttributes:(NSDictionary*) attributes;

+(void) postScorecardViewed:(NSString*) level
                  withScore:(NSString *) score
             withAttributes:(NSDictionary*) attributes;

+(void) postHelpViewed:(NSString *) helpTopicId
        withAttributes:(NSDictionary *) dictionary;

+(void) postTutorialViewed:(NSString *) helpTopicId
            withAttributes:(NSDictionary *) dictionary;

+(void) postFriendChallenged:(NSDictionary *) attributes;

+(void) postChallengeAccepted:(NSDictionary *) attributes;

+(void) postChallengeDeclined:(NSDictionary *) attributes;

+(void) postGameStart:(NSString *) level
       withAttributes:(NSDictionary *)attributes;

+(void) postGameEnd:(NSString *) levelsPlayed
      withLevelsWon:(NSString *) levelsWon
     withAttributes:(NSDictionary *)attributes;

@end

@interface PyzeHealthAndFitness : PyzeCustomEvent

+(void) postStarted:(NSDictionary *) attributes;

+(void) postEnded:(NSDictionary *) attributes;

+(void) postAchievementReceived:(NSDictionary *) attributes;

+(void) postStepGoalCompleted:(NSDictionary *) attributes;

+(void) postGoalCompleted:(NSDictionary *) attributes;

+(void) postChallengedFriend:(NSDictionary *) attributes;

+(void) postChallengeAccepted:(NSDictionary *) attributes;

@end

#pragma mark - Pyze Content

@interface PyzeContent : PyzeCustomEvent

+(void) postViewed:(NSString *) contentName
          category:(NSString *) categoryName
withUniqueContentId:(NSString *) contentId
    withAttributes:(NSDictionary *)attributes;

+(void) postSearched:(NSString *) searchString withAttributes:(NSDictionary *)attributes;

+(void) postRatedOn5PointScale:(NSString *) contentName
                      category:(NSString *) categoryName
           withUniqueContentId:(NSString *) contentId
                 contentRating:(NSDecimalNumber *) rating
                withAttributes:(NSDictionary *)attributes;

+(void) postRatedThumbsUp:(NSString *) contentName
                 category:(NSString *) categoryName
      withUniqueContentId:(NSString *) contentId
           withAttributes:(NSDictionary *)attributes;

+(void) postRatedThumbsDown:(NSString *) contentName
                   category:(NSString *) categoryName
        withUniqueContentId:(NSString *) contentId
             withAttributes:(NSDictionary *)attributes;
@end

@interface PyzeMessaging : PyzeCustomEvent

+(void) postMessageSMS:(NSString *) uniqueId withAttributes:(NSDictionary *) dictionary;

+(void) postMessageSent:(NSString *) uniqueId withAttributes:(NSDictionary *) dictionary;

+(void) postMessageReceived:(NSString *) uniqueId withAttributes:(NSDictionary *) dictionary;

+(void) postMessageNewConversation:(NSString *) uniqueId withAttributes:(NSDictionary *) dictionary;

+(void) postMessageVoiceCall:(NSString *) uniqueId withAttributes:(NSDictionary *) dictionary;

@end

@interface  PyzeInAppPurchaseRevenue : PyzeCustomEvent

+(void) postPriceListViewViewed:(NSString *) appScreenRequestFromId withAttributes:(NSDictionary *) attributes;

+(void) postBuyItem:(NSString *) itemName
              price:(NSDecimalNumber *) revenue
           currency:(NSString *) currencyISO4217Code
     withAttributes:(NSDictionary *) attributes;

+(void) postBuyItemInUSD:(NSString *) itemName
                   price:(NSDecimalNumber *) revenue
          withAttributes:(NSDictionary *) attributes;

+(void) postBuyItem:(NSString *) itemName
              price:(NSDecimalNumber *) revenue
           currency:(NSString *) currencyISO4217Code
           itemType:(NSString *) itemType
            itemSKU:(NSString *) itemSKU
           quantity:(NSString *) quantity
          requestId:(NSString *) appScreenRequestFromId
             status: (BOOL) success
        successCode:(NSString *) successOrErrorCode
     withAttributes:(NSDictionary *)attributes;
@end

@interface PyzeTasks: PyzeCustomEvent

+(void)  addToCalendarwithAttributes:(NSDictionary *)attributes;

@end

@interface PyzeSocial: PyzeCustomEvent

+(void) postSocialContentShareForNetworkName:(NSString *) socialNetworkName
                         forContentReference:(NSString *) contentReference
                                    category:(NSString *) category
                              withAttributes:(NSDictionary *) dictionary;

+(void) postLiked:(NSString *) socialNetworkName
forContentReference:(NSString *) contentReference
         category:(NSString *) category
   withAttributes:(NSDictionary *) dictionary;

+(void) postFollowed:(NSString *) socialNetworkName
 forContentReference:(NSString *) contentReference
            category:(NSString *) category
      withAttributes:(NSDictionary *) dictionary;

+(void) postSubscibed:(NSString *) socialNetworkName
  forContentReference:(NSString *) contentReference
             category:(NSString *) category
       withAttributes:(NSDictionary *) dictionary;

+(void) postInvitedFriend: (NSString *) socialNetworkName withAttributes:(NSDictionary *)attributes;

+(void) postFoundFriends:(NSString *) source withAtrributes:(NSDictionary *) attributes;

@end

@interface PyzeMedia : PyzeCustomEvent

+(void) postPlayedMedia:(NSString *) contentName
              mediaType:(NSString *) type
               category:(NSString *) categoryName
          percentPlayed:(NSString *) percent
    withUniqueContentId:(NSString *) contentId
         withAttributes:(NSDictionary *)attributes;

+(void) postSearched:(NSString *) searchString withAttributes:(NSDictionary *)attributes;

+(void) postRatedOn5PointScale:(NSString *) contentName
                      category:(NSString *) categoryName
             withUniqueContentId:(NSString *) mediaId
                 contentRating:(NSDecimalNumber *) rating
                withAttributes:(NSDictionary *)attributes;

+(void) postRatedThumbsUp:(NSString *) contentName
                 category:(NSString *) categoryName
      withUniqueContentId:(NSString *) contentId
           withAttributes:(NSDictionary *)attributes;

+(void) postRatedThumbsDown:(NSString *) contentName
                   category:(NSString *) categoryName
        withUniqueContentId:(NSString *) contentId
             withAttributes:(NSDictionary *)attributes;

@end

@interface PyzeBitcoin : PyzeCustomEvent

+(void) postSentBitcoins:(NSDictionary *) attributes;

+(void) postRequestedBitcoins:(NSDictionary *) attributes;

+(void) postReceivedBitcoins:(NSDictionary *) attributes;

+(void) postViewedTransactions:(NSDictionary *) attributes;

+(void) postImportedPrivateKey:(NSDictionary *) attributes;

+(void) postScannedPrivateKey:(NSDictionary *) attributes;

@end

NS_ASSUME_NONNULL_END


text:
#ifndef USERVER_H
#define USERVER_H

#include "UConfig.h"
#include "UException.h"
#include <functional>

namespace UCLA{

	class UReceiver
	{
	public:
		/**
		UCLA Receiver constructor.

		Creates receiver instance from specified config.

		@param \b config Reference to configuration object.
		@param \b handler Receive handler.
		@param \b autostart Tells if server will be started automatically.
		Otherwise you will have to call Start method. Default value = false.
		*/
		UReceiver(UConfig &config, std::function<void(char*, int)> handler, bool autostart=false);

		/**
		Move constructor.
		*/
		UReceiver(UReceiver &&that);

		/**
		Move operator.
		*/
		UReceiver& operator=(UReceiver&& that);

		/**
		Starts a receiver.
		*/
		void Start(void);

		/**
		Receives single message

		\b NOTE: This is blocking.
		*/
		void Receive(void);

		/**
		Run in loop and receive messages.

		\b NOTE: This is infinite loop - just don't expect this to end.
		*/
		void Run(void);

		/**
		Sets ReceiveHandler

		This handler is called every time when message is received
		\b NOTE: Handler shouldn't be blocking.

		@param \b handler std::function<void(char*, int)>.
		*/
		void SetupReceiveHandler(std::function<void(char*, int)> handler);

		/**
		Tells if receiver has been started

		@return True if receiver has been started
		*/
		bool IsStarted(void) const;

		/**
		Returns endpoint string.
		*/
		const char* Endpoint() const{
			return this->_endpoint;
		}

		~UReceiver(void);

	private:
		std::function<void(char*, int)> _receive_handler;

		char* _endpoint;
		void *_ctx;
		void *_sock;

		bool _isStarted;

		void CopyEndpoint(const char* endpoint);
		void CleanUpXS(void);
	};
}
#endif // USERVER_H


text:
layout: page
title: "Kai Rune Larsen"
comments: true
description: "blanks"
keywords: "Kai Rune Larsen,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script src="../assets/js/highcharts.js"></script> -->
<style type="text/css">@font-face {
	font-family: "Bebas Neue";
	src: url(https://www.filehosting.org/file/details/544349/BebasNeue Regular.otf) format("opentype");
	}
	h1.Bebas {
		font-family: "Bebas Neue", Verdana, Tahoma;
	}
</style>
</head>

#### TEACHING INFORMATION

**College**: Leeds School of Business

**Classes taught**: BCOR 4000, BCOR 4005, MGMT 3200, MGMT 4440, MGMT 4825, MSBX 5410, OPIM 3100, SYST 3100

#### BCOR 4000: PRIVACY AND TECHNOLOGY

**Terms taught**: Spring 2007, Fall 2007

**Instructor rating**: 5.53

**Standard deviation in instructor rating**: 0.01

**Average grade** (4.0 scale): 3.19

**Standard deviation in grades** (4.0 scale): 0.0

**Average workload** (raw): 3.0

**Standard deviation in workload** (raw): 0.0

#### BCOR 4005: SR SEMINAR IN SYSTEMS

**Terms taught**: Fall 2008

**Instructor rating**: 5.9

**Standard deviation in instructor rating**: 0.0

**Average grade** (4.0 scale): 3.17

**Standard deviation in grades** (4.0 scale): 0.0

**Average workload** (raw): 2.67

**Standard deviation in workload** (raw): 0.0

#### MGMT 3200: Business Analytics

**Terms taught**: Fall 2011, Fall 2013, Fall 2013, Fall 2014, Fall 2014, Fall 2015, Fall 2015, Spring 2016, Fall 2016, Fall 2016, Spring 2017, Spring 2017

**Instructor rating**: 5.13

**Standard deviation in instructor rating**: 0.47

**Average grade** (4.0 scale): 3.06

**Standard deviation in grades** (4.0 scale): 0.2

**Average workload** (raw): 3.93

**Standard deviation in workload** (raw): 0.37

#### MGMT 4440: Privacy in Big Data Analytics

**Terms taught**: Spring 2014

**Instructor rating**: 5.4

**Standard deviation in instructor rating**: 0.0

**Average grade** (4.0 scale): 3.25

**Standard deviation in grades** (4.0 scale): 0.0

**Average workload** (raw): 2.88

**Standard deviation in workload** (raw): 0.0

#### MGMT 4825: Experimental Seminar

**Terms taught**: Fall 2011, Spring 2012, Spring 2013

**Instructor rating**: 5.58

**Standard deviation in instructor rating**: 0.26

**Average grade** (4.0 scale): 3.2

**Standard deviation in grades** (4.0 scale): 0.02

**Average workload** (raw): 2.97

**Standard deviation in workload** (raw): 0.17

#### MSBX 5410: Analytics Lab

**Terms taught**: Fall 2014

**Instructor rating**: 3.2

**Standard deviation in instructor rating**: 0.0

**Average grade** (4.0 scale): 3.51

**Standard deviation in grades** (4.0 scale): 0.0

**Average workload** (raw): 3.63

**Standard deviation in workload** (raw): 0.0

#### OPIM 3100: Business Intelligence

**Terms taught**: Fall 2009, Fall 2010

**Instructor rating**: 5.47

**Standard deviation in instructor rating**: 0.07

**Average grade** (4.0 scale): 2.72

**Standard deviation in grades** (4.0 scale): 0.0

**Average workload** (raw): 3.56

**Standard deviation in workload** (raw): 0.17

#### SYST 3100: BUSINESS INTELLIGENCE

**Terms taught**: Fall 2006, Spring 2007, Spring 2007, Fall 2007, Fall 2008

**Instructor rating**: 5.18

**Standard deviation in instructor rating**: 0.45

**Average grade** (4.0 scale): 2.89

**Standard deviation in grades** (4.0 scale): 0.34

**Average workload** (raw): 3.54

**Standard deviation in workload** (raw): 0.43


text:
module Line
  module Bot
    module API
      DEFAULT_ENDPOINT = "https://api.line.me/v2/bot"
    end
  end
end


text:
//// Description: Entity Framework Bulk Operations & Utilities (EF Bulk SaveChanges, Insert, Update, Delete, Merge | LINQ Query Cache, Deferred, Filter, IncludeFilter, IncludeOptimize | Audit)
//// Website & Documentation: https://github.com/zzzprojects/Entity-Framework-Plus
//// Forum & Issues: https://github.com/zzzprojects/EntityFramework-Plus/issues
//// License: https://github.com/zzzprojects/EntityFramework-Plus/blob/master/LICENSE
//// More projects: http://www.zzzprojects.com/
//// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.

//#if FULL || BATCH_DELETE || BATCH_UPDATE
//#if EF5 || EF6
//using System;
//using System.Linq;
//using Z.EF.Plus.BatchUpdate.Shared.Extensions;
//using Z.EntityFramework.Plus.Internal.Core.SchemaObjectModel;

//namespace Z.EntityFramework.Plus.Internal
//{
//    internal static partial class Model
//    {
//		internal static void BuildSchema(Schema schema, bool isStorage = false)
//		{
//			// Index Schema
//			SchemaAddIndex(schema);

//			BuildSchema_EntityType(schema, isStorage);
//			BuildSchema_EntitySet(schema, isStorage);
//		}

//		internal static void BuildSchema_EntityType(Schema schema, bool isStorage = false)
//		{
//			schema.EntityTypes.ForEach(x =>
//			{
//				// SET Parent
//				x.Properties.ForEach(y => y.ParentEntity = x);
//				x.Properties.ForEach(y => y.IsComputed = y.StoreGeneratedPattern == "Computed");
//				x.Properties.ForEach(y => y.IsConcurrency = y.ConcurrencyMode == "Fixed");

//				// SET Primary Key
//				if (x.Key != null)
//				{
//					x.Key.PropertyRefs.ForEach(y => y.Property = x.Index_Properties_Name[y.Name]);
//					x.Key.PropertyRefs.ForEach(y => y.Property.IsPrimaryKey = true);
//				}

//				// SET Base Type
//				if (!string.IsNullOrEmpty(x.BaseTypeName))
//				{
//					var typeName = x.BaseTypeName.SubstringLastIndexOf(".");
//					var baseType = schema.Index_EntityTypes_Name[typeName];
//					x.BaseType = baseType;
//				}
//			});
//		}

//		internal static void BuildSchema_EntitySet(Schema schema, bool isStorage = false)
//		{
//			// SET Entity Type
//			schema.EntityContainer.EntitySets.ForEach(x =>
//			{
//				var typeName = x.EntityTypeName.SubstringLastIndexOf(".");
//				var entityType = schema.Index_EntityTypes_Name[typeName];
//				x.EntityType = entityType;
//				entityType.EntitySet = x;
//			});

//			// Database First doesn't map by default the table name because it's always equal to the entity set.
//			if (isStorage)
//			{
//				schema.EntityContainer.EntitySets.ForEach(x => { x.Table = string.IsNullOrEmpty(x.Table) ? x.Name : x.Table; });
//			}
//		}
//	}
//}

//#endif
//#endif


text:
/**
 * @module ngeo.datasource.File
 */
import ngeoDatasourceDataSource from 'ngeo/datasource/DataSource.js';
import olCollection from 'ol/Collection.js';
import olLayerVector from 'ol/layer/Vector.js';
import olSourceVector from 'ol/source/Vector.js';

const exports = class extends ngeoDatasourceDataSource {

  /**
   * A data source that contains vector features that were loaded from a file.
   *
   * @struct
   * @param {ngeox.datasource.FileOptions} options Options.
   */
  constructor(options) {

    super(options);

    // === STATIC properties (i.e. that never change) ===

    /**
     * @type {!ol.Collection.<!ol.Feature>}
     * @private
     */
    this.featuresCollection_ = options.features || new olCollection();

    /**
     * @type {!ol.source.Vector}
     * @private
     */
    this.source_ = new olSourceVector({
      features: this.featuresCollection_,
      wrapX: false
    });

    /**
     * @type {!ol.layer.Vector}
     * @private
     */
    this.layer_ = new olLayerVector({
      source: this.source_
    });
  }

  // ========================================
  // === Dynamic property getters/setters ===
  // ========================================

  /**
   * @return {!Array.<!ol.Feature>} Features
   * @export
   */
  get features() {
    return this.featuresCollection_.getArray();
  }

  // =======================================
  // === Static property getters/setters ===
  // =======================================

  /**
   * @return {!ol.Collection.<!ol.Feature>} Features collection
   * @export
   */
  get featuresCollection() {
    return this.featuresCollection_;
  }

  /**
   * @return {!ol.layer.Vector} Vector layer.
   * @export
   */
  get layer() {
    return this.layer_;
  }

  // ===================================
  // === Calculated property getters ===
  // ===================================

  /**
   * @return {ol.Extent} Extent.
   * @export
   */
  get extent() {
    return this.source_.getExtent();
  }
};

export default exports;


text:
'use strict'

const api = module.exports = require('express').Router()

api
  .use('/auth', require('./auth'))
  .use('/users', require('./users'))
  .use('/orders', require('./orders'))
  .use('/products', require('./products'))
  .use('/categories', require('./categories'))

// No routes matched? 404.
api.use((req, res) => res.status(404).end())


text:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
    <name>ethernetconfig</name>
    <message>
        <source>Network Configuration</source>
        <translation>Konfigurasi Jaringan</translation>
    </message>
    <message>
        <source>&OK</source>
        <translation>&OK</translation>
    </message>
    <message>
        <source>Alt+O</source>
        <translation>Alt+O</translation>
    </message>
    <message>
        <source>&Apply</source>
        <translation>&Terapkan</translation>
    </message>
    <message>
        <source>Alt+A</source>
        <translation>Alt+T</translation>
    </message>
    <message>
        <source>&Close</source>
        <translation>&Tutup</translation>
    </message>
    <message>
        <source>Alt+C</source>
        <translation>Alt+T</translation>
    </message>
    <message>
        <source>Disable this networ&k device</source>
        <translation>NonAktifkan perang&kat jaringan ini</translation>
    </message>
    <message>
        <source>Alt+K</source>
        <translation>Alt+K</translation>
    </message>
    <message>
        <source>&General</source>
        <translation>&Umum</translation>
    </message>
    <message>
        <source>Alt+Y</source>
        <translation>Alt+S</translation>
    </message>
    <message>
        <source>Network address configuration</source>
        <translation>Konfigurasi alamat jaringan</translation>
    </message>
    <message>
        <source>Assign static IP address</source>
        <translation>Menetapkan alamat IP statis</translation>
    </message>
    <message>
        <source>Netmask:</source>
        <translation>Netmask:</translation>
    </message>
    <message>
        <source>IP:</source>
        <translation>IP:</translation>
    </message>
    <message>
        <source>999\.999\.999\.999; </source>
        <translation>999\.999\.999\.999; </translation>
    </message>
    <message>
        <source>Advanced</source>
        <translation>Tingkat Lanjut</translation>
    </message>
    <message>
        <source>Use hardware defau&lt MAC address</source>
        <translation>Gunakan a&lamat MAC bawaan perangkat keras</translation>
    </message>
    <message>
        <source>Alt+L</source>
        <translation>Alt+L</translation>
    </message>
    <message>
        <source>Custom MAC address</source>
        <translation>Ubah alamat MAC</translation>
    </message>
    <message>
        <source>IPv6 static address</source>
        <translation>Alamat statis IPv6</translation>
    </message>
    <message>
        <source>Address:</source>
        <translation>Alamat:</translation>
    </message>
    <message>
        <source>Obtain IPv6 address automaticall&y</source>
        <translation>Peroleh alamat IPv6 secara otomati&s</translation>
    </message>
    <message>
        <source>I&nfo</source>
        <translation>Info</translation>
    </message>
    <message>
        <source>Configuration info</source>
        <translation>Info konfigurasi</translation>
    </message>
    <message>
        <source>Gateway:</source>
        <translation>Gateway:</translation>
    </message>
    <message>
        <source>IPv6:</source>
        <translation>IPv6:</translation>
    </message>
    <message>
        <source>Mac:</source>
        <translation>Mac:</translation>
    </message>
    <message>
        <source>Media:</source>
        <translation>Media:</translation>
    </message>
    <message>
        <source>Status:</source>
        <translation>Status:</translation>
    </message>
    <message>
        <source>Traffic info</source>
        <translation>Info Trafik</translation>
    </message>
    <message>
        <source>Packets:</source>
        <translation>Paket:</translation>
    </message>
    <message>
        <source>Errors:</source>
        <translation>Kesalahan:</translation>
    </message>
    <message>
        <source>In:</source>
        <translation>Masuk:</translation>
    </message>
    <message>
        <source>Out:</source>
        <translation>Keluar:</translation>
    </message>
    <message>
        <source>Missing Fields</source>
        <translation>Isian yang hilang</translation>
    </message>
    <message>
        <source>You must enter an IP and Netmask to continue!
</source>
        <translation>Anda harus memasukkan IP dan Netmask untuk melanjutkan!
</translation>
    </message>
    <message>
        <source>Warning</source>
        <translation>Peringatan</translation>
    </message>
    <message>
        <source>IP Address is out of range! (</source>
        <translation>Alamat IP di luar jangkauan! (</translation>
    </message>
    <message>
        <source>) Fields must be between 0-255.</source>
        <translation>) Isian harus diantara 0-255.</translation>
    </message>
    <message>
        <source>Netmask is out of range! (</source>
        <translation>Netmask diluar jangkauan! (</translation>
    </message>
    <message>
        <source>configuration</source>
        <translation>konfigurasi</translation>
    </message>
    <message>
        <source>Enable WPA authentication</source>
        <translation>Membolehkan keaslian WPA</translation>
    </message>
    <message>
        <source>Configure &WPA</source>
        <translation>Konfigurasikan WPA</translation>
    </message>
</context>
</TS>


text:
{{carData.brand}} {{carData.model}}

FUEL: {{carData.fuelType}}

KMs RUN: {{carData.km}} Kms

AC Car: {{carData.ac}}

Car Color: {{carData.carColor}}

Security Deposit: {{carData.security}}

Per Day Price(INR) : {{carData.rentPerDay}}


text:
This section describes the networking features, which allow communication over
[HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol)
and RPC ([Remote procedure call](https://en.wikipedia.org/wiki/Remote_procedure_call))
protocols. You can also advertise and discover
[Services](https://en.wikipedia.org/wiki/Service_discovery) on your local network.

## Overview

These are the units you can embed into your application:

  * `gopi.Server` A HTTP or RPC server which can serve requests;
  * `gopi.ConnPool` A pool of connections to remote servers;
  * `gopi.ServiceDiscovery` A mechanism to either discovery available network services or register services;
  * `gopi.PingService` An RPC service which responds to requests with an empty response;
  * `gopi.InputService` As RPC service which emits input events (key presses, etc.);
  * `gopi.HttpStatic` A HTTP service which serves any file or folder on the filesystem.

These are examples you can look at which demonstate the features:

  * (`rpcping`)[https://github.com/djthorpe/gopi/tree/master/cmd/rpcping] is both a RPC client and server,
    demonstrating the ping service.
  * (`hellohttp`)[https://github.com/djthorpe/gopi/tree/master/cmd/hellohttp] is a HTTP server which can
    serve static files.


text:
<?php

	Class Configuration{

		private $_properties = array();
		private $_forceLowerCase = false;

		public function __construct($forceLowerCase=false){
			$this->_forceLowerCase = $forceLowerCase;
		}

		public function flush(){
			$this->_properties = array();
		}

		public function get($name=NULL, $index=NULL){

			## Return the whole array if no name or index is requested
			if(!$name && !$index) return $this->_properties;

			if($this->_forceLowerCase){
				$name = strtolower($name); $index = strtolower($index);
			}

			if($index){
				return (isset($this->_properties[$index][$name]) ? stripslashes($this->_properties[$index][$name]) : NULL);
			}

			return (isset($this->_properties[$name]) ? $this->_properties[$name] : NULL);
		}

		public function set($name, $val, $index=NULL){

			if($this->_forceLowerCase){
				$name = strtolower($name); $index = strtolower($index);
			}

			if($index) $this->_properties[$index][$name] = $val;
			else $this->_properties[$name] = $val;

		}

		public function remove($name, $index=NULL){

			if($this->_forceLowerCase){
				$name = strtolower($name); $index = strtolower($index);
			}

			if($index && isset($this->_properties[$index][$name]))
				unset($this->_properties[$index][$name]);

			elseif($this->_properties[$name])
				unset($this->_properties[$name]);

		}

		public function setArray(array $array){
			$this->_properties = array_merge($this->_properties, $array);
		}

		public function __toString(){

			$string = 'array(';
			foreach($this->_properties as $group => $data){
				$string .= "\r\n\r\n\r\n\t\t###### ".strtoupper($group)." ######";
				$string .= "\r\n\t\t'$group' => array(";
				foreach($data as $key => $value){
					$string .= "\r\n\t\t\t'$key' => ".(strlen($value) > 0 ? "'".addslashes($value)."'" : 'NULL').",";
				}
				$string .= "\r\n\t\t),";
				$string .= "\r\n\t\t########";
			}
			$string .= "\r\n\t)";

			return $string;
		}

	}


text:
#ifndef __IWCTL_H__
#define __IWCTL_H__

#include "device.h"

struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev);

int iwctl_siwap(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwrange(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwmode(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwmode(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwfreq(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwfreq(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwname(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwsens(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwap(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwaplist(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwessid(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwessid(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwrate(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwrate(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwrts(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwrts(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwfrag(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwfrag(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwretry(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwretry(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwencode(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwencode(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwpower(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwpower(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwscan(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwscan(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwauth(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwauth(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwgenie(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwgenie(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwencodeext(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_giwencodeext(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

int iwctl_siwmlme(struct net_device *dev, struct iw_request_info *info,
		union iwreq_data *wrqu, char *extra);

extern const struct iw_handler_def iwctl_handler_def;
extern const struct iw_priv_args iwctl_priv_args;

#endif /* __IWCTL_H__ */


text:
package com.amazonaws.services.storagegateway.model.transform;

import java.math.*;

import javax.annotation.Generated;

import com.amazonaws.services.storagegateway.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;

import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;

/**
 * CacheAttributes JSON Unmarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CacheAttributesJsonUnmarshaller implements Unmarshaller<CacheAttributes, JsonUnmarshallerContext> {

    public CacheAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {
        CacheAttributes cacheAttributes = new CacheAttributes();

        int originalDepth = context.getCurrentDepth();
        String currentParentElement = context.getCurrentParentElement();
        int targetDepth = originalDepth + 1;

        JsonToken token = context.getCurrentToken();
        if (token == null)
            token = context.nextToken();
        if (token == VALUE_NULL) {
            return null;
        }

        while (true) {
            if (token == null)
                break;

            if (token == FIELD_NAME || token == START_OBJECT) {
                if (context.testExpression("CacheStaleTimeoutInSeconds", targetDepth)) {
                    context.nextToken();
                    cacheAttributes.setCacheStaleTimeoutInSeconds(context.getUnmarshaller(Integer.class).unmarshall(context));
                }
            } else if (token == END_ARRAY || token == END_OBJECT) {
                if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
                    if (context.getCurrentDepth() <= originalDepth)
                        break;
                }
            }
            token = context.nextToken();
        }

        return cacheAttributes;
    }

    private static CacheAttributesJsonUnmarshaller instance;

    public static CacheAttributesJsonUnmarshaller getInstance() {
        if (instance == null)
            instance = new CacheAttributesJsonUnmarshaller();
        return instance;
    }
}