text:
#include <aws/swf/model/Decision.h>
#include <aws/core/utils/json/JsonSerializer.h>

#include <utility>

using namespace Aws::Utils::Json;
using namespace Aws::Utils;

namespace Aws
{
namespace SWF
{
namespace Model
{

Decision::Decision() :
    m_decisionTypeHasBeenSet(false),
    m_scheduleActivityTaskDecisionAttributesHasBeenSet(false),
    m_requestCancelActivityTaskDecisionAttributesHasBeenSet(false),
    m_completeWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_failWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_cancelWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_continueAsNewWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_recordMarkerDecisionAttributesHasBeenSet(false),
    m_startTimerDecisionAttributesHasBeenSet(false),
    m_cancelTimerDecisionAttributesHasBeenSet(false),
    m_signalExternalWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_requestCancelExternalWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_startChildWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_scheduleLambdaFunctionDecisionAttributesHasBeenSet(false)
{
}

Decision::Decision(const JsonValue& jsonValue) :
    m_decisionTypeHasBeenSet(false),
    m_scheduleActivityTaskDecisionAttributesHasBeenSet(false),
    m_requestCancelActivityTaskDecisionAttributesHasBeenSet(false),
    m_completeWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_failWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_cancelWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_continueAsNewWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_recordMarkerDecisionAttributesHasBeenSet(false),
    m_startTimerDecisionAttributesHasBeenSet(false),
    m_cancelTimerDecisionAttributesHasBeenSet(false),
    m_signalExternalWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_requestCancelExternalWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_startChildWorkflowExecutionDecisionAttributesHasBeenSet(false),
    m_scheduleLambdaFunctionDecisionAttributesHasBeenSet(false)
{
  *this = jsonValue;
}

Decision& Decision::operator =(const JsonValue& jsonValue)
{
  if(jsonValue.ValueExists("decisionType"))
  {
    m_decisionType = DecisionTypeMapper::GetDecisionTypeForName(jsonValue.GetString("decisionType"));

    m_decisionTypeHasBeenSet = true;
  }

  if(jsonValue.ValueExists("scheduleActivityTaskDecisionAttributes"))
  {
    m_scheduleActivityTaskDecisionAttributes = jsonValue.GetObject("scheduleActivityTaskDecisionAttributes");

    m_scheduleActivityTaskDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("requestCancelActivityTaskDecisionAttributes"))
  {
    m_requestCancelActivityTaskDecisionAttributes = jsonValue.GetObject("requestCancelActivityTaskDecisionAttributes");

    m_requestCancelActivityTaskDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("completeWorkflowExecutionDecisionAttributes"))
  {
    m_completeWorkflowExecutionDecisionAttributes = jsonValue.GetObject("completeWorkflowExecutionDecisionAttributes");

    m_completeWorkflowExecutionDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("failWorkflowExecutionDecisionAttributes"))
  {
    m_failWorkflowExecutionDecisionAttributes = jsonValue.GetObject("failWorkflowExecutionDecisionAttributes");

    m_failWorkflowExecutionDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("cancelWorkflowExecutionDecisionAttributes"))
  {
    m_cancelWorkflowExecutionDecisionAttributes = jsonValue.GetObject("cancelWorkflowExecutionDecisionAttributes");

    m_cancelWorkflowExecutionDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("continueAsNewWorkflowExecutionDecisionAttributes"))
  {
    m_continueAsNewWorkflowExecutionDecisionAttributes = jsonValue.GetObject("continueAsNewWorkflowExecutionDecisionAttributes");

    m_continueAsNewWorkflowExecutionDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("recordMarkerDecisionAttributes"))
  {
    m_recordMarkerDecisionAttributes = jsonValue.GetObject("recordMarkerDecisionAttributes");

    m_recordMarkerDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("startTimerDecisionAttributes"))
  {
    m_startTimerDecisionAttributes = jsonValue.GetObject("startTimerDecisionAttributes");

    m_startTimerDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("cancelTimerDecisionAttributes"))
  {
    m_cancelTimerDecisionAttributes = jsonValue.GetObject("cancelTimerDecisionAttributes");

    m_cancelTimerDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("signalExternalWorkflowExecutionDecisionAttributes"))
  {
    m_signalExternalWorkflowExecutionDecisionAttributes = jsonValue.GetObject("signalExternalWorkflowExecutionDecisionAttributes");

    m_signalExternalWorkflowExecutionDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("requestCancelExternalWorkflowExecutionDecisionAttributes"))
  {
    m_requestCancelExternalWorkflowExecutionDecisionAttributes = jsonValue.GetObject("requestCancelExternalWorkflowExecutionDecisionAttributes");

    m_requestCancelExternalWorkflowExecutionDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("startChildWorkflowExecutionDecisionAttributes"))
  {
    m_startChildWorkflowExecutionDecisionAttributes = jsonValue.GetObject("startChildWorkflowExecutionDecisionAttributes");

    m_startChildWorkflowExecutionDecisionAttributesHasBeenSet = true;
  }

  if(jsonValue.ValueExists("scheduleLambdaFunctionDecisionAttributes"))
  {
    m_scheduleLambdaFunctionDecisionAttributes = jsonValue.GetObject("scheduleLambdaFunctionDecisionAttributes");

    m_scheduleLambdaFunctionDecisionAttributesHasBeenSet = true;
  }

  return *this;
}

JsonValue Decision::Jsonize() const
{
  JsonValue payload;

  if(m_decisionTypeHasBeenSet)
  {
   payload.WithString("decisionType", DecisionTypeMapper::GetNameForDecisionType(m_decisionType));
  }

  if(m_scheduleActivityTaskDecisionAttributesHasBeenSet)
  {
   payload.WithObject("scheduleActivityTaskDecisionAttributes", m_scheduleActivityTaskDecisionAttributes.Jsonize());

  }

  if(m_requestCancelActivityTaskDecisionAttributesHasBeenSet)
  {
   payload.WithObject("requestCancelActivityTaskDecisionAttributes", m_requestCancelActivityTaskDecisionAttributes.Jsonize());

  }

  if(m_completeWorkflowExecutionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("completeWorkflowExecutionDecisionAttributes", m_completeWorkflowExecutionDecisionAttributes.Jsonize());

  }

  if(m_failWorkflowExecutionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("failWorkflowExecutionDecisionAttributes", m_failWorkflowExecutionDecisionAttributes.Jsonize());

  }

  if(m_cancelWorkflowExecutionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("cancelWorkflowExecutionDecisionAttributes", m_cancelWorkflowExecutionDecisionAttributes.Jsonize());

  }

  if(m_continueAsNewWorkflowExecutionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("continueAsNewWorkflowExecutionDecisionAttributes", m_continueAsNewWorkflowExecutionDecisionAttributes.Jsonize());

  }

  if(m_recordMarkerDecisionAttributesHasBeenSet)
  {
   payload.WithObject("recordMarkerDecisionAttributes", m_recordMarkerDecisionAttributes.Jsonize());

  }

  if(m_startTimerDecisionAttributesHasBeenSet)
  {
   payload.WithObject("startTimerDecisionAttributes", m_startTimerDecisionAttributes.Jsonize());

  }

  if(m_cancelTimerDecisionAttributesHasBeenSet)
  {
   payload.WithObject("cancelTimerDecisionAttributes", m_cancelTimerDecisionAttributes.Jsonize());

  }

  if(m_signalExternalWorkflowExecutionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("signalExternalWorkflowExecutionDecisionAttributes", m_signalExternalWorkflowExecutionDecisionAttributes.Jsonize());

  }

  if(m_requestCancelExternalWorkflowExecutionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("requestCancelExternalWorkflowExecutionDecisionAttributes", m_requestCancelExternalWorkflowExecutionDecisionAttributes.Jsonize());

  }

  if(m_startChildWorkflowExecutionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("startChildWorkflowExecutionDecisionAttributes", m_startChildWorkflowExecutionDecisionAttributes.Jsonize());

  }

  if(m_scheduleLambdaFunctionDecisionAttributesHasBeenSet)
  {
   payload.WithObject("scheduleLambdaFunctionDecisionAttributes", m_scheduleLambdaFunctionDecisionAttributes.Jsonize());

  }

  return payload;
}

} // namespace Model
} // namespace SWF
} // namespace Aws


text:
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <xi:include href="layout.html" />

    <title i18n:msg="name">Milestone ${milestone.name}</title>
    <link py:if="'MILESTONE_MODIFY' in perm(milestone.resource)" rel="alternate" type="application/x-wiki"
          title="Edit this milestone" href="${href.milestone(milestone.name, action='edit')}" />

Milestone ${milestone.name}

        <py:choose>

            <i18n:msg params="duration, date">
              Completed ${dateinfo(milestone.completed)} ago (${format_datetime(milestone.completed)})
            </i18n:msg>

            <i18n:msg params="duration, date">
              ${dateinfo(milestone.due)} late (${format_datetime(milestone.due)})
            </i18n:msg>

            <i18n:msg params="duration, date">
              Due in ${dateinfo(milestone.due)} (${format_datetime(milestone.due)})
            </i18n:msg>

            No date set

        </py:choose>
        <xi:include href="progress_bar.html" py:if="stats.count"/>

      <form py:if="available_groups and stats.count" id="stats" class="trac-groupprogress" action="">
        <fieldset>
          <legend>
            ${stats.title.capitalize()} by
            <select id="by" name="by" onchange="this.form.submit()">
              <option py:for="group in available_groups"
                      value="${group.name}" py:content="group.label"
                      selected="${grouped_by == group.name or None}" />
            </select>
            <input type="submit" value="${_('Update')}" class="noscript" />

          </legend>
          <xi:include href="progress_bar_grouped.html" py:if="groups"
                      py:with="summary = _('Shows the milestone completion status grouped by %(grouped_by)s',
                                           grouped_by=grouped_by)"/>
        </fieldset>
      </form>

        ${wiki_to_html(context, milestone.description)}

      <xi:include href="list_of_attachments.html"
                  py:with="alist = attachments; compact = True; foldable = True"/>

        <form py:if="'MILESTONE_MODIFY' in perm(milestone.resource)" method="get" action="" id="editmilestone">

            <input type="hidden" name="action" value="edit" />
            <input type="submit" value="${_('Edit milestone')}" />

        </form>
        <form py:if="'MILESTONE_DELETE' in perm(milestone.resource)" method="get" action="" id="deletemilestone">

            <input type="hidden" name="action" value="delete" />
            <input type="submit" value="${_('Delete milestone')}" />

        </form>
        <xi:include href="attach_file_form.html" py:with="alist = attachments"/>

Note: See
        TracRoadmap for help on using
        the roadmap.

redpajama_set_name: RedPajamaGithub


text:
/**
 * Dependencies.
 */

const http = require('http')
const service= require('..')
const Readable = require('stream').Readable
const fs = require('fs')

/**
 * Build basic user api.
 */

const user = service({
  'get': {
    '/': () => 'hello world',
    '/:name': (query) => {
      return query
    },
    '/error': () => {
      throw new Error('this is some error')
    },
    '/array': () => {
      return ['hello world']
    },
    '/html': () => fs.createReadStream(__dirname + '/sample.html')
  },
  'post': (query, data) => {
    return data
  }
})

http.createServer((req, res) => {
  user(req, res).pipe(res)
}).listen(6000)


text:
<?php

namespace CsvMigrations\FieldHandlers\Config;

/**
 * DateConfig
 *
 * This class provides the predefined configuration
 * for date field handlers.
 */
class DateConfig extends FixedConfig
{
    /**
     * @var array $providers List of provider names and classes
     */
    protected $providers = [
        'combinedFields' => '\\CsvMigrations\\FieldHandlers\\Provider\\CombinedFields\\NullCombinedFields',
        'dbFieldType' => '\\CsvMigrations\\FieldHandlers\\Provider\\DbFieldType\\DateDbFieldType',
        'fieldValue' => '\\CsvMigrations\\FieldHandlers\\Provider\\FieldValue\\MixedFieldValue',
        'fieldToDb' => '\\CsvMigrations\\FieldHandlers\\Provider\\FieldToDb\\DateFieldToDb',
        'searchOperators' => '\\CsvMigrations\\FieldHandlers\\Provider\\SearchOperators\\TimeSearchOperators',
        'searchOptions' => '\\CsvMigrations\\FieldHandlers\\Provider\\SearchOptions\\DateSearchOptions',
        'selectOptions' => '\\CsvMigrations\\FieldHandlers\\Provider\\SelectOptions\\NullSelectOptions',
        'renderInput' => '\\CsvMigrations\\FieldHandlers\\Provider\\RenderInput\\DateRenderer',
        'renderValue' => '\\CsvMigrations\\FieldHandlers\\Provider\\RenderValue\\DateRenderer',
        'renderName' => '\\CsvMigrations\\FieldHandlers\\Provider\\RenderName\\DefaultRenderer',
        'validationRules' => '\\CsvMigrations\\FieldHandlers\\Provider\\ValidationRules\\DateValidationRules',
    ];
}


text:
/*
 * This file is part of RTRlib.
 *
 * This file is subject to the terms and conditions of the MIT license.
 * See the file LICENSE in the top level directory for more details.
 *
 * Website: http://rtrlib.realmv6.org/
 */

/**
 * @defgroup mod_pfx_h Prefix validation table
 * @brief The pfx_table is an abstract data structure to organize the validated prefix origin data
 * received from an RPKI-RTR cache server.
 *
 * @{
 */

#ifndef RTR_PFX_H
#define RTR_PFX_H

#include "rtrlib/lib/ip.h"
#include "rtrlib/pfx/trie/trie-pfx.h"

#include <inttypes.h>

/**
 * @brief Possible return values for pfx_ functions.
 */
enum pfx_rtvals {
	/** Operation was successful. */
	PFX_SUCCESS = 0,

	/** Error occurred. */
	PFX_ERROR = -1,

	/** The supplied pfx_record already exists in the pfx_table. */
	PFX_DUPLICATE_RECORD = -2,

	/** pfx_record wasn't found in the pfx_table. */
	PFX_RECORD_NOT_FOUND = -3
};

/**
 * @brief Validation states returned from  pfx_validate_origin.
 */
enum pfxv_state {
	/** A valid certificate for the pfx_record exists. */
	BGP_PFXV_STATE_VALID,

	/** @brief No certificate for the route exists. */
	BGP_PFXV_STATE_NOT_FOUND,

	/** @brief One or more records that match the input prefix exists in the pfx_table
	 * but the prefix max_len or ASN doesn't match.
	 */
	BGP_PFXV_STATE_INVALID
};

/**
 * @brief A function pointer that is called for each record in the pfx_table.
 * @param pfx_record
 * @param data forwarded data which the user has passed to pfx_table_for_each_ipv4_record() or
 * pfx_table_for_each_ipv6_record()
 */
typedef void (*pfx_for_each_fp)(const struct pfx_record *pfx_record, void *data);

/**
 * @brief Initializes the pfx_table struct.
 * @param[in] pfx_table pfx_table that will be initialized.
 * @param[in] update_fp A function pointer that will be called if a record was added or removed.
 */
void pfx_table_init(struct pfx_table *pfx_table, pfx_update_fp update_fp);

/**
 * @brief Frees all memory associated with the pfx_table.
 * @param[in] pfx_table pfx_table that will be freed.
 */
void pfx_table_free(struct pfx_table *pfx_table);

/**
 * @brief Adds a pfx_record to a pfx_table.
 * @param[in] pfx_table pfx_table to use.
 * @param[in] pfx_record pfx_record that will be added.
 * @return PFX_SUCCESS On success.
 * @return PFX_ERROR On error.
 * @return PFX_DUPLICATE_RECORD If the pfx_record already exists.
 */
int pfx_table_add(struct pfx_table *pfx_table, const struct pfx_record *pfx_record);

/**
 * @brief Removes a pfx_record from a pfx_table.
 * @param[in] pfx_table pfx_table to use.
 * @param[in] pfx_record Record that will be removed.
 * @return PFX_SUCCESS On success.
 * @return PFX_ERROR On error.
 * @return PFX_RECORD_NOT_FOUND If pfx_records couldn't be found.
 */
int pfx_table_remove(struct pfx_table *pfx_table, const struct pfx_record *pfx_record);

/**
 * @brief Removes all entries in the pfx_table that match the passed socket_id value from a pfx_table.
 * @param[in] pfx_table pfx_table to use.
 * @param[in] socket origin socket of the record
 * @return PFX_SUCCESS On success.
 * @return PFX_ERROR On error.
 */
int pfx_table_src_remove(struct pfx_table *pfx_table, const struct rtr_socket *socket);

/**
 * @brief Validates the origin of a BGP-Route.
 * @param[in] pfx_table pfx_table to use.
 * @param[in] asn Autonomous system number of the Origin-AS of the route.
 * @param[in] prefix Announced network Prefix.
 * @param[in] mask_len Length of the network mask of the announced prefix.
 * @param[out] result Result of the validation.
 * @return PFX_SUCCESS On success.
 * @return PFX_ERROR On error.
 */
int pfx_table_validate(struct pfx_table *pfx_table, const uint32_t asn, const struct lrtr_ip_addr *prefix,
		       const uint8_t mask_len, enum pfxv_state *result);

/**
 * @brief Validates the origin of a BGP-Route and returns a list of pfx_record that decided the result.
 * @param[in] pfx_table pfx_table to use.
 * @param[out] reason Pointer to a memory area that will be used as array of pfx_records.
 * The memory area will be overwritten. Reason must point to NULL or an allocated memory area.
 * @param[out] reason_len Size of the array reason.
 * @param[in] asn Autonomous system number of the Origin-AS of the route.
 * @param[in] prefix Announced network Prefix
 * @param[in] mask_len Length of the network mask of the announced prefix
 * @param[out] result Result of the validation.
 * @return PFX_SUCCESS On success.
 * @return PFX_ERROR On error.
 */
int pfx_table_validate_r(struct pfx_table *pfx_table, struct pfx_record **reason, unsigned int *reason_len,
			 const uint32_t asn, const struct lrtr_ip_addr *prefix, const uint8_t mask_len,
			 enum pfxv_state *result);

/**
 * @brief Iterates over all IPv4 records in the pfx_table.
 * @details For every pfx_record the function fp is called. The pfx_record and
 * the data pointer is passed to the fp.
 * @param[in] pfx_table
 * @param[in] fp A pointer to a callback function with the signature \c pfx_for_each_fp.
 * @param[in] data This parameter is forwarded to the callback function.
 */
void pfx_table_for_each_ipv4_record(struct pfx_table *pfx_table, pfx_for_each_fp fp, void *data);

/**
 * @brief Iterates over all IPv6 records in the pfx_table.
 * @details For every pfx_record the function fp is called. The pfx_record and
 * the data pointer is passed to the fp.
 * @param[in] pfx_table
 * @param[in] fp A pointer to a callback function with the signature \c pfx_for_each_fp.
 * @param[in] data This parameter is forwarded to the callback function.
 */
void pfx_table_for_each_ipv6_record(struct pfx_table *pfx_table, pfx_for_each_fp fp, void *data);

#endif
/** @} */


text:
/*********************************************************************************************************************/
/*   Copyright (C) angsys, Jesus Angel Rocha Morales                                                                 */
/*   You may opt to use, copy, modify, merge, publish and/or distribute copies of the Software, and permit persons   */
/*   to whom the Software is furnished to do so.                                                                     */
/*   This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.      */
/*********************************************************************************************************************/

#ifndef __ANG_PLATFORM_H__
#define __ANG_PLATFORM_H__

#include <angsys.h>
#include <ang/foundation.h>
#include <ang/core/async.h>

#ifdef  LINK
#undef  LINK
#endif//LINK

#if defined WINDOWS_PLATFORM
#if defined ANGSYS_DYNAMIC_LIBRARY
#ifdef ANG_PLATFORM_EXPORTS
#define LINK __declspec(dllexport)
#else
#define LINK __declspec(dllimport)
#endif//ANG_PLATFORM_EXPORTS
#else//#elif defined ANGSYS_STATIC_LIBRARY
#define LINK
#endif//ANGSYS_DYNAMIC_LIBRARY
#elif defined LINUX_PLATFORM || defined ANDROID_PLATFORM
#define LINK
#endif

namespace ang
{
	namespace platform
	{
		struct icore_app;
		struct icore_view;
		struct icore_context;
		struct imessage_reciever;
		struct icore_msg_dispatcher;

		typedef intf_wrapper<icore_app> icore_app_t;
		typedef intf_wrapper<icore_view> icore_view_t;
		typedef intf_wrapper<icore_context> icore_context_t;
		typedef intf_wrapper<imessage_reciever> imessage_reciever_t;
		typedef intf_wrapper<icore_msg_dispatcher> icore_msg_dispatcher_t;

		ANG_BEGIN_ENUM(LINK, activate_status, uint)
			deactivated,
			activated
		ANG_END_ENUM(activate_status);

		ANG_BEGIN_ENUM(LINK, display_invalidate_reason, uint)
			none = 0,
			display_invalidate,
			dpi_change,
			scale_factor_changed,
			orientation_changed,
			size_changed,
		ANG_END_ENUM(display_invalidate_reason);

		namespace display
		{
			ANG_BEGIN_ENUM(LINK, orientation, uint)
				none,
				landscape = 1,
				portrait = 2,
				landscape_flipped = 4,
				portrait_flipped = 8,
			ANG_END_ENUM(orientation);

			typedef struct display_info
			{
				property<const orientation_t, display_info > current_orientation;
				property<const orientation_t, display_info > native_orientation;
				property<const graphics::size<float>, display_info > display_resolution;
				property<const graphics::size<float>, display_info > display_scale_factor;
				property<const double, display_info > dot_per_inche;
			}display_info_t;
		}//dysplay

		namespace events
		{
			class message;
			struct imsg_event_args;

			typedef uint core_msg_t;
			typedef object_wrapper<message> message_t;
			typedef intf_wrapper<imsg_event_args> imsg_event_args_t;

			ANG_BEGIN_ENUM(LINK, core_msg_enum, core_msg_t)
				none = 0x0000,
				created = 0x0001,
				destroyed = 0x0002,
				size = 0x0005,
				activate = 0x0006,
				got_focus = 0x0007,
				lost_focus = 0x0008,
				draw = 0x000F,
				begin_drawing = 0x0407,
				end_drawing = 0x0408,
				visibility_change = 0x0018,

				display_change = 0x007E,
				key_down = 0x0100,
				key_up = 0x0101,
				pointer_moved = 0X0245,
				pointer_pressed = 0X0246,
				pointer_released = 0X0247,
				pointer_enter = 0x0249,
				pointer_leave = 0x024A,
				pointer_canceled = 0x024C,

				start_app = 0x0403,
				exit_app = 0x0404,
				orientation = 0x0405,
				initial_update = 0x0406,
				update = 0x0407,
				text_change = 0x0408,

				user_msg = 0x0450,
			ANG_END_ENUM(core_msg_enum);

			typedef core::delegates::ifunction<void(object*, imsg_event_args*)> ievent;
			typedef core::delegates::function_data <void(object*, imsg_event_args*)> event;
			typedef core::delegates::function <void(object*, imsg_event_args*)> event_t;
			typedef core::delegates::listener <void(object*, imsg_event_args*)> event_listener;

			struct icreated_event_args;
			struct ivisibility_change_event_args;
			struct idisplay_info_event_args;
			struct iactivate_event_args;
			struct idraw_event_args;
			struct ikey_event_args;
			struct ipointer_event_args;
			struct iapp_status_event_args;
			struct iupdate_event_args;
			struct itext_change_event_args;

			typedef intf_wrapper<imsg_event_args> imsg_event_args_t;
			typedef intf_wrapper<icreated_event_args> icreated_event_args_t;
			typedef intf_wrapper<ivisibility_change_event_args> ivisibility_change_event_args_t;
			typedef intf_wrapper<idisplay_info_event_args> idisplay_info_event_args_t;
			typedef intf_wrapper<iactivate_event_args> iactivate_event_args_t;
			typedef intf_wrapper<idraw_event_args> idraw_event_args_t;
			typedef intf_wrapper<ikey_event_args> ikey_event_args_t;
			typedef intf_wrapper<ipointer_event_args> ipointer_event_args_t;
			typedef intf_wrapper<iapp_status_event_args> iapp_status_event_args_t;
			typedef intf_wrapper<iupdate_event_args> iupdate_event_args_t;
			typedef intf_wrapper<itext_change_event_args> itext_change_event_args_t;
		}

	}
}

#include <ang/platform/input.h>
#include <ang/platform/events.h>
#include <ang/platform/core_msg.h>

namespace ang
{
	namespace platform
	{

		ANG_BEGIN_INTERFACE(LINK, imessage_reciever)
			visible vcall void send_msg(events::message_t) pure;
			visible vcall core::async::iasync_t<dword> post_msg(events::message_t) pure;
			visible vcall bool listen_to(events::event_t) pure;
		ANG_END_INTERFACE();

		ANG_BEGIN_INTERFACE_WITH_BASE(LINK, icore_msg_dispatcher, public imessage_reciever)
			visible vcall bool dispatch_msg() pure;
		ANG_END_INTERFACE();

		ANG_BEGIN_INTERFACE(LINK, icore_context)
			visible vcall  pointer get_core_context_handle()const pure;
			visible vcall  bool bind_graphic_native_surface(pointer)pure;
		ANG_END_INTERFACE();

		ANG_BEGIN_INTERFACE(LINK, icore_view)
			visible vcall pointer get_core_view_handle()const pure;
			visible vcall icore_context_t get_core_context()const pure;
			visible vcall graphics::size<float> get_core_view_size()const pure;
			visible vcall graphics::size<float> get_core_view_scale_factor()const pure;
			visible vcall imessage_reciever_t get_listener()const pure;
		ANG_END_INTERFACE();

		ANG_BEGIN_INTERFACE(LINK, icore_app)
			visible static icore_app_t get_core_app();
			visible vcall pointer get_core_app_handle()const pure;
			visible vcall icore_view_t get_main_core_view() pure;
			visible vcall input::ikeyboard_t get_keyboard()pure;
			visible vcall imessage_reciever_t get_listener()const pure;
		ANG_END_INTERFACE();
	}
}

ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::events::core_msg_enum_t);
ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::activate_status_t);

ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::display::display_info_t);
ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::display::orientation_t);

ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::input::poiner_info_t);
ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::input::key_modifiers_t);
ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::input::text_selection_t);
ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::input::keyboard_type_t);
ANG_REGISTER_RUNTIME_TYPE_INFORMATION(ang::platform::input::pointer_hardware_type_t);

#ifdef  LINK
#undef  LINK
#endif//LINK

#endif//__ANG_PLATFORM_H__


text:
using System;

namespace OldBoardGamesNeedLoveToo.MVP.CustomEventArgs
{
    public class UserDetailsByIdEventArgs
    {
        public UserDetailsByIdEventArgs(Guid id)
        {
            this.Id = id;
        }

        public Guid Id { get; private set; }
    }
}


text:
package com.wikidreams.opencv.advertisement;

/**
 * @author WIT Software - Daniel Vieira
 * @version 1.0 - 2016
 */

public class Advertisement {

	private int start;
	private int end;

	public Advertisement(int start, int end) {
		super();
		this.start = start;
		this.end = end;
	}

	public int getStart() {
		return start;
	}

	public int getEnd() {
		return end;
	}

}


text:
require 'formula'

class Cppunit < Formula
  homepage 'http://sourceforge.net/apps/mediawiki/cppunit/'
  url 'https://downloads.sourceforge.net/project/cppunit/cppunit/1.12.1/cppunit-1.12.1.tar.gz'
  sha1 'f1ab8986af7a1ffa6760f4bacf5622924639bf4a'

  bottle do
    cellar :any
    sha1 "2454890509b3b673e6a2bc7f53d755df7d5abb8f" => :mavericks
    sha1 "07ace28a30f222a55adc2cd351524e5c8d8783a1" => :mountain_lion
    sha1 "fcc7a7f99e35235a8cee728a3165d0db4da5dd5c" => :lion
  end

  option :universal

  patch :DATA

  def install
    ENV.universal_binary if build.universal?

    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end

# configure script is broken, the final rm -f fails because it tries to file
# delete a directory. superenv exposes this bug for some reason, but std-env
# does not. Weird.
__END__
diff --git a/configure b/configure
index 424eea6..11e73ad 100755
--- a/configure
+++ b/configure
@@ -23318,5 +23318,5 @@ echo X/* automatically generated */ |
 echo "$as_me: error: input file $ac_prefix_conf_IN does not exist,     skip generating $ac_prefix_conf_OUT" >&2;}
    { (exit 1); exit 1; }; }
   fi
-  rm -f conftest.*
+  rm -f conftest.* || true
 fi


text:
'use strict';

/**
* FUNCTION: some( clbk[, thisArg] )
*	Returns true if at least one element passes a provided condition; otherwise, false. See [Array#some]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some}.
*
* @param {Function} clbk - function to execute
* @param {Object} [thisArg] - `this` context when executing the function
* @returns {Boolean} boolean indicating if at least one element satisfies a test condition
*/
function some( clbk, thisArg ) {
	/* jshint validthis:true */
	var arr = this._arr,
		len = arr.length,
		i;

	if ( typeof clbk !== 'function' ) {
		throw new TypeError( 'some()::invalid input argument. Callback must be a function. Value: `' + clbk + '`.' );
	}
	if ( arguments.length > 1 ) {
		for ( i = 0; i < len; i++ ) {
			if ( clbk.call( thisArg, arr[ i ], i, this ) ) {
				return true;
			}
		}
	} else {
		for ( i = 0; i < len; i++ ) {
			if ( clbk( arr[ i ], i, this ) ) {
				return true;
			}
		}
	}
	return false;
} // end FUNCTION some()

// EXPORTS //

module.exports = some;


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="@dimen/activity_horizontal_margin"
    android:orientation="vertical">

    <LinearLayout
        android:id="@+id/chat_bottom_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:orientation="horizontal">

        <EditText
            android:id="@+id/chat_inbox"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/activity_horizontal_margin"
            android:layout_weight="1"
            android:hint="Write Message"
            android:inputType="textShortMessage"
            android:maxLines="1" />

        <ImageButton
            android:id="@+id/chat_send"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"

            android:layout_gravity="bottom"
            android:background="@android:color/transparent"
            android:padding="8dp"
            android:src="@drawable/ic_send_black_24dp" />
    </LinearLayout>

    <ListView
        android:id="@+id/chat_box"
            android:layout_alignParentTop="true"
        android:transcriptMode="alwaysScroll"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/chat_bottom_bar" />
</RelativeLayout>


text:
package md.lucene

import java.io.{Reader, FileInputStream}
import java.nio.file.Paths

import md.TitleIndexer
import org.apache.lucene.analysis.core.KeywordAnalyzer
import org.apache.lucene.analysis.custom.CustomAnalyzer
import org.apache.lucene.analysis.miscellaneous.PerFieldAnalyzerWrapper
import org.apache.lucene.document.{TextField, Field, StringField, Document}
import org.apache.lucene.index.{IndexWriterConfig, IndexWriter}
import org.apache.lucene.store.FSDirectory
import parser.jawiki.Wikipage

import scala.annotation.tailrec
import scala.collection.JavaConversions._

class LuceneTitleIndexer(indexDir: String) extends TitleIndexer {
  def createIndex(pages: => Stream[Wikipage]) = {
    val commitInterval = 1000
    val writer = createWriter(indexDir)

    @tailrec def loop(xs: Stream[Wikipage], numDocs: Int): Unit = {
      if (xs.isEmpty) ()
      else {
        if (xs.head.isEntityPage) {
          // entity page
          val doc = new Document()
          doc.add(new StringField("title", xs.head.fullPageName, Field.Store.YES))
          //doc.add(new TextField("content", xs.head.text, Field.Store.NO))
          writer.addDocument(doc)
        }

        if (numDocs % commitInterval == 0)
          writer.commit()
        loop(xs.tail, numDocs + 1)
      }
    }

    try {
      writer.deleteAll()
      writer.commit()

      loop(pages, 0)
      writer.forceMerge(1)
    } catch {
      case e: Exception => e.printStackTrace()
    } finally {
      writer.commit()
      writer.close()
    }

  }

  def createWriter(dir: String): IndexWriter = {
    //val nGramAnalyzer = CustomAnalyzer.builder().withTokenizer("ngram", "minGramSize", "2", "maxGramSize", "15").build()
    //val map = Map("content" -> nGramAnalyzer)
    //val wrapper = new PerFieldAnalyzerWrapper(new KeywordAnalyzer(), map)

    val config = new IndexWriterConfig(new KeywordAnalyzer())
    val fsDir = FSDirectory.open(Paths.get(dir))
    val writer = new IndexWriter(fsDir, config)
    writer
  }

}

object TitleIndexApp extends App {
  import parser.jawiki.Parser
  import resource._

  if (args.length < 1) {
    print("Usage: IndexApp index-dir [max-pages]")
    System.exit(0)
  }

  val indexDir = args(0)
  val maxPages = if (args.length > 1) args(1).toInt else -1
  for (is <- managed(new FileInputStream(Parser.xmlFile))) {
    def pages = Parser.parse(is, "UTF-8").filter(_.isEntityPage)
    val indexer = new LuceneTitleIndexer(indexDir)
    indexer.createIndex(if (maxPages > 0) pages.take(maxPages) else pages)
  }

}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DotVVM.Framework.Compilation.ControlTree.Resolved
{
	public struct PropertyGroupMember: IEquatable<PropertyGroupMember>, IPropertyGroupMember
	{
		public readonly string Name;
		public readonly DotvvmPropertyGroup  Group;

		string IPropertyGroupMember.Name => Name;
		IPropertyGroupDescriptor IPropertyGroupMember.PropertyGroup => Group;

		public PropertyGroupMember(DotvvmPropertyGroup  group, string name)
		{
			this.Group = group;
			this.Name = name;
		}

		public override bool Equals(object obj) => obj is PropertyGroupMember && Equals((PropertyGroupMember)obj);
		public bool Equals(PropertyGroupMember other) => other.Group == Group && Name == other.Name;

		public override int GetHashCode() =>
			(Name.GetHashCode() * 17) + Group.GetHashCode();
	}
}


text:
using CommandLine;
using Petrsnd.Cfa533Rs232Driver;

namespace Petrsnd.Cfa533Rs232Tool.Operations
{
    [Verb("senddata", HelpText = "Send data to position on LCD screen.")]
    internal class SendDataOptions : GlobalOptionsBase
    {
        [Option(HelpText = "Horizontal position / X coordinate / column (0-15)", Required = true)]
        public int Col { get; set; }

        [Option(HelpText = "Vertical position / Y coordinate / row (0-1)", Required = true)]
        public int Row { get; set; }

        [Option(HelpText = "Text to display at position", Required = true)]
        public string Text { get; set; }
    }

    internal class SendDataOp : IOp<SendDataOptions>
    {
        public int Run(LcdDevice device, SendDataOptions opts)
        {
            device.SendDataToLcd(opts.Col, opts.Row, opts.Text);
            return 0;
        }
    }
}


text:
package com.bwsw.sj.engine.regular.benchmark.read_kafka.samza

import com.bwsw.sj.common.utils.BenchmarkLiterals.Regular.samzaDefaultOutputFile
import com.bwsw.sj.engine.core.testutils.benchmark.loader.kafka.{KafkaBenchmarkDataSender, KafkaBenchmarkDataSenderConfig}
import com.bwsw.sj.engine.core.testutils.benchmark.regular.RegularBenchmarkFactory
import com.bwsw.sj.engine.core.testutils.benchmark.{BenchmarkConfig, BenchmarkRunner}

/**
  * Performs [[com.bwsw.sj.engine.regular.benchmark.read_kafka.samza.SamzaBenchmark]]
  *
  * Configuration:
  *
  * sj-benchmark.performance.message.sizes - list of messages' sizes separated by a comma (',').
  * Environment variable MESSAGES_SIZE_PER_TEST.
  *
  * sj-benchmark.performance.message.counts - list of counts of messages per test (1000000 by default).
  * Counts separated by a comma (','). Environment variable MESSAGES_COUNT_PER_TEST.
  *
  * sj-benchmark.performance.kafka.address - Kafka server's address. Environment variable KAFKA_ADDRESS.
  *
  * sj-benchmark.performance.zookeeper.address - ZooKeeper server's address. Must point to the ZooKeeper server used
  * by the Kafka server. Environment variable ZOOKEEPER_ADDRESS.
  *
  * sj-benchmark.performance.output-file - file to output results in csv format (message size, milliseconds)
  * (samza-regular-benchmark-output-`<`date-time`>` by default). Environment variable OUTPUT_FILE.
  *
  * sj-benchmark.performance.words - list of words that sends to the Kafka server ("lorem,ipsum,dolor,sit,amet" by default).
  * Environment variable WORDS.
  *
  * sj-benchmark.performance.repetitions - count of repetitions of the same test configuration (messages count and message size)
  * (1 by default). Environment variable REPETITIONS.
  *
  * @author Pavel Tomskikh
  */
object SamzaBenchmarkRunner extends BenchmarkRunner(
  samzaDefaultOutputFile,
  KafkaBenchmarkDataSender,
  SamzaBenchmarkFactory)

object SamzaBenchmarkFactory extends RegularBenchmarkFactory[KafkaBenchmarkDataSenderConfig] {
  override protected def create(benchmarkConfig: BenchmarkConfig,
                                senderConfig: KafkaBenchmarkDataSenderConfig): SamzaBenchmark =
    new SamzaBenchmark(benchmarkConfig, senderConfig)
}


text:
package com.intellij.ide.actionMacro;

import com.intellij.ide.IdeBundle;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.ConfigurationException;
import consulo.disposer.Disposer;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: max
 * Date: Jul 21, 2003
 * Time: 10:38:42 PM
 * To change this template use Options | File Templates.
 */
public class ActionMacroConfigurable implements Configurable {
  private ActionMacroConfigurationPanel myPanel;

  public String getDisplayName() {
    return IdeBundle.message("title.edit.macros");
  }

  public JComponent createComponent() {
    myPanel = new ActionMacroConfigurationPanel();
    return myPanel.getPanel();
  }

  public void apply() throws ConfigurationException {
    myPanel.apply();
  }

  public void reset() {
    myPanel.reset();
  }

  public boolean isModified() {
    return myPanel.isModified();
  }

  public void disposeUIResources() {
    Disposer.dispose(myPanel);
    myPanel = null;
  }
}


text:
<?php

namespace Magento\Customer\Block\Adminhtml\Grid\Filter;

/**
 * Country customer grid column filter
 *
 * @author      Magento Core Team <core@magentocommerce.com>
 */
class Country extends \Magento\Backend\Block\Widget\Grid\Column\Filter\Select
{
    /**
     * @var \Magento\Directory\Model\ResourceModel\Country\CollectionFactory
     */
    protected $_collectionFactory;

    /**
     * @param \Magento\Backend\Block\Context $context
     * @param \Magento\Framework\DB\Helper $resourceHelper
     * @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $collectionFactory
     * @param array $data
     */
    public function __construct(
        \Magento\Backend\Block\Context $context,
        \Magento\Framework\DB\Helper $resourceHelper,
        \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $collectionFactory,
        array $data = []
    ) {
        $this->_collectionFactory = $collectionFactory;
        parent::__construct($context, $resourceHelper, $data);
    }

    /**
     * @return array
     */
    protected function _getOptions()
    {
        $options = $this->_collectionFactory->load()->toOptionArray();
        array_unshift($options, ['value' => '', 'label' => __('All countries')]);
        return $options;
    }
}


text:
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Text;
using URSA.Web.Converters;

namespace URSA.Web.Http
{
    /// Abstract of an strongly typed object response.
    public abstract class ObjectResponseInfo : ResponseInfo
    {
        /// Initializes a new instance of the <see cref="ObjectResponseInfo" /> class.
        /// <param name="encoding">Text encoding of the response.</param>
        /// <param name="request">Corresponding request.</param>
        /// <param name="headers">Headers of the response.</param>
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        protected ObjectResponseInfo(Encoding encoding, RequestInfo request, params Header[] headers) : base(encoding, request, headers)
        {
        }

        /// Initializes a new instance of the <see cref="ObjectResponseInfo" /> class.
        /// <param name="encoding">Text encoding of the response.</param>
        /// <param name="request">Corresponding request.</param>
        /// <param name="headers">Headers of the response.</param>
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        protected ObjectResponseInfo(Encoding encoding, RequestInfo request, HeaderCollection headers) : base(encoding, request, headers)
        {
        }

        /// Gets the value of this object response.
        public abstract object Object { get; }
    }

    /// Describes a response with an object.
    /// <typeparam name="T">Type of the value.</typeparam>
    [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Suppression is OK - generic and non-generic class.")]
    public class ObjectResponseInfo<T> : ObjectResponseInfo
    {
        private Stream _body;

        /// Initializes a new instance of the <see cref="ObjectResponseInfo{T}" /> class.
        /// <param name="request">Corresponding request.</param>
        /// <param name="value">Value object.</param>
        /// <param name="converterProvider">Converter provider instance.</param>
        /// <param name="headers">Headers of the response.</param>
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        public ObjectResponseInfo(RequestInfo request, T value, IConverterProvider converterProvider, params Header[] headers)
            : this(Encoding.UTF8, request, value, converterProvider, headers)
        {
        }

        /// Initializes a new instance of the <see cref="ObjectResponseInfo{T}" /> class.
        /// <param name="encoding">Text encoding of the response.</param>
        /// <param name="request">Corresponding request.</param>
        /// <param name="value">Value object.</param>
        /// <param name="converterProvider">Converter provider instance.</param>
        /// <param name="headers">Headers of the response.</param>
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        public ObjectResponseInfo(Encoding encoding, RequestInfo request, T value, IConverterProvider converterProvider, params Header[] headers)
            : base(encoding, request, headers)
        {
            Initialize(value, converterProvider);
        }

        /// Initializes a new instance of the <see cref="ObjectResponseInfo{T}" /> class.
        /// <param name="request">Corresponding request.</param>
        /// <param name="value">Value object.</param>
        /// <param name="converterProvider">Converter provider instance.</param>
        /// <param name="headers">Headers of the response.</param>
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        public ObjectResponseInfo(RequestInfo request, T value, IConverterProvider converterProvider, HeaderCollection headers)
            : this(Encoding.UTF8, request, value, converterProvider, headers)
        {
        }

        /// Initializes a new instance of the <see cref="ObjectResponseInfo{T}" /> class.
        /// <param name="encoding">Text encoding of the response.</param>
        /// <param name="request">Corresponding request.</param>
        /// <param name="value">Value object.</param>
        /// <param name="converterProvider">Converter provider instance.</param>
        /// <param name="headers">Headers of the response.</param>
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        public ObjectResponseInfo(Encoding encoding, RequestInfo request, T value, IConverterProvider converterProvider, HeaderCollection headers)
            : base(encoding, request, headers)
        {
            Initialize(value, converterProvider);
        }

        /// Gets the value object.
        public T Value { get; private set; }

        /// <inheritdoc />
        public override object Object { get { return Value; } }

        /// <inheritdoc />
        public sealed override Stream Body { get; protected set; }

        /// Creates the instance of the <see cref="ObjectResponseInfo{T}" /> class.
        /// <param name="encoding">The encoding.</param>
        /// <param name="request">The request.</param>
        /// <param name="valueType">The type of the value.</param>
        /// <param name="value">The value.</param>
        /// <param name="converterProvider">The converter provider.</param>
        /// <param name="headers">Optional headers.</param>
        /// <returns>Instance of the <see cref="ObjectResponseInfo{T}" />.</returns>
        public static ResponseInfo CreateInstance(Encoding encoding, RequestInfo request, Type valueType, object value, IConverterProvider converterProvider, HeaderCollection headers)
        {
            if (valueType == null)
            {
                throw new ArgumentNullException("valueType");
            }

            if ((value != null) && (!valueType.IsInstanceOfType(value)))
            {
                throw new ArgumentOutOfRangeException("value");
            }

            return (ResponseInfo)typeof(ObjectResponseInfo<>).MakeGenericType(valueType)
                .GetConstructor(new[] { typeof(Encoding), typeof(RequestInfo), valueType, typeof(IConverterProvider), typeof(HeaderCollection) })
                .Invoke(new object[] { encoding, request, value, converterProvider, headers });
        }

        /// Creates the instance of the <see cref="ObjectResponseInfo{TTarget}" /> class.
        /// <typeparam name="TTarget">The type of the value.</typeparam>
        /// <param name="encoding">The encoding.</param>
        /// <param name="request">The request.</param>
        /// <param name="value">The value.</param>
        /// <param name="converterProvider">The converter provider.</param>
        /// <param name="headers">Optional headers.</param>
        /// <returns>Instance of the <see cref="ObjectResponseInfo{TTarget}" />.</returns>
        public static ObjectResponseInfo<TTarget> CreateInstance<TTarget>(Encoding encoding, RequestInfo request, TTarget value, IConverterProvider converterProvider, HeaderCollection headers)
        {
            return (ObjectResponseInfo<TTarget>)CreateInstance(encoding, request, typeof(TTarget), value, converterProvider, headers);
        }

        /// Creates the instance of the <see cref="ObjectResponseInfo{T}" /> class.
        /// <param name="encoding">The encoding.</param>
        /// <param name="request">The request.</param>
        /// <param name="valueType">The type of the value.</param>
        /// <param name="value">The value.</param>
        /// <param name="converterProvider">The converter provider.</param>
        /// <param name="headers">Optional headers.</param>
        /// <returns>Instance of the <see cref="ObjectResponseInfo{T}" />.</returns>
        public static ResponseInfo CreateInstance(Encoding encoding, RequestInfo request, Type valueType, object value, IConverterProvider converterProvider, params Header[] headers)
        {
            if (valueType == null)
            {
                throw new ArgumentNullException("valueType");
            }

            if ((value != null) && (!valueType.IsInstanceOfType(value)))
            {
                throw new ArgumentOutOfRangeException("value");
            }

            return (ResponseInfo)typeof(ObjectResponseInfo<>).MakeGenericType(valueType)
                .GetConstructor(new[] { typeof(Encoding), typeof(RequestInfo), valueType, typeof(IConverterProvider), typeof(Header[]) })
                .Invoke(new object[] { encoding, request, value, converterProvider, headers ?? new Header[0] });
        }

        /// Creates the instance of the <see cref="ObjectResponseInfo{TTarget}" /> class.
        /// <typeparam name="TTarget">The type of the value.</typeparam>
        /// <param name="encoding">The encoding.</param>
        /// <param name="request">The request.</param>
        /// <param name="value">The value.</param>
        /// <param name="converterProvider">The converter provider.</param>
        /// <param name="headers">Optional headers.</param>
        /// <returns>Instance of the <see cref="ObjectResponseInfo{TTarget}" />.</returns>
        public static ObjectResponseInfo<TTarget> CreateInstance<TTarget>(Encoding encoding, RequestInfo request, TTarget value, IConverterProvider converterProvider, params Header[] headers)
        {
            return (ObjectResponseInfo<TTarget>)CreateInstance(encoding, request, typeof(TTarget), value, converterProvider, headers);
        }

        /// <inheritdoc />
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        public sealed override void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        /// Releases unmanaged and - optionally - managed resources.
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        [ExcludeFromCodeCoverage]
        [SuppressMessage("Microsoft.Design", "CA0000:ExcludeFromCodeCoverage", Justification = "No testable logic.")]
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            _body.Dispose();
            _body = null;
        }

        private void Initialize(T value, IConverterProvider converterProvider)
        {
            if (converterProvider == null)
            {
                throw new ArgumentNullException("converterProvider");
            }

            var converter = converterProvider.FindBestOutputConverter<T>(this);
            if (converter == null)
            {
                throw new InvalidOperationException("Cannot serialize response without a matching converter.");
            }

            _body = new MemoryStream();
            Body = new UnclosableStream(_body);
            converter.ConvertFrom(Value = value, this);
            _body.Flush();
            _body.Seek(0, SeekOrigin.Begin);
        }
    }
}


text:
{extend name="admin@public/base" /}
{block name="main-content"}

				您当前操作

					修改素材

				<form class="form-horizontal ajaxForm2" name="form0" method="post" action="{:url('wechat/We/mats_runedit')}"  enctype="multipart/form-data">
					<input type="hidden" name="mats_id" value="{$mats_list.mats_id}" />
					<input type="hidden" name="mats_type" value="{$mats_list.mats_type}" />
					<input type="hidden" name="news_index" value="{$mats_list.news_index}" />

						 标题:

							<input type="text" name="mats_title" value="{$mats_list.news_content.title}"   class="col-xs-10 col-sm-6" />

						 作者:

							<input type="text" name="mats_author" value="{$mats_list.news_content.author}"   class="col-xs-10 col-sm-6" />

						 摘要:

							<input type="text" name="mats_digest" value="{$mats_list.news_content.digest}"   class="col-xs-10 col-sm-6" />

						 内容:

							<textarea name="mats_content" rows="100%" style="width:100%" id="myEditor">{$mats_list.news_content.content}</textarea>

						 跳转地址:

							<input type="text" name="mats_content_source_url" value="{$mats_list.news_content.content_source_url}"   class="col-xs-10 col-sm-6" />

						 缩略图素材ID:

							<input type="text" name="mats_thumb_media_id" value="{$mats_list.news_content.thumb_media_id}"   class="col-xs-10 col-sm-6" />

						 是否显示封面:

							<input name='mats_show_cover_pic' {if condition="$mats_list.news_content.show_cover_pic eq 1"}checked{/if}  value='1' class='ace ace-switch ace-switch-4 btn-flat' type='checkbox' />
							  默认不显示

							<button class="btn btn-info" type="submit">

								保存
							</button>

							<button class="btn" type="reset">

								重置
							</button>

			</form>

{/block}
{block name="scripts"}

{/block}


text:
<?xml version="1.0" encoding="UTF-8"?>
<Tokens version="1.0">
	<File path="Classes/S3CommonPrefixesUnmarshaller.html">

		<Token>
			<TokenIdentifier>//apple_ref/occ/cl/S3CommonPrefixesUnmarshaller</TokenIdentifier>
			<Abstract type="html"></Abstract>
			<DeclaredIn>S3CommonPrefixesUnmarshaller.h</DeclaredIn>

			<NodeRef refid="993"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/S3CommonPrefixesUnmarshaller/setCommonPrefixes:</TokenIdentifier>
			<Abstract type="html">The Common Prefixes represented by the XML</Abstract>
			<DeclaredIn>S3CommonPrefixesUnmarshaller.h</DeclaredIn>

			<Declaration>@property (nonatomic, readonly) NSMutableArray *commonPrefixes</Declaration>

			<Anchor>//api/name/commonPrefixes</Anchor>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instp/S3CommonPrefixesUnmarshaller/commonPrefixes</TokenIdentifier>
			<Abstract type="html">The Common Prefixes represented by the XML</Abstract>
			<DeclaredIn>S3CommonPrefixesUnmarshaller.h</DeclaredIn>

			<Declaration>@property (nonatomic, readonly) NSMutableArray *commonPrefixes</Declaration>

			<Anchor>//api/name/commonPrefixes</Anchor>
		</Token>

	</File>
</Tokens>


text:
<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Makina Corpus - Torque</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <link rel="icon" type="image/x-icon" href="favicon.png" />
  <link rel="icon" type="image/png" href="favicon.png" />

  <link rel="stylesheet" href="http://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/themes/css/cartodb.css" />
  <link rel="stylesheet" href="css/slides.css" />

    Title
    Makina Corpus


text:
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Input;
using Caliburn.Micro.Contrib.Dialogs;
using WPF.Themes;

namespace Caliburn.Micro.Contrib.Demo
{
    [Export]
    public partial class ShellView : Window, IBusyIndicator
    {
        public ShellView()
        {
            InitializeComponent();
        }

        public void Busy(string message)
        {
            BusyIndicator.BusyContent = message;
            BusyIndicator.IsBusy = true;
        }

        public void Idle()
        {
            BusyIndicator.IsBusy = false;
        }

        private void DragMoveWindow(object sender, MouseButtonEventArgs e)
        {
            if (e.RightButton != MouseButtonState.Pressed && e.MiddleButton != MouseButtonState.Pressed && e.LeftButton == MouseButtonState.Pressed)
            {
                if (WindowState == WindowState.Maximized)
                {
                    // Calcualting correct left coordinate for multi-screen system.
                    double mouseX = PointToScreen(Mouse.GetPosition(this)).X;
                    double width = RestoreBounds.Width;
                    double left = mouseX - width / 2;

                    // Aligning window's position to fit the screen.
                    double virtualScreenWidth = SystemParameters.VirtualScreenWidth;
                    left = left < 0 ? 0 : left;
                    left = left + width > virtualScreenWidth ? virtualScreenWidth - width : left;

                    Top = 0;
                    Left = left;

                    // Restore window to normal state.
                    WindowState = WindowState.Normal;

                }

                DragMove();
            }
            if (e.ClickCount != 2)
                return;

            WindowState = WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized;
        }

        private void ButtonMinimiseOnClick(object sender, RoutedEventArgs e)
        {
            WindowState = WindowState.Minimized;
        }

        private void ButtonMaxRestoreOnClick(object sender, RoutedEventArgs e)
        {
            WindowState = WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized;
        }

        protected override void OnStateChanged(System.EventArgs e)
        {
            RefreshMaximiseIconState();
            base.OnStateChanged(e);
        }

        private void RefreshMaximiseIconState()
        {
            if (WindowState == WindowState.Normal)
            {
                maxRestore.Content = "1";
                maxRestore.SetResourceReference(ToolTipProperty, "WindowCommandsMaximiseToolTip");
            }
            else
            {
                maxRestore.Content = "2";
                maxRestore.SetResourceReference(ToolTipProperty, "WindowCommandsRestoreToolTip");
            }
        }

        private void WindowDragOver(object sender, DragEventArgs e)
        {
            bool isFileDrop = e.Data.GetDataPresent(DataFormats.FileDrop);
            e.Effects = isFileDrop ? DragDropEffects.Move : DragDropEffects.None;
            e.Handled = true;
        }
    }
}


text:
namespace browser_sync {

using browser_sync::SyncProtocolError;

JsSyncManagerObserver::JsSyncManagerObserver() {}

JsSyncManagerObserver::~JsSyncManagerObserver() {}

void JsSyncManagerObserver::SetJsEventHandler(
    const WeakHandle<JsEventHandler>& event_handler) {
  event_handler_ = event_handler;
}

void JsSyncManagerObserver::OnSyncCycleCompleted(
    const sessions::SyncSessionSnapshot& snapshot) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  details.Set("snapshot", snapshot.ToValue());
  HandleJsEvent(FROM_HERE, "onSyncCycleCompleted", JsEventDetails(&details));
}

void JsSyncManagerObserver::OnConnectionStatusChange(
    sync_api::ConnectionStatus status) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  details.SetString("status", sync_api::ConnectionStatusToString(status));
  HandleJsEvent(FROM_HERE,
                "onConnectionStatusChange", JsEventDetails(&details));
}

void JsSyncManagerObserver::OnUpdatedToken(const std::string& token) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  details.SetString("token", "<redacted>");
  HandleJsEvent(FROM_HERE, "onUpdatedToken", JsEventDetails(&details));
}

void JsSyncManagerObserver::OnPassphraseRequired(
    sync_api::PassphraseRequiredReason reason,
    const sync_pb::EncryptedData& pending_keys) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  details.SetString("reason",
                     sync_api::PassphraseRequiredReasonToString(reason));
  HandleJsEvent(FROM_HERE, "onPassphraseRequired", JsEventDetails(&details));
}

void JsSyncManagerObserver::OnPassphraseAccepted() {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  HandleJsEvent(FROM_HERE, "onPassphraseAccepted", JsEventDetails(&details));
}

void JsSyncManagerObserver::OnBootstrapTokenUpdated(
    const std::string& boostrap_token) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  details.SetString("bootstrapToken", "<redacted>");
  HandleJsEvent(FROM_HERE, "OnBootstrapTokenUpdated", JsEventDetails(&details));
}

void JsSyncManagerObserver::OnEncryptedTypesChanged(
    syncable::ModelTypeSet encrypted_types,
    bool encrypt_everything) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  details.Set("encryptedTypes",
               syncable::ModelTypeSetToValue(encrypted_types));
  details.SetBoolean("encryptEverything", encrypt_everything);
  HandleJsEvent(FROM_HERE,
                "onEncryptedTypesChanged", JsEventDetails(&details));
}

void JsSyncManagerObserver::OnEncryptionComplete() {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  HandleJsEvent(FROM_HERE, "onEncryptionComplete", JsEventDetails());
}

void JsSyncManagerObserver::OnActionableError(
    const SyncProtocolError& sync_error) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  DictionaryValue details;
  details.Set("syncError",  sync_error.ToValue());
  HandleJsEvent(FROM_HERE, "onActionableError",
                JsEventDetails(&details));
}

void JsSyncManagerObserver::OnInitializationComplete(
    const WeakHandle<JsBackend>& js_backend,
    bool success) {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  // Ignore the |js_backend| argument; it's not really convertible to
  // JSON anyway.
  HandleJsEvent(FROM_HERE, "onInitializationComplete", JsEventDetails());
}

void JsSyncManagerObserver::OnStopSyncingPermanently() {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  HandleJsEvent(FROM_HERE, "onStopSyncingPermanently", JsEventDetails());
}

void JsSyncManagerObserver::OnClearServerDataSucceeded() {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  HandleJsEvent(FROM_HERE, "onClearServerDataSucceeded", JsEventDetails());
}

void JsSyncManagerObserver::OnClearServerDataFailed() {
  if (!event_handler_.IsInitialized()) {
    return;
  }
  HandleJsEvent(FROM_HERE, "onClearServerDataFailed", JsEventDetails());
}

void JsSyncManagerObserver::HandleJsEvent(
    const tracked_objects::Location& from_here,
    const std::string& name, const JsEventDetails& details) {
  if (!event_handler_.IsInitialized()) {
    NOTREACHED();
    return;
  }
  event_handler_.Call(from_here,
                      &JsEventHandler::HandleJsEvent, name, details);
}

}  // namespace browser_sync


text:
flair++
=======

.. toctree::
   :maxdepth: 4

   getting_started
   base
   plotting
   plugins
   reader
   utils


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 com.communote.server.widgets (Communote 3.5 API)</title>
<meta name="date" content="2019-02-02">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Uses of Package
com.communote.server.widgets

Packages that use com.communote.server.widgets

Package
Description

com.communote.server.web.fe.widgets

com.communote.server.web.fe.widgets.admin.application.logging

com.communote.server.web.fe.widgets.admin.client.security

com.communote.server.web.fe.widgets.blog

com.communote.server.web.fe.widgets.clouds

com.communote.server.web.fe.widgets.controls

com.communote.server.web.fe.widgets.extension

com.communote.server.web.fe.widgets.image

com.communote.server.web.fe.widgets.management.localization

com.communote.server.web.fe.widgets.management.security.iprange

com.communote.server.web.fe.widgets.management.system.application

com.communote.server.web.fe.widgets.management.user

com.communote.server.web.fe.widgets.management.user.group

com.communote.server.web.fe.widgets.message

com.communote.server.web.fe.widgets.navigation

com.communote.server.web.fe.widgets.tag

com.communote.server.web.fe.widgets.type

com.communote.server.web.fe.widgets.user

com.communote.server.web.fe.widgets.user.profile

com.communote.server.web.fe.widgets.users

com.communote.server.widgets

com.communote.server.widgets.annotations

com.communote.server.widgets.jsf

com.communote.server.widgets.springmvc

com.communote.server.widgets.util

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.admin.application.logging

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.admin.client.security

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.blog

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

EmptyWidget

An empty widget for widgets with no functionality, just displaying functionality

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.clouds

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.controls

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.extension

Class and Description

SimpleWidgetFactory

Factory that uses reflection to create widget instances.

Widget

A widget

WidgetCreationException

Exception to be thrown when a Widget cannot be created by a WidgetFactory

WidgetFactory

Factory for creating a Widget instance for a given widget group name and widget type
 name.

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.image

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.management.localization

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.management.security.iprange

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.management.system.application

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.management.user

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

EmptyWidget

An empty widget for widgets with no functionality, just displaying functionality

FormWidget

Simple widget that differentiates between submits and refreshs.

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.management.user.group

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

EmptyWidget

An empty widget for widgets with no functionality, just displaying functionality

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.message

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.navigation

Class and Description

AbstractWidget

abstract implementation of the widget interface

EmptyWidget

An empty widget for widgets with no functionality, just displaying functionality

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.tag

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.type

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.user

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

EmptyWidget

An empty widget for widgets with no functionality, just displaying functionality

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.user.profile

Class and Description

AbstractWidget

abstract implementation of the widget interface

EmptyWidget

An empty widget for widgets with no functionality, just displaying functionality

FormWidget

Simple widget that differentiates between submits and refreshs.

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.web.fe.widgets.users

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.widgets

Class and Description

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

WidgetController

Controller for widget requests.

 The controller creates a new Widget instance which will be invoked to handle the request.

WidgetCreationException

Exception to be thrown when a Widget cannot be created by a WidgetFactory

WidgetFactory

Factory for creating a Widget instance for a given widget group name and widget type
 name.

Classes in com.communote.server.widgets used by com.communote.server.widgets.annotations

Class and Description

AbstractMultipleResultWidget

Abstract widget to be used by Widgets which only return a multiple result

AbstractWidget

abstract implementation of the widget interface

Widget

A widget

Classes in com.communote.server.widgets used by com.communote.server.widgets.jsf

Class and Description

SimpleWidgetController

Simple implementation of the WidgetController that returns a string which identifies the view and
 stores the details for rendering the view as attributes in the request.

WidgetController

Controller for widget requests.

 The controller creates a new Widget instance which will be invoked to handle the request.

Classes in com.communote.server.widgets used by com.communote.server.widgets.springmvc

Class and Description

AbstractWidget

abstract implementation of the widget interface

FormWidget

Simple widget that differentiates between submits and refreshs.

Widget

A widget

WidgetController

Controller for widget requests.

 The controller creates a new Widget instance which will be invoked to handle the request.

Classes in com.communote.server.widgets used by com.communote.server.widgets.util

Class and Description

Widget

A widget

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Copyright © 2019 Communote team. All rights reserved.


text:
@implementation JegarnConvertUtil

+ (NSData *)intToBinaryString:(NSInteger)value {
    Byte bytes[] = {
            (Byte) value >> 24,
            (Byte) value >> 16,
            (Byte) value >> 8,
            (Byte) value,
    };

    return [[NSData alloc] initWithBytes:bytes length:4];
}

+ (NSInteger)binaryStringToInt:(NSData *)data {
    NSInteger value = -1;
    if ([data length] == 4) {
        Byte *bytes = (Byte *) [data bytes];
        value = (bytes[0] << 24) | ((bytes[1] & 0xff) << 16) | ((bytes[2] & 0xff) << 8) | (bytes[3] & 0xff);
    }
    return value;
}

+ (NSString *)idToString:(id)input {
    if ([input isKindOfClass:[NSNumber class]]) {
        return [NSNumberFormatter localizedStringFromNumber:input numberStyle:NSNumberFormatterNoStyle];
    } else {
        return (NSString *) input;
    }
}

@end


text:
import React, { Component } from 'react'
import SiteIndex from '../components/SiteIndex'
import HoneycombURL from '../modules/HoneycombURL'

class SiteIndexPage extends Component {
  render () {
    return (
      <SiteIndex collections={HoneycombURL() + '/v1/collections/'} />
    )
  }
}

export default SiteIndexPage


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>nucleo-dynamixel: HAL SAI Aliased Macros maintained for legacy purpose</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="navtree.css" rel="stylesheet" type="text/css"/>

<link href="search/search.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />

nucleo-dynamixel
    0.0.1

A library for controlling dynamixel servomotors, designed for nucleo stm32

Main Page

Related Pages

Modules

Classes

Files

          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>

Macros

HAL SAI Aliased Macros maintained for legacy purpose

Macros

#define 	SAI_OUTPUTDRIVE_DISABLED   SAI_OUTPUTDRIVE_DISABLE

#define 	SAI_OUTPUTDRIVE_ENABLED   SAI_OUTPUTDRIVE_ENABLE

#define 	SAI_MASTERDIVIDER_ENABLED   SAI_MASTERDIVIDER_ENABLE

#define 	SAI_MASTERDIVIDER_DISABLED   SAI_MASTERDIVIDER_DISABLE

#define 	SAI_STREOMODE   SAI_STEREOMODE

#define 	SAI_FIFOStatus_Empty   SAI_FIFOSTATUS_EMPTY

#define 	SAI_FIFOStatus_Less1QuarterFull   SAI_FIFOSTATUS_LESS1QUARTERFULL

#define 	SAI_FIFOStatus_1QuarterFull   SAI_FIFOSTATUS_1QUARTERFULL

#define 	SAI_FIFOStatus_HalfFull   SAI_FIFOSTATUS_HALFFULL

#define 	SAI_FIFOStatus_3QuartersFull   SAI_FIFOSTATUS_3QUARTERFULL

#define 	SAI_FIFOStatus_Full   SAI_FIFOSTATUS_FULL

#define 	IS_SAI_BLOCK_MONO_STREO_MODE   IS_SAI_BLOCK_MONO_STEREO_MODE

Detailed Description

Generated by

     1.8.11