text:
using System;
using System.Collections;
using System.Windows;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;
using System.Windows.Controls;
using System.Xml;
using System.Diagnostics;
using System.Windows.Media.Imaging;
using pserv4.Properties;
using log4net;
using System.Reflection;
using GSharpTools;
using GSharpTools.WPF;

namespace pserv4
{
    public abstract class DataController
    {
        private static readonly ILog Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        public abstract IEnumerable<DataObjectColumn> Columns { get; }
        protected readonly string ControllerName;
        protected readonly string ItemName;
        protected bool HasProperties;
        protected List<DataObjectColumn> ActualColumns;

        public bool IsControlStartEnabled { get; protected set; }
        public bool IsControlStopEnabled { get; protected set; }
        public bool IsControlRestartEnabled { get; protected set; }
        public bool IsControlPauseEnabled { get; protected set; }
        public bool IsControlContinueEnabled { get; protected set; }

        public readonly string ControlStartDescription;
        public readonly string ControlStopDescription;
        public readonly string ControlRestartDescription;
        public readonly string ControlPauseDescription;
        public readonly string ControlContinueDescription;

        protected bool HasFilenames;

        public string Caption {get; protected set; }

        public DataController(
            string controllerName,
            string itemName,
            string controlStartDescription,
            string controlStopDescription,
            string controlRestartDescription,
            string controlPauseDescription,
            string controlContinueDescription
            )
        {
            ItemName = itemName;
            Caption = controllerName;
            HasProperties = false;
            HasFilenames = true;
            ControllerName = controllerName;
            ControlStartDescription = controlStartDescription;
            ControlStopDescription = controlStopDescription;
            ControlRestartDescription = controlRestartDescription;
            ControlPauseDescription = controlPauseDescription;
            ControlContinueDescription = controlContinueDescription;
        }

        public ListView MainListView;

        /// <summary>
        /// Given the input list, refresh it with the current object list
        /// </summary>
        /// <param name="objects"></param>
        public abstract void Refresh(ObservableCollection<DataObject> objects);

        public void SaveColumnSortOrder(GridViewColumnCollection columns)
        {
            StringBuilder content = new StringBuilder();
            bool first = true;

            foreach(var column in columns)
            {
                var binding = column.DisplayMemberBinding as System.Windows.Data.Binding;
                if( binding != null )
                {
                    if (first)
                        first = false;
                    else
                        content.Append(",");
                    content.Append(binding.Path.Path);
                }
            }
            string propertyName = string.Format("ColumnOrder{0}", ControllerName);

            Type t = App.Settings.GetType();
            PropertyInfo pi = t.GetProperty(propertyName);
            pi.SetValue(App.Settings, content.ToString(), null);
        }

        protected void CreateColumns(params DataObjectColumn[] args)
        {
            ActualColumns = new List<DataObjectColumn>();

            // step 1: create lookup dictionary
            var lookup = new Dictionary<string, DataObjectColumn>();
            foreach (DataObjectColumn c in args)
            {
                lookup[c.BindingName] = c;
            }

            string propertyName = string.Format("ColumnOrder{0}", ControllerName);
            Type t = App.Settings.GetType();
            PropertyInfo pi = t.GetProperty(propertyName);
            string expectedSortOrder = pi.GetValue(App.Settings, null) as string;
            if (!string.IsNullOrEmpty(expectedSortOrder))
            {
                // apply sort order
                string[] sortOrder = expectedSortOrder.Split(',');

                foreach(string sortKey in sortOrder)
                {
                    if( lookup.ContainsKey(sortKey) )
                    {
                        if (lookup[sortKey] != null )
                        {
                            ActualColumns.Add(lookup[sortKey]);
                            lookup[sortKey] = null;
                        }
                    }
                }
            }

            // finally, add all items not in the list to ActualColumns
            foreach (DataObjectColumn c in args)
            {
                if( lookup[c.BindingName] != null )
                {
                    // this item wasn't added to the list just yet, so do it now
                    ActualColumns.Add(c);
                }
            }
        }

        protected void SetMenuItemEnabled(ContextMenu menu, int index, bool enabled)
        {
            MenuItem mi = menu.Items[index] as MenuItem;
            if (mi != null)
            {
                mi.IsEnabled = enabled;
            }
        }

        protected MenuItem AppendMenuItem(ContextMenu menu, string header, BitmapImage[] images, bool enabled, RoutedEventHandler callback)
        {
            MenuItem mi = new MenuItem();
            mi.Header = header;
            if (images != null)
            {
                Image i = new Image();
                i.Source = enabled ? images[1] : images[0];
                mi.Icon = i;
            }
            mi.IsEnabled = enabled;
            mi.Click += callback;
            menu.Items.Add(mi);
            return mi;
        }

        public virtual void ApplyChanges(List<IDataObjectDetails> changedItems)
        {
            // default implementation: do nothing
        }

        protected MenuItem AppendMenuItem(ContextMenu menu, string header, string imageName, RoutedEventHandler callback)
        {
            MenuItem mi = new MenuItem();
            mi.Header = header;
            Image i = new Image();
            string filename = string.Format(@"pack://application:,,,/images/{0}.png", imageName);
            i.Source = new BitmapImage(new Uri(filename));
            mi.Icon = i;
            mi.Click += callback;
            menu.Items.Add(mi);
            return mi;
        }

        protected ContextMenu AppendDefaultItems(ContextMenu menu)
        {
            menu.Items.Add(new Separator());
            AppendMenuItem(menu, Resources.IDS_SAVE_AS_XML, "database_save", MainWindow.Instance.SaveAsXML);
            AppendMenuItem(menu, Resources.IDS_COPY_TO_CLIPBOARD, "database_lightning", MainWindow.Instance.CopyToClipboard);
            menu.Items.Add(new Separator());
            if (HasFilenames)
            {
                AppendMenuItem(menu, Resources.IDS_SYSTEM_PROPERTIES, "database_table", ShowSystemProperties);
                menu.Items.Add(new Separator());
            }
            AppendMenuItem(menu, Resources.IDS_PROPERTIES, "database_gear", ShowProperties);
            return menu;
        }

        /// <summary>
        /// Return the context menu used for all items on this list
        /// </summary>
        public virtual ContextMenu ContextMenu
        {
            get
            {
                if (string.IsNullOrEmpty(ControlStartDescription))
                    return null;

                ContextMenu menu = new ContextMenu();
                AppendMenuItem(
                    menu,
                    ControlStartDescription,
                    MainWindow.BIStart,
                    IsControlStartEnabled,
                    OnControlStart);
                AppendMenuItem(
                    menu,
                    ControlStopDescription,
                    MainWindow.BIStop,
                    IsControlStopEnabled,
                    OnControlStop);
                AppendMenuItem(
                    menu,
                    ControlRestartDescription,
                    MainWindow.BIRestart,
                    IsControlRestartEnabled,
                    OnControlRestart);
                AppendMenuItem(
                    menu,
                    ControlPauseDescription,
                    MainWindow.BIPause,
                    IsControlPauseEnabled,
                    OnControlPause);
                AppendMenuItem(
                    menu,
                    ControlContinueDescription,
                    MainWindow.BIContinue,
                    IsControlContinueEnabled,
                    OnControlContinue);

                return menu;
            }
        }

        public virtual void OnSelectionChanged(IList selectedItems)
        {
        }

        public virtual void OnContextMenuOpening(IList selectedItems, ContextMenu menu)
        {
        }

        public bool LoadFromXml(string filename)
        {
            List<ActionTemplateInfo> result = new List<ActionTemplateInfo>();
            try
            {
                ActionTemplateInfo recording = null;
                string lastKnownKey = null;
                using (XmlReader reader = XmlReader.Create(filename))
                {
                    while (reader.Read())
                    {
                        switch (reader.NodeType)
                        {
                            case XmlNodeType.Element:
                                if (reader.Name == ControllerName)
                                {
                                    // ok expected
                                }
                                else if (reader.Name == ItemName)
                                {
                                    recording = new ActionTemplateInfo(reader.GetAttribute("id"));
                                    result.Add(recording);
                                }
                                else if( recording != null )
                                {
                                    lastKnownKey = reader.Name;
                                }
                                else
                                {
                                    Log.WarnFormat("Warning: didn't expect element type {0}", reader.Name);
                                }
                                break;
                            case XmlNodeType.Text:
                                if (lastKnownKey != null)
                                {
                                    if (recording != null)
                                    {
                                        recording[lastKnownKey] = reader.Value;
                                    }
                                    else
                                    {
                                        Log.WarnFormat("Warning: found key '{0}', but recording is null", lastKnownKey);
                                    }
                                }
                                else
                                {
                                    Log.WarnFormat("Warning: didn't expect text '{0}'", reader.Value);
                                }
                                break;
                            case XmlNodeType.EndElement:
                                if ((lastKnownKey != null) && (reader.Name == lastKnownKey))
                                {
                                    lastKnownKey = null;
                                }
                                else if ((recording != null) && (reader.Name == ItemName))
                                {
                                    recording = null;
                                }
                                break;
                        }
                    }
                }
            }
            catch (Exception e)
            {
                Log.Error(string.Format("Exception caught loading '{0}'", filename), e);
                result = null;
            }

            if (result == null)
                return false;

            new LongRunningFunctionWindow(new ApplyTemplate(this, result), Resources.IDS_LOADING_TEMPLATES).ShowDialog();
            return true;

        }

        public bool SaveAsXml(string filename, IList items)
        {
            using (new WaitCursor())
            {
                try
                {

                    bool result = true;
                    XmlWriterSettings settings = new XmlWriterSettings();
                    settings.Indent = true;
                    settings.Encoding = Encoding.UTF8;
                    settings.IndentChars = "\t";
                    settings.NewLineChars = "\r\n";

                    StringBuilder buffer = new StringBuilder();
                    using (XmlWriter xtw = (filename == null) ? XmlWriter.Create(buffer, settings) : XmlWriter.Create(filename, settings))
                    {
                        xtw.WriteStartDocument();
                        xtw.WriteStartElement(ControllerName);
                        xtw.WriteAttributeString("version", "3.0");
                        xtw.WriteAttributeString("count", items.Count.ToString());
                        result = OnSaveAsXML(xtw, items);
                        xtw.WriteEndElement();
                        xtw.Close();
                    }
                    if (filename == null)
                    {
                        Clipboard.SetText(buffer.ToString());
                    }
                    return result;
                }
                catch (Exception e)
                {
                    Log.Error(string.Format("Exception caught while saving '{0}'", filename), e);
                    return false;
                }
            }
        }

        protected bool OnSaveAsXML(XmlWriter xtw, System.Collections.IList items)
        {
            foreach(DataObject o in items)
            {
                xtw.WriteStartElement(ItemName);
                xtw.WriteAttributeString("id", o.InternalID);

                Type t = o.GetType();

                foreach (DataObjectColumn c in Columns)
                {
                    if( !c.BindingName.Equals("InternalID"))
                    {
                        try
                        {
                            object item = t.GetProperty(c.BindingName).GetValue(o, null);
                            if (item != null)
                            {
                                string value = item as string;
                                if (value == null)
                                    value = item.ToString();

                                xtw.WriteElementString(c.BindingName, value);
                            }
                        }
                        catch (Exception e)
                        {
                            Log.Error(string.Format("Exception caught while trying to access property {0}", c.BindingName), e);
                        }
                    }
                }
                xtw.WriteEndElement();
            }
            return true;
        }

        public void ShowProperties(object sender, RoutedEventArgs e)
        {
            if(HasProperties && (MainListView.SelectedItems.Count > 0))
            {
                new PropertiesWindow().Show();
            }
        }

        public void ShowSystemProperties(object sender, RoutedEventArgs e)
        {
            if(HasFilenames)
            {
                foreach (DataObject o in MainListView.SelectedItems)
                {
                    ProcessInfoTools.ShowFileProperties(o.FileName);
                }
            }
        }

        public virtual void ApplyTemplateInfo(ActionTemplateInfo ati, BackgroundAction action)
        {
            // default implementation: do nothing
        }

        public virtual UserControl CreateDetailsPage(DataObject o)
        {
            return null;
        }

        public virtual void OnControlStart(object sender, RoutedEventArgs e)
        {
            Log.WarnFormat("Warning: OnControlStart not implemented for {0}", this);
        }

        public virtual void OnControlStop(object sender, RoutedEventArgs e)
        {
            Log.WarnFormat("Warning: OnControlStop not implemented for {0}", this);
        }

        public virtual void OnControlRestart(object sender, RoutedEventArgs e)
        {
            Log.WarnFormat("Warning: OnControlRestart not implemented for {0}", this);
        }

        public virtual void OnControlPause(object sender, RoutedEventArgs e)
        {
            Log.WarnFormat("Warning: OnControlPause not implemented for {0}", this);
        }

        public virtual void OnControlContinue(object sender, RoutedEventArgs e)
        {
            Log.WarnFormat("Warning: OnControlContinue not implemented for {0}", this);
        }

    }
}


text:
<?php

namespace Controller\demo\jquery\ui;

/**
 * Description of AccordionForm
 *
 * @author De Cramer Oliver
 */
class TabsForm extends \Controller\OWeb\Helpers\Form\Form{
	//put your code here

	protected function registerElements() {
		$this->action_mode = self::ACTION_GET;

		$validatorBool = new \OWeb\utils\inputManagement\validators\Boolean();

		$jsString = new \OWeb\utils\inputManagement\validators\JsString();

		$this->setAction('refresh');

		$active = new \Controller\OWeb\Helpers\Form\Elements\Text();
		$active->init();
		$active->setName('active');
		$active->setTitle('Active');
		$active->setDescription("Which panel is currently open.");
		$active->addValidator(new \OWeb\utils\inputManagement\validators\Integer());
		$active->addValidator(new \OWeb\utils\inputManagement\validators\CanBeEmpty());
		$active->setVal(0);
		$this->addDisplayElement($active);

		$collapsible = new \Controller\OWeb\Helpers\Form\Elements\Radio();
		$collapsible->init();
		$collapsible->setName('collapsible');
		$collapsible->setTitle('Collapsible');
		$collapsible->add("true", "true");
		$collapsible->add("false", "false");
		$collapsible->addValidator($validatorBool);
		$collapsible->setVal('true');
		$collapsible->setDescription("hether all the sections can be closed at once. Allows collapsing the active section");
		$this->addDisplayElement($collapsible);

		$event = new \Controller\OWeb\Helpers\Form\Elements\Text();
		$event->init();
		$event->setName('event');
		$event->setTitle('Event');
		$event->setVal('click');
		$event->addValidator($jsString);
		$event->setDescription("The event that accordion headers will react to in order to activate the associated panel. Multiple events can be specified, separated by a space.");
		$this->addDisplayElement($event);

		$heightStyle = new \Controller\OWeb\Helpers\Form\Elements\Select();
		$heightStyle->init();
		$heightStyle->setName('heightStyle');
		$heightStyle->setTitle('Height Style');
		$heightStyle->add("Auto", "auto");
		$heightStyle->add("Fill", "fill");
		$heightStyle->add("Content", "content");
		$heightStyle->addValidator($jsString);
		$heightStyle->setVal('content');
		$heightStyle->setDescription("Controls the height of the accordion and each panel.");
		$this->addDisplayElement($heightStyle);

		$submit = new \Controller\OWeb\Helpers\Form\Elements\Submit();
		$submit->init();
		$submit->setVal("Refresh");
		$this->addDisplayElement($submit);
	}
}

?>

redpajama_set_name: RedPajamaGithub


text:
export interface TakeArity2 {
  (amount: number, str: string): string
  (amount: number, list: Array): ReadonlyArray
  (amount: number, list: ArrayLike): ReadonlyArray
  (amount: number, list: ReadonlyArray): ReadonlyArray

  (amount: number): TakeArity1
}

export interface TakeArity1 {
  (list: Array): ReadonlyArray
  (list: ArrayLike): ReadonlyArray
  (list: ReadonlyArray): ReadonlyArray
}


text:
package org.kie.remote.services.ws.command.test;

import javax.jws.WebService;

import org.kie.remote.client.jaxb.JaxbCommandsRequest;
import org.kie.remote.client.jaxb.JaxbCommandsResponse;
import org.kie.remote.services.ws.command.CommandServiceTest;
import org.kie.remote.services.ws.command.generated.CommandWebService;
import org.kie.remote.services.ws.command.generated.CommandWebServiceException;

@WebService(
        portName="CommandServiceBasicAuthPort",
        serviceName = "CommandServiceBasicAuth",
        wsdlLocation="wsdl/CommandService.wsdl",
        targetNamespace = CommandServiceTest.NAMESPACE,
        endpointInterface = "org.kie.remote.services.ws.command.generated.CommandWebService"
        )
public class TestCommandBasicAuthImpl implements CommandWebService {

    @Override
    public JaxbCommandsResponse execute( JaxbCommandsRequest request ) throws CommandWebServiceException {
        JaxbCommandsResponse resp = new JaxbCommandsResponse(request);

        return resp;
    }

}


text:
package org.overlord.commons.eap.extensions.config;

import java.util.Map;

import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
import org.jboss.logging.Logger.Level;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;

/**
 * This file is using the subset 2000-2100 for logger messages.
 */
@MessageLogger(projectCode = "OVERLORD")
public interface SubsystemLogger extends BasicLogger {

    /**
     * A logger with a category of the package name.
     */
    public SubsystemLogger ROOT_LOGGER = Logger.getMessageLogger(SubsystemLogger.class, "org.overlord.commons.eap.extensions.config"); //$NON-NLS-1$

    /**
     * Logs a debug message with details of the current configuration.
     *
     *@param name The configuration name
     * @param propertyMap
     */
    @LogMessage(level = Level.DEBUG)
    @Message(id = 2000, value = "Processing configuration name: %1$s, properties: %2$s")
    public void configurationInformation(final String name, final Map<String, String> propertyMap);

    /**
     * Info message documenting the start of the extension.
     */
    @LogMessage(level = Level.INFO)
    @Message(id = 2001, value = "Activating Overlord Configuration Extension")
    public void activatingExtension();

    /**
     * Logs a debug message with details of the configuration being removed.
     *
     *@param name The configuration name
     */
    @LogMessage(level = Level.DEBUG)
    @Message(id = 2002, value = "Removing configuration %s")
    public void removingConfiguration(final String name);
}


text:
echo 'not updating word vectors, removing 0 pc, layersize 2400'
echo 'GloVe vectors'
echo 'similarity'
# weight 1e-2
    sh train.sh -wordfile ../data/glove.840B.300d.txt -updatewords False -dim 300 -traindata ../data/sicktrain -devdata ../data/sickdev -testdata ../data/sicktest -layersize 2400 -nntype proj -nonlinearity 1 -epochs 20 -minval 1 -maxval 5 -task sim -batchsize 25 -LW 1e-05 -LC 1e-06 -memsize 50 -learner adam -eta 0.001 -weightfile ../auxiliary_data/enwiki_vocab_min200.txt -weightpara 1e-2

echo 'entailment'
# weight 1e-2
    sh train.sh -wordfile ../data/glove.840B.300d.txt -updatewords False -dim 300 -traindata ../data/sicktrain-ent -devdata ../data/sickdev-ent -testdata ../data/sicktest-ent -layersize 2400 -nntype proj -nonlinearity 1 -epochs 20 -task ent -batchsize 25 -LW 1e-05 -LC 1e-06 -memsize 150 -learner adagrad -eta 0.05 -weightfile ../auxiliary_data/enwiki_vocab_min200.txt -weightpara 1e-2

echo 'sentiment'
# weight 1e-2
    sh train.sh -wordfile ../data/glove.840B.300d.txt -updatewords False -dim 300 -traindata ../data/sentiment-train -devdata ../data/sentiment-dev -testdata ../data/sentiment-test -layersize 2400 -nntype proj_sentiment -nonlinearity 1 -epochs 20 -task sentiment -batchsize 25 -LW 1e-05 -LC 1e-06 -memsize 150 -learner adagrad -eta 0.05 -weightfile ../auxiliary_data/enwiki_vocab_min200.txt -weightpara 1e-3


text:
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2014-2017 FIRST. All Rights Reserved.                        */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

#pragma once

#include <memory>
#include <string>

#include "LiveWindow/LiveWindowSendable.h"
#include "SensorBase.h"
#include "networktables/NetworkTableEntry.h"

namespace frc {

/**
 * Class for getting voltage, current, temperature, power and energy from the
 * CAN PDP.
 */
class PowerDistributionPanel : public SensorBase, public LiveWindowSendable {
 public:
  PowerDistributionPanel();
  explicit PowerDistributionPanel(int module);

  double GetVoltage() const;
  double GetTemperature() const;
  double GetCurrent(int channel) const;
  double GetTotalCurrent() const;
  double GetTotalPower() const;
  double GetTotalEnergy() const;
  void ResetTotalEnergy();
  void ClearStickyFaults();

  void UpdateTable() override;
  void StartLiveWindowMode() override;
  void StopLiveWindowMode() override;
  std::string GetSmartDashboardType() const override;
  void InitTable(std::shared_ptr<nt::NetworkTable> subTable) override;

 private:
  nt::NetworkTableEntry m_chanEntry[16];
  nt::NetworkTableEntry m_voltageEntry;
  nt::NetworkTableEntry m_totalCurrentEntry;
  int m_module;
};

}  // namespace frc


text:
package org.openspaces.admin.internal.transport;

import org.openspaces.admin.transport.Transport;
import org.openspaces.admin.transport.Transports;

/**
 * @author kimchy
 */
public interface InternalTransports extends Transports {

    void addTransport(Transport transport);

    void removeTransport(String uid);
}


text:
<?xml version="1.0"?>
<catalog>
    <book id="bk101">
        <author>Gambardella, Matthew</author>
        <title>XML Developer's Guide</title>
        <genre>Computer Science</genre>
        <price>44.95</price>
        <publish_date>2000-10-01</publish_date>
        <description>An in-depth look at creating applications
            with XML.</description>
        <revision year="2000" definition="Biblio">1st Ed</revision>
        <revision year="2002" definition="Collector">2nd Ed</revision>
        <type>Hardcover</type>
        <type>Softback</type>
        <type>Bounded</type>
        <comment>this book is brilliant, the sunday times</comment>
        <comment>this book is a must read, the economist</comment>
    </book>
    <book id="bk102">
        <author>Ralls, Kim</author>
        <title>Midnight Rain</title>
        <genre>Fantasy</genre>
        <price>5.95</price>
        <publish_date>2000-12-16</publish_date>
        <description>A former architect battles corporate zombies,
            an evil sorceress, and her own childhood to become queen
            of the world.</description>
    </book>
    <book id="bk103">
        <author>Corets, Eva</author>
        <title>Maeve Ascendant</title>
        <genre>Fantasy</genre>
        <price>5.95</price>
        <publish_date>2000-11-17</publish_date>
        <description>After the collapse of a nanotechnology
            society in England, the young survivors lay the
            foundation for a new society.</description>
    </book>
    <book id="bk104">
        <author>Corets, Eva</author>
        <title>Oberon's Legacy</title>
        <genre>Fantasy</genre>
        <price>5.95</price>
        <publish_date>2001-03-10</publish_date>
        <description>In post-apocalypse England, the mysterious
            agent known only as Oberon helps to create a new life
            for the inhabitants of London. Sequel to Maeve
            Ascendant.</description>
    </book>
    <book id="bk105">
        <author>Corets, Eva</author>
        <title>The Sundered Grail</title>
        <genre>Fantasy</genre>
        <price>5.95</price>
        <publish_date>2001-09-10</publish_date>
        <description>The two daughters of Maeve, half-sisters,
            battle one another for control of England. Sequel to
            Oberon's Legacy.</description>
    </book>
    <book id="bk106">
        <author>Randall, Cynthia</author>
        <title>Lover Birds</title>
        <genre>Romance</genre>
        <price>4.95</price>
        <publish_date>2000-09-02</publish_date>
        <description>When Carla meets Paul at an ornithology
            conference, tempers fly as feathers get ruffled.</description>
    </book>
    <book id="bk107">
        <author>Thurman, Paula</author>
        <title>Splish Splash</title>
        <genre>Romance</genre>
        <price>4.95</price>
        <publish_date>2000-11-02</publish_date>
        <description>A deep sea diver finds true love twenty
            thousand leagues beneath the sea.</description>
    </book>
    <book id="bk108">
        <author>Knorr, Stefan</author>
        <title>Creepy Crawlies</title>
        <genre>Horror</genre>
        <price>4.95</price>
        <publish_date>2000-12-06</publish_date>
        <description>An anthology of horror stories about roaches,
            centipedes, scorpions and other insects.</description>
    </book>
    <book id="bk109">
        <author>Kress, Peter</author>
        <title>Paradox Lost</title>
        <genre>Science Fiction</genre>
        <price>6.95</price>
        <publish_date>2000-11-02</publish_date>
        <description>After an inadvertant trip through a Heisenberg
            Uncertainty Device, James Salway discovers the problems
            of being quantum.</description>
    </book>
    <book id="bk110">
        <author>O'Brien, Tim</author>
        <title>Microsoft .NET: The Programming Bible</title>
        <genre>Computer Science</genre>
        <price>36.95</price>
        <publish_date>2000-12-09</publish_date>
        <description>Microsoft's .NET initiative is explored in
            detail in this deep programmer's reference.</description>
    </book>
</catalog>


text:
Computes softmax cross entropy between `logits` and `labels`.

Measures the probability error in discrete classification tasks in which the
classes are mutually exclusive (each entry is in exactly one class).  For
example, each CIFAR-10 image is labeled with one and only one label: an image
can be a dog or a truck, but not both.

**NOTE:**  While the classes are mutually exclusive, their probabilities
need not be.  All that is required is that each row of `labels` is
a valid probability distribution.  If they are not, the computation of the
gradient will be incorrect.

If using exclusive `labels` (wherein one and only
one class is true at a time), see `sparse_softmax_cross_entropy_with_logits`.

**WARNING:** This op expects unscaled logits, since it performs a `softmax`
on `logits` internally for efficiency.  Do not call this op with the
output of `softmax`, as it will produce incorrect results.

`logits` and `labels` must have the same shape `[batch_size, num_classes]`
and the same dtype (either `float16`, `float32`, or `float64`).

**Note that to avoid confusion, it is required to pass only named arguments to
this function.**

##### Args:

  _sentinel: Used to prevent positional parameters. Internal, do not use.

*  <b>`labels`</b>: Each row `labels[i]` must be a valid probability distribution.
*  <b>`logits`</b>: Unscaled log probabilities.
*  <b>`dim`</b>: The class dimension. Defaulted to -1 which is the last dimension.
*  <b>`name`</b>: A name for the operation (optional).

##### Returns:

  A 1-D `Tensor` of length `batch_size` of the same type as `logits` with the
  softmax cross entropy loss.


text:
sap.ui.define(['sap/ui/core/Control', './library', 'sap/ui/core/ResizeHandler'],
	function(Control, library, ResizeHandler) {
		"use strict";

		/**
		 * Constructor for a new AlignedFlowLayout.
		 *
		 * @param {string} [sId] ID for the new control, generated automatically if no ID is given
		 * @param {object} [mSettings] Initial settings for the new control
		 *
		 * @class
		 * The AlignedFlowLayout control arranges its child controls evenly across the horizontal space available.
		 * Each item takes up the same width and grows and shrinks in response to the layout width.
		 * Items not fitting into a row with the configured minItemWidth property wrap into
		 * the next row (like in a regular flow layout). However, those wrapped items have the same flexible width as
		 * the items in the rows above, so they are aligned.
		 *
		 * @extends sap.ui.core.Control
		 *
		 * @author SAP SE
		 * @version 1.50.8
		 *
		 * @constructor
		 * @private
		 * @experimental This control is only for internal/experimental use and the API will change!
		 *
		 * @since 1.48
		 * @alias sap.ui.layout.AlignedFlowLayout
		 * @ui5-metamodel This control will also be described in the UI5 (legacy) design time meta model.
		 */
		var AlignedFlowLayout = Control.extend("sap.ui.layout.AlignedFlowLayout", {
			metadata: {
				library: "sap.ui.layout",
				properties: {

					/**
					 * Sets the minimum width of items.
					 * It prevents items from becoming smaller than the value specified.
					 * Note: If minItemWidth is greater than maxItemWidth,
					 * maxItemWidth wins.
					 */
					minItemWidth: {
						type: "sap.ui.core.AbsoluteCSSSize",
						defaultValue: "12rem"
					},

					/**
					 * Sets the maximum width of items.
					 * It prevents items from becoming larger than the value specified.
					 */
					maxItemWidth: {
						type: "sap.ui.core.AbsoluteCSSSize",
						defaultValue: "24rem"
					}
				},
				defaultAggregation: "content",
				aggregations: {

					/**
					 * Defines the content contained within this control.
					 * Flow layouts are typically used to arrange input controls, such as text input fields, but also
					 * buttons, images, etc.
					 */
					content: {
						type: "sap.ui.core.Control",
						multiple: true
					},

					/**
					 * Defines the area which is positioned at the bottom on the right of the entire layout control.
					 */
					endContent: {
						type: "sap.ui.core.Control",
						multiple: true
					}
				}
			}
		});

		AlignedFlowLayout.prototype.init = function() {
			this._iEndItemWidth = -1;

			// registration ID used for deregistering the resize handler
			this._sResizeListenerId = ResizeHandler.register(this, this._onResize.bind(this));
		};

		AlignedFlowLayout.prototype.exit = function() {
			if (this._sResizeListenerId) {
				ResizeHandler.deregister(this._sResizeListenerId);
				this._sResizeListenerId = "";
			}
		};

		AlignedFlowLayout.prototype._onRenderingOrThemeChanged = function() {
			var oDomRef = this.getDomRef(),
				oEndItemDomRef = this.getDomRef("endItem"),
				bEndItemAndContent = this.getContent().length && oDomRef && oEndItemDomRef;

			if (bEndItemAndContent) {
				var oLayoutComputedStyle = window.getComputedStyle(oDomRef, null),
					iLayoutPaddingTop = oLayoutComputedStyle.getPropertyValue("padding-top"),
					mEndItemStyle = oEndItemDomRef.style;

				// adapt the position of the absolute-positioned end item in case a standard CSS class is added
				if (sap.ui.getCore().getConfiguration().getRTL()) {
					mEndItemStyle.left = oLayoutComputedStyle.getPropertyValue("padding-left");
				} else {
					mEndItemStyle.right = oLayoutComputedStyle.getPropertyValue("padding-right");
				}

				mEndItemStyle.bottom = iLayoutPaddingTop;
			}

			this._onResize(null, oDomRef, oEndItemDomRef);

			// update last spacer width
			if (bEndItemAndContent) {
				oDomRef.lastElementChild.style.width = this._iEndItemWidth + "px";
			}
		};

		AlignedFlowLayout.prototype.onAfterRendering = AlignedFlowLayout.prototype._onRenderingOrThemeChanged;
		AlignedFlowLayout.prototype.onThemeChanged = AlignedFlowLayout.prototype._onRenderingOrThemeChanged;

		function getRootFontSize() {
			var oRootDomRef = document.documentElement;

			if (!oRootDomRef) {
				return 16; // browser default font size
			}

			return parseFloat(window.getComputedStyle(oRootDomRef).getPropertyValue("font-size"));
		}

		function remToPx(vRem) {
			return parseFloat(vRem) * getRootFontSize();
		}

		// this resize handler needs to be called on after rendering, theme change, and whenever the width of this
		// control changes
		AlignedFlowLayout.prototype._onResize = function(oEvent, oDomRef, oEndItemDomRef) {

			// called by resize handler, but only the height changed, so there is nothing to do;
			// this is required to avoid a resizing loop
			if ((oEvent && (oEvent.size.width === oEvent.oldSize.width)) || (this.getContent().length === 0)) {
				return;
			}

			oDomRef = oDomRef || this.getDomRef();

			if (!oDomRef) {
				return;
			}

			var CSS_CLASS_ONE_LINE = this.getRenderer().CSS_CLASS + "OneLine",
				bEnoughSpaceForEndItem = true;

			oEndItemDomRef = oEndItemDomRef || this.getDomRef("endItem");

			if (oEndItemDomRef) {
				var mLastSpacerStyle = oDomRef.lastElementChild.style;
				mLastSpacerStyle.height = "";
				mLastSpacerStyle.display = "";
				oDomRef.classList.remove(CSS_CLASS_ONE_LINE);

				var oLastItemDomRef = this.getLastItemDomRef(),
					iEndItemHeight = oEndItemDomRef.offsetHeight,
					iEndItemWidth = oEndItemDomRef.offsetWidth,
					iLastItemOffsetLeft = oLastItemDomRef.offsetLeft,
					iAvailableWidthForEndItem;

				if (sap.ui.getCore().getConfiguration().getRTL()) {
					iAvailableWidthForEndItem = iLastItemOffsetLeft;
				} else {
					var iRightBorderOfLastItem = iLastItemOffsetLeft + oLastItemDomRef.offsetWidth;
					iAvailableWidthForEndItem = oDomRef.offsetWidth - iRightBorderOfLastItem;
				}

				this._iEndItemWidth = iEndItemWidth; // cache the width of the end item
				bEnoughSpaceForEndItem = iAvailableWidthForEndItem >= iEndItemWidth;

				// if the end item fits into the line
				if (bEnoughSpaceForEndItem) {

					if (this.checkItemsWrapping(oDomRef)) {

						// if the end item overlap the items on the first line
						if (oEndItemDomRef.offsetTop < oLastItemDomRef.offsetTop) {
							mLastSpacerStyle.height = iEndItemHeight + "px";
							mLastSpacerStyle.display = "block";
						} else {
							mLastSpacerStyle.height = "0";
							mLastSpacerStyle.display = "";
						}

					} else {

						// if the height of the end item is higher than the other items on the first line,
						// the end item goes up and overflow its container
						if (oEndItemDomRef.offsetTop < oLastItemDomRef.offsetTop) {

							// increase the height of the last spacer item to make the end item go down
							mLastSpacerStyle.height = iEndItemHeight + "px";
						}

						mLastSpacerStyle.display = "block";
					}

				} else { // not enough space, increase the height of the last spacer item to make the endContent go down
					mLastSpacerStyle.height = iEndItemHeight + "px";
					mLastSpacerStyle.display = "block";
				}
			}

			// if the items fits into a single line, sets a CSS class to turns off the display of the spacer elements
			if (!this.checkItemsWrapping(oDomRef) && bEnoughSpaceForEndItem) {
				oDomRef.classList.add(CSS_CLASS_ONE_LINE);
			} else {
				oDomRef.classList.remove(CSS_CLASS_ONE_LINE);
			}
		};

		/*
		 * Checks whether the visible content fits into a single line or it wraps onto multiple lines.
		 */
		AlignedFlowLayout.prototype.checkItemsWrapping = function(oDomRef) {
			oDomRef = oDomRef || this.getDomRef();

			if (!oDomRef) {
				return false;
			}

			var oFirstItemDomRef = oDomRef.firstElementChild,
				oLastItemDomRef = this.getLastItemDomRef();

			if (!oFirstItemDomRef || !oLastItemDomRef) {
				return false;
			}

			var iFirstItemOffsetTop = oFirstItemDomRef.offsetTop,
				iLastItemOffsetTop = oLastItemDomRef.offsetTop,
				iFirstItemOffsetHeight = oFirstItemDomRef.offsetHeight;

			// detect wrapping (excluding the end item)
			if (iLastItemOffsetTop >= (iFirstItemOffsetTop + iFirstItemOffsetHeight)) {
				return true;
			}

			oLastItemDomRef = this.getDomRef("endItem");

			// detect wrapping (including the end item)
			return !!oLastItemDomRef && (iLastItemOffsetTop >= (iFirstItemOffsetTop + iFirstItemOffsetHeight));
		};

		/*
		 * Gets the parent element's DOM reference of the last content control - if this control and its DOM exist.
		 */
		AlignedFlowLayout.prototype.getLastItemDomRef = function() {
			var aContent = this.getContent(),
				iContentLength = aContent.length;

			if (iContentLength) {

				var oContent = aContent[iContentLength - 1],
					oContentDomRef = oContent.getDomRef();

				if (oContentDomRef) {
					return oContentDomRef.parentElement;
				}
			}

			return null;
		};

		AlignedFlowLayout.prototype.getLastVisibleDomRef = function() {
			return this.getDomRef("endItem") || this.getLastItemDomRef();
		};

		AlignedFlowLayout.prototype.getNumberOfSpacers = function() {
			var iContentLength = this.getContent().length;

			// spacers are only needed when some content is rendered
			if (iContentLength === 0) {
				return 0;
			}

			var iSpacers = iContentLength,
				sMinItemWidth = this.getMinItemWidth(),
				fMinItemWidth;

			// the CSS unit of the minItemWidth control property is in rem
			if (sMinItemWidth.lastIndexOf("rem") !== -1) {
				fMinItemWidth = remToPx(sMinItemWidth);

				// the CSS unit of the minItemWidth control property is in px
			} else if (sMinItemWidth.lastIndexOf("px") !== -1) {
				fMinItemWidth = parseFloat(sMinItemWidth);
			}
			// else, the CSS unit is not in rem or px, in this case a conversion to px is not made and
			// more spacers are rendered (worst case, but unusual in UI5)

			if (fMinItemWidth) {

				// we do not need more spacers than (documentElement.clientWidth / minItemWidth)
				iSpacers = Math.abs(document.documentElement.clientWidth / fMinItemWidth);
			}

			// we do not need more spacers than items
			iSpacers = Math.min(iSpacers, iContentLength - 2);

			// we need at least 1 spacer, to prevent collision of the content with the endContent aggregation
			iSpacers = Math.max(1, iSpacers);
			return Math.floor(iSpacers);
		};

		return AlignedFlowLayout;
}, /* bExport= */ true);


text:
package com.smartdevicelink.test.rpc.notifications;

import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.proxy.RPCMessage;
import com.smartdevicelink.proxy.rpc.OnTBTClientState;
import com.smartdevicelink.proxy.rpc.enums.TBTState;
import com.smartdevicelink.test.BaseRpcTests;
import com.smartdevicelink.test.Test;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * This is a unit test class for the SmartDeviceLink library project class :
 * {@link com.smartdevicelink.rpc.OnTBTClientState}
 */
public class OnTBTClientStateTests extends BaseRpcTests{

    @Override
    protected RPCMessage createMessage(){
        OnTBTClientState msg = new OnTBTClientState();

        msg.setState(Test.GENERAL_TBTSTATE);

        return msg;
    }

    @Override
    protected String getMessageType(){
        return RPCMessage.KEY_NOTIFICATION;
    }

    @Override
    protected String getCommandType(){
        return FunctionID.ON_TBT_CLIENT_STATE.toString();
    }

    @Override
    protected JSONObject getExpectedParameters(int sdlVersion){
        JSONObject result = new JSONObject();

        try{
            result.put(OnTBTClientState.KEY_STATE, Test.GENERAL_TBTSTATE);
        } catch(JSONException e){
        	fail(Test.JSON_FAIL);
        }

        return result;
    }

    /**
	 * Tests the expected values of the RPC message.
	 */
    public void testRpcValues () {
    	// Test Values
        TBTState data = ( (OnTBTClientState) msg ).getState();

        // Valid Tests
        assertEquals(Test.MATCH, Test.GENERAL_TBTSTATE, data);

        // Invalid/Null Tests
        OnTBTClientState msg = new OnTBTClientState();
        assertNotNull(Test.NOT_NULL, msg);
        testNullBase(msg);

        assertNull(Test.NULL, msg.getState());
    }
}


text:
#region Copyright (c) 2006 Ian Davis and James Carlyle

#endregion

namespace SemPlan.Spiral.Sparql {
  using SemPlan.Spiral.Core;
  using System;
  using System.Collections;
  using System.Text;
  using System.Xml;

	/// <summary>
	/// Represents query formed from the Sparql syntax
	/// </summary>
  /// <remarks>
  /// $Id: SparqlResultsFormatBuilder.cs,v 1.1 2006/01/26 14:42:00 ian Exp $
  ///</remarks>
  public class SparqlResultsFormatBuilder {

    public XmlDocument Build(IEnumerator solutions, SparqlQuery query) {

      XmlDocument doc = new XmlDocument();
      XmlElement rootElement = doc.CreateElement("", "sparql", "http://www.w3.org/2005/sparql-results#");
      doc.AppendChild( rootElement );

      XmlElement headElement = doc.CreateElement("", "head", "http://www.w3.org/2005/sparql-results#");
      rootElement.AppendChild( headElement );
      foreach (Variable variable in query.Variables) {
        XmlElement variableElement = doc.CreateElement("", "variable", "http://www.w3.org/2005/sparql-results#");
        XmlAttribute variableNameAttribute = doc.CreateAttribute("", "name", "");
        variableNameAttribute.Value = variable.Name;
        variableElement.SetAttributeNode(variableNameAttribute);
        headElement.AppendChild( variableElement );
      }

      XmlElement resultsElement = doc.CreateElement("", "results", "http://www.w3.org/2005/sparql-results#");
      XmlAttribute orderedAttribute = doc.CreateAttribute("", "ordered", "");
      if (query.IsOrdered) {
        orderedAttribute.Value="true";
      }
      else {
        orderedAttribute.Value="false";
      }
      resultsElement.SetAttributeNode( orderedAttribute );

      XmlAttribute distinctAttribute = doc.CreateAttribute("", "distinct", "");
      if (query.IsDistinct) {
        distinctAttribute.Value="true";
      }
      else {
        distinctAttribute.Value="false";
      }
      resultsElement.SetAttributeNode( distinctAttribute );

      rootElement.AppendChild( resultsElement );

      while (solutions.MoveNext() ) {
        QuerySolution solution = (QuerySolution)solutions.Current;
        XmlElement resultElement = doc.CreateElement("", "result", "http://www.w3.org/2005/sparql-results#");

        resultsElement.AppendChild( resultElement );
        foreach (Variable variable in query.Variables) {
          XmlElement bindingElement = doc.CreateElement("", "binding", "http://www.w3.org/2005/sparql-results#");
          XmlAttribute bindingNameAttribute = doc.CreateAttribute("", "name", "");
          bindingNameAttribute.Value = variable.Name;
          bindingElement.SetAttributeNode( bindingNameAttribute );
          resultElement.AppendChild( bindingElement );

          XmlElement elementNodeType;

            if ( solution.IsBound( variable.Name ) ) {
            GraphMember member = solution.GetNode( variable.Name );

            if ( member is UriRef) {
              elementNodeType = doc.CreateElement("", "uri", "http://www.w3.org/2005/sparql-results#");
            }
            else if ( member is BlankNode) {
              elementNodeType = doc.CreateElement("", "bnode", "http://www.w3.org/2005/sparql-results#");
            }
            else if ( member is PlainLiteral) {
              elementNodeType = doc.CreateElement("", "literal", "http://www.w3.org/2005/sparql-results#");
              if (null != ((PlainLiteral)member).GetLanguage()) {
                XmlAttribute languageAttribute = doc.CreateAttribute("xml", "lang", "http://www.w3.org/XML/1998/namespace");
                languageAttribute.Value = ((PlainLiteral)member).GetLanguage();
                elementNodeType.SetAttributeNode( languageAttribute );
              }
            }
            else if ( member is TypedLiteral) {
              elementNodeType = doc.CreateElement("", "literal", "http://www.w3.org/2005/sparql-results#");
              XmlAttribute datatypeAttribute = doc.CreateAttribute("", "datatype", "");
              datatypeAttribute.Value = ((TypedLiteral)member).GetDataType();
              elementNodeType.SetAttributeNode( datatypeAttribute );
            }
            else {
              throw new ApplicationException("Unsupported graph member type");
            }
            XmlText valueText = doc.CreateTextNode(  solution.GetNode( variable.Name ).GetLabel() );
            elementNodeType.AppendChild( valueText );
          }
          else {
            elementNodeType = doc.CreateElement("", "unbound", "http://www.w3.org/2005/sparql-results#");
          }
          bindingElement.AppendChild( elementNodeType );
        }
      }

      return doc;
    }
  }

}


text:
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Observable_1 = require('../Observable');
var Subscription_1 = require('../Subscription');
var Subscriber_1 = require('../Subscriber');
var ConnectableObservable = (function (_super) {
    __extends(ConnectableObservable, _super);
    function ConnectableObservable(source, subjectFactory) {
        _super.call(this);
        this.source = source;
        this.subjectFactory = subjectFactory;
    }
    ConnectableObservable.prototype._subscribe = function (subscriber) {
        return this._getSubject().subscribe(subscriber);
    };
    ConnectableObservable.prototype._getSubject = function () {
        var subject = this.subject;
        if (subject && !subject.isUnsubscribed) {
            return subject;
        }
        return (this.subject = this.subjectFactory());
    };
    ConnectableObservable.prototype.connect = function () {
        var source = this.source;
        var subscription = this.subscription;
        if (subscription && !subscription.isUnsubscribed) {
            return subscription;
        }
        subscription = source.subscribe(this._getSubject());
        subscription.add(new ConnectableSubscription(this));
        return (this.subscription = subscription);
    };
    ConnectableObservable.prototype.refCount = function () {
        return new RefCountObservable(this);
    };
    return ConnectableObservable;
})(Observable_1.Observable);
exports.ConnectableObservable = ConnectableObservable;
var ConnectableSubscription = (function (_super) {
    __extends(ConnectableSubscription, _super);
    function ConnectableSubscription(connectable) {
        _super.call(this);
        this.connectable = connectable;
    }
    ConnectableSubscription.prototype._unsubscribe = function () {
        var connectable = this.connectable;
        connectable.subject = void 0;
        connectable.subscription = void 0;
        this.connectable = void 0;
    };
    return ConnectableSubscription;
})(Subscription_1.Subscription);
var RefCountObservable = (function (_super) {
    __extends(RefCountObservable, _super);
    function RefCountObservable(connectable, refCount) {
        if (refCount === void 0) { refCount = 0; }
        _super.call(this);
        this.connectable = connectable;
        this.refCount = refCount;
    }
    RefCountObservable.prototype._subscribe = function (subscriber) {
        var connectable = this.connectable;
        var refCountSubscriber = new RefCountSubscriber(subscriber, this);
        var subscription = connectable.subscribe(refCountSubscriber);
        if (!subscription.isUnsubscribed && ++this.refCount === 1) {
            refCountSubscriber.connection = this.connection = connectable.connect();
        }
        return subscription;
    };
    return RefCountObservable;
})(Observable_1.Observable);
var RefCountSubscriber = (function (_super) {
    __extends(RefCountSubscriber, _super);
    function RefCountSubscriber(destination, refCountObservable) {
        _super.call(this, null);
        this.destination = destination;
        this.refCountObservable = refCountObservable;
        this.connection = refCountObservable.connection;
        destination.add(this);
    }
    RefCountSubscriber.prototype._next = function (value) {
        this.destination.next(value);
    };
    RefCountSubscriber.prototype._error = function (err) {
        this._resetConnectable();
        this.destination.error(err);
    };
    RefCountSubscriber.prototype._complete = function () {
        this._resetConnectable();
        this.destination.complete();
    };
    RefCountSubscriber.prototype._resetConnectable = function () {
        var observable = this.refCountObservable;
        var obsConnection = observable.connection;
        var subConnection = this.connection;
        if (subConnection && subConnection === obsConnection) {
            observable.refCount = 0;
            obsConnection.unsubscribe();
            observable.connection = void 0;
            this.unsubscribe();
        }
    };
    RefCountSubscriber.prototype._unsubscribe = function () {
        var observable = this.refCountObservable;
        if (observable.refCount === 0) {
            return;
        }
        if (--observable.refCount === 0) {
            var obsConnection = observable.connection;
            var subConnection = this.connection;
            if (subConnection && subConnection === obsConnection) {
                obsConnection.unsubscribe();
                observable.connection = void 0;
            }
        }
    };
    return RefCountSubscriber;
})(Subscriber_1.Subscriber);
//# sourceMappingURL=ConnectableObservable.js.map


text:
package stexfires.core.mapper;

import org.jetbrains.annotations.NotNull;
import stexfires.core.TextRecord;
import stexfires.core.filter.RecordFilter;

import java.util.Objects;

/**
 * @author Mathias Kalb
 * @since 0.1
 */
public class ConditionalMapper<T extends TextRecord, R extends TextRecord> implements RecordMapper<T, R> {

    private final RecordFilter<? super T> condition;
    private final RecordMapper<? super T, ? extends R> trueMapper;
    private final RecordMapper<? super T, ? extends R> falseMapper;

    public ConditionalMapper(RecordFilter<? super T> condition,
                             RecordMapper<? super T, ? extends R> trueMapper,
                             RecordMapper<? super T, ? extends R> falseMapper) {
        Objects.requireNonNull(condition);
        Objects.requireNonNull(trueMapper);
        Objects.requireNonNull(falseMapper);
        this.condition = condition;
        this.trueMapper = trueMapper;
        this.falseMapper = falseMapper;
    }

    @Override
    public final @NotNull R map(@NotNull T record) {
        return condition.isValid(record) ? trueMapper.map(record) : falseMapper.map(record);
    }

}


text:
Changelog
=========

## 1.1.1 - 2017-12-15

### Changed
- Links within requirement descriptions now open in a new window. ([craftcms/cms#2205](https://github.com/craftcms/cms/issues/2205))

## 1.1.0 - 2017-11-10

### Changed
- The requirements checker no longer attempts to parse a DB config file, and will only run DB requirement checks if a valid `dsn` is provided.
- Lots of refactoring

## 1.0.17 - 2017-06-29

### Changed
- `RequirementsChecker::checkWebRoot()` no longer checks if the `plugins/` folder is in the web root, as there is no `plugins/` folder.

## 1.0.16 - 2017-06-19

### Changed
- `RequirementsChecker::checkWebRoot()` no longer checks if the `app/` folder is in the web root, as there is no `app/` folder.

## 1.0.15 - 2017-06-13

### Changed
- The DOM extension is now mandatory.

## 1.0.14 - 2017-05-07

### Fixed
- Fixed a bug where the script was considering a blank database password to be invalid. ([#4](https://github.com/craftcms/server-check/issues/4))

## 1.0.13 - 2017-05-01

### Changed
- Removed the PHP version requirement from `composer.json`.

## 1.0.12 - 2017-03-19

### Changed
- Craft 3 Beta 8 compatibility.

## 1.0.11 - 2017-03-07

### Fixed
- Fixed a bug where the PHP memory limit check would fail if `memory_limit` was set to `-1`, which means no limit.

## 1.0.10 - 2017-02-21

### Fixed
- Fixed a bug where the requirements checker would error if the Craft project lived at the root of the file system.

## 1.0.9 - 2017-02-13

### Added
- Added the PHP `password_hash()` function as a mandatory requirement.
- Added the PHP Zip extension as a mandatory requirement.

## 1.0.8 - 2017-02-06

### Changed
- Tweaked keywords in composer.json

### Fixed
- Fixed a bug where the default database port wasn't being accounted for when connecting to the database.

## 1.0.7 - 2017-01-30

### Changed
- Updated the `support` properties in composer.json
- Craft 3 no longer requires `mcrypt`.

## 1.0.6 - 2017-01-17

### Added
- Added support for configuring the database port

## 1.0.5 - 2017-01-17

### Fixed
- Fixed a bug where `checkIniSet()` wasn't undoing a change it made to PHP's `memory_limit` setting.

## 1.0.4 - 2017-01-17

### Changed
- Craft 3 now requires PHP 7

## 1.0.3 - 2017-01-17

### Changed
- Updated code for latest Craft coding guidelines

### Removed
- Removed check for buggy `iconv` extension

## 1.0.2 - 2016-12-30

### Changed
- Autoloading support in composer.json

## 1.0.1 - 2016-12-30

### Changed
- No longer specifying a minimum stability in composer.json
- MIT license in composer.json

## 1.0.0 - 2016-12-30

Initial release.


text:
'use strict';

angular.module('mean.socket').factory('Socket', [
  function() {
    return {
      name: 'socket'
    };
  }
]);


text:
jblaine-git CHANGELOG
=====================

This file is used to list changes made in each version of the jblaine-git cookbook.

0.1.0
-----
- [your_name] - Initial release of jblaine-git

- - -
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.

The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.


text:
Searches

My saved searches

Suggested searches

Recent searches


text:
import { RestBaseUtils } from '../../base/rest';
import { FormElementType } from '../interfaces';
export class NameLookupUtils {
    /**
     * utility to create a name lookup select2 field
     * @param {string} database
     * @param {string} table
     * @param {Partial<INameLookupOptions>} options
     * @returns {IFormElementDesc}
     */
    static nameLookupDesc(database, table, options = {}) {
        const { formID, label, multiple, column, view, required, params, useSession } = {
            formID: table,
            label: `${table[0].toUpperCase()}${table.slice(1)}`,
            multiple: false,
            column: 'name',
            required: true,
            view: `${table}_items`,
            params: {},
            useSession: false,
            ...options,
        };
        return {
            type: multiple ? FormElementType.SELECT2_MULTIPLE : FormElementType.SELECT2,
            label,
            id: formID,
            attributes: {
                style: 'width:100%',
            },
            required,
            options: {
                optionsData: [],
                ajax: {
                    url: RestBaseUtils.getTDPLookupUrl(database, view),
                    data: (query) => {
                        return { column, query: query.term === undefined ? '' : query.term, page: query.page === undefined ? 0 : query.page, ...params };
                    },
                },
            },
            useSession,
        };
    }
}
//# sourceMappingURL=builder.js.map


text:
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
 *
 * LibTomCrypt is a library that provides various cryptographic
 * algorithms in a highly modular and flexible manner.
 *
 * The library is free for all purposes without any express
 * guarantee it works.
 *
 * Tom St Denis, tomstdenis@gmail.com, http://libtom.org
 */

/* Implements ECC over Z/pZ for curve y^2 = x^3 - 3x + b
 *
 * All curves taken from NIST recommendation paper of July 1999
 * Available at http://csrc.nist.gov/cryptval/dss.htm
 */
#include "tomcrypt.h"

/**
  @file ecc_sizes.c
  ECC Crypto, Tom St Denis
*/

#ifdef LTC_MECC

void ecc_sizes(int *low, int *high)
{
 int i;
 LTC_ARGCHKVD(low  != NULL);
 LTC_ARGCHKVD(high != NULL);

 *low = INT_MAX;
 *high = 0;
 for (i = 0; ltc_ecc_sets[i].size != 0; i++) {
     if (ltc_ecc_sets[i].size < *low)  {
        *low  = ltc_ecc_sets[i].size;
     }
     if (ltc_ecc_sets[i].size > *high) {
        *high = ltc_ecc_sets[i].size;
     }
 }
}

#endif
/* $Source: /cvs/libtom/libtomcrypt/src/pk/ecc/ecc_sizes.c,v $ */
/* $Revision: 1.6 $ */
/* $Date: 2007/05/12 14:32:35 $ */


text:
package org.camunda.bpm.engine.impl.cmmn.operation;

import static org.camunda.bpm.engine.delegate.CaseExecutionListener.RE_ACTIVATE;
import static org.camunda.bpm.engine.impl.cmmn.execution.CaseExecutionState.ACTIVE;
import static org.camunda.bpm.engine.impl.util.ActivityBehaviorUtil.getActivityBehavior;

import org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior;
import org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution;

/**
 * @author Roman Smirnov
 *
 */
public class AtomicOperationCaseExecutionReactivate extends AbstractCmmnEventAtomicOperation {

  public String getCanonicalName() {
    return "case-execution-re-activate";
  }

  protected String getEventName() {
    return RE_ACTIVATE;
  }

  protected CmmnExecution eventNotificationsStarted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.onReactivation(execution);

    execution.setCurrentState(ACTIVE);

    return execution;
  }

  protected void postTransitionNotification(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.reactivated(execution);
  }

}


text:
require('proof')(1, async okay => {
    await require('./harness')(okay, 'idbobjectstore_createIndex13')
    await harness(async function () {
        var db,
            t = async_test();

        var open_rq = createdb(t);
        open_rq.onupgradeneeded = function (event) {
            db = event.target.result;
            db.createObjectStore("store");
        }

        open_rq.onsuccess = function (event) {
            var txn = db.transaction("store", "readwrite");
            var ostore = txn.objectStore("store");
            t.step(function(){
                assert_throws_dom("InvalidStateError", function(){
                    ostore.createIndex("index", "indexedProperty");
                });
            });
            t.done();
        }
    })
})


text:
#ifndef __OutputStream_h__
#define __OutputStream_h__

#include "logging/Logger.h"

namespace logging {

    /*! \brief The %OutputStream provides different overloading of operator,
     *         enabling the output of different types in an uniform way.
     *
     *         The behaviour of the %OutputStream is the same as known from the
     *         standard streams. The %OutputStream provides manipulators too,
     *         and is very easy to extend, enabling the adaptation by the user.
     *
     * \tparam Base is a type used for the output and usually it is an output
     *         %device.
     */
    template< typename Base>
    class OutputStream : public Base {
        public:
            /*!
             * \brief Operator for catching manipulators
             * \param m is the manipulator that is feed to the output stream
             * \return %OutputStream& allows for chaining of operators
             **/
            OutputStream& operator << (const ::logging::log::Manipulator m) {
                Base::operator<<(static_cast<char>(m));
                return *this;
            }

            /*! \brief enable calling of manipulator functions
             *
             * \param f is a function that is called with the %OutputStream&
             *        as parameter.
             * \return %OutputStream& allows for chaining of operators
             */
            OutputStream& operator << (OutputStream& (*f) (OutputStream&)) {
                return f(*this);
            }

            template<typename T>
            OutputStream& operator << (const T& value){
                Base::operator<<(value);
                return *this;
            }
    };

} /* logging */

#endif


text:
default['yum']['ius-archive-debuginfo']['repositoryid'] = 'ius-archive-debuginfo'
default['yum']['ius-archive-debuginfo']['enabled'] = false
default['yum']['ius-archive-debuginfo']['managed'] = false
default['yum']['ius-archive-debuginfo']['failovermethod'] = 'priority'
default['yum']['ius-archive-debuginfo']['gpgkey'] = 'http://mirror.its.dal.ca/ius/IUS-COMMUNITY-GPG-KEY'
default['yum']['ius-archive-debuginfo']['gpgcheck'] = true

case node['platform_version'].to_i
when 5
  default['yum']['ius-archive-debuginfo']['description'] = 'IUS Community Packages for Enterprise Linux 5 - $basearch Archive Debug'
when 6
  default['yum']['ius-archive-debuginfo']['description'] = 'IUS Community Packages for Enterprise Linux 6 - $basearch Archive Debug'
when 7
  default['yum']['ius-archive-debuginfo']['description'] = 'IUS Community Packages for Enterprise Linux 7 - $basearch Archive Debug'
end

case node['platform']
when 'redhat'
  case node['platform_version'].to_i
  when 5
    default['yum']['ius-archive-debuginfo']['mirrorlist'] = 'http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el5-archive-debuginfo&arch=$basearch'
  when 6
    default['yum']['ius-archive-debuginfo']['mirrorlist'] = 'http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el6-archive-debuginfo&arch=$basearch'
  when 7
    default['yum']['ius-archive-debuginfo']['mirrorlist'] = 'http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el7-archive-debuginfo&arch=$basearch'
  end
else
  case node['platform_version'].to_i
  when 5
    default['yum']['ius-archive-debuginfo']['mirrorlist'] = 'http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-centos5-archive-debuginfo&arch=$basearch'
  when 6
    default['yum']['ius-archive-debuginfo']['mirrorlist'] = 'http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-centos6-archive-debuginfo&arch=$basearch'
  when 7
    default['yum']['ius-archive-debuginfo']['mirrorlist'] = 'http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-centos7-archive-debuginfo&arch=$basearch'
  end
end


text:
<Defs>
	<HediffDef ParentName="NewAspectedMorphParent">
		<defName>PawnmorphHousekeeperCatTF</defName>
		<hediffClass>Pawnmorph.Hediffs.Hediff_MutagenicBase</hediffClass>
		nekomata
		<description>This person has mechanites in their blood that are slowly mutating them into a catmorph. Keep an eye on them, as leaving the mechanites unattended could lead to them becoming far more feline than human.</description>
		<stages>

				reeling
				<hungerRateFactor>1.6</hungerRateFactor>
				<painOffset>0.05</painOffset>
				<capMods>

						<capacity>Moving</capacity>
						<offset>-0.05</offset>

				</capMods>
				<tfTypes Class="Pawnmorph.Hediffs.Composable.TFTypes_Morph">
					<morphDef>HousekeeperCatMorph</morphDef>
				</tfTypes>
				<tfChance Class="Pawnmorph.Hediffs.Composable.TFChance_BySetting" />
				<tfSettings>
					<tfTale>TransformationMisc</tfTale>
				</tfSettings>
				<tfGenderSelector Class="Pawnmorph.Hediffs.Composable.TFGenderSelector_Swap">
					<chance>0.1</chance>
				</tfGenderSelector>

				transforming
				<minSeverity>0.6</minSeverity>
				<painOffset>0.1</painOffset>
				<vomitMtbDays>1</vomitMtbDays>
				<capMods>

						<capacity>Moving</capacity>
						<offset>-0.05</offset>

						<capacity>Sight</capacity>
						<offset>-0.05</offset>

						<capacity>Manipulation</capacity>
						<offset>-0.05</offset>

				</capMods>
				<alert />

				changing
				<minSeverity>0.65</minSeverity>
				<painOffset>0.1</painOffset>
				<vomitMtbDays>1</vomitMtbDays>
				<capMods>

						<capacity>Moving</capacity>
						<offset>-0.05</offset>

						<capacity>Sight</capacity>
						<offset>-0.05</offset>

						<capacity>Manipulation</capacity>
						<offset>-0.05</offset>

				</capMods>
				<mutationTypes Class="Pawnmorph.Hediffs.Composable.MutTypes_Morph">
					<morphDef>HousekeeperCatMorph</morphDef>
				</mutationTypes>
				<mutationRate Class="Pawnmorph.Hediffs.Composable.MutRate_MutationsPerDay">
					<meanMutationsPerDay>5</meanMutationsPerDay>
				</mutationRate>
				<spreadOrder Class="Pawnmorph.Hediffs.Composable.MutSpreadOrder_RandomSpread" />

		</stages>
	</HediffDef>
</Defs>


text:
define(['./Transformation'], function(Transformation) {

    /**
     *
     * @constructor
     */
    function TransformAnimator() {
        this.transformation = new Transformation();
        this.properties = {
            'rotate': {
                args: this.transformation.Rotate(0),
                mode: animateMode.none,
                diff: [0],
                duration: 0,
                framesUntilChange: 0
            },
            'translate': {
                args: this.transformation.Translate(0, 0),
                mode: animateMode.none,
                diff: [0, 0],
                duration: 0,
                framesUntilChange: 0
            },
            'scale': {
                args: this.transformation.Scale(1, 1),
                mode: animateMode.none,
                diff: [0, 0],
                duration: 0,
                framesUntilChange: 0

            }
        }

    }

    /**
     *
     * @param angle {Number}
     * @param duration {int}
     */
    TransformAnimator.prototype.RotateUntil = function(angle, duration) {

    };

    /**
     *
     * @param angle {Number}
     * @param duration {int}
     */
    TransformAnimator.prototype.RotateEvery = function(angle, duration) {
        this.properties.rotate.diff = [angle];
        this.properties.rotate.duration = duration;
        this.properties.rotate.mode = animateMode.every;
        this.properties.rotate.framesUntilChange = duration;
    };

    /**
     *
     * @param ctx {CanvasRenderingContext2D}
     * @param drawable {Drawable}
     */
    TransformAnimator.prototype.Apply = function(ctx, drawable) {
        updateTransformArgs.call(this);
        this.transformation.Apply(ctx, drawable);
    };

    /**
     *
     * @param ctx {CanvasRenderingContext2D}
     */
    TransformAnimator.prototype.Revert = function(ctx) {
        this.transformation.Revert(ctx);
    };

    /**
     * @this TransformAnimator
     */
    function updateTransformArgs() {
        updateRotateArgs.call(this);
    }

    /**
     * @this TransformAnimator
     */
    function updateRotateArgs() {
        if(this.properties.rotate.mode !== animateMode.none)
            this.properties.rotate.framesUntilChange--;

        if(this.properties.rotate.framesUntilChange <= 0) {
            if(this.properties.rotate.mode === animateMode.every) {
                this.properties.rotate.args[0] += this.properties.rotate.diff[0];
            }
            this.properties.rotate.framesUntilChange = this.properties.rotate.duration;
            if(isFullCircle(this.properties.rotate.args[0]))
                this.properties.rotate.args[0] = normalizeAngle(this.properties.rotate.args[0]);
        }
    }

    function isFullCircle(angle) {
        return angle >= 360 * Math.PI / 180;
    }

    function normalizeAngle(angle) {
        return angle - (360 * Math.PI / 180);

    }

    var animateMode = {
        none: 0,
        every: 1,
        until: 2
    };

    return TransformAnimator;
});


text:
\documentstyle [12pt]{article}
\parindent=0pt
\parskip=7pt plus 2pt

%$Id: beginners.tex,v 1.2 1992/02/13 18:34:49 jromine Exp $

\def\oneline#1{\par\bigskip\leftline{\tt\hskip.75in#1}}
\def\command#1{\par\bigskip\leftline{\tt\hskip.75in\% #1}}
\def\comarg#1#2{\par\bigskip\leftline{\tt\hskip.75in\% #1 {\it#2}}}
\def\MH/{{\sf MH}}
\def\MM/{{\sc mm}}
\def\unix/{{\sc Unix}}
\newfont{\itt}{cmti10}
\begin{document}

\title{MH for Beginners}
\author{Mary Hegardt \and Tim Morgan}
\maketitle

This document is intended to be an introduction for new users to the
\MH/ mail system. For more detailed information, users will want to
read the document called {\sl The Rand MH Message Handling System:
User's Manual\/} by Marshall~T. Rose and John~L. Romine. It is available
for Xeroxing in suite CS408.
\footnote{This document is specific to the environment
at the ICS department of U.~C.~Irvine.  For a more general document,
see {\sl The Rand MH Message Handling System: Tutorial\/}.}

\section{Using Electronic Mail}

Electronic mail (e-mail) is a quick, convenient way to send a message
to another person (or persons).  The message recipient can read and
reply to the message at his convenience. E-mail is much faster than
a paper memo and avoids inconveniences associated with the telephone
such as unwanted interruptions and ``phone tag.''

At UCI, one can send e-mail to people within the ICS department, people
in other units on campus, and to people at some other institutions
off campus (usually other universities).

An electronic mail message consists of two parts: the headers and the
body.  The body comes after the headers and consists of the ``message'':
whatever the sender types in. The headers are the lines at the top
of the message including the subject and addresses of the people
to whom the message is addressed.  It is similar to the top lines
of a memo: {\tt To:}, {\tt From:}, {\tt Subject:}, and so on.  The headers
are separated from the body by a blank line. As in memos, the people
listed in the {\tt Cc:}\ field are not intended to be the primary recipients
of the message. The message is for their information only, and they
are not expected to reply.

E-mail is also useful for discussions among groups of people.  This
``bboards'' (electronic bulletin boards) facility will be discussed later.

An electronic mail address looks like ``{\it name\/}{\tt@}{\it site\/}''.
The {\it name\/} is
a person's ``mail handle'' --- usually his first initial followed by his
last name.   For example, Mary Hegardt's mail handle is ``mhegardt''.
The {\it site\/} is the system where the addressee receives mail.  Within
the ICS Department, you need only know the person's mail handle;
the mail system will automatically fill in the ``{\tt @}{\it site\/}'' part.

\section{Why MH ?}

The \MH/ system is very different from most mail user agents.  Instead of
running one large program which handles all mail functions and keeps
messages in one large file, \MH/ is a collection of smaller
single-purpose programs used to manipulate mail messages
which are kept in individual files.  \MH/ may seem to be more complicated
or harder to use than other mail systems (MM, for example), but
\MH/ has been designed to allow
you to take full advantage of existing {\sc Unix}\footnote{{\sc Unix} is
a trademark of AT\&T Bell Laboratories} commands and programs
in connection with mail messages.
For example, you can use your usual text editor, spelling program, and
printer commands on individual messages.

\section{The Basics}

The first time you use an \MH/ command (probably {\it inc\/}),
\MH/ will create a directory called ``Mail'' in your home (login) directory. All
your mail will be stored in directories beneath this one.  It will also
create a file in your home directory called \verb|.mh_profile|.  It is
a file that allows you to tailor your \MH/ environment.  We'll discuss
this more later.

\subsection{Reading Mail}

When someone sends a mail message to you, it is delivered to a file
called your ``mail drop'' file.  When you are ready to read your mail,
you have to incorporate (or ``inc'') your mail messages from the mail
drop area into your account.

Everytime you log in to your {\sc Unix} account, you will be told if you
have new mail messages.  When you are ready to read them, type \verb|inc|.
The {\it inc\/} program will copy your mail into your ``inbox'' and generate
a ``scan'' listing of the new messages. For example,

\begin{scriptsize}
\begin{verbatim}
4.2 BSD UNIX #116: Mon Jul 15 14:03:21 PDT 1985
You have new ZOTnet mail, type "inc" (or mail)

TERM = (dm1520)

% inc

Incorporating new mail into inbox ...

   1+ 10/29 1732-PST Tim Morgan        new bboard!  <<Please add us to the uni
   2  11/12 0016-PST ROODE@uci-20b     CP6 from the 20s  <<What is (will be) t
   4  11/15 1909-EDT tts@tts           Hello, got a few questions
   5  11/15 2134-PST Marshall Rose     MH.6 on 750a  <<Mary, I've left the dis
   6  11/16 0808-PST Mail Delivery Su  Returned mail: Host unknown
   7  11/16 1021-PST Tim Morgan        Unix-wizards/info-unix move
   8  11/18 0952-PST freeman@icsd.UCI  Re:New system wide aliases for ICS facu
   9  11/18 1346-EDT tts@tts           Have we got a problem?
\end{verbatim}
\end{scriptsize}

This is what a typical ``inc'' session for the Postmaster looks like.
{\it Inc\/} copies my mail into my ``inbox'' folder, assigns a unique number to
each message, and scans them for me.  The numbers allow you to refer
to each message individually.  After the message number, you see the
date and time the message was sent, the name of the sender, and the
subject of the message. The ``current'' message is indicated by a
``{\tt +}'' sign. To read it, type ``{\tt show}'':

\begin{scriptsize}
\begin{verbatim}
% show

   (Message inbox:1)
   Received: from localhost by UCI.EDU id a005369; 29 Oct 85 17:32 PST
   To: postmaster@UCI.EDU
   Subject: new bboard!
   Date: 29 Oct 85 17:32:24 PST (Tue)
   From: Tim Morgan <morgan@UCI.EDU>

   Please add us to the unix-sw list.  Also, if RAJ hasn't mentioned it,
   and if it still exists, we should get on the Astronomy bboard.

   Tim
\end{verbatim}
\end{scriptsize}

If the message is
longer than one screenful, you will see the word ``more'' at the bottom
of the screen.  When you are ready to see ``more'' of the message,
press the \fbox{space bar} to see another screenful, or press the
\fbox{return} key to see just one more line.

To see the next message, you could type a couple of different commands:

\oneline{\% next}
or
\oneline{\% show next}
or
\oneline{\% show 2}

All of these commands would have the same effect: to type out the next message
in the list.  The most efficient thing to do is to type ``{\tt next}''.  When
You do that, message number 2 will be shown and become the ``current message''.

\begin{footnotesize}
\begin{verbatim}
% next

(Message inbox:2)
Received: from UCI-20B by UCI-ICSA id aa01222; 12 Nov 85 0:23 PST
Date: 12 Nov 1985 0016-PST
From: ROODE@uci-20b
Subject: CP6 from the 20s
To: zotnet@uci-20b
cc: dana_roode%ucicp6@UCI.EDU

What is (will be) the prescribed method of addressing for sending
CP6 mail from the 20s?  They dont seem to know about @CF, @UCICP6,
but "Name_Name%UCICP6"@ICSA seems to fly.

	dana
\end{verbatim}
\end{footnotesize}

\subsection{Selecting Messages}

As you have seen, messages can be referred to by their message numbers.
Some \MH/ commands, such as {\it show,} can act upon more than one
message at a time. A range of messages can be specified using the
form ``{\it name1-name2\/}'' where {\it name\/} is a message number or
one of the reserved message names described below:

\bigskip

\def\titem[#1]{\par\noindent\hbox to .5in{\hfil\it #1\/}\qquad}

\titem[cur] The current message (the last one that was handled)
\titem[next] The next message (same as ${\it cur\/} + 1$)
\titem[prev] The previous message (${\it cur\/} - 1$)
\titem[first] The first message in the current folder
\titem[last] The last message in the folder
\titem[all] All messages ($\it first-last$)

\bigskip

If you do not name a specific message, the command will act upon
the ``current message''.

\subsection{Sending Messages}

A mail message consists of two parts: the headers and the body.  The
headers are the lines at the top of the message that say ``{\tt To:}''
and so on.  The body is the actual text of the message (what you
want to say).  To send someone a message, you start with the
{\it comp\/} command.  This will start up an editor called {\it prompter\/}
that will prompt you to fill in the headers. You should type the
requested information for that header or a \fbox{return} to omit it.
You should end the message by typing control-D (press down the key
marked \fbox{ctrl} and strike the D key) at the beginning of a new
line.  Here's an example:

\begin{verbatim}
	% comp
	To: morgan, raj
	Cc:
	Subject: Lunch
	---------
	Where are we going for lunch today ?

	Mary
	<control-D>
	--------
	What now ?  send
\end{verbatim}

At the ``\verb|What now ?|'' prompt you can type a {\tt?} to see
what commands you can type next.
One of the most useful options at this point is to edit the draft
of the message to correct any mistakes.  To do this you type:

\oneline{What now ?  edit vi}

This will put you in the {\it vi\/} editor to edit the message.  If you use
{\it emacs\/} or any other editor, just type ``edit emacs'' or whatever.
When you have finished editing, just exit the editor as you would
normally.  You will then get another ``\verb|What now ?|'' prompt. Here are some
of the ``What now'' options:

\bigskip

\begingroup
\def\titem[#1]{\par\hangafter=1\hangindent=1.4in\noindent
	\hbox to\hangindent{\hfil#1\qquad}\ignorespaces}

\titem[\tt edit \it editor\/] Edit the message using the specified
				editor.  When you exit, you will be
				back at \verb|What now|.

\titem[\tt list] Shows the message you just typed

\titem[\tt whom -check] Verifies that the addresses you have
				used are valid as far as our system
				can tell

\titem[\tt send] Sends the message to the recipients

\titem[\tt push] Sends the message in the background

\titem[\tt quit] Quits without sending the message.
				Saves the text of the message as
				a ``draft''. Type \verb|comp -use| to
				get back to that draft later.

\titem[\tt quit -delete] Quit, throwing away the draft
\endgroup

\bigskip

Make sure you are happy with your message before typing \verb|send|.  There
is no way to recall a message once it has been sent.

\subsection{Replying to Messages}

To reply to the current message type {\it repl.}  When you do this,
the reply headers will be printed out and you will be put in the prompter
editor to type in your reply text. When you are replying  to a message,
the name of the sender of the original message will appear in the
``To:'' field.  Any people on the ``To:'' or ``Cc:'' lists will also
be copied on your reply message. As with {\it comp,} when you have
finished, type control-D and \verb|send| (or whatever) at \verb|What now ?|.

\subsection{Forwarding Messages}

If you receive a particularly interesting message and can't resist
sharing it with others, you can forward it using the {\it forw\/}
command.  You will be prompted to fill in the headers (the address
to which the message is to be forwarded, etc.). When you have done this,
you will see the text of the message which you are forwarding and will be
given the opportunity to add some enlightening text to the message.
Exit with control-D and do whatever feels good at the \verb|What now ?|
prompt.

\subsection{The Advanced Features}

You will probably want to master the beginning \MH/ concepts before you
tackle the following\dots

\subsection{Folders}

Folders are really just directories for storing mail messages in an
organized way.   To store a message in a folder named
``inbox'', type:

\oneline{\% refile 5 +inventory}

If the folder doesn't exist yet, you will be asked if it should be created.
To access messages in another folder, you can change your current
folder from ``inbox'' to something else.  If you want to look at all
the messages pertaining to the inventory, you type:

\oneline{\% folder +inventory}

and now you use {\it scan,} {\it show,} etc., to manipulate the messages
in that folder.
To change back to inbox, type:

\oneline{\% folder +inbox}

Using the {\it inc\/} command will change your current folder to be the
``inbox'' automatically.

\section{Mailing files}

Mailing files is usually not a good idea, especially for large files.
The mail system was never designed for moving big files. You
can use the {\it cp\/} file to move the file to another account much more
efficiently:

\oneline{\% cp \char`\~frated/desired-file \char`\~./newfile}

This will copy the file from frated's account to the current directory and
call it ``newfile''.

You can also copy files across the network using {\it rcp\/}:

\oneline{\% rcp icsd:frated/desired-file ./newfile}

This copies frated's file on the system icsd to the current directory.

If you {\it really\/} have to mail a file, you use the {\it mhmail\/} program.
To mail a file ``myfile'' to another user ``frated'', with ``MyFile'' as
the subject type:

\oneline{\% mhmail frated -subject MyFile < myfile}

\section{Searching for messages}

The {\it pick\/} program allows you to search your inbox (or any other)
folder to find messages which contain a certain word.  If you want to
list all messages from Smith you can type:

\oneline{\% pick -from smith -list}

and it will list the numbers of all messages from Smith that are in the
current folder.  You can {\it pick\/} messages according to any of the
headers ({\tt -to -from -subj -cc {\rm or} -date}) or just search all the
messages for a given word ({\tt -search}).

\section{The MH Profile}

Each \MH/ user has a file in his directory called \verb|.mh_profile|.  This
file contains a list of user-specified default options for \MH/ programs.
The only required
entry is the name of your \MH/
directory:

\oneline{Path: Mail}
or
\oneline{Path: mhbox}

To make a change to your \verb|.mh_profile|, you edit the file and add a
line for the applicable program.  For example, if you would like to use {\it
vi\/} instead of {\it prompter\/} as your initial editor when composing
messages, you would add this line to your \verb|.mh_profile|:

\oneline{comp: -editor vi}

or, if you want to have a format file for {\it scan\/} to use, you should
have:

\oneline{scan: -form {\it formatfile}}

Almost all of the \MH/ programs have options that can be set using the
\verb|.mh_profile|. You should consult the {\sl MH User's Manual\/}
for more information about this.

Many people will want to add a signature line to their \verb|.mh_profile|.
This line  will appear as your signature on the From: line in messages
you send. It looks like this:

\oneline{Signature: John Q. Public}

Occasionally people express an interest in getting rid of some of the
header lines in their mail messages.  They don't want to see the
``Received from'', ``Via'' information, or some other header.  It
is possible to prevent these and other annoying headers from being
displayed by changing your {\it show\/} processor to be {\it mhless.}
To do this you must add this line

\oneline{showproc: mhless}

to your \verb|.mh_profile|. You also must create a file
called ``.mhlessrc'' containing the words which
appear at the beginning of the lines you don't want to see.

The typical ``.mhlessrc'' file will look like this:
\begin{verbatim}
	Received
	Via
	BB-Posted
	Return-Path
\end{verbatim}

The ``.mhlessrc'' file must be in your home directory.

\section{BBoards}

Electronic bulletin boards (BBoards) are a convenient way for a group
of people to discuss a particular topic.  Messages are sent to
an address where they can be read and replied to by all interested
parties. In the ICS department we have some ``local'' BBoards which
involve only people in the department.  We also subscribe to many
nationally distributed BBoards.  BBoards are read using the {\it bbc\/}
program which will allow you to read the messages with
an \MH/-like interface.

One very important BBoard is ``system''.
It contains vital news about changes in software, system
downtime, new programs, and other information useful to all users.

To read a BBoard, you type ``\verb|bbc| {\it BBoard\_name\/}''. The {\it
bbc\/} program will check to see if there are new messages in the named
BBoard and if there are, it will start up {\it msh\/} so you can read them.
The {\it msh\/} program allows you to use regular \MH/ commands when reading
BBoards. Type ``{\tt show}'' to see the current message, ``{\tt next}'' to
see the next message, and so on.  Type ``{\tt quit}'' to quit reading the
current BBoard. If you have named more than one BBoard on the command line
or in your \verb|.mh_profile|, {\it bbc\/} will continue processing the next
BBoard in the list.

Here is an example of using {\it bbc\/} to read the system BBoard:

\newpage
\begin{footnotesize}
\baselineskip=12pt\parskip=0pt
\leftline{\tt\% bbc \itt system}
\leftline{\tt Reading system, currently at message 1 of 22}
\leftline{\tt(msh) \itt show}
\begin{verbatim}
(Message 1, BBoard-ID: 1360)
BBoard-ID: 1360
BB-Posted: Wed, 29 Jan 86 15:36:39 PST
Received: from localhost by UCI.EDU id a006693; 29 Jan 86 15:20 PST
To: network@UCI.EDU
Subject: Imagen 24300
Date: Wed, 29 Jan 86 15:19:43 -0800
From: Tinh Tang <ttang@UCI.EDU>

The Imagen 24300 is now operating normally.  It was broken down
due to the paper jammed in the drum.  Luckily, it didn't cause
any damage.

/ttang
\end{verbatim}\leftline{\tt(msh) \itt next}\begin{verbatim}
(Message 4, BBoard-ID: 1363)
BBoard-ID: 1363
BB-Posted: Fri, 31 Jan 86 13:33:37 PST
Received: from localhost by UCI.EDU id a001631; 31 Jan 86 13:30 PST
To: msgs@UCI.EDU
Subject: uci.edu down 2/7/86 17:10 - 2/7/86 20:30
Date: Fri, 31 Jan 86 13:30:27 -0800
From: root@UCI.EDU

The uci.edu will be down from
	February  7,1986 17:10 till February  7,1986 20:30.
The reason for the downtime is:
Both, the Computing Facility and the Physical Sciences Dataswitches
will be unavailable from 5:10pm until 8:30pm on Friday, February 7th.
Therefore all the Computers attached to those switches and the
corresponding tandem link will be unavailable to users on
the specified time.              (RJ).

Downtime Scheduler
\end{verbatim}\leftline{\tt(msh) \itt quit}
\leftline{\tt \%}
\end{footnotesize}
\newpage

You can see a list of all the available BBoards by typing:

\command{bbc -topics}

You can also put a line in your ``\verb|.mh_profile|'' listing all
the BBoards you want to read on a regular basis:

\oneline{bboards: system movies mh-users events}

Then you only need to type ``\verb|bbc|'' to read all your BBoards.

\section{Checking for Mail}

Under \unix/, there are many different ways to check for new mail. The
easiest way to do it is to set the {\it csh\/} variable named ``mail''
to tell {\it csh\/} to check for new mail for you periodically. To
do this, add the line

	\oneline{set mail=(60 /usr/spool/mail/\$USER)}

to the {\tt .login} file in your home directory.  This command says
to check for mail if {\it csh\/} is about to prompt you with a
{\tt \%} sign, and if it has been at least 60 seconds since it last
checked for mail.  The advantage of this method of mail notification,
besides simplicity, is that you will never be interrupted by a mail
notification.  You will only be notified about new mail when you
are between commands.

If you want asynchronous mail notification, which will print to your
terminal regardless  of what you are currently doing, you may make
use of a ``receive mail hook'' called ``rcvtty''.  To do this,
create a file in your home directory called ``{\tt .maildelivery}''.
In this file, put the line

	\oneline{* - pipe R /usr/uci/lib/mh/rcvtty}

Then, each time mail arrives, you will receive a one--line ``scan''
listing of the mail if your terminal is world-writable.  For more
information on mail delivery files, type:

	\command{man 5 maildelivery}

This will tell you about all the options available to you if you
use maildelivery files.

\section{Aliases}

Using \MH/, you may specify your own private mail aliases.  This feature
allows you to store lists of addresses or long internet addresses of people
with whom you frequently correspond in one file, and then to address them
using short mnemonic names.  Typically, you will call your alias file ``{\tt
aliases}''; it must be stored in your \MH/ directory.  The format of this
file is simple. The alias is given, followed by a colon, followed by one or
more legal mail addresses separated by commas.  For example, you might for
some reason have an alias for all the users named ``Rose'' in the ICS
department:

	\oneline{roses: prose, srose, mrose, drose}

In addition to your ``{\tt aliases}'' file, you will need to modify your\break
\verb|.mh_profile| in order to use aliases.  You should add the flag
``{\tt -alias aliases}'' to the entries for the commands {\it ali, whom,
send,} and {\it push,} creating entries for these programs if they aren't
already in your \verb|.mh_profile|.
Now, messages addressed to ``{\tt roses}'' will be distributed to all
the people listed in the alias.

The {\it ali\/} command is used to show you what an alias expands to.
You just type

	\comarg{ali}{alias}

and {\it ali\/} will respond with the expansion of the {\it alias.}  {\it
Ali\/} searches the system aliases file in addition to your private ones.

\section{Blind Lists}

There are two different types of so-called ``blind addressing'' of messages.
The {\tt BCC:} field allows you to add recipients to your message just
like those who are CC'd, but the normal recipients will not see that the
BCC recipients were copied on the message, their replies will not go to the
blind recipients, and the blind recipients cannot (easily) reply to the
message.

The second type of blind mailing is actually called a ``group address list'',
although it is commonly referred to as a ``blind list''.
The format of this type of address is

	\oneline{{\it phrase\/}: {\it address\_list\/};}

where the ``{\it phrase\/}'' is any English phrase of one or more words,
and the {\it address\_list\/} consists of one or more addresses separated by
commas.  The recipients of a message addressed in this fashion will
see simply

	\oneline{{\it phrase\/}: ;}

so when they reply to the message, their reply will come only to the sender
(or the {\tt Reply-To:} field, if one was specified), rather than going to
all the recipients of the original list. For example, to use a group
address list for the ``{\tt roses}'' alias you would type:

	\oneline{To: People Named Rose: roses;}

This type of group address is very
useful for making up lists of related people, such as all the people working
on a particular research project.

\end{document}


text:
<?php

namespace Google\Service\Contentwarehouse;

class IndexingDupsLocalizedLocalizedClusterLinkBasedClusterInfoLinkMember extends \Google\Collection
{
  protected $collection_key = 'languageCode';
  /**
   * @var string
   */
  public $annotationSource;
  /**
   * @var string[]
   */
  public $languageCode;
  /**
   * @var string
   */
  public $url;

  /**
   * @param string
   */
  public function setAnnotationSource($annotationSource)
  {
    $this->annotationSource = $annotationSource;
  }
  /**
   * @return string
   */
  public function getAnnotationSource()
  {
    return $this->annotationSource;
  }
  /**
   * @param string[]
   */
  public function setLanguageCode($languageCode)
  {
    $this->languageCode = $languageCode;
  }
  /**
   * @return string[]
   */
  public function getLanguageCode()
  {
    return $this->languageCode;
  }
  /**
   * @param string
   */
  public function setUrl($url)
  {
    $this->url = $url;
  }
  /**
   * @return string
   */
  public function getUrl()
  {
    return $this->url;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexingDupsLocalizedLocalizedClusterLinkBasedClusterInfoLinkMember::class, 'Google_Service_Contentwarehouse_IndexingDupsLocalizedLocalizedClusterLinkBasedClusterInfoLinkMember');