text:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="account_analytic_account_form_form" model="ir.ui.view">
            <field name="name">account.analytic.account.invoice.form</field>
            <field name="model">account.analytic.account</field>
            <field name="priority">30</field>
            <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
            <field name="arch" type="xml">
                <xpath expr='//separator[@name="description"]' position='before'>
                    <group string="Invoice on Timesheets Options" name="invoice_on_timesheets" col="4">
                        <field name="pricelist_id" groups="product.group_sale_pricelist"/>
                        <field name="to_invoice"/>
                    </group>
                 </xpath>
                <xpath expr="//field[@name='use_timesheets']" position="replace">
                    <field name="use_timesheets"/>
                </xpath>
                <xpath expr="/form/sheet" position='before'>

                        <button name="set_pending" string="Pending" type="object" states="open" />
                        <button name="set_close" string="Contract Finished" type="object" states="open,pending" />
                        <button name="set_open" string="Re-open project" type="object" states="pending,close" />
                        <button name="set_open" string="Re-open project" type="object" states="cancelled,draft"/>
                        <button name="set_cancel" string="Cancel Contract" type="object" states="open,pending"/>
                        <field name="state" readonly="1" widget="statusbar"
                            statusbar_visible="open,pending,close" statusbar_colors='{"pending":"red", "template":"blue"}'/>

                </xpath>
            </field>
        </record>

        <record id="hr_timesheet_line_form" model="ir.ui.view">
            <field name="name">hr.analytic.timesheet.form</field>
            <field name="model">hr.analytic.timesheet</field>
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
            <field name="arch" type="xml">
                <xpath expr="//group[@string='Accounting']" position='after'>
                    <group string="Invoicing">
                        <field name="to_invoice"/>
                        <field name="invoice_id"/>
                    </group>
                </xpath>
            </field>
        </record>

        <record id="hr_timesheet_line_form2" model="ir.ui.view">
            <field name="name">hr.analytic.timesheet.form2</field>
            <field name="model">hr.analytic.timesheet</field>
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form"/>
            <field name="arch" type="xml">
                <field name="account_id" position="replace">
                    <field domain="[('type','in',['normal','contract']),('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id)" context="{'default_use_timesheets': 1}"/>
                </field>
            </field>
        </record>

        <record id="hr_timesheet_line_tree" model="ir.ui.view">
            <field name="name">hr.analytic.timesheet.tree</field>
            <field name="model">hr.analytic.timesheet</field>
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
            <field name="arch" type="xml">
                <field name="amount" position="after">
                    <field name="to_invoice"/>
                </field>
            </field>
        </record>

        <record id="hr_timesheet_line_tree2" model="ir.ui.view">
            <field name="name">hr.analytic.timesheet.tree2</field>
            <field name="model">hr.analytic.timesheet</field>
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
            <field name="arch" type="xml">
                <field name="account_id" position="replace">
                    <field domain="[('type','in',['normal','contract']),('state', '<>', 'close'),('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id)" context="{'default_use_timesheets': 1}"/>
                </field>
            </field>
        </record>

        <record id="view_account_analytic_line_search_inherit" model="ir.ui.view">
            <field name="name">account.analytic.line.search.to_invoice</field>
            <field name="model">account.analytic.line</field>
            <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
            <field name="arch" type="xml">
                <xpath expr="//filter[@name='others']" position="after">
                    <separator/>
                    <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
                    <filter name="invoiced" string="Invoiced" domain="[('invoice_id','!=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
                </xpath>
            </field>
        </record>

        <record id="view_hr_timesheet_line_search_to_invoice" model="ir.ui.view">
            <field name="name">hr.analytic.timesheet.search.to_invoice</field>
            <field name="model">hr.analytic.timesheet</field>
            <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_search"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='account_id']" position="after">
                    <separator/>
                    <filter name="to_invoice" string="To Invoice" context="{'to_invoice': 1}" domain="[('invoice_id','=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
                    <filter name="invoiced" string="Invoiced" domain="[('invoice_id','!=',False), ('to_invoice','<>',False)]" icon="terp-dolar"/>
                </xpath>
            </field>
        </record>

        <record id="view_account_analytic_line_tree_inherit" model="ir.ui.view">
            <field name="name">account.analytic.line.tree.to_invoice</field>
            <field name="model">account.analytic.line</field>
            <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
            <field name="arch" type="xml">
                <field name="account_id" position="after">
                    <field name="to_invoice"/>
                </field>
            </field>
        </record>
          <record id="view_account_analytic_line_form_inherit" model="ir.ui.view">
            <field name="name">account.analytic.line.form.to_invoice</field>
            <field name="model">account.analytic.line</field>
            <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
            <field name="arch" type="xml">
                <field name="amount" position="before">
                    <field name="to_invoice"/>
                    <field name="invoice_id"/>
                </field>
            </field>
        </record>

        <record id="view_hr_timesheet_invoice_factor_search" model="ir.ui.view">
            <field name="name">hr_timesheet_invoice.factor.search</field>
            <field name="model">hr_timesheet_invoice.factor</field>
            <field name="arch" type="xml">
                <search string="Type of invoicing">
                    <field name="name" string="Type of invoicing"/>
                </search>
            </field>
        </record>
        <record id="view_hr_timesheet_invoice_factor_form" model="ir.ui.view">
            <field name="name">hr_timesheet_invoice.factor.form</field>
            <field name="model">hr_timesheet_invoice.factor</field>
            <field name="arch" type="xml">
                <form string="Type of invoicing" version="7.0">
                    <group col="4">
                        <field name="name"/>
                        <field name="customer_name"/>
                        <field name="factor"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="view_hr_timesheet_invoice_factor_tree" model="ir.ui.view">
            <field name="name">hr_timesheet_invoice.factor.tree</field>
            <field name="model">hr_timesheet_invoice.factor</field>
            <field name="arch" type="xml">
                <tree string="Types of invoicing">
                    <field name="name"/>
                    <field name="customer_name"/>
                    <field name="factor"/>
                </tree>
            </field>
        </record>
        <record id="action_hr_timesheet_invoice_factor_form" model="ir.actions.act_window">
            <field name="name">Types of Invoicing</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hr_timesheet_invoice.factor</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_hr_timesheet_invoice_factor_tree"/>
            <field name="search_view_id" ref="view_hr_timesheet_invoice_factor_search"/>
            <field name="help" type="html">

                Click to add a new type of invoicing.

                OpenERP allows you to create default invoicing types. You might
                have to regularly assign discounts because of a specific
                contract or agreement with a customer. From this menu, you can
                create additional types of invoicing to speed up your
                invoicing.

            </field>
        </record>
        <menuitem
            action="action_hr_timesheet_invoice_factor_form"
            id="hr_timesheet_invoice_factor_view"
            parent="account.menu_configuration_misc" sequence="25" groups="base.group_no_one"/>

    </data>
</openerp>

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Celtric\Fixtures\FixtureTypes;

use Celtric\Fixtures\FixtureDefinition;

final class ObjectFixture implements FixtureDefinition
{
    /** @var string */
    private $className;

    /** @var FixtureDefinition[] */
    private $properties;

    /**
     * @param string $className
     * @param FixtureDefinition[] $properties
     */
    public function __construct($className, array $properties)
    {
        $this->className = $className;
        $this->properties = $properties;
    }

    /**
     * @inheritDoc
     */
    public function instantiate()
    {
        $hasConstructor = array_key_exists("__construct", $this->properties);

        if ($hasConstructor) {
            $instance = (new \ReflectionClass($this->className))->newInstance($this->properties["__construct"]);
        } else {
            $instance = (new \ReflectionClass($this->className))->newInstanceWithoutConstructor();
        }

        foreach ($this->properties as $key => $value) {
            $isConstructor = $key === "__construct";

            if ($isConstructor) {
                continue;
            }

            $isMethodCall = method_exists($instance, $key);

            if ($isMethodCall) {
                $arguments = $value->instantiate();
                call_user_func_array([$instance, $key], $arguments);
                continue;
            }

            $reflectedProperty = new \ReflectionProperty($instance, $key);
            $reflectedProperty->setAccessible(true);
            $reflectedProperty->setValue($instance, $value->instantiate());
        }

        return $instance;
    }
}


text:
{-# LANGUAGE OverloadedStrings #-}

-- | Visualize a sparse adjacency matrix.
module Web.Lightning.Plots.Adjacency
  (
    AdjacencyPlot(..)
  , Visualization (..)
  , adjacencyPlot
  )
  where

--------------------------------------------------------------------------------
import           Control.Monad.Reader

import           Data.Aeson
import           Data.Default.Class
import qualified Data.Text                         as T

import qualified Web.Lightning.Routes              as R
import           Web.Lightning.Types.Lightning
import           Web.Lightning.Types.Visualization (Visualization (..))
import           Web.Lightning.Utilities
--------------------------------------------------------------------------------

-- | Adjacency plot parameters
data AdjacencyPlot =
  AdjacencyPlot { apConn      :: [[Double]]
                  -- ^ Matrix that defines the connectivity of the plot. The
                  -- dimensions of the matrix can be (n, n), (n, 2) or (n, 3).
                  -- Matrix can be binary or continuous valued. Links should
                  -- contain either 2 elements per link (source, target) or
                  -- 3 elements (source, target, value).
                , apLabels    :: Maybe [T.Text]
                  -- ^ Text labels for each item (will label rows and columns).
                , apGroup     :: Maybe [Int]
                  -- ^ List to set colors via groups.
                , apSort      :: Maybe T.Text
                  -- ^ What to sort by; options are "group" or "degree."
                , apNumbers   :: Maybe Bool
                  -- ^ Whether or not to show numbers on cells.
                , apSymmetric :: Maybe Bool
                  -- ^ Whether or not to make links symetrical.
                }
  deriving (Show, Eq)

instance Default AdjacencyPlot where
  def = AdjacencyPlot [[]] Nothing Nothing (Just "group") (Just False) (Just True)

instance ToJSON AdjacencyPlot where
  toJSON (AdjacencyPlot conn lbs grps srt nbrs sym) =
    omitNulls [ "links"     .= getLinks conn
              , "nodes"     .= getNodes conn
              , "labels"    .= lbs
              , "group"     .= grps
              , "numbers"   .= nbrs
              , "symmetric" .= sym
              , "srt"       .= srt
              ]

instance ValidatablePlot AdjacencyPlot where
  validatePlot (AdjacencyPlot conn lbls grp srt nbrs sym) = do
    conn' <- validateConn conn
    return $ AdjacencyPlot conn' lbls grp srt nbrs sym

-- | Submits a request to the specified lightning-viz server to create
-- a sparse adjacency matrix visualiazation.
--
-- <http://lightning-viz.org/visualizations/adjacency/ Adjacency Visualization>
adjacencyPlot :: Monad m => AdjacencyPlot
                            -- ^ Adjacency plot to create.
                         -> LightningT m Visualization
                            -- ^ Transformer stack with created visualization.
adjacencyPlot adjPlt = do
  url <- ask
  viz <- sendPlot "adjacency" adjPlt R.plot
  return $ viz { vizBaseUrl = Just url }


text:
<?php

namespace IndigoTree\BootstrapNavWalker\Four;

use IndigoTree\BootstrapNavWalker\BaseWalkerNavMenu;

class WalkerNavMenu extends BaseWalkerNavMenu
{
    /**
     * HTML tag to use for dropdown menus
     *
     * @var string
     */
    protected $dropdown_tag = 'div';

    /**
     * Ends the list of after the elements are added.
     *
     * @since 3.0.0
     * @see Walker::end_lvl()
     *
     * @param string   $output Passed by reference. Used to append additional content.
     * @param int      $depth  Depth of menu item. Used for padding.
     * @param stdClass $args   An object of wp_nav_menu() arguments.
     */
    public function end_lvl(&$output, $depth = 0, $args = [])
    {
        if (isset($args->item_spacing) && 'discard' === $args->item_spacing) {
            $t = $n = '';
        } else {
            $t = "\t";
            $n = "\n";
        }

        $indent = str_repeat($t, $depth);
        $output .= "{$indent}
{$n}";
    }

    /**
     * Starts the element output.
     *
     * @since 3.0.0
     * @see Walker::start_el()
     *
     * @param string   $output Passed by reference. Used to append additional content.
     * @param WP_Post  $item   Menu item data object.
     * @param int      $depth  Depth of menu item. Used for padding.
     * @param stdClass $args   An object of wp_nav_menu() arguments.
     * @param int      $id     Current item ID.
     */
    public function start_el(&$output, $item, $depth = 0, $args = [], $id = 0)
    {
        $t = isset($args->item_spacing) && 'discard' === $args->item_spacing ? '' : "\t";

        $indent = $depth ? str_repeat($t, $depth) : '';

        $classes = empty($item->classes) ? [] : (array) $item->classes;
        $classes[] = 'nav-item';

        if ($args->has_children) {
            $classes[] = 'dropdown';
        }

        if (in_array('current-menu-item', $classes)) {
            $classes[] = 'active';
        }

        $class_names = join(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item, $args, $depth));
        $class_names = $class_names ? ' class="'.esc_attr($class_names).'"' : '';

        $id = apply_filters('nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args, $depth);
        $id = $id ? ' id="'.esc_attr($id).'"' : '';

        if (0 === $depth) {
            $output .= $indent.'
';
        } else {
            $output .= $indent;
        }

        $atts = [];
        $atts['title']  = !empty($item->title)   ? $item->title  : '';
        $atts['target'] = !empty($item->target)  ? $item->target : '';
        $atts['rel']    = !empty($item->xfn)     ? $item->xfn    : '';
        $atts['class'] = 'nav-link';

        if ($args->has_children && 0 === $depth && $args->depth > 1) {
            $atts['href']           = '#';
            $atts['data-toggle']    = 'dropdown';
            $atts['class']         .= ' dropdown-toggle';
            $atts['aria-haspopup']  = 'true';
            $atts['aria-expanded']  = 'false';
        } else {
            if (1 === $depth) {
                $atts['class'] = 'dropdown-item';
            }
            $atts['href'] = !empty($item->url) ? $item->url : '';
        }

        $atts = apply_filters('nav_menu_link_attributes', $atts, $item, $args, $depth);
        $attributes = $this->combineAttributes($atts);

        $title = apply_filters('the_title', $item->title, $item->ID);
        $title = apply_filters('nav_menu_item_title', $title, $item, $args, $depth);

        $item_output = $args->before;
        $item_output .= '';
        $item_output .= $args->link_before.$title.$args->link_after;
        $item_output .= '';
        $item_output .= $args->after;

        $output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args);
    }

    /**
     * Ends the element output, if needed.
     *
     * @since 3.0.0
     * @see Walker::end_el()
     *
     * @param string   $output Passed by reference. Used to append additional content.
     * @param WP_Post  $item   Page data object. Not used.
     * @param int      $depth  Depth of page. Not Used.
     * @param stdClass $args   An object of wp_nav_menu() arguments.
     */
    public function end_el(&$output, $item, $depth = 0, $args = [])
    {
        if (isset($args->item_spacing) && 'discard' === $args->item_spacing) {
            $t = $n = '';
        } else {
            $t = "\t";
            $n = "\n";
        }

        $output .= 0 === $depth ? "
{$n}" : "{$n}";
    }
}


text:
module Notaru
  module Plugin
    # A note:
    #
    # Quiets are not present on every network, but the bot does still support setting them regardless,
    # and assumes competent channel moderation. In addition, on networks where it means 'owner', the bot
    # generally does not have sufficient permissions to set the mode regardless.
    #
    # Commands are triggered through STATUSMSG (/notice @#channel !k [host/nick]), not every network supports this.
    class SecretAdmin
      def initialize(*args)
        super

        prefix = @bot.config.plugins.prefix
        # Due to priority, avoid conflicts - longer strings should come first.
        @match_regexp = Regexp.new(
          "#{prefix}(kick|kickban|ban|unban|quiet|unquiet|kb|ub|uq|k|q|b)(?: ([^ ]+))?(?: (.*))?"
        )
        @match_map = {
          kick: %i(k kick),
          ban: %i(b ban),
          kickban: %i(kb kickban),
          quiet: %i(q quiet),
          unban: %i(ub unban),
          unquiet: %i(uq unquiet)
        }
      end

      include Cinch::Plugin

      listen_to :message, method: :on_message
      listen_to :notice, method: :on_message

      def on_message(m)
        if m.channel && m.statusmsg_mode == 'o' && m.channel.opped?(m.user)
          match = @match_regexp.match(m.message)

          if match
            name = match_name_to_s(match[1])

            if %i(kick kickban ban quiet unban unquiet).include?(name)
              unless m.channel.opped?(@bot.nick)
                m.reply("I need to be opped in the channel to perform any administrative actions (like '#{name}')")
                return
              end

              action_admin_generic(m, match, name)
            end
          end
        end
      end

      # @param [Message] m
      # @param [MatchData] match with 0=full_match; 1=name_short; 2=target; 3=optional_reason
      # @param [String] name
      def action_admin_generic(m, match, name)
        if match.length <= 2 || match[2].nil? || match[2].empty?
          m.reply("Error: Action '#{name}' requires secondary parameter 'nick'" + (name != :kick ? " or 'host'" : ''))
          return
        end

        chars = match[2].split('')

        if chars.include?('@') || chars.include?('!')
          user = nil
        else
          begin
            user = User(match[2])
          rescue StandardError => e
            m.reply("Aborting due to error when finding user [#{match[2]}]: #{e}")
            return
          end
        end

        if user && !user.nil?
          if m.channel.opped?(user)
            m.reply("Error: Action '#{name}' cannot be executed on channel staff.")
            return
          end

          begin
            mask = user.mask('*!*@%h')
          rescue NoMethodError
            m.reply("Warning: User hostmask not found, if you want to #{name} a mask use '#{match[2]}!*@*' instead")
            return
          end
        else

          if name == :kick || (!chars.include?('!') && !chars.include?('@'))
            m.reply("Error: Action '#{name}' - secondary parameter '#{match[2]}' not found")
            return
          end

          mask = match[2]
        end

        m.channel.ban(mask) if name == :kickban || name == :ban
        m.channel.unban(mask) if name == :unban
        m.channel.mode("+q #{mask}") if name == :quiet
        m.channel.mode("-q #{mask}") if name == :unquiet

        reason = match.length > 3 ? match[3] : nil
        if %i(kick kickban).include?(name)
          if reason.nil? || reason.empty?
            m.channel.kick(user, 'Your behaviour is not conducive to the desired environment.')
          else
            m.channel.kick(user, reason)
          end
        end
      end

      # @param [String] name
      # @return [Symbol, nil]
      def match_name_to_s(name)
        name = name.downcase.to_sym

        @match_map.each do |k, v|
          return k if v.include?(name)
        end

        nil
      end
    end
  end
end


text:
layout: page
title: "Jaime Suzanne Duggan"
comments: true
description: "blanks"
keywords: "Jaime Suzanne Duggan,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**: College of Arts and Sciences

**Classes taught**: DNCE 1000

#### DNCE 1000: Beginning Technique

**Terms taught**: Fall 2010, Spring 2012, Fall 2012

**Instructor rating**: 3.5

**Standard deviation in instructor rating**: 0.04

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

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

**Average workload** (raw): 1.66

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


text:
<?php

/**
 * Hoa_Filter_Abstract
 */
import('Filter.Abstract');

/**
 * Class Hoa_Filter_Blank.
 *
 * Apply a blank filter.
 *
 * @author      Ivan Enderlin <ivan.enderlin@hoa-project.net>
 * @copyright   Copyright © 2007-2014 Ivan Enderlin.
 * @license     New BSD License
 * @since       PHP 5
 * @version     0.1
 * @package     Hoa_Filter
 * @subpackage  Hoa_Filter_Blank
 */

class Hoa_Filter_Blank extends Hoa_Filter_Abstract {

    /**
     * Apply a blank filter.
     *
     * @access  public
     * @param   string  $string    The string to filter.
     * @return  string
     */
    public function filter ( $string = null ) {

        return preg_replace('#[^[:blank:]]#', '', (string) $string);
    }
}


text:
\section{Modeling}
A model is a mathematical representation of a system that is determined by applying physical laws to a system and producing an equation.  The purpose of a model is to cut costs on the design because it is much less expensive to analyze an equation rather than a physical through trial and error.

An analytical model is created by determining the inputs and outputs of the system, which would include any type of signals going into the generator system and the effects the input has on the load.  Then, equations are developed based on known equations that represent the system.  Next, a transfer function is formed using the Laplace transform of the output of the system over the input.  This process is repeated for every input and output of the system.  From this model, critical system characteristics such as stability, accuracy, and speed can be optimized.  It is a good start seeing if a model will work in the real world with the transfer function \cite{analysis}.

An experimental model can be determined by collecting data output from a unit step input. This method produces more stable results because analytical models are based on ideal characteristics that are not entirely accurate for a real system. However, an experimental model has a higher cost due to expenses incurred for an accurate experiment. A typical design process would be to create an analytical model first, and then determine an experimental model in order to compare both models.

To obtain an accurate model for the generator system, a sequence of step response tests was performed, starting with an excitation voltage of 0.5 V and ending with a voltage of  5.0 V with increments of 0.5 V. It was observed that excitation voltages in the range from 1.5 V to 2.5 V produced terminal voltages in the desired range of 110 V. Figure \ref{fig:test_data} shows the results of the several step response tests.

\begin{figure}[h!]
\begin{center}
\includegraphics[scale=0.9]{./img/test_results.png}
\end{center}
\caption{Results of the step response tests}
\label{fig:test_data}
\end{figure}

One can obtain a first order transfer function model from the values of \begin{math}K\end{math} and \begin{math}\tau\end{math}. The equation for this model can be seen in eqn. \eqref{eq:tf_equation}:
\begin{equation}\label{eq:tf_equation}
G(s) = \frac{K}{1+\tau s}
\end{equation}

The modeled step responses were plotted and compared to the acquired data. Figure \ref{fig:model} shows an example plot of the recorded data and the calculated model for a excitation voltage of 2 V.
\begin{figure}[h!]
\begin{center}
\includegraphics[scale=0.4]{./img/model.png}
\end{center}
\caption{Results of the step response tests}
\label{fig:model}
\end{figure}

We obtained our model by taking the arithmetic mean of the \begin{math}K\end{math} and \begin{math}\tau\end{math} values of the results of tests 3, 4, and 5. The resulting transfer function was:
\begin{equation}\label{eq:tf_model}
G(s) = \frac{52.19}{1+0.7347 s}
\end{equation}


text:
//
//  UIApplication+ZUX.h
//  ZUtilsX
//
//  Created by Char Aznable on 15/12/14.
//  Copyright © 2015年 org.cuc.n3. All rights reserved.
//

#ifndef ZUtilsX_UIApplication_ZUX_h
#define ZUtilsX_UIApplication_ZUX_h

#import <UIKit/UIKit.h>
#import "ZUXCategory.h"
#import "zobjc.h"
#import "zadapt.h"

@category_interface(UIApplication, ZUX)

+ (void)registerUserNotificationTypes:(ZUXUserNotificationType)types;
- (void)registerUserNotificationTypes:(ZUXUserNotificationType)types;
+ (void)registerUserNotificationTypes:(ZUXUserNotificationType)types
                           categories:(NSSet ZUX_GENERIC(UIUserNotificationCategory *) *)categories;
- (void)registerUserNotificationTypes:(ZUXUserNotificationType)types
                           categories:(NSSet ZUX_GENERIC(UIUserNotificationCategory *) *)categories;

+ (BOOL)notificationTypeRegisted:(ZUXUserNotificationType)type;
- (BOOL)notificationTypeRegisted:(ZUXUserNotificationType)type;

+ (BOOL)noneNotificationTypeRegisted;
- (BOOL)noneNotificationTypeRegisted;

@end

#endif /* ZUtilsX_UIApplication_ZUX_h */


text:
package io.github.jeddict.reveng.doc;

import static io.github.jeddict.jcode.util.AttributeType.STRING;
import io.github.jeddict.jcode.util.Inflector;
import static io.github.jeddict.jcode.util.StringHelper.camelCase;
import static io.github.jeddict.jcode.util.StringHelper.firstUpper;
import static io.github.jeddict.jpa.modeler.initializer.JPAModelerUtil.getModelerFileVersion;
import io.github.jeddict.jpa.spec.Entity;
import io.github.jeddict.jpa.spec.EntityMappings;
import io.github.jeddict.jpa.spec.bean.BeanClass;
import io.github.jeddict.jpa.spec.extend.JavaClass;
import java.io.IOException;
import java.io.Reader;
import java.util.Iterator;
import java.util.Stack;
import java.util.function.Consumer;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.events.Attribute;
import javax.xml.stream.events.EndElement;
import javax.xml.stream.events.StartElement;
import javax.xml.stream.events.XMLEvent;
import org.netbeans.modeler.core.exception.ProcessInterruptedException;
import org.openide.util.Exceptions;
import static org.openide.util.NbBundle.getMessage;

/**
 *
 * @author jGauravGupta
 */
public class XmlParser extends DocParser {

    public XmlParser(Consumer<String> reporter, boolean jpaSupport, boolean jsonbSupport, boolean jaxbSupport) {
        super(reporter, jpaSupport, jsonbSupport, jaxbSupport);
    }

    @Override
    public EntityMappings generateModel(EntityMappings entityMappings, Reader reader) throws IOException, ProcessInterruptedException {
        try {
            String progressMsg = getMessage(DocWizardDescriptor.class, "MSG_Progress_Class_Diagram_Pre"); //NOI18N;
            reporter.accept(progressMsg);

            String version = getModelerFileVersion();

            if (entityMappings == null) {
                entityMappings = EntityMappings.getNewInstance(version);
                entityMappings.setGenerated();
            }

            XMLEventReader xmlEventReader = parse(reader);

            JavaClass javaClass = generateClass(entityMappings, xmlEventReader, jpaSupport);
            javaClass.setXmlRootElement(jaxbSupport);
            entityMappings.setJaxbSupport(jaxbSupport);

        } catch (XMLStreamException ex) {
            Exceptions.printStackTrace(ex);
        }
        return entityMappings;
    }

    private static XMLEventReader parse(Reader reader) throws XMLStreamException {
        XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
        XMLEventReader xmlEventReader = xmlInputFactory.createXMLEventReader(reader);
        return xmlEventReader;
    }

    private JavaClass generateClass(EntityMappings entityMappings, XMLEventReader xmlEventReader, boolean entity) throws XMLStreamException {
        Inflector inflector = Inflector.getInstance();
        JavaClass rootClass = null;
        Stack<JavaClass> classes = new Stack();
        Stack<String> wrappers = new Stack(); // JAXB @XmlElementWrapper
        while (xmlEventReader.hasNext()) {
            boolean isClass = false;
            boolean isWrapper = false;
            XMLEvent xmlEvent = xmlEventReader.nextEvent();
            if (xmlEvent.isStartElement()) {
                StartElement startElement = xmlEvent.asStartElement();
                String key = startElement.getName().getLocalPart();
                XMLEvent peekEvent = xmlEventReader.peek();
                if (startElement.getAttributes().hasNext()) {
                    isClass = true;
                } else if (peekEvent.isCharacters()) {
                    if (peekEvent.asCharacters().getData().trim().isEmpty()) {
                        xmlEventReader.next();
                        if (xmlEventReader.hasNext()) {
                            peekEvent = xmlEventReader.peek();
                            if (peekEvent.isStartElement()) {
                                StartElement peekStartElement = peekEvent.asStartElement();
                                String peekKey = peekStartElement.getName().getLocalPart();
                                if (inflector.singularize(key).equalsIgnoreCase(peekKey)
                                        && !key.equalsIgnoreCase(peekKey)) {
                                    isWrapper = true;
                                } else {
                                    isClass = true;
                                }
                            }
                        }
                    } else {
                        isClass = false;
                    }
                }
                JavaClass prevClass = classes.isEmpty() ? null : classes.peek();
                if (isClass) {
                    String className = firstUpper(camelCase(key));
                    JavaClass clazz = entity ? createEntity(entityMappings, key) : createBeanClass(entityMappings, key);
                    reporter.accept(getMessage(DocWizardDescriptor.class, "MSG_Progress_Class_Parsing", className));
                    if (rootClass == null) {
                        rootClass = clazz;
                    }
                    classes.push(clazz);

                    if (startElement.getAttributes().hasNext()) {
                        Iterator attributesItr = startElement.getAttributes();
                        while (attributesItr.hasNext()) {
                            Attribute attribute = (Attribute) attributesItr.next();
                            if (entity) {
                                createBasicAttribute((Entity) clazz, STRING, attribute.getName().getLocalPart());
                            } else {
                                createBeanAttribute((BeanClass) clazz, STRING, attribute.getName().getLocalPart());
                            }
                        }
                    }

                    if (prevClass != null) {
                        if (!wrappers.isEmpty()
                                && inflector.singularize(wrappers.peek()).equalsIgnoreCase(key)) {
                            if (entity) {
                                createOneToMany((Entity) prevClass, (Entity) clazz, wrappers.peek());
                            } else {
                                createOneToManyAssociation((BeanClass) prevClass, (BeanClass) clazz, wrappers.peek());
                            }
                        } else {
                            if (entity) {
                                createOneToMany((Entity) prevClass, (Entity) clazz, key);
                            } else {
                                createOneToManyAssociation((BeanClass) prevClass, (BeanClass) clazz, key);
                            }
                        }
                    }
                } else if (isWrapper) {
                    wrappers.push(key);
                } else {
                    if(entity){
                        createBasicAttribute((Entity) prevClass, STRING, key);
                    } else {
                        createBeanAttribute((BeanClass) prevClass, STRING, key);
                    }
                }
            }
            if (xmlEvent.isEndElement()) {
                EndElement endElement = xmlEvent.asEndElement();
                String key = endElement.getName().getLocalPart();
                JavaClass prevClass = classes.isEmpty() ? null : classes.peek();
                if (prevClass != null && prevClass.getName().equals(firstUpper(camelCase(key)))) {
                    classes.pop();
                }
                String peekWrapper = wrappers.isEmpty() ? null : wrappers.peek();
                if (peekWrapper != null && peekWrapper.equalsIgnoreCase(key)) {
                    wrappers.pop();
                }
            }
        }

        return rootClass;
    }

}


text:
package net.abachar.kounach.service;

import java.util.List;

import net.abachar.kounach.entities.Beneficiary;
import net.abachar.kounach.entities.Debt;
import net.abachar.kounach.entities.Device;
import net.abachar.kounach.service.rest.RestClient;
import net.abachar.kounach.service.rest.RestException;
import net.abachar.kounach.service.rest.UnregisteredDeviceException;
import android.os.AsyncTask;

/**
 *
 */
public class SynchronizationTask extends AsyncTask<Void, Integer, Integer> {

	/**
     *
     */
	private Device mDevice;

	/**
     *
     */
    private SynchronizationService mSynchronizationService;
	private SynchronizationListener mSynchronizationListener;

	/**
	 *
	 */
	private RestClient mRestClient;

	/**
	 * Before running code in separate thread
	 */
	@Override
	protected void onPreExecute() {
		mSynchronizationListener.onStart();
	}

	/**
	 * The code to be executed in a background thread.
	 */
	@Override
	protected Integer doInBackground(Void... params) {

		try {
			// Step 1 : Welcome
			try {
                mRestClient.welcome(mDevice);
                publishProgress(1, 50);
			} catch (UnregisteredDeviceException e) {
				// Step 2 : if not registered Register
                mRestClient.registerDevice(mDevice);
			}
            publishProgress(1, 100);

			// Step 3 : Get Beneficiaries
			List<Beneficiary> beneficiaries = mRestClient.getBeneficiaries(mDevice);
			if ((beneficiaries != null) && !beneficiaries.isEmpty()) {
                mSynchronizationService.saveBeneficiaries(mDevice, beneficiaries);
			}
            publishProgress(2, 100);

			// Step 4 : Get Debts
			List<Debt> debts = mRestClient.getDebts(mDevice);
			if ((debts != null) && !debts.isEmpty()) {
                mSynchronizationService.saveDebts(mDevice, debts);
			}
            publishProgress(3, 100);

			// Step 5 : Save Beneficiaries
            beneficiaries = mSynchronizationService.getBeneficiaries(mDevice);
			List<Beneficiary> savedBeneficiaries = mRestClient.saveBeneficiaries(mDevice, beneficiaries);
            if ((savedBeneficiaries != null) && !savedBeneficiaries.isEmpty()) {
                mSynchronizationService.updateSavedBeneficiaries(mDevice, savedBeneficiaries);
            }
            publishProgress(4, 100);

			// Step 6 : Save Debts
            debts = mSynchronizationService.getDebts(mDevice);
			List<Debt> savedDebts = mRestClient.saveDebts(mDevice, debts);
            if ((savedDebts != null) && !savedDebts.isEmpty()) {
                mSynchronizationService.updateSavedDebts(mDevice, savedDebts);
            }
            publishProgress(5, 100);

		} catch (RestException e) {
		}

		return null;
	}

	/**
	 * Update the progress
	 */
	@Override
	protected void onProgressUpdate(Integer... values) {

		int step = values[0];
		int progressInStep = values[1];
        int progress = ((step - 1) * 20) + ((progressInStep * 20) / 100);

		SynchronizationProgress synchronizationProgress = new SynchronizationProgress();
        synchronizationProgress.setStep(step);
        synchronizationProgress.setProgress(progress);

		mSynchronizationListener.onProgress(synchronizationProgress);
	}

	/**
	 * After executing the code in the thread
	 */
	@Override
	protected void onPostExecute(Integer result) {
		SynchronizationProgress progress = new SynchronizationProgress();
		progress.setStep(5);
		progress.setProgress(100);
		mSynchronizationListener.onProgress(progress);

		mSynchronizationListener.onFinish();
	}

    public void setDevice(Device device) {
        this.mDevice = device;
    }

    public void setSynchronizationService(SynchronizationService synchronizationService) {
        this.mSynchronizationService = synchronizationService;
    }

    public void setSynchronizationListener(SynchronizationListener synchronizationListener) {
        this.mSynchronizationListener = synchronizationListener;
    }

    public void setRestClient(RestClient restClient) {
        this.mRestClient = restClient;
    }
}


text:
from .user import User, UserController
from .api import api
from .getter import Getter
from .sender import Sender
from .bot import Bot

assert User
assert UserController
assert Getter
assert Sender
assert Bot


text:
#ifdef CONFIG_BOARD_CRASHDUMP

#include <px4_config.h>
#include <px4_tasks.h>

#include <stdio.h>
#include <string.h>

#include <nuttx/board.h>

#include "up_internal.h"
#include <systemlib/hardfault_log.h>

static void copy_reverse(stack_word_t *dest, stack_word_t *src, int size)
{
	while (size--) {
		*dest++ = *src--;
	}
}

static uint32_t *__attribute__((noinline)) __sdata_addr(void)
{
	return &_sdata;
}

__EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint8_t *filename, int lineno)
{
#ifndef CRASHDUMP_RESET_ONLY
	/* We need a chunk of ram to save the complete context in.
	 * Since we are going to reboot we will use &_sdata
	 * which is the lowest memory and the amount we will save
	 * _should be_ below any resources we need herein.
	 * Unfortunately this is hard to test. See dead below
	 */

	fullcontext_s *pdump = (fullcontext_s *)__sdata_addr();

	(void)enter_critical_section();

	struct tcb_s *rtcb = (struct tcb_s *)tcb;

	/* Zero out everything */

	memset(pdump, 0, sizeof(fullcontext_s));

	/* Save Info */

	pdump->info.lineno = lineno;

	if (filename) {

		int offset = 0;
		unsigned int len = strlen((char *)filename) + 1;

		if (len > sizeof(pdump->info.filename)) {
			offset = len - sizeof(pdump->info.filename) ;
		}

		strncpy(pdump->info.filename, (char *)&filename[offset], sizeof(pdump->info.filename));
	}

	/* Save the value of the pointer for current_regs as debugging info.
	 * It should be NULL in case of an ASSERT and will aid in cross
	 * checking the validity of system memory at the time of the
	 * fault.
	 */

	pdump->info.current_regs = (uintptr_t) CURRENT_REGS;

	/* Save Context */

#if CONFIG_TASK_NAME_SIZE > 0
	strncpy(pdump->info.name, rtcb->name, CONFIG_TASK_NAME_SIZE);
#endif

	pdump->info.pid = rtcb->pid;

	/* If  current_regs is not NULL then we are in an interrupt context
	 * and the user context is in current_regs else we are running in
	 * the users context
	 */

	if (CURRENT_REGS) {
		pdump->info.stacks.interrupt.sp = currentsp;

		pdump->info.flags |= (eRegsPresent | eUserStackPresent | eIntStackPresent);
		memcpy(pdump->info.regs, (void *)CURRENT_REGS, sizeof(pdump->info.regs));
		pdump->info.stacks.user.sp = pdump->info.regs[REG_R13];

	} else {

		/* users context */
		pdump->info.flags |= eUserStackPresent;

		pdump->info.stacks.user.sp = currentsp;
	}

	if (pdump->info.pid == 0) {

		pdump->info.stacks.user.top = g_idle_topstack - 4;
		pdump->info.stacks.user.size = CONFIG_IDLETHREAD_STACKSIZE;

	} else {
		pdump->info.stacks.user.top = (uint32_t) rtcb->adj_stack_ptr;
		pdump->info.stacks.user.size = (uint32_t) rtcb->adj_stack_size;
	}

#if CONFIG_ARCH_INTERRUPTSTACK > 3

	/* Get the limits on the interrupt stack memory */

	pdump->info.stacks.interrupt.top = (uint32_t)&g_intstackbase;
	pdump->info.stacks.interrupt.size  = (CONFIG_ARCH_INTERRUPTSTACK & ~3);

	/* If In interrupt Context save the interrupt stack data centered
	 * about the interrupt stack pointer
	 */

	if ((pdump->info.flags & eIntStackPresent) != 0) {
		stack_word_t *ps = (stack_word_t *) pdump->info.stacks.interrupt.sp;
		copy_reverse(pdump->istack, &ps[arraySize(pdump->istack) / 2], arraySize(pdump->istack));
	}

	/* Is it Invalid? */

	if (!(pdump->info.stacks.interrupt.sp <= pdump->info.stacks.interrupt.top &&
	      pdump->info.stacks.interrupt.sp > pdump->info.stacks.interrupt.top - pdump->info.stacks.interrupt.size)) {
		pdump->info.flags |= eInvalidIntStackPrt;
	}

#endif

	/* If In interrupt context or User save the user stack data centered
	 * about the user stack pointer
	 */
	if ((pdump->info.flags & eUserStackPresent) != 0) {
		stack_word_t *ps = (stack_word_t *) pdump->info.stacks.user.sp;
		copy_reverse(pdump->ustack, &ps[arraySize(pdump->ustack) / 2], arraySize(pdump->ustack));
	}

	/* Is it Invalid? */

	if (!(pdump->info.stacks.user.sp <= pdump->info.stacks.user.top &&
	      pdump->info.stacks.user.sp > pdump->info.stacks.user.top - pdump->info.stacks.user.size)) {
		pdump->info.flags |= eInvalidUserStackPtr;
	}

	int rv = px4_savepanic(HARDFAULT_FILENO, (uint8_t *)pdump, sizeof(fullcontext_s));

	/* Test if memory got wiped because of using _sdata */

	if (rv == -ENXIO) {
		char *dead = "Memory wiped - dump not saved!";

		while (*dead) {
			up_lowputc(*dead++);
		}

	} else if (rv == -ENOSPC) {

		/* hard fault again */

		up_lowputc('!');
	}

#endif /* CRASHDUMP_RESET_ONLY */

#if defined(CONFIG_BOARD_RESET_ON_CRASH)
	board_reset(0);
#endif
}

#endif /* CONFIG_BOARD_CRASHDUMP */


text:
Cordova plugin to access the screen PPI.

Currently only supports Android & iOS.

Heavily based on Yoik's [Screen Orientation API](https://github.com/yoik/cordova-yoik-screenorientation) plugin.

__The plugin adds the following to the screen object:__

__screenPPI__
The average PPI for the screen

##Install

cordova plugin add org.tbyrne.cordova.plugins.screenppi

###Source
https://github.com/yoik/cordova-yoik-screenorientation

##Usage

    console.log( "Screen is "+(window.outerWidth / screen.screenPPI)+" inches wide" );

Pull requests welcome.


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

package com.appunite.ffmpeg;

public final class R {
    public static final class attr {
        /**
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".

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

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

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int barMinWidth=0x7f010005;
        /**
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".

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

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

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

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

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
         */
        public static int maxValue=0x7f010006;
    }
    public static final class drawable {
        public static int ic_launcher=0x7f020000;
    }
    public static final class string {
        public static int app_name=0x7f030000;
    }
    public static final class style {
        /**
        Base application theme for API 11+. This theme completely replaces
        AppBaseTheme from res/values/styles.xml on API 11+ devices.

 API 11 theme customizations can go here.

        Base application theme for API 14+. This theme completely replaces
        AppBaseTheme from BOTH res/values/styles.xml and
        res/values-v11/styles.xml on API 14+ devices.

 API 14 theme customizations can go here.
         */
        public static int AppBaseTheme=0x7f040001;
        public static int SeekerStyle=0x7f040000;
    }
    public static final class styleable {
        /** Attributes that can be used with a SeekerView.

Includes the following attributes:

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

Attribute	Description

{@link #SeekerView_barColor com.appunite.ffmpeg:barColor}

{@link #SeekerView_barMinHeight com.appunite.ffmpeg:barMinHeight}

{@link #SeekerView_barMinWidth com.appunite.ffmpeg:barMinWidth}

{@link #SeekerView_borderColor com.appunite.ffmpeg:borderColor}

{@link #SeekerView_borderPadding com.appunite.ffmpeg:borderPadding}

{@link #SeekerView_borderWidth com.appunite.ffmpeg:borderWidth}

{@link #SeekerView_currentValue com.appunite.ffmpeg:currentValue}

{@link #SeekerView_maxValue com.appunite.ffmpeg:maxValue}

           @see #SeekerView_barColor
           @see #SeekerView_barMinHeight
           @see #SeekerView_barMinWidth
           @see #SeekerView_borderColor
           @see #SeekerView_borderPadding
           @see #SeekerView_borderWidth
           @see #SeekerView_currentValue
           @see #SeekerView_maxValue
         */
        public static final int[] SeekerView = {
            0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003,
            0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007
        };
        /**

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#barColor}
          attribute's value can be found in the {@link #SeekerView} array.

Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".

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

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#barMinHeight}
          attribute's value can be found in the {@link #SeekerView} array.

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

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

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#barMinWidth}
          attribute's value can be found in the {@link #SeekerView} array.

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

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

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#borderColor}
          attribute's value can be found in the {@link #SeekerView} array.

Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".

This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
          @attr name com.appunite.ffmpeg:borderColor
        */
        public static final int SeekerView_borderColor = 0;
        /**

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#borderPadding}
          attribute's value can be found in the {@link #SeekerView} array.

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

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

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#borderWidth}
          attribute's value can be found in the {@link #SeekerView} array.

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

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

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#currentValue}
          attribute's value can be found in the {@link #SeekerView} array.

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

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

This symbol is the offset where the {@link com.appunite.ffmpeg.R.attr#maxValue}
          attribute's value can be found in the {@link #SeekerView} array.

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

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


text:
<?php

class Google_Service_CloudResourceManager_SetIamPolicyRequest extends Google_Model
{
  protected $policyType = 'Google_Service_CloudResourceManager_Policy';
  protected $policyDataType = '';

  public function setPolicy(Google_Service_CloudResourceManager_Policy $policy)
  {
    $this->policy = $policy;
  }
  public function getPolicy()
  {
    return $this->policy;
  }
}


text:
namespace eric.coreminimal.data
{
    public class Project
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public byte[] data { get; set; }
    }
}


text:
class AccountingAccountsSettingsController {
   /* @ngInject */
  constructor($firebaseObject, $stateParams, $scope) {
    var ctrl = this;
        ctrl.newKeywordIncome = newKeywordIncome
        ctrl.removeKeywordIncome =removeKeywordIncome
        ctrl.newKeywordExpense = newKeywordExpense
        ctrl.removeKeywordExpense =removeKeywordExpense

        var Settings = firebase.database().ref('/finance_accounts/'+$stateParams.account_id+'/settings')
         $firebaseObject(Settings).$bindTo($scope, "$ctrl.settings");

        function newKeywordIncome(){
          Settings.child('hide_keywords_income').push(ctrl.hide_keyword_income)
          ctrl.hide_keyword_income =''
        }
        function removeKeywordIncome(key){
          Settings.child('hide_keywords_income/'+key).remove()
        }
        function newKeywordExpense(){
          Settings.child('hide_keywords_expense').push(ctrl.hide_keyword_expense)
          ctrl.hide_keyword_expense =''
        }
        function removeKeywordExpense(key){
          Settings.child('hide_keywords_expense/'+key).remove()
        }
  }
}

export default AccountingAccountsSettingsController;


text:
package net.goldenspiral.fetlifeoss.rest.model;

import com.google.gson.annotations.SerializedName;

/**
 * Created by malachi on 8/12/15.
 */
public class NumPages
{
    @SerializedName("total_pages")
    private int totalPages;

    public int getTotalPages() {
        return totalPages;
    }
}


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Browser;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Xml.Linq;

namespace ISDotNET6_SampleCode
{
    public partial class MainPage : UserControl
    {
        private List<Category> _categoryList;
        private UserControl _control;
        private CategoryItem _item;
        private string _target;
        private ListBoxItem _targetListBoxItem;
        private string _xmlFile;

        public MainPage()
        {
            this._control = null;
            this.InitializeComponent();
            this.myStory.Begin();
        }

        public MainPage(string xmlFile)
            : this()
        {
            string url = HtmlPage.Document.DocumentUri.AbsoluteUri;
            int i = url.LastIndexOf('/');
            this._xmlFile = url.Substring(0, i) + "/" + xmlFile;
        }

        private void client_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                XDocument document = null;
                using (Stream stream = e.Result)
                {
                    document = XDocument.Load(stream);
                }
                this._categoryList = document.Root.Elements("Category").Select<XElement, Category>(delegate(XElement f)
                {
                    return new Category { Name = (string)f.Element("name"), CategoryItems = f.Elements("items").Elements<XElement>("item").Select<XElement, CategoryItem>(((Func<XElement, CategoryItem>)(o => new CategoryItem { ID = (string)o.Element("id"), XAML = (string)o.Element("xaml"), Source = (string)o.Element("source"), Code = (string)o.Element("code"), Explain = (string)o.Element("explain") }))).ToArray<CategoryItem>() };
                }).ToList<Category>();
                this.CreateList();
                this.ProcessTarget();
            }
        }

        public void copyToClipboard_Click(object sender, RoutedEventArgs e)
        {
            string text = string.Empty;
            switch (this.tabPanel.SelectedIndex)
            {
                case 1:
                    if (this.txtXaml != null)
                    {
                        if (string.IsNullOrEmpty(this.txtXaml.SelectedText))
                        {
                            //this.txtXaml.SelectAll();
                            text = this.txtXaml.SourceCode;
                        }
                        else
                        {
                            text = this.txtXaml.SelectedText;
                        }
                        break;
                    }
                    return;

                case 2:
                    if (this.txtSrc == null)
                    {
                        return;
                    }
                    if (string.IsNullOrEmpty(this.txtSrc.SelectedText))
                    {
                        //this.txtSrc.SelectAll();
                        text = this.txtSrc.SourceCode;
                    }
                    else
                    {
                        text = this.txtSrc.SelectedText;
                    }
                    break;

                case 3:
                    if (this.txtSrcExplain == null)
                    {
                        return;
                    }
                    if (string.IsNullOrEmpty(this.txtSrcExplain.SelectedText))
                    {
                        this.txtSrcExplain.SelectAll();
                    }
                    text = this.txtSrcExplain.SelectedText;
                    break;
            }
            Clipboard.SetText(text);
        }

        private void CreateList()
        {
            int count = this.ListOfSamples.Children.Count;
            foreach (Category category in this._categoryList)
            {
                Grid grid = new Grid();
                grid.Margin = new Thickness(0.0, 5.0, 0.0, 0.0);
                Rectangle rectangle = new Rectangle();
                rectangle.Fill = this.ExpanderGradient;
                rectangle.Stroke = new SolidColorBrush(Color.FromArgb(0x55, 0x00, 0x00, 0x00));
                rectangle.Margin = new Thickness(0.0);
                rectangle.RadiusX = 5.0;
                rectangle.RadiusY = 5.0;
                grid.Children.Add(rectangle);
                Expander expander = new Expander();
                expander.IsExpanded = false;
                expander.Name = string.Format("Category_{0}", count);
                expander.Foreground = new SolidColorBrush(Color.FromArgb(0xFE, 0x00, 0x00, 0x00));
                expander.Background = new SolidColorBrush(Colors.Transparent);
                expander.FontWeight = FontWeights.Bold;
                expander.FontSize = 11.0;
                expander.Header = category.Name;
                expander.Tag = count;
                expander.Cursor = Cursors.Hand;
                expander.Margin = new Thickness(4.0);
                expander.Expanded += new RoutedEventHandler(this.exp_Expanded);

                ListBox box = new ListBox();
                box.Name = string.Format("List_{0}", count);
                box.Background = new SolidColorBrush(Colors.Transparent);
                box.BorderBrush = new SolidColorBrush(Colors.Transparent);
                box.Foreground = new SolidColorBrush(Colors.Black);
                box.Margin = new Thickness(5.0, 0.0, 5.0, 5.0);
                box.FontWeight = FontWeights.Normal;
                box.ItemContainerStyle = this.SDKListBoxtItemStyle;
                int num2 = 0;
                foreach (CategoryItem item in category.CategoryItems)
                {
                    StackPanel panel = new StackPanel();
                    panel.Orientation = Orientation.Horizontal;
                    TextBlock block = new TextBlock();
                    block.FontSize = 11.0;
                    block.Text = item.ID;
                    panel.Children.Add(block);
                    ListBoxItem item3 = new ListBoxItem();
                    item3.Content = panel;
                    item3.Background = new SolidColorBrush(Colors.Transparent);
                    item3.BorderBrush = new SolidColorBrush(Colors.Transparent);
                    item3.Name = string.Format("Item_{0}_{1}", count, num2);
                    item3.Tag = item;
                    item3.Cursor = Cursors.Hand;
                    ListBoxItem item2 = item3;
                    box.Items.Add(item2);
                    num2++;
                }
                box.SelectionChanged += new SelectionChangedEventHandler(this.lb_SelectionChanged);
                expander.Content = box;
                count++;
                grid.Children.Add(expander);
                this.ListOfSamples.Children.Add(grid);
            }
        }

        private void exp_Expanded(object sender, RoutedEventArgs e)
        {
            Expander expander = sender as Expander;
            int count = this.ListOfSamples.Children.Count;
            for (int i = 0; i < count; i++)
            {

                Expander expander2 = base.FindName(string.Format("Category_{0}", i)) as Expander;
                if (expander2.Name != expander.Name)
                {
                    expander2.IsExpanded = false;
                }
            }
            int num3 = Convert.ToInt32(expander.Tag);
            string name = string.Format("List_{0}", num3);
            ListBox box = base.FindName(name) as ListBox;
            if (box != null)
            {
                box.SelectedIndex = -1;
            }
        }

        private void lb_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (this._targetListBoxItem != null)
            {
                this._targetListBoxItem.IsSelected = false;
                this._targetListBoxItem = null;
            }
            if ((e.AddedItems != null) && (e.AddedItems.Count > 0))
            {
                ListBoxItem item = e.AddedItems[0] as ListBoxItem;
                if (item != null)
                {
                    CategoryItem tag = item.Tag as CategoryItem;
                    this._item = tag;
                    this.processitem(tag);
                }
            }
        }

        private void pline_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            Polygon polygon = sender as Polygon;
            string str = Convert.ToString(polygon.Tag);
            string name = this._categoryList[Convert.ToInt32(str)].Name;
        }

        private void processitem(CategoryItem item)
        {
            this._control = null;
            this.tabSample.Content = null;
            this.txtSrc.SourceCode = "";
            this.txtXaml.SourceCode = "";
            this.txtSrcExplain.Text = "";
            this.tabPanel.SelectedIndex = 0;
            Type type = Type.GetType(item.XAML);
            if (type != null)
            {
                this._control = Activator.CreateInstance(type) as UserControl;
                this.tabSample.Content = this._control;

            }
            this.SampleCaption.Text = item.ID;
            HtmlPage.Window.Invoke("setParentHash", new object[] { item.XAML.Split(new char[] { '.' })[1] });
        }

        public void ProcessTarget()
        {
            if (!string.IsNullOrEmpty(this._target))
            {
                string str = "iServerJava6R_SampleCode." + this._target;
                int num = 0;
                foreach (Category category in this._categoryList)
                {
                    int num2 = 0;
                    foreach (CategoryItem item in category.CategoryItems)
                    {
                        if (item.XAML.ToLower() == str.ToLower())
                        {
                            this._item = item;
                            this.processitem(item);
                            Expander expander = base.FindName(string.Format("Category_{0}", num)) as Expander;
                            expander.IsExpanded = true;
                            this._targetListBoxItem = base.FindName(string.Format("Item_{0}_{1}", num, num2)) as ListBoxItem;
                            this._targetListBoxItem.IsSelected = true;
                            return;
                        }
                        num2++;
                    }
                    num++;
                }
            }
        }

        [ScriptableMember]
        public void SetTargetSample(string hash)
        {
            string str = hash.Trim().TrimStart(new char[] { '#' });
            if ((str.Length > 0) && (str.Length < 30))
            {
                this._target = str;
            }
        }

        private void sideBar_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            double num = this.sideBar.ActualHeight - 10.0;
            double num2 = this.sideBar.ActualWidth - 10.0;
        }

        private void sourceView_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                string str = null;
                using (Stream stream = e.Result)
                {
                    str = new StreamReader(stream).ReadToEnd();
                }
                switch (this.tabPanel.SelectedIndex)
                {
                    case 1:
                        //this.txtXaml.Text = str;
                        this.txtXaml.SourceCode = str;

                        break;

                    case 2:
                        //this.txtSrc.Text = str;
                        this.txtSrc.SourceCode = str;
                        break;

                    case 3:
                        this.txtSrcExplain.Text = str;
                        break;
                }
            }
        }

        private void sourceViewer(string srcFile)
        {
            string url = HtmlPage.Document.DocumentUri.AbsoluteUri;
            int i = url.LastIndexOf('/');
            string ur = url.Substring(0, i) + "/" + srcFile;

            //string url = string.Concat("http://", HtmlPage.Document.DocumentUri.Host, ":", HtmlPage.Document.DocumentUri.Port, "/", srcFile);

            WebClient client = new WebClient();
            client.OpenReadCompleted += new OpenReadCompletedEventHandler(this.sourceView_OpenReadCompleted);
            client.OpenReadAsync(new Uri(ur, UriKind.RelativeOrAbsolute));
        }

        private void tabPanel_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if ((this.tabPanel != null) && (this._item != null))
            {
                switch (this.tabPanel.SelectedIndex)
                {
                    case 1:
                        this.sourceViewer(this._item.Source);
                        this.copyToClipboard.Visibility = Visibility.Visible;
                        return;

                    case 2:
                        this.sourceViewer(this._item.Code);
                        this.copyToClipboard.Visibility = Visibility.Visible;
                        return;

                    case 3:
                        this.sourceViewer(this._item.Explain);
                        this.copyToClipboard.Visibility = Visibility.Visible;
                        return;
                }
                this.copyToClipboard.Visibility = Visibility.Collapsed;
            }
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            WebClient client = new WebClient();
            client.OpenReadCompleted += new OpenReadCompletedEventHandler(this.client_OpenReadCompleted);
            Uri uri = new Uri(this._xmlFile, UriKind.RelativeOrAbsolute);
            base.Dispatcher.BeginInvoke(delegate
            {
                client.OpenReadAsync(uri);
            });
        }
    }
}


text:
SELECT CI,Nombre,Direccion
FROM (
		SELECT  	distinct I.CI,
				I.Nombre,
				I.Direccion,
				COUNT(P.Fecha) OVER(PARTITION BY I.CI) AS Cantidad
		FROM	Maraton.Integrante AS I JOIN Maraton.Participa AS P ON P.NombreEquipo = I.NombreEquipo
		GROUP BY CI,Fecha
		ORDER BY Cantidad DESC, CI

	) as RA
WHERE Cantidad = (SELECT Max(Cantidad)
			FROM (SELECT  	distinct I.CI,
				I.Nombre,
				I.Direccion,
				COUNT(P.Fecha) OVER(PARTITION BY I.CI) AS Cantidad
		FROM	Maraton.Integrante AS I JOIN Maraton.Participa AS P ON P.NombreEquipo = I.NombreEquipo
		GROUP BY CI,Fecha
		ORDER BY Cantidad DESC, CI) RE) ;

--Esto son todos los usuarios con sus respectivas veces en que participaron

SELECT  	distinct I.CI,
				I.Nombre,
				I.Direccion,
				COUNT(P.Fecha) OVER(PARTITION BY I.CI) AS Cantidad
		FROM	Maraton.Integrante AS I JOIN Maraton.Participa AS P ON P.NombreEquipo = I.NombreEquipo
		GROUP BY CI,Fecha
		ORDER BY Cantidad DESC, CI


text:
/* Font Family
================================================== */
@import url("https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:300,400");

/* Desktop (960px)
================================================== */
.container { position:relative; width:inherit; margin:0 auto; padding:0; }
.container .columns { float:left; display:inline; margin-left:10px; margin-right:10px; }
.container .twelve.columns { width:900px; }
.container .offset-by-two { padding-left:40px; }

/* Tablet (Portrait)
================================================== */
/* Note: Design for a width of 768px */

@media only screen and (min-width: 768px) and (max-width: 1080px) {
.container { width:inherit; }
.container .columns { margin-left:10px; margin-right:10px; }
.container .twelve.columns { width:600px; }
.container .offset-by-two { padding-left:32px; }
}

/* Mobile (Portrait)
================================================== */
/* Note: Design for a width of 320px */

@media only screen and (max-width: 767px) {
.container { width:300px; }
.container .columns { margin:0; }
.container .twelve.columns { width:300px; }
.container .offset-by-two { padding-left:0; }
}

/* Mobile (Landscape)
================================================== */
/* Note: Design for a width of 480px */

@media only screen and (min-width: 480px) and (max-width: 767px) {
.container { width:420px; }
.container .columns { margin:0; }
.container .twelve.columns { width:420px; }
}

/* Self Clearing Goodness
================================================== */
.container:after {
clear:both;
content:"\0020";
display:block;
height:0;
visibility:hidden;
}

/* CSS Reset
================================================== */
html,body,div,span,h1,h6,p,a,ul,li,audio {
border:0;
font:inherit;
font-size:100%;
margin:0;
padding:0;
vertical-align:baseline;
}

body { line-height:1; }
ul { list-style:none; }

/* Basic Styles
================================================== */
html,body {
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:100%;
background-color:#111;
color:#C8C7C8;
font:18px/20px "Yanone Kaffeesatz", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight:300;
}

/* Typography
================================================== */
h1,h6,p { color:#808080; font-weight:300; }
h1 { font-size:42px; line-height:44px; margin:20px 0 0; }
h6 { font-size:18px; line-height:20px; margin:0 0 20px; }
p { margin:0 0 20px; }

/* Links
================================================== */
a,a:visited { color:#ddd; outline:0; text-decoration:underline; }
a:hover,a:focus { color:#bbb; }
p a,p a:visited { line-height:inherit; }

/* Misc.
================================================== */
.add-bottom { margin-bottom:20px !important; }
.left { float:left; }
.right { float:right; }
.center { text-align:center; }

/* Custom Styles
================================================== */
html,body {
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:100%;
background-color:#111;
color:#C8C7C8;
font:18px/20px "Yanone Kaffeesatz", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight:300;
}

/* CSS Transitions */
* {
-moz-transition:all 100ms ease;
-o-transition:all 100ms ease;
-webkit-transition:all 100ms ease;
transition:all 100ms ease;
}

/* Highlight Styles */
::selection { background-color:#262223; color:#444; }
::-moz-selection { background-color:#262223; color:#444; }

/* Audio Player Styles
================================================== */

/* Default - Firefox */
audio { margin:0 15px; width:670px; }
#audiowrap { background-color:#231F20; margin:0 auto; }
#plwrap { margin:auto; }
#tracks { min-height:66px; position:relative; text-align:center; text-decoration:none; top:16px; }
#nowPlay { display:inline; }
#npTitle { margin:0; padding:21px; text-align:right; }
#npAction { padding:21px; }
#plList { margin:0; }
#plList li { background-color:#231F20; cursor:pointer; margin:0; padding:21px 0; }
#plList li:hover { background-color:#262223; }
.plItem { position:relative; }
.plTitle { left:40px; overflow:hidden; position:absolute; right:65px; text-overflow:ellipsis; top:0; white-space:nowrap; }
.plNum { padding-left:21px; width:25px; }
.plLength { padding-left:21px; position:absolute; right:21px; top:0; }
.plSel,.plSel:hover { background-color:#262223!important; cursor:default!important; }
a[id^="btn"] { background-color:#231F20; color:#C8C7C8; cursor:pointer; font-size:50px; margin:0; padding:0 27px 11px; text-decoration:none; }
a[id^="btn"]:last-child { margin-left:-3px; }
a[id^="btn"]:hover,a[id^=btn]:active { background-color:#262223; }
a[id^="btn"]::-moz-focus-inner { border:0; padding:0; }

/* IE 9 */
html[data-useragent*="MSIE 9.0"] audio { margin-left:9px; outline:none; width:680px; }
html[data-useragent*="MSIE 9.0"] #audiowrap { background-color:#000; }
html[data-useragent*="MSIE 9.0"] #tracks { min-height:59px; top:8px;}
html[data-useragent*="MSIE 9.0"] a[id^="btn"] { background-color:#000; }
html[data-useragent*="MSIE 9.0"] a[id^="btn"]:hover { background-color:#080808; }
html[data-useragent*="MSIE 9.0"] #plList li { background-color:#000; }
html[data-useragent*="MSIE 9.0"] #plList li:hover { background-color:#080808; }
html[data-useragent*="MSIE 9.0"] .plSel,
html[data-useragent*="MSIE 9.0"] .plSel:hover { background-color:#080808!important; }

/* IE 10 */
html[data-useragent*="MSIE 10.0"] audio { margin-left:6px; width:687px; }
html[data-useragent*="MSIE 10.0"] #audiowrap { background-color:#000; }
html[data-useragent*="MSIE 10.0"] #tracks { min-height:62px; top:11px;}
html[data-useragent*="MSIE 10.0"] a[id^="btn"] { background-color:#000; }
html[data-useragent*="MSIE 10.0"] a[id^="btn"]:hover { background-color:#080808; }
html[data-useragent*="MSIE 10.0"] #plList li { background-color:#000; }
html[data-useragent*="MSIE 10.0"] #plList li:hover { background-color:#080808; }
html[data-useragent*="MSIE 10.0"] .plSel,
html[data-useragent*="MSIE 10.0"] .plSel:hover { background-color:#080808!important; }

/* IE 11 */
html[data-useragent*="rv:11.0"] audio { margin-left:2px; width:695px; }
html[data-useragent*="rv:11.0"] #audiowrap { background-color:#000; }
html[data-useragent*="rv:11.0"] #tracks { min-height:62px; top:11px;}
html[data-useragent*="rv:11.0"] a[id^="btn"] { background-color:#000; }
html[data-useragent*="rv:11.0"] a[id^="btn"]:hover { background-color:#080808; }
html[data-useragent*="rv:11.0"] #plList li { background-color:#000; }
html[data-useragent*="rv:11.0"] #plList li:hover { background-color:#080808; }
html[data-useragent*="rv:11.0"] .plSel,
html[data-useragent*="rv:11.0"] .plSel:hover { background-color:#080808!important; }

/* All Apple Products */
html[data-useragent*="Apple"] #audiowrap { background-color:#000; }
html[data-useragent*="Apple"] a[id^="btn"] { background-color:#000; }
html[data-useragent*="Apple"] a[id^="btn"]:hover { background-color:#080808; }
html[data-useragent*="Apple"] #plList li { background-color:#000; }
html[data-useragent*="Apple"] #plList li:hover { background-color:#080808; }
html[data-useragent*="Apple"] .plSel,
html[data-useragent*="Apple"] .plSel:hover { background-color:#080808!important; }

/* IOS 7 */
html[data-useragent*="OS 7"] body { color:#373837; }
html[data-useragent*="OS 7"] audio { margin-left:3px; width:690px; }
html[data-useragent*="OS 7"] #tracks { min-height:77px; top:27px;}
html[data-useragent*="OS 7"] #audiowrap { background-color:#e6e6e6; }
html[data-useragent*="OS 7"] a[id^="btn"] { background-color:#e6e6e6; color:#373837; }
html[data-useragent*="OS 7"] a[id^="btn"]:hover { background-color:#eee; }
html[data-useragent*="OS 7"] #plList li { background-color:#e6e6e6; }
html[data-useragent*="OS 7"] #plList li:hover { background-color:#eee; }
html[data-useragent*="OS 7"] .plSel,
html[data-useragent*="OS 7"] .plSel:hover { background-color:#eee!important; }

/* Chrome */
html[data-useragent*="Chrome"] audio { margin-left:6px; width:687px; }
html[data-useragent*="Chrome"] #audiowrap { background-color:#131313; }
html[data-useragent*="Chrome"] a[id^="btn"] { background-color:#131313; }
html[data-useragent*="Chrome"] a[id^="btn"]:hover { background-color:#161616; }
html[data-useragent*="Chrome"] #plList li { background-color:#131313; }
html[data-useragent*="Chrome"] #plList li:hover { background-color:#161616; }
html[data-useragent*="Chrome"] .plSel,
html[data-useragent*="Chrome"] .plSel:hover { background-color:#161616!important; }

/* Media Queries (Screen Width)
================================================== */

/* Tablet Portrait to Desktop (960px) */
@media only screen and (min-width: 768px) and (max-width: 1080px) {
audio { width:526px; }
html[data-useragent*="MSIE 9.0"] audio { width:536px; }
html[data-useragent*="MSIE 10.0"] audio { width:543px; }
html[data-useragent*="rv:11.0"] audio { width:551px; }
html[data-useragent*="OS 7"] audio { width:546px; }
html[data-useragent*="Chrome"] audio { width:543px; }
}

/* Mobile Landscape to Tablet Portrait */
@media only screen and (min-width: 480px) and (max-width: 767px) {
audio { width:390px; }
html[data-useragent*="MSIE 9.0"] audio { width:400px; }
html[data-useragent*="MSIE 10.0"] audio { width:407px; }
html[data-useragent*="rv:11.0"] audio { width:415px; }
html[data-useragent*="OS 7"] audio { width:410px; }
html[data-useragent*="Chrome"] audio { width:407px; }

#npAction { position:absolute; }
#npTitle { width:261px; }
}

/* Mobile Portrait to Mobile Landscape */
@media only screen and (max-width: 479px) {
audio { width:270px; }
html[data-useragent*="MSIE 9.0"] audio { width:280px; }
html[data-useragent*="MSIE 10.0"] audio { width:287px; }
html[data-useragent*="rv:11.0"] audio { width:295px; }
html[data-useragent*="OS 7"] audio { width:290px; }
html[data-useragent*="Chrome"] audio { width:287px; }

#npAction { position:absolute; }
#npTitle { width:156px; }
}


text:
package com.alibaba.cobar.net.packet;

/**
 * @author xianmao.hexm
 */
public class QuitPacket extends MySQLPacket {

    public static final byte[] QUIT = new byte[] { 1, 0, 0, 0, 1 };

    @Override
    protected String packetInfo() {
        return "MySQL Quit Packet";
    }

}


text:
package eu.socialsensor.framework.client.dao;

import eu.socialsensor.framework.client.mongo.MongoHandler.MongoIterator;
import eu.socialsensor.framework.common.domain.Item;
import eu.socialsensor.framework.common.factories.ItemFactory;

import java.util.Iterator;
import java.util.List;

import com.mongodb.DBCursor;
import com.mongodb.DBObject;

/**
 * Data Access Object for Item
 *
 * @author etzoannos
 */
public interface ItemDAO {

    public void insertItem(Item item);

    public void replaceItem(Item item);

    public void updateItem(Item item);

    public boolean deleteItem(String id);

    public Item getItem(String id);

    public List<Item> getLatestItems(int n);

    public List<Item> getItemsSince(long date);

    public List<Item> getItemsInTimeslot(String timeslotId);

    boolean exists(String id);

    public List<Item> readItems();

    public List<Item> readItemsByStatus();

    public List<Item> getItemsInRange(long start, long end);

    public void setIndexedStatusTrue(String itemId);

    public List<Item> getUnindexedItems(int max);

    public List<Item> getItems(DBObject query);

    public ItemIterator getIterator(DBObject query);

    public class ItemIterator implements Iterator<Item> {

		private MongoIterator it;

		public ItemIterator (MongoIterator it) {
    		this.it = it;
    	}

    	public Item next() {
    		String json = it.next();
    		return ItemFactory.create(json);
    	}

    	public boolean hasNext() {
    		return it.hasNext();
    	}

		@Override
		public void remove() {
			it.next();
		}
    }

}


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
'use strict';

var util = require('util');
var msRest = require('ms-rest');
var LroStates = require('./constants').LongRunningOperationStates;

/**
 * @class
 * Initializes a new instance of the PollingState class.
 * @constructor
 * @param {object} [response] - The response object to extract long
 * running operation status.
 *
 * @param {number} retryTimeout - The timeout in seconds to retry on
 * intermediate operation results.
 */
function PollingState(resultOfInitialRequest, retryTimeout) {
  this._retryTimeout = retryTimeout;
  this.updateResponse(resultOfInitialRequest.response);
  this.request = resultOfInitialRequest.request;
  //Parse response.body & assign it as the resource
  try {
    if (resultOfInitialRequest.body &&
        typeof resultOfInitialRequest.body.valueOf() === 'string' &&
        resultOfInitialRequest.body.length > 0) {
      this.resource = JSON.parse(resultOfInitialRequest.body);
    } else {
      this.resource = resultOfInitialRequest.body;
    }
  } catch (error) {
    var deserializationError = new Error(util.format('Error "%s" occurred in parsing the responseBody ' +
      'while creating the PollingState for Long Running Operation- "%s"', error, resultOfInitialRequest.body));
    deserializationError.request = resultOfInitialRequest.request;
    deserializationError.response = resultOfInitialRequest.response;
    throw deserializationError;
  }

  if (this.resource && this.resource.properties && this.resource.properties.provisioningState) {
    this.status = this.resource.properties.provisioningState;
  } else {
    switch (this.response.statusCode) {
      case 202:
        this.status = LroStates.InProgress;
        break;

      case 204:
      case 201:
      case 200:
        this.status = LroStates.Succeeded;
        break;

      default:
        this.status = LroStates.Failed;
        break;
    }
  }
}

/**
 * Gets timeout in milliseconds.
 * @returns {number} timeout
 */
PollingState.prototype.getTimeout = function () {
  if (this._retryTimeout || this._retryTimeout === 0) {
    return this._retryTimeout * 1000;
  }
  if (this.response && this.response.headers['retry-after']) {
    return parseInt(this.response.headers['retry-after']) * 1000;
  }
  return 30 * 1000;
};

/**
 * Update cached data using the provided response object
 * @param {object} [response] - provider response object.
 */
PollingState.prototype.updateResponse = function (response) {
  this.response = response;
  if (response && response.headers) {
    if (response.headers['azure-asyncoperation']) {
      this.azureAsyncOperationHeaderLink = response.headers['azure-asyncoperation'];
    }

    if (response.headers['location']) {
      this.locationHeaderLink = response.headers['location'];
    }
  }
};

/**
 * Returns long running operation result.
 * @returns {object} HttpOperationResponse
 */
PollingState.prototype.getOperationResponse = function () {
  var result = new msRest.HttpOperationResponse();
  result.request = this.request;
  result.response = this.response;
  if (this.resource && typeof this.resource.valueOf() === 'string') {
    result.body = this.resource;
  } else {
    result.body = JSON.stringify(this.resource);
  }
  return result;
};

/**
 * Returns an Error on operation failure.
 * @returns {object} Error
 */
PollingState.prototype.getCloudError = function (err) {
  var errMsg;
  if (err && err.message) {
    errMsg = util.format('Long running operation failed with error: \'%s\'.', err.message);
  } else {
    errMsg = util.format('Long running operation failed with status: \'%s\'.', this.status);
  }

  var error = new Error(errMsg);
  error.body = this.response.body;
  error.request = this.request;
  error.response = this.response;
  return error;
};

module.exports = PollingState;


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

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

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE mbeans-descriptors PUBLIC
   "-//Apache Software Foundation//DTD Model MBeans Configuration File"
   "http://jakarta.apache.org/commons/dtds/mbeans-descriptors.dtd">
<mbeans-descriptors>
  <mbean
    name="SimpleTcpCluster"
    description="Tcp Cluster implementation"
    domain="Catalina"
    group="Cluster"
    type="org.apache.catalina.ha.tcp.SimpleTcpCluster">
    <attribute
      name="channelSendOptions"
      description="This sets channel behaviour on sent messages."
      type="int"/>
    <attribute
      name="channelStartOptions"
      description="This sets channel start behaviour."
      type="java.lang.String"/>
    <attribute
      name="clusterName"
      description="name of cluster"
      type="java.lang.String"/>
    <attribute
      name="heartbeatBackgroundEnabled"
      description="enable that container background thread call channel heartbeat, default is that channel mangage heartbeat itself."
      is="true"
      type="boolean"/>
    <attribute
      name="notifyLifecycleListenerOnFailure"
      description="notify lifecycleListener from message transfer failure"
      is="true"
      type="boolean"/>
    <attribute
      name="stateName"
      description="The name of the LifecycleState that this component is currently in"
      type="java.lang.String"
      writeable="false"/>
    <operation
      name="send"
      description="send message to all cluster members"
      impact="ACTION"
      returnType="void">
      <parameter
        name="message"
        description="replication message"
        type="org.apache.catalina.ha.ClusterMessage"/>
    </operation>
    <operation
      name="start"
      description="Start the cluster"
      impact="ACTION"
      returnType="void"/>
    <operation
      name="stop"
      description="Stop the cluster"
      impact="ACTION"
      returnType="void"/>
  </mbean>
  <mbean
    name="ReplicationValve"
    description="Valve for simple tcp replication"
    domain="Catalina"
    group="Valve"
    type="org.apache.catalina.ha.tcp.ReplicationValve">
    <attribute
      name="asyncSupported"
      description="Does this valve support async reporting?"
      is="true"
      type="boolean"/>
    <attribute
      name="doProcessingStats"
      getMethod="doStatistics"
      setMethod="setStatistics"
      description="active statistics counting"
      type="boolean"/>
    <attribute
      name="filter"
      description="resource filter to disable session replication check"
      type="java.lang.String"/>
    <attribute
      name="lastSendTime"
      description="last replicated request time"
      type="long"
      writeable="false"/>
    <attribute
      name="nrOfCrossContextSendRequests"
      description="number of send cross context session requests"
      type="long"
      writeable="false"/>
    <attribute
      name="nrOfFilterRequests"
      description="number of filtered requests"
      type="long"
      writeable="false"/>
    <attribute
      name="nrOfSendRequests"
      description="number of send requests"
      type="long"
      writeable="false"/>
    <attribute
      name="nrOfRequests"
      description="number of replicated requests"
      type="long"
      writeable="false"/>
    <attribute
      name="primaryIndicator"
      is="true"
      description="set indicator that request processing is at primary session node"
      type="boolean"/>
    <attribute
      name="primaryIndicatorName"
      description="Request attribute name to indicate that request processing is at primary session node"
      type="java.lang.String"/>
    <attribute
      name="stateName"
      description="The name of the LifecycleState that this component is currently in"
      type="java.lang.String"
      writeable="false"/>
    <attribute
      name="totalSendTime"
      description="total replicated send time"
      type="long"
      writeable="false"/>
    <attribute
      name="totalRequestTime"
      description="total replicated request time"
      type="long"
      writeable="false"/>
    <operation
      name="resetStatistics"
      description="Reset all statistics"
      impact="ACTION"
      returnType="void"/>
  </mbean>
</mbeans-descriptors>


text:
package com.github.cukedoctor.bdd.cukedoctor;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;

import com.github.cukedoctor.api.model.Feature;
import com.github.cukedoctor.parser.FeatureParser;
import com.github.cukedoctor.renderer.CukedoctorFeatureRenderer;
import com.github.cukedoctor.util.StringUtil;
import io.cucumber.java.After;
import io.cucumber.java.Before;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import java.net.URL;
import java.util.List;

public class AttachmentSteps {
  private String renderedDocument;

  private String disableExtensions;
  private String hideStepTime;
  private URL featureFile;

  public AttachmentSteps() {}

  @Before
  public void before() {
    disableExtensions = System.getProperty("cukedoctor.disable-extensions");
    hideStepTime = System.getProperty("HIDE_STEP_TIME");
    renderedDocument = null;
    featureFile = null;
  }

  @After
  public void after() {
    // Assumed defaults across the test suite
    // There is no "after all" hook in Cucumber-JVM, so somewhat wastefully they go here
    resetProperty("cukedoctor.disable-extensions", disableExtensions);
    resetProperty("HIDE_STEP_TIME", hideStepTime);
  }

  private void resetProperty(String name, String value) {
    if (value == null) {
      System.clearProperty(name);
    } else {
      System.setProperty(name, value);
    }
  }

  @Given("a Step has logged a string in Cucumber-JVM {double}.{int}")
  public void a_Step_has_logged_a_string_in_Cucumber_JVM(Double double1, Integer int1) {
    featureFile =
        getFeatureUrl("/com/github/cukedoctor/json-output/cucumber-jvm-6-7-0-log-string.json");
  }

  @Given("a Step has attached plain text as a string with a title in Cucumber-JVM {double}.{int}")
  public void a_Step_has_attached_plain_text_as_a_string_with_a_title_in_Cucumber_JVM(
      Double double1, Integer int1) {
    featureFile =
        getFeatureUrl(
            "/com/github/cukedoctor/json-output/cucumber-jvm-6-7-0-attach-string-string-string.json");
  }

  @Given(
      "a Step has attached plain text as a byte array with a title in Cucumber-JVM {double}.{int}")
  public void a_Step_has_attached_plain_text_as_a_byte_array_with_a_title_in_Cucumber_JVM(
      Double double1, Integer int1) {
    featureFile =
        getFeatureUrl(
            "/com/github/cukedoctor/json-output/cucumber-jvm-6-7-0-attach-bytearray-string-string.json");
  }

  @Given("a Step has attached a string in CucumberJS {double}.{int}")
  public void a_Step_has_attached_a_string_in_CucumberJS(Double double1, Integer int1) {
    featureFile =
        getFeatureUrl("/com/github/cukedoctor/json-output/cucumber-js-6-0-5-attach-string.json");
  }

  @Given("a Step has attached plain text as a string in CucumberJS {double}.{int}")
  public void a_Step_has_attached_plain_text_as_a_string_in_CucumberJS(
      Double double1, Integer int1) {
    featureFile =
        getFeatureUrl(
            "/com/github/cukedoctor/json-output/cucumber-js-6-0-5-attach-string-string.json");
  }

  @Given("a Step has attached plain text as a buffer in CucumberJS {double}.{int}")
  public void a_Step_has_attached_plain_text_as_a_buffer_in_CucumberJS(
      Double double1, Integer int1) {
    featureFile =
        getFeatureUrl(
            "/com/github/cukedoctor/json-output/cucumber-js-6-0-5_attach-buffer-string.json");
  }

  @Given("a Step has logged a string and attached a plain text string with a title")
  public void a_Step_has_logged_a_string_and_attached_a_plain_text_string_with_a_title() {
    featureFile = getFeatureUrl("/com/github/cukedoctor/json-output/log-and-attach.json");
  }

  @Given("a Step has three plain text attachments, two without a title")
  public void a_Step_has_three_plain_text_attachments_two_without_a_title() {
    featureFile = getFeatureUrl("/com/github/cukedoctor/json-output/multiple-attachments.json");
  }

  @Given("a Step has logged an image\\/png attachment")
  public void a_Step_has_logged_an_image_png_attachment() {
    featureFile = getFeatureUrl("/com/github/cukedoctor/json-output/not-plain-text.json");
  }

  @Given("I am hiding step timings")
  public void i_am_hiding_step_timings() {
    System.setProperty("HIDE_STEP_TIME", "true");
  }

  @Given("all Cukedoctor extensions are disabled")
  public void all_cukedoctor_extensions_are_disabled() {
    System.setProperty("cukedoctor.disable-extensions", "true");
  }

  @When("I convert the Feature")
  public void i_convert_the_feature() {
    List<Feature> features = FeatureParser.parse(featureFile.getPath());
    assertThat(features).isNotNull().hasSize(1);
    renderedDocument = new CukedoctorFeatureRenderer().renderFeatures(features);
  }

  @Then("it will be rendered as")
  public void it_will_be_rendered_as(String expectedDocument) {
    assetDocumentEquals(expectedDocument);
  }

  public void assetDocumentEquals(String expectedDocument) {
    assertEquals(
        StringUtil.normaliseLineEndings(expectedDocument),
        StringUtil.normaliseLineEndings(renderedDocument));
  }

  private URL getFeatureUrl(String path) {
    URL featureFile = getClass().getResource(path);
    assertThat(featureFile).isNotNull();
    return featureFile;
  }
}