text:
<?php

namespace Oro\Bundle\SegmentBundle\Tests\Functional;

use Oro\Bundle\DataGridBundle\Async\Topics;
use Oro\Bundle\MessageQueueBundle\Test\Functional\MessageQueueExtension;
use Oro\Bundle\SegmentBundle\Entity\Segment;
use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase;
use Symfony\Component\DomCrawler\Form;

class ControllersTest extends WebTestCase
{
    use MessageQueueExtension;

    protected function setUp()
    {
        $this->initClient(
            [],
            $this->generateBasicAuthHeader()
        );
        $this->client->useHashNavigation(true);
    }

    public function testIndex()
    {
        $crawler = $this->client->request('GET', $this->getUrl('oro_segment_index'));
        $result = $this->client->getResponse();
        $this->assertHtmlResponseStatusCodeEquals($result, 200);
        $this->assertEquals('Manage Segments - Reports & Segments', $crawler->filter('#page-title')->html());
    }

    /**
     * @param array $report
     * @dataProvider segmentsDataProvider
     */
    public function testCreate(array $report)
    {
        $crawler = $this->client->request('GET', $this->getUrl('oro_segment_create'));
        /** @var Form $form */
        $form = $crawler->selectButton('Save and Close')->form();

        $form = $this->fillForm($form, $report);

        $this->client->followRedirects(true);
        $crawler = $this->client->submit($form);

        $result = $this->client->getResponse();
        static::assertHtmlResponseStatusCodeEquals($result, 200);
        static::assertContains('Segment saved', $crawler->html());
    }

    /**
     * @depends testCreate
     * @dataProvider segmentsDataProvider
     */
    public function testView(array $report, array $reportResult)
    {
        $response = $this->client->requestGrid(
            'oro_segments-grid',
            ['oro_segments-grid[_filter][name][value]' => $report['oro_segment_form[name]'], ]
        );

        $result = $this->getJsonResponseContent($response, 200);
        $result = reset($result['data']);
        $id = $result['id'];
        $this->client->request('GET', $this->getUrl('oro_segment_view', ['id' => $id]));
        $result = $this->client->getResponse();
        $this->assertHtmlResponseStatusCodeEquals($result, 200);

        if ($report['oro_segment_form[type]'] == 'static') {
            $this->ajaxRequest(
                'POST',
                $this->getUrl('oro_api_post_segment_run', ['id' => $id])
            );
            $result = $this->client->getResponse();
            $this->assertEmptyResponseStatusCodeEquals($result, 204);
        }

        $response = $this->client->requestGrid(Segment::GRID_PREFIX . $id);

        $result = $this->getJsonResponseContent($response, 200);
        $data = $result['data'];
        $options = $result['options'];
        $this->addOroDefaultPrefixToUrlInParameterArray($reportResult, 'view_link');
        $this->verifyReport($reportResult, $data, $options['totalRecords']);
    }

    /**
     * @param array $report
     * @param array $reportResult
     * @depends testView
     * @dataProvider segmentsDataProvider
     */
    public function testUpdate(array $report, array $reportResult)
    {
        $response = $this->client->requestGrid(
            'oro_segments-grid',
            ['oro_segments-grid[_filter][name][value]' => $report['oro_segment_form[name]']]
        );

        $result = $this->getJsonResponseContent($response, 200);
        $result = reset($result['data']);
        $id = $result['id'];

        $crawler = $this->client->request('GET', $this->getUrl('oro_segment_update', ['id' => $id]));
        /** @var Form $form */
        $form = $crawler->selectButton('Save and Close')->form();
        $report['oro_segment_form[name]'] .= '_updated';
        $form = $this->fillForm($form, $report);

        $this->client->followRedirects(true);
        $crawler = $this->client->submit($form);

        $result = $this->client->getResponse();
        $this->assertHtmlResponseStatusCodeEquals($result, 200);
        $this->assertContains("Segment saved", $crawler->html());

        if ($report['oro_segment_form[type]'] == 'static') {
            $this->ajaxRequest(
                'POST',
                $this->getUrl('oro_api_post_segment_run', ['id' => $id])
            );
            $result = $this->client->getResponse();
            $this->assertEmptyResponseStatusCodeEquals($result, 204);
        }

        $response = $response = $this->client->requestGrid(Segment::GRID_PREFIX . $id);

        $result = $this->getJsonResponseContent($response, 200);
        $data = $result['data'];
        $options = $result['options'];
        $this->addOroDefaultPrefixToUrlInParameterArray($reportResult, 'view_link');
        $this->verifyReport($reportResult, $data, (int)$options['totalRecords']);
    }

    public function testExport()
    {
        $response = $this->client->requestGrid(
            'oro_segments-grid',
            ['oro_segments-grid[_filter][name][value]' => 'Users Filterd Dynamic_updated']
        );

        $result = $this->getJsonResponseContent($response, 200);
        $result = reset($result['data']);
        $id = $result['id'];

        $keys = ['oro_segment_grid_$id[_filter][c1][value]', 'oro_segment_grid_$id[_filter][c1][type]'];
        $filter = ['321admin123', 1];
        $keys = str_replace('$id', $id, $keys);
        $filter = array_combine($keys, $filter);

        $this->client->request(
            'GET',
            $this->getUrl(
                'oro_datagrid_export_action',
                array_merge(
                    ['gridName' => Segment::GRID_PREFIX . $id, 'format' => 'csv'],
                    $filter
                )
            ),
            [],
            [],
            $this->generateNoHashNavigationHeader()
        );

        $response = $this->getJsonResponseContent($this->client->getResponse(), 200);
        $this->assertCount(1, $response);
        $this->assertTrue($response['successful']);

        $this->assertMessageSent(
            Topics::PRE_EXPORT,
            [
                'format' => 'csv',
                'parameters' => [
                    'gridName' => 'oro_segment_grid_' . $id,
                    'gridParameters' => [
                        '_filter' => [
                            'c1' => [
                                'value' => '321admin123',
                                'type' => '1'
                            ],
                        ],
                    ],
                    'format_type' => 'excel'
                ],
                'notificationTemplate' => 'datagrid_export_result',
            ]
        );
    }

    /**
     * @param array $report
     * @depends testView
     * @dataProvider segmentsDataProvider
     */
    public function testDelete(array $report)
    {
        $response = $this->client->requestGrid(
            'oro_segments-grid',
            ['oro_segments-grid[_filter][name][value]' => $report['oro_segment_form[name]'] . '_updated']
        );

        $result = $this->getJsonResponseContent($response, 200);
        $result = reset($result['data']);
        $id = $result['id'];

        $this->ajaxRequest(
            'DELETE',
            $this->getUrl('oro_api_delete_segment', ['id' => $id])
        );

        $result = $this->client->getResponse();
        $this->assertEmptyResponseStatusCodeEquals($result, 204);

        $this->client->request('GET', $this->getUrl('oro_segment_update', ['id' => $id]));

        $result = $this->client->getResponse();
        $this->assertHtmlResponseStatusCodeEquals($result, 404);
    }

    /**
     * Data provider for SOAP API tests
     *
     * @return array
     */
    public function segmentsDataProvider()
    {
        return $this->getApiRequestsData(__DIR__ . DIRECTORY_SEPARATOR . 'reports');
    }

    /**
     * @param Form $form
     * @param array $fields
     *
     * @return Form $form
     */
    protected function fillForm($form, $fields)
    {
        foreach ($fields as $fieldName => $value) {
            $form[$fieldName] = $value;
        }

        return $form;
    }

    /**
     * @param $expected
     * @param $actual
     * @param $totalCount
     *
     * @return bool
     */
    protected function verifyReport($expected, $actual, $totalCount)
    {
        $this->assertEquals(count($expected), $totalCount);
        for ($i = 0; $i < $totalCount; $i++) {
            // unset datagrid system info
            unset($actual[$i]['action_configuration']);
            //compare by value
            $this->assertEquals(array_values($expected[$i]), array_values($actual[$i]));
        }
        return true;
    }
}


text:
package ch.wsl.box.services.mail_dispatcher

import java.util.UUID

import ch.wsl.box.services.mail.Mail

object Messages {
  case object CheckNow
  case class SendMails(mails:List[(UUID,Mail)])
}

redpajama_set_name: RedPajamaGithub


text:
<?php
namespace Main\DataImportBundle\Entity;

use HireVoice\Neo4j\Annotation as OGM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * All entity classes must be declared as such.
 *
 * @OGM\Entity
 */
class LegalCase
{
    /**
     * The internal node ID from Neo4j must be stored. Thus an Auto field is required
     * @OGM\Auto
     */
    protected $id;

     /**
     * @OGM\Property
     * @OGM\Index
     */
    protected $caseNumber;

    /**
     * @OGM\Property
     */
    protected $disposition;

      /**
     * @OGM\ManyToMany(relation="DEFENDING_ATTORNEY")
     */
    protected $defenders;

    /**
     * @OGM\ManyToMany(relation="PROSECUTING_ATTORNEY")
     */
    protected $prosecutors;

    function __construct()
    {
        $this->defenders = new ArrayCollection;
        $this->prosecutors = new ArrayCollection;
    }

    /* Add your accessors here */

    public function getId()
    {
        return $this->id;
    }

    function setCaseNumber($caseNumber)
    {

        return $this->caseNumber= $caseNumber;

    }

    function getCaseNumber()
    {

        return $this->caseNumber;

    }

     function getDisposition()
    {
        return $this->disposition;
    }

     function setDisposition($disposition)
    {

        $this->disposition = $disposition;

    }

    function addDefender(\Main\DataImportBundle\Entity\Lawyer $lawyer)
    {

        return $this->defenders[] = $lawyer;

    }

    function getDefenders()
    {
        return $this->defenders;
    }

     function addProsecutor(\Main\DataImportBundle\Entity\Lawyer $lawyer)
    {

        return $this->prosecutors[] = $lawyer;

    }

    function getProsecutors()
    {
        return $this->prosecutors;
    }

}


text:
package twigkit.app.auth;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.DefaultRedirectStrategy;
import org.springframework.security.web.RedirectStrategy;
import org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint;
import twigkit.util.ESAPIEncoder;
import twigkit.util.Encoder;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Redirect users to fusion admin login when trying to access a setup url (eg. /apps/<app-name>/setup)
 *
 * @author bjarkih
 * @author KieranDotCo
 */
public class SetupAuthenticationRedirectEntryPoint extends LoginUrlAuthenticationEntryPoint {

    private static final Logger logger = LoggerFactory.getLogger(SetupAuthenticationRedirectEntryPoint.class);

    private Encoder encoder;

    public static final String REDIRECT_PARAM = "return";
    public static final String PORT = "8764";

    public SetupAuthenticationRedirectEntryPoint(String loginFormUrl) {
        super(loginFormUrl);
        this.encoder = new ESAPIEncoder();
    }

    @Override
    public void commence(HttpServletRequest request, HttpServletResponse response,
            AuthenticationException authenticationException) throws IOException, ServletException {
        RedirectStrategy redirectStrategy = new DefaultRedirectStrategy();

        final String requestUri = request.getRequestURI();

        final String redirectUrl = new StringBuffer(request.getScheme()).append("://")
            .append(request.getServerName()).append(":")
            .append(PORT)
            .append(getLoginFormUrl())
            .append('?').append(REDIRECT_PARAM).append('=').append(encoder.encodeForURL(requestUri))
            .toString();

        logger.debug("Redirecting user to signin URL {}", redirectUrl);

        redirectStrategy.sendRedirect(request, response, redirectUrl);
    }
}


text:
@interface MainViewVC : UITableViewController<UITabBarControllerDelegate>{
  INNControllerContext *colorContext;
  INNControllerContext *sizeContext;
  INNControllerContext *workflowContext;
  INNControllerContext *sharedTabContext;
  QuantityContext *quantityContext;
  UIColor *color;
  NSString *size;
  NSString *workflowColor;
  NSString *workflowSize;
  NSString *tabSelected;
  NSInteger quantity;
}

@end


text:
(function (enyo, scope) {

	/**
	* Fires when a response is received. Event data contains the returned response. The `originator`
	* property will contain the calling enyo.ServiceRequest.
	*
	* @event enyo.LunaService#event:onResponse
	* @type {Object}
	* @public
	*/

	/**
	* Fires when an error is received. Event data contains the error data. The `originator` property
	* will contain the calling enyo.ServiceRequest.
	*
	* @event enyo.LunaService#event:onError
	* @type {Object}
	* @public
	*/

	/**
	* Fires when a service request is complete (regardless of success or failure). Event data
	* contains the response data and/or error data. The `originator` property will contain the
	* calling enyo.ServiceRequest.
	*
	* @event enyo.LunaService#event:onComplete
	* @type {Object}
	* @public
	*/

	/**
	* _enyo.LunaService_ is a component similar to {@link enyo.WebService}, but for
	* LS2 service requests.
	*
	* Internally it generates new {@link enyo.ServiceRequest} for each
	* `[send()]{@link enyo.LunaService#send}` call, keeping track of each request made and sending
	* out resulting events as they occur. This allows for multiple concurrent request calls to be
	* sent without any potential overlap or gc issues.
	*
	* @class enyo.LunaService
	* @extends enyo.Component
	* @public
	*/
	enyo.kind(
		/** @lends enyo.LunaService.prototype */ {

		/**
		* @private
		*/
		name: 'enyo.LunaService',

		/**
		* @private
		*/
		kind: 'enyo.Component',

		/**
		* @lends enyo.LunaService.prototype
		* @private
		*/
		published: {

			/**
			* Luna service URI.  Starts with luna://
			*
			* @type {String}
			* @default ''
			* @public
			*/
			service: '',

			/**
			* Service method you want to call
			*
			* @type {String}
			* @default ''
			* @public
			*/
			method: '',

			/**
			* Whether or not the request to subscribe to the service
			*
			* @type {Boolean}
			* @default false
			* @public
			*/
			subscribe: false,

			/**
			* Whether or not the request should resubscribe when an error is returned
			*
			* @type {Boolean}
			* @default false
			* @public
			*/
			resubscribe: false,

			/**
			* The number of milliseconds to wait before failing with a _timeout_ error. This only
			* takes effect for non-zero values.
			*
			* @type {Number}
			* @default 0
			* @public
			*/
			timeout: 0
		},

		/**
		* If true, {@link enyo.MockRequest} will be used in place of {@link enyo.ServiceRequest}
		*
		* @type {Boolean}
		* @default false
		* @public
		*/
		mock: false,

		/**
		* Optionally specify the json file to read for mock results, rather than autogenerating the
		* filepath
		*
		* @type {String}
		* @default `undefined`
		* @public
		*/
		mockFile: undefined,

		/**
		* @private
		*/
		events: {
			onResponse: '',
			onError: '',
			onComplete: ''
		},

		/**
		* Needed for referencing to enyo.PalmService for compatability
		*
		* @private
		*/
		noDefer: true,

		/**
		* @private
		*/
		create: function () {
			this.inherited(arguments);
			this.activeRequests = [];
			this.activeSubscriptionRequests = [];
		},

		/**
		* Sends a webOS service request with the passed-in parameters, returning the associated
		* {@link enyo.ServiceRequest} instance.
		*
		* @param {Object} params - Hash of parameters for the request
		* @return {enyo.ServiceRequest}
		* @public
		*/
		send: function (params) {
			params = params || {};
			var request = this.createComponent({
				kind: ((this.mock) ? 'enyo.MockRequest' : 'enyo.ServiceRequest'),
				service: this.service,
				method: this.method,
				subscribe: this.subscribe,
				resubscribe: this.resubscribe,
				timeout: this.timeout
			});
			if(this.mock && this.mockFile) {
				request.mockFile = this.mockFile;
			}
			request.originalCancel = request.cancel;
			request.cancel = enyo.bind(this, 'cancel', request);
			request.response(this, 'requestSuccess');
			request.error(this, 'requestFailure');
			if(this.subscribe && !this.mock) {
				this.activeSubscriptionRequests.push(request);
			} else {
				this.activeRequests.push(request);
			}
			request.go(params);
			return request;
		},

		/**
		* Cancels a given request.  The equivalent of
		* `[request.cancel()]{@link enyo.ServiceRequest#cancel}`
		*
		* @param {enyo.ServiceRequest} request - Request to cancel
		* @public
		*/
		cancel: function (request) {
			this.removeRequest(request);
			request.originalCancel();
		},

		/**
		* Removes the request from the active request arrays
		*
		* @param {enyo.ServiceRequest} reuqest - Request to remove
		* @private
		*/
		removeRequest: function (request) {
			var i = -1;
			i = this.activeRequests.indexOf(request);
			if (i !== -1) {
				this.activeRequests.splice(i, 1);
			} else {
				i = this.activeSubscriptionRequests.indexOf(request);
				if (i !== -1) {
					this.activeSubscriptionRequests.splice(i, 1);
				}
			}
		},

		/**
		* @fires enyo.LunaService#event:onResponse
		* @private
		*/
		requestSuccess: function (request, response) {
			response.originator = request;
			this.doResponse(response);
			this.requestComplete(request, response);
		},

		/**
		* @fires enyo.LunaService#event:onError
		* @private
		*/
		requestFailure: function (request, error) {
			error.originator = request;
			this.doError(error);
			this.requestComplete(request, error);
		},

		/**
		* @fires enyo.LunaService#event:onComplete
		* @private
		*/
		requestComplete: function (request, data) {
			var i = -1;
			i = this.activeRequests.indexOf(request);
			if (i !== -1) {
				this.activeRequests.splice(i, 1);
			}
			this.doComplete(data);
		},

		/**
		* Cancels any active requests
		*
		* @see enyo.Object#destroy
		* @private
		*/
		destroy: function () {
			var i;
			for(i=0; i<this.activeRequests.length; i++) {
				this.activeRequests[i].originalCancel();
			}
			delete this.activeRequests;

			for(i=0; i<this.activeSubscriptionRequests.length; i++) {
				this.activeSubscriptionRequests[i].originalCancel();
			}
			delete this.activeSubscriptionRequests;
			this.inherited(arguments);
		}
	});
	enyo.PalmService = enyo.LunaService;

})(enyo, this);


text:
package com.mrprona.brawlassistant.hero.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;

import com.mrprona.brawlassistant.R;
import com.mrprona.brawlassistant.base.adapter.BaseRecyclerAdapter;
import com.mrprona.brawlassistant.base.util.SteamUtils;
import com.mrprona.brawlassistant.hero.adapter.holder.HeroHolder;
import com.bumptech.glide.Glide;
import com.mrprona.brawlassistant.hero.api.Hero;

import java.util.ArrayList;
import java.util.List;

/**
 * User: ABadretdinov
 * Date: 29.08.13
 * Time: 12:25
 */
public class HeroesAdapter extends BaseRecyclerAdapter<Hero, HeroHolder> implements Filterable {
    private List<Hero> filtered;
    private Context mContext;

    public HeroesAdapter(List<Hero> heroes, Context current) {
        super(heroes);
        filtered = mData;
        this.mContext = current;
    }

    @Override
    public int getItemCount() {
        return filtered.size();
    }

    @Override
    public Hero getItem(int position) {
        return filtered.get(position);
    }

    @Override
    public HeroHolder onCreateViewHolder(ViewGroup parent, int position) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.hero_row, parent, false);
        return new HeroHolder(view, mOnItemClickListener);
    }

    @Override
    public void onBindViewHolder(HeroHolder holder, int position) {
        Hero hero = getItem(position);
        holder.name.setText(hero.getLocalizedName());
        final int sdk = android.os.Build.VERSION.SDK_INT;

        String type = hero.getTier();

        if (sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) {
            if (type.equalsIgnoreCase("common")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.common_character));
            } else if (type.equalsIgnoreCase("rare")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.rare));
            } else if (type.equalsIgnoreCase("epic")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.epic));
            } else if (type.equalsIgnoreCase("legendary")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.legendary));
            }
        } else {
            if (type.equalsIgnoreCase("common")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.common_character));
            } else if (type.equalsIgnoreCase("rare")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.rare));
            } else if (type.equalsIgnoreCase("epic")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.epic));
            } else if (type.equalsIgnoreCase("legendary")) {
                holder.heroType.setImageDrawable(mContext.getResources().getDrawable(R.drawable.legendary));
            }
        }

        Context context = holder.name.getContext();
        Glide.with(context).load(SteamUtils.getHeroFullImage(hero.getDotaId())).into(holder.image);
    }

    @Override
    public Filter getFilter() {
        return new Filter() {
            @Override
            protected FilterResults performFiltering(CharSequence constraint) {
                FilterResults filterResults = new FilterResults();
                List<Hero> filteredHeroes = new ArrayList<Hero>();
                if (constraint == null) {
                    filterResults.values = mData;
                    filterResults.count = mData.size();
                    return filterResults;
                }
                String lowerConstr = constraint.toString().toLowerCase();
                for (Hero hero : mData) {
                    if (hero.getLocalizedName().toLowerCase().contains(lowerConstr) || hero.getName().toLowerCase().contains(lowerConstr)) {
                        filteredHeroes.add(hero);
                    }
                }
                filterResults.count = filteredHeroes.size();
                filterResults.values = filteredHeroes;
                return filterResults;
            }

            @Override
            @SuppressWarnings("unchecked")
            protected void publishResults(CharSequence constraint, FilterResults results) {
                filtered = (ArrayList<Hero>) results.values;
                if (filtered == null) {
                    filtered = new ArrayList<Hero>();
                }
                notifyDataSetChanged();
            }
        };
    }
}


text:
package de.plushnikov.refactor;

import lombok.Getter;
import lombok.Setter;
import lombok.Builder;

@Builder
@Getter
@Setter
public class RenameBuilderClass {
  private int intFielda;

  public static void main(String[] args) {
    RenameBuilderClass builderClass1 = new RenameBuilderClass(2);
    builderClass1.getIntFielda();

    RenameBuilderClass builderClass = RenameBuilderClass.builder().intFielda(123).build();
    System.out.println(builderClass);
  }
}


text:
class Match < ApplicationRecord
  belongs_to :user_a, class_name: 'User'
  belongs_to :user_b, class_name: 'User'
  belongs_to :league

  scope :future, -> { where(result: nil) }
  scope :past, -> { where.not(result: nil) }
  scope :by_user, -> (user_id) { where('user_a_id = ? OR user_b_id = ?', user_id, user_id) }
  scope :user_a_won, -> { where(result: 'user_a_won') }
  scope :user_b_won, -> { where(result: 'user_b_won') }
  scope :user_a_lost, -> { where(result: 'user_b_won') }
  scope :user_b_lost, -> { where(result: 'user_a_won') }

  def complete(user_a_sets_won, user_b_sets_won)
    self.user_a_sets_won = user_a_sets_won
    self.user_b_sets_won = user_b_sets_won
    if self.user_a_sets_won.blank? || self.user_b_sets_won.blank?
      errors.add(:base, 'Result is required')
      return
    end

    if user_a_sets_won == user_b_sets_won
      errors.add(:base, 'Draws are not allowed')
      return
    end

    self.result = user_a_sets_won > user_b_sets_won ? 'user_a_won' : 'user_b_won'
    save!
  end

  def opponent(user)
    user_a == user ? user_b : user_a
  end

  def self.won_by_user(user_id)
    where(user_a_id: user_id, result: 'user_a_won').or(where(user_b_id: user_id, result: 'user_b_won'))
  end

  def self.lost_by_user(user_id)
    where(user_a_id: user_id, result: 'user_b_won').or(where(user_b_id: user_id, result: 'user_a_won'))
  end
end


text:
module Unparser
  class Emitter
    # Emitter for def node
    class Def < self
      include LocalVariableRoot, Terminated

    private

      # Emit name
      #
      # @return [undefined]
      #
      # @api private
      #
      abstract_method :emit_name
      private :emit_name

      # Return body node
      #
      # @return [Parser::AST::Node]
      #
      # @api private
      #
      abstract_method :body
      private :body

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_DEF, WS)
        emit_name
        comments.consume(node, :name)
        emit_arguments
        emit_body
        k_end
      end

      # Emit arguments
      #
      # @return [undefined]
      #
      # @api private
      #
      def emit_arguments
        return if arguments.children.empty?
        visit_parentheses(arguments)
      end

      # Instance def emitter
      class Instance < self

        handle :def

        children :name, :arguments, :body

      private

        # Emit name
        #
        # @return [undefined]
        #
        # @api private
        #
        def emit_name
          write(name.to_s)
        end

      end # Instance

      # Emitter for defines on singleton
      class Singleton < self

        handle :defs

        children :subject, :name, :arguments, :body

      private

        # Return mame
        #
        # @return [String]
        #
        # @api private
        #
        def emit_name
          conditional_parentheses(!subject_without_parens?) do
            visit(subject)
          end
          write(T_DOT, name.to_s)
        end

        # Test if subject needs parentheses
        #
        # @return [Boolean]
        #
        # @api private
        #
        def subject_without_parens?
          case subject.type
          when :self
            true
          when :const
            !subject.children.first
          when :send
            receiver, _selector, *arguments = *subject
            !receiver && arguments.empty?
          else
            false
          end
        end

      end # Singleton
    end # Def
  end # Emitter
end # Unparser


text:
/**
 * Contains the main RiakClient used to query Riak.
 */
package com.basho.riak.client.api;


text:
package com.founder.fix.fixflow.core.impl.cmd;

import java.util.List;

import com.founder.fix.fixflow.core.exception.FixFlowException;
import com.founder.fix.fixflow.core.impl.Context;
import com.founder.fix.fixflow.core.impl.identity.GroupDefinition;
import com.founder.fix.fixflow.core.impl.identity.UserTo;
import com.founder.fix.fixflow.core.impl.interceptor.Command;
import com.founder.fix.fixflow.core.impl.interceptor.CommandContext;

public class GetUserInGroupCmd implements Command<List<UserTo>>{

	protected String groupId;
	protected String groupType;
	protected boolean childMembers;

	public GetUserInGroupCmd(String groupId, String groupType,boolean childMembers){
		this.groupId=groupId;
		this.groupType=groupType;
		this.childMembers=childMembers;
	}

	public List<UserTo> execute(CommandContext commandContext) {

		GroupDefinition groupDefinitionObj=null;
		List<GroupDefinition> groupDefinitions = Context.getProcessEngineConfiguration().getGroupDefinitions();
		for (GroupDefinition groupDefinition : groupDefinitions) {

			if (groupDefinition.getId().equals(this.groupType)) {
				groupDefinitionObj= groupDefinition;
				break;
			}

		}
		if(groupDefinitionObj==null){
			throw new FixFlowException("编号为: "+groupId+" 类型为: "+groupType+" 的组不存在");
		}

		if(childMembers){
			return groupDefinitionObj.findUserChildMembersIncludeByGroupId(groupId);
		}
		else{
			return groupDefinitionObj.findUserByGroupId(groupId);
		}

	}

}


text:
(function () {
  'use strict';

  angular
    .module('app')
    .directive('straboConceptTagDirective', straboConceptTagDirective);

  function straboConceptTagDirective() {
    return {
      'restrict': 'AE',
      'replace': true,
      'templateUrl': 'app/tag/concept.directive.html'
    };
  }
}());


text:
use strict;
use warnings;

# Modules.
use Indent::Utils qw(remove_last_ws);

my $input = 'a   ';
remove_last_ws(\$input);
print "$input|\n";

# Output:
# a|


text:
/**------------------------------------------------------------------------
 * file: custom.css 1.6.0 00001, April 2011 12:00:00Z OmegaTheme $
 * package:	Mega Woote Template
 *------------------------------------------------------------------------*/
.item-page p img,
.blog .items-row p img,
.joomla .blog .item p img {
	margin-right: 10px;
	margin-bottom: 5px;
}

.right_footer .social {
	float: right;
}

.joomla .blog .item {
	float: left;
}

/*Style for Slide show*/
#megaslidenav {
	z-index: 9;
}

.left_megaslider {
	background: url(../images/left-nav-slider.png) no-repeat left center;
	height: 37px;
	float: left;
	overflow: hidden;
	margin: 0px;
	padding: 0px;
}

.right_megaslider {
	background: url(../images/right-nav-slider.png) no-repeat right 0;
	width: 6px;
	height: 37px;
	overflow: hidden;
	margin: 0px;
 	padding: 0px;
 	float: left;
}

#megaslidenav .left_megaslider a {
	background: url(../images/nav-slider.jpg) no-repeat left center;
	width: 16px;
	height: 16px;
	float: left;
	overflow: hidden;
	text-indent: 999px;
	margin-top: 11px;
	margin-right: 3px;
}

#megaslidenav .left_megaslider a.activeSlide {
	/*background: #41A317;*/
	background: url(../images/nav-slider-active-orange.png) no-repeat left center;
}


text:
#include <sqlpp17/core/clause/truncate.h>
#include <sqlpp17/core/operator.h>

#include <core_test/mock_db.h>
#include <core_test/tables/TabDepartment.h>
#include <core_test/tables/TabEmpty.h>
#include <core_test/tables/TabPerson.h>

using ::test::tabPerson;

int main()
{
  auto db = ::sqlpp::test::mock_db{};

  db(truncate(tabPerson));
}


text:
var octodex = require('./octodex.js');
var assert = require('assert');

describe('ocotdex test', function() {
  it('should return a octodex URL', function(done) {
      octodex.img(function(err, url) {
           setTimeout(function() {
                 assert.ok(!err && url.length > 1);
            }, 4000);
            done();
      });
  });
});


text:
> This style guide comes as an addition to
> [Airbnb React/JSX Guide](https://github.com/airbnb/javascript/tree/master/react).
> Feel free to modify it to suit your project's needs.

### Table of Contents

* [Separate folder per UI component](#separate-folder-per-ui-component)
* [Prefer using functional components](#prefer-using-functional-components)
* [Use CSS Modules](#use-css-modules)
* [Use higher-order components](#use-higher-order-components)

### Separate folder per UI component

* Place each major UI component along with its resources in a separate folder\
  This will make it easier to find related resources for any particular UI element
  (CSS, images, unit tests, localization files etc.). Removing such components during
  refactorings should also be easy.
* Avoid having CSS, images and other resource files shared between multiple
  components.\
  This will make your code more maintainable, easy to refactor.
* Add `package.json` file into each component's folder.\
  This will allow to easily reference such components from other places in your code.\
  Use `import Nav from '../Navigation'` instead of `import Nav from '../Navigation/Navigation.js'`

```
/components/Navigation/icon.svg
/components/Navigation/Navigation.css
/components/Navigation/Navigation.js
/components/Navigation/Navigation.test.js
/components/Navigation/Navigation.ru-RU.css
/components/Navigation/package.json
```

```
// components/Navigation/package.json
{
  "name:": "Navigation",
  "main": "./Navigation.js"
}
```

For more information google for
[component-based UI development](https://google.com/search?q=component-based+ui+development).

### Prefer using functional components

* Prefer using stateless functional components whenever possible.\
  Components that don't use state are better to be written as simple pure functions.

```jsx
// Bad
class Navigation extends Component {
  static propTypes = { items: PropTypes.array.isRequired };
  render() {
    return <nav><ul>{this.props.items.map(x => <li>{x.text}</li>)}</ul></nav>;
  }
}

// Better
function Navigation({ items }) {
  return (
    <nav><ul>{items.map(x => <li>{x.text}</li>)}</ul></nav>;
  );
}
Navigation.propTypes = { items: PropTypes.array.isRequired };
```

### Use CSS Modules

* Use CSS Modules\
  This will allow using short CSS class names and at the same time avoid conflicts.
* Keep CSS simple and declarative. Avoid loops, mixins etc.
* Feel free to use variables in CSS via
  [precss](https://github.com/jonathantneal/precss) plugin for
  [PostCSS](https://github.com/postcss/postcss)
* Prefer CSS class selectors instead of element and `id` selectors (see
  [BEM](https://bem.info/))
* Avoid nested CSS selectors (see [BEM](https://bem.info/))
* When in doubt, use `.root { }` class name for the root elements of your
  components

```scss
// Navigation.scss
@import '../variables.scss';

.root {
  width: 300px;
}

.items {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-align: center;
}

.item {
  display: inline-block;
  vertical-align: top;
}

.link {
  display: block;
  padding: 0 25px;
  outline: 0;
  border: 0;
  color: $default-color;
  text-decoration: none;
  line-height: 25px;
  transition: background-color 0.3s ease;

  &,
  .items:hover & {
    background: $default-bg-color;
  }

  .selected,
  .items:hover &:hover {
    background: $active-bg-color;
  }
}
```

```jsx
// Navigation.js
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Navigation.scss';

function Navigation() {
  return (
    <nav className={`${s.root} ${this.props.className}`}>
      <ul className={s.items}>
        <li className={`${s.item} ${s.selected}`}>
          <a className={s.link} href="/products">
            Products
          </a>
        </li>
        <li className={s.item}>
          <a className={s.link} href="/services">
            Services
          </a>
        </li>
      </ul>
    </nav>
  );
}

Navigation.propTypes = { className: PropTypes.string };

export default withStyles(Navigation, s);
```

### Use higher-order components

* Use higher-order components (HOC) to extend existing React components.\
  Here is an example:

```js
// withViewport.js
import React, { Component } from 'react';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';

function withViewport(ComposedComponent) {
  return class WithViewport extends Component {
    state = {
      viewport: canUseDOM
        ? { width: window.innerWidth, height: window.innerHeight }
        : { width: 1366, height: 768 }, // Default size for server-side rendering
    };

    componentDidMount() {
      window.addEventListener('resize', this.handleResize);
      window.addEventListener('orientationchange', this.handleResize);
    }

    componentWillUnmount() {
      window.removeEventListener('resize', this.handleResize);
      window.removeEventListener('orientationchange', this.handleResize);
    }

    handleResize = () => {
      let viewport = { width: window.innerWidth, height: window.innerHeight };
      if (
        this.state.viewport.width !== viewport.width ||
        this.state.viewport.height !== viewport.height
      ) {
        this.setState({ viewport });
      }
    };

    render() {
      return (
        <ComposedComponent {...this.props} viewport={this.state.viewport} />
      );
    }
  };
}

export default withViewport;
```

```js
// MyComponent.js
import React from 'react';
import withViewport from './withViewport';

class MyComponent {
  render() {
    let { width, height } = this.props.viewport;
    return <div>{`Viewport: ${width}x${height}`}</div>;
  }
}

export default withViewport(MyComponent);
```

**[⬆ back to top](#table-of-contents)**


text:
package com.ontotext.kim.model;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import org.apache.commons.io.IOUtils;
import org.apache.log4j.Logger;
import org.openrdf.model.Graph;
import org.openrdf.model.Statement;
import org.openrdf.model.impl.GraphImpl;
import org.openrdf.model.impl.URIImpl;
import org.openrdf.rio.RDFFormat;
import org.openrdf.rio.RDFHandlerException;
import org.openrdf.rio.RDFParseException;
import org.openrdf.rio.RDFParser;
import org.openrdf.rio.RDFParserRegistry;
import org.openrdf.rio.helpers.StatementCollector;

/**
 * Options reader for the LKB Gazetteer
 *
 * @author mnozchev
 */
public class Options {

  public static final String SENSITIVE = "casesensitive";
  public static final String ALL_UPPER = "casesensitiveAllUpper";
  public static final String INSENSITIVE = "caseinsensitive";

  private final Map<String, String> opts;
  private final static Logger log = Logger.getLogger(Options.class);
  private final File dictionaryPath;

  public Options(Map<String, String> opts, File dictionaryPath) {
    this.opts = opts;
    this.dictionaryPath = dictionaryPath;
  }

  /**
   * Loads the configuration of the dictionary from a "config.ttl" Turtle RDF
   *
   * @param dictionaryPath the dictionary path, not null
   * @return an Options instance, no null
   */
  public static Options load(File dictionaryPath) {
    Map<String, String> opts = new HashMap<String, String>();
    Reader inp = null;
    try {
      inp = new FileReader(new File(dictionaryPath, getConfigFileName()));
      RDFParser parser = RDFParserRegistry.getInstance().get(RDFFormat.TURTLE).getParser();
      Graph statements = new GraphImpl();
      parser.setRDFHandler(new StatementCollector(statements));
      parser.parse(inp, "http://www.ontotext.com/lkb_gazetteer#");
      Iterator<Statement> it = statements.match(new URIImpl("http://www.ontotext.com/lkb_gazetteer#DictionaryConfiguration"), null, null);
      while (it.hasNext()) {
        Statement st = it.next();
        opts.put(st.getPredicate().getLocalName().toLowerCase(), st.getObject().stringValue());
      }
    }
    catch(IOException e) {
      log.error("Could not read config file from " + new File(dictionaryPath, getConfigFileName()).getAbsolutePath(), e);
    }
    catch(RDFParseException e) {
      log.error("Config file accessible but was not a valid Turtle RDF.", e);
    }
    catch(RDFHandlerException e) {
      log.error("Unexpected error when reading the configuration RDF.", e);
    }
    finally {
      IOUtils.closeQuietly(inp);
    }
    return new Options(Collections.unmodifiableMap(opts), dictionaryPath);
  }

  public static String getConfigFileName() {
    return "config.ttl";
  }

  public boolean isCacheEnabled() {
    return "enabled".equalsIgnoreCase(opts.get("caching"));
  }

  public String getCaseSensitivity() {
    String res = opts.get("casesensitivity");
    return res != null ? res : INSENSITIVE;
  }

  public Map<String, String> getMap() {
    return opts; // unmodifiable
  }

  public File getIgnoreListPath() {
    String igPath = opts.get("ignorelist");
    if (igPath == null)
      return null;
    File res = new File(igPath);
    return res.isAbsolute() ? res : new File(dictionaryPath, igPath);
  }
}


text: Projeto de uma API REST que será consumida por outros workshops


text:
Description
===========

This extension adds custom modifications to the administration area theme.

Installation
------------

* Install the extension via [Composer](https://getcomposer.org/)
* Install the extension via [modman](https://github.com/colinmollenhour/modman)
* You can also [download from Github](https://github.com/augustash/ash_admin/archive/master.zip) and unzip the archive in your project root


text:
package etcdstoreadapter

import (
	"errors"
	"flag"
	"fmt"
	"net/url"
	"strings"
)

type ETCDFlags struct {
	certFile    string
	keyFile     string
	caFile      string
	clusterUrls string
}

type ETCDOptions struct {
	CertFile    string
	KeyFile     string
	CAFile      string
	ClusterUrls []string
	IsSSL       bool
}

func AddFlags(flagSet *flag.FlagSet) *ETCDFlags {
	flags := &ETCDFlags{}

	flagSet.StringVar(
		&flags.clusterUrls,
		"etcdCluster",
		"http://127.0.0.1:4001",
		"comma-separated list of etcd URLs (scheme://ip:port)",
	)

	flagSet.StringVar(
		&flags.certFile,
		"etcdCertFile",
		"",
		"Location of the client certificate for mutual auth",
	)
	flagSet.StringVar(
		&flags.keyFile,
		"etcdKeyFile",
		"",
		"Location of the client key for mutual auth",
	)
	flagSet.StringVar(
		&flags.caFile,
		"etcdCaFile",
		"",
		"Location of the CA certificate for mutual auth",
	)
	return flags
}

func (flags *ETCDFlags) Validate() (*ETCDOptions, error) {
	scheme := ""
	clusterUrls := strings.Split(flags.clusterUrls, ",")
	for i, uString := range clusterUrls {
		uString = strings.TrimSpace(uString)
		clusterUrls[i] = uString
		u, err := url.Parse(uString)
		if err != nil {
			return nil, fmt.Errorf("Invalid cluster URL: '%s', error: [%s]", uString, err.Error())
		}
		if scheme == "" {
			if u.Scheme != "http" && u.Scheme != "https" {
				return nil, errors.New("Invalid scheme: " + uString)
			}
			scheme = u.Scheme
		} else if scheme != u.Scheme {
			return nil, fmt.Errorf("Multiple url schemes provided: %s", flags.clusterUrls)
		}
	}

	isSSL := false
	if scheme == "https" {
		isSSL = true
		if flags.certFile == "" {
			return nil, errors.New("Cert file must be provided for https connections")
		}
		if flags.keyFile == "" {
			return nil, errors.New("Key file must be provided for https connections")
		}
	}

	return &ETCDOptions{
		CertFile:    flags.certFile,
		KeyFile:     flags.keyFile,
		CAFile:      flags.caFile,
		ClusterUrls: clusterUrls,
		IsSSL:       isSSL,
	}, nil
}


text:
namespace BeetleProtobuf.Client
{
    partial class FrmMain
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
            this.txtIPAddress = new System.Windows.Forms.ToolStripTextBox();
            this.cmdConnect = new System.Windows.Forms.ToolStripButton();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.txtName = new System.Windows.Forms.TextBox();
            this.txtEMail = new System.Windows.Forms.TextBox();
            this.txtRegTime = new System.Windows.Forms.TextBox();
            this.cmdRegister = new System.Windows.Forms.Button();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            //
            // toolStrip1
            //
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripLabel1,
            this.txtIPAddress,
            this.cmdConnect});
            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(264, 25);
            this.toolStrip1.TabIndex = 0;
            this.toolStrip1.Text = "toolStrip1";
            //
            // toolStripLabel1
            //
            this.toolStripLabel1.Name = "toolStripLabel1";
            this.toolStripLabel1.Size = new System.Drawing.Size(70, 22);
            this.toolStripLabel1.Text = "IPAddress:";
            //
            // txtIPAddress
            //
            this.txtIPAddress.Name = "txtIPAddress";
            this.txtIPAddress.Size = new System.Drawing.Size(100, 25);
            this.txtIPAddress.Text = "127.0.0.1";
            //
            // cmdConnect
            //
            this.cmdConnect.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.cmdConnect.Image = ((System.Drawing.Image)(resources.GetObject("cmdConnect.Image")));
            this.cmdConnect.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.cmdConnect.Name = "cmdConnect";
            this.cmdConnect.Size = new System.Drawing.Size(59, 22);
            this.cmdConnect.Text = "Connect";
            this.cmdConnect.Click += new System.EventHandler(this.cmdConnect_Click);
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(17, 45);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(35, 12);
            this.label1.TabIndex = 1;
            this.label1.Text = "Name:";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(17, 72);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(41, 12);
            this.label2.TabIndex = 2;
            this.label2.Text = "EMail:";
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(17, 99);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(53, 12);
            this.label3.TabIndex = 3;
            this.label3.Text = "RegTime:";
            //
            // txtName
            //
            this.txtName.Location = new System.Drawing.Point(84, 42);
            this.txtName.Name = "txtName";
            this.txtName.Size = new System.Drawing.Size(155, 21);
            this.txtName.TabIndex = 4;
            //
            // txtEMail
            //
            this.txtEMail.Location = new System.Drawing.Point(84, 69);
            this.txtEMail.Name = "txtEMail";
            this.txtEMail.Size = new System.Drawing.Size(155, 21);
            this.txtEMail.TabIndex = 5;
            //
            // txtRegTime
            //
            this.txtRegTime.Location = new System.Drawing.Point(84, 96);
            this.txtRegTime.Name = "txtRegTime";
            this.txtRegTime.Size = new System.Drawing.Size(155, 21);
            this.txtRegTime.TabIndex = 6;
            //
            // cmdRegister
            //
            this.cmdRegister.Enabled = false;
            this.cmdRegister.Location = new System.Drawing.Point(164, 136);
            this.cmdRegister.Name = "cmdRegister";
            this.cmdRegister.Size = new System.Drawing.Size(75, 23);
            this.cmdRegister.TabIndex = 7;
            this.cmdRegister.Text = "Register";
            this.cmdRegister.UseVisualStyleBackColor = true;
            this.cmdRegister.Click += new System.EventHandler(this.cmdRegister_Click);
            //
            // FrmMain
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(264, 171);
            this.Controls.Add(this.cmdRegister);
            this.Controls.Add(this.txtRegTime);
            this.Controls.Add(this.txtEMail);
            this.Controls.Add(this.txtName);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.toolStrip1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.Name = "FrmMain";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Protobuf Test";
            this.Load += new System.EventHandler(this.FrmMain_Load);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.ToolStrip toolStrip1;
        private System.Windows.Forms.ToolStripLabel toolStripLabel1;
        private System.Windows.Forms.ToolStripTextBox txtIPAddress;
        private System.Windows.Forms.ToolStripButton cmdConnect;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TextBox txtName;
        private System.Windows.Forms.TextBox txtEMail;
        private System.Windows.Forms.TextBox txtRegTime;
        private System.Windows.Forms.Button cmdRegister;
    }
}


text:
/*********************************************************************
 * Implement a precision "timed wait".  The parameter early_usec
 * allows an interrupted select(2) call to consider the wait as
 * completed, when interrupted with only "early_usec" left remaining.
 *********************************************************************/
static void
timed_wait(long sec,long usec,long early_usec) {
    fd_set mt;
    struct timeval timeout;
    int rc;

    FD_ZERO(&mt);
    timeout.tv_sec = sec;
    timeout.tv_usec = usec;
    do  {
        rc = select(0,&mt,&mt,&mt,&timeout);
        if ( !timeout.tv_sec && timeout.tv_usec < early_usec )
            return;     /* Wait is good enough, exit */
    } while ( rc < 0 && timeout.tv_sec && timeout.tv_usec );
}

/*********************************************************************
 * End timed_wait.c - by Warren Gay
 * Mastering the Raspberry Pi - ISBN13: 978-1-484201-82-4
 * This source code is placed into the public domain.
 *********************************************************************/


text:
//
// Ce fichier a été généré par l'implémentation de référence JavaTM Architecture for XML Binding (JAXB), v2.2.11
// Voir http://java.sun.com/xml/jaxb
// Toute modification apportée à ce fichier sera perdue lors de la recompilation du schéma source.
// Généré le : 2015.10.16 à 03:51:42 PM CEST
//

package com.booleanworks.bomworkshop2015a.entity.oagi10.bom.v1;

import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
Classe Java pour OpenFieldValueType complex type.
 *
 *
Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.
 *
 *

 * <complexType name="OpenFieldValueType">
 *   <simpleContent>
 *     <extension base="<http://www.openapplications.org/oagis/10>RecordFieldValueType">
 *       <attribute name="typeCode" type="{http://www.openapplications.org/oagis/10}CodeType_1E7368" />
 *     </extension>
 *   </simpleContent>
 * </complexType>
 *

 *
 *
 */
//@Entity
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OpenFieldValueType")
public class OpenFieldValueType
    extends RecordFieldValueType
{

    @XmlAttribute(name = "typeCode")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String typeCode;

    /**
     * Obtient la valeur de la propriété typeCode.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getTypeCode() {
        return typeCode;
    }

    /**
     * Définit la valeur de la propriété typeCode.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setTypeCode(String value) {
        this.typeCode = value;
    }

}


text:
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# lib/autoscan/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# Make Autoscan library.

# Copyright (C) 2001, 2002 Free Software Foundation, Inc.

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Freeze M4 files.

# Copyright (C) 2002, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.

pkgdatadir = $(datadir)/autoconf
pkglibdir = $(libdir)/autoconf
pkgincludedir = $(includedir)/autoconf
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
DIST_COMMON = $(srcdir)/../freeze.mk $(srcdir)/Makefile.am \
	$(srcdir)/Makefile.in
subdir = lib/autoscan
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/m4.m4 \
	$(top_srcdir)/m4/make-case.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(autoscanlibdir)"
nodist_autoscanlibDATA_INSTALL = $(INSTALL_DATA)
DATA = $(nodist_autoscanlib_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /home/cb/Projects/autoconf-2.63/build-aux/missing --run aclocal-1.10
AMTAR = ${SHELL} /home/cb/Projects/autoconf-2.63/build-aux/missing --run tar
AUTOCONF = ${SHELL} /home/cb/Projects/autoconf-2.63/build-aux/missing --run autoconf
AUTOHEADER = ${SHELL} /home/cb/Projects/autoconf-2.63/build-aux/missing --run autoheader
AUTOMAKE = ${SHELL} /home/cb/Projects/autoconf-2.63/build-aux/missing --run automake-1.10
AWK = gawk
CYGPATH_W = echo
DEFS = -DPACKAGE_NAME=\"GNU\ Autoconf\" -DPACKAGE_TARNAME=\"autoconf\" -DPACKAGE_VERSION=\"2.63\" -DPACKAGE_STRING=\"GNU\ Autoconf\ 2.63\" -DPACKAGE_BUGREPORT=\"bug-autoconf@gnu.org\" -DPACKAGE=\"autoconf\" -DVERSION=\"2.63\"
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EMACS = emacs
EMACSLOADPATH =
EXPR = /usr/bin/expr
GREP = /bin/grep
HELP2MAN = ${SHELL} /home/cb/Projects/autoconf-2.63/build-aux/missing --run help2man
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LIBOBJS =
LIBS =
LTLIBOBJS =
M4 = /usr/bin/m4
M4_DEBUGFILE = --error-output
MAKEINFO = ${SHELL} /home/cb/Projects/autoconf-2.63/build-aux/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
PACKAGE = autoconf
PACKAGE_BUGREPORT = bug-autoconf@gnu.org
PACKAGE_NAME = GNU Autoconf
PACKAGE_STRING = GNU Autoconf 2.63
PACKAGE_TARNAME = autoconf
PACKAGE_VERSION = 2.63
PATH_SEPARATOR = :
PERL = /usr/bin/perl
SED = /bin/sed
SET_MAKE =
SHELL = /bin/sh
STRIP =
TEST_EMACS = emacs
VERSION = 2.63
abs_builddir = /home/cb/Projects/autoconf-2.63/lib/autoscan
abs_srcdir = /home/cb/Projects/autoconf-2.63/lib/autoscan
abs_top_builddir = /home/cb/Projects/autoconf-2.63
abs_top_srcdir = /home/cb/Projects/autoconf-2.63
ac_cv_sh_n_works = yes
am__leading_dot = .
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build_alias =
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host_alias =
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /home/cb/Projects/autoconf-2.63/build-aux/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
lispdir = ${datarootdir}/emacs/site-lisp
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_build_prefix = ../../
top_builddir = ../..
top_srcdir = ../..
autoscanlibdir = $(pkgdatadir)/autoscan
EXTRA_DIST = autoscan.pre
nodist_autoscanlib_DATA = autoscan.list
CLEANFILES = autoscan.list
SUFFIXES = .m4 .m4f
AUTOM4TE_CFG = $(top_builddir)/lib/autom4te.cfg

# Do not use AUTOM4TE here, since maint.mk (my-distcheck)
# checks if we are independent of Autoconf by defining AUTOM4TE (and
# others) to `false'.  Autoconf provides autom4te, so that doesn't
# apply to us.
MY_AUTOM4TE = \
	autom4te_perllibdir='$(top_srcdir)'/lib					\
	AUTOM4TE_CFG='$(AUTOM4TE_CFG)'         $(top_builddir)/bin/autom4te	\
		-B '$(top_builddir)'/lib -B '$(top_srcdir)'/lib        # keep ` '

# Factor the dependencies between all the frozen files.
# Some day we should explain to Automake how to use autom4te to compute
# the dependencies...
src_libdir = $(top_srcdir)/lib
build_libdir = $(top_builddir)/lib
m4f_dependencies = $(top_builddir)/bin/autom4te $(AUTOM4TE_CFG)
m4sugar_m4f_dependencies = \
	$(m4f_dependencies)			\
	$(src_libdir)/m4sugar/m4sugar.m4	\
	$(build_libdir)/m4sugar/version.m4

m4sh_m4f_dependencies = \
	$(m4sugar_m4f_dependencies)		\
	$(src_libdir)/m4sugar/m4sh.m4

autotest_m4f_dependencies = \
	$(m4sh_m4f_dependencies)		\
	$(src_libdir)/autotest/autotest.m4	\
	$(src_libdir)/autotest/general.m4

autoconf_m4f_dependencies = \
	$(m4sh_m4f_dependencies)		\
	$(src_libdir)/autoconf/autoscan.m4	\
	$(src_libdir)/autoconf/general.m4	\
	$(src_libdir)/autoconf/autoheader.m4	\
	$(src_libdir)/autoconf/autoupdate.m4	\
	$(src_libdir)/autoconf/autotest.m4	\
	$(src_libdir)/autoconf/status.m4	\
	$(src_libdir)/autoconf/oldnames.m4	\
	$(src_libdir)/autoconf/specific.m4	\
	$(src_libdir)/autoconf/lang.m4		\
	$(src_libdir)/autoconf/c.m4		\
	$(src_libdir)/autoconf/fortran.m4	\
	$(src_libdir)/autoconf/erlang.m4	\
	$(src_libdir)/autoconf/functions.m4	\
	$(src_libdir)/autoconf/headers.m4	\
	$(src_libdir)/autoconf/types.m4		\
	$(src_libdir)/autoconf/libs.m4		\
	$(src_libdir)/autoconf/programs.m4	\
	$(src_libdir)/autoconf/autoconf.m4

ETAGS_FOR_M4 = \
  --lang=none \
  --regex='/\(m4_define\|define\)(\[\([^]]*\)\]/\2/'

ETAGS_FOR_M4SUGAR = \
  $(ETAGS_FOR_M4) \
  --regex='/m4_defun(\[\([^]]*\)\]/\1/'

ETAGS_FOR_AUTOCONF = \
  $(ETAGS_FOR_M4SUGAR) \
  --regex='/\(A[CU]_DEFUN\|AU_ALIAS\)(\[\([^]]*\)\]/\2/' \
  --regex='/AN_\(FUNCTION\|HEADER\|IDENTIFIER\|LIBRARY\|MAKEVAR\|PROGRAM\)(\[\([^]]*\)\]/\2/'

all: all-am

.SUFFIXES:
.SUFFIXES: .m4 .m4f
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(srcdir)/../freeze.mk $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
		&& exit 0; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  lib/autoscan/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  lib/autoscan/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure:  $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-nodist_autoscanlibDATA: $(nodist_autoscanlib_DATA)
	@$(NORMAL_INSTALL)
	test -z "$(autoscanlibdir)" || $(MKDIR_P) "$(DESTDIR)$(autoscanlibdir)"
	@list='$(nodist_autoscanlib_DATA)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  echo " $(nodist_autoscanlibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(autoscanlibdir)/$$f'"; \
	  $(nodist_autoscanlibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(autoscanlibdir)/$$f"; \
	done

uninstall-nodist_autoscanlibDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(nodist_autoscanlib_DATA)'; for p in $$list; do \
	  f=$(am__strip_dir) \
	  echo " rm -f '$(DESTDIR)$(autoscanlibdir)/$$f'"; \
	  rm -f "$(DESTDIR)$(autoscanlibdir)/$$f"; \
	done
tags: TAGS
TAGS:

ctags: CTAGS
CTAGS:

distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
installdirs:
	for dir in "$(DESTDIR)$(autoscanlibdir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic

dvi: dvi-am

dvi-am:

html: html-am

info: info-am

info-am:

install-data-am: install-nodist_autoscanlibDATA

install-dvi: install-dvi-am

install-exec-am:

install-html: install-html-am

install-info: install-info-am

install-man:

install-pdf: install-pdf-am

install-ps: install-ps-am

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-nodist_autoscanlibDATA

.MAKE: install-am install-strip

.PHONY: all all-am check check-am clean clean-generic distclean \
	distclean-generic distdir dvi dvi-am html html-am info info-am \
	install install-am install-data install-data-am install-dvi \
	install-dvi-am install-exec install-exec-am install-html \
	install-html-am install-info install-info-am install-man \
	install-nodist_autoscanlibDATA install-pdf install-pdf-am \
	install-ps install-ps-am install-strip installcheck \
	installcheck-am installdirs maintainer-clean \
	maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
	pdf-am ps ps-am uninstall uninstall-am \
	uninstall-nodist_autoscanlibDATA

$(AUTOM4TE_CFG): $(top_srcdir)/lib/autom4te.in
	cd $(top_builddir)/lib && $(MAKE) $(AM_MAKEFLAGS) autom4te.cfg

# When processing the file with diversion disabled, there must be no
# output but comments and empty lines.
# If freezing produces output, something went wrong: a bad `divert',
# or an improper paren etc.
# It may happen that the output does not end with an end of line, hence
# force an end of line when reporting errors.
.m4.m4f:
	$(MY_AUTOM4TE)				\
		--language=$*			\
		--freeze			\
		--output=$@

# For parallel builds.
$(build_libdir)/m4sugar/version.m4:
	cd $(build_libdir)/m4sugar && $(MAKE) $(AM_MAKEFLAGS) version.m4

check-forbidden-patterns:
	@if (cd $(srcdir) && \
	    $(GREP) $(forbidden_patterns) $(forbidden_patterns_files)) \
	    >forbidden.log; then \
	  echo "ERROR: forbidden patterns were found:" >&2; \
	  sed "s|^|$*.m4: |" <forbidden.log >&2; \
	  echo >&2; \
	  exit 1; \
	else \
	  rm -f forbidden.log; \
	fi

autoscan.list: $(srcdir)/autoscan.pre $(autoconf_m4f_dependencies) Makefile.am
	echo '# Automatically Generated: do not edit this file' >autoscan.list
	sed '/^[#]/!q' $(srcdir)/autoscan.pre                  >>autoscan.list
	( \
	  sed -n '/^[^#]/p' $(srcdir)/autoscan.pre; \
	  $(MY_AUTOM4TE) --cache '' -M -l autoconf -t'AN_OUTPUT:$$1: $$2		$$3' \
	) | LC_ALL=C sort                                      >>autoscan.list
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:


text:
#ifndef FREQUENTLYCHANGEDMODEL_H
#define FREQUENTLYCHANGEDMODEL_H

#include "filelistmodel.h"

class FrequentlyChangedModel : public FileListModel
{
    Q_OBJECT
public:
    explicit FrequentlyChangedModel(QObject *parent = 0);
};

#endif // FREQUENTLYCHANGEDMODEL_H


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Beih. bot. Zbl. , Abt. 2 29: 67 (1912)

#### Original name
Dimerosporium elliotii A.L. Sm.

### Remarks
null


text:
import React from "react";
import { connect } from "react-redux";
import { changeLocale } from "../AC";
import { EN, RU } from "../constants";

interface ILocaleSelectProps {
  changeLocale: (locale: string) => void;
  locale: string;
}

class LocaleSelect extends React.Component<ILocaleSelectProps, {}> {
  handleChange = () => {
    // tslint:disable-next-line:no-shadowed-variable
    const { locale, changeLocale } = this.props;

    locale === RU ? changeLocale(EN) : changeLocale(RU);
    window.locale = locale === RU ? EN : RU;
  }

  render() {
    const { locale } = this.props;

    return (

        {locale}

    );
  }
}

export default connect((state) => ({
  locale: state.settings.locale,
}), { changeLocale })(LocaleSelect);


text:
/**
 * The `abbreviateNumber` utility converts a number to a shorter localized form.
 *
 * @example
 * abbreviateNumber(1234);
 * // "1.2K"
 *
 * @param {Integer} number
 * @return {String}
 */
export default function abbreviateNumber(number) {
  // TODO: translation
  if (number >= 1000000) {
    return Math.floor(number / 1000000) + app.translator.trans('core.lib.number_suffix.mega_text');
  } else if (number >= 1000) {
    return Math.floor(number / 1000) + app.translator.trans('core.lib.number_suffix.kilo_text');
  } else {
    return number.toString();
  }
}


text:
layout: post
title:  "Welcome to Jekyll!"
description: This is the first blog post using jekyll
date:   2013-11-10 10:18:00
categories: Thriller Comedy Horror
---

You'll find this post in your `_posts` directory - edit this post and re-build (or run with the `-w` switch) to see your changes!
To add new posts, simply add a file in the `_posts` directory that follows the convention: YYYY-MM-DD-name-of-post.ext.
#### Blockquote

This is a paragraph blockquote

This is a cite blockquote

A great philosopher once said to keep things tidy.
Small Tag

> Markdown blockquote

___

We are right now inside the mark tag.

To copy this line use Ctrl+C shortcut?

---

#### Images

.small-img - A close-up view of the author :)

.med-img - A close-up view of the author :)

.full-img

***

#### Table

HTML Table

   Month
   Savings

   January
   $100

   February
   $50

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3

***

#### Code

hello or `code`

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Checking markdown code highlight support
{% highlight python %}
def hello():
  pass
{% endhighlight %}

Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll's GitHub repo][jekyll-gh].

[jekyll-gh]: https://github.com/mojombo/jekyll
[jekyll]:    http://jekyllrb.com


text:
<?xml version="1.0" encoding="utf-8"?>
<executable>
  <category>Filtering.Denoising</category>
  <title>Anisotropic Anomalous Diffusion</title>
  <description><![CDATA[This is a CLI module that is bundled in the Anomalous Diffusion Filters extension. Here, the Anisotropic Anomalous Diffusion filter (AAD) is implemented, representing the anomalous diffusion process by a multivariate q-Gaussian iterative solution of the anisotropic porous media equation.]]></description>
  <version>1.0.0</version>
  <documentation-url>https://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/AADImageFilter</documentation-url>
  <license>Slicer</license>
  <contributor>Antonio Carlos Senra Filho (University of Sao Paulo), Luiz Otavio Murta Junior (University of Sao Paulo)</contributor>
  <acknowledgements>This work was partially funded by CNPq grant 201871/2015-7/SWE and CAPES</acknowledgements>
  <parameters>
    IO
    <description><![CDATA[Input/output parameters]]></description>
    <image type="scalar">
      <name>inputVolume</name>
      Input Volume
      <channel>input</channel>
      <index>0</index>
      <description><![CDATA[Input volume]]></description>
    </image>
    <image type="scalar">
      <name>outputVolume</name>
      Output Volume
      <channel>output</channel>
      <index>1</index>
      <description><![CDATA[Output Volume]]></description>
    </image>
  </parameters>
<parameters>
    Diffusion Parameters - First Level
    <description><![CDATA[Defines the number of iterations, time step and anomalous parameter (q value)]]></description>
    <integer>
      <name>iterations</name>
      <longflag>--iterations</longflag>
      <flag>i</flag>
      Number of Iterations
      <description><![CDATA[A integer value that defines the number of iterations.]]></description>
      <default>1</default>
      <constraints>
        <minimum>1</minimum>
        <maximum>100</maximum>
        <step>1</step>
      </constraints>
    </integer>
    <double>
      <name>q</name>
      <longflag>--anomalousparameter</longflag>
      <flag>q</flag>
      Anomalous Parameter
      <description><![CDATA[A double value that defines the q-Gaussian probability distribution function which is convoluated in each neighborhood in the image.]]></description>
      <default>1.0</default>
      <constraints>
        <minimum>0.01</minimum>
        <maximum>1.99</maximum>
        <step>0.01</step>
      </constraints>
    </double>
    <double>
      <name>timeStep</name>
      <longflag>--timestep</longflag>
      <flag>t</flag>
      Time Step
      <description><![CDATA[A double value that regulates the numerical stability of the algorithm. It is safe to maintain the upper limit with the formulation given by Anisotropic Diffusion algorithm (See GradientAnisotropiDiffusionImageFilter in ITK documentation).]]></description>
      <default>0.0625</default>
      <constraints>
        <minimum>0.0015</minimum>
        <maximum>0.0625</maximum>
        <step>0.0001</step>
      </constraints>
    </double>
</parameters>
<parameters>
    Diffusion Parameters - Second Level
    <description><![CDATA[Defines the conductance]]></description>
    <float>
      <name>conductance</name>
      <longflag>--conductance</longflag>
      <flag>c</flag>
      Conductance
      <description><![CDATA[A float value for edge preservation adjustment.]]></description>
      <default>5</default>
    </float>
    <boolean>
	<name>useAutoConductance</name>
	<longflag>--useAutoConductance</longflag>
	<description><![CDATA[Choose if you want to use an automatic adjustment of conductance parameter. If this is checked, the inserted value is ignored and the optimization function below is used.]]></description>
	Use Automatic Conductance
	<default>false</default>
    </boolean>
    <string-enumeration>
      <name>optFunction</name>
	<longflag>--optFunction</longflag>
	<description><![CDATA[A set of optimization function for automatic estimation of conductance parameter. This is helpful is you do not have an initial guess on what value is appropriate to the conductance setting.]]></description>
	Optimization Function
	<default>Canny</default>
	<element>Canny</element>
   	<element>MAD</element>
	<element>Morphological</element>
    </string-enumeration>
    <boolean>
	<name>useConductanceRegularization</name>
	<longflag>--useKappaReg</longflag>
	<description><![CDATA[Choose if you want to use an conductance regularization factor in order to restrict the automatic conducante value. This is only used when the automatic conductance optimization is used.]]></description>
	Use Conductance Regularization
	<default>false</default>
    </boolean>
    <float>
      <name>kappaRegFactor</name>
      <longflag>--regFactor</longflag>
      <flag>r</flag>
      Coductance Regularization Factor
      <description><![CDATA[A float value for coductance regularization factor.]]></description>
      <default>2.0</default>
    </float>
</parameters>
<parameters>
    Diffusion Parameters - Third Level
    <description><![CDATA[Defines the edge function used to preserve image global details.]]></description>
    <string-enumeration>
      <name>edgeFunction</name>
      <longflag>--edgeFunction</longflag>
      <flag>e</flag>
      <description><![CDATA[A set of function for anisotropic smoothing modulation. The type of edge function chosen here depends on the edge characteristics of the image, which sharp good quality images can have more abrupt edge functions and less detailed edge quality images can use more soft decay.]]></description>
      Edge Function
      <default>Exponential</default>
      <element>Exponential</element>
      <element>Fractional</element>
      <element>Logistic</element>
    </string-enumeration>
    <double>
      <name>homoLevel</name>
      <longflag>--homogeneity</longflag>
      Homogeneity Level
      <description><![CDATA[A double value that regulates how much the logistic curve will smooth the non-edge structures in the image. Value close to 1.0 will strongly smooth those homogenous ares in the image, which, on the other hand, values close to 0.5 will flat the contrast of the image (i.e. vanishs the image contrast levels)]]></description>
      <default>0.98</default>
      <constraints>
        <minimum>0.5</minimum>
        <maximum>0.999</maximum>
        <step>0.001</step>
      </constraints>
    </double>
</parameters>
</executable>


text:
#pragma once
#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
#include <sstream>
#include <functional>

namespace cli {
	struct CallbackArgs {
		const std::vector<std::string>& arguments;
		std::ostream& output;
		std::ostream& error;
	};
	class Parser {
	private:
		class CmdBase {
		public:
			explicit CmdBase(const std::string& name, const std::string& alternative, const std::string& description, bool required) :
				name(name),
				command(name.size() > 0 ? "-" + name : ""),
				alternative(alternative.size() > 0 ? "--" + alternative : ""),
				description(description),
				required(required),
				handled(false),
				arguments({}) {
			}

			virtual ~CmdBase() {
			}

			std::string name;
			std::string command;
			std::string alternative;
			std::string description;
			bool required;
			bool handled;
			std::vector<std::string> arguments;

			virtual std::string print_value() const = 0;
			virtual bool parse(std::ostream& output, std::ostream& error) = 0;

			bool is(const std::string& given) const {
				return given == command || given == alternative;
			}
		};

		template<typename T>
		class CmdFunction final : public CmdBase {
		public:
			explicit CmdFunction(const std::string& name, const std::string& alternative, const std::string& description, bool required) :
				CmdBase(name, alternative, description, required) {
			}

			virtual bool parse(std::ostream& output, std::ostream& error) {
				try {
					CallbackArgs args { arguments, output, error };
					value = callback(args);
					return true;
				} catch (...) {
					return false;
				}
			}

			virtual std::string print_value() const {
				return "";
			}

			std::function<T(CallbackArgs&)> callback;
			T value;
		};

		template<typename T>
		class CmdArgument final : public CmdBase {
		public:
			explicit CmdArgument(const std::string& name, const std::string& alternative, const std::string& description, bool required) :
				CmdBase(name, alternative, description, required) {
			}

			virtual bool parse
				(std::ostream& /*output*/, std::ostream& /*error*/) {
				try {
					value = Parser::parse(arguments, value);
					return true;
				} catch (...) {
					return false;
				}
			}

			virtual std::string print_value() const {
				return stringify(value);
			}

			T value;
		};

		static int parse(const std::vector<std::string>& elements, const int&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return std::stoi(elements[0]);
		}

		static bool parse(const std::vector<std::string>& elements, const bool& defval) {
			if (elements.size() != 0)
				throw std::runtime_error("A boolean command line parameter cannot have any arguments.");

			return !defval;
		}

		static double parse(const std::vector<std::string>& elements, const double&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return std::stod(elements[0]);
		}

		static float parse(const std::vector<std::string>& elements, const float&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return std::stof(elements[0]);
		}

		static long double parse(const std::vector<std::string>& elements, const long double&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return std::stold(elements[0]);
		}

		static unsigned int parse(const std::vector<std::string>& elements, const unsigned int&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return static_cast<unsigned int>(std::stoul(elements[0]));
		}

		static unsigned long parse(const std::vector<std::string>& elements, const unsigned long&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return std::stoul(elements[0]);
		}

		static long parse(const std::vector<std::string>& elements, const long&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return std::stol(elements[0]);
		}

		static std::string parse(const std::vector<std::string>& elements, const std::string&) {
			if (elements.size() != 1)
				throw std::bad_cast();

			return elements[0];
		}

		template<class T>
		static std::vector<T> parse(const std::vector<std::string>& elements, const std::vector<T>&) {
			//const T defval = 0;
			T const defval{};
			std::vector<T> values { };
			std::vector<std::string> buffer(1);

			for (const auto& element : elements) {
				buffer[0] = element;
				values.push_back(parse(buffer, defval));
			}

			return values;
		}

		template<class T>
		static std::string stringify(const T& value) {
			return std::to_string(value);
		}

		template<class T>
		static std::string stringify(const std::vector<T>& values) {
			std::stringstream ss { };
			ss << "[ ";

			for (const auto& value : values) {
				ss << stringify(value) << " ";
			}

			ss << "]";
			return ss.str();
		}

		static std::string stringify(const std::string& str) {
			return str;
		}

	public:
		explicit Parser(int argc, const char* const * const argv) :
			_appname(argv[0]) {
			for (int i = 1; i < argc; ++i) {
				_arguments.push_back(argv[i]);
			}
			enable_help();
		}

		explicit Parser(int argc, char** argv) :
			_appname(argv[0]) {
			for (int i = 1; i < argc; ++i) {
				_arguments.push_back(argv[i]);
			}
			enable_help();
		}

		~Parser() {
			for (int i = 0, n = _commands.size(); i < n; ++i) {
				delete _commands[i];
			}
		}

		bool has_help() const {
			for (const auto command : _commands) {
				if (command->name == "h" && command->alternative == "--help") {
					return true;
				}
			}

			return false;
		}

		void enable_help() {
			set_callback("h", "help", std::function<bool(CallbackArgs&)>([this](CallbackArgs& args){
				args.output << this->usage();
				exit(0);
				return false;
			}));
		}

		void disable_help() {
			for (auto command = _commands.begin(); command != _commands.end(); ++command) {
				if ((*command)->name == "h" && (*command)->alternative == "--help") {
					_commands.erase(command);
					break;
				}
			}
		}

		template<typename T>
		void set_default(bool is_required, const std::string& description = "") {
			auto command = new CmdArgument<T> { "", "", description, is_required };
			_commands.push_back(command);
		}

		template<typename T>
		void set_required(const std::string& name, const std::string& alternative, const std::string& description = "") {
			auto command = new CmdArgument<T> { name, alternative, description, true };
			_commands.push_back(command);
		}

		template<typename T>
		void set_optional(const std::string& name, const std::string& alternative, T defaultValue, const std::string& description = "") {
			auto command = new CmdArgument<T> { name, alternative, description, false };
			command->value = defaultValue;
			_commands.push_back(command);
		}

		template<typename T>
		void set_callback(const std::string& name, const std::string& alternative, std::function<T(CallbackArgs&)> callback, const std::string& description = "") {
			auto command = new CmdFunction<T> { name, alternative, description, false };
			command->callback = callback;
			_commands.push_back(command);
		}

		inline void run_and_exit_if_error() {
			if (run() == false) {
				exit(1);
			}
		}

		inline bool run() {
			return run(std::cout, std::cerr);
		}

		inline bool run(std::ostream& output) {
			return run(output, std::cerr);
		}

		bool run(std::ostream& output, std::ostream& error) {
			if (_arguments.size() > 0) {
				auto current = find_default();

				for (int i = 0, n = _arguments.size(); i < n; ++i) {
					auto isarg = _arguments[i].size() > 0 && _arguments[i][0] == '-';
					auto associated = isarg ? find(_arguments[i]) : nullptr;

					if (associated != nullptr) {
						current = associated;
						associated->handled = true;
					} else if (current == nullptr) {
						error << no_default();
						return false;
					} else {
						current->arguments.push_back(_arguments[i]);
					}
				}
			}

			for (auto command : _commands) {
				if (command->required && !command->handled) {
					if (has_help()) {
						error << usage();
						return false;
					}
					else {
						error << howto_required(command);
						return false;
					}
				}
			}

			for (auto command : _commands) {
				if (command->handled && !command->parse(output, error)) {
					error << howto_use(command);
					return false;
				}
			}

			return true;
		}

		template<typename T>
		T get(const std::string& name) const {
			for (const auto& command : _commands) {
				if (command->name == name) {
					auto cmd = dynamic_cast<CmdArgument<T>*>(command);

					if (cmd == nullptr) {
						throw std::runtime_error("Invalid usage of the parameter " + name + " detected.");
					}

					return cmd->value;
				}
			}

			throw std::runtime_error("The parameter " + name + " could not be found.");
		}

		template<typename T>
		T get_if(const std::string& name, std::function<T(T)> callback) const {
			auto value = get<T>(name);
			return callback(value);
		}

		int requirements() const {
			int count = 0;

			for (const auto& command : _commands) {
				if (command->required) {
					++count;
				}
			}

			return count;
		}

		int commands() const {
			return static_cast<int>(_commands.size());
		}

		inline const std::string& app_name() const {
			return _appname;
		}

	protected:
		CmdBase* find(const std::string& name) {
			for (auto command : _commands) {
				if (command->is(name)) {
					return command;
				}
			}

			return nullptr;
		}

		CmdBase* find_default() {
			for (auto command : _commands) {
				if (command->name == "") {
					return command;
				}
			}

			return nullptr;
		}

		std::string usage() const {
			std::stringstream ss { };
			ss << "Available parameters:\n\n";

			for (const auto& command : _commands) {
				ss << "  " << command->command << "\t" << command->alternative;

				if (command->required == true) {
					ss << "\t(required)";
				}

				ss << "\n   " << command->description;

				if (command->required == false) {
					ss << "\n   " << "This parameter is optional. The default value is '" + command->print_value() << "'.";
				}

				ss << "\n\n";
			}

			return ss.str();
		}

		void print_help(std::stringstream& ss) const {
			if (has_help())  {
				ss << "For more help use --help or -h.\n";
			}
		}

		std::string howto_required(CmdBase* command) const {
			std::stringstream ss { };
			ss << "The parameter " << command->name << " is required.\n";
			ss << command->description << '\n';
			print_help(ss);
			return ss.str();
		}

		std::string howto_use(CmdBase* command) const {
			std::stringstream ss { };
			ss << "The parameter " << command->name << " has invalid arguments.\n";
			ss << command->description << '\n';
			print_help(ss);
			return ss.str();
		}

		std::string no_default() const {
			std::stringstream ss { };
			ss << "No default parameter has been specified.\n";
			ss << "The given argument must be used with a parameter.\n";
			print_help(ss);
			return ss.str();
		}

	private:
		const std::string _appname;
		std::vector<std::string> _arguments;
		std::vector<CmdBase*> _commands;
	};
}


text:
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.google.sheets.stream;

import java.util.Map;

import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.support.component.PropertyConfigurerSupport;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@SuppressWarnings("unchecked")
public class GoogleSheetsStreamComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    private org.apache.camel.component.google.sheets.stream.GoogleSheetsStreamConfiguration getOrCreateConfiguration(GoogleSheetsStreamComponent target) {
        if (target.getConfiguration() == null) {
            target.setConfiguration(new org.apache.camel.component.google.sheets.stream.GoogleSheetsStreamConfiguration());
        }
        return target.getConfiguration();
    }

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        GoogleSheetsStreamComponent target = (GoogleSheetsStreamComponent) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "accessToken": getOrCreateConfiguration(target).setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
        case "applicationname":
        case "applicationName": getOrCreateConfiguration(target).setApplicationName(property(camelContext, java.lang.String.class, value)); return true;
        case "autowiredenabled":
        case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "clientfactory":
        case "clientFactory": target.setClientFactory(property(camelContext, org.apache.camel.component.google.sheets.GoogleSheetsClientFactory.class, value)); return true;
        case "clientid":
        case "clientId": getOrCreateConfiguration(target).setClientId(property(camelContext, java.lang.String.class, value)); return true;
        case "clientsecret":
        case "clientSecret": getOrCreateConfiguration(target).setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
        case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.google.sheets.stream.GoogleSheetsStreamConfiguration.class, value)); return true;
        case "delegate": getOrCreateConfiguration(target).setDelegate(property(camelContext, java.lang.String.class, value)); return true;
        case "includegriddata":
        case "includeGridData": getOrCreateConfiguration(target).setIncludeGridData(property(camelContext, boolean.class, value)); return true;
        case "keyresource":
        case "keyResource": getOrCreateConfiguration(target).setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
        case "majordimension":
        case "majorDimension": getOrCreateConfiguration(target).setMajorDimension(property(camelContext, java.lang.String.class, value)); return true;
        case "maxresults":
        case "maxResults": getOrCreateConfiguration(target).setMaxResults(property(camelContext, int.class, value)); return true;
        case "range": getOrCreateConfiguration(target).setRange(property(camelContext, java.lang.String.class, value)); return true;
        case "refreshtoken":
        case "refreshToken": getOrCreateConfiguration(target).setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
        case "scopes": getOrCreateConfiguration(target).setScopes(property(camelContext, java.util.List.class, value)); return true;
        case "splitresults":
        case "splitResults": getOrCreateConfiguration(target).setSplitResults(property(camelContext, boolean.class, value)); return true;
        case "valuerenderoption":
        case "valueRenderOption": getOrCreateConfiguration(target).setValueRenderOption(property(camelContext, java.lang.String.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "accessToken": return java.lang.String.class;
        case "applicationname":
        case "applicationName": return java.lang.String.class;
        case "autowiredenabled":
        case "autowiredEnabled": return boolean.class;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return boolean.class;
        case "clientfactory":
        case "clientFactory": return org.apache.camel.component.google.sheets.GoogleSheetsClientFactory.class;
        case "clientid":
        case "clientId": return java.lang.String.class;
        case "clientsecret":
        case "clientSecret": return java.lang.String.class;
        case "configuration": return org.apache.camel.component.google.sheets.stream.GoogleSheetsStreamConfiguration.class;
        case "delegate": return java.lang.String.class;
        case "includegriddata":
        case "includeGridData": return boolean.class;
        case "keyresource":
        case "keyResource": return java.lang.String.class;
        case "majordimension":
        case "majorDimension": return java.lang.String.class;
        case "maxresults":
        case "maxResults": return int.class;
        case "range": return java.lang.String.class;
        case "refreshtoken":
        case "refreshToken": return java.lang.String.class;
        case "scopes": return java.util.List.class;
        case "splitresults":
        case "splitResults": return boolean.class;
        case "valuerenderoption":
        case "valueRenderOption": return java.lang.String.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        GoogleSheetsStreamComponent target = (GoogleSheetsStreamComponent) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "accessToken": return getOrCreateConfiguration(target).getAccessToken();
        case "applicationname":
        case "applicationName": return getOrCreateConfiguration(target).getApplicationName();
        case "autowiredenabled":
        case "autowiredEnabled": return target.isAutowiredEnabled();
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
        case "clientfactory":
        case "clientFactory": return target.getClientFactory();
        case "clientid":
        case "clientId": return getOrCreateConfiguration(target).getClientId();
        case "clientsecret":
        case "clientSecret": return getOrCreateConfiguration(target).getClientSecret();
        case "configuration": return target.getConfiguration();
        case "delegate": return getOrCreateConfiguration(target).getDelegate();
        case "includegriddata":
        case "includeGridData": return getOrCreateConfiguration(target).isIncludeGridData();
        case "keyresource":
        case "keyResource": return getOrCreateConfiguration(target).getKeyResource();
        case "majordimension":
        case "majorDimension": return getOrCreateConfiguration(target).getMajorDimension();
        case "maxresults":
        case "maxResults": return getOrCreateConfiguration(target).getMaxResults();
        case "range": return getOrCreateConfiguration(target).getRange();
        case "refreshtoken":
        case "refreshToken": return getOrCreateConfiguration(target).getRefreshToken();
        case "scopes": return getOrCreateConfiguration(target).getScopes();
        case "splitresults":
        case "splitResults": return getOrCreateConfiguration(target).isSplitResults();
        case "valuerenderoption":
        case "valueRenderOption": return getOrCreateConfiguration(target).getValueRenderOption();
        default: return null;
        }
    }

    @Override
    public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "scopes": return java.lang.String.class;
        default: return null;
        }
    }
}