text:
package cucumber.runtime.formatter;

import cucumber.runtime.CucumberException;
import cucumber.runtime.io.URLOutputStream;
import cucumber.runtime.io.UTF8OutputStreamWriter;
import gherkin.formatter.Formatter;
import gherkin.formatter.Reporter;
import gherkin.formatter.model.Background;
import gherkin.formatter.model.Examples;
import gherkin.formatter.model.Feature;
import gherkin.formatter.model.Match;
import gherkin.formatter.model.Result;
import gherkin.formatter.model.Scenario;
import gherkin.formatter.model.ScenarioOutline;
import gherkin.formatter.model.Step;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

class TestNGFormatter implements Formatter, Reporter, StrictAware {

    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
    private final Writer writer;
    private final Document document;
    private final Element results;
    private final Element suite;
    private final Element test;
    private Element clazz;
    private Element root;
    private TestMethod testMethod;

    public TestNGFormatter(URL url) throws IOException {
        this.writer = new UTF8OutputStreamWriter(new URLOutputStream(url));
        TestMethod.treatSkippedAsFailure = false;
        try {
            document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
            results = document.createElement("testng-results");
            suite = document.createElement("suite");
            test = document.createElement("test");
            suite.appendChild(test);
            results.appendChild(suite);
            document.appendChild(results);
        } catch (ParserConfigurationException e) {
            throw new CucumberException("Error initializing DocumentBuilder.", e);
        }
    }

    @Override
    public void syntaxError(String state, String event, List<String> legalEvents, String uri, Integer line) {
    }

    @Override
    public void setStrict(boolean strict) {
        TestMethod.treatSkippedAsFailure = strict;
    }

    @Override
    public void uri(String uri) {
    }

    @Override
    public void feature(Feature feature) {
        TestMethod.feature = feature;
        TestMethod.previousScenarioOutlineName = "";
        TestMethod.exampleNumber = 1;
        clazz = document.createElement("class");
        clazz.setAttribute("name", feature.getName());
        test.appendChild(clazz);
    }

    @Override
    public void scenarioOutline(ScenarioOutline scenarioOutline) {
        testMethod = new TestMethod(null);
    }

    @Override
    public void examples(Examples examples) {
    }

    @Override
    public void startOfScenarioLifeCycle(Scenario scenario) {
        root = document.createElement("test-method");
        clazz.appendChild(root);
        testMethod = new TestMethod(scenario);
        testMethod.start(root);
    }

    @Override
    public void before(Match match, Result result) {
        testMethod.hooks.add(result);
    }

    @Override
    public void background(Background background) {
    }

    @Override
    public void scenario(Scenario scenario) {
    }

    @Override
    public void step(Step step) {
        testMethod.steps.add(step);
    }

    @Override
    public void match(Match match) {
    }

    @Override
    public void result(Result result) {
        testMethod.results.add(result);
    }

    @Override
    public void embedding(String mimeType, byte[] data) {
    }

    @Override
    public void write(String text) {
    }

    @Override
    public void after(Match match, Result result) {
        testMethod.hooks.add(result);
    }

    @Override
    public void endOfScenarioLifeCycle(Scenario scenario) {
        testMethod.finish(document, root);
    }

    @Override
    public void eof() {
    }

    @Override
    public void done() {
        try {
            results.setAttribute("total", String.valueOf(getElementsCountByAttribute(suite, "status", ".*")));
            results.setAttribute("passed", String.valueOf(getElementsCountByAttribute(suite, "status", "PASS")));
            results.setAttribute("failed", String.valueOf(getElementsCountByAttribute(suite, "status", "FAIL")));
            results.setAttribute("skipped", String.valueOf(getElementsCountByAttribute(suite, "status", "SKIP")));
            suite.setAttribute("name", TestNGFormatter.class.getName());
            suite.setAttribute("duration-ms", getTotalDuration(suite.getElementsByTagName("test-method")));
            test.setAttribute("name", TestNGFormatter.class.getName());
            test.setAttribute("duration-ms", getTotalDuration(suite.getElementsByTagName("test-method")));

            Transformer transformer = TransformerFactory.newInstance().newTransformer();
            transformer.setOutputProperty(OutputKeys.INDENT, "yes");
            StreamResult streamResult = new StreamResult(writer);
            DOMSource domSource = new DOMSource(document);
            transformer.transform(domSource, streamResult);
        } catch (TransformerException e) {
            throw new CucumberException("Error transforming report.", e);
        }
    }

    @Override
    public void close() {
    }

    private int getElementsCountByAttribute(Node node, String attributeName, String attributeValue) {
        int count = 0;

        for (int i = 0; i < node.getChildNodes().getLength(); i++) {
            count += getElementsCountByAttribute(node.getChildNodes().item(i), attributeName, attributeValue);
        }

        NamedNodeMap attributes = node.getAttributes();
        if (attributes != null) {
            Node namedItem = attributes.getNamedItem(attributeName);
            if (namedItem != null && namedItem.getNodeValue().matches(attributeValue)) {
                count++;
            }
        }

        return count;
    }

    private String getTotalDuration(NodeList testCaseNodes) {
        long totalDuration = 0;
        for (int i = 0; i < testCaseNodes.getLength(); i++) {
            try {
                String duration = testCaseNodes.item(i).getAttributes().getNamedItem("duration-ms").getNodeValue();
                totalDuration += Long.parseLong(duration);
            } catch (NumberFormatException e) {
                throw new CucumberException(e);
            } catch (NullPointerException e) {
                throw new CucumberException(e);
            }
        }
        return String.valueOf(totalDuration);
    }

    private static class TestMethod {

        static Feature feature;
        static boolean treatSkippedAsFailure = false;
        static String previousScenarioOutlineName;
        static int exampleNumber;
        final List<Step> steps = new ArrayList<Step>();
        final List<Result> results = new ArrayList<Result>();
        final List<Result> hooks = new ArrayList<Result>();
        final Scenario scenario;

        private TestMethod(Scenario scenario) {
            this.scenario = scenario;
        }

        private void start(Element element) {
            element.setAttribute("name", calculateElementName(scenario));
            element.setAttribute("started-at", DATE_FORMAT.format(new Date()));
        }

        private String calculateElementName(Scenario scenario) {
            String scenarioName = scenario.getName();
            if (scenario.getKeyword().equals("Scenario Outline") && scenarioName.equals(previousScenarioOutlineName)) {
                return scenarioName + "_" + ++exampleNumber;
            } else {
                previousScenarioOutlineName = scenario.getKeyword().equals("Scenario Outline") ? scenarioName : "";
                exampleNumber = 1;
                return scenarioName;
            }
         }

        public void finish(Document doc, Element element) {
            element.setAttribute("duration-ms", calculateTotalDurationString());
            element.setAttribute("finished-at", DATE_FORMAT.format(new Date()));
            StringBuilder stringBuilder = new StringBuilder();
            addStepAndResultListing(stringBuilder);
            Result skipped = null;
            Result failed = null;
            for (Result result : results) {
                if ("failed".equals(result.getStatus())) {
                    failed = result;
                }
                if ("undefined".equals(result.getStatus()) || "pending".equals(result.getStatus())) {
                    skipped = result;
                }
            }
            for (Result result : hooks) {
                if (failed == null && "failed".equals(result.getStatus())) {
                    failed = result;
                }
            }
            if (failed != null) {
                element.setAttribute("status", "FAIL");
                StringWriter stringWriter = new StringWriter();
                failed.getError().printStackTrace(new PrintWriter(stringWriter));
                Element exception = createException(doc, failed.getError().getClass().getName(), stringBuilder.toString(), stringWriter.toString());
                element.appendChild(exception);
            } else if (skipped != null) {
                if (treatSkippedAsFailure) {
                    element.setAttribute("status", "FAIL");
                    Element exception = createException(doc, "The scenario has pending or undefined step(s)", stringBuilder.toString(), "The scenario has pending or undefined step(s)");
                    element.appendChild(exception);
                } else {
                    element.setAttribute("status", "SKIP");
                }
            } else {
                element.setAttribute("status", "PASS");
            }
        }

        private String calculateTotalDurationString() {
            long totalDurationNanos = 0;
            for (Result r : results) {
                totalDurationNanos += r.getDuration() == null ? 0 : r.getDuration();
            }
            for (Result r : hooks) {
                totalDurationNanos += r.getDuration() == null ? 0 : r.getDuration();
            }
            return String.valueOf(totalDurationNanos / 1000000);
        }

        private void addStepAndResultListing(StringBuilder sb) {
            for (int i = 0; i < steps.size(); i++) {
                int length = sb.length();
                String resultStatus = "not executed";
                if (i < results.size()) {
                    resultStatus = results.get(i).getStatus();
                }
                sb.append(steps.get(i).getKeyword());
                sb.append(steps.get(i).getName());
                do {
                    sb.append(".");
                } while (sb.length() - length < 76);
                sb.append(resultStatus);
                sb.append("\n");
            }
        }

        private Element createException(Document doc, String clazz, String message, String stacktrace) {
            Element exceptionElement = doc.createElement("exception");
            exceptionElement.setAttribute("class", clazz);

            if (message != null) {
                Element messageElement = doc.createElement("message");
                messageElement.appendChild(doc.createCDATASection(message));
                exceptionElement.appendChild(messageElement);
            }

            Element stacktraceElement = doc.createElement("full-stacktrace");
            stacktraceElement.appendChild(doc.createCDATASection(stacktrace));
            exceptionElement.appendChild(stacktraceElement);

            return exceptionElement;
        }
    }
}


text:
class ApplicationController < ActionController::Base
  include RoutingConcern
  include CachingConcern
  include PersistenceConcern

  ## Callback
  before_action :capture_referrer_id
  after_action :set_csrf_cookie_for_ng

  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :null_session

  def set_csrf_cookie_for_ng
    cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
  end

  def resource_name
    :user
  end

  def resource
    @resource ||= User.new
  end

  def devise_mapping
    @devise_mapping ||= Devise.mappings[:user]
  end

  helper_method :resource, :resource_name, :devise_mapping

  def devise_parameter_sanitizer
    if resource_class == User
      UserParameterSanitizer.new(User, :user, params)
    else
      super # Use the default one
    end
  end

  def verified_request?
    super || valid_authenticity_token?(session, request.headers['X-XSRF-TOKEN'])
  end

  def hide_navs
    @hide_navs = true
  end

  def load_challenge
    @challenge = Challenge.find(params[:challenge_id])
  end

  private

  def capture_referrer_id
    session[:referrer_id] = params[:referrer_id] if params[:referrer_id]
  end

  def object_flash_message_for(object, options = {})
    if object.destroyed_at?
      action = I18n.t('controllers.application.deleted')
    else
      if %w(experience idea recipe).include?(object.class.to_s.downcase)
        if object.published_at?
          action = if object.created_at == object.updated_at
                     I18n.t('controllers.application.shared')
                   else
                     options[:published] ? I18n.t('controllers.application.published') : I18n.t('controllers.application.updated')
                   end
        else
          action = object.created_at == object.updated_at ? I18n.t('controllers.application.saved_draft') : I18n.t('controllers.application.updated_draft')
        end
      else
        action = object.created_at == object.updated_at ? I18n.t('controllers.application.shared') : I18n.t('controllers.application.updated')
      end
    end

    message = I18n.t('controllers.application.message',
                     action: action,
                     actionable: object.class.name.downcase,
                     url: user_path(object.user))

    return message
  rescue
  end
end

redpajama_set_name: RedPajamaGithub


text:
package org.apache.sanselan.common;

import java.util.ArrayList;

public interface IImageMetadata
{
	public String toString(String prefix);

	public ArrayList getItems();

	public interface IImageMetadataItem
	{
		public String toString(String prefix);

		public String toString();
	}
}


text:
package com.aspose.barcode.examples.barcode_recognition.loading_barcode_images;

import com.aspose.barcode.barcoderecognition.BarCodeReader;
import com.aspose.barcode.barcoderecognition.DecodeType;
import com.aspose.barcode.examples.Utils;

public class LoadingFromAFile {

	public static void main(String[] args) {
		// ExStart: LoadingFromAFile
		// The path to the resource directory.
		String dataDir = Utils.getDataDir(LoadingFromAFile.class) + "BarcodeReader/loading_images/";

		// Initialize bar code reader
		BarCodeReader reader = new BarCodeReader(dataDir + "CodeText.jpg");

		// OR

		// Initialize bar code reader
		BarCodeReader barcodeReader = new BarCodeReader(dataDir + "CodeText.jpg", DecodeType.CODE_39_EXTENDED);
		// ExEnd: LoadingFromAFile
	}

}


text:
<?xml version="1.0"?>
<InterchangeStudentAssessment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ed-fi.org/0100"
                                  xsi:schemaLocation="http://ed-fi.org/0100 ../../sli/edfi-schema/src/main/resources/edfiXsd-SLI/SLI-Interchange-AssessmentMetadata.xsd">
<Action ActionType="DELETE" Cascade="false" Force="true" LogViolations="true">

    <StudentAssessmentItem>
        <AssessmentResponse>true</AssessmentResponse>

        <ResponseIndicator>Nonscorable response</ResponseIndicator>

        <AssessmentItemResult>Correct</AssessmentItemResult>

        <RawScoreResult>68</RawScoreResult>

        <StudentAssessmentReference>
            <StudentAssessmentIdentity>
                <AdministrationDate>2001-09-04</AdministrationDate>
                <StudentReference>
                    <StudentIdentity>
                        <StudentUniqueStateId>1</StudentUniqueStateId>
                    </StudentIdentity>
                </StudentReference>
                <AssessmentReference>
                    <AssessmentIdentity>
                        <AssessmentTitle>2001-Ninth grade Assessment 1</AssessmentTitle>
                        <GradeLevelAssessed>Ninth grade</GradeLevelAssessed>
                    </AssessmentIdentity>
                </AssessmentReference>
            </StudentAssessmentIdentity>
        </StudentAssessmentReference>
        <AssessmentItemReference>
            <AssessmentItemIdentity>
                <AssessmentItemIdentificationCode>2001-Ninth grade Assessment 1#1</AssessmentItemIdentificationCode>
            </AssessmentItemIdentity>
        </AssessmentItemReference>
    </StudentAssessmentItem>

    </Action>
</InterchangeStudentAssessment>


text:
package org.spongepowered.common.mixin.core.world.biome;

import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeVoid;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.common.world.biome.SpongeBiomeGenerationSettings;

@Mixin(BiomeVoid.class)
public class MixinBiomeVoid extends MixinBiome {

    @Override
    public void buildPopulators(World world, SpongeBiomeGenerationSettings gensettings) {
        // no super call
    }
}


text:
//
//  XJJRefreshControl.m
//  XJJRefresh
//
//  Created by GaoDun on 15/11/19.
//  Copyright © 2015年 ljw. All rights reserved.
//

#import "XJJRefreshControl.h"
#import "UIScrollView+XJJRefresh.h"

/*
 ma dan 写得乱七八糟的!!!!!!!!!
 */

@implementation XJJRefreshControl

- (void)didOffsetChangedWithScrollViewScrollInfo:(UIScrollViewScrollInfo *)info
{

    //把控件放到最上面
    [info.scrollingScrollView bringSubviewToFront:self.xjj_refreshHeader];

    //如果不在刷新,且刷新控件不在可视范围内
    if (self.xjj_refreshHeader.refreshState != XJJRefreshStateRefreshing && info.newContentOffset.y >= -info.scrollingScrollView.contentInset.top) {
        self.xjj_refreshHeader.refreshState = XJJRefreshStateIdle;
        [self.xjj_refreshHeader didUpdateWithScrollInfo:info];
        return;
    }

    CGRect frame = info.scrollingScrollView.xjj_refreshHeader.frame;

    UIView<XJJRefreshHeader> *refresh = info.scrollingScrollView.xjj_refreshHeader;

    //是否不在刷新且正在拖拽
    if (refresh.refreshState != XJJRefreshStateRefreshing && info.scrollingScrollView.isDragging) {

        //position是否小于刷新时的position
        if (- info.newContentOffset.y - info.scrollingScrollView.contentInset.top < refresh.refreshingPosition.y + -refresh.startPosition.y) {
            info.scrollingScrollView.xjj_refreshHeader.refreshState = XJJRefreshStatePulling;
        }
        else
        {
            info.scrollingScrollView.xjj_refreshHeader.refreshState = XJJRefreshStateWillRefresh;
        }

    }
    //松手后如果是即将刷新的状态则开始刷新
    else if (refresh.refreshState == XJJRefreshStateWillRefresh)
    {

        refresh.refreshState = XJJRefreshStateRefreshing;
        if (refresh.refreshBlock) {
            refresh.refreshBlock();
        }
    }

    //没在刷新 且 超过refreshingPosition
//    NSLog(@"%lf", info.scrollingScrollView.contentInset.top);
    if (refresh.refreshState != XJJRefreshStateRefreshing && (- info.newContentOffset.y - info.scrollingScrollView.contentInset.top >= refresh.refreshingPosition.y + -refresh.startPosition.y)) {

        //固定住position
        frame.origin.y = info.scrollingScrollView.contentOffset.y + refresh.refreshingPosition.y;

        refresh.frame = frame;

    }

    //在刷新 且 超过刷新的position
    if (refresh.refreshState == XJJRefreshStateRefreshing &&  info.newContentOffset.y <= - info.scrollingScrollView.contentInset.top) {

        //固定住position
        frame.origin.y = info.scrollingScrollView.contentOffset.y + refresh.refreshingPosition.y;

        refresh.frame = frame;

        return;

    }

    [refresh didUpdateWithScrollInfo:info];

}

@end


text:
package org.biopax.paxtools.pattern.constraint;

import org.biopax.paxtools.pattern.Match;
import org.biopax.paxtools.model.BioPAXElement;
import org.biopax.paxtools.model.level3.Conversion;
import org.biopax.paxtools.model.level3.PhysicalEntity;

import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;

/**
 * Given Conversion and its one of the participants (at the left or right), traverses to the other
 * participants that are at the other side.
 *
 * var0 is a PE (PE1)
 * var1 is a Conv
 * var2 is a PE (PE2)
 *
 * Prerequisite: PE1 is either at left or right of Conv
 *
 * @deprecated
 * @see org.biopax.paxtools.pattern.constraint.ConversionSide
 *
 * @author Ozgun Babur
 */
public class OtherSide extends ConstraintAdapter
{
	/**
	 * Constructor.
	 */
	public OtherSide()
	{
		super(3);
	}

	/**
	 * This is a generative constraint.
	 * @return true
	 */
	@Override
	public boolean canGenerate()
	{
		return true;
	}

	/**
	 * Checks which side is the first PhysicalEntity, and gathers participants on the other side.
	 * @param match current pattern match
	 * @param ind mapped indices
	 * @return participants at the other side
	 */
	@Override
	public Collection<BioPAXElement> generate(Match match, int... ind)
	{
		assertIndLength(ind);

		PhysicalEntity pe1 = (PhysicalEntity) match.get(ind[0]);
		Conversion conv = (Conversion) match.get(ind[1]);

		if (conv.getLeft().contains(pe1))
		{
			return new HashSet<BioPAXElement>(conv.getRight());
		}
		else if (conv.getRight().contains(pe1))
		{
			return new HashSet<BioPAXElement>(conv.getLeft());
		}
		return Collections.emptySet();
	}
}


text:
package org.apache.ibatis.executor.statement;

import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.executor.ExecutorException;
import org.apache.ibatis.executor.parameter.ParameterHandler;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;

public class RoutingStatementHandler implements StatementHandler {

  private final StatementHandler delegate;

  public RoutingStatementHandler(Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) {

    switch (ms.getStatementType()) {
      case STATEMENT:
        delegate = new SimpleStatementHandler(executor, ms, parameter, rowBounds, resultHandler, boundSql);
        break;
      case PREPARED:
        delegate = new PreparedStatementHandler(executor, ms, parameter, rowBounds, resultHandler, boundSql);
        break;
      case CALLABLE:
        delegate = new CallableStatementHandler(executor, ms, parameter, rowBounds, resultHandler, boundSql);
        break;
      default:
        throw new ExecutorException("Unknown statement type: " + ms.getStatementType());
    }

  }

  public Statement prepare(Connection connection) throws SQLException {
    return delegate.prepare(connection);
  }

  public void parameterize(Statement statement) throws SQLException {
    delegate.parameterize(statement);
  }

  public void batch(Statement statement) throws SQLException {
    delegate.batch(statement);
  }

  public int update(Statement statement) throws SQLException {
    return delegate.update(statement);
  }

  public <E> List<E> query(Statement statement, ResultHandler resultHandler) throws SQLException {
    return delegate.<E>query(statement, resultHandler);
  }

  public BoundSql getBoundSql() {
    return delegate.getBoundSql();
  }

  public ParameterHandler getParameterHandler() {
    return delegate.getParameterHandler();
  }
}


text:
package org.docksidestage.compatible10x.dbflute.bsbhv.pmbean;

import java.util.*;

import org.dbflute.outsidesql.typed.*;
import org.dbflute.jdbc.*;
import org.dbflute.outsidesql.PmbCustodial;
import org.dbflute.util.DfTypeUtil;
import org.docksidestage.compatible10x.dbflute.allcommon.*;
import org.docksidestage.compatible10x.dbflute.exbhv.*;

/**
 * The base class for typed parameter-bean of PmCommentPossible.

 * This is related to "whitebox:pmcomment:selectPmCommentPossible" on MemberBhv.
 * @author DBFlute(AutoGenerator)
 */
public class BsPmCommentPossiblePmb implements ExecuteHandlingPmb<MemberBhv>, FetchBean {

    // ===================================================================================
    //                                                                           Attribute
    //                                                                           =========
    /** The parameter of string. */
    protected String _string;

    /** The parameter of integer. */
    protected Integer _integer;

    /** The parameter of bigDecimal. */
    protected java.math.BigDecimal _bigDecimal;

    /** The parameter of date. */
    protected Date _date;

    /** The parameter of timestamp. */
    protected java.sql.Timestamp _timestamp;

    /** The parameter of exists. */
    protected boolean _exists;

    /** The parameter of notExists. */
    protected boolean _notExists;

    /** The parameter of list. */
    protected List<String> _list;

    /** The parameter of map. */
    protected Map<String, Integer> _map;

    /** The parameter of cdef. */
    protected org.docksidestage.compatible10x.dbflute.allcommon.CDef _cdef;

    /** The max size of safety result. */
    protected int _safetyMaxResultSize;

    /** The time-zone for filtering e.g. from-to. (NullAllowed: if null, default zone) */
    protected TimeZone _timeZone;

    // ===================================================================================
    //                                                                         Constructor
    //                                                                         ===========
    /**
     * Constructor for the typed parameter-bean of PmCommentPossible.

     * This is related to "whitebox:pmcomment:selectPmCommentPossible" on MemberBhv.
     */
    public BsPmCommentPossiblePmb() {
    }

    // ===================================================================================
    //                                                                Typed Implementation
    //                                                                ====================
    /**
     * {@inheritDoc}
     */
    public String getOutsideSqlPath() { return "whitebox:pmcomment:selectPmCommentPossible"; }

    // ===================================================================================
    //                                                                       Safety Result
    //                                                                       =============
    /**
     * {@inheritDoc}
     */
    public void checkSafetyResult(int safetyMaxResultSize) {
        _safetyMaxResultSize = safetyMaxResultSize;
    }

    /**
     * {@inheritDoc}
     */
    public int getSafetyMaxResultSize() {
        return _safetyMaxResultSize;
    }

    // ===================================================================================
    //                                                                       Assist Helper
    //                                                                       =============
    // -----------------------------------------------------
    //                                                String
    //                                                ------
    protected String filterStringParameter(String value) { return isEmptyStringParameterAllowed() ? value : convertEmptyToNull(value); }
    protected boolean isEmptyStringParameterAllowed() { return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); }
    protected String convertEmptyToNull(String value) { return PmbCustodial.convertEmptyToNull(value); }

    // -----------------------------------------------------
    //                                                  Date
    //                                                  ----
    protected Date toUtilDate(Object date) { return PmbCustodial.toUtilDate(date, _timeZone); }

    // -----------------------------------------------------
    //                                    by Option Handling
    //                                    ------------------
    // might be called by option handling
    protected <NUMBER extends Number> NUMBER toNumber(Object obj, Class<NUMBER> type) { return PmbCustodial.toNumber(obj, type); }
    protected Boolean toBoolean(Object obj) { return PmbCustodial.toBoolean(obj); }
    @SuppressWarnings("unchecked")
    protected <ELEMENT> ArrayList<ELEMENT> newArrayList(ELEMENT... elements) { return PmbCustodial.newArrayList(elements); }

    // ===================================================================================
    //                                                                      Basic Override
    //                                                                      ==============
    /**
     * @return The display string of all parameters. (NotNull)
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append(DfTypeUtil.toClassTitle(this)).append(":");
        sb.append(xbuildColumnString());
        return sb.toString();
    }
    protected String xbuildColumnString() {
        final String dm = ", ";
        final StringBuilder sb = new StringBuilder();
        sb.append(dm).append(_string);
        sb.append(dm).append(_integer);
        sb.append(dm).append(_bigDecimal);
        sb.append(dm).append(PmbCustodial.formatUtilDate(_date, _timeZone, "yyyy-MM-dd"));
        sb.append(dm).append(_timestamp);
        sb.append(dm).append(_exists);
        sb.append(dm).append(_notExists);
        sb.append(dm).append(_list);
        sb.append(dm).append(_map);
        sb.append(dm).append(_cdef);
        if (sb.length() > 0) { sb.delete(0, dm.length()); }
        sb.insert(0, "{").append("}");
        return sb.toString();
    }

    // ===================================================================================
    //                                                                            Accessor
    //                                                                            ========
    /**
     * [get] string

     * @return The value of string. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public String getString() {
        return filterStringParameter(_string);
    }

    /**
     * [set] string

     * @param string The value of string. (NullAllowed)
     */
    public void setString(String string) {
        _string = string;
    }

    /**
     * [get] integer

     * @return The value of integer. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public Integer getInteger() {
        return _integer;
    }

    /**
     * [set] integer

     * @param integer The value of integer. (NullAllowed)
     */
    public void setInteger(Integer integer) {
        _integer = integer;
    }

    /**
     * [get] bigDecimal

     * @return The value of bigDecimal. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public java.math.BigDecimal getBigDecimal() {
        return _bigDecimal;
    }

    /**
     * [set] bigDecimal

     * @param bigDecimal The value of bigDecimal. (NullAllowed)
     */
    public void setBigDecimal(java.math.BigDecimal bigDecimal) {
        _bigDecimal = bigDecimal;
    }

    /**
     * [get] date

     * @return The value of date. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public Date getDate() {
        return toUtilDate(_date);
    }

    /**
     * [set] date

     * @param date The value of date. (NullAllowed)
     */
    public void setDate(Date date) {
        _date = date;
    }

    /**
     * [get] timestamp

     * @return The value of timestamp. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public java.sql.Timestamp getTimestamp() {
        return _timestamp;
    }

    /**
     * [set] timestamp

     * @param timestamp The value of timestamp. (NullAllowed)
     */
    public void setTimestamp(java.sql.Timestamp timestamp) {
        _timestamp = timestamp;
    }

    /**
     * [get] exists

     * @return The value of exists. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public boolean getExists() {
        return _exists;
    }

    /**
     * [set] exists

     * @param exists The value of exists. (NullAllowed)
     */
    public void setExists(boolean exists) {
        _exists = exists;
    }

    /**
     * [get] notExists

     * @return The value of notExists. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public boolean getNotExists() {
        return _notExists;
    }

    /**
     * [set] notExists

     * @param notExists The value of notExists. (NullAllowed)
     */
    public void setNotExists(boolean notExists) {
        _notExists = notExists;
    }

    /**
     * [get] list

     * @return The value of list. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public List<String> getList() {
        return _list;
    }

    /**
     * [set] list

     * @param list The value of list. (NullAllowed)
     */
    public void setList(List<String> list) {
        _list = list;
    }

    /**
     * [get] map

     * @return The value of map. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public Map<String, Integer> getMap() {
        return _map;
    }

    /**
     * [set] map

     * @param map The value of map. (NullAllowed)
     */
    public void setMap(Map<String, Integer> map) {
        _map = map;
    }

    /**
     * [get] cdef

     * @return The value of cdef. (NullAllowed, NotEmptyString(when String): if empty string, returns null)
     */
    public org.docksidestage.compatible10x.dbflute.allcommon.CDef getCdef() {
        return _cdef;
    }

    /**
     * [set] cdef

     * @param cdef The value of cdef. (NullAllowed)
     */
    public void setCdef(org.docksidestage.compatible10x.dbflute.allcommon.CDef cdef) {
        _cdef = cdef;
    }
}


text:
package com.mmall.dao;

import com.mmall.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int checkUsername(String username);

    int checkEmail(String email);

    User selectLogin(@Param("username") String username, @Param("password")String password);

    String selectQuestionByUsername(String username);

    int checkAnswer(@Param("username")String username,@Param("question")String question,@Param("answer")String answer);

    int updatePasswordByUsername(@Param("username")String username,@Param("passwordNew")String passwordNew);

    int checkPassword(@Param(value="password")String password,@Param("userId")Integer userId);

    int checkEmailByUserId(@Param(value="email")String email,@Param(value="userId")Integer userId);
}


text:
package com.ultimasquare.pinview;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.DialogInterface.OnKeyListener;
import android.view.KeyEvent;
import android.view.View;

public class ErrorAlert implements OnKeyListener{

  private Context mContext;

  public ErrorAlert(Context context) {
    mContext = context;
  }

public void showErrorDialog(final String title, final String message) {
    AlertDialog aDialog = new AlertDialog.Builder(mContext).setMessage(message).setTitle(title)
        .setNeutralButton("Close", new OnClickListener() {
          public void onClick(final DialogInterface dialog,
              final int which) {
            //Prevent to finish activity, if user clicks about.
            /*if (!title.equalsIgnoreCase("About") && !title.equalsIgnoreCase("Directory Error") && !title.equalsIgnoreCase("View")) {
              ((Activity) mContext).finish();
            }*/

          }
        }).create();
    aDialog.setOnKeyListener(this);
    aDialog.show();
  }

  @Override
  public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
    if(keyCode == KeyEvent.KEYCODE_BACK){
      //disable the back button
    }
    return true;
  }

}


text:
title: <%= hoc_s(:title_prizes_terms) %>
layout: wide
nav: prizes_nav

---

# Hadiah - syarat dan ketentuan

## Amazon.com, iTunes and Windows Store credit:

The Amazon.com, iTunes and Windows Store credit are limited to K-12 faculty, educators for afterschool clubs, and education organizations. $10 kredit harus ditambahkan ke akun yang ada, dan kredit akan berakhir setelah 1 tahun. Hanya dibatasi 1 bonus untuk setiap organisasi.

Every organizer must register for the Hour of Code in order to receive the Amazon.com, iTunes or Windows Store credit. Jika sekolahmu berpartisipasi dalam Hour of Code, setiap guru harus mendaftar secara individual untuk memenuhi syarat.

Code.org will contact organizers after the Hour of Code (Dec. 7-13) to provide instructions for redeeming Amazon.com, iTunes and Windows Store credit.

<% if @country == 'us' %>

## Satu set laptop untuk kelas (atau teknologi lain yang bernilai $10,000):

Hadiah terbatas untuk sekolah publik K-12 U.S. Untuk memenuhi syarat, sekolah anda harus mendaftar untuk Hour of Code sebelum 16 November 2015. Satu sekolah di setiap negara bagian di U.S. akan menerima satu set komputer untuk kelas. Code.org akan memilih dan memberitahukan pemenang melalui email paling lambat tanggal 1 Desember 2015.

Untuk memperjelas, ini bukanlah undian atau kontes melibatkan kesempatan murni.

1) Tidak resiko atau taruhan yang terlibat dalam pendaftaran - setiap sekolah atau kelas dapat berpartisipasi, tanpa pembayaran kepada Code.org atau organisasi lain

2) Pemenang hanya akan ditunjuk diantara kelas (atau sekolah) yang ikut serta dalam Hour of Code, yang melibatkan tes keterampilan kolektif pelajar dan guru.

<% end %>

<% if @country == 'us' || @country == 'ca' %>

## Percakapan video dengan seorang pembicara tamu:

Hadiah terbatas hanya pada kelas K-12 di U.S dan Kanada. Code.org akan secara acak memilih pemenang dari setiap sekolah, menyediakan waktu untuk web chat dan bekerja dengan guru yang bersangkutan untuk mengatur teknologi yang diperlukan. Seluruh isi sekolah Anda tidak perlu mengajukan permohonan untuk memenuhi syarat untuk hadiah ini. Both public and private schools are eligible to win.

<% end %>


text:
Sign In

Use your social account

Or your email

Oops, there was a problem signing in

{{message}}

            <form name="form" data-ng-submit="signin()" autocomplete="off">
                <fieldset>

                                <input type="email" id="email" name="email" class="form-control" data-ng-model="credentials.email" placeholder="email" required>

                            An email address is required

                                <input type="password" id="password" name="password" class="form-control" data-ng-model="credentials.password" placeholder="password" required>

                            A password is required

                        <button type="submit" class="btn btn-lg btn-primary" ng-disabled="form.$invalid">Sign in</button>

                        Forgot your password?   or
                        Sign up

                </fieldset>
            </form>


text:
\hypertarget{classSebastianBergmann_1_1Money_1_1MXN}{}\section{Sebastian\+Bergmann\textbackslash{}Money\textbackslash{}M\+X\+N Class Reference}
\label{classSebastianBergmann_1_1Money_1_1MXN}\index{Sebastian\+Bergmann\textbackslash{}\+Money\textbackslash{}\+M\+X\+N@{Sebastian\+Bergmann\textbackslash{}\+Money\textbackslash{}\+M\+X\+N}}
Inheritance diagram for Sebastian\+Bergmann\textbackslash{}Money\textbackslash{}M\+X\+N\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classSebastianBergmann_1_1Money_1_1MXN}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item
\hypertarget{classSebastianBergmann_1_1Money_1_1MXN_a3d7f16737b2cfe3509a88dccebcea96d}{}{\bfseries \+\_\+\+\_\+construct} (\$amount)\label{classSebastianBergmann_1_1Money_1_1MXN_a3d7f16737b2cfe3509a88dccebcea96d}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}

\subsection{Detailed Description}

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item
src/currency/M\+X\+N.\+php\end{DoxyCompactItemize}


text:
struct SPHParticle2d;

class SPHInteractor2d
{
public:
	virtual ~SPHInteractor2d() {};

	virtual void applyDensity( SPHParticle2d& other, glm::vec2 rvec )=0;
	virtual void applyForce( SPHParticle2d& other, glm::vec2 rvec )=0;
	virtual void enforceInteractor( SPHParticle2d& other, glm::vec2 rvec )=0;
	virtual glm::vec2 directionTo( SPHParticle2d& other )=0;
	virtual void draw()=0;
};

#endif


text:
package griffon.util;

import griffon.core.CallableWithArgs;
import groovy.lang.Closure;
import groovy.util.FactoryBuilderSupport;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.LinkedHashMap;
import java.util.Map;

import static griffon.util.GriffonNameUtils.isBlank;
import static java.util.Objects.requireNonNull;

/**
 * Helper class for constructing bindings between two objects.
 *
 * @author Andres Almiray
 * @since 2.0.0
 */
public class BindUtils {
    /**
     * Create a new Binding using a builder.
     */
    @Nonnull
    public static BindingBuilder binding() {
        return new BindingBuilder();
    }

    public static class BindingBuilder {
        private Object source;
        private Object target;
        private String sourceProperty;
        private String targetProperty;
        private CallableWithArgs<?> converter;
        private CallableWithArgs<?> validator;
        private boolean mutual;

        @Nonnull
        public BindingBuilder withSource(@Nullable Object source) {
            this.source = source;
            return this;
        }

        @Nonnull
        public BindingBuilder withTarget(@Nullable Object target) {
            this.target = target;
            return this;
        }

        @Nonnull
        public BindingBuilder withSourceProperty(@Nullable String sourceProperty) {
            this.sourceProperty = sourceProperty;
            return this;
        }

        @Nonnull
        public BindingBuilder withTargetProperty(@Nullable String targetProperty) {
            this.targetProperty = targetProperty;
            return this;
        }

        @Nonnull
        public BindingBuilder withConverter(@Nullable CallableWithArgs<?> converter) {
            this.converter = converter;
            return this;
        }

        @Nonnull
        public BindingBuilder withValidator(@Nullable CallableWithArgs<?> validator) {
            this.validator = validator;
            return this;
        }

        @Nonnull
        public BindingBuilder withMutual(boolean mutual) {
            this.mutual = mutual;
            return this;
        }

        public void make(@Nonnull FactoryBuilderSupport builder) {
            requireNonNull(builder, "Cannot make binding with a null builder!");
            requireNonNull(source, "Unspecified value for: source");
            requireNonNull(target, "Unspecified value for: target");

            Map<String, Object> attributes = new LinkedHashMap<>();

            if (isBlank(sourceProperty)) sourceProperty = targetProperty;
            if (isBlank(sourceProperty)) {
                throw new IllegalArgumentException("Unspecified values for: sourceProperty, targetProperty");
            }
            if (isBlank(targetProperty)) targetProperty = sourceProperty;

            attributes.put("source", source);
            attributes.put("target", target);
            attributes.put("sourceProperty", sourceProperty);
            attributes.put("targetProperty", targetProperty);
            attributes.put("mutual", mutual);

            if (converter != null) {
                attributes.put("converter", makeClosure(builder, converter));
            }
            if (validator != null) {
                attributes.put("validator", makeClosure(builder, validator));
            }

            builder.invokeMethod("bind", attributes);
        }

        private Closure<?> makeClosure(@Nonnull FactoryBuilderSupport builder, @Nonnull final CallableWithArgs<?> callback) {
            if (callback instanceof Closure) {
                return (Closure<?>) callback;
            }
            return new Closure<Object>(builder) {
                private static final long serialVersionUID = -4108869890482462552L;

                @Override
                public Object call(Object... args) {
                    return callback.call(args);
                }

                @Override
                public Object call(Object args) {
                    return callback.call(args);
                    // return callback.call(arguments != null && arguments.getClass().isArray() ? (Object[]) arguments : new Object[]{arguments});
                }
            };
        }
    }
}


text:
package org.apache.camel.component.bean;

import org.apache.camel.ContextTestSupport;
import org.apache.camel.builder.RouteBuilder;

public class BeanByteArrayBodyTest extends ContextTestSupport {

    public void testByteArray() throws Exception {
        byte[] bytes = new byte[]{65, 66, 67};

        getMockEndpoint("mock:result").expectedMessageCount(1);
        getMockEndpoint("mock:result").expectedHeaderReceived("foo", 3);

        template.sendBody("direct:start", bytes);

        assertMockEndpointsSatisfied();
    }

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("direct:start")
                    .log("Body is ${body} and of type ${in.body.getClass.getCanonicalName}")
                    .setHeader("foo", simple("${in.body.length}"))
                    .to("mock:result");
            }
        };
    }
}


text:
namespace Bridge.Google.Maps
{
    /// <summary>
    ///     This class is used to create a MapType that renders image tiles.
    /// </summary>
    [External]
    [ObjectLiteral]
    public class ImageMapTypeOptions
    {
        /// <summary>
        ///     Alt text to display when this MapType's button is hovered over in
        ///     the MapTypeControl.
        /// </summary>
        public string Alt;

        /// <summary>
        ///     Returns a string (URL) for given tile coordinate (x, y) and zoom
        ///     level.
        /// </summary>
        public GetTileUrlDelegate GetTileUrl;

        /// <summary>
        ///     The maximum zoom level for the map when displaying this MapType.
        /// </summary>
        public int MaxZoom;

        /// <summary>
        ///     The minimum zoom level for the map when displaying this MapType.
        ///     Optional.
        /// </summary>
        public int MinZoom;

        /// <summary>
        ///     Name to display in the MapTypeControl.
        /// </summary>
        public string Name;

        /// <summary>
        ///     The opacity to apply to the tiles. The opacity should be specified
        ///     as a float value between 0 and 1.0, where 0 is fully transparent
        ///     and 1 is fully opaque.
        /// </summary>
        public double Opacity;

        /// <summary>
        ///     The tile size.
        /// </summary>
        public Size TileSize;
    }
}


text:
using Serenity.Data;
using Serenity.Data.Mapping;
using System;
using System.Collections.Generic;

namespace Serenity.Test.Services
{
    public partial class MasterDetailRelationBehaviorTests
    {
        [ConnectionKey("Serenity")]
        public class Int32MasterRow : Row, IIdRow
        {
            [Identity]
            public Int32? ID
            {
                get { return Fields.ID[this]; }
                set { Fields.ID[this] = value; }
            }

            [NotNull]
            public String Name
            {
                get { return Fields.Name[this]; }
                set { Fields.Name[this] = value; }
            }

            [NotMapped, MinSelectLevel(SelectLevel.Details)]
            [MasterDetailRelation(foreignKey: "MasterID")]
            public List<Int32DetailRow> DetailList
            {
                get { return Fields.DetailList[this]; }
                set { Fields.DetailList[this] = value; }
            }

            public IIdField IdField
            {
                get
                {
                    return Fields.ID;
                }
            }

            public static RowFields Fields = new RowFields().Init();

            public Int32MasterRow()
                : base(Fields)
            {
            }

            public class RowFields : RowFieldsBase
            {
                public Int32Field ID;
                public StringField Name;
                public RowListField<Int32DetailRow> DetailList;

                public RowFields()
                    : base("Int32Master")
                {
                }
            }
        }
    }
}


text:
package com.hazelcast.monitor;

/**
 * Local map statistics. As everything is partitioned in Hazelcast,
 * each member owns 1/N (N being the number of members in the cluster)
 * entries of a distributed map. Each member also holds backup entries
 * of other members. LocalMapStats tells you the count of owned and backup
 * entries besides their size in memory.
 */
public interface LocalMapStats extends LocalInstanceStats {

    /**
     * Returns the number of entries owned by this member.
     *
     * @return number of entries owned by this member.
     */
    long getOwnedEntryCount();

    /**
     * Returns the number of backup entries hold by this member.
     *
     * @return number of backup entries hold by this member.
     */
    long getBackupEntryCount();

    /**
     * Returns the number of backups per entry.
     *
     * @return the number of backups per entry.
     */
    int getBackupCount();

    /**
     * Returns memory cost (number of bytes) of owned entries in this member.
     *
     * @return memory cost (number of bytes) of owned entries in this member.
     */
    long getOwnedEntryMemoryCost();

    /**
     * Returns memory cost (number of bytes) of backup entries in this member.
     *
     * @return memory cost (number of bytes) of backup entries in this member.
     */
    long getBackupEntryMemoryCost();

    /**
     * Returns the creation time of this map on this member.
     *
     * @return creation time of this map on this member.
     */
    long getCreationTime();

    /**
     * Returns the last access (read) time of the locally owned entries.
     *
     * @return last access (read) time of the locally owned entries.
     */
    long getLastAccessTime();

    /**
     * Returns the last update time of the locally owned entries.
     *
     * @return last update time of the locally owned entries.
     */
    long getLastUpdateTime();

    /**
     * Returns the number of hits (reads) of the locally owned entries.
     *
     * @return number of hits (reads) of the locally owned entries.
     */
    long getHits();

    /**
     * Returns the number of currently locked locally owned keys.
     *
     * @return number of locked entries.
     */
    long getLockedEntryCount();

    /**
     * Returns the number of entries that the member owns and are dirty (updated but not persisted yet).
     * dirty entry count is meaningful when there is a persistence defined.
     *
     * @return the number of dirty entries that the member owns
     */
    long getDirtyEntryCount();

    /**
     * Returns the number of put operations
     *
     * @return number of put operations
     */
    long getPutOperationCount();

    /**
     * Returns the number of get operations
     *
     * @return number of get operations
     */
    long getGetOperationCount();

    /**
     * Returns the number of Remove operations
     *
     * @return number of remove operations
     */
    long getRemoveOperationCount();

    /**
     * Returns the total latency of put operations. To get the average latency, divide by the number of puts
     *
     * @return the total latency of put operations
     */
    long getTotalPutLatency();

    /**
     * Returns the total latency of get operations. To get the average latency, divide by the number of gets
     *
     * @return the total latency of get operations
     */
    long getTotalGetLatency();

    /**
     * Returns the total latency of remove operations. To get the average latency, divide by the number of gets
     *
     * @return the total latency of remove operations
     */
    long getTotalRemoveLatency();

    /**
     * Returns the maximum latency of put operations.
     *
     * @return the maximum latency of put operations
     */
    long getMaxPutLatency();

    /**
     * Returns the maximum latency of get operations.
     *
     * @return the maximum latency of get operations
     */
    long getMaxGetLatency();

    /**
     * Returns the maximum latency of remove operations.
     *
     * @return the maximum latency of remove operations
     */
    long getMaxRemoveLatency();

    /**
     * Returns the number of Events Received
     *
     * @return number of events received
     */
    long getEventOperationCount();

    /**
     * Returns the total number of Other Operations
     *
     * @return number of other operations
     */
    long getOtherOperationCount();

    /**
     * Returns the total number of total operations
     *
     * @return number of total operations
     */
    long total();

    /**
     * Cost of map & Near Cache & backup in bytes
     * todo in object mode object size is zero.
     *
     * @return heap cost
     */
    long getHeapCost();

    /**
     * Returns statistics related to the Near Cache.
     *
     * @return statistics object for the Near Cache
     */
    NearCacheStats getNearCacheStats();

}


text:
var Element = require('./element');
var Equality = require('./equality');

exports.findElementIn = function findElementIn(haystack, needle, expect, options) {

    if (Equality.elementsMatch(haystack, needle, expect.equal.bind(expect), options)) {
        return true;
    }

    var found = false;
    var shouldNormalize = !options.exactly;

    if (haystack.props && haystack.props.children) {

        var children = Element.getChildrenArray(haystack.props.children, {
            normalize: shouldNormalize
        });

        children.forEach(function (child) {

            if (Equality.elementsMatch(child, needle, expect.equal.bind(expect), options)) {
                found = true;
                return;
            }

            if (findElementIn(child, needle, expect, options)) {
                found = true;
            }
        });
    }
    return found;
};


text:
namespace CSharpMath.Forms.Example.iOS {
  public class Application {
    // This is the main entry point of the application.
    static void Main(string[] args) =>
      // if you want to use a different Application Delegate class from "AppDelegate"
      // you can specify it here.
      UIKit.UIApplication.Main(args, null, "AppDelegate");
  }
}


text:
using System.Collections.Generic;
using System.ComponentModel;

namespace De.Osthus.Minerva.Core
{
    public interface IClientFilter<T> : INotifyClientFilterChanged
    {
        IList<T> Filter(IList<T> bOsToFilter);
    }
}


text:
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* Global defines needed by xpcom clients */

#ifndef _XPCOM_CONFIG_H_
#define _XPCOM_CONFIG_H_

/* Define this to throw() if the compiler complains about
 * constructors returning NULL
 */
#define CPP_THROW_NEW throw()

/* Define if the c++ compiler can resolve ambiguity with |using| */
/* #undef HAVE_CPP_AMBIGUITY_RESOLVING_USING */

/* Define if a dyanmic_cast to void* gives the most derived object */
/* #undef HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR */

/* Define to a string describing the XPCOM ABI in use */
#define TARGET_XPCOM_ABI "x86-msvc"

#endif /* _XPCOM_CONFIG_H_ */