text:
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

// The code for the TerrainTriangleSelector is based on the GeoMipMapSelector
// developed by Spintz. He made it available for Irrlicht and allowed it to be
// distributed under this licence. I only modified some parts. A lot of thanks go to him.

#ifndef __C_TERRAIN_TRIANGLE_SELECTOR_H__
#define __C_TERRAIN_TRIANGLE_SELECTOR_H__

#include "ITriangleSelector.h"
#include "irrArray.h"

namespace irr
{
namespace scene
{

class ITerrainSceneNode;

//! Triangle Selector for the TerrainSceneNode
/** The code for the TerrainTriangleSelector is based on the GeoMipMapSelector
developed by Spintz. He made it available for Irrlicht and allowed it to be
distributed under this licence. I only modified some parts. A lot of thanks go
to him.
*/
class CTerrainTriangleSelector : public ITriangleSelector
{
public:

	//! Constructs a selector based on an ITerrainSceneNode
	CTerrainTriangleSelector(ITerrainSceneNode* node, s32 LOD);

	//! Destructor
	virtual ~CTerrainTriangleSelector();

	//! Clears and sets triangle data
	virtual void setTriangleData (ITerrainSceneNode* node, s32 LOD);

	//! Gets all triangles.
	void getTriangles(core::triangle3df* triangles, s32 arraySize, s32& outTriangleCount,
		const core::matrix4* transform=0) const;

	//! Gets all triangles which lie within a specific bounding box.
	void getTriangles(core::triangle3df* triangles, s32 arraySize, s32& outTriangleCount,
		const core::aabbox3d<f32>& box, const core::matrix4* transform=0) const;

	//! Gets all triangles which have or may have contact with a 3d line.
	virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
		s32& outTriangleCount, const core::line3d<f32>& line,
		const core::matrix4* transform=0) const;

	//! Returns amount of all available triangles in this selector
	virtual s32 getTriangleCount() const;

	//! Return the scene node associated with a given triangle.
	virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const;

	// Get the number of TriangleSelectors that are part of this one
	virtual u32 getSelectorCount() const;

	// Get the TriangleSelector based on index based on getSelectorCount
	virtual ITriangleSelector* getSelector(u32 index);

	// Get the TriangleSelector based on index based on getSelectorCount
	virtual const ITriangleSelector* getSelector(u32 index) const;

private:

	friend class CTerrainSceneNode;

	struct SGeoMipMapTrianglePatch
	{
		core::array<core::triangle3df> Triangles;
		s32 NumTriangles;
		core::aabbox3df Box;
	};

	struct SGeoMipMapTrianglePatches
	{
		SGeoMipMapTrianglePatches() :
			NumPatches(0), TotalTriangles(0)
		{
		}

		core::array<SGeoMipMapTrianglePatch> TrianglePatchArray;
		s32 NumPatches;
		u32 TotalTriangles;
	};

	ITerrainSceneNode* SceneNode;
	SGeoMipMapTrianglePatches TrianglePatches;
};

} // end namespace scene
} // end namespace irr

#endif // __C_TERRAIN_TRIANGLE_SELECTOR_H__

redpajama_set_name: RedPajamaGithub


text:
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Windows.Forms;

namespace LogicAppTemplate
{
    [Cmdlet(VerbsCommon.Get, "IntegrationAccountMapTemplate", ConfirmImpact = ConfirmImpact.None)]
    public class GeneratorIAMapCmdlet : PSCmdlet
    {
        [Parameter(Mandatory = true, HelpMessage = "Name of the Artifact")]
        public string ArtifactName;

        [Parameter(Mandatory = false, HelpMessage = "Type of the Artifact - only Schemas/Maps are supported right now. Default is Map for backward compatibility")]
        public string ArtifactType;

        [Parameter(Mandatory = true, HelpMessage = "Name of the IntegrationAccount")]
        public string IntegrationAccount;

        [Parameter(Mandatory = true, HelpMessage = "Name of the Resource Group")]
        public string ResourceGroup;

        [Parameter(Mandatory = true, HelpMessage = "The SubscriptionId")]
        public string SubscriptionId;

        [Parameter(Mandatory = false, HelpMessage = "Name of the Tenant i.e. contoso.onmicrosoft.com")]
        public string TenantName = "";

        [Parameter(Mandatory = false, HelpMessage = "A Bearer token value")]
        public string Token = "";

        [Parameter(Mandatory = false, HelpMessage = "Piped input from armclient", ValueFromPipeline = true)]
        public string ClaimsDump;

        [Parameter(Mandatory = false, HelpMessage = "If set, result from rest interface will be saved to this folder")]
        public string DebugOutPutFolder = "";

        protected override void ProcessRecord()
        {
            AzureResourceCollector resourceCollector = new AzureResourceCollector();

            if (!string.IsNullOrEmpty(DebugOutPutFolder))
                resourceCollector.DebugOutputFolder = DebugOutPutFolder;

            if (ClaimsDump == null)
            {
                if (String.IsNullOrEmpty(Token))
                {
                    Token = resourceCollector.Login(TenantName);
                }
                else
                {
                    resourceCollector.token = Token;
                }
            }
            else if (ClaimsDump.Contains("Token copied"))
            {
                Token = Clipboard.GetText().Replace("Bearer ", "");
                resourceCollector.token = Token;
            }
            else
            {
                return;
            }

            IntegrationAccountGenerator generator = new IntegrationAccountGenerator(ArtifactName, IntegrationAccountGenerator.ARtifactType.Maps, IntegrationAccount, SubscriptionId, ResourceGroup, resourceCollector);

            try
            {

                JObject result = generator.GenerateTemplate().Result;
                WriteObject(result.ToString());
            }
            catch (Exception ex)
            {
                if (ex is AggregateException)
                {
                    StringBuilder sb = new StringBuilder();
                    sb.AppendLine("Aggregation exception thrown, se following exceptions for more information");
                    AggregateException ae = (AggregateException)ex;
                    foreach (var e in ae.InnerExceptions)
                    {
                        sb.AppendLine($"Exception: {e.Message}");
                        sb.AppendLine($"{e.StackTrace}");
                        sb.AppendLine("-------------------------------------------");
                    }
                    throw new Exception($"Aggregation Exception thrown, {ae.Message}, first Exception message is: {ae.InnerExceptions.First().Message}, for more information read the output file.");
                }
                else
                {
                    throw ex;
                }
            }
        }
    }
}


text:
require('iced-coffee-script').register();
var main = require('./jenky_server_main').main;
main()


text:
<!DOCTYPE html>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,user-scalable=no">
    <title>地图首页</title>
    <meta charset="utf-8" />
    <link href="../Content/bootstrap.min.css" rel="stylesheet" />
    <link href="../Content/bootstrap-datetimepicker.min.css" rel="stylesheet" />

        开始时间:<input type="text" ng-model="currentTimestart" readonly id="datetimepickerstart">
        结束时间:<input type="text" ng-model="currentTimeend" readonly id="datetimepickerend">

        车号: <input id="longitude" placeholder="please enter carid" type="text" ng-model="sId" style="width:150px; margin-right:10px;" />
        <input type="button" class="btn btn-primary" value="查询" ng-click="LoadTrack()" />


text:
extern "C" {
#include "math/m_xform.h"
#include "main/mtypes.h"
}

enum shaderAttribs_t{
   FRAG_ACTIVE = FRAG_ATTRIB_MAX+1,
   VERT_ACTIVE = VERT_ATTRIB_MAX+1
};

//called by gpgpusim
bool isDepthTestEnabled();

bool isBlendingEnabled();

void getBlendingMode(unsigned  * src, unsigned  * dst, unsigned* srcAlpha, unsigned * dstAlpha,
        unsigned* eqnRGB, unsigned* eqnAlpha, float * blendColor);

void graphics_gpgpusim_init_options(unsigned int startFrame, unsigned int endFrame, int start_frame, unsigned int end_frame,
        unsigned int tile_H, unsigned int tile_W, unsigned int block_H, unsigned int block_W,
        unsigned blendMode, unsigned depthMode, unsigned cptStartFrame, unsigned cptEndFrame, unsigned cptPeriod, bool skipCpFrames, char* outdir);

unsigned readMESABufferWidth();
unsigned readMESABufferSize();

//reading fragment attributes, used by the fragment shading stage
float readFragmentAttribs(unsigned threadID, unsigned attribID, unsigned attribIndex, void* stream);
int readFragmentAttribsInt(unsigned threadID, unsigned attribID, unsigned attribIndex, void* stream);
int readVertexAttribsInt(unsigned threadID, unsigned attribID, unsigned attribIndex, void* stream);

//copy the result data to the store object, this store object will be used by the rest of the pipeline in MESA (rasterization and fragment shading)
void writeVertexResult(unsigned threadID, unsigned resAttribID, unsigned attribIndex, float data);

//checks if a vertex finishes execution
void checkGraphicsThreadExit(void* kernelPtr, unsigned tid);

#endif


text:
package org.pm4j.common.modifications;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.pm4j.common.selection.ItemSetSelection;
import org.pm4j.common.util.collection.IterableUtil;
import org.pm4j.common.util.collection.ListUtil;

/**
 * Helper methods for {@link Modifications}.
 *
 * @author Olaf Boede
 */
public final class ModificationsUtil {

  /**
   * Converter used for
   * {@link ModificationsUtil#convertModifications(Modifications, Converter)}.
   *
   * Converts T1 to T2.
   */
  public interface Converter<T1, T2> {

    /**
     * @param src
     * @return The converted instance or null.

     *         null means that the item should not be reported as a
     *         modification.
     */
    T2 convert(T1 src);
  }

  /**
   * Converts {@link Modifications} reported for type T1 to
   * {@link Modifications} of T2 instances.
   *
   * @param src
   *          {@link Modifications} reported for T1
   * @param converter
   *          knows how to convert T1 to T2.

   *          Each convert() call that returns a null will not be
   *          added to the result.
   * @return corresponding {@link Modifications} reported for T2
   */
  public static <T1, T2> Modifications<T2> convertModifications(Modifications<T1> src, Converter<T1, T2> converter) {
    ModificationsImpl<T2> result = new ModificationsImpl<T2>();
    for (T1 t1 : src.getAddedItems()) {
      result.registerAddedItem(converter.convert(t1));
    }
    for (T1 t1 : src.getUpdatedItems()) {
      result.registerUpdatedItem(converter.convert(t1), true);
    }
    Set<T2> removedItems = new HashSet<T2>();
    for (T1 t1 : src.getRemovedItems()) {
      removedItems.add(converter.convert(t1));
    }
    result.setRemovedItems(new ItemSetSelection<T2>(removedItems));
    return result;
  }

  /**
   * Creates a {@link Modifications} instance using the given item sets.
   *
   * @param added the set of added items. May be null.
   * @param updated the set of updated items. May be null.
   * @param removed the set of removed items. May be null.
   * @return a {@link Modifications} instance.
   */
  public static <T> Modifications<T> createModfications(Collection<T> added, Collection<T> updated,
      Collection<T> removed) {
    ModificationsImpl<T> m = new ModificationsImpl<T>();
    registerAddedItems(m, added);
    registerUpdatedItems(m, updated);
    registerRemovedItems(m, removed);
    return m;
  }

  /**
   * @param modifications
   *          the {@link Modifications} to check
   * @param item
   *          the item to check
   * @return true if the item is registered as added, updated or
   *         removed item.
   */
  public static <T> boolean isModified(Modifications<T> modifications, T item) {
    return modifications.getAddedItems().contains(item)
        || modifications.getUpdatedItems().contains(item)
        || modifications.getRemovedItems().contains(item);
  }

  /**
   * @param modifications
   *          the modifications to change
   * @param items
   *          the items to register. May also be null.
   */
  public static <T> void registerAddedItems(ModificationsImpl<T> modifications, Iterable<T> items) {
    if (items != null) {
      for (T item : items) {
        modifications.registerAddedItem(item);
      }
    }
  }

  /**
   * @param modifications
   *          the modifications to change
   * @param items
   *          the items to register. May also be null.
   */
  public static <T> void registerUpdatedItems(ModificationsImpl<T> modifications, Iterable<T> items) {
    if (items != null) {
      for (T item : items) {
        modifications.registerUpdatedItem(item, true);
      }
    }
  }

  /**
   * @param modifications
   *          the modifications to change
   * @param items
   *          the items to register. May also be null.
   */
  public static <T> void registerRemovedItems(ModificationsImpl<T> modifications, Iterable<T> items) {
    if (items != null) {
      // XXX oboede: full iteration not really ok for very large selections.
      // not very likely but may get a problem when deleting thousands of items.
      List<T> removedItems = new ArrayList<T>(IterableUtil.asCollection(modifications.getRemovedItems()));
      removedItems.addAll(ListUtil.toList(items));
      modifications.setRemovedItems(new ItemSetSelection<T>(new HashSet<T>(removedItems)));
    }
  }

  /**
   * Aggregates a set of {@link Modifications} to a single {@link Modifications} instance.
   *
   * @param modificationSet
   *          the modifications to aggregate
   * @return a single instance containing all modification items
   */
  public static <T> Modifications<T> joinModifications(Collection<? extends Modifications<T>> modificationSet) {
    if (modificationSet.size() == 1) {
      return modificationSet.iterator().next();
    }

    ModificationsImpl<T> result = new ModificationsImpl<T>();
    for (Modifications<T> m : modificationSet) {
      registerAddedItems(result, m.getAddedItems());
      registerUpdatedItems(result, m.getUpdatedItems());
      registerRemovedItems(result, m.getRemovedItems());
    }
    return result;
  }

  private ModificationsUtil() {}

}


text:
void printLastError()
{
	printf("\nError %d;\n", GetLastError());
}


text:
(function ($) {

    'use strict';

    function init() {
        $('.js-accordion').on('click', '.js-accordion-toggler', function() {
            var $trigger = $(this);
            var $item = $trigger.closest('.js-accordion-item');
            var openClass = 'is-open';

            if ($item.hasClass(openClass)) {
                $item.removeClass(openClass);
            } else {
                $item.siblings().removeClass(openClass);
                $item.addClass(openClass);
            }
        });
    }

    $(document).ready(init);

}(jQuery));


text:
package com.jetbrains.env.ut;

import com.jetbrains.env.ProcessWithConsoleRunner;
import com.jetbrains.python.testing.universalTests.PyUniversalNoseTestConfiguration;
import com.jetbrains.python.testing.universalTests.PyUniversalNoseTestFactory;
import org.jetbrains.annotations.NotNull;

/**
 * {@link ProcessWithConsoleRunner} to run py nose
 *
 * @author Ilya.Kazakevich
 */
public class PyNoseTestProcessRunner extends PyScriptTestProcessRunner<PyUniversalNoseTestConfiguration> {
  public PyNoseTestProcessRunner(@NotNull final String scriptName, final int timesToRerunFailedTests) {
    super(PyUniversalNoseTestFactory.INSTANCE,
          PyUniversalNoseTestConfiguration.class, scriptName, timesToRerunFailedTests);
  }
}


text:
'use strict';
const https = require('https');
const opt = {
  host: process.env.URLHOST,
  port: '443',
  path: process.env.URLPATH,
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  }
};
//Note leave this comment here as a reminder that while lambda is not here to save state. If it is recalled fast enough it will
//Leaving the declaration outside the handler will allow it to maintain a closure which means each call to the function will still have the previous result stored in result
//Result can not be guaranteed to be reassigned unless it is assigned inside the handler
//let result = '';

exports.handler = function(event, context, cb) {
  let result = '';
  const email = event.email;
  const hash = JSON.stringify(event.hash);
  const req = https.request(opt, (res) => {
    res.setEncoding('utf8');
    res.on('data', (chunk) => {
      result += chunk;
    });
    res.on('end', () => {
      console.log(hash);
      console.log(result);
      cb(null, hash === result);
    });
  });
  req.write(JSON.stringify({"email": email}));
  req.end();
};


text:
/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package org.meraka.nchlt.woefzela;

public final class R {
    public static final class array {
        /**  Zulu
         */
        public static final int accentList=0x7f040001;
        public static final int areaList=0x7f040002;
        public static final int environmentList=0x7f040003;
        public static final int genderList=0x7f040000;
        public static final int skipReasonList=0x7f040004;
    }
    public static final class attr {
    }
    public static final class color {
        public static final int androidGrey1=0x7f050008;
        public static final int black=0x7f050004;
        public static final int green=0x7f050007;
        public static final int hltBlue=0x7f050003;
        /**  aaRRGGBB
         */
        public static final int hltGreen=0x7f050000;
        public static final int hltOrange=0x7f050002;
        public static final int hltRed=0x7f050001;
        public static final int red=0x7f050006;
        public static final int white=0x7f050005;
    }
    public static final class drawable {
        public static final int icon=0x7f020000;
    }
    public static final class id {
        public static final int bLoadProfile=0x7f08000e;
        public static final int bNext=0x7f080010;
        public static final int bPlayback=0x7f080014;
        public static final int bReadTerms=0x7f080028;
        public static final int bRecordStop=0x7f080013;
        public static final int bReset=0x7f08000f;
        public static final int bSkip=0x7f080015;
        public static final int cTerms=0x7f080029;
        public static final int eAgreedSessionFee=0x7f080035;
        public static final int eComments=0x7f080037;
        public static final int eFWEmail=0x7f08000b;
        public static final int eFWID=0x7f080007;
        public static final int eFWMobile=0x7f080009;
        public static final int eFWName=0x7f080003;
        public static final int eFWSurname=0x7f080005;
        public static final int eRespAge=0x7f08001e;
        public static final int eRespEmail=0x7f080022;
        public static final int eRespMobile=0x7f080020;
        public static final int eRespName=0x7f08001a;
        public static final int eRespSurname=0x7f08001c;
        public static final int sEnvironment=0x7f080033;
        public static final int spAccent=0x7f080024;
        public static final int spGender=0x7f080026;
        public static final int spRecordingLocationArea=0x7f080031;
        public static final int tAgreedSessionFee=0x7f080034;
        public static final int tComments=0x7f080036;
        public static final int tDateTime=0x7f080038;
        public static final int tDateTimeInfo=0x7f080039;
        public static final int tEnvironment=0x7f080032;
        public static final int tFWEmail=0x7f08000a;
        public static final int tFWID=0x7f080006;
        public static final int tFWMobile=0x7f080008;
        public static final int tFWName=0x7f080002;
        public static final int tFWProfile=0x7f08002c;
        public static final int tFWProfileKey=0x7f08002d;
        public static final int tFWSurname=0x7f080004;
        public static final int tFieldworkerInfo=0x7f080001;
        public static final int tProfileID=0x7f08000d;
        public static final int tProfileIDHeading=0x7f08000c;
        public static final int tProfileKey=0x7f08002a;
        public static final int tProgressStatusBar=0x7f080016;
        public static final int tPromptString=0x7f080012;
        public static final int tQCStatusBar=0x7f080017;
        public static final int tRecordingLocationArea=0x7f080030;
        public static final int tRespAccent=0x7f080023;
        public static final int tRespAge=0x7f08001d;
        public static final int tRespEmail=0x7f080021;
        public static final int tRespGender=0x7f080025;
        public static final int tRespMobile=0x7f08001f;
        public static final int tRespName=0x7f080019;
        public static final int tRespProfile=0x7f08002e;
        public static final int tRespProfileKey=0x7f08002f;
        public static final int tRespSurname=0x7f08001b;
        public static final int tRespondentInfo=0x7f080018;
        public static final int tSessionInfoHeading=0x7f08002b;
        public static final int tStatusBar=0x7f080011;
        public static final int tTerms=0x7f080027;
        public static final int texview=0x7f080000;
    }
    public static final class integer {
        public static final int TARGET_NUMBER_OF_LINES_TO_READ_RECORDING=0x7f060001;
        public static final int TARGET_NUMBER_OF_LINES_TO_READ_TRAINING=0x7f060000;
    }
    public static final class layout {
        public static final int blank=0x7f030000;
        public static final int fieldworker_profile=0x7f030001;
        public static final int main_recording_screen=0x7f030002;
        public static final int respondent_profile=0x7f030003;
        public static final int session_info=0x7f030004;
        public static final int splash=0x7f030005;
    }
    public static final class string {
        public static final int CORPUS_FILENAME_EXTENSION=0x7f070008;
        public static final int CORPUS_FOLDER_NAME=0x7f070002;
        public static final int CORPUS_POS_COUNTER_FILENAME_SUFFIX=0x7f07000a;
        public static final int CORPUS_WRAP_COUNTER_FILENAME_SUFFIX=0x7f07000b;
        public static final int DATA_OUTPUT_FOLDER_NAME=0x7f070001;
        public static final int EXTERNAL_ADVANCED_QC_SWITCH_FILENAME=0x7f07000d;
        public static final int EXTERNAL_TARGET_NUMBER_OF_LINES_TO_READ_RECORDING_FILENAME=0x7f07000c;
        public static final int PROFILE_FOLDER_FIELDWORKERS=0x7f070005;
        public static final int PROFILE_FOLDER_NAME=0x7f070003;
        public static final int PROFILE_FOLDER_RESPONDENTS=0x7f070006;
        public static final int PROFILE_FOLDER_SESSIONS=0x7f070007;
        public static final int PROGRAM_FOLDER_NAME=0x7f070000;
        public static final int TERMS_TEXT=0x7f07002a;
        public static final int TRACKING_FOLDER_NAME=0x7f070004;
        public static final int TRAINING_CORPUS_SUFFIX=0x7f070009;
        /**  TO MOVE
         */
        public static final int accentPrompt=0x7f070022;
        public static final int ageHintResp=0x7f07001b;
        /**  Application general
         */
        public static final int app_name=0x7f07000e;
        public static final int areaPrompt=0x7f070024;
        /**     	<string name="environment">Enviro</string>
    	<string name="sessionKey">Session key...</string>
    	<string name="trainingSession">Training session</string>
 Terms info
         */
        public static final int back=0x7f070029;
        public static final int commentPrompt=0x7f070027;
        public static final int emailHintFW=0x7f070018;
        public static final int emailHintResp=0x7f07001d;
        public static final int environmentPrompt=0x7f070025;
        public static final int feeHint=0x7f070026;
        public static final int genderPrompt=0x7f070023;
        public static final int idHintFW=0x7f070016;
        public static final int loadProfile=0x7f070010;
        public static final int mobileHintFW=0x7f070017;
        public static final int mobileHintResp=0x7f07001c;
        /**  Fieldworker profile
         */
        public static final int nameHintFW=0x7f070014;
        /**  Respondent profile
         */
        public static final int nameHintResp=0x7f070019;
        public static final int next=0x7f070012;
        public static final int nextWithCondition=0x7f070020;
        /**  Profiles common
 	    <string name="nameHint">Xolani Mandla</string>
	    <string name="surnameHint">Nelisiwe</string>
	    <string name="idHint">YYMMDDxxxxxxx</string>
	    <string name="mobileHint">0821234567</string>
	    <string name="emailHint">xnelisiwe@email.com</string>
         */
        public static final int profileKey=0x7f07000f;
        public static final int readTerms=0x7f07001e;
        public static final int reset=0x7f070011;
        public static final int sessionCreateDateTime=0x7f070028;
        public static final int statusText=0x7f070013;
        public static final int surnameHintFW=0x7f070015;
        public static final int surnameHintResp=0x7f07001a;
        /**  Session info
         */
        public static final int tSessionInfo=0x7f070021;
        public static final int termText=0x7f07001f;
    }
}


text:
/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.activiti.engine.impl;

import java.util.List;
import java.util.Map;

import org.activiti.engine.history.HistoricTaskInstance;
import org.activiti.engine.history.NativeHistoricTaskInstanceQuery;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.interceptor.CommandExecutor;

public class NativeHistoricTaskInstanceQueryImpl extends AbstractNativeQuery<NativeHistoricTaskInstanceQuery, HistoricTaskInstance> implements NativeHistoricTaskInstanceQuery {

  private static final long serialVersionUID = 1L;

  public NativeHistoricTaskInstanceQueryImpl(CommandContext commandContext) {
    super(commandContext);
  }

  public NativeHistoricTaskInstanceQueryImpl(CommandExecutor commandExecutor) {
    super(commandExecutor);
  }

 //results ////////////////////////////////////////////////////////////////

  public List<HistoricTaskInstance> executeList(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) {
    return commandContext
      .getHistoricTaskInstanceEntityManager()
      .findHistoricTaskInstancesByNativeQuery(parameterMap, firstResult, maxResults);
  }

  public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) {
    return commandContext
      .getHistoricTaskInstanceEntityManager()
      .findHistoricTaskInstanceCountByNativeQuery(parameterMap);
  }

}


text:
import { AppPage } from './app.po';

describe('inject-poc App', () => {
  let page: AppPage;

  beforeEach(() => {
    page = new AppPage();
  });

  it('should display welcome message', () => {
    page.navigateTo();
    expect(page.getParagraphText()).toEqual('Welcome to app!');
  });
});


text:
<?xml version="1.0" encoding="UTF-8"?>
<project name="BUG3056939_PDF" default="BUG3056939" basedir=".">
   <dirname property="test.basedir" file="${ant.file.BUG3056939_PDF}"/>
   <property name="test.name" value="1.5.2_M4_BUG3056939"/>
   <property name="dita.dir" location="${test.basedir}/../.."/>
   <property name="temp.dir" location="${dita.dir}/temp/${test.name}"/>
   <property name="result.dir" location="${dita.dir}/testresult/${test.name}"/>
  <target name="BUG3056939" if="run.xhtml" unless="skip.xhtml">
      <ant antfile="${dita.dir}/build.xml" target="init">
         <property name="args.input" location="${test.basedir}/src/test-conref-xref-keyref-bug.ditamap"/>
         <property name="dita.temp.dir" location="${temp.dir}/xhtml"/>
         <property name="output.dir" location="${result.dir}/xhtml"/>
         <property name="transtype" value="xhtml"/>
         <property name="clean.temp" value="no"/>
      </ant>
   </target>
</project>


text:
/* file: removeFacebookAppendedHash.js */
/*!
 * Copyright 2017 ikarus512
 * https://github.com/ikarus512/fcc1.git
 */

/**
 * @namespace a_other
 * @desc non-angular functions
 * @memberOf clients.Modules
 */

/**
 * @classdesc Remove Facebook appended hash
 * @class
 * @name removeFacebookAppendedHash
 * @memberOf clients.Modules.a_other
 */
$(document).ready(function() {
    if (window.location.hash && window.location.hash === '#_=_') {
        if (window.history && history.pushState) {
            window.history.pushState('', document.title, window.location.pathname);
        } else {
            // Prevent scrolling by storing the page's current scroll offset
            var scroll = {
                top: document.body.scrollTop,
                left: document.body.scrollLeft
            };
            window.location.hash = '';
            // Restore the scroll offset, should be flicker free
            document.body.scrollTop = scroll.top;
            document.body.scrollLeft = scroll.left;
        }
    }
});


text:
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:initialLayout="@layout/widget"
    android:minWidth="250dip"
    android:minHeight="110dip"
    android:updatePeriodMillis="7200000"
    android:resizeMode="horizontal|vertical"
    android:widgetCategory="home_screen|keyguard"
    android:previewImage="@drawable/preview_image"
    android:configure="dixi.soft.fx_watcher.main.UserDataDialogActivity">
</appwidget-provider>


text:
package org.zakariya.stickyheadersapp.model;

public class DemoModel {
	        private String title;
			private String description;
			private Class activityClass;

			public DemoModel(String title, String description, Class activityClass) {
				this.title = title;
				this.description = description;
				this.activityClass = activityClass;
			}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Class getActivityClass() {
		return activityClass;
	}

	public void setActivityClass(Class activityClass) {
		this.activityClass = activityClass;
	}
}