text:
r"""
.. module:: skrf.tlineFunctions
===============================================
tlineFunctions (:mod:`skrf.tlineFunctions`)
===============================================

This module provides functions related to transmission line theory.

Impedance and Reflection Coefficient
--------------------------------------
These functions relate basic transmission line quantities such as
characteristic impedance, input impedance, reflection coefficient, etc.
Each function has two names. One is a long-winded but readable name and
the other is a short-hand variable-like names. Below is a table relating
these two names with each other as well as common mathematical symbols.

====================  ======================  ================================
Symbol                Variable Name           Long Name
====================  ======================  ================================
:math:`Z_l`           z_l                     load_impedance
:math:`Z_{in}`        z_in                    input_impedance
:math:`\Gamma_0`      Gamma_0                 reflection_coefficient
:math:`\Gamma_{in}`   Gamma_in                reflection_coefficient_at_theta
:math:`\theta`        theta                   electrical_length
====================  ======================  ================================

There may be a bit of confusion about the difference between the load
impedance the input impedance. This is because the load impedance **is**
the input impedance at the load. An illustration may provide some
useful reference.

Below is a (bad) illustration of a section of uniform transmission line
of characteristic impedance :math:`Z_0`, and electrical length
:math:`\theta`. The line is terminated on the right with some
load impedance, :math:`Z_l`. The input impedance :math:`Z_{in}` and
input reflection coefficient :math:`\Gamma_{in}` are
looking in towards the load from the distance :math:`\theta` from the
load.

.. math::
        Z_0, \theta

        \text{o===============o=}[Z_l]

        \to\qquad\qquad\qquad\quad\qquad \qquad \to \qquad \quad

        Z_{in},\Gamma_{in}\qquad\qquad\qquad\qquad\quad Z_l,\Gamma_0

So, to clarify the confusion,

.. math::
        Z_{in}= Z_{l},\qquad\qquad
        \Gamma_{in}=\Gamma_l \text{ at }  \theta=0

Short names
+++++++++++++
.. autosummary::
        :toctree: generated/

        theta

        zl_2_Gamma0
        zl_2_zin
        zl_2_Gamma_in
        zl_2_swr
        zl_2_total_loss

        Gamma0_2_zl
        Gamma0_2_Gamma_in
        Gamma0_2_zin
        Gamma0_2_swr

Long-names
++++++++++++++
.. autosummary::
        :toctree: generated/

        electrical_length

        distance_2_electrical_length
        electrical_length_2_distance

        reflection_coefficient_at_theta
        reflection_coefficient_2_input_impedance
        reflection_coefficient_2_input_impedance_at_theta
        reflection_coefficient_2_propagation_constant

        input_impedance_at_theta
        load_impedance_2_reflection_coefficient
        load_impedance_2_reflection_coefficient_at_theta

        voltage_current_propagation

Distributed Circuit and Wave Quantities
----------------------------------------
.. autosummary::
        :toctree: generated/

        distributed_circuit_2_propagation_impedance
        propagation_impedance_2_distributed_circuit

Transmission Line Physics
---------------------------------
.. autosummary::
        :toctree: generated/

        skin_depth
        surface_resistivity
"""

from . constants import NumberLike, INF, ONE
import numpy as npy
from numpy import pi, sqrt, exp, array, imag, real

from scipy.constants import mu_0
from . import mathFunctions as mf

def skin_depth(f: NumberLike, rho: float, mu_r: float):
    r"""
    Skin depth for a material.

    The skin depth is calculated as:

    .. math::

        \delta = \sqrt{\frac{ \rho }{ \pi f \mu_r \mu_0 }}

    See www.microwaves101.com [#]_ or wikipedia [#]_ for more info.

    Parameters
    ----------
    f : number or array-like
        frequency, in Hz
    rho : number of array-like
        bulk resistivity of material, in ohm*m
    mu_r : number or array-like
        relative permeability of material

    Returns
    -------
    skin depth : number or array-like
        the skin depth, in meter

    References
    ----------
    .. [#] https://www.microwaves101.com/encyclopedias/skin-depth
    .. [#] http://en.wikipedia.org/wiki/Skin_effect

    See Also
    --------
    surface_resistivity

    """
    return sqrt(rho/(pi*f*mu_r*mu_0))

def surface_resistivity(f: NumberLike, rho: float, mu_r: float):
    r"""
    Surface resistivity.

    The surface resistivity is calculated as:

    .. math::

        \frac{ \rho }{ \delta }

    where :math:`\delta` is the skin depth from :func:`skin_depth`.

    See www.microwaves101.com [#]_ or wikipedia [#]_ for more info.

    Parameters
    ----------
    f : number or array-like
        frequency, in Hz
    rho : number or array-like
        bulk resistivity of material, in ohm*m
    mu_r : number or array-like
        relative permeability of material

    Returns
    -------
    surface resistivity : number of array-like
        Surface resistivity in ohms/square

    References
    ----------
    .. [#] https://www.microwaves101.com/encyclopedias/sheet-resistance
    .. [#] https://en.wikipedia.org/wiki/Sheet_resistance

    See Also
    --------
    skin_depth
    """
    return rho/skin_depth(rho=rho, f=f, mu_r=mu_r)

def distributed_circuit_2_propagation_impedance(distributed_admittance: NumberLike,
        distributed_impedance: NumberLike):
    r"""
    Convert distributed circuit values to wave quantities.

    This converts complex distributed impedance and admittance to
    propagation constant and characteristic impedance. The relation is

    .. math::
        Z_0 = \sqrt{ \frac{Z^{'}}{Y^{'}}}
        \quad\quad
        \gamma = \sqrt{ Z^{'}  Y^{'}}

    Parameters
    ----------
    distributed_admittance : number, array-like
        distributed admittance
    distributed_impedance :  number, array-like
        distributed impedance

    Returns
    -------
    propagation_constant : number, array-like
        distributed impedance
    characteristic_impedance : number, array-like
        distributed impedance

    See Also
    --------
        propagation_impedance_2_distributed_circuit : opposite conversion
    """
    propagation_constant = \
            sqrt(distributed_impedance*distributed_admittance)
    characteristic_impedance = \
            sqrt(distributed_impedance/distributed_admittance)
    return (propagation_constant, characteristic_impedance)

def propagation_impedance_2_distributed_circuit(propagation_constant: NumberLike,
        characteristic_impedance: NumberLike):
    r"""
    Convert wave quantities to distributed circuit values.

    Convert complex propagation constant and characteristic impedance
    to distributed impedance and admittance. The relation is,

    .. math::
        Z^{'} = \gamma  Z_0 \quad\quad
        Y^{'} = \frac{\gamma}{Z_0}

    Parameters
    ----------
    propagation_constant : number, array-like
        distributed impedance
    characteristic_impedance : number, array-like
        distributed impedance

    Returns
    -------
    distributed_admittance : number, array-like
        distributed admittance
    distributed_impedance :  number, array-like
        distributed impedance

    See Also
    --------
        distributed_circuit_2_propagation_impedance : opposite conversion
    """
    distributed_admittance = propagation_constant/characteristic_impedance
    distributed_impedance = propagation_constant*characteristic_impedance
    return (distributed_admittance, distributed_impedance)

def electrical_length(gamma: NumberLike, f: NumberLike, d: NumberLike, deg: bool = False):
    r"""
    Electrical length of a section of transmission line.

    .. math::
        \theta = \gamma(f) \cdot d

    Parameters
    ----------
    gamma : number, array-like or function
        propagation constant. See Notes.
        If passed as a function, takes frequency in Hz as a sole argument.
    f : number or array-like
        frequency at which to calculate
    d : number or array-like
        length of line, in meters
    deg : Boolean
        return in degrees or not.

    Returns
    -------
    theta : number or array-like
        electrical length in radians or degrees, depending on  value of deg.

    See Also
    --------
        electrical_length_2_distance : opposite conversion

    Note
    ----
    The convention has been chosen that forward propagation is
    represented by the positive imaginary part of the value returned by
    the gamma function.
    """
    # if gamma is not a function, create a dummy function which return gamma
    if not callable(gamma):
        _gamma = gamma
        def gamma(f0): return _gamma

    # typecast to a 1D array
    f = array(f, dtype=float).reshape(-1)
    d = array(d, dtype=float).reshape(-1)

    if deg == False:
        return  gamma(f)*d
    elif deg == True:
        return  mf.radian_2_degree(gamma(f)*d )

def electrical_length_2_distance(theta: NumberLike, gamma: NumberLike, f0: NumberLike, deg: bool = True):
    r"""
    Convert electrical length to a physical distance.

    .. math::
        d = \frac{\theta}{\gamma(f_0)}

    Parameters
    ----------
    theta : number or array-like
        electrical length. units depend on `deg` option
    gamma : number, array-like or function
        propagation constant. See Notes.
        If passed as a function, takes frequency in Hz as a sole argument.
    f0 : number or array-like
        frequency at which to calculate gamma
    deg : Boolean
        return in degrees or not.

    Returns
    -------
    d : number or array-like (real)
        physical distance in m

    Note
    ----
    The convention has been chosen that forward propagation is
    represented by the positive imaginary part of the value returned by
    the gamma function.

    See Also
    --------
        distance_2_electrical_length: opposite conversion
    """
    # if gamma is not a function, create a dummy function which return gamma
    if not callable(gamma):
        _gamma = gamma
        def gamma(f0): return _gamma

    if deg:
        theta = mf.degree_2_radian(theta)
    return real(theta / gamma(f0))

def load_impedance_2_reflection_coefficient(z0: NumberLike, zl: NumberLike):
    r"""
    Reflection coefficient from a load impedance.

    Return the reflection coefficient for a given load impedance, and
    characteristic impedance.

    For a transmission line of characteristic impedance :math:`Z_0`
    terminated with load impedance :math:`Z_l`, the complex reflection
    coefficient is given by,

    .. math::
        \Gamma = \frac {Z_l - Z_0}{Z_l + Z_0}

    Parameters
    ----------
    z0 : number or array-like
        characteristic impedance
    zl : number or array-like
        load impedance (aka input impedance)

    Returns
    -------
    gamma : number or array-like
        reflection coefficient

    See Also
    --------
        Gamma0_2_zl : reflection coefficient to load impedance

    Note
    ----
    Inputs are typecasted to 1D complex array.
    """
    # typecast to a complex 1D array. this makes everything easier
    z0 = array(z0, dtype=complex).reshape(-1)
    zl = array(zl, dtype=complex).reshape(-1)

    # handle singularity  by numerically representing inf as big number
    zl[(zl == npy.inf)] = INF

    return ((zl - z0)/(zl + z0))

def reflection_coefficient_2_input_impedance(z0: NumberLike, Gamma: NumberLike):
    r"""
    Input impedance from a load reflection coefficient.

    Calculate the input impedance given a reflection coefficient and
    characteristic impedance.

    .. math::
        Z_0 \left(\frac {1 + \Gamma}{1-\Gamma} \right)

    Parameters
    ----------
    Gamma : number or array-like
        complex reflection coefficient
    z0 : number or array-like
        characteristic impedance

    Returns
    -------
    zin : number or array-like
        input impedance

    """
    # typecast to a complex 1D array. this makes everything easier
    Gamma = array(Gamma, dtype=complex).reshape(-1)
    z0 = array(z0, dtype=complex).reshape(-1)

    # handle singularity by numerically representing inf as close to 1
    Gamma[(Gamma == 1)] = ONE

    return z0*((1.0 + Gamma)/(1.0 - Gamma))

def reflection_coefficient_at_theta(Gamma0: NumberLike, theta: NumberLike):
    r"""
    Reflection coefficient at a given electrical length.

    .. math::
            \Gamma_{in} = \Gamma_0 e^{-2 \theta}

    Parameters
    ----------
    Gamma0 : number or array-like
        reflection coefficient at theta=0
    theta : number or array-like
        electrical length (may be complex)

    Returns
    -------
    Gamma_in : number or array-like
        input reflection coefficient

    """
    Gamma0 = array(Gamma0, dtype=complex).reshape(-1)
    theta = array(theta, dtype=complex).reshape(-1)
    return Gamma0 * exp(-2*theta)

def input_impedance_at_theta(z0: NumberLike, zl: NumberLike, theta: NumberLike):
    """
    Input impedance from load impedance at a given electrical length.

    Input impedance of load impedance zl at a given electrical length,
    given characteristic impedance z0.

    Parameters
    ----------
    z0 : number or array-like
        characteristic impedance
    zl : number or array-like
        load impedance
    theta : number or array-like
        electrical length of the line (may be complex)

    Returns
    -------
    zin : number or array-like
        input impedance at theta

    """
    Gamma0 = load_impedance_2_reflection_coefficient(z0=z0, zl=zl)
    Gamma_in = reflection_coefficient_at_theta(Gamma0=Gamma0, theta=theta)
    return reflection_coefficient_2_input_impedance(z0=z0, Gamma=Gamma_in)

def load_impedance_2_reflection_coefficient_at_theta(z0: NumberLike, zl: NumberLike, theta: NumberLike):
    """
    Reflection coefficient of load at a given electrical length.

    Reflection coefficient of load impedance zl at a given electrical length,
    given characteristic impedance z0.

    Parameters
    ----------
    z0 : number or array-like
        characteristic impedance.
    zl : number or array-like
        load impedance
    theta : number or array-like
        electrical length of the line (may be complex).

    Returns
    -------
    Gamma_in : number or array-like
        input reflection coefficient at theta

    """
    Gamma0 = load_impedance_2_reflection_coefficient(z0=z0, zl=zl)
    Gamma_in = reflection_coefficient_at_theta(Gamma0=Gamma0, theta=theta)
    return Gamma_in

def reflection_coefficient_2_input_impedance_at_theta(z0: NumberLike, Gamma0: NumberLike, theta: NumberLike):
    """
    Input impedance from load reflection coefficient at a given electrical length.

    Calculate the input impedance at electrical length theta, given a
    reflection coefficient and characteristic impedance of the medium.

    Parameters
    ----------
    z0 : number or array-like
        characteristic impedance.
    Gamma: number or array-like
        reflection coefficient
    theta: number or array-like
        electrical length of the line, (may be complex)

    Returns
    -------
    zin: number or array-like
        input impedance at theta

    """
    Gamma_in = reflection_coefficient_at_theta(Gamma0=Gamma0, theta=theta)
    zin = reflection_coefficient_2_input_impedance(z0=z0, Gamma=Gamma_in)
    return zin

def reflection_coefficient_2_propagation_constant(Gamma_in: NumberLike, Gamma_l: NumberLike, d: NumberLike):
    r"""
    Propagation constant from line input and load reflection coefficients.

    Calculate the propagation constant of a line of length d, given the
    reflection coefficient and characteristic impedance of the medium.

    .. math::
        \Gamma_{in} = \Gamma_l e^{-2 j \gamma \cdot d}
        \to \gamma = -\frac{1}{2 d} \ln \left ( \frac{ \Gamma_{in} }{ \Gamma_l } \right )

    Parameters
    ----------
    Gamma_in : number or array-like
        input reflection coefficient
    Gamma_l :  number or array-like
        load reflection coefficient
    d : number or array-like
        length of line, in meters

    Returns
    -------
    gamma : number (complex) or array-like
        propagation constant (see notes)

    Note
    ----
    The convention has been chosen that forward propagation is
    represented by the positive imaginary part of gamma.

    """
    gamma = -1/(2*d) * npy.log(Gamma_in/Gamma_l)
    # the imaginary part of gamma (=beta) cannot be negative with the given
    # definition of gamma. Thus one should take the first modulo positive value
    gamma.imag = gamma.imag % (pi/d)

    return gamma

def Gamma0_2_swr(Gamma0: NumberLike):
    r"""
    Standing Wave Ratio (SWR) for a given reflection coefficient.

    Standing Wave Ratio value is defined by:

    .. math::
        VSWR = \frac{1 + |\Gamma_0|}{1 - |\Gamma_0|}

    Parameters
    ----------
    Gamma0 : number or array-like
        Reflection coefficient

    Returns
    -------
    swr : number or array-like
        Standing Wave Ratio.

    """
    return (1 + npy.abs(Gamma0)) / (1 - npy.abs(Gamma0))

def zl_2_swr(z0: NumberLike, zl: NumberLike):
    r"""
    Standing Wave Ratio (SWR) for a given load impedance.

    Standing Wave Ratio value is defined by:

    .. math::
        VSWR = \frac{1 + |\Gamma|}{1 - |\Gamma|}

    where

    .. math::
        \Gamma = \frac{Z_L - Z_0}{Z_L + Z_0}

    Parameters
    ----------
    z0 : number or array-like
        line characteristic impedance [Ohm]
    zl : number or array-like
        load impedance [Ohm]

    Returns
    -------
    swr : number or array-like
        Standing Wave Ratio.

    """
    Gamma0 = load_impedance_2_reflection_coefficient(z0, zl)
    return Gamma0_2_swr(Gamma0)

def voltage_current_propagation(v1: NumberLike, i1: NumberLike, z0: NumberLike, theta: NumberLike):
    """
    Voltages and currents calculated on electrical length theta of a transmission line.

    Give voltage v2 and current i1 at theta, given voltage v1
    and current i1 at theta=0 and given characteristic parameters gamma and z0.

    ::

        i1                          i2
        ○-->---------------------->--○

        v1         gamma,z0         v2

        ○----------------------------○

        <------------ d ------------->

        theta=0                   theta

    Uses (inverse) ABCD parameters of a transmission line.

    Parameters
    ----------
    v1 : array-like (nfreqs,)
        total voltage at z=0
    i1 : array-like (nfreqs,)
        total current at z=0, directed toward the transmission line
    z0: array-like (nfreqs,)
        characteristic impedance
    theta : number or array-like (nfreq, ntheta)
        electrical length of the line (may be complex).

    Return
    ------
    v2 : array-like (nfreqs, ntheta)
        total voltage at z=d
    i2 : array-like (nfreqs, ndtheta
        total current at z=d, directed outward the transmission line
    """
    # outer product by broadcasting of the electrical length
    # theta = gamma[:, npy.newaxis] * d  # (nbfreqs x nbd)
    # ABCD parameters of a transmission line (gamma, z0)
    A = npy.cosh(theta)
    B = z0*npy.sinh(theta)
    C = npy.sinh(theta)/z0
    D = npy.cosh(theta)
    # transpose and de-transpose operations are necessary
    # for linalg.inv to inverse square matrices
    ABCD = npy.array([[A, B],[C, D]]).transpose()
    inv_ABCD = npy.linalg.inv(ABCD).transpose()

    v2 = inv_ABCD[0,0] * v1 + inv_ABCD[0,1] * i1
    i2 = inv_ABCD[1,0] * v1 + inv_ABCD[1,1] * i1
    return v2, i2

def zl_2_total_loss(z0: NumberLike, zl: NumberLike, theta: NumberLike):
    r"""
    Total loss of a terminated transmission line (in natural unit).

    The total loss expressed in terms of the load impedance is [#]_ :

    .. math::
        TL = \frac{R_{in}}{R_L} \left| \cosh \theta  + \frac{Z_L}{Z_0} \sinh\theta \right|^2

    Parameters
    ----------
    z0 : number or array-like
        characteristic impedance.
    zl : number or array-like
        load impedance
    theta : number or array-like
        electrical length of the line (may be complex).

    Returns
    -------
    total_loss: number or array-like
        total loss in natural unit

    References
    ----------
    .. [#] Steve Stearns (K6OIK), Transmission Line Power Paradox and Its Resolution.
        ARRL PacificonAntenna Seminar, Santa Clara, CA, October 10-12, 2014.
        https://www.fars.k6ya.org/docs/K6OIK-A_Transmission_Line_Power_Paradox_and_Its_Resolution.pdf

    """
    Rin = npy.real(zl_2_zin(z0, zl, theta))
    total_loss = Rin/npy.real(zl)*npy.abs(npy.cosh(theta) + zl/z0*npy.sinh(theta))**2
    return total_loss

# short hand convenience.
# admittedly these follow no logical naming scheme, but they closely
# correspond to common symbolic conventions, and are convenient
theta = electrical_length
distance_2_electrical_length = electrical_length

zl_2_Gamma0 = load_impedance_2_reflection_coefficient
Gamma0_2_zl = reflection_coefficient_2_input_impedance

zl_2_zin = input_impedance_at_theta
zl_2_Gamma_in = load_impedance_2_reflection_coefficient_at_theta

Gamma0_2_Gamma_in = reflection_coefficient_at_theta
Gamma0_2_zin = reflection_coefficient_2_input_impedance_at_theta


text:
package open

import (
	"os"
	"os/exec"
	"path/filepath"
	"strings"
	// "syscall"
)

var (
	cmd      = "url.dll,FileProtocolHandler"
	runDll32 = filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe")
)

func cleaninput(input string) string {
	r := strings.NewReplacer("&", "^&")
	return r.Replace(input)
}

func open(input string) *exec.Cmd {
	cmd := exec.Command(runDll32, cmd, input)
	//cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
	return cmd
}

func openWith(input string, appName string) *exec.Cmd {
	cmd := exec.Command("cmd", "/C", "start", "", appName, cleaninput(input))
	//cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
	return cmd
}

redpajama_set_name: RedPajamaGithub


text:
use crate::schema::{
    ensure_slice_len_eq, ensure_slice_len_gt, STALE_NODE_INDEX_CROSS_EPOCH_CF_NAME,
};
use anyhow::Result;
use aptos_jellyfish_merkle::{node_type::NodeKey, StaleNodeIndex};
use aptos_types::transaction::Version;
use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt};
use schemadb::{
    define_schema,
    schema::{KeyCodec, SeekKeyCodec, ValueCodec},
};
use std::{io::Write, mem::size_of};

define_schema!(
    StaleNodeIndexCrossEpochSchema,
    StaleNodeIndex,
    (),
    STALE_NODE_INDEX_CROSS_EPOCH_CF_NAME
);

impl KeyCodec<StaleNodeIndexCrossEpochSchema> for StaleNodeIndex {
    fn encode_key(&self) -> Result<Vec<u8>> {
        let mut encoded = vec![];
        encoded.write_u64::<BigEndian>(self.stale_since_version)?;
        encoded.write_all(&self.node_key.encode()?)?;

        Ok(encoded)
    }

    fn decode_key(data: &[u8]) -> Result<Self> {
        const VERSION_SIZE: usize = size_of::<Version>();

        ensure_slice_len_gt(data, VERSION_SIZE)?;
        let stale_since_version = (&data[..VERSION_SIZE]).read_u64::<BigEndian>()?;
        let node_key = NodeKey::decode(&data[VERSION_SIZE..])?;

        Ok(Self {
            stale_since_version,
            node_key,
        })
    }
}

impl ValueCodec<StaleNodeIndexCrossEpochSchema> for () {
    fn encode_value(&self) -> Result<Vec<u8>> {
        Ok(Vec::new())
    }

    fn decode_value(data: &[u8]) -> Result<Self> {
        ensure_slice_len_eq(data, 0)?;
        Ok(())
    }
}

impl SeekKeyCodec<StaleNodeIndexCrossEpochSchema> for Version {
    fn encode_seek_key(&self) -> Result<Vec<u8>> {
        Ok(self.to_be_bytes().to_vec())
    }
}

#[cfg(test)]
mod test;


text:
<?php

/**
 * Proxy that delegates execution to an original cache type instance, if access is allowed at the moment.
 * It's typical for "access proxies" to have a decorator-like implementation, the difference is logical -
 * controlling access rather than attaching additional responsibility to a subject.
 */
namespace Magento\Framework\App\Cache\Type;

class AccessProxy extends \Magento\Framework\Cache\Frontend\Decorator\Bare
{
    /**
     * Cache types manager
     *
     * @var \Magento\Framework\App\Cache\StateInterface
     */
    private $_cacheState;

    /**
     * Cache type identifier
     *
     * @var string
     */
    private $_identifier;

    /**
     * @param \Magento\Framework\Cache\FrontendInterface $frontend
     * @param \Magento\Framework\App\Cache\StateInterface $cacheState
     * @param string $identifier Cache type identifier
     */
    public function __construct(
        \Magento\Framework\Cache\FrontendInterface $frontend,
        \Magento\Framework\App\Cache\StateInterface $cacheState,
        $identifier
    ) {
        parent::__construct($frontend);
        $this->_cacheState = $cacheState;
        $this->_identifier = $identifier;
    }

    /**
     * Whether a cache type is enabled at the moment or not
     *
     * @return bool
     */
    protected function _isEnabled()
    {
        return $this->_cacheState->isEnabled($this->_identifier);
    }

    /**
     * {@inheritdoc}
     */
    public function test($identifier)
    {
        if (!$this->_isEnabled()) {
            return false;
        }
        return parent::test($identifier);
    }

    /**
     * {@inheritdoc}
     */
    public function load($identifier)
    {
        if (!$this->_isEnabled()) {
            return false;
        }
        return parent::load($identifier);
    }

    /**
     * {@inheritdoc}
     */
    public function save($data, $identifier, array $tags = [], $lifeTime = null)
    {
        if (!$this->_isEnabled()) {
            return true;
        }
        return parent::save($data, $identifier, $tags, $lifeTime);
    }

    /**
     * {@inheritdoc}
     */
    public function remove($identifier)
    {
        if (!$this->_isEnabled()) {
            return true;
        }
        return parent::remove($identifier);
    }

    /**
     * {@inheritdoc}
     */
    public function clean($mode = \Zend_Cache::CLEANING_MODE_ALL, array $tags = [])
    {
        if (!$this->_isEnabled()) {
            return true;
        }
        return parent::clean($mode, $tags);
    }
}


text:
package main

import "os"

// START OMIT
// Notify causes package signal to relay incoming signals to c.
// ...
// Package signal will not block sending to c ... // HL
// ...
func Notify(c chan<- os.Signal, sig ...os.Signal) {
	// END OMIT
}


text:
![LaunchPad Lab](http://cl.ly/YHrd/logo.png "LaunchPad Lab Logo")

# Dec 16th MDA Presentation

---

##LaunchPad Lab

Let's Do This!


text:
/*
 * Created on Dec 3, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package net.reliableresponse.notification.dialogic;

/**
 * @author drig
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class CantFindDialogicMessage extends AbstractDialogicMessage {

	DialogicMessage previous;
	public CantFindDialogicMessage(DialogicMessage previous) {
		this.previous = previous;
	}

	/* (non-Javadoc)
	 * @see net.reliableresponse.notification.dialogic.DialogicMessage#getWaveFilename()
	 */
	public String getWaveFilename() {
		return getSoundsDirectory()+"cantfind.wav";
	}

	public String getAsteriskFilename() {
		return "cantfind";
	}

	/* (non-Javadoc)
	 * @see net.reliableresponse.notification.dialogic.DialogicMessage#getExpectedDigits()
	 */
	public int getExpectedDigits() {
		return 0;
	}

	public DialogicMessage getNextMessage(String identifier) {
		return previous;
	}
}


text:
/* eslint-disable func-names, space-before-function-paren, max-len, no-var, one-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-arrow-callback, consistent-return, no-return-assign */
/* global Mousetrap */
/* global Shortcuts */

import findAndFollowLink from './shortcuts_dashboard_navigation';
import './shortcuts';

(function() {
  var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
    hasProp = {}.hasOwnProperty;

  this.ShortcutsNavigation = (function(superClass) {
    extend(ShortcutsNavigation, superClass);

    function ShortcutsNavigation() {
      ShortcutsNavigation.__super__.constructor.call(this);
      Mousetrap.bind('g p', () => findAndFollowLink('.shortcuts-project'));
      Mousetrap.bind('g e', () => findAndFollowLink('.shortcuts-project-activity'));
      Mousetrap.bind('g f', () => findAndFollowLink('.shortcuts-tree'));
      Mousetrap.bind('g c', () => findAndFollowLink('.shortcuts-commits'));
      Mousetrap.bind('g j', () => findAndFollowLink('.shortcuts-builds'));
      Mousetrap.bind('g n', () => findAndFollowLink('.shortcuts-network'));
      Mousetrap.bind('g d', () => findAndFollowLink('.shortcuts-repository-charts'));
      Mousetrap.bind('g i', () => findAndFollowLink('.shortcuts-issues'));
      Mousetrap.bind('g b', () => findAndFollowLink('.shortcuts-issue-boards'));
      Mousetrap.bind('g m', () => findAndFollowLink('.shortcuts-merge_requests'));
      Mousetrap.bind('g t', () => findAndFollowLink('.shortcuts-todos'));
      Mousetrap.bind('g w', () => findAndFollowLink('.shortcuts-wiki'));
      Mousetrap.bind('g s', () => findAndFollowLink('.shortcuts-snippets'));
      Mousetrap.bind('i', () => findAndFollowLink('.shortcuts-new-issue'));
      this.enabledHelp.push('.hidden-shortcut.project');
    }

    return ShortcutsNavigation;
  })(Shortcuts);
}).call(window);


text:
"""
(c) April 2017 by Daniel Seita

Code for plotting behavioral cloning. No need to use command line arguments,
just run `python plot_bc.py`. Easy! Right now it generates two figures per
environment, one with validation set losses and the other with returns. The
latter is probably more interesting.
"""

import argparse
import gym
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import os
import pickle
import sys
np.set_printoptions(edgeitems=100, linewidth=100, suppress=True)

# Some matplotlib settings.
plt.style.use('seaborn-darkgrid')
error_region_alpha = 0.25
LOGDIR = 'logs/'
FIGDIR = 'figures/'
title_size = 22
tick_size = 17
legend_size = 17
ysize = 18
xsize = 18
lw = 3
ms = 8
colors = ['red', 'blue', 'yellow', 'black']

def plot_bc_modern(edir):
    """ Plot the results for this particular environment. """
    subdirs = os.listdir(LOGDIR+edir)
    print("plotting subdirs {}".format(subdirs))

    # Make it easy to count how many of each numrollouts we have.
    R_TO_COUNT = {'4':0, '11':0, '18':0, '25':0}
    R_TO_IJ = {'4':(0,2), '11':(1,0), '18':(1,1), '25':(1,2)}

    fig,axarr = plt.subplots(2, 3, figsize=(24,15))
    axarr[0,2].set_title(edir+", Returns, 4 Rollouts", fontsize=title_size)
    axarr[1,0].set_title(edir+", Returns, 11 Rollouts", fontsize=title_size)
    axarr[1,1].set_title(edir+", Returns, 18 Rollouts", fontsize=title_size)
    axarr[1,2].set_title(edir+", Returns, 25 Rollouts", fontsize=title_size)

    # Don't forget to plot the expert performance!
    exp04 = np.mean(np.load("expert_data/"+edir+"_004.npy")[()]['returns'])
    exp11 = np.mean(np.load("expert_data/"+edir+"_011.npy")[()]['returns'])
    exp18 = np.mean(np.load("expert_data/"+edir+"_018.npy")[()]['returns'])
    axarr[0,2].axhline(y=exp04, color='brown', lw=lw, linestyle='--', label='expert')
    axarr[1,0].axhline(y=exp11, color='brown', lw=lw, linestyle='--', label='expert')
    axarr[1,1].axhline(y=exp18, color='brown', lw=lw, linestyle='--', label='expert')
    if 'Reacher' not in edir:
        exp25 = np.mean(np.load("expert_data/"+edir+"_025.npy")[()]['returns'])
        axarr[1,2].axhline(y=exp25, color='brown', lw=lw, linestyle='--', label='expert')

    for dd in subdirs:
        ddsplit = dd.split("_") # `dd` is of the form `numroll_X_seed_Y`
        numroll, seed = ddsplit[1], ddsplit[3]
        xcoord   = np.load(LOGDIR+edir+"/"+dd+"/iters.npy")
        tr_loss  = np.load(LOGDIR+edir+"/"+dd+"/tr_loss.npy")
        val_loss = np.load(LOGDIR+edir+"/"+dd+"/val_loss.npy")
        returns  = np.load(LOGDIR+edir+"/"+dd+"/returns.npy")
        mean_ret = np.mean(returns, axis=1)
        std_ret  = np.std(returns, axis=1)

        # Playing with dictionaries
        ijcoord = R_TO_IJ[numroll]
        cc = colors[ R_TO_COUNT[numroll] ]
        R_TO_COUNT[numroll] += 1

        axarr[ijcoord].plot(xcoord, mean_ret, lw=lw, color=cc, label=dd)
        axarr[ijcoord].fill_between(xcoord,
                mean_ret-std_ret,
                mean_ret+std_ret,
                alpha=error_region_alpha,
                facecolor=cc)

        # Cram the training and validation losses on these subplots.
        axarr[0,0].plot(xcoord, tr_loss, lw=lw, label=dd)
        axarr[0,1].plot(xcoord, val_loss, lw=lw, label=dd)

    boring_stuff(axarr, edir)
    plt.tight_layout()
    plt.savefig(FIGDIR+edir+".png")

def plot_bc_humanoid(edir):
    """ Plots humanoid. The argument here is kind of redundant... also, I guess
    we'll have to ignore one of the plots here since Humanoid will have 5
    subplots. Yeah, it's a bit awkward.
    """
    assert edir == "Humanoid-v1"
    subdirs = os.listdir(LOGDIR+edir)
    print("plotting subdirs {}".format(subdirs))

    # Make it easy to count how many of each numrollouts we have.
    R_TO_COUNT = {'80':0, '160':0, '240':0}
    R_TO_IJ = {'80':(1,0), '160':(1,1), '240':(1,2)}

    fig,axarr = plt.subplots(2, 3, figsize=(24,15))
    axarr[0,2].set_title("Empty Plot", fontsize=title_size)
    axarr[1,0].set_title(edir+", Returns, 80 Rollouts", fontsize=title_size)
    axarr[1,1].set_title(edir+", Returns, 160 Rollouts", fontsize=title_size)
    axarr[1,2].set_title(edir+", Returns, 240 Rollouts", fontsize=title_size)

    # Plot expert performance (um, this takes a while...).
    exp080 = np.mean(np.load("expert_data/"+edir+"_080.npy")[()]['returns'])
    exp160 = np.mean(np.load("expert_data/"+edir+"_160.npy")[()]['returns'])
    exp240 = np.mean(np.load("expert_data/"+edir+"_240.npy")[()]['returns'])
    axarr[1,0].axhline(y=exp080, color='brown', lw=lw, linestyle='--', label='expert')
    axarr[1,1].axhline(y=exp160, color='brown', lw=lw, linestyle='--', label='expert')
    axarr[1,2].axhline(y=exp240, color='brown', lw=lw, linestyle='--', label='expert')

    for dd in subdirs:
        ddsplit = dd.split("_") # `dd` is of the form `numroll_X_seed_Y`
        numroll, seed = ddsplit[1], ddsplit[3]
        xcoord   = np.load(LOGDIR+edir+"/"+dd+"/iters.npy")
        tr_loss  = np.load(LOGDIR+edir+"/"+dd+"/tr_loss.npy")
        val_loss = np.load(LOGDIR+edir+"/"+dd+"/val_loss.npy")
        returns  = np.load(LOGDIR+edir+"/"+dd+"/returns.npy")
        mean_ret = np.mean(returns, axis=1)
        std_ret  = np.std(returns, axis=1)

        # Playing with dictionaries
        ijcoord = R_TO_IJ[numroll]
        cc = colors[ R_TO_COUNT[numroll] ]
        R_TO_COUNT[numroll] += 1

        axarr[ijcoord].plot(xcoord, mean_ret, lw=lw, color=cc, label=dd)
        axarr[ijcoord].fill_between(xcoord,
                mean_ret-std_ret,
                mean_ret+std_ret,
                alpha=error_region_alpha,
                facecolor=cc)

        # Cram the training and validation losses on these subplots.
        axarr[0,0].plot(xcoord, tr_loss, lw=lw, label=dd)
        axarr[0,1].plot(xcoord, val_loss, lw=lw, label=dd)

    boring_stuff(axarr, edir)
    plt.tight_layout()
    plt.savefig(FIGDIR+edir+".png")

def boring_stuff(axarr, edir):
    """ Axes, titles, legends, etc. Yeah yeah ... """
    for i in range(2):
        for j in range(3):
            if i == 0 and j == 0:
                axarr[i,j].set_ylabel("Loss Training MBs", fontsize=ysize)
            if i == 0 and j == 1:
                axarr[i,j].set_ylabel("Loss Validation Set", fontsize=ysize)
            else:
                axarr[i,j].set_ylabel("Average Return", fontsize=ysize)
            axarr[i,j].set_xlabel("Training Minibatches", fontsize=xsize)
            axarr[i,j].tick_params(axis='x', labelsize=tick_size)
            axarr[i,j].tick_params(axis='y', labelsize=tick_size)
            axarr[i,j].legend(loc="best", prop={'size':legend_size})
            axarr[i,j].legend(loc="best", prop={'size':legend_size})
    axarr[0,0].set_title(edir+", Training Losses", fontsize=title_size)
    axarr[0,1].set_title(edir+", Validation Losses", fontsize=title_size)
    axarr[0,0].set_yscale('log')
    axarr[0,1].set_yscale('log')

def plot_bc(e):
    """ Split into cases. It makes things easier for me. """
    env_to_method = {'Ant-v1': plot_bc_modern,
                     'HalfCheetah-v1': plot_bc_modern,
                     'Hopper-v1': plot_bc_modern,
                     'Walker2d-v1': plot_bc_modern,
                     'Reacher-v1': plot_bc_modern,
                     'Humanoid-v1': plot_bc_humanoid}
    env_to_method[e](e)

if __name__ == "__main__":
    env_dirs = [e for e in os.listdir(LOGDIR) if "text" not in e]
    print("Plotting with one figure per env_dirs = {}".format(env_dirs))
    for e in env_dirs:
        plot_bc(e)


text:
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics.Contracts;

namespace System.Data.Common
{
  // Summary:
  //     Aids implementation of the System.Data.IDbDataAdapter interface. Inheritors
  //     of System.Data.Common.DbDataAdapter implement a set of functions to provide
  //     strong typing, but inherit most of the functionality needed to fully implement
  //     a DataAdapter.
  public abstract class DbDataAdapter//  : DataAdapter, IDbDataAdapter, IDataAdapter, ICloneable
  {
    // Summary:
    //     The default name used by the System.Data.Common.DataAdapter object for table
    //     mappings.
    public const string DefaultSourceTableName = "Table";

    // Summary:
    //     Initializes a new instance of a DataAdapter class.
    //protected DbDataAdapter();
    //
    // Summary:
    //     Initializes a new instance of a DataAdapter class from an existing object
    //     of the same type.
    //
    // Parameters:
    //   adapter:
    //     A DataAdapter object used to create the new DataAdapter.
    //protected DbDataAdapter(DbDataAdapter adapter);

    // Summary:
    //     Gets or sets a command for deleting records from the data set.
    //
    // Returns:
    //     An System.Data.IDbCommand used during System.Data.IDataAdapter.Update(System.Data.DataSet)
    //     to delete records in the data source for deleted rows in the data set.
    //[Browsable(false)]
    //[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    //public DbCommand DeleteCommand { get; set; }
    //
    // Summary:
    //     Gets or sets the behavior of the command used to fill the data adapter.
    //
    // Returns:
    //     The System.Data.CommandBehavior of the command used to fill the data adapter.
    //protected internal CommandBehavior FillCommandBehavior { get; set; }
    //
    // Summary:
    //     Gets or sets a command used to insert new records into the data source.
    //
    // Returns:
    //     A System.Data.IDbCommand used during System.Data.IDataAdapter.Update(System.Data.DataSet)
    //     to insert records in the data source for new rows in the data set.
    //[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    //[Browsable(false)]
    //public DbCommand InsertCommand { get; set; }
    //
    // Summary:
    //     Gets or sets a command used to select records in the data source.
    //
    // Returns:
    //     A System.Data.IDbCommand that is used during System.Data.IDataAdapter.Update(System.Data.DataSet)
    //     to select records from data source for placement in the data set.
    //[Browsable(false)]
    //[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    //public DbCommand SelectCommand { get; set; }
    //
    // Summary:
    //     Gets or sets a value that enables or disables batch processing support, and
    //     specifies the number of commands that can be executed in a batch.
    //
    // Returns:
    //     The number of rows to process per batch. Value isEffect0There is no limit
    //     on the batch size.1Disables batch updating.> 1Changes are sent using batches
    //     of System.Data.Common.DbDataAdapter.UpdateBatchSize operations at a time.When
    //     setting this to a value other than 1 ,all the commands associated with the
    //     System.Data.Common.DbDataAdapter must have their System.Data.IDbCommand.UpdatedRowSource
    //     property set to None or OutputParameters. An exception will be thrown otherwise.
    //[ResDescription("DbDataAdapter_UpdateBatchSize")]
    //[DefaultValue(1)]
    //[ResCategory("DataCategory_Update")]
    //public virtual int UpdateBatchSize { get; set; }
    //
    // Summary:
    //     Gets or sets a command used to update records in the data source.
    //
    // Returns:
    //     A System.Data.IDbCommand used during System.Data.IDataAdapter.Update(System.Data.DataSet)
    //     to update records in the data source for modified rows in the data set.
    //[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    //[Browsable(false)]
    //public DbCommand UpdateCommand { get; set; }

    // Summary:
    //     Adds a System.Data.IDbCommand to the current batch.
    //
    // Parameters:
    //   command:
    //     The System.Data.IDbCommand to add to the batch.
    //
    // Returns:
    //     The number of commands in the batch before adding the System.Data.IDbCommand.
    //
    // Exceptions:
    //   System.NotSupportedException:
    //     The adapter does not support batches.
    //protected virtual int AddToBatch(IDbCommand command);
    //
    // Summary:
    //     Removes all System.Data.IDbCommand objects from the batch.
    //
    // Exceptions:
    //   System.NotSupportedException:
    //     The adapter does not support batches.
    //protected virtual void ClearBatch();
    //
    // Summary:
    //     Initializes a new instance of the System.Data.Common.RowUpdatedEventArgs
    //     class.
    //
    // Parameters:
    //   dataRow:
    //     The System.Data.DataRow used to update the data source.
    //
    //   command:
    //     The System.Data.IDbCommand executed during the System.Data.IDataAdapter.Update(System.Data.DataSet).
    //
    //   statementType:
    //     Whether the command is an UPDATE, INSERT, DELETE, or SELECT statement.
    //
    //   tableMapping:
    //     A System.Data.Common.DataTableMapping object.
    //
    // Returns:
    //     A new instance of the System.Data.Common.RowUpdatedEventArgs class.
    //protected virtual RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping);
    //
    // Summary:
    //     Initializes a new instance of the System.Data.Common.RowUpdatingEventArgs
    //     class.
    //
    // Parameters:
    //   dataRow:
    //     The System.Data.DataRow that updates the data source.
    //
    //   command:
    //     The System.Data.IDbCommand to execute during the System.Data.IDataAdapter.Update(System.Data.DataSet).
    //
    //   statementType:
    //     Whether the command is an UPDATE, INSERT, DELETE, or SELECT statement.
    //
    //   tableMapping:
    //     A System.Data.Common.DataTableMapping object.
    //
    // Returns:
    //     A new instance of the System.Data.Common.RowUpdatingEventArgs class.
    //protected virtual RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping);
    //
    // Summary:
    //     Releases the unmanaged resources used by the System.Data.Common.DbDataAdapter
    //     and optionally releases the managed resources.
    //
    // Parameters:
    //   disposing:
    //     true to release both managed and unmanaged resources; false to release only
    //     unmanaged resources.
    //protected override void Dispose(bool disposing);
    //
    // Summary:
    //     Executes the current batch.
    //
    // Returns:
    //     The return value from the last command in the batch.
    //protected virtual int ExecuteBatch();
    //
    // Summary:
    //     Adds or refreshes rows in the System.Data.DataSet.
    //
    // Parameters:
    //   dataSet:
    //     A System.Data.DataSet to fill with records and, if necessary, schema.
    //
    // Returns:
    //     The number of rows successfully added to or refreshed in the System.Data.DataSet.
    //     This does not include rows affected by statements that do not return rows.
    //public override int Fill(DataSet dataSet);
    //
    // Summary:
    //     Adds or refreshes rows in a specified range in the System.Data.DataSet to
    //     match those in the data source using the System.Data.DataTable name.
    //
    // Parameters:
    //   dataTable:
    //     The name of the System.Data.DataTable to use for table mapping.
    //
    // Returns:
    //     The number of rows successfully added to or refreshed in the System.Data.DataSet.
    //     This does not include rows affected by statements that do not return rows.
    //
    // Exceptions:
    //   System.InvalidOperationException:
    //     The source table is invalid.
    public int Fill(DataTable dataTable)
    {
      Contract.Ensures(Contract.Result<int>() >= 0);

      return default(int);
    }
    //
    // Summary:
    //     Adds or refreshes rows in the System.Data.DataSet to match those in the data
    //     source using the System.Data.DataSet and System.Data.DataTable names.
    //
    // Parameters:
    //   dataSet:
    //     A System.Data.DataSet to fill with records and, if necessary, schema.
    //
    //   srcTable:
    //     The name of the source table to use for table mapping.
    //
    // Returns:
    //     The number of rows successfully added to or refreshed in the System.Data.DataSet.
    //     This does not include rows affected by statements that do not return rows.
    //
    // Exceptions:
    //   System.SystemException:
    //     The source table is invalid.
    public int Fill(DataSet dataSet, string srcTable)
          {
      Contract.Ensures(Contract.Result<int>() >= 0);

      return default(int);
    }
    //
    // Summary:
    //     Adds or refreshes rows in a System.Data.DataTable to match those in the data
    //     source using the specified System.Data.DataTable, System.Data.IDbCommand
    //     and System.Data.CommandBehavior.
    //
    // Parameters:
    //   dataTable:
    //     A System.Data.DataTable to fill with records and, if necessary, schema.
    //
    //   command:
    //     The SQL SELECT statement used to retrieve rows from the data source.
    //
    //   behavior:
    //     One of the System.Data.CommandBehavior values.
    //
    // Returns:
    //     The number of rows successfully added to or refreshed in the System.Data.DataTable.
    //     This does not include rows affected by statements that do not return rows.
    //protected virtual int Fill(DataTable dataTable, IDbCommand command, CommandBehavior behavior)
    //{
    //  Contract.Ensures(Contract.Result<int>() >= 0);

    //  return default(int);
    //}
    //
    // Summary:
    //     Adds or refreshes rows in a System.Data.DataTable to match those in the data
    //     source starting at the specified record and retrieving up to the specified
    //     maximum number of records.
    //
    // Parameters:
    //   startRecord:
    //     The zero-based record number to start with.
    //
    //   maxRecords:
    //     The maximum number of records to retrieve.
    //
    //   dataTables:
    //     The System.Data.DataTable objects to fill from the data source.
    //
    // Returns:
    //     The number of rows successfully added to or refreshed in the System.Data.DataTable.
    //     This value does not include rows affected by statements that do not return
    //     rows.
    public int Fill(int startRecord, int maxRecords, params DataTable[] dataTables)
    {
      Contract.Requires(dataTables != null);
      Contract.Requires(startRecord >= 0);
      Contract.Requires(maxRecords >= 0);

      Contract.Ensures(Contract.Result<int>() >= 0);

      return default(int);
    }
    //
    // Summary:
    //     Adds or refreshes rows in a specified range in the System.Data.DataSet to
    //     match those in the data source using the System.Data.DataSet and System.Data.DataTable
    //     names.
    //
    // Parameters:
    //   dataSet:
    //     A System.Data.DataSet to fill with records and, if necessary, schema.
    //
    //   startRecord:
    //     The zero-based record number to start with.
    //
    //   maxRecords:
    //     The maximum number of records to retrieve.
    //
    //   srcTable:
    //     The name of the source table to use for table mapping.
    //
    // Returns:
    //     The number of rows successfully added to or refreshed in the System.Data.DataSet.
    //     This does not include rows affected by statements that do not return rows.
    //
    // Exceptions:
    //   System.SystemException:
    //     The System.Data.DataSet is invalid.
    //
    //   System.InvalidOperationException:
    //     The source table is invalid.-or- The connection is invalid.
    //
    //   System.InvalidCastException:
    //     The connection could not be found.
    //
    //   System.ArgumentException:
    //     The startRecord parameter is less than 0.-or- The maxRecords parameter is
    //     less than 0.
    public int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable)
    {
      Contract.Requires(dataSet != null);
      Contract.Requires(startRecord >= 0);
      Contract.Requires(maxRecords >= 0);

      Contract.Ensures(Contract.Result<int>() >= 0);

      return default(int);
    }
    //
    // Summary:
    //     Adds or refreshes rows in a specified range in the System.Data.DataSet to
    //     match those in the data source using the System.Data.DataSet and System.Data.DataTable
    //     names.
    //
    // Parameters:
    //   dataTables:
    //     The System.Data.DataTable objects to fill from the data source.
    //
    //   startRecord:
    //     The zero-based record number to start with.
    //
    //   maxRecords:
    //     The maximum number of records to retrieve.
    //
    //   command:
    //     The System.Data.IDbCommand executed to fill the System.Data.DataTable objects.
    //
    //   behavior:
    //     One of the System.Data.CommandBehavior values.
    //
    // Returns:
    //     The number of rows added to or refreshed in the data tables.
    //
    // Exceptions:
    //   System.SystemException:
    //     The System.Data.DataSet is invalid.
    //
    //   System.InvalidOperationException:
    //     The source table is invalid.-or- The connection is invalid.
    //
    //   System.InvalidCastException:
    //     The connection could not be found.
    //
    //   System.ArgumentException:
    //     The startRecord parameter is less than 0.-or- The maxRecords parameter is
    //     less than 0.
    //protected virtual int Fill(DataTable[] dataTables, int startRecord, int maxRecords, IDbCommand command, CommandBehavior behavior)

    //
    // Summary:
    //     Adds or refreshes rows in a specified range in the System.Data.DataSet to
    //     match those in the data source using the System.Data.DataSet and source table
    //     names, command string, and command behavior.
    //
    // Parameters:
    //   dataSet:
    //     A System.Data.DataSet to fill with records and, if necessary, schema.
    //
    //   startRecord:
    //     The zero-based record number to start with.
    //
    //   maxRecords:
    //     The maximum number of records to retrieve.
    //
    //   srcTable:
    //     The name of the source table to use for table mapping.
    //
    //   command:
    //     The SQL SELECT statement used to retrieve rows from the data source.
    //
    //   behavior:
    //     One of the System.Data.CommandBehavior values.
    //
    // Returns:
    //     The number of rows successfully added to or refreshed in the System.Data.DataSet.
    //     This does not include rows affected by statements that do not return rows.
    //
    // Exceptions:
    //   System.InvalidOperationException:
    //     The source table is invalid.
    //
    //   System.ArgumentException:
    //     The startRecord parameter is less than 0.-or- The maxRecords parameter is
    //     less than 0.
    //protected virtual int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior);
    //
    // Summary:
    //     Adds a System.Data.DataTable named "Table" to the specified System.Data.DataSet
    //     and configures the schema to match that in the data source based on the specified
    //     System.Data.SchemaType.
    //
    // Parameters:
    //   dataSet:
    //     A System.Data.DataSet to insert the schema in.
    //
    //   schemaType:
    //     One of the System.Data.SchemaType values that specify how to insert the schema.
    //
    // Returns:
    //     A reference to a collection of System.Data.DataTable objects that were added
    //     to the System.Data.DataSet.
    //public override DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType);
    //
    // Summary:
    //     Configures the schema of the specified System.Data.DataTable based on the
    //     specified System.Data.SchemaType.
    //
    // Parameters:
    //   dataTable:
    //     The System.Data.DataTable to be filled with the schema from the data source.
    //
    //   schemaType:
    //     One of the System.Data.SchemaType values.
    //
    // Returns:
    //     A System.Data.DataTable that contains schema information returned from the
    //     data source.
    //public DataTable FillSchema(DataTable dataTable, SchemaType schemaType)
    //{
    //  Contract.Requires(dataTable != null);

    //  Contract.Ensures(Contract.Result<DataTable>() != null);

    //  return default(DataTable);
    //}
    //
    // Summary:
    //     Adds a System.Data.DataTable to the specified System.Data.DataSet and configures
    //     the schema to match that in the data source based upon the specified System.Data.SchemaType
    //     and System.Data.DataTable.
    //
    // Parameters:
    //   dataSet:
    //     A System.Data.DataSet to insert the schema in.
    //
    //   schemaType:
    //     One of the System.Data.SchemaType values that specify how to insert the schema.
    //
    //   srcTable:
    //     The name of the source table to use for table mapping.
    //
    // Returns:
    //     A reference to a collection of System.Data.DataTable objects that were added
    //     to the System.Data.DataSet.
    //
    // Exceptions:
    //   System.ArgumentException:
    //     A source table from which to get the schema could not be found.
    //public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable)

    //
    // Summary:
    //     Configures the schema of the specified System.Data.DataTable based on the
    //     specified System.Data.SchemaType, command string, and System.Data.CommandBehavior
    //     values.
    //
    // Parameters:
    //   dataTable:
    //     The System.Data.DataTable to be filled with the schema from the data source.
    //
    //   schemaType:
    //     One of the System.Data.SchemaType values.
    //
    //   command:
    //     The SQL SELECT statement used to retrieve rows from the data source.
    //
    //   behavior:
    //     One of the System.Data.CommandBehavior values.
    //
    // Returns:
    //     A of System.Data.DataTable object that contains schema information returned
    //     from the data source.
    //protected virtual DataTable FillSchema(DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior);
    //
    // Summary:
    //     Adds a System.Data.DataTable to the specified System.Data.DataSet and configures
    //     the schema to match that in the data source based on the specified System.Data.SchemaType.
    //
    // Parameters:
    //   dataSet:
    //     The System.Data.DataSet to be filled with the schema from the data source.
    //
    //   schemaType:
    //     One of the System.Data.SchemaType values.
    //
    //   command:
    //     The SQL SELECT statement used to retrieve rows from the data source.
    //
    //   srcTable:
    //     The name of the source table to use for table mapping.
    //
    //   behavior:
    //     One of the System.Data.CommandBehavior values.
    //
    // Returns:
    //     An array of System.Data.DataTable objects that contain schema information
    //     returned from the data source.
    //protected virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior);
    //
    // Summary:
    //     Returns a System.Data.IDataParameter from one of the commands in the current
    //     batch.
    //
    // Parameters:
    //   commandIdentifier:
    //     The index of the command to retrieve the parameter from.
    //
    //   parameterIndex:
    //     The index of the parameter within the command.
    //
    // Returns:
    //     The System.Data.IDataParameter specified.
    //
    // Exceptions:
    //   System.NotSupportedException:
    //     The adapter does not support batches.
    //protected virtual IDataParameter GetBatchedParameter(int commandIdentifier, int parameterIndex);
    //
    // Summary:
    //     Returns information about an individual update attempt within a larger batched
    //     update.
    //
    // Parameters:
    //   commandIdentifier:
    //     The zero-based column ordinal of the individual command within the batch.
    //
    //   recordsAffected:
    //     The number of rows affected in the data store by the specified command within
    //     the batch.
    //
    //   error:
    //     An System.Exception thrown during execution of the specified command. Returns
    //     null (Nothing in Visual Basic) if no exception is thrown.
    //protected virtual bool GetBatchedRecordsAffected(int commandIdentifier, out int recordsAffected, out Exception error);
    //
    // Summary:
    //     Gets the parameters set by the user when executing an SQL SELECT statement.
    //
    // Returns:
    //     An array of System.Data.IDataParameter objects that contains the parameters
    //     set by the user.
    //[EditorBrowsable(EditorBrowsableState.Advanced)]
    //public override IDataParameter[] GetFillParameters();
    //
    // Summary:
    //     Initializes batching for the System.Data.Common.DbDataAdapter.
    //
    // Exceptions:
    //   System.NotSupportedException:
    //     The adapter does not support batches.
    //protected virtual void InitializeBatching();
    //
    // Summary:
    //     Raises the RowUpdated event of a .NET Framework data provider.
    //
    // Parameters:
    //   value:
    //     A System.Data.Common.RowUpdatedEventArgs that contains the event data.
    //protected virtual void OnRowUpdated(RowUpdatedEventArgs value);
    //
    // Summary:
    //     Raises the RowUpdating event of a .NET Framework data provider.
    //
    // Parameters:
    //   value:
    //     An System.Data.Common.RowUpdatingEventArgs that contains the event data.
    //protected virtual void OnRowUpdating(RowUpdatingEventArgs value);
    //
    // Summary:
    //     Ends batching for the System.Data.Common.DbDataAdapter.
    //
    // Exceptions:
    //   System.NotSupportedException:
    //     The adapter does not support batches.
    //protected virtual void TerminateBatching();
    //
    // Summary:
    //     Calls the respective INSERT, UPDATE, or DELETE statements for each inserted,
    //     updated, or deleted row in the specified array of System.Data.DataRow objects.
    //
    // Parameters:
    //   dataRows:
    //     An array of System.Data.DataRow objects used to update the data source.
    //
    // Returns:
    //     The number of rows successfully updated from the System.Data.DataSet.
    //
    // Exceptions:
    //   System.ArgumentNullException:
    //     The System.Data.DataSet is invalid.
    //
    //   System.InvalidOperationException:
    //     The source table is invalid.
    //
    //   System.SystemException:
    //     No System.Data.DataRow exists to update.-or- No System.Data.DataTable exists
    //     to update.-or- No System.Data.DataSet exists to use as a source.
    //
    //   System.Data.DBConcurrencyException:
    //     An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in
    //     zero records affected.
    public int Update(DataRow[] dataRows)
    {
      Contract.Requires(dataRows != null);

      Contract.Ensures(Contract.Result<int>() >= 0);

      return default(int);
    }
    //
    // Summary:
    //     Calls the respective INSERT, UPDATE, or DELETE statements for each inserted,
    //     updated, or deleted row in the specified System.Data.DataSet.
    //
    // Parameters:
    //   dataSet:
    //     The System.Data.DataSet used to update the data source.
    //
    // Returns:
    //     The number of rows successfully updated from the System.Data.DataSet.
    //
    // Exceptions:
    //   System.InvalidOperationException:
    //     The source table is invalid.
    //
    //   System.Data.DBConcurrencyException:
    //     An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in
    //     zero records affected.
    //public override int Update(DataSet dataSet);
    //
    // Summary:
    //     Calls the respective INSERT, UPDATE, or DELETE statements for each inserted,
    //     updated, or deleted row in the specified System.Data.DataTable.
    //
    // Parameters:
    //   dataTable:
    //     The System.Data.DataTable used to update the data source.
    //
    // Returns:
    //     The number of rows successfully updated from the System.Data.DataTable.
    //
    // Exceptions:
    //   System.ArgumentNullException:
    //     The System.Data.DataSet is invalid.
    //
    //   System.InvalidOperationException:
    //     The source table is invalid.
    //
    //   System.SystemException:
    //     No System.Data.DataRow exists to update.-or- No System.Data.DataTable exists
    //     to update.-or- No System.Data.DataSet exists to use as a source.
    //
    //   System.Data.DBConcurrencyException:
    //     An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in
    //     zero records affected.
    public int Update(DataTable dataTable)
    {
      Contract.Requires(dataTable != null);

      Contract.Ensures(Contract.Result<int>() >= 0);

      return default(int);
    }
    //
    // Summary:
    //     Calls the respective INSERT, UPDATE, or DELETE statements for each inserted,
    //     updated, or deleted row in the specified array of System.Data.DataRow objects.
    //
    // Parameters:
    //   dataRows:
    //     An array of System.Data.DataRow objects used to update the data source.
    //
    //   tableMapping:
    //     The System.Data.IDataAdapter.TableMappings collection to use.
    //
    // Returns:
    //     The number of rows successfully updated from the System.Data.DataSet.
    //
    // Exceptions:
    //   System.ArgumentNullException:
    //     The System.Data.DataSet is invalid.
    //
    //   System.InvalidOperationException:
    //     The source table is invalid.
    //
    //   System.SystemException:
    //     No System.Data.DataRow exists to update.-or- No System.Data.DataTable exists
    //     to update.-or- No System.Data.DataSet exists to use as a source.
    //
    //   System.Data.DBConcurrencyException:
    //     An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in
    //     zero records affected.
    //protected virtual int Update(DataRow[] dataRows, DataTableMapping tableMapping);
    //
    // Summary:
    //     Calls the respective INSERT, UPDATE, or DELETE statements for each inserted,
    //     updated, or deleted row in the System.Data.DataSet with the specified System.Data.DataTable
    //     name.
    //
    // Parameters:
    //   dataSet:
    //     The System.Data.DataSet to use to update the data source.
    //
    //   srcTable:
    //     The name of the source table to use for table mapping.
    //
    // Returns:
    //     The number of rows successfully updated from the System.Data.DataSet.
    //
    // Exceptions:
    //   System.ArgumentNullException:
    //     The System.Data.DataSet is invalid.
    //
    //   System.InvalidOperationException:
    //     The source table is invalid.
    //
    //   System.Data.DBConcurrencyException:
    //     An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in
    //     zero records affected.
    public int Update(DataSet dataSet, string srcTable)
    {
      Contract.Requires(dataSet != null);
      Contract.Requires(srcTable != null);

      Contract.Ensures(Contract.Result<int>() >= 0);

      return default(int);
    }
  }
}


text:
package org.jitsi.jigasi.transcription;

import net.java.sip.communicator.service.protocol.*;
import org.json.*;

import java.util.*;

/**
 * Pushes transcriptions to remote services.
 *
 * @author Damian Minkov
 */
public class RemotePublisherTranscriptionHandler
    extends LocalJsonTranscriptHandler
    implements TranscriptionEventListener
{
    /**
     * List of remote services to notify for transcriptions.
     */
    private List<String> urls = new ArrayList<>();

    /**
     * Constructs RemotePublisherTranscriptionHandler, initializing its config.
     *
     * @param urlsStr String containing urls of remote services, separated
     * by ','.
     */
    public RemotePublisherTranscriptionHandler(String urlsStr)
    {
        super();

        // initialize tokens
        StringTokenizer tokens = new StringTokenizer(urlsStr, ",");
        while (tokens.hasMoreTokens())
        {
            urls.add(tokens.nextToken().trim());
        }
    }

    @Override
    public void publish(ChatRoom room, TranscriptionResult result)
    {
        if (result.isInterim())
            return;

        JSONObject eventObject = createTranscriptionJSONObject(result);

        eventObject.put(
            LocalJsonTranscriptHandler
                .JSON_KEY_FINAL_TRANSCRIPT_ROOM_NAME,
            result.getParticipant().getTranscriber().getRoomName());

        // adds event type to the encapsulating object to be consistent
        // with the events we push to the remote service
        eventObject.put(
            LocalJsonTranscriptHandler
                .JSON_KEY_EVENT_EVENT_TYPE,
            Transcript.TranscriptEventType.SPEECH.toString());

        for (String url : urls)
        {
            Util.postJSON(url, eventObject);
        }
    }

    @Override
    public void notify(Transcriber transcriber, TranscriptEvent event)
    {
        JSONObject object = new JSONObject();
        object.put(
            JSON_KEY_FINAL_TRANSCRIPT_ROOM_NAME,
            transcriber.getRoomName());

        if (event.getEvent() == Transcript.TranscriptEventType.JOIN
            || event.getEvent() == Transcript.TranscriptEventType.LEAVE)
        {
            addEventDescriptions(object, event);
        }
        else if (event.getEvent() == Transcript.TranscriptEventType.START
            || event.getEvent() == Transcript.TranscriptEventType.END)
        {
            object.put(JSON_KEY_EVENT_EVENT_TYPE,
                event.getEvent().toString());
            object.put(JSON_KEY_EVENT_TIMESTAMP,
                event.getTimeStamp().toString());
        }

        for (String url : urls)
        {
            Util.postJSON(url, object);
        }
    }
}


text:
<?php

/* Creation: Mon Oct 10 21:04:01 GMT 2011
 * Class definition: Class that house the definition for building the category object
 * Class Path: /src/Tohouri/StoreBundle/Entity/Category.php
 */

namespace Tohouri\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Tohouri\StoreBundle\Entity\Category
 *
 * @ORM\Table(name="category")
 * @ORM\Entity
 */
class Category
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=255)
     */
    private $name;

    /**
     * @var text $description
     *
     * @ORM\Column(name="description", type="text")
     */
    private $description;

	/**
	* @ORM\OneToMany(targetEntity="Product", mappedBy="category")
	*/
	protected $products;

	public function __toString()
	{
		return $this->getName();
	}
    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
    public function __construct()
    {
        $this->products = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Add products
     *
     * @param Tohouri\StoreBundle\Entity\Product $products
     */
    public function addProduct(\Tohouri\StoreBundle\Entity\Product $products)
    {
        $this->products[] = $products;
    }

    /**
     * Get products
     *
     * @return Doctrine\Common\Collections\Collection
     */
    public function getProducts()
    {
        return $this->products;
    }

    /**
     * Set description
     *
     * @param text $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return text
     */
    public function getDescription()
    {
        return $this->description;
    }
}


text:
'use strict';

/* Filters */

angular.module('hitClickFilters', []).filter('clickable', function() {
	return function(input) {
		return input ? '\u2713' : '\u2718';
	};
});


text:
package com.mikegagnon.decl

import com.twitter.algebird.Monoid

object TaskSetBuilder {

  implicit def toTaskSet[V: Ordering](builder: TaskSetBuilder[V]) =
    new TaskSet[V] {
      override val groupByKey = builder.groupByKey
      override val tasks = builder.tasks
    }
}

abstract class TaskSetBuilder[V: Ordering] {

  val groupByKey: Feature[V]
  final var tasks = Set[Task]()

  final def include(tasksets: TaskSet[V]*): TaskSetBuilder[V] = {
    tasksets.foreach { taskset =>
      require(taskset.groupByKey == groupByKey)
    }
    tasks ++= Monoid.sum(tasksets.map{ _.tasks })
    this
  }

  final def Load[InArgs, InTypes, OutFeatures, OutTypes]
      (inOut: (InArgs, OutFeatures))
      (fn: Function1[InTypes, OutTypes])
      (implicit
        input: LoadTaskInput[InArgs, InTypes],
        output: Output[OutFeatures, OutTypes]) = {
    val task = LoadTask(inOut)(fn)
    tasks += task
    task
  }

  final def Compute[InArgs, InTypes, OutFeatures, OutTypes]
      (inOut: (InArgs, OutFeatures))
      (fn: Function1[InTypes, OutTypes])
      (implicit
       input: Input[InArgs, InTypes],
       output: Output[OutFeatures, OutTypes]) = {
    val task = ComputeTask(inOut)(fn)
    tasks += task
    task
  }

}


text:
/* WFFM Module Default Stylesheet */
.scfForm input[type=checkbox]{
    width: 20px;
    height: 20px;
}
.scfForm input[type=radio]{
width:15px;
height:15px;
}

.scfForm input,
.scfForm select,
.scfForm textarea
{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    /* height: 15px; */
    /* width: 15px; */
}

.scChromeDataHolder
{
    display:block;
}

.scfForm textarea {
    resize: none;
}

/* Form */
.scfForm
{
    height: 100%;
    width: 100%;
    text-align: left;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    line-height: 1.4em;

}

.form-title
{
    margin-top: 0px;
    margin-bottom: 0px;
    color: red ;
      font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    font-size: 1.8em;
    line-height: 1.1em;
    margin: 5px 0pt;
    text-decoration: none;
    font-weight: bold;
	/*font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff;*/
}

/* Form Introduction*/
.form-introduction
{

}

/* Form Footer*/
.form-footer
{
}

/* Submit Button*/
.form-submit-border
{
text-align:center;
}

.form-submit
{
}

/* Error */
.error-message
{
}

/* Validation */
.form-validation-summary
{
   display:none !important;
}

.scfValidatorRequired, .field-required
{
    margin: 0px 0px;
    float: right;
}

.field-error
{
    margin: 0px;
    display: block;
    float: left;
}

/* Forms section*/
.display-section-fieldset
{
    padding: 0px 15px 15px 15px;
    border: 0px;
    border-top: solid 2px;
    margin: 0px 30px;
}

.display-section-legend
{
    padding: 7px 13px 8px 13px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
}

.display-section-border
{
    margin: 0px;
    padding: 0px;
    width: 100%;
}

.display-section-content
{
    width: 100%;
    float: left;
	font-size:14px;
}

.display-section-info
{
    width: 100%; /*padding: 5px 0px 0px 20px;*/
    vertical-align: top;
    display: inline;
}

/* Form fields */
/* Checkbox */

.checkbox-border
{
    clear: left;
    text-align: left;
    display: block;
    margin: 5px 0px;
    width: 100%;
}

.checkbox-content
{
    width: 100%;
    display: block;
    padding: 0px 0px;
    margin: 0px;
}

.checkbox-info
{
    font-size: 0.9em;
    display: block;
    width: 100%;
    padding: 0px 3px;
}

.field-border
{
    clear: left;
    text-align: left;
    display: block;
    margin: 5px 0px;
    width: 100%;
    vertical-align: top;
}

.field-content
{
   display: block;
    overflow: hidden;

}
.field-content input, textarea, select{
    width: 100%;
}

.list-content {
    margin: 0;
    width: 100%;
}

.field-title
{
    padding: 3px 0px;
    width: 30%;
    display: block;
    float: left;
    clear: both;
}

.field-panel
{
    /*margin: 0px 3px;*/
    padding: 0px 2px 0px 0px;
    width: 70%;
    display: block;
    float: left;
}

.field-info
{
    padding-left: 3px;
    font-size: 0.9em;
    width: 100%;
    display: block;
    float: left;
}

.field-datebox-content
{
    width: 32%;
    margin: 0px;
}

.scfDateSelectorLabel
{
    margin-top: 7px;
}

.field-datebox-title
{
    padding: 0px 0px 1px 0px;
    margin: 0px;
    display: block;
    float: left;
    font-size: xx-small;
    line-height: 10px;
    width: 33%;
}

ul
{
    margin: 0px;
    padding: 0px;
}

/* Captcha Field */

.field-captcha-image-container {
    background-color: #fff;
    float: left;
    border: 1px solid #c0c0c0;
}

.field-captcha-audio {
    display: none;
    height: 0px;
    width: 0px;
    position: relative;
}

.field-captcha-audio embed {
    position: absolute;
    z-index: -1;
}

.field-captcha-controls {
    float: left;
    margin-left: 5px;
}

.field-captcha-controls input {
    width: auto;
    margin: 7px;
    display: block;
}

/* End Captcha Field */

.scfCreditCardType
{
    width: 100%;
}

.scfShortDate
{
    clear: left;
    text-align: left;
    display: block;
    margin: 5px 0px;
    vertical-align: top;
    width: 60%;
}

.scfShortText
{
    margin: 0px;
    float: right;
    width: 40%;
}

.scfShortDate .scfDateSelectorLabel
{
    width: 50%;
    margin-top: 0px;
}

.scfShortDate .scfDateSelectorGeneralPanel
{
    width: 46%;
}

.scfShortDate .scfDateSelectorDay, .scfShortDate .scfDateSelectorShortLabelDay, .scfShortDate .scfDateSelectorShortLabelMonth, .scfShortDate .scfDateSelectorShortLabelYear
{
    display: none;
}

.scfShortDate .scfDateSelectorShortLabelMonth, .scfShortDate .scfDateSelectorShortLabelYear, .scfShortDate .scfDateSelectorMonth, .scfShortDate .scfDateSelectorYear
{
    width: 49%;
}

.scfShortText .scfSingleLineTextLabel
{
    width: 15%;
}

.scfShortText .scfSingleLineTextGeneralPanel
{
    width: 60%;
}

.scfShortText .scfSingleLineTextUsefulInfo
{
}

.scfShortText .scfSingleLineTextTextBox
{
    width: 100%;
    margin: 0px;
}

.scWfmPassword
{
    behavior: url(/sitecore%20modules/shell/Web%20Forms%20for%20Marketers/themes/autocomplete.htc?v=17072012)
}

.scfDatePickerGeneralPanel .ui-icon
{
    float : right;
    position: relative;
    top: -20px;
    display:block;
}

/*Cust*/

/*/
.halfAvailableWidth
{
	float:left;
	text-align: left;
	display: inline;
	margin: 5px 0px;
	width: 50%;
	vertical-align: top;
}

.thirdAvailableWidth
{
	float:left;
	text-align: left;
	display: inline;
	margin: 5px 0px;
	width: 33%;
	vertical-align: top;
}

.halfLeft
{
	width:50%;
}

.halfRight
{
	width:50%;
	float:right;
}

.halfLeft .scfSectionBorderAsFieldSet,
.halfRight .scfSectionBorderAsFieldSet
{
	margin : 0px;
	padding:0px;
	border-width:0px ;
}

.halfLeft .scfEmailGeneralPanel,
.halfLeft .scfMultipleLineTextGeneralPanel,
.halfLeft .scfSingleLineTextGeneralPanel,
.halfLeft .scfPasswordGeneralPanel,
.halfLeft .scfNumberGeneralPanel,
.halfLeft .scfDatePickerGeneralPanel,
.halfLeft .scfDateGeneralPanel,
.halfLeft .scfRadioListGeneralPanel,
.halfLeft .scfCheckBoxListGeneralPanel,
.halfLeft .scfCheckBoxGeneralPanel,
.halfLeft .scfFileUploadGeneralPanel,
.halfLeft .scfDateSelectorGeneralPanel,

.halfRight .scfEmailGeneralPanel,
.halfRight .scfMultipleLineTextGeneralPanel,
.halfRight .scfSingleLineTextGeneralPanel,
.halfRight .scfPasswordGeneralPanel,
.halfRight .scfNumberGeneralPanel,
.halfRight .scfDatePickerGeneralPanel,
.halfRight .scfDateGeneralPanel,
.halfRight .scfRadioListGeneralPanel,
.halfRight .scfCheckBoxListGeneralPanel,
.halfRight .scfCheckBoxListPanel,
.halfRight .scfFileUploadGeneralPanel,
.halfRight .scfDateSelectorGeneralPanel
{
	margin: 0px;
	width: 80%;
	display: block;
	float:left;
	margin-bottom:10px;
}

.halfLeft .scfDropListBorder,
.halfLeft .scfEmailBorder,
.halfLeft .scfMultipleLineTextBorder,
.halfLeft .scfSingleLineTextBorder,
.halfLeft .scfPasswordBorder,
.halfLeft .scfNumberBorder,
.halfLeft .scfDatePickerBorder,
.halfLeft .scfDateBorder,
.halfLeft .scfRadioListBorder,
.halfLeft .scfListBoxBorder,
.halfLeft .scfCheckBoxListBorder,
.halfLeft .scfFileUploadBorder,
.halfRight .scfDropListBorder,
.halfRight .scfEmailBorder,
.halfRight .scfMultipleLineTextBorder,
.halfRight .scfSingleLineTextBorder,
.halfRight .scfPasswordBorder,
.halfRight .scfNumberBorder,
.halfRight .scfDatePickerBorder,
.halfRight .scfDateBorder,
.halfRight .scfRadioListBorder,
.halfRight .scfListBoxBorder,
.halfRight .scfCheckBoxListBorder,
.halfRight .scfFileUploadBorder
{
	text-align: left;
	display: block;
	margin: 0px;
	width: 100%;
	vertical-align: top;
}

.halfLeft .scfDropListLabel,
.halfLeft .scfEmailLabel,
.halfLeft .scfMultipleLineTextLabel,
.halfLeft .scfSingleLineTextLabel,
.halfLeft .scfPasswordLabel,
.halfLeft .scfNumberLabel,
.halfLeft .scfDatePickerLabel,
.halfLeft .scfDateLabel,
.halfLeft .scfRadioListLabel,
.halfLeft .scfCheckBoxListLabel,
.halfLeft .scfListBoxLabel,
.halfLeft .scfFileUploadLabel,
.halfLeft .scfDateSelectorLabel,
.halfRight .scfDropListLabel,
.halfRight .scfEmailLabel,
.halfRight .scfMultipleLineTextLabel,
.halfRight .scfSingleLineTextLabel,
.halfRight .scfPasswordLabel,
.halfRight .scfNumberLabel,
.halfRight .scfDatePickerLabel,
.halfRight .scfDateLabel,
.halfRight .scfRadioListLabel,
.halfRight .scfCheckBoxListLabel,
.halfRight .scfListBoxLabel,
.halfRight .scfFileUploadLabel,
.halfRight .scfDateSelectorLabel
{
	padding-bottom : 0px;
}

.halfLeft .scfValidator,
.halfRight .scfValidator
{
	margin: 0px;
	display:block;
	font-size :0.8em;
	position:absolute;
}

.halfLeft .scfValidatorRequired,
.halfLeft .scfRequired,
.halfRight .scfValidatorRequired,
.halfRight .scfRequired
{
	float:left;
}
/*edit by Asiani on 2016/05/10*/

.field-content input, textarea, select{
  -webkit-transition: all 0.30s ease-in-out;
  -moz-transition: all 0.30s ease-in-out;
  -ms-transition: all 0.30s ease-in-out;
  -o-transition: all 0.30s ease-in-out;
  outline: none;
  padding: 3px 0px 3px 3px;
  margin: 5px 1px 3px 0px;
  border: 1px solid #DDDDDD;
  background-color: rgba(192,192,192,0.6);
}

 .field-content input:focus,.field-content textarea:focus, .field-content select:focus{
  box-shadow: 0 0 5px rgba(81, 203, 238, 1);
  padding: 3px 0px 3px 3px;
  margin: 5px 1px 3px 0px;
  border: 2px solid rgba(81, 203, 238, 1);
}

.field-panel.checkboxpanjang {
    width: 90%;
}

.scfForm table{background-color:transparent;}
.scfForm td{padding:5px 5px 5px 5px;}
.field-error, .field-required, .field-validation-error, .form-validation-summary
{
 font-size: 12px;
  font-weight: bold;
   /* font-family: 'Calibri', sans-serif;

  */
  color: #0069b5;
  margin-top: 5px;
  margin-bottom: 5px;

  /*@media (min-width: @screen-lg-min) {
             font-size: 12px;
  font-weight: bold;
            }*/
}

.form-title{
color:#0d5cab;
text-align: center;
}
.form-submit{
width:70%;
height: 35px;
margin-top:15px;
background: url("http://www.bca.co.id/~/media/Web%20Forms%20for%20Marketers/btn-blue.ashx") no-repeat;
border:transparent;

  position: relative;
  color: #ffffff;
  padding-left: 20px;
  background-size: 100% auto;
  /*@media (min-width: @screen-lg-min) {
                padding-left: 50px;
                padding-left: 10px; //handri 190216
              }*/
}
.field-title{padding: 5px;font-weight: 500;}

.checkbox-content{
padding-bottom: 10px;
}

.field-panel-full{
   /* margin: 0px 3px; */
    padding: 0px 2px 0px 0px;
    width: 100%;
    display: block;
    float: left;

	}
.center-wffm-text{
text-align:center;
font-weight:400px;
text-decoration:italic;
}
/*edit by Asiani end*/


text:
{% extends "layout.html" %}

{% block phase%}
  {% include 'sprint12/partials/phase-banner.html'%}
{% endblock %}

{% block main %}

Feedback

    <form method="post" action="feedback" id="form__details">

        <fieldset class="inline">
          <legend class="form-label-bold" for="everything-form">
            Do you feel you were able to tell us everything you needed to today?
          </legend>

            <input id="everything-yes" type="radio" name="everything" value="yes">
            Yes

            <input id="everything-no" type="radio" name="everything" value="no">
            No

        </fieldset>

        <fieldset class="inline">
          <legend class="form-label-bold" for="experience-form">
            Overall, how would you rate your experience in completing this form?
          </legend>

            <input id="experience-very-easy" type="radio" name="experience" value="very-easy">
            Very easy

            <input id="experience-easy" type="radio" name="experience" value="easy">
            Easy

            <input id="experience-difficult" type="radio" name="experience" value="difficult">
            Difficult

            <input id="experience-very-difficult" type="radio" name="experience" value="very-difficult">
            Very Difficult

        </fieldset>

        Do you have any suggestions for how we can improve this service?
        <textarea class="form-control form-control-3-4" rows="5" id="suggestion" name="suggestion"></textarea>

      <input id="submit" type="submit" class="button" value="Send feedback">
    </form>

{% endblock %}


text:
// @generated
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/com/facebook/buck/downwardapi/resources/proto/downward_api.proto

package com.facebook.buck.downward.model;

@javax.annotation.Generated(value="protoc", comments="annotations:LogEventOrBuilder.java.pb.meta")
public interface LogEventOrBuilder extends
    // @@protoc_insertion_point(interface_extends:downward.api.v1.LogEvent)
    com.google.protobuf.MessageOrBuilder {

  /**
   * .downward.api.v1.LogLevel log_level = 1;
   */
  int getLogLevelValue();
  /**
   * .downward.api.v1.LogLevel log_level = 1;
   */
  com.facebook.buck.downward.model.LogLevel getLogLevel();

  /**
   * string message = 2;
   */
  java.lang.String getMessage();
  /**
   * string message = 2;
   */
  com.google.protobuf.ByteString
      getMessageBytes();

  /**
   * string logger_name = 3;
   */
  java.lang.String getLoggerName();
  /**
   * string logger_name = 3;
   */
  com.google.protobuf.ByteString
      getLoggerNameBytes();
}