text:
<!-- See documentation at https://github.com/gooddata/GoodData-CL/blob/master/cli-distro/doc/XML.md -->

<schema>
    <name>Content</name>
    <columns>
        <column>
            <name>id</name>
            <title>ID (Content)</title>
            <ldmType>CONNECTION_POINT</ldmType>
            <transformation>IDENTITY</transformation>
        </column>
        <column>
            <name>profileId</name>
            <title>Profile ID</title>
            <ldmType>IGNORE</ldmType>
            <schemaReference>Profile</schemaReference>
            <reference>id</reference>
        </column>
        <column>
            <name>date</name>
            <title>Date (Content)</title>
            <ldmType>DATE</ldmType>
            <format>yyyy-MM-dd</format>
            <schemaReference>Visit</schemaReference>
        </column>
        <column>
            <name>exitPagePath</name>
            <title>Exit Page Path</title>
            <ldmType>ATTRIBUTE</ldmType>
            <folder>Content</folder>
            <dataType>VARCHAR(255)</dataType>
        </column>
        <column>
            <name>landingPagePath</name>
            <title>Landing Page Path</title>
            <ldmType>ATTRIBUTE</ldmType>
            <folder>Content</folder>
            <dataType>VARCHAR(255)</dataType>
        </column>
        <column>
            <name>pagePath</name>
            <title>Page Path</title>
            <ldmType>ATTRIBUTE</ldmType>
            <folder>Content</folder>
            <dataType>VARCHAR(255)</dataType>
        </column>
        <column>
            <name>pageTitle</name>
            <title>Page Title</title>
            <ldmType>ATTRIBUTE</ldmType>
            <folder>Content</folder>
        </column>
        <column>
            <name>previousPagePath</name>
            <title>Previous Page Path</title>
            <ldmType>ATTRIBUTE</ldmType>
            <folder>Content</folder>
            <dataType>VARCHAR(255)</dataType>
        </column>
        <column>
            <name>nextPagePath</name>
            <title>Next Page Path</title>
            <ldmType>ATTRIBUTE</ldmType>
            <folder>Content</folder>
            <dataType>VARCHAR(255)</dataType>
        </column>
        <column>
            <name>bounces</name>
            <title>Bounces (Content)</title>
            <ldmType>FACT</ldmType>
            <folder>Content</folder>
        </column>
        <column>
            <name>newVisits</name>
            <title>New Visits (Content)</title>
            <ldmType>FACT</ldmType>
            <folder>Content</folder>
        </column>
        <column>
            <name>pageViews</name>
            <title>Page Views (Content)</title>
            <ldmType>FACT</ldmType>
            <folder>Content</folder>
        </column>
        <column>
            <name>uniquePageviews</name>
            <title>Unique Page Views (Content)</title>
            <ldmType>FACT</ldmType>
            <folder>Content</folder>
        </column>
        <column>
            <name>timeOnPage</name>
            <title>Time On Page (Content)</title>
            <ldmType>FACT</ldmType>
            <folder>Content</folder>
        </column>
        <column>
            <name>exits</name>
            <title>Exits (Content)</title>
            <ldmType>FACT</ldmType>
            <folder>Content</folder>
        </column>
        <column>
            <name>entrances</name>
            <title>Entrances (Content)</title>
            <ldmType>FACT</ldmType>
            <folder>Content</folder>
        </column>
    </columns>
</schema>


text:
#include "activity_node.hpp"
#include "string_utilities.hpp"
#include <algorithm>
#include <cassert>
#include <map>
#include <string>

using std::map;
using std::max;
using std::min;
using std::string;
using std::vector;

namespace swx
{

ActivityNode::ActivityNode(string const& p_activity):
    m_components(split(p_activity))
{
}

ActivityNode::ActivityNode(string const& p_activity, unsigned int p_depth):
    m_components(split(p_activity))
{
    m_components.resize(p_depth);
}

ActivityNode::ActivityNode
(   vector<string>::const_iterator const& p_begin,
    vector<string>::const_iterator const& p_end
):
    m_components(p_begin, p_end)
{
}

bool
ActivityNode::operator<(ActivityNode const& rhs) const
{
    return m_components < rhs.m_components;
}

bool
ActivityNode::operator==(ActivityNode const& rhs) const
{
    return m_components == rhs.m_components;
}

bool
ActivityNode::operator!=(ActivityNode const& rhs) const
{
    return !(*this == rhs);
}

string
ActivityNode::activity() const
{
    return squish(m_components.begin(), m_components.end());
}

string
ActivityNode::marginal_name() const
{
    return m_components.empty() ? "" : m_components.back();
}

ActivityNode
ActivityNode::parent() const
{
    assert (!m_components.empty());
    return ActivityNode(m_components.begin(), m_components.end() - 1);
}

}  // namespace swx

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Xidea\Dataflow\Resource;

/**
 * @author Artur Pszczółka <a.pszczolka@xidea.pl>
 */
class DataResource extends AbstractResource implements DataResourceInterface
{
    /*
     *
     */
    public function __construct($type, Source\DataSourceInterface $source, $options = array())
    {
        parent::__construct($type, $options);

        $this->source = $source;

        $this->initReader();
        $this->initWriter();
    }

    /**
     * @inheritDoc
     */
    public function getBatchSize()
    {
        return $this->source->getBatchSize();
    }

    /**
     * @inheritDoc
     */
    public function isCollection()
    {
        return $this->source->isCollection();
    }

    /**
     * @inheritDoc
     */
    public function read()
    {
        return $this->source->read();
    }

    /**
     * {@inheritDoc}
     */
    public function write($data)
    {
        return $this->source->write($data);
    }

    /**
     * {@inheritDoc}
     */
    public function close()
    {
        return $this->source->close();
    }

    /**
     *
     */
    protected function initReader()
    {
        $this->_reader = ReaderFactory::createFromFile($this->getType(), $this->source->getPath(), $this->getOptions());
    }

    /**
     *
     */
    protected function initWriter()
    {
        $this->_writer = WriterFactory::createFromFile($this->getType(), $this->source->getPath(), $this->getOptions());
    }
}


text:
{
  "title": "How to monitor launchd jobs",
  "shortTitle": "Monitoring launchd",
  "date": "2016-02-29"
}
---
In OS X, you can run a background job on a timed schedule using launchd ("Launch Daemon"). We can use WDT.io to be notified when a scheduled job fails or does not run.

1. [Sign up](https://wdt.io/signup) on WDT.io if you haven't already
2. [Create](inbound_timer.html) a new inbound timer
3. Copy the URL of this new timer
4. Extend the job to send a kick to the URL copied from step 3

Now every time launchd runs your job, it'll also send a kick to WDT.io. This regular kick prevents WDT.io from sending an alert to you. If, for whatever reason the job fails, WDT.io won't get the kick and will send an alert.

### Example

We have the following hourly launchd agent:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>org.you.something</string>
    <key>Program</key>
    <string>something.sh</string>
    <key>StartInterval</key>
    <integer>3600</integer>
  </dict>
</plist>
```
Every hour the something.sh script is executed. It typically finishes in a couple of second.

So we name our new inbound timer **something**, set the schedule to **every 1 hour** and the precision to **0.5 minutes**. The URL for this new timer will look similar to **k.wdt.io/123abc/something**. With that, we edit the agent and change it to:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>org.you.something</string>
    <key>ProgramArguments</key>
    <array>
        <string>/bin/sh</string>
        <string>-c</string>
        <string>something.sh && curl -sm 30 k.wdt.io/123abc/something</string>
    </array>
    <key>StartInterval</key>
    <integer>3600</integer>
  </dict>
</plist>
```
Now, after reloading the agent using launchctl, we'll be notified when the job fails and can fix whatever caused the problem.

### More info

- [Apple's launchd documentation](https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html)
- [launchd.info](http://launchd.info)


text:
<!DOCTYPE html>

    <link rel="stylesheet" media="all" href="/smartanswers/application.css" />
    <link rel="stylesheet" media="print" href="/smartanswers/print.css" />
    <title>Minimum wage calculator for workers - GOV.UK</title>

    <meta name="robots" content="noindex">

        Minimum wage calculator for workers

      <form action="/am-i-getting-minimum-wage/y/past_payment/2015-10-01/no/25" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="✓" />

    How often did you get paid?

This is your pay period.

You get paid every

      <input type="text" name="response" id="response" />days

            <input type="hidden" name="next" value="1" />
            <button type="submit" class="medium button">Next step</button>

      </form>

            Previous answers

          Start again

  What would you like to check?

    If an employer owes you past payments (before April 2016)

      Change answer to "What would you like to check?"

  Which year would you like to check past payments for?

    Oct 2015 - Mar 2016

      Change answer to "Which year would you like to check past payments for?"

  Were you an apprentice at the time?

    No

      Change answer to "Were you an apprentice at the time?"

  How old were you at the time?

    25

      Change answer to "How old were you at the time?"

Last updated:  1 January 2015


text:
export color0="#172226"
export color1="#de425b"
export color2="#b5eea2"
export color3="#ffffa0"
export color4="#2d869f"
export color5="#ab8ac9"
export color6="#17bebb"
export color7="#a5a5a5"
export color8="#202d35"
export color9="#de425b"
export color10="#b5eea2"
export color11="#ffffa0"
export color12="#2d869f"
export color13="#ab8ac9"
export color14="#17bebb"
export color15="#f6f6f6"
export color16="#0f1819"
export color17="#dbdcdd"
export color18="#2f404a"
export color19="#4a7177"
export color20="#ff7944"

# Air theme
export air_bg=$color16
export air_danger=$color1
export air_cursor=$color15
export air_fg=$color15
export air_hl=$color15
export air_info=$color15
export air_mt=$color4
export air_separator=$color4
export air_tmux_fg_hl="colour4"
export air_warning=$color3

# Flat theme
export flat_hl_bg=$color8
export flat_hl_fg=$color6
export flat_mt_bg=$color16
export flat_mt_fg=$color18
export flat_nm_bg=$color16
export flat_nm_fg=$color7
export flat_cava_hl_fg=$color8
export flat_kitty_cursor=$color6
export flat_mutt_hl_bg="color18"
export flat_mutt_hl_fg="color6"
export flat_mutt_nm_fg="color18"
export flat_rofi_hl_bg=$color8
export flat_rofi_hl_fg=$color4
export flat_rofi_mt_bg=$color0
export flat_rofi_mt_fg=$color18
export flat_rofi_nm_bg=$color16
export flat_rofi_nm_fg=$color7
export flat_tmux_hl_bg="colour8"
export flat_tmux_hl_fg="colour6"
export flat_tmux_nm_bg="colour0"
export flat_tmux_nm_fg="colour18"
export flat_vim_hl_fg=6
export flat_vim_nm_fg=18

# Future theme
export future_hl_bg=$color8
export future_hl_fg=$color4
export future_mt_bg=$color16
export future_mt_fg=$color16
export future_nm_bg=$color8
export future_nm_fg=$color7
export future_kitty_cursor=$color6
export future_tmux_hl_fg="colour4"

# Square theme
export square_nm_bg=$color16
export square_nm_fg=$color7
export square_hl_bg=$color8
export square_kitty_cursor=$color6
export square_rofi_hl_bg=$color0
export square_rofi_hl_fg=$color4
export square_rofi_nm_bg=$color16
export square_rofi_nm_fg=$color7
export square_tmux_nm_bg="colour0"
export square_tmux_nm_fg="colour7"


text:
  testPrototypeDefense -- taming frame proto methods are frozen

test-global-assignment-return-value

test-browser-apply

test-xo4a-apply

Test negative indices

  Test negative indices workaround for Firefox

  testMakeArrayLikeLength -- don't blow up on bad numbers

  testMakeArrayLikeWithSymbol

  Test regexp.exec return value

  Test parseInt

  Test is/identical/SameValue

  Test
    global reference (clickme)

  testFunctionPrototype

  testIssue1622

  testMalformedScript

testTopLevelVarsInCatch

  testIssue1629

  testTypeOf1

  testTypeOf2

  testTypeOf3

  testTypeOf4

  testTypeOf5

  testTypeOf6

Test Window Object

  testVariablePropertyConflict

  testVarInForLoops

  testVarsInForLoops

  testVarsInForInLoops

  testReferenceError

  testVarInitializer

  testParseErrorSafety

  Test mentioning __proto__


text:
module AuthenticatedTestHelper
  # Sets the current account in the session from the account fixtures.
  def login_as(account)
    @request.session[:account_id] = account ? (account.is_a?(Account) ? account.id : accounts(account).id) : nil
  end

  def authorize_as(account)
    @request.env["HTTP_AUTHORIZATION"] = account ? ActionController::HttpAuthentication::Basic.encode_credentials(accounts(account).login, 'monkey') : nil
  end

  # rspec
  def mock_account
    account = mock_model(Account, :id => 1,
      :login  => 'user_name',
      :name   => 'U. Surname',
      :to_xml => "Account-in-XML", :to_json => "Account-in-JSON",
      :errors => [])
    account
  end
end


text:
package com.intellij.plugins.thrift;

import com.intellij.openapi.fileTypes.FileTypeConsumer;
import com.intellij.openapi.fileTypes.FileTypeFactory;
import org.jetbrains.annotations.NotNull;

/**
 * Created by fkorotkov.
 */
public class ThriftFileTypeLoader extends FileTypeFactory {
  @Override
  public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) {
    fileTypeConsumer.consume(ThriftFileType.INSTANCE);
  }
}


text:
nix-shell --run "echo built shell"
# nix-store -qR --include-outputs $(nix-instantiate shell.nix) | parallel -j0 -I% 'echo % | cachix push haskell-bootcamp'
nix-store -qR --include-outputs $(nix-instantiate shell.nix) | cachix push cpuinfo


text:
"""Tests for grr_response_client.client_actions.cloud."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals

import io
import os
import platform
import subprocess
import unittest

from absl import app
import mock
import requests

from grr_response_client.client_actions import cloud
from grr_response_core import config
from grr_response_core.lib.rdfvalues import cloud as rdf_cloud
from grr.test_lib import client_test_lib
from grr.test_lib import test_lib

@unittest.skipIf(platform.system() == "Darwin",
                 "OS X cloud machines unsupported.")
class GetCloudVMMetadataTest(client_test_lib.EmptyActionTest):
  ZONE_URL = "http://metadata.google.internal/computeMetadata/v1/instance/zone"
  PROJ_URL = ("http://metadata.google.internal/computeMetadata/"
              "v1/project/project-id")

  def testBIOSCommandRaises(self):
    with mock.patch.multiple(
        cloud.GetCloudVMMetadata,
        LINUX_BIOS_VERSION_COMMAND="/bin/false",
        WINDOWS_SERVICES_COMMAND=["cmd", "/C", "exit 1"]):
      with self.assertRaises(subprocess.CalledProcessError):
        self.RunAction(
            cloud.GetCloudVMMetadata, arg=rdf_cloud.CloudMetadataRequests())

  def testNonMatchingBIOS(self):
    zone = mock.Mock(text="projects/123456789733/zones/us-central1-a")
    arg = rdf_cloud.CloudMetadataRequests(requests=[
        rdf_cloud.CloudMetadataRequest(
            bios_version_regex="Google",
            instance_type="GOOGLE",
            url=self.ZONE_URL,
            label="zone",
            headers={"Metadata-Flavor": "Google"})
    ])
    with mock.patch.object(
        cloud.GetCloudVMMetadata,
        "LINUX_BIOS_VERSION_COMMAND",
        new=["/bin/echo", "Gaagle"]):
      with mock.patch.object(requests, "request") as mock_requests:
        mock_requests.side_effect = [zone]
        results = self.RunAction(cloud.GetCloudVMMetadata, arg=arg)

      self.assertFalse(results)

  def testWindowsServiceQuery(self):
    project = mock.Mock(text="myproject")

    scquery_output_path = os.path.join(config.CONFIG["Test.data_dir"],
                                       "scquery_output.txt")
    with io.open(scquery_output_path, "rb") as filedesc:
      sc_query_output = filedesc.read()

    arg = rdf_cloud.CloudMetadataRequests(requests=[
        rdf_cloud.CloudMetadataRequest(
            bios_version_regex=".*amazon",
            instance_type="AMAZON",
            service_name_regex="SERVICE_NAME: AWSLiteAgent",
            url="http://169.254.169.254/latest/meta-data/ami-id",
            label="amazon-ami"),
        rdf_cloud.CloudMetadataRequest(
            bios_version_regex="Google",
            instance_type="GOOGLE",
            service_name_regex="SERVICE_NAME: GCEAgent",
            url=self.PROJ_URL,
            label="Google-project-id",
            headers={"Metadata-Flavor": "Google"})
    ])

    with mock.patch.object(platform, "system", return_value="Windows"):
      with mock.patch.object(
          subprocess, "check_output", return_value=sc_query_output):
        with mock.patch.object(requests, "request") as mock_requests:
          mock_requests.side_effect = [project]
          results = self.RunAction(cloud.GetCloudVMMetadata, arg=arg)

    responses = list(results[0].responses)
    self.assertLen(responses, 1)
    self.assertEqual(results[0].instance_type, "GOOGLE")
    for response in responses:
      if response.label == "Google-project-id":
        self.assertEqual(response.text, project.text)
      else:
        self.fail("Bad response.label: %s" % response.label)

  def testMultipleBIOSMultipleURLs(self):
    ami = mock.Mock(text="ami-12345678")
    arg = rdf_cloud.CloudMetadataRequests(requests=[
        rdf_cloud.CloudMetadataRequest(
            bios_version_regex=".*amazon",
            service_name_regex="SERVICE_NAME: AWSLiteAgent",
            instance_type="AMAZON",
            url="http://169.254.169.254/latest/meta-data/ami-id",
            label="amazon-ami"),
        rdf_cloud.CloudMetadataRequest(
            bios_version_regex="Google",
            service_name_regex="SERVICE_NAME: GCEAgent",
            instance_type="GOOGLE",
            url=self.PROJ_URL,
            label="Google-project-id",
            headers={"Metadata-Flavor": "Google"})
    ])
    with mock.patch.multiple(
        cloud.GetCloudVMMetadata,
        LINUX_BIOS_VERSION_COMMAND=["/bin/echo", "4.2.amazon"],
        WINDOWS_SERVICES_COMMAND=[
            "cmd.exe", "/C", "echo SERVICE_NAME: AWSLiteAgent"
        ]):
      with mock.patch.object(requests, "request") as mock_requests:
        mock_requests.side_effect = [ami]
        results = self.RunAction(cloud.GetCloudVMMetadata, arg=arg)

    responses = list(results[0].responses)
    self.assertLen(responses, 1)
    self.assertEqual(results[0].instance_type, "AMAZON")
    for response in responses:
      if response.label == "amazon-ami":
        self.assertEqual(response.text, ami.text)
      else:
        self.fail("Bad response.label: %s" % response.label)

  def testMatchingBIOSMultipleURLs(self):
    zone = mock.Mock(text="projects/123456789733/zones/us-central1-a")
    project = mock.Mock(text="myproject")
    arg = rdf_cloud.CloudMetadataRequests(requests=[
        rdf_cloud.CloudMetadataRequest(
            bios_version_regex="Google",
            service_name_regex="SERVICE_NAME: GCEAgent",
            instance_type="GOOGLE",
            url=self.ZONE_URL,
            label="zone",
            headers={"Metadata-Flavor": "Google"}),
        rdf_cloud.CloudMetadataRequest(
            bios_version_regex="Google",
            service_name_regex="SERVICE_NAME: GCEAgent",
            instance_type="GOOGLE",
            url=self.PROJ_URL,
            label="project-id",
            headers={"Metadata-Flavor": "Google"})
    ])

    with mock.patch.multiple(
        cloud.GetCloudVMMetadata,
        LINUX_BIOS_VERSION_COMMAND=["/bin/echo", "Google"],
        WINDOWS_SERVICES_COMMAND=[
            "cmd.exe", "/C", "echo SERVICE_NAME: GCEAgent"
        ]):
      with mock.patch.object(requests, "request") as mock_requests:
        mock_requests.side_effect = [zone, project]
        results = self.RunAction(cloud.GetCloudVMMetadata, arg=arg)

      responses = list(results[0].responses)
      self.assertLen(responses, 2)
      self.assertEqual(results[0].instance_type, "GOOGLE")
      for response in responses:
        if response.label == "zone":
          self.assertEqual(response.text, zone.text)
        elif response.label == "project-id":
          self.assertEqual(response.text, project.text)
        else:
          self.fail("Bad response.label: %s" % response.label)

def main(argv):
  test_lib.main(argv)

if __name__ == "__main__":
  app.run(main)


text:
#ifndef __PLAT_SAMSUNG_USB_PHY_H
#define __PLAT_SAMSUNG_USB_PHY_H __FILE__

enum s5p_usb_phy_type {
	S5P_USB_PHY_DEVICE,
	S5P_USB_PHY_HOST,
};

extern int s5p_usb_phy_init(struct platform_device *pdev, int type);
extern int s5p_usb_phy_exit(struct platform_device *pdev, int type);

#endif /* __PLAT_SAMSUNG_USB_PHY_H */


text:
<?php

class Campaign {

  protected $node;
  protected $variables;

  /**
   * Properties exposed in teaser Campaign view.
   */
  public $id;
  public $title;
  public $display;
  public $tagline;
  public $campaign_runs;
  public $status;
  public $type;
  public $language;
  public $translations;

  /**
   * Properties exposed in full Campaign view.
   */
  public $created_at;
  public $updated_at;
  public $time_commitment;
  public $cover_image;
  public $scholarship;
  public $staff_pick;
  public $facts;
  public $solutions;
  public $pre_step;
  public $latest_news;
  public $causes;
  public $action_types;
  public $action_guides;
  public $attachments;
  public $issue;
  public $tags;
  public $timing;
  public $reportback_info;
  public $affiliates;
  public $services;

  /**
   * Convenience method to retrieve a single campaign from supplied id.
   *
   * @param  string|array  $ids  Single id or array of ids of Campaigns to retrieve.
   * @param  string        $display
   * @return array|mixed
   * @throws Exception
   */
  public static function get($ids, $display = 'teaser') {
    $single_campaign = FALSE;
    $campaigns = [];

    if (!is_array($ids)) {
      $single_campaign = TRUE;
      $ids = [$ids];
    }
    // Only load campaign types in this class.
    $results = node_load_multiple($ids, ['type' => 'campaign']);

    if (!$results) {
      throw new Exception('No campaign data found.');
    }

    foreach($results as $item) {
      $campaign = new static();
      $campaign->build($item, $display);

      $campaigns[] = $campaign;
    }

    if ($single_campaign) {
      return array_pop($campaigns);
    }

    return $campaigns;
  }

  /**
   * Convenience method to retrieve campaigns based on supplied filters.
   *
   * @param  array  $filters
   * - nid (string|array)
   * - type (string)
   * - staff_pick (bool)
   * - term_id (string|array)
   * - count (int)
   * - random (bool)
   * - page (int)
   * @param  string  $display
   * @return array
   * @throws Exception
   */
  public static function find(array $filters = [], $display = 'teaser') {
    $campaigns = [];

    $results = dosomething_campaign_get_campaigns_query($filters);

    if (!$results) {
      throw new Exception('No campaign data found.');
    }

    $results = array_map('dosomething_helpers_extract_id', $results);
    $results = node_load_multiple($results);

    foreach($results as $item) {
      $campaign = new static;
      $campaign->build($item, $display);

      $campaigns[] = $campaign;
    }

    return $campaigns;
  }

  /**
   * Return node data for this campaign instance.
   *
   * @return mixed
   */
  public function getNodeData() {
    return $this->node;
  }

  /**
   * Return variables data for this campaign instance.
   *
   * @return mixed
   */
  public function getVariablesData() {
    return $this->variables;
  }

  /**
   * Build out the instantiated Campaign class object with supplied data.
   *
   * @param  $data
   * @param  $display
   * @throws Exception
   */
  private function build($data, $display = 'teaser') {
    $this->node = $data;
    $this->id = $data->nid;

    if ($data->type === 'campaign') {
      $this->variables = dosomething_helpers_get_variables('node', $this->id);
      $this->title = $data->title;
      $this->display = $display;
      $this->campaign_runs = $this->getCampaignRuns($this->id);
      $this->language = $this->getLanguage();
      $this->translations = $this->getTranslations();
      $this->tagline = $this->getTagline();
      $this->status = $this->getStatus();
      $this->type = $this->getType();

      if ($display === 'full') {
        $this->created_at = $data->created;
        $this->updated_at = $data->changed;
        $this->time_commitment = $this->getTimeCommitment();

        $this->cover_image = [
          'default' => $this->getCoverImage(),
          'alternate' => $this->getCoverImageAlt(),
        ];

        $this->scholarship = $this->getScholarship();
        $this->staff_pick = $this->getStaffPickStatus($this->language);

        $this->competition =  dosomething_helpers_convert_string_to_boolean(dosomething_campaign_is_competition($this->id));

        $fact_data = $this->getFactData();
        $this->facts = [
          'problem' => $fact_data['fact_problem'],
          'solution' => $fact_data['fact_solution'],
          'sources' => $fact_data['sources'],
        ];

        $solution_data = $this->getSolutionData();
        $this->solutions = $solution_data;

        $this->pre_step = $this->getPreStepInfo();
        $this->latest_news = $this->getLatestNews();

        $this->causes = $this->getCauses();

        $this->action_types = $this->getActionTypes();

        $this->action_guides = $this->getActionGuides();

        $this->attachments = $this->getAttachments();

        $this->issue = $this->getIssue();
        $this->tags = $this->getTags();

        $timing = $this->getTiming();
        $this->timing = $timing;

        $this->affiliates = $this->getAffiliates();

        $this->services = $this->getServices();
      }

      $this->reportback_info = $this->getReportbackInfo();
    }
  }

  /**
   * Get Action Guides for campaign if available.
   *
   * @return array
   */
  protected function getActionGuides() {
    $data = [];

    $action_guide_ids = dosomething_helpers_extract_field_data($this->node->field_action_guide);

    if (! $action_guide_ids) {
      return $data;
    }

    if (! is_array($action_guide_ids)) {
      $action_guide_ids = [$action_guide_ids];
    }

    $items = node_load_multiple($action_guide_ids);

    foreach ($items as $item) {
      $action_guide = [];

      $action_guide['id'] = $item->nid;
      $action_guide['title'] = $item->title;
      $action_guide['subtitle'] = dosomething_helpers_extract_field_data($item->field_subtitle);
      $action_guide['description'] = dosomething_helpers_extract_field_data($item->field_description);

      $action_guide['intro']['title'] = dosomething_helpers_extract_field_data($item->field_intro_title);
      $action_guide['intro']['copy'] = dosomething_helpers_extract_field_data($item->field_intro);

      $action_guide['additional_text']['title'] = dosomething_helpers_extract_field_data($item->field_additional_text_title);
      $action_guide['additional_text']['copy'] = dosomething_helpers_extract_field_data($item->field_additional_text);

      $action_guide['created_at'] = $item->created;
      $action_guide['updated_at'] = $item->changed;

      $data[] = $action_guide;
    }

    return $data;
  }

  /**
   * Get both primary and secondary Action Types for campaign if available.
   *
   * @return array
   */
  protected function getActionTypes() {
    // @TODO: Potentially (or very likely can) combine this with getCauses() to DRY up code.
    $data = [];
    $data['primary'] = NULL;
    $data['secondary'] = NULL;

    $primary_action_type_id = dosomething_helpers_extract_field_data($this->node->field_primary_action_type);
    $secondary_action_type_ids = dosomething_helpers_extract_field_data($this->node->field_action_type);

    if ($primary_action_type_id) {
      $data['primary'] = $this->getTaxonomyTerm($primary_action_type_id);
    }

    if ($secondary_action_type_ids) {
      $secondary_action_types = [];

      foreach((array) $secondary_action_type_ids as $tid) {
        $secondary_action_types[] = $this->getTaxonomyTerm($tid);
      }

      $data['secondary'] = $secondary_action_types;
    }

    return $data;
  }

  /**
   * Get all affiliates (partners, etc) for the campaign.
   *
   * @return array
   */
  protected function getAffiliates() {
    // @TODO: Only grabs partners for now. Update with further affiliates as needed.
    return [
      'partners' => $this->getPartners(),
    ];
  }

  /**
   * Get all downloadable attachments for the campaign.
   *
   * @return array
   */
  protected function getAttachments() {
    $data = [];

    $items = dosomething_helpers_extract_field_data($this->node->field_downloads);

    if (!$items) {
      return $data;
    }

    if (dosomething_helpers_array_is_associative($items)) {
      $items = [$items];
    }

    foreach ($items as $item) {
      $attachment = [];

      $attachment['id'] = $item['id'];
      $attachment['title'] = $item['title'];
      $attachment['description'] = $item['description'];
      $attachment['uri'] = file_create_url($item['uri']);
      $attachment['type'] = $item['type'];

      $data[] = $attachment;
    }

    return $data;
  }

  /**
   * Get all Campaign Run for this Campaign.
   */
  protected function getCampaignRuns($id) {
    if (!$this->node->field_current_run) {
      return NULL;
    }

    $runs = [
      'current' => [],
      'past' => [],
    ];

    foreach ($this->node->field_current_run as $key => $value) {
      $runs['current'][$key]['id'] = dosomething_helpers_extract_field_data($this->node->field_current_run, $key);
    }

    // @TODO: Figure out how to grab past runs

    return $runs;
  }

  /**
   * Get both primary and secondary Causes for campaign if available.
   *
   * @return array
   */
  protected function getCauses() {
    // @TODO: Potentially combine this with getActionTypes() to DRY up code.
    $data = [];
    $data['primary'] = NULL;
    $data['secondary'] = NULL;

    $primary_cause_id = dosomething_helpers_extract_field_data($this->node->field_primary_cause);
    $secondary_cause_ids = dosomething_helpers_extract_field_data($this->node->field_cause);

    if ($primary_cause_id) {
      $data['primary'] = $this->getTaxonomyTerm($primary_cause_id);
    }

    if ($secondary_cause_ids) {
      if (is_array($secondary_cause_ids)) {
        $secondary_causes = [];

        foreach($secondary_cause_ids as $tid) {
          $secondary_causes[] = $this->getTaxonomyTerm($tid);
        }
      }
      else {
        $secondary_causes[] = $this->getTaxonomyTerm($secondary_cause_ids);
      }

      $data['secondary'] = $secondary_causes;
    }

    return $data;
  }

  /**
   * Get the cover image data for campaign if available.
   *
   * @param  string|null  $id Image node id.
   * @return array|null
   */
  protected function getCoverImage($id = NULL) {
    if (is_null($id)) {
      $id = dosomething_helpers_extract_field_data($this->node->field_image_campaign_cover);
    }

    // @TODO: This could potentially be turned into an Image class, and load the data by including and then instantiating the class $image = new Image($id);
    // This would help cleanup some of the code, and keep things DRYer.
    if ($id) {
      $image = node_load($id);
    }
    else {
      return NULL;
    }

    $data = [];

    $data['id'] = $image->nid;
    $data['type'] = $image->type;
    $data['title'] = $image->title;
    $data['created_at'] = $image->created;
    $data['updated_at'] = $image->changed;
    $data['dark_background'] = (bool) dosomething_helpers_extract_field_data($image->field_dark_image);

    // @TODO: consider reworking following function to return data instead of assigning it by reference to variable. Kind of confusing.
    dosomething_campaign_load_image_url($data['sizes'], $image);
    if ($data['sizes']['landscape']) {
      $data['sizes']['landscape']['uri'] = dosomething_image_get_themed_image_url($image->nid, 'landscape', '1440x810');
    }

    if ($data['sizes']['square']) {
      $data['sizes']['square']['uri'] = dosomething_image_get_themed_image_url($image->nid, 'square', '300x300');
    }

    return $data;
  }

  /**
   * Get alternative cover image for campaign if available.
   *
   * @return array|null
   */
  protected function getCoverImageAlt() {
    $image_id = $this->variables['alt_image_campaign_cover_nid'];

    if ($image_id) {
      return $this->getCoverImage($image_id);
    }
    else {
      return NULL;
    }
  }

  /**
   * Get Facts data for campaign if available; collects both fact problem
   * and fact solution as well as the sources for both.
   *
   * @return array|null
   */
  protected function getFactData() {
    $data = [];
    $data['fact_problem'] = NULL;
    $data['fact_solution'] = NULL;
    $data['sources'] = NULL;

    $fact_fields = ['field_fact_problem', 'field_fact_solution'];
    $fact_vars = dosomething_fact_get_mutiple_fact_field_vars($this->node, $fact_fields);

    if (!empty($fact_vars)) {
      foreach ($fact_vars['facts'] as $index => $fact_data) {
        $index = str_replace('field_', '', $index);

        $data[$index]['fact'] = dosomething_helpers_isset($fact_data['fact']);
        $data[$index]['id'] = dosomething_helpers_isset($fact_data['nid']);
        $data[$index]['footnote'] = (int) dosomething_helpers_isset($fact_data['footnotes']);
        $data[$index]['source'] = dosomething_helpers_isset($fact_data['sources']);

      }

      $sources = dosomething_helpers_isset($fact_vars['sources']);
      foreach ($sources as $index => $source) {
        $data['sources'][$index]['formatted'] = $source;
      }

      return $data;
    }

    return NULL;

  }

  /**
   * Get the Issue for campaign if available.
   *
   * @return array|null
   */
  protected function getIssue() {
    // @TODO: Need to find out if this is allowed to be a field with multiple values...?
    $issue_id = dosomething_helpers_extract_field_data($this->node->field_issue);

    if ($issue_id) {
      $issue = $this->getTaxonomyTerm($issue_id);

      return $issue;
    }

    return NULL;
  }

  /**
   * Get language data.
   *
   * @return array
   */
  protected function getLanguage() {
    $language = dosomething_helpers_isset($this->node->language);
    $prefix = dosomething_global_get_prefix_for_language($language);

    return [
      'language_code' => dosomething_global_convert_country_to_language($prefix),
      'prefix' => !empty($prefix) ? $prefix : NULL,
    ];
  }

  /**
   * Get campaign's latest news.
   *
   * @return array
   */
  protected function getLatestNews() {
    return [
      'latest_news' => dosomething_helpers_extract_field_data($this->node->field_latest_news_copy),
    ];
  }

  /**
   * Get MailChimp data.
   *
   * @return array
   */
  protected function getMailChimpData() {
    return [
      'grouping_id' => dosomething_helpers_isset($this->variables, 'mailchimp_grouping_id'),
      'group_name' => dosomething_helpers_isset($this->variables, 'mailchimp_group_name'),
    ];
  }

  /**
   * Get Mobile Commons data.
   *
   * @return array
   */
  protected function getMobileCommonsData() {
    return [
      'opt_in_path_id' => dosomething_helpers_isset($this->variables, 'mobilecommons_opt_in_path'),
      'friends_opt_in_path_id' => dosomething_helpers_isset($this->variables, 'mobilecommons_friends_opt_in_path'),
    ];
  }

  protected function getPartners() {
    $data = [];

    // @TODO: only accounts for single partner at the moment.
    // Update extract function to grab array of partners instead of just first id.
    // @see https://github.com/DoSomething/phoenix/issues/6396
    $partner_data_collection_ids = dosomething_helpers_extract_field_data($this->node->field_partners);

    if (! $partner_data_collection_ids) {
      return $data;
    }

    if (! is_array($partner_data_collection_ids)) {
      $partner_data_collection_ids = [$partner_data_collection_ids];
    }

    foreach ($partner_data_collection_ids as $id) {
      $partner = [];

      $data_collection = field_collection_item_load($id);
      $data_taxonomy = taxonomy_term_load(dosomething_helpers_extract_field_data($data_collection->field_partner));

      $partner['name'] = $data_taxonomy->name;
      $partner['sponsor'] = (bool) dosomething_helpers_extract_field_data($data_collection->field_is_sponsor);
      $partner['copy'] = dosomething_helpers_extract_field_data($data_collection->field_partner_copy);
      $partner['uri'] = dosomething_helpers_extract_field_data($data_collection->field_partner_url);

      $logo = dosomething_helpers_extract_field_data($data_taxonomy->field_partner_logo);

      if ($logo) {
        $partner['media'] = [
          'uri' => image_style_url('wmax-423px', $logo['uri']),
          'type' => $logo['type'],
        ];
      } else {
        $partner['media'] = NULL;
      }

      $data[] = $partner;
    }

    return $data;
  }

  /**
   * Get campaign's pre-step header and caption.
   *
   * @return array
   */
  protected function getPreStepInfo() {
    $pre_step = [];
    $pre_step['header'] = (dosomething_helpers_extract_field_data($this->node->field_pre_step_header));
    $pre_step['copy'] = (dosomething_helpers_extract_field_data($this->node->field_pre_step_copy));

    return $pre_step;
  }

  /**
   * Get Reportback content info used in the campaign.
   *
   * @return array
   */
  protected function getReportbackInfo() {
    $data = [];
    $data['copy'] = NULL;
    $data['confirmation_message'] = NULL;
    $data['noun'] = NULL;
    $data['verb'] = NULL;

    $copy = dosomething_helpers_extract_field_data($this->node->field_reportback_copy);
    $confirmation_message = dosomething_helpers_extract_field_data($this->node->field_reportback_confirm_msg);
    $noun = dosomething_helpers_extract_field_data($this->node->field_reportback_noun);
    $verb = dosomething_helpers_extract_field_data($this->node->field_reportback_verb);

    if ($copy) {
      $data['copy'] = $copy;
    }

    if ($confirmation_message) {
      $data['confirmation_message'] = $confirmation_message;
    }

    if ($noun) {
      $data['noun'] = $noun;
    }

    if ($verb) {
      $data['verb'] = $verb;
    }

    return $data;
  }

  /**
   * Collect data for third party services.
   *
   * @return array
   */
  protected function getServices() {
    return [
      'mobile_commons' => $this->getMobileCommonsData(),
      'mailchimp' => $this->getMailChimpData(),
    ];
  }

  /**
   * Get the Scholarship amount for campaign if available.
   *
   * @return array|null
   */
  protected function getScholarship() {
    return dosomething_helpers_extract_field_data($this->node->field_scholarship_amount);
  }

  /**
   * Get the Solutions data for campaign if available; collects both the main solution copy
   * and the solution support copy.
   *
   * @return array
   */
  protected function getSolutionData() {
    $data['copy'] = dosomething_helpers_extract_field_data($this->node->field_solution_copy);
    $data['support_copy'] = dosomething_helpers_extract_field_data($this->node->field_solution_support);

    return $data;
  }

  /**
   * Get status whether this campaign is a Staff Pick or not.
   *
   * @return bool
   */
  protected function getStaffPickStatus($language) {
    return (bool) dosomething_helpers_extract_field_data($this->node->field_staff_pick, $language['language_code']);
  }

  /**
   * Get Status of campaign.
   *
   * @return string|null
   */
  protected function getStatus() {
    return dosomething_helpers_extract_field_data($this->node->field_campaign_status);
  }

  /**
   * Get Tags assigned to campaign if available.
   *
   * @return array|null
   */
  protected function getTags() {
    $data = [];

    $tag_ids = dosomething_helpers_extract_field_data($this->node->field_tags);

    if ($tag_ids) {
      foreach ((array) $tag_ids as $id) {
        $data[] = $this->getTaxonomyTerm($id);
      }

      return $data;
    }

    return NULL;
  }

  /**
   * Get taxonomy term node data from provided id.
   *
   * @param  $id
   * @return array
   */
  protected function getTaxonomyTerm($id) {
    $data = [];

    $taxonomy = taxonomy_term_load($id);

    $data['id'] = $taxonomy->tid;
    $data['name'] = strtolower($taxonomy->name);

    return $data;
  }

  /**
   * Get the Tagline for campaign.
   *
   * @return array|null
   */
  protected function getTagline() {
    return dosomething_helpers_extract_field_data($this->node->field_call_to_action);
  }

  /**
   * Get the specified Time Commitment for campaign.
   *
   * @return float
   */
  protected function getTimeCommitment() {
    // @TODO: I've renamed "active_hours" to "time_commitment" because it sounds more straightforward; but appreciate feedback.
    return (float) dosomething_helpers_extract_field_data($this->node->field_active_hours);
  }

  /**
   * Get the timing for high and low seasons for campaign if available.
   * Dates formatted as ISO-8601 datetime.
   *
   * @return array
   */
  protected function getTiming() {
    $timing = [];
    $timing['high_season'] = dosomething_helpers_extract_field_data($this->node->field_high_season);
    $timing['low_season'] = dosomething_helpers_extract_field_data($this->node->field_low_season);

    foreach ($timing as $season => $dates) {
      if ($timing[$season]) {
        foreach ($timing[$season] as $key => $date) {
          $timing[$season][$key] = dosomething_helpers_convert_date($date);
        }
      }
    }

    return $timing;
  }

  /**
   * Get translations data for this Campaign.
   *
   * @return array
   * @TODO: potentially add extra useful info for each translation (full country name, etc?)
   */
  protected function getTranslations() {
    $translationData = $this->node->translations;
    $translations = [
      'original' => dosomething_helpers_isset($translationData->original),
    ];

    if (isset($translationData->data)) {
      foreach ($translationData->data as $key => $value) {
        $prefix = dosomething_global_get_prefix_for_language($key);

        $translations[$key] = [
          'language_code' => $key,
          'prefix' => !empty($prefix) ? $prefix : NULL,
        ];
      }
    }

    return $translations;
  }

  /**
   * Get Type of campaign.
   *
   * @return string|null
   */
  protected function getType() {
    return dosomething_helpers_extract_field_data($this->node->field_campaign_type);
  }

}


text:
          R BOOST_PP_COMMA_IF(BOOST_FT_arity) BOOST_FT_params(BOOST_PP_EMPTY)
#   else

#     define BOOST_FT_types \
          R, typename class_transform<T0 BOOST_FT_cv, L>::type \
          BOOST_PP_COMMA_IF(BOOST_PP_DEC(BOOST_FT_arity)) \
          BOOST_FT_params(BOOST_PP_EMPTY)

#   endif

#elif BOOST_FT_ARITY_LOOP_IS_ITERATING

template< BOOST_FT_tplargs(BOOST_PP_IDENTITY(typename)), typename L>
struct components_impl<BOOST_FT_type, L>
{
  typedef encode_bits<BOOST_FT_flags,BOOST_FT_cc_id> bits;
  typedef constant<BOOST_FT_full_mask> mask;

  typedef function_types::components<BOOST_FT_type, L> type;
  typedef components_mpl_sequence_tag tag;

  typedef mpl::integral_c<std::size_t,BOOST_FT_arity> function_arity;

  typedef BOOST_PP_CAT(mpl::vector,BOOST_FT_n)< BOOST_FT_types > types;
};

#elif BOOST_FT_ARITY_LOOP_SUFFIX

#   undef BOOST_FT_types
#   undef BOOST_FT_type_name

#else
#   error "attempt to use arity loop master file without loop"
#endif


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

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Package org.apache.hadoop.mapreduce.lib.partition (Apache Hadoop Main 2.4.1 API)
</TITLE>

<META NAME="date" CONTENT="2014-06-21">

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

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Package
org.apache.hadoop.mapreduce.lib.partition

Packages that use org.apache.hadoop.mapreduce.lib.partition

org.apache.hadoop.mapred.lib

Classes in org.apache.hadoop.mapreduce.lib.partition used by org.apache.hadoop.mapred.lib

BinaryPartitioner

          Partition BinaryComparable keys using a configurable part of
 the bytes array returned by BinaryComparable.getBytes().

InputSampler

          Utility for collecting samples and writing a partition file for
 TotalOrderPartitioner.

KeyFieldBasedComparator

          This comparator implementation provides a subset of the features provided
 by the Unix/GNU Sort.

KeyFieldBasedPartitioner

          Defines a way to partition keys based on certain key fields (also see
  KeyFieldBasedComparator.

TotalOrderPartitioner

          Partitioner effecting a total order by reading split points from
 an externally generated source.

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Copyright © 2014 Apache Software Foundation. All Rights Reserved.


text:
namespace Azure.AI.FormRecognizer
{
    public enum FormContentType
    {
        Json = 0,
        Pdf = 1,
        Png = 2,
        Jpeg = 3,
        Tiff = 4,
    }
    public partial class FormRecognizerClient
    {
        protected FormRecognizerClient() { }
        public FormRecognizerClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { }
        public FormRecognizerClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.FormRecognizer.FormRecognizerClientOptions options) { }
        public FormRecognizerClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { }
        public FormRecognizerClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.FormRecognizer.FormRecognizerClientOptions options) { }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeBusinessCardsOperation StartRecognizeBusinessCards(System.IO.Stream businessCard, Azure.AI.FormRecognizer.RecognizeBusinessCardsOptions recognizeBusinessCardsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeBusinessCardsOperation> StartRecognizeBusinessCardsAsync(System.IO.Stream businessCard, Azure.AI.FormRecognizer.RecognizeBusinessCardsOptions recognizeBusinessCardsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeBusinessCardsOperation StartRecognizeBusinessCardsFromUri(System.Uri businessCardUri, Azure.AI.FormRecognizer.RecognizeBusinessCardsOptions recognizeBusinessCardsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeBusinessCardsOperation> StartRecognizeBusinessCardsFromUriAsync(System.Uri businessCardUri, Azure.AI.FormRecognizer.RecognizeBusinessCardsOptions recognizeBusinessCardsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeContentOperation StartRecognizeContent(System.IO.Stream form, Azure.AI.FormRecognizer.RecognizeContentOptions recognizeContentOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation> StartRecognizeContentAsync(System.IO.Stream form, Azure.AI.FormRecognizer.RecognizeContentOptions recognizeContentOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeContentOperation StartRecognizeContentFromUri(System.Uri formUri, Azure.AI.FormRecognizer.RecognizeContentOptions recognizeContentOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation> StartRecognizeContentFromUriAsync(System.Uri formUri, Azure.AI.FormRecognizer.RecognizeContentOptions recognizeContentOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation StartRecognizeCustomForms(string modelId, System.IO.Stream form, Azure.AI.FormRecognizer.RecognizeCustomFormsOptions recognizeCustomFormsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation> StartRecognizeCustomFormsAsync(string modelId, System.IO.Stream form, Azure.AI.FormRecognizer.RecognizeCustomFormsOptions recognizeCustomFormsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation StartRecognizeCustomFormsFromUri(string modelId, System.Uri formUri, Azure.AI.FormRecognizer.RecognizeCustomFormsOptions recognizeCustomFormsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation> StartRecognizeCustomFormsFromUriAsync(string modelId, System.Uri formUri, Azure.AI.FormRecognizer.RecognizeCustomFormsOptions recognizeCustomFormsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation StartRecognizeReceipts(System.IO.Stream receipt, Azure.AI.FormRecognizer.RecognizeReceiptsOptions recognizeReceiptsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation> StartRecognizeReceiptsAsync(System.IO.Stream receipt, Azure.AI.FormRecognizer.RecognizeReceiptsOptions recognizeReceiptsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation StartRecognizeReceiptsFromUri(System.Uri receiptUri, Azure.AI.FormRecognizer.RecognizeReceiptsOptions recognizeReceiptsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation> StartRecognizeReceiptsFromUriAsync(System.Uri receiptUri, Azure.AI.FormRecognizer.RecognizeReceiptsOptions recognizeReceiptsOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class FormRecognizerClientOptions : Azure.Core.ClientOptions
    {
        public FormRecognizerClientOptions(Azure.AI.FormRecognizer.FormRecognizerClientOptions.ServiceVersion version = Azure.AI.FormRecognizer.FormRecognizerClientOptions.ServiceVersion.V2_0) { }
        public Azure.AI.FormRecognizer.FormRecognizerClientOptions.ServiceVersion Version { get { throw null; } }
        public enum ServiceVersion
        {
            V2_0 = 1,
        }
    }
    public static partial class OperationExtensions
    {
        public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeBusinessCardsOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.FormPageCollection>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeReceiptsOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModelInfo>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CopyModelOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CreateComposedModelOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.TrainingOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class RecognizeBusinessCardsOptions
    {
        public RecognizeBusinessCardsOptions() { }
        public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } }
        public bool IncludeFieldElements { get { throw null; } set { } }
        public string Locale { get { throw null; } set { } }
    }
    public partial class RecognizeContentOptions
    {
        public RecognizeContentOptions() { }
        public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } }
    }
    public partial class RecognizeCustomFormsOptions
    {
        public RecognizeCustomFormsOptions() { }
        public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } }
        public bool IncludeFieldElements { get { throw null; } set { } }
    }
    public partial class RecognizeReceiptsOptions
    {
        public RecognizeReceiptsOptions() { }
        public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } }
        public bool IncludeFieldElements { get { throw null; } set { } }
        public string Locale { get { throw null; } set { } }
    }
}
namespace Azure.AI.FormRecognizer.Models
{
    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
    public readonly partial struct FieldBoundingBox
    {
        private readonly object _dummy;
        private readonly int _dummyPrimitive;
        public System.Drawing.PointF this[int index] { get { throw null; } }
        public override string ToString() { throw null; }
    }
    public partial class FieldData : Azure.AI.FormRecognizer.Models.FormElement
    {
        internal FieldData() { }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormElement> FieldElements { get { throw null; } }
        public static implicit operator string (Azure.AI.FormRecognizer.Models.FieldData text) { throw null; }
    }
    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
    public readonly partial struct FieldValue
    {
        private readonly object _dummy;
        private readonly int _dummyPrimitive;
        public Azure.AI.FormRecognizer.Models.FieldValueType ValueType { get { throw null; } }
        public System.DateTime AsDate() { throw null; }
        public System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Models.FormField> AsDictionary() { throw null; }
        public float AsFloat() { throw null; }
        public Azure.AI.FormRecognizer.Models.FormSelectionMarkState AsFormSelectionMarkState() { throw null; }
        public long AsInt64() { throw null; }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormField> AsList() { throw null; }
        public string AsPhoneNumber() { throw null; }
        public string AsString() { throw null; }
        public System.TimeSpan AsTime() { throw null; }
    }
    public enum FieldValueType
    {
        String = 0,
        Date = 1,
        Time = 2,
        PhoneNumber = 3,
        Float = 4,
        Int64 = 5,
        List = 6,
        Dictionary = 7,
        SelectionMark = 8,
    }
    public abstract partial class FormElement
    {
        internal FormElement() { }
        public Azure.AI.FormRecognizer.Models.FieldBoundingBox BoundingBox { get { throw null; } }
        public int PageNumber { get { throw null; } }
        public string Text { get { throw null; } }
    }
    public partial class FormField
    {
        internal FormField() { }
        public float Confidence { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.FieldData LabelData { get { throw null; } }
        public string Name { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.FieldValue Value { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.FieldData ValueData { get { throw null; } }
    }
    public partial class FormField<T>
    {
        public FormField(Azure.AI.FormRecognizer.Models.FormField field, T value) { }
        public float Confidence { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.FieldData LabelData { get { throw null; } }
        public string Name { get { throw null; } }
        public T Value { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.FieldData ValueData { get { throw null; } }
        public static implicit operator T (Azure.AI.FormRecognizer.Models.FormField<T> field) { throw null; }
    }
    public partial class FormLine : Azure.AI.FormRecognizer.Models.FormElement
    {
        internal FormLine() { }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormWord> Words { get { throw null; } }
    }
    public partial class FormPage
    {
        internal FormPage() { }
        public float Height { get { throw null; } }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormLine> Lines { get { throw null; } }
        public int PageNumber { get { throw null; } }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormSelectionMark> SelectionMarks { get { throw null; } }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormTable> Tables { get { throw null; } }
        public float TextAngle { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.LengthUnit Unit { get { throw null; } }
        public float Width { get { throw null; } }
    }
    public partial class FormPageCollection : System.Collections.ObjectModel.ReadOnlyCollection<Azure.AI.FormRecognizer.Models.FormPage>
    {
        internal FormPageCollection() : base (default(System.Collections.Generic.IList<Azure.AI.FormRecognizer.Models.FormPage>)) { }
    }
    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
    public partial struct FormPageRange
    {
        private int _dummyPrimitive;
        public int FirstPageNumber { get { throw null; } }
        public int LastPageNumber { get { throw null; } }
    }
    public partial class FormRecognizerError
    {
        internal FormRecognizerError() { }
        public string ErrorCode { get { throw null; } }
        public string Message { get { throw null; } }
    }
    public static partial class FormRecognizerModelFactory
    {
        public static Azure.AI.FormRecognizer.Training.AccountProperties AccountProperties(int customModelCount, int customModelLimit) { throw null; }
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        public static Azure.AI.FormRecognizer.Training.CustomFormModel CustomFormModel(string modelId, Azure.AI.FormRecognizer.Training.CustomFormModelStatus status, System.DateTimeOffset trainingStartedOn, System.DateTimeOffset trainingCompletedOn, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Training.CustomFormSubmodel> submodels, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Training.TrainingDocumentInfo> trainingDocuments, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormRecognizerError> errors) { throw null; }
        public static Azure.AI.FormRecognizer.Training.CustomFormModel CustomFormModel(string modelId, Azure.AI.FormRecognizer.Training.CustomFormModelStatus status, System.DateTimeOffset trainingStartedOn, System.DateTimeOffset trainingCompletedOn, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Training.CustomFormSubmodel> submodels, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Training.TrainingDocumentInfo> trainingDocuments, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormRecognizerError> errors, string modelName, Azure.AI.FormRecognizer.Training.CustomFormModelProperties properties) { throw null; }
        public static Azure.AI.FormRecognizer.Training.CustomFormModelField CustomFormModelField(string name, string label, float? accuracy) { throw null; }
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        public static Azure.AI.FormRecognizer.Training.CustomFormModelInfo CustomFormModelInfo(string modelId, System.DateTimeOffset trainingStartedOn, System.DateTimeOffset trainingCompletedOn, Azure.AI.FormRecognizer.Training.CustomFormModelStatus status) { throw null; }
        public static Azure.AI.FormRecognizer.Training.CustomFormModelInfo CustomFormModelInfo(string modelId, System.DateTimeOffset trainingStartedOn, System.DateTimeOffset trainingCompletedOn, Azure.AI.FormRecognizer.Training.CustomFormModelStatus status, string modelName, Azure.AI.FormRecognizer.Training.CustomFormModelProperties properties) { throw null; }
        public static Azure.AI.FormRecognizer.Training.CustomFormModelProperties CustomFormModelProperties(bool isComposedModel) { throw null; }
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        public static Azure.AI.FormRecognizer.Training.CustomFormSubmodel CustomFormSubmodel(string formType, float? accuracy, System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Training.CustomFormModelField> fields) { throw null; }
        public static Azure.AI.FormRecognizer.Training.CustomFormSubmodel CustomFormSubmodel(string formType, float? accuracy, System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Training.CustomFormModelField> fields, string modelId) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldBoundingBox FieldBoundingBox(System.Collections.Generic.IReadOnlyList<System.Drawing.PointF> points) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldData FieldData(Azure.AI.FormRecognizer.Models.FieldBoundingBox boundingBox, int pageNumber, string text, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormElement> fieldElements) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithDateValueType(System.DateTime value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithDictionaryValueType(System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Models.FormField> value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithFloatValueType(float value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithInt64ValueType(long value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithListValueType(System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormField> value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithPhoneNumberValueType(string value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithSelectionMarkValueType(Azure.AI.FormRecognizer.Models.FormSelectionMarkState value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithStringValueType(string value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FieldValue FieldValueWithTimeValueType(System.TimeSpan value) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormField FormField(string name, Azure.AI.FormRecognizer.Models.FieldData labelData, Azure.AI.FormRecognizer.Models.FieldData valueData, Azure.AI.FormRecognizer.Models.FieldValue value, float confidence) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormLine FormLine(Azure.AI.FormRecognizer.Models.FieldBoundingBox boundingBox, int pageNumber, string text, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormWord> words) { throw null; }
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        public static Azure.AI.FormRecognizer.Models.FormPage FormPage(int pageNumber, float width, float height, float textAngle, Azure.AI.FormRecognizer.Models.LengthUnit unit, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormLine> lines, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormTable> tables) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormPage FormPage(int pageNumber, float width, float height, float textAngle, Azure.AI.FormRecognizer.Models.LengthUnit unit, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormLine> lines, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormTable> tables, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormSelectionMark> selectionMarks) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormPageCollection FormPageCollection(System.Collections.Generic.IList<Azure.AI.FormRecognizer.Models.FormPage> list) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormPageRange FormPageRange(int firstPageNumber, int lastPageNumber) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormRecognizerError FormRecognizerError(string errorCode, string message) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormSelectionMark FormSelectionMark(Azure.AI.FormRecognizer.Models.FieldBoundingBox boundingBox, int pageNumber, string text, float confidence, Azure.AI.FormRecognizer.Models.FormSelectionMarkState state) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormTable FormTable(int pageNumber, int columnCount, int rowCount, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormTableCell> cells) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormTableCell FormTableCell(Azure.AI.FormRecognizer.Models.FieldBoundingBox boundingBox, int pageNumber, string text, int columnIndex, int rowIndex, int columnSpan, int rowSpan, bool isHeader, bool isFooter, float confidence, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormElement> fieldElements) { throw null; }
        public static Azure.AI.FormRecognizer.Models.FormWord FormWord(Azure.AI.FormRecognizer.Models.FieldBoundingBox boundingBox, int pageNumber, string text, float confidence) { throw null; }
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        public static Azure.AI.FormRecognizer.Models.RecognizedForm RecognizedForm(string formType, Azure.AI.FormRecognizer.Models.FormPageRange pageRange, System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Models.FormField> fields, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormPage> pages) { throw null; }
        public static Azure.AI.FormRecognizer.Models.RecognizedForm RecognizedForm(string formType, Azure.AI.FormRecognizer.Models.FormPageRange pageRange, System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Models.FormField> fields, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormPage> pages, string modelId, float? formTypeConfidence) { throw null; }
        public static Azure.AI.FormRecognizer.Models.RecognizedFormCollection RecognizedFormCollection(System.Collections.Generic.IList<Azure.AI.FormRecognizer.Models.RecognizedForm> list) { throw null; }
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        public static Azure.AI.FormRecognizer.Training.TrainingDocumentInfo TrainingDocumentInfo(string name, int pageCount, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.Models.FormRecognizerError> errors, Azure.AI.FormRecognizer.Training.TrainingStatus status) { throw null; }
        public static Azure.AI.FormRecognizer.Training.TrainingDocumentInfo TrainingDocumentInfo(string name, int pageCount, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.Models.FormRecognizerError> errors, Azure.AI.FormRecognizer.Training.TrainingStatus status, string modelId) { throw null; }
    }
    public partial class FormSelectionMark : Azure.AI.FormRecognizer.Models.FormElement
    {
        internal FormSelectionMark() { }
        public float Confidence { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.FormSelectionMarkState State { get { throw null; } }
    }
    public enum FormSelectionMarkState
    {
        Selected = 0,
        Unselected = 1,
    }
    public partial class FormTable
    {
        internal FormTable() { }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormTableCell> Cells { get { throw null; } }
        public int ColumnCount { get { throw null; } }
        public int PageNumber { get { throw null; } }
        public int RowCount { get { throw null; } }
    }
    public partial class FormTableCell : Azure.AI.FormRecognizer.Models.FormElement
    {
        internal FormTableCell() { }
        public int ColumnIndex { get { throw null; } }
        public int ColumnSpan { get { throw null; } }
        public float Confidence { get { throw null; } }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormElement> FieldElements { get { throw null; } }
        public bool IsFooter { get { throw null; } }
        public bool IsHeader { get { throw null; } }
        public int RowIndex { get { throw null; } }
        public int RowSpan { get { throw null; } }
    }
    public partial class FormWord : Azure.AI.FormRecognizer.Models.FormElement
    {
        internal FormWord() { }
        public float Confidence { get { throw null; } }
    }
    public enum LengthUnit
    {
        Pixel = 0,
        Inch = 1,
    }
    public partial class RecognizeBusinessCardsOperation : Azure.Operation<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>
    {
        public RecognizeBusinessCardsOperation(string operationId, Azure.AI.FormRecognizer.FormRecognizerClient client) { }
        public override bool HasCompleted { get { throw null; } }
        public override bool HasValue { get { throw null; } }
        public override string Id { get { throw null; } }
        public override Azure.AI.FormRecognizer.Models.RecognizedFormCollection Value { get { throw null; } }
        public override Azure.Response GetRawResponse() { throw null; }
        public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class RecognizeContentOperation : Azure.Operation<Azure.AI.FormRecognizer.Models.FormPageCollection>
    {
        public RecognizeContentOperation(string operationId, Azure.AI.FormRecognizer.FormRecognizerClient client) { }
        public override bool HasCompleted { get { throw null; } }
        public override bool HasValue { get { throw null; } }
        public override string Id { get { throw null; } }
        public override Azure.AI.FormRecognizer.Models.FormPageCollection Value { get { throw null; } }
        public override Azure.Response GetRawResponse() { throw null; }
        public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.FormPageCollection>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.FormPageCollection>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class RecognizeCustomFormsOperation : Azure.Operation<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>
    {
        public RecognizeCustomFormsOperation(string operationId, Azure.AI.FormRecognizer.FormRecognizerClient client) { }
        public override bool HasCompleted { get { throw null; } }
        public override bool HasValue { get { throw null; } }
        public override string Id { get { throw null; } }
        public override Azure.AI.FormRecognizer.Models.RecognizedFormCollection Value { get { throw null; } }
        public override Azure.Response GetRawResponse() { throw null; }
        public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class RecognizedForm
    {
        internal RecognizedForm() { }
        public System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Models.FormField> Fields { get { throw null; } }
        public string FormType { get { throw null; } }
        public float? FormTypeConfidence { get { throw null; } }
        public string ModelId { get { throw null; } }
        public Azure.AI.FormRecognizer.Models.FormPageRange PageRange { get { throw null; } }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormPage> Pages { get { throw null; } }
    }
    public partial class RecognizedFormCollection : System.Collections.ObjectModel.ReadOnlyCollection<Azure.AI.FormRecognizer.Models.RecognizedForm>
    {
        internal RecognizedFormCollection() : base (default(System.Collections.Generic.IList<Azure.AI.FormRecognizer.Models.RecognizedForm>)) { }
    }
    public partial class RecognizeReceiptsOperation : Azure.Operation<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>
    {
        public RecognizeReceiptsOperation(string operationId, Azure.AI.FormRecognizer.FormRecognizerClient client) { }
        public override bool HasCompleted { get { throw null; } }
        public override bool HasValue { get { throw null; } }
        public override string Id { get { throw null; } }
        public override Azure.AI.FormRecognizer.Models.RecognizedFormCollection Value { get { throw null; } }
        public override Azure.Response GetRawResponse() { throw null; }
        public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Models.RecognizedFormCollection>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
}
namespace Azure.AI.FormRecognizer.Training
{
    public partial class AccountProperties
    {
        internal AccountProperties() { }
        public int CustomModelCount { get { throw null; } }
        public int CustomModelLimit { get { throw null; } }
    }
    public partial class CopyAuthorization
    {
        internal CopyAuthorization() { }
        public System.DateTimeOffset ExpiresOn { get { throw null; } }
        public string ModelId { get { throw null; } }
        public static Azure.AI.FormRecognizer.Training.CopyAuthorization FromJson(string copyAuthorization) { throw null; }
        public string ToJson() { throw null; }
    }
    public partial class CopyModelOperation : Azure.Operation<Azure.AI.FormRecognizer.Training.CustomFormModelInfo>
    {
        public CopyModelOperation(string operationId, string targetModelId, Azure.AI.FormRecognizer.Training.FormTrainingClient client) { }
        public override bool HasCompleted { get { throw null; } }
        public override bool HasValue { get { throw null; } }
        public override string Id { get { throw null; } }
        public override Azure.AI.FormRecognizer.Training.CustomFormModelInfo Value { get { throw null; } }
        public override Azure.Response GetRawResponse() { throw null; }
        public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModelInfo>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModelInfo>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class CreateComposedModelOperation : Azure.AI.FormRecognizer.Training.CreateCustomFormModelOperation
    {
        public CreateComposedModelOperation(string operationId, Azure.AI.FormRecognizer.Training.FormTrainingClient client) : base (default(string), default(Azure.AI.FormRecognizer.Training.FormTrainingClient)) { }
    }
    public partial class CreateComposedModelOptions
    {
        public CreateComposedModelOptions() { }
        public string ModelName { get { throw null; } set { } }
    }
    public partial class CreateCustomFormModelOperation : Azure.Operation<Azure.AI.FormRecognizer.Training.CustomFormModel>
    {
        public CreateCustomFormModelOperation(string operationId, Azure.AI.FormRecognizer.Training.FormTrainingClient client) { }
        public override bool HasCompleted { get { throw null; } }
        public override bool HasValue { get { throw null; } }
        public override string Id { get { throw null; } }
        public override Azure.AI.FormRecognizer.Training.CustomFormModel Value { get { throw null; } }
        public override Azure.Response GetRawResponse() { throw null; }
        public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class CustomFormModel
    {
        internal CustomFormModel() { }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormRecognizerError> Errors { get { throw null; } }
        public string ModelId { get { throw null; } }
        public string ModelName { get { throw null; } }
        public Azure.AI.FormRecognizer.Training.CustomFormModelProperties Properties { get { throw null; } }
        public Azure.AI.FormRecognizer.Training.CustomFormModelStatus Status { get { throw null; } }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Training.CustomFormSubmodel> Submodels { get { throw null; } }
        public System.DateTimeOffset TrainingCompletedOn { get { throw null; } }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Training.TrainingDocumentInfo> TrainingDocuments { get { throw null; } }
        public System.DateTimeOffset TrainingStartedOn { get { throw null; } }
    }
    public partial class CustomFormModelField
    {
        internal CustomFormModelField() { }
        public float? Accuracy { get { throw null; } }
        public string Label { get { throw null; } }
        public string Name { get { throw null; } }
    }
    public partial class CustomFormModelInfo
    {
        internal CustomFormModelInfo() { }
        public string ModelId { get { throw null; } }
        public string ModelName { get { throw null; } }
        public Azure.AI.FormRecognizer.Training.CustomFormModelProperties Properties { get { throw null; } }
        public Azure.AI.FormRecognizer.Training.CustomFormModelStatus Status { get { throw null; } }
        public System.DateTimeOffset TrainingCompletedOn { get { throw null; } }
        public System.DateTimeOffset TrainingStartedOn { get { throw null; } }
    }
    public partial class CustomFormModelProperties
    {
        internal CustomFormModelProperties() { }
        public bool IsComposedModel { get { throw null; } }
    }
    public enum CustomFormModelStatus
    {
        Invalid = 0,
        Ready = 1,
        Creating = 2,
    }
    public partial class CustomFormSubmodel
    {
        internal CustomFormSubmodel() { }
        public float? Accuracy { get { throw null; } }
        public System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.FormRecognizer.Training.CustomFormModelField> Fields { get { throw null; } }
        public string FormType { get { throw null; } }
        public string ModelId { get { throw null; } }
    }
    public partial class FormTrainingClient
    {
        protected FormTrainingClient() { }
        public FormTrainingClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { }
        public FormTrainingClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.FormRecognizer.FormRecognizerClientOptions options) { }
        public FormTrainingClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { }
        public FormTrainingClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.FormRecognizer.FormRecognizerClientOptions options) { }
        public virtual Azure.Response DeleteModel(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.Response> DeleteModelAsync(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.Response<Azure.AI.FormRecognizer.Training.AccountProperties> GetAccountProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.AccountProperties>> GetAccountPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization> GetCopyAuthorization(string resourceId, string resourceRegion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>> GetCopyAuthorizationAsync(string resourceId, string resourceRegion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel> GetCustomModel(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> GetCustomModelAsync(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.Pageable<Azure.AI.FormRecognizer.Training.CustomFormModelInfo> GetCustomModels(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AsyncPageable<Azure.AI.FormRecognizer.Training.CustomFormModelInfo> GetCustomModelsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.FormRecognizerClient GetFormRecognizerClient() { throw null; }
        public virtual Azure.AI.FormRecognizer.Training.CopyModelOperation StartCopyModel(string modelId, Azure.AI.FormRecognizer.Training.CopyAuthorization target, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CopyModelOperation> StartCopyModelAsync(string modelId, Azure.AI.FormRecognizer.Training.CopyAuthorization target, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Training.CreateComposedModelOperation StartCreateComposedModel(System.Collections.Generic.IEnumerable<string> modelIds, Azure.AI.FormRecognizer.Training.CreateComposedModelOptions createComposedModelOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CreateComposedModelOperation> StartCreateComposedModelAsync(System.Collections.Generic.IEnumerable<string> modelIds, Azure.AI.FormRecognizer.Training.CreateComposedModelOptions createComposedModelOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual Azure.AI.FormRecognizer.Training.TrainingOperation StartTraining(System.Uri trainingFilesUri, bool useTrainingLabels, Azure.AI.FormRecognizer.Training.TrainingOptions trainingOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
        public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.TrainingOperation> StartTrainingAsync(System.Uri trainingFilesUri, bool useTrainingLabels, Azure.AI.FormRecognizer.Training.TrainingOptions trainingOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
    }
    public partial class TrainingDocumentInfo
    {
        internal TrainingDocumentInfo() { }
        public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormRecognizerError> Errors { get { throw null; } }
        public string ModelId { get { throw null; } }
        public string Name { get { throw null; } }
        public int PageCount { get { throw null; } }
        public Azure.AI.FormRecognizer.Training.TrainingStatus Status { get { throw null; } }
    }
    public partial class TrainingFileFilter
    {
        public TrainingFileFilter() { }
        public bool IncludeSubfolders { get { throw null; } set { } }
        public string Prefix { get { throw null; } set { } }
    }
    public partial class TrainingOperation : Azure.AI.FormRecognizer.Training.CreateCustomFormModelOperation
    {
        public TrainingOperation(string operationId, Azure.AI.FormRecognizer.Training.FormTrainingClient client) : base (default(string), default(Azure.AI.FormRecognizer.Training.FormTrainingClient)) { }
    }
    public partial class TrainingOptions
    {
        public TrainingOptions() { }
        public string ModelName { get { throw null; } set { } }
        public Azure.AI.FormRecognizer.Training.TrainingFileFilter TrainingFileFilter { get { throw null; } set { } }
    }
    public enum TrainingStatus
    {
        Succeeded = 0,
        PartiallySucceeded = 1,
        Failed = 2,
    }
}


text:
import { expect } from 'chai';

import rs from '../src';

const app = rs({ port: 8082, log: false, logStack: false });

describe('Endpoint versions', () => {

    it('creates the endpoints with different versions', () => {
        const v1 = app.get(1, '/', (req, res, next) => next());
        expect(v1.isDeprecated()).to.be.false;

        const v2 = app.get(2, '/', (req, res, next) => next());
        expect(v2.isDeprecated()).to.be.false;

        expect(v1.isDeprecated()).to.be.true;
    });
});


text:
//
//  random.h
//  yamcmc++
//
//  Created by Brandon Kelly on 3/2/13.
//  Copyright (c) 2013 Brandon Kelly. All rights reserved.
//

#ifndef __yamcmc____random__
#define __yamcmc____random__

#include <iostream>
//
//  random.hpp
//  yamcmc++
//
//  Created by Dr. Brandon C. Kelly on 11/21/12.
//
//  Header file for a class that generates pseudorandom numbers from common distributions.
//  This is basically a wrapper for BOOST::RANDOM
//

// Standard includes
#include <string>
#include <vector>
// Boost includes
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/exponential_distribution.hpp>
#include <boost/random/normal_distribution.hpp>
#include <boost/random/lognormal_distribution.hpp>
#include <boost/random/uniform_real_distribution.hpp>
#include <boost/random/student_t_distribution.hpp>
#include <boost/random/chi_squared_distribution.hpp>
#include <boost/random/gamma_distribution.hpp>
#include <boost/random/uniform_int_distribution.hpp>

// Other includes
#include <armadillo>

// Class containing methods to generate random numbers from various
// distributions. These should be self-explanatory, but see
// random.cpp for more details.
class RandomGenerator {
public:
    void SetSeed(unsigned long seed) const; // Set the random number generator seed. Be Careful with this!
    void SaveSeed(std::string seed_filename = "seed.txt") const; // Save the random number generator seed to a file.
    void RecoverSeed(std::string seed_filename = "seed.txt") const;
    double exp(double lambda=1.0);
    double normal(double mu=0.0, double sigma=1.0); // Univariate normal
    arma::vec normal(arma::mat covar); // Multivariate normal
    double lognormal(double logmean=0.0, double frac_sigma=1.0);
    double uniform(double lowbound=0.0, double upbound=1.0);
    int uniform(int lowbound, int upbound);
    double powerlaw(double lower, double upper, double slope);
    double tdist(double dof=1.0, double mean=0.0, double scale=1.0);
    double chisqr(int dof=1);
    double scaled_inverse_chisqr(int dof=1, double ssqr=1.0);
    double gamma(double alpha=1.0, double beta=1.0);
    double invgamma(double alpha=1.0, double beta=1.0);
    int uniform_integer(int lowbound, int upbound);
    double invgauss(double mu, double lambda);
    arma::mat wishart(int dof, arma::mat scale);
    arma::mat inv_wishart(int dof, arma::mat scale);
    // Additional methods to be added later
    arma::vec mtdist(arma::mat covar, double dof=1.0);
    double beta();
    double weibull();
private:
    // Private functors for the various distributions.
    boost::random::exponential_distribution<> exp_;
    boost::random::normal_distribution<> normal_;
    boost::random::lognormal_distribution<> lognormal_;
    boost::random::uniform_real_distribution<> uniform_;
    boost::random::uniform_int_distribution<> uniform_integer_;
    boost::random::student_t_distribution<> tdist_;
    boost::random::chi_squared_distribution<> chisqr_;
    boost::random::gamma_distribution<> gamma_;
};

#endif /* defined(__yamcmc____random__) */


text:
package org.hisp.dhis.mapping.hibernate;

import org.hibernate.Query;
import org.hisp.dhis.common.hibernate.HibernateIdentifiableObjectStore;
import org.hisp.dhis.mapping.Map;
import org.hisp.dhis.mapping.MapStore;
import org.hisp.dhis.mapping.MapView;

/**
 * @author Lars Helge Overland
 */
public class HibernateMapStore
    extends HibernateIdentifiableObjectStore<Map> implements MapStore
{
    @Override
    public int countMapViewMaps( MapView mapView )
    {
        Query query = getQuery( "select count(distinct c) from Map c where :mapView in elements(c.mapViews)" );
        query.setEntity( "mapView", mapView );

        return ((Long) query.uniqueResult()).intValue();
    }
}