text:
actions :create, :delete

default_action :create if defined?(default_action)

property :service_action, kind_of: [Symbol, Array], required: false, default: [:enable, :start]

property :agent_name, name_attribute: true, kind_of: String, required: false

property :user, kind_of: String, required: false, default: 'go'
property :group, kind_of: String, required: false, default: 'go'
property :go_server_url, kind_of: String, required: false, default: nil
property :daemon, kind_of: [TrueClass, FalseClass], required: false, default: node['gocd']['agent']['daemon']
property :vnc, kind_of: [TrueClass, FalseClass], required: false, default: node['gocd']['agent']['vnc']['enabled']
property :autoregister_key, kind_of: String, required: false, default: nil
property :autoregister_hostname, kind_of: String, required: false, default: nil
property :environments, kind_of: [String, Array], required: false, default: nil # deprecated in favour of autoreigster_environments
property :autoregister_environments, kind_of: [String, Array], required: false, default: nil
property :resources, kind_of: [String, Array], required: false, default: nil # deprecated in favour of autoregister_resources
property :autoregister_resources, kind_of: [String, Array], required: false, default: nil
property :workspace, kind_of: String, required: false, default: nil
property :elastic_agent_id, kind_of: [String, nil], required: false, default: nil
property :elastic_agent_plugin_id, kind_of: [String, nil], required: false, default: nil

action :create do
  log 'Warn obsolete attributes' do
    message "Please note that node['gocd']['agent']['go_server_host'] and node['gocd']['agent']['go_server_port'] have been replaced by node['gocd']['agent']['go_server_url']"
    level :warn
    only_if { !node['gocd']['agent']['go_server_host'].nil? || !node['gocd']['agent']['go_server_port'].nil? }
  end

  include_recipe 'gocd::agent_linux_install'

  agent_name = new_resource.agent_name
  workspace = new_resource.workspace || "/var/lib/#{agent_name}"
  log_directory = "/var/log/#{agent_name}"
  [workspace, log_directory].each do |d|
    directory d do
      mode 0755
      owner new_resource.user
      group new_resource.group
    end
  end
  directory "#{workspace}/config" do
    mode 0700
    owner new_resource.user
    group new_resource.group
  end

  autoregister_values = agent_properties
  autoregister_values[:key] = new_resource.autoregister_key || autoregister_values[:key]
  autoregister_values[:go_server_url] = new_resource.go_server_url || autoregister_values[:go_server_url]
  autoregister_values[:vnc] = new_resource.vnc || autoregister_values[:vnc]
  autoregister_values[:daemon] = new_resource.daemon || autoregister_values[:daemon]
  autoregister_values[:workspace] = workspace
  autoregister_values[:log_directory] = log_directory
  if autoregister_values[:go_server_url].nil?
    autoregister_values[:go_server_url] = 'https://localhost:8154/go'
    Chef::Log.warn("Go server not found on Chef server or not specifed via node['gocd']['agent']['go_server_url'] attribute, defaulting Go server to #{autoregister_values[:go_server_url]}")
  end

  template '/usr/bin/go-agent-wait-ready' do
    source 'go-agent-wait-ready'
    cookbook 'gocd'
    mode 0755
    owner 'root'
    group 'root'
    action :create
    only_if { platform?('ubuntu') && node['platform_version'].to_f >= 16.04 }
  end

  case node['gocd']['agent']['type']
  when 'java'
    proof_of_registration = "#{workspace}/config/guid.txt"
    autoregister_file_path = "#{workspace}/config/autoregister.properties"
    # package manages the init.d/go-agent script so cookbook should not.
    bash "setup init.d for #{agent_name}" do
      code <<-EOH
      cp /etc/init.d/go-agent /etc/init.d/#{agent_name}
      sed -i 's/# Provides: go-agent$/# Provides: #{agent_name}/g' /etc/init.d/#{agent_name}
      EOH
      # this is NOT needed for systemd service
      not_if { (platform?('ubuntu') && node['platform_version'].to_f >= 16.04) ||
                agent_name == 'go-agent' ||
                "grep -q '# Provides: #{agent_name}$' /etc/init.d/#{agent_name}" }
    end
    link "/usr/share/#{agent_name}" do
      to '/usr/share/go-agent'
      not_if { agent_name == 'go-agent' }
    end
    template "#{agent_name}-systemd-service" do
      path "/etc/systemd/system/#{agent_name}.service"
      source 'go-agent.service.erb'
      cookbook 'gocd'
      mode 0644
      owner 'root'
      group 'root'
      variables ({
        service_name: agent_name
      })
      action :create
      # this is needed for systemd service only
      only_if { platform?('ubuntu') && node['platform_version'].to_f >= 16.04 }
      notifies :run, 'execute[daemon-reload]', :immediately
    end

    execute 'daemon-reload' do
      command "systemctl daemon-reload"
      action :nothing
      # this is needed for systemd service only
      only_if { platform?('ubuntu') && node['platform_version'].to_f >= 16.04 }
      notifies :restart, "service[#{agent_name}]", :delayed if node['gocd']['agent']['daemon']
    end
  when 'golang'
    proof_of_registration = "#{workspace}/config/agent-id"
    autoregister_file_path = "#{workspace}/config/autoregister.sh" if autoregister_values[:key]

    template "/etc/init.d/#{agent_name}" do
      cookbook 'gocd'
      source 'golang-agent-init.erb'
      owner 'root'
      group 'root'
      mode 0755
      variables(agent_name: agent_name, autoregister_file: autoregister_file_path)
    end
  end

  template "/etc/default/#{agent_name}" do
    source 'go-agent-default.erb'
    cookbook 'gocd'
    mode '0644'
    owner 'root'
    group 'root'
    notifies :restart, "service[#{agent_name}]" if autoregister_values[:daemon]
    variables autoregister_values
  end

  if autoregister_values[:key]
    gocd_agent_autoregister_file autoregister_file_path do
      owner new_resource.user
      group new_resource.group
      autoregister_key new_resource.autoregister_key
      autoregister_hostname new_resource.autoregister_hostname
      autoregister_environments new_resource.autoregister_environments || new_resource.environments
      autoregister_resources new_resource.autoregister_resources || new_resource.resources
      elastic_agent_id new_resource.elastic_agent_id
      elastic_agent_plugin_id new_resource.elastic_agent_plugin_id
      not_if { ::File.exist? proof_of_registration }
      notifies :restart, "service[#{agent_name}]" if autoregister_values[:daemon]
    end
  end

  case node['gocd']['agent']['type']
  when 'java'
    service agent_name do
      provider Chef::Provider::Service::Systemd if platform?('ubuntu') && node['platform_version'].to_f >= 16.04
      supports status: true, restart: autoregister_values[:daemon], start: true, stop: true
      action   new_resource.service_action
    end
  when 'golang'
    service agent_name do
      supports restart: true, start: true, stop: true
      action   new_resource.service_action
    end
  end
end


text:
package org.hibernate.test.collection.map.hhh7557;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.MapKeyJoinColumn;
import javax.persistence.Table;
import java.util.Map;

/**
 * @author Elizabeth Chatman
 * @author Steve Ebersole
 */
@Entity
@Table(name = "map_holder")
public class MapHolder {
	private Long id;
	private Map<MapKey, MapValue> map;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToMany
	@JoinTable(
			name = "map_key_map_value",
			joinColumns = @JoinColumn(name = "map_holder_id", nullable = false),
			inverseJoinColumns = @JoinColumn(name = "map_value_id", nullable = false)
	)
	@MapKeyJoinColumn(name = "map_key_id", nullable = false)
	public Map<MapKey, MapValue> getMap() {
		return map;
	}

	public void setMap(Map<MapKey, MapValue> map) {
		this.map = map;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append( "MapHolder [id=" ).append( id ).append( "]" );
		return builder.toString();
	}

}

redpajama_set_name: RedPajamaGithub


text:
package org.apache.servicemix.maven.plugin.jbi;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.Date;
import java.util.Iterator;

import org.apache.maven.model.Dependency;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * Generates the dependencies properties file
 *
 * @version $Id: $
 * @goal generate-depends-file
 * @phase generate-resources
 * @requiresDependencyResolution runtime
 * @description Generates the dependencies properties file
 */
public class GenerateDependsFileMojo extends AbstractJbiMojo {

    protected static final String SEPARATOR = "/";

    /**
     * The file to generate
     *
     * @parameter default-value="${project.build.directory}/classes/META-INF/maven/dependencies.properties"
     */

    private File outputFile;

    public void execute() throws MojoExecutionException, MojoFailureException {
        OutputStream out = null;
        try {
            outputFile.getParentFile().mkdirs();
            out = new FileOutputStream(outputFile);
            PrintStream printer = new PrintStream(out);
            populateProperties(printer);
            getLog().info("Created: " + outputFile);

        } catch (Exception e) {
            throw new MojoExecutionException(
                    "Unable to create dependencies file: " + e, e);
        } finally {
            if (out != null) {
                try {
                    out.close();
                } catch (IOException e) {
                    getLog().info("Failed to close: " + outputFile + ". Reason: " + e, e);
                }
            }
        }
    }

    protected void populateProperties(PrintStream out) {
        out.println("# Project dependencies generated by the Bigfoot Framework Maven Plugin");
        out.println("# Generated at: " + new Date());
        out.println();

        out.println("groupId = " + project.getGroupId());
        out.println("artifactId = " + project.getArtifactId());
        out.println("version = " + project.getVersion());
        out.println(project.getGroupId() + SEPARATOR + project.getArtifactId() + SEPARATOR + "version = " + project.getVersion());
        out.println();
        out.println("# dependencies");
        out.println();

        Iterator iterator = project.getDependencies().iterator();
        while (iterator.hasNext()) {
            Dependency dependency = (Dependency) iterator.next();
            String prefix = dependency.getGroupId() + SEPARATOR + dependency.getArtifactId() + SEPARATOR;
            out.println(prefix + "version = " + dependency.getVersion());
            String classifier = dependency.getClassifier();
            if (classifier != null) {
                out.println(prefix + "classifier = " + classifier);
            }
            out.println(prefix + "type = " + dependency.getType());
            out.println(prefix + "scope = " + dependency.getScope());
            out.println();

            getLog().debug("Dependency: " + dependency + " classifier: " + classifier + " type: " + dependency.getType());
        }
    }
}


text:
<?php
defined('C5_EXECUTE') or die("Access Denied.");
class Page extends Concrete5_Model_Page {}


text:
package com.kii.thing_if.thingifapi;

import android.content.Context;
import android.util.Pair;

import com.kii.thing_if.ServerError;
import com.kii.thing_if.StandaloneThing;
import com.kii.thing_if.Target;
import com.kii.thing_if.ThingIFAPI;
import com.kii.thing_if.ThingIFAPITestBase;
import com.kii.thing_if.TypedID;
import com.kii.thing_if.exception.NotFoundException;
import com.kii.thing_if.thingifapi.utils.ThingIFAPIUtils;
import com.kii.thing_if.trigger.TriggeredServerCodeResult;
import com.kii.thing_if.trigger.TriggeredServerCodeResultFactory;
import com.squareup.okhttp.mockwebserver.MockWebServer;
import com.squareup.okhttp.mockwebserver.RecordedRequest;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.RuntimeEnvironment;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

@RunWith(RobolectricTestRunner.class)
public class ListTriggeredServerCodeResultTest extends ThingIFAPITestBase{

    private Context context;

    @Before
    public void before() throws Exception {
        context = RuntimeEnvironment.application.getApplicationContext();
        this.server = new MockWebServer();
        this.server.start();
    }

    @After
    public void after() throws Exception {
        this.server.shutdown();
    }

    @Test
    public void listTriggeredServerCodeResultsTest() throws Exception {
        String triggerID = UUID.randomUUID().toString();
        TypedID thingID = new TypedID(TypedID.Types.THING, "th.1234567890");
        String accessToken = "thing-access-token-1234";
        Target target = new StandaloneThing(thingID.getID(), "vendor-thing-id", accessToken);
        String paginationKey = "pagination-12345-key";

        ThingIFAPI api = this.createDefaultThingIFAPI(this.context, APP_ID, APP_KEY);
        ThingIFAPIUtils.setTarget(api, target);

        TriggeredServerCodeResult[] firstResults = {
                TriggeredServerCodeResultFactory.create(true, "1234", System.currentTimeMillis(), "func1", null),
                TriggeredServerCodeResultFactory.create(true, "12.34", System.currentTimeMillis() + 1000, "func2", null),
                TriggeredServerCodeResultFactory.create(true, "true", System.currentTimeMillis() + 2000, "func3", null),
                TriggeredServerCodeResultFactory.create(true, "\"abcd\"", System.currentTimeMillis() + 3000, "func4", null)
        };

        TriggeredServerCodeResult[] secondResults = {
                TriggeredServerCodeResultFactory.create(true, "{\"field\":\"abcd\"}", System.currentTimeMillis() + 4000, "func5", null),
                TriggeredServerCodeResultFactory.create(true, "[1, \"2\", 3]", System.currentTimeMillis() + 5000, "func6", null),
                TriggeredServerCodeResultFactory.create(false, null, System.currentTimeMillis() + 6000, "func7", new ServerError("Error found", "RUNTIME_ERROR", "faital error"))
        };

        addMockResponseForListTriggeredServerCodeResults(200, firstResults, paginationKey);
        addMockResponseForListTriggeredServerCodeResults(200, secondResults, null);

        Pair<List<TriggeredServerCodeResult>, String> result1 = api.listTriggeredServerCodeResults(triggerID, 4, null);
        Assert.assertEquals(paginationKey, result1.second);
        Assert.assertEquals(4, result1.first.size());
        for (int i=0; i<firstResults.length; i++) {
            TriggeredServerCodeResult expectedResult = firstResults[i];
            assertSameTriggeredServerCodeResults(
                    "failed on ["+i+"]",
                    expectedResult,
                    result1.first.get(i));
        }

        Pair<List<TriggeredServerCodeResult>, String> result2 = api.listTriggeredServerCodeResults(triggerID, 4, result1.second);
        Assert.assertNull(result2.second);
        Assert.assertEquals(3, result2.first.size());
        for (int i=0; i<secondResults.length; i++) {
            TriggeredServerCodeResult expectedResult = secondResults[i];
            assertSameTriggeredServerCodeResults(
                    "failed on ["+i+"]",
                    expectedResult,
                    result2.first.get(i));
        }

        // verify the 1st request
        RecordedRequest request1 = this.server.takeRequest(1, TimeUnit.SECONDS);
        Assert.assertEquals(BASE_PATH + "/targets/" + thingID.toString() + "/triggers/" + triggerID + "/results/server-code?bestEffortLimit=4", request1.getPath());
        Assert.assertEquals("GET", request1.getMethod());

        Map<String, String> expectedRequestHeaders = new HashMap<>();
        expectedRequestHeaders.put("X-Kii-AppID", APP_ID);
        expectedRequestHeaders.put("X-Kii-AppKey", APP_KEY);
        expectedRequestHeaders.put("Authorization", "Bearer " + api.getOwner().getAccessToken());
        this.assertRequestHeader(expectedRequestHeaders, request1);

        // verify the 2nd request
        RecordedRequest request2 = this.server.takeRequest(1, TimeUnit.SECONDS);
        Assert.assertEquals(BASE_PATH + "/targets/" + thingID.toString() + "/triggers/" + triggerID + "/results/server-code?bestEffortLimit=4&paginationKey=" + paginationKey, request2.getPath());
        Assert.assertEquals("GET", request2.getMethod());
        this.assertRequestHeader(expectedRequestHeaders, request2);
    }

    @Test
    public void listTriggeredServerCodeResultsWithBestEffortLimitZeroTest() throws Exception {
        String triggerID = UUID.randomUUID().toString();
        TypedID thingID = new TypedID(TypedID.Types.THING, "th.1234567890");
        String accessToken = "thing-access-token-1234";
        Target target = new StandaloneThing(thingID.getID(), "vendor-thing-id", accessToken);

        ThingIFAPI api = this.createDefaultThingIFAPI(this.context, APP_ID, APP_KEY);
        ThingIFAPIUtils.setTarget(api, target);

        TriggeredServerCodeResult serverCodeResult1 =
                TriggeredServerCodeResultFactory.create(true, "1234", System.currentTimeMillis(), "func1", null);

        addMockResponseForListTriggeredServerCodeResults(200, new TriggeredServerCodeResult[]{serverCodeResult1}, null);

        Pair<List<TriggeredServerCodeResult>, String> result1 = api.listTriggeredServerCodeResults(triggerID, 0, null);
        Assert.assertNull(result1.second);
        List<TriggeredServerCodeResult> results1 = result1.first;
        Assert.assertEquals(1, results1.size());
        assertSameTriggeredServerCodeResults(serverCodeResult1, results1.get(0));

        // verify the 1st request
        RecordedRequest request1 = this.server.takeRequest(1, TimeUnit.SECONDS);
        Assert.assertEquals(BASE_PATH + "/targets/" + thingID.toString() + "/triggers/" + triggerID + "/results/server-code", request1.getPath());
        Assert.assertEquals("GET", request1.getMethod());

        Map<String, String> expectedRequestHeaders = new HashMap<>();
        expectedRequestHeaders.put("X-Kii-AppID", APP_ID);
        expectedRequestHeaders.put("X-Kii-AppKey", APP_KEY);
        expectedRequestHeaders.put("Authorization", "Bearer " + api.getOwner().getAccessToken());
        this.assertRequestHeader(expectedRequestHeaders, request1);
    }
    @Test
    public void listTriggeredServerCodeResults404ErrorTest() throws Exception {
        String triggerID = UUID.randomUUID().toString();
        TypedID thingID = new TypedID(TypedID.Types.THING, "th.1234567890");
        String accessToken = "thing-access-token-1234";
        Target target = new StandaloneThing(thingID.getID(), "vendor-thing-id", accessToken);

        ThingIFAPI api = this.createDefaultThingIFAPI(this.context, APP_ID, APP_KEY);
        ThingIFAPIUtils.setTarget(api, target);

        this.addEmptyMockResponse(404);
        try {
            api.listTriggeredServerCodeResults(triggerID, 0, null);
            Assert.fail("ThingIFRestException should be thrown");
        } catch (NotFoundException e) {
        }
        RecordedRequest request1 = this.server.takeRequest(1, TimeUnit.SECONDS);
        Assert.assertEquals(BASE_PATH + "/targets/" + thingID.toString() + "/triggers/" + triggerID + "/results/server-code", request1.getPath());
        Assert.assertEquals("GET", request1.getMethod());

        Map<String, String> expectedRequestHeaders = new HashMap<>();
        expectedRequestHeaders.put("X-Kii-AppID", APP_ID);
        expectedRequestHeaders.put("X-Kii-AppKey", APP_KEY);
        expectedRequestHeaders.put("Authorization", "Bearer " + api.getOwner().getAccessToken());
        this.assertRequestHeader(expectedRequestHeaders, request1);
    }
    @Test(expected = IllegalArgumentException.class)
    public void listTriggeredServerCodeResultsWithNullTriggerIDTest() throws Exception {
        TypedID thingID = new TypedID(TypedID.Types.THING, "th.1234567890");
        String accessToken = "thing-access-token-1234";
        Target target = new StandaloneThing(thingID.getID(), "vendor-thing-id", accessToken);

        ThingIFAPI api = this.createDefaultThingIFAPI(this.context, APP_ID, APP_KEY);
        ThingIFAPIUtils.setTarget(api, target);
        api.listTriggeredServerCodeResults(null, 10, null);
    }
    @Test(expected = IllegalStateException.class)
    public void listTriggeredServerCodeResultsWithNullTargetTest() throws Exception {
        String triggerID = UUID.randomUUID().toString();
        ThingIFAPI api = this.createDefaultThingIFAPI(this.context, APP_ID, APP_KEY);
        api.listTriggeredServerCodeResults(triggerID, 10, null);
    }

    @Test
    public void listTriggeredServerCodeResultsWithOnlyPaginationKeyTest() throws Exception {
        String triggerID = UUID.randomUUID().toString();
        TypedID thingID = new TypedID(TypedID.Types.THING, "th.1234567890");
        String accessToken = "thing-access-token-1234";
        Target target = new StandaloneThing(thingID.getID(), "vendor-thing-id", accessToken);

        ThingIFAPI api = this.createDefaultThingIFAPI(this.context, APP_ID, APP_KEY);
        ThingIFAPIUtils.setTarget(api, target);

        TriggeredServerCodeResult serverCodeResult1 =
                TriggeredServerCodeResultFactory.create(true, "1234", System.currentTimeMillis(), "func1", null);

        addMockResponseForListTriggeredServerCodeResults(200, new TriggeredServerCodeResult[]{serverCodeResult1}, null);

        String paginationKey = "pagination-12345-key";
        Pair<List<TriggeredServerCodeResult>, String> result1 = api.listTriggeredServerCodeResults(triggerID, 0, paginationKey);
        Assert.assertNull(result1.second);
        List<TriggeredServerCodeResult> results1 = result1.first;
        Assert.assertEquals(1, results1.size());
        assertSameTriggeredServerCodeResults(serverCodeResult1, results1.get(0));

        // verify the 1st request
        RecordedRequest request1 = this.server.takeRequest(1, TimeUnit.SECONDS);
        Assert.assertEquals(BASE_PATH + "/targets/" + thingID.toString() + "/triggers/" + triggerID + "/results/server-code?paginationKey=" + paginationKey, request1.getPath());
        Assert.assertEquals("GET", request1.getMethod());

        Map<String, String> expectedRequestHeaders = new HashMap<>();
        expectedRequestHeaders.put("X-Kii-AppID", APP_ID);
        expectedRequestHeaders.put("X-Kii-AppKey", APP_KEY);
        expectedRequestHeaders.put("Authorization", "Bearer " + api.getOwner().getAccessToken());
        this.assertRequestHeader(expectedRequestHeaders, request1);
    }
}


text:
#ifndef HX_TLS_INCLUDED
#define HX_TLS_INCLUDED

#ifdef HX_WINDOWS

  #ifdef HX_WINRT
    // Nothing
  #else

   extern "C"
   {
      __declspec(dllimport)
     int __stdcall TlsSetValue(unsigned long  dwTlsIndex, void *lpTlsValue);

     __declspec(dllimport)
     void * __stdcall TlsGetValue(unsigned long  dwTlsIndex);

     __declspec(dllimport)
     unsigned long __stdcall TlsAlloc(void);
   }

   namespace hx {

   template<typename DATA,bool FAST=false>
   struct TLSData
   {
      static const size_t kMaxInlineSlots = 64;

      TLSData()
      {
         mSlot = TlsAlloc();
         TlsSetValue(mSlot,0);
         #ifdef HXCPP_M64
         mFastOffset = mSlot*sizeof(void *) + 0x1480;
         #else
         if (FAST || mSlot < kMaxInlineSlots)
            mFastOffset = mSlot*sizeof(void *) + 0xE10;
         else
            mFastOffset = mSlot - kMaxInlineSlots;
         #endif
      }
      inline DATA *operator=(DATA *inData)
      {
         TlsSetValue(mSlot,inData);
         return inData;
      }

      static inline DATA* readgsqword(int offset) {
         return (DATA *)__readgsqword(offset);
      }

      inline operator DATA *()
      {
         #if !defined(HXCPP_M64) && (_MSC_VER >= 1400)
         const size_t kTibExtraTlsOffset = 0xF94;

         if (FAST || mSlot < kMaxInlineSlots)
           return (DATA *)__readfsdword(mFastOffset);

         DATA **extra = (DATA **)(__readfsdword(kTibExtraTlsOffset));
         return extra[mFastOffset];
         #elif (_MSC_VER >= 1400) & !defined(HXCPP_DEBUG)// 64 bit version...
         if (mSlot < 64)
           return readgsqword(mFastOffset);
         else
           return (DATA *)TlsGetValue(mSlot);
         #else
         return (DATA *)TlsGetValue(mSlot);
         #endif
      }

      int mSlot;
      int mFastOffset;
   };

   } // end namespace hx

   #define DECLARE_TLS_DATA(TYPE,NAME) \
      hx::TLSData<TYPE> NAME;
   #define DECLARE_FAST_TLS_DATA(TYPE,NAME) \
      hx::TLSData<TYPE,true> NAME;
   #define EXTERN_TLS_DATA(TYPE,NAME) \
      extern hx::TLSData<TYPE> NAME;
   #define EXTERN_FAST_TLS_DATA(TYPE,NAME) \
      extern hx::TLSData<TYPE,true> NAME;

  #endif
#else // not HX_WINDOWS

#include <pthread.h>

namespace hx
{

template<typename DATA,bool FAST=false>
struct TLSData
{
   TLSData()
   {
      pthread_key_create(&mSlot, 0);
   }
   DATA *Get()
   {
      return (DATA *)pthread_getspecific(mSlot);
   }
   void Set(DATA *inData)
   {
      pthread_setspecific(mSlot,inData);
   }
   inline DATA *operator=(DATA *inData)
   {
      pthread_setspecific(mSlot,inData);
      return inData;
   }
   inline operator DATA *() { return (DATA *)pthread_getspecific(mSlot); }

   pthread_key_t mSlot;
};

} // end namespace hx

#endif

#ifdef HX_WINRT

#define DECLARE_TLS_DATA(TYPE,NAME) \
   __declspec(thread) TYPE * NAME = nullptr;
#define DECLARE_FAST_TLS_DATA(TYPE,NAME) \
   __declspec(thread) TYPE * NAME = nullptr;
#define EXTERN_TLS_DATA(TYPE,NAME) \
   __declspec(thread) extern TYPE * NAME;
#define EXTERN_FAST_TLS_DATA(TYPE,NAME) \
   __declspec(thread) extern TYPE * NAME;

#else

#define DECLARE_TLS_DATA(TYPE,NAME) \
   hx::TLSData<TYPE> NAME;
#define DECLARE_FAST_TLS_DATA(TYPE,NAME) \
   hx::TLSData<TYPE,true> NAME;
#define EXTERN_TLS_DATA(TYPE,NAME) \
   extern hx::TLSData<TYPE> NAME;
#define EXTERN_FAST_TLS_DATA(TYPE,NAME) \
   extern hx::TLSData<TYPE,true> NAME;

#endif

#endif

#endif


text:
package uk.trainwatch.util.config.impl;

import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Stream;
import javax.json.JsonArray;
import javax.json.JsonNumber;
import javax.json.JsonObject;
import javax.json.JsonString;
import javax.json.JsonValue;
import uk.trainwatch.util.CollectionBuilder;
import uk.trainwatch.util.MapBuilder;
import uk.trainwatch.util.config.Configuration;

/**
 *
 * @author peter
 */
public class MapConfiguration
        implements Configuration
{

    protected final Map<String, Object> config;

    public MapConfiguration()
    {
        this( new ConcurrentHashMap<>() );
    }

    public MapConfiguration( Map<String, Object> config )
    {
        this.config = config;
    }

    @Override
    @SuppressWarnings("unchecked")
    public Configuration getConfiguration( String key, Supplier<Configuration> defaultValue )
    {
        Object o = config.computeIfPresent( key,
                                            ( k, v ) -> {
                                                if( v instanceof JsonObject ) {
                                                    return new MapConfiguration( MapBuilder.fromJsonObject( (JsonObject) v ).build() );
                                                }
                                                if( v instanceof Map ) {
                                                    return new MapConfiguration( ((Map<String, Object>) v) );
                                                }
                                                return v;
                                            } );
        return o instanceof Configuration ? (Configuration) o : defaultValue.get();
    }

    @Override
    @SuppressWarnings("unchecked")
    public Stream<Object> collection( String key )
    {
        Object o = config.get( key );

        if( o == null ) {
            return Stream.empty();
        }

        if( o instanceof JsonArray ) {
            return ((JsonArray) o).stream().map( this::map );
        }

        if( o instanceof JsonObject ) {
            return Stream.of( MapBuilder.fromJsonObject( (JsonObject) o ) );
        }

        if( o instanceof Collection ) {
            return ((Collection) o).stream();
        }

        return Stream.of( o );
    }

    private Object map( JsonValue v )
    {
        switch( v.getValueType() ) {
            case STRING:
                return ((JsonString) v).getString();

            case NUMBER:
                return ((JsonNumber) v).bigDecimalValue();

            case TRUE:
                return true;

            case FALSE:
                return false;

            case OBJECT:
                return MapBuilder.fromJsonObject( (JsonObject) v );

            case ARRAY:
                return CollectionBuilder.fromJsonArray( (JsonArray) v );

            case NULL:
            default:
                return null;
        }
    }

    @Override
    public Collection<String> getKeys()
    {
        return config.keySet();
    }

    @Override
    public Stream<String> keys()
    {
        return config.keySet().stream();
    }

    @Override
    public String getString( String key )
    {
        return Objects.toString( config.get( key ), null );
    }

    @Override
    public Object get( Object key )
    {
        return config.get( key );
    }

    @Override
    public String getString( String key, String defaultValue )
    {
        return Objects.toString( config.get( key ), defaultValue );
    }

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

    @Override
    public boolean isEmpty()
    {
        return config.isEmpty();
    }

    @Override
    public boolean containsKey( Object key )
    {
        return config.containsKey( key );
    }

    @Override
    public boolean containsValue( Object value )
    {
        return false;
    }

    @Override
    public Object put( String key, Object value )
    {
        return null;
    }

    @Override
    public Object remove( Object key )
    {
        return null;
    }

    @Override
    public void putAll( Map<? extends String, ? extends Object> m )
    {
    }

    @Override
    public void clear()
    {
    }

    @Override
    public Set<String> keySet()
    {
        return config.keySet();
    }

    @Override
    public Collection<Object> values()
    {
        return Collections.emptyList();
    }

    @Override
    public Set<Entry<String, Object>> entrySet()
    {
        return Collections.emptySet();
    }

    @Override
    public void forEach( BiConsumer<? super String, ? super Object> action )
    {
        keySet().forEach( k -> action.accept( k, getString( k ) ) );
    }

    @Override
    public void replaceAll( BiFunction<? super String, ? super Object, ? extends Object> function )
    {
    }

    @Override
    public Object putIfAbsent( String key, Object value )
    {
        return null;
    }

    @Override
    public boolean remove( Object key, Object value )
    {
        return false;
    }

    @Override
    public boolean replace( String key, Object oldValue, Object newValue )
    {
        return false;
    }

    @Override
    public Object replace( String key, Object value )
    {
        return false;
    }

    @Override
    public Object computeIfAbsent( String key, Function<? super String, ? extends Object> mappingFunction )
    {
        return null;
    }

    @Override
    public Object computeIfPresent( String key, BiFunction<? super String, ? super Object, ? extends Object> remappingFunction )
    {
        return null;
    }

    @Override
    public Object compute( String key, BiFunction<? super String, ? super Object, ? extends Object> remappingFunction )
    {
        return null;
    }

    @Override
    public Object merge( String key, Object value, BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction )
    {
        return null;
    }

    @Override
    public String toString()
    {
        return getClass().getSimpleName()+"["+config+"]";
    }

}


text:
<!DOCTYPE html>

    <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
      <defs>
        <filter id="offset">
          <feOffset dx="190" dy="190"/>
        </filter>
      </defs>
    </svg>


text:
package pl.fzymek.tiimagegallery.gallery;

import android.content.Context;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.FragmentManager;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import android.widget.TextView;

import net.grandcentrix.thirtyinch.TiFragment;

import java.util.List;
import java.util.Random;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import pl.fzymek.gettyimagesmodel.gettyimages.Image;
import pl.fzymek.tiimagegallery.R;
import pl.fzymek.tiimagegallery.config.Config;
import pl.fzymek.tiimagegallery.details.DetailsFragment;
import pl.fzymek.tiimagegallery.util.ImageTransition;
import pl.fzymek.tiimagegallery.util.SpaceDecoration;
import timber.log.Timber;

public class GalleryFragment extends TiFragment<GalleryPresenter, GalleryView> implements GalleryView, SwipeRefreshLayout.OnRefreshListener {

    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;
    @BindView(R.id.progress)
    ProgressBar progressBar;
    @BindView(R.id.error)
    TextView error;
    @BindView(R.id.contentView)
    SwipeRefreshLayout contentView;
    @BindView(R.id.toolbar)
    Toolbar toolbar;

    GalleryAdapter adapter;
    RecyclerView.LayoutManager layoutManager;
    Unbinder unbinder;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        adapter = new GalleryAdapter();
        adapter.setListener((v, image) -> {
            Timber.d("clicked: %s", v);
            openDetails(v, image);
        });
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_gallery, container, false);
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        unbinder = ButterKnife.bind(this, view);
        ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);
        ((AppCompatActivity)getActivity()).getSupportActionBar().setHomeButtonEnabled(false);
        contentView.setOnRefreshListener(this);

        Context context = view.getContext();
        if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
            layoutManager = new LinearLayoutManager(context);
        } else {
            layoutManager = new GridLayoutManager(context, 3);
        }

        recyclerView.setLayoutManager(layoutManager);
        recyclerView.addItemDecoration(new SpaceDecoration());
        recyclerView.setAdapter(adapter);
    }

    void openDetails(View view, Image image) {
        FragmentManager fm = getActivity().getSupportFragmentManager();
        DetailsFragment fragment = DetailsFragment.newInstance(image);
        ImageTransition sharedElementEnterTransition = new ImageTransition();
        fragment.setSharedElementEnterTransition(sharedElementEnterTransition);
//        setSharedElementReturnTransition(sharedElementEnterTransition);
        fm.beginTransaction()
                .replace(R.id.content, fragment)
                .addSharedElement(view.findViewById(R.id.image), "transition_"+image.getId())
                .addToBackStack(null)
                .commit();

    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @Override
    public void onResume() {
        super.onResume();
        loadData(false);
    }

    @NonNull
    @Override
    public GalleryPresenter providePresenter() {
        Timber.d("providePresenter");
        return new GalleryPresenter();
    }

    @Override
    public void startLoading(boolean pullToRefresh) {
        progressBar.setVisibility(View.VISIBLE);
        contentView.setVisibility(View.GONE);
        error.setVisibility(View.GONE);
        contentView.setRefreshing(pullToRefresh);
    }

    @Override
    public void stopLoading() {
        contentView.setVisibility(View.VISIBLE);
        progressBar.setVisibility(View.GONE);
        error.setVisibility(View.GONE);
        contentView.setRefreshing(false);
    }

    @Override
    public void showError(Throwable err) {
        error.setVisibility(View.VISIBLE);
        contentView.setVisibility(View.GONE);
        progressBar.setVisibility(View.GONE);
        contentView.setRefreshing(false);
    }

    @Override
    public void showGallery(List<Image> images) {
        adapter.setData(images);
    }

    @Override
    public void onRefresh() {
        loadData(true);
    }

    private void loadData(boolean pullToRefresh) {
        String phrase = Config.QUERIES[new Random().nextInt(Config.QUERIES.length)];
        getPresenter().loadData(phrase, pullToRefresh);
    }
}


text:
package com.canzs.lhjz.pojo.model;

public enum WeiXinEventType {

	SUBSCRIBE("subscribe"), UNSUBSCRIBE("unsubscribe"), CLICK("CLICK"), LOCATION("LOCATION"), SCAN("SCAN"), VIEW("VIEW");

	private String value;

	WeiXinEventType(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	@Override
	public String toString() {
		return value;
	}

}


text:
'use strict';

import type {
  CEnvironment,
  CFragmentMap,
  COperationSelector,
  CRelayContext,
  CSelector,
  CSnapshot,
  CUnstableEnvironmentCore,
  Disposable,
  Record,
} from 'RelayCombinedEnvironmentTypes';
import type {ConcreteBatch, ConcreteFragment, ConcreteSelectableNode} from 'RelayConcreteNode';
import type {DataID} from 'RelayInternalTypes';
import type {GraphQLTaggedNode} from 'RelayModernGraphQLTag';
import type {
  PayloadError,
  RelayResponsePayload,
  UploadableMap,
} from 'RelayNetworkTypes';
import type {RecordState} from 'RelayRecordState';
import type {Variables} from 'RelayTypes';

type TEnvironment = Environment;
type TFragment = ConcreteFragment;
type TGraphQLTaggedNode = GraphQLTaggedNode;
type TNode = ConcreteSelectableNode;
type TOperation = ConcreteBatch;
type TPayload = RelayResponsePayload;

export type FragmentMap = CFragmentMap<TFragment>;
export type OperationSelector = COperationSelector<TNode, TOperation>;
export type RelayContext = CRelayContext<TEnvironment>;
export type Selector = CSelector<TNode>;
export type Snapshot = CSnapshot<TNode>;
export type UnstableEnvironmentCore = CUnstableEnvironmentCore<
  TEnvironment,
  TFragment,
  TGraphQLTaggedNode,
  TNode,
  TOperation,
>;

/**
 * A read-only interface for accessing cached graph data.
 */
export interface RecordSource {
  get(dataID: DataID): ?Record,
  getRecordIDs(): Array<DataID>,
  getStatus(dataID: DataID): RecordState,
  has(dataID: DataID): boolean,
  load(
    dataID: DataID,
    callback: (error: ?Error, record: ?Record) => void
  ): void,
  size(): number,
}

/**
 * A read/write interface for accessing and updating graph data.
 */
export interface MutableRecordSource extends RecordSource {
  clear(): void,
  delete(dataID: DataID): void,
  remove(dataID: DataID): void,
  set(dataID: DataID, record: Record): void,
}

/**
 * An interface for keeping multiple views of data consistent across an
 * application.
 */
export interface Store {
  /**
   * Get a read-only view of the store's internal RecordSource.
   */
  getSource(): RecordSource,

  /**
   * Determine if the selector can be resolved with data in the store (i.e. no
   * fields are missing).
   */
  check(selector: Selector): boolean,

  /**
   * Read the results of a selector from in-memory records in the store.
   */
  lookup(selector: Selector): Snapshot,

  /**
   * Notify subscribers (see `subscribe`) of any data that was published
   * (`publish()`) since the last time `notify` was called.
   */
  notify(): void,

  /**
   * Publish new information (e.g. from the network) to the store, updating its
   * internal record source. Subscribers are not immediately notified - this
   * occurs when `notify()` is called.
   */
  publish(source: RecordSource): void,

  /**
   * Attempts to load all the records necessary to fulfill the selector into the
   * target record source.
   */
  resolve(
    target: MutableRecordSource,
    selector: Selector,
    callback: AsyncLoadCallback
  ): void,

  /**
   * Ensure that all the records necessary to fulfill the given selector are
   * retained in-memory. The records will not be eligible for garbage collection
   * until the returned reference is disposed.
   */
  retain(selector: Selector): Disposable,

  /**
   * Subscribe to changes to the results of a selector. The callback is called
   * when `notify()` is called *and* records have been published that affect the
   * selector results relative to the last `notify()`.
   */
  subscribe(
    snapshot: Snapshot,
    callback: (snapshot: Snapshot) => void
  ): Disposable,
}

/**
 * An interface for imperatively getting/setting properties of a `Record`. This interface
 * is designed to allow the appearance of direct Record manipulation while
 * allowing different implementations that may e.g. create a changeset of
 * the modifications.
 */
export interface RecordProxy {
  copyFieldsFrom(source: RecordProxy): void,
  getDataID(): DataID,
  getLinkedRecord(name: string, args?: ?Variables): ?RecordProxy,
  getLinkedRecords(name: string, args?: ?Variables): ?Array<?RecordProxy>,
  getOrCreateLinkedRecord(name: string, typeName: string, args?: ?Variables): RecordProxy,
  getType(): string,
  getValue(name: string, args?: ?Variables): mixed,
  setLinkedRecord(record: RecordProxy, name: string, args?: ?Variables): RecordProxy,
  setLinkedRecords(records: Array<?RecordProxy>, name: string, args?: ?Variables): RecordProxy,
  setValue(value: mixed, name: string, args?: ?Variables): RecordProxy,
}

/**
 * An interface for imperatively getting/setting properties of a `RecordSource`. This interface
 * is designed to allow the appearance of direct RecordSource manipulation while
 * allowing different implementations that may e.g. create a changeset of
 * the modifications.
 */
export interface RecordSourceProxy {
  create(dataID: DataID, typeName: string): RecordProxy,
  delete(dataID: DataID): void,
  get(dataID: DataID): ?RecordProxy,
  getRoot(): RecordProxy,
}

/**
 * Extends the RecordSourceProxy interface with methods for accessing the root
 * fields of a Selector.
 */
export interface RecordSourceSelectorProxy {
  create(dataID: DataID, typeName: string): RecordProxy,
  delete(dataID: DataID): void,
  get(dataID: DataID): ?RecordProxy,
  getRoot(): RecordProxy,
  getRootField(fieldName: string): ?RecordProxy,
  getPluralRootField(fieldName: string): ?Array<?RecordProxy>,
}

/**
 * The public API of Relay core. Represents an encapsulated environment with its
 * own in-memory cache.
 */
export interface Environment extends CEnvironment<
  TEnvironment,
  TFragment,
  TGraphQLTaggedNode,
  TNode,
  TOperation,
  TPayload,
> {
  /**
   * Apply an optimistic update to the environment. The mutation can be reverted
   * by calling `dispose()` on the returned value.
   */
  applyUpdate(updater: StoreUpdater): Disposable,

  /**
   * Determine if the selector can be resolved with data in the store (i.e. no
   * fields are missing).
   *
   * Note that this operation effectively "executes" the selector against the
   * cache and therefore takes time proportional to the size/complexity of the
   * selector.
   */
  check(selector: Selector): boolean,

  /**
   * Commit an updater to the environment. This mutation cannot be reverted and
   * should therefore not be used for optimistic updates. This is mainly
   * intended for updating fields from client schema extensions.
   */
  commitUpdate(updater: StoreUpdater): void,

  /**
   * Get the environment's internal Store.
   */
  getStore(): Store,

  /**
   * Send a mutation to the server. If provided, the optimistic updater is
   * executed immediately and reverted atomically when the server payload is
   * committed.
   */
  sendMutation(config: {|
    onCompleted?: ?(errors: ?Array<PayloadError>) => void,
    onError?: ?(error: Error) => void,
    operation: OperationSelector,
    optimisticResponse?: ?() => Object,
    optimisticUpdater?: ?SelectorStoreUpdater,
    updater?: ?SelectorStoreUpdater,
    uploadables?: UploadableMap,
  |}): Disposable,

  /**
   * Send a (GraphQL) subscription to the server. Whenever there is a push from
   * the server, commit the update to the environment.
   */
  sendSubscription(config: {|
    onCompleted?: ?(errors: ?Array<PayloadError>) => void,
    onNext?: ?(payload: RelayResponsePayload) => void,
    onError?: ?(error: Error) => void,
    operation: OperationSelector,
    updater?: ?SelectorStoreUpdater,
  |}): Disposable,
}

export type Observer<T> = {
  onCompleted?: ?() => void,
  onError?: ?(error: Error) => void,
  onNext?: ?(data: T) => void,
};

/**
 * The results of reading data for a fragment. This is similar to a `Selector`,
 * but references the (fragment) node by name rather than by value.
 */
export type FragmentPointer = {
  __id: DataID,
  __fragments: {[fragmentName: string]: Variables},
};

/**
 * A callback for resolving a Selector from a source.
 */
export type AsyncLoadCallback = (loadingState: LoadingState) => void;
export type LoadingState = $Exact<{
  status: 'aborted' | 'complete' | 'error' | 'missing',
  error?: Error,
}>;

/**
 * A map of records affected by an update operation.
 */
export type UpdatedRecords = {[dataID: DataID]: boolean};

/**
 * A function that updates a store (via a proxy) given the results of a "handle"
 * field payload.
 */
export type Handler = {
  update: (
    store: RecordSourceProxy,
    fieldPayload: HandleFieldPayload,
  ) => void,
};

/**
 * A payload that is used to initialize or update a "handle" field with
 * information from the server.
 */
export type HandleFieldPayload = $Exact<{
  // The arguments that were fetched.
  args: Variables,
  // The __id of the record containing the source/handle field.
  dataID: DataID,
  // The (storage) key at which the original server data was written.
  fieldKey: string,
  // The name of the handle.
  handle: string,
  // The (storage) key at which the handle's data should be written by the
  // handler.
  handleKey: string,
}>;

/**
 * A function that receives a proxy over the store and may trigger side-effects
 * (indirectly) by calling `set*` methods on the store or its record proxies.
 */
export type StoreUpdater = (store: RecordSourceProxy) => void;

/**
 * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in
 * order to easily access the root fields of a query/mutation.
 */
export type SelectorStoreUpdater = (store: RecordSourceSelectorProxy) => void;


text:
package org.apache.tinkerpop.gremlin.process.traversal;

import java.util.function.BiPredicate;

/**
 * {@link Compare} is a {@link java.util.function.BiPredicate} that determines whether the first argument is {@code ==}, {@code !=},
 * {@code >}, {@code >=}, {@code <}, {@code <=} to the second argument.
 *
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public enum Compare implements BiPredicate<Object, Object> {

    eq {
        @Override
        public boolean test(final Object first, final Object second) {
            return null == first ? null == second : (first instanceof Number && second instanceof Number
                    && !first.getClass().equals(second.getClass())
                    ? ((Number) first).doubleValue() == ((Number) second).doubleValue()
                    : first.equals(second));
        }

        @Override
        public Compare negate() {
            return neq;
        }
    }, neq {
        @Override
        public boolean test(final Object first, final Object second) {
            return !eq.test(first, second);
        }

        @Override
        public Compare negate() {
            return eq;
        }
    }, gt {
        @Override
        public boolean test(final Object first, final Object second) {
            return null != first && null != second && (
                    first instanceof Number && second instanceof Number && !first.getClass().equals(second.getClass())
                            ? ((Number) first).doubleValue() > ((Number) second).doubleValue()
                            : ((Comparable) first).compareTo(second) > 0);
        }

        @Override
        public Compare negate() {
            return lte;
        }
    }, gte {
        @Override
        public boolean test(final Object first, final Object second) {
            return null == first ? null == second : (null != second && !lt.test(first, second));
        }

        @Override
        public Compare negate() {
            return lt;
        }
    }, lt {
        @Override
        public boolean test(final Object first, final Object second) {
            return null != first && null != second && (
                    first instanceof Number && second instanceof Number && !first.getClass().equals(second.getClass())
                            ? ((Number) first).doubleValue() < ((Number) second).doubleValue()
                            : ((Comparable) first).compareTo(second) < 0);
        }

        @Override
        public Compare negate() {
            return gte;
        }
    }, lte {
        @Override
        public boolean test(final Object first, final Object second) {
            return null == first ? null == second : (null != second && !gt.test(first, second));
        }

        @Override
        public Compare negate() {
            return gt;
        }
    };

    /**
     * {@inheritDoc}
     */
    /*@Override
    public abstract boolean test(final Object first, final Object second);*/

    /**
     * Produce the opposite representation of the current {@code Compare} enum.
     */
    @Override
    public abstract Compare negate();
}


text:
import gsChecklistExploreNPSPTitle from '@salesforce/label/c.gsChecklistExploreNPSPTitle';
import gsChecklistExploreNPSPDesc from '@salesforce/label/c.gsChecklistExploreNPSPDesc';
import gsChecklistItemAddUserDesc from '@salesforce/label/c.gsChecklistItemAddUserDesc';
import gsChecklistItemAddUserLinkLabel from '@salesforce/label/c.gsChecklistItemAddUserLinkLabel';
import gsChecklistItemAddUserTitle from '@salesforce/label/c.gsChecklistItemAddUserTitle';
import gsChecklistItemCommunicateWithUserskDesc from '@salesforce/label/c.gsChecklistItemCommunicateWithUserskDesc';
import gsChecklistItemCommunicateWithUserskLinkLabel from '@salesforce/label/c.gsChecklistItemCommunicateWithUserskLinkLabel';
import gsChecklistItemCommunicateWithUserskTitle from '@salesforce/label/c.gsChecklistItemCommunicateWithUserskTitle';
import gsChecklistItemCreateDonationTitle from '@salesforce/label/c.gsChecklistItemCreateDonationTitle';
import gsChecklistItemCreateDonationDesc from '@salesforce/label/c.gsChecklistItemCreateDonationDesc';
import gsChecklistItemCreateDonationLinkLabel from '@salesforce/label/c.gsChecklistItemCreateDonationLinkLabel';
import gsChecklistItemCreateDonationPriBtnLabel from '@salesforce/label/c.gsChecklistItemCreateDonationPriBtnLabel';
import gsChecklistItemCustomFieldsDesc from '@salesforce/label/c.gsChecklistItemCustomFieldsDesc';
import gsChecklistItemCustomFieldsLinkLabel from '@salesforce/label/c.gsChecklistItemCustomFieldsLinkLabel';
import gsChecklistItemCustomFieldsTitle from '@salesforce/label/c.gsChecklistItemCustomFieldsTitle';
import gsChecklistItemExtraFourMinuteVideo from '@salesforce/label/c.gsChecklistItemExtraFourMinuteVideo';
import gsChecklistItemExtraOneMinuteVideo from '@salesforce/label/c.gsChecklistItemExtraOneMinuteVideo';
import gsChecklistItemExtraSixtyMinuteVideo from '@salesforce/label/c.gsChecklistItemExtraSixtyMinuteVideo';
import gsChecklistItemExtraTwoMinutesVideo from '@salesforce/label/c.gsChecklistItemExtraTwoMinutesVideo';
import gsChecklistItemFundraisingProcessDesc from '@salesforce/label/c.gsChecklistItemFundraisingProcessDesc';
import gsChecklistItemFundraisingProcessTitle from '@salesforce/label/c.gsChecklistItemFundraisingProcessTitle';
import gsChecklistItemFundraisingProcessLinkLabel from '@salesforce/label/c.gsChecklistItemFundraisingProcessLinkLabel';
import gsChecklistItemFundraisingProcessPriBtnLabel from '@salesforce/label/c.gsChecklistItemFundraisingProcessPriBtnLabel';
import gsChecklistItemGoFurtherDesc from '@salesforce/label/c.gsChecklistItemGoFurtherDesc';
import gsChecklistItemGoFurtherLinkLabel from '@salesforce/label/c.gsChecklistItemGoFurtherLinkLabel';
import gsChecklistItemGoFurtherTitle from '@salesforce/label/c.gsChecklistItemGoFurtherTitle';
import gsChecklistItemImportDataDesc from '@salesforce/label/c.gsChecklistItemImportDataDesc';
import gsChecklistItemImportDataPriBtnLabel from '@salesforce/label/c.gsChecklistItemImportDataPriBtnLabel';
import gsChecklistItemImportDataLinkLabel from '@salesforce/label/c.gsChecklistItemImportDataLinkLabel';
import gsChecklistItemImportDataSecBtnLabel from '@salesforce/label/c.gsChecklistItemImportDataSecBtnLabel';
import gsChecklistItemImportDataTitle from '@salesforce/label/c.gsChecklistItemImportDataTitle';
import gsChecklistItemNPSPCloudDesc from '@salesforce/label/c.gsChecklistItemNPSPCloudDesc';
import gsChecklistItemNPSPCloudPriBtnLabel from '@salesforce/label/c.gsChecklistItemNPSPCloudPriBtnLabel';
import gsChecklistItemNPSPCloudLinkLabel from '@salesforce/label/c.gsChecklistItemNPSPCloudLinkLabel';
import gsChecklistItemNPSPCloudTitle from '@salesforce/label/c.gsChecklistItemNPSPCloudTitle';
import gsChecklistItemNPSPSettingsDesc from '@salesforce/label/c.gsChecklistItemNPSPSettingsDesc';
import gsChecklistItemNPSPSettingsPriBtnLabel from '@salesforce/label/c.gsChecklistItemNPSPSettingsPriBtnLabel';
import gsChecklistItemNPSPSettingsLinkLabel from '@salesforce/label/c.gsChecklistItemNPSPSettingsLinkLabel';
import gsChecklistItemNPSPSettingsTitle from '@salesforce/label/c.gsChecklistItemNPSPSettingsTitle';
import gsChecklistItemManageChangeDesc from '@salesforce/label/c.gsChecklistItemManageChangeDesc';
import gsChecklistItemManageChangeLinkLabel from '@salesforce/label/c.gsChecklistItemManageChangeLinkLabel';
import gsChecklistItemManageChangePriBtnLabel from '@salesforce/label/c.gsChecklistItemManageChangePriBtnLabel';
import gsChecklistItemManageChangeTitle from '@salesforce/label/c.gsChecklistItemManageChangeTitle';
import gsChecklistItemNPSPGuideDesc from '@salesforce/label/c.gsChecklistItemNPSPGuideDesc';
import gsChecklistItemNPSPGuidePriBtnLabel from '@salesforce/label/c.gsChecklistItemNPSPGuidePriBtnLabel';
import gsChecklistItemNPSPGuideTitle from '@salesforce/label/c.gsChecklistItemNPSPGuideTitle';
import gsChecklistItemPageLayoutsDesc from '@salesforce/label/c.gsChecklistItemPageLayoutsDesc';
import gsChecklistItemPageLayoutsLinkLabel from '@salesforce/label/c.gsChecklistItemPageLayoutsLinkLabel';
import gsChecklistItemPageLayoutsTitle from '@salesforce/label/c.gsChecklistItemPageLayoutsTitle';
import gsChecklistItemPrepareNPSPDesc from '@salesforce/label/c.gsChecklistItemPrepareNPSPDesc';
import gsChecklistItemPrepareNPSPPriBtnLabel from '@salesforce/label/c.gsChecklistItemPrepareNPSPPriBtnLabel';
import gsChecklistItemPrepareNPSPLinkLabel from '@salesforce/label/c.gsChecklistItemPrepareNPSPLinkLabel';
import gsChecklistItemPrepareNPSPTitle from '@salesforce/label/c.gsChecklistItemPrepareNPSPTitle';
import gsChecklistItemReviewCompanyDesc from '@salesforce/label/c.gsChecklistItemReviewCompanyDesc';
import gsChecklistItemReviewCompanyLinkLabel from '@salesforce/label/c.gsChecklistItemReviewCompanyLinkLabel';
import gsChecklistItemReviewCompanyTitle from '@salesforce/label/c.gsChecklistItemReviewCompanyTitle';
import gsChecklistItemRunningReportsDesc from '@salesforce/label/c.gsChecklistItemRunningReportsDesc';
import gsChecklistItemRunningReportsPriBtnLabel from '@salesforce/label/c.gsChecklistItemRunningReportsPriBtnLabel';
import gsChecklistItemRunningReportsLinkLabel from '@salesforce/label/c.gsChecklistItemRunningReportsLinkLabel';
import gsChecklistItemRunningReportsTitle from '@salesforce/label/c.gsChecklistItemRunningReportsTitle';
import gsChecklistItemSetupContactTitle from '@salesforce/label/c.gsChecklistItemSetupContactTitle';
import gsChecklistItemSetupContactDesc from '@salesforce/label/c.gsChecklistItemSetupContactDesc';
import gsChecklistItemSetupContactLinkLabel from '@salesforce/label/c.gsChecklistItemSetupContactLinkLabel';
import gsChecklistItemSetupContactPriBtnLabel from '@salesforce/label/c.gsChecklistItemSetupContactPriBtnLabel';
import gsChecklistItemSetupContactSecBtnLabel from '@salesforce/label/c.gsChecklistItemSetupContactSecBtnLabel';
import gsChecklistItemStayTrackTitle from '@salesforce/label/c.gsChecklistItemStayTrackTitle';
import gsChecklistItemStayTrackDesc from '@salesforce/label/c.gsChecklistItemStayTrackDesc';
import gsChecklistItemStayTrackLinkLabel from '@salesforce/label/c.gsChecklistItemStayTrackLinkLabel';
import gsChecklistItemStayTrackPriBtnLabel from '@salesforce/label/c.gsChecklistItemStayTrackPriBtnLabel';
import gsChecklistItemTrainUsersDesc from '@salesforce/label/c.gsChecklistItemTrainUsersDesc';
import gsChecklistItemTrainUsersLinkLabel from '@salesforce/label/c.gsChecklistItemTrainUsersLinkLabel';
import gsChecklistItemTrainUsersTitle from '@salesforce/label/c.gsChecklistItemTrainUsersTitle';
import gsChecklistMakeItYourDesc from '@salesforce/label/c.gsChecklistMakeItYourDesc';
import gsChecklistMakeItYourTitle from '@salesforce/label/c.gsChecklistMakeItYourTitle';
import gsChecklistOnboardUsersTitle from '@salesforce/label/c.gsChecklistOnboardUsersTitle';
import gsChecklistOnboardUsersDesc from '@salesforce/label/c.gsChecklistOnboardUsersDesc';
import gseuChecklistItemPrebuiltNPSPReportDesc from '@salesforce/label/c.gseuChecklistItemPrebuiltNPSPReportDesc';
import gseuChecklistItemPrebuiltNPSPReportLinkLabel from '@salesforce/label/c.gseuChecklistItemPrebuiltNPSPReportLinkLabel';
import gseuChecklistItemPrebuiltNPSPReportPriBtnLabel from '@salesforce/label/c.gseuChecklistItemPrebuiltNPSPReportPriBtnLabel';
import gseuChecklistItemPrebuiltNPSPReportSecBtnLabel from '@salesforce/label/c.gseuChecklistItemPrebuiltNPSPReportSecBtnLabel';
import gseuChecklistItemPrebuiltNPSPReportTitle from '@salesforce/label/c.gseuChecklistItemPrebuiltNPSPReportTitle';
import gseuChecklistItemStandardReportTypeDesc from '@salesforce/label/c.gseuChecklistItemStandardReportTypeDesc';
import gseuChecklistItemStandardReportTypeLinkLabel from '@salesforce/label/c.gseuChecklistItemStandardReportTypeLinkLabel';
import gseuChecklistItemStandardReportTypePriBtnLabel from '@salesforce/label/c.gseuChecklistItemStandardReportTypePriBtnLabel';
import gseuChecklistItemStandardReportTypeTitle from '@salesforce/label/c.gseuChecklistItemStandardReportTypeTitle';
import gseuChecklistItemViewDashboardDesc from '@salesforce/label/c.gseuChecklistItemViewDashboardDesc';
import gseuChecklistItemViewDashboardLinkLabel from '@salesforce/label/c.gseuChecklistItemViewDashboardLinkLabel';
import gseuChecklistItemViewDashboardPriBtnLabel from '@salesforce/label/c.gseuChecklistItemViewDashboardPriBtnLabel';
import gseuChecklistItemViewDashboardTitle from '@salesforce/label/c.gseuChecklistItemViewDashboardTitle';
import gseuChecklistYourDataDesc from '@salesforce/label/c.gseuChecklistYourDataDesc';
import gseuChecklistYourDataTitle from '@salesforce/label/c.gseuChecklistYourDataTitle';
import gseuChecklistWorkRecordsDesc from '@salesforce/label/c.gseuChecklistWorkRecordsDesc';
import gseuChecklistWorkRecordsTitle from '@salesforce/label/c.gseuChecklistWorkRecordsTitle';
import gseuChecklistItemGlobalSearchDesc from '@salesforce/label/c.gseuChecklistItemGlobalSearchDesc';
import gseuChecklistItemGlobalSearchLinkLabel from '@salesforce/label/c.gseuChecklistItemGlobalSearchLinkLabel';
import gseuChecklistItemGlobalSearchPriBtnLabel from '@salesforce/label/c.gseuChecklistItemGlobalSearchPriBtnLabel';
import gseuChecklistItemGlobalSearchTitle from '@salesforce/label/c.gseuChecklistItemGlobalSearchTitle';
import gseuChecklistItemStayTrackDesc from '@salesforce/label/c.gseuChecklistItemStayTrackDesc';
import gseuChecklistItemStayTrackLinkLabel from '@salesforce/label/c.gseuChecklistItemStayTrackLinkLabel';
import gseuChecklistItemStayTrackPriBtnLabel from '@salesforce/label/c.gseuChecklistItemStayTrackPriBtnLabel';
import gseuChecklistItemStayTrackTitle from '@salesforce/label/c.gseuChecklistItemStayTrackTitle';
import gseuChecklistItemWorkMultipleRecordsDesc from '@salesforce/label/c.gseuChecklistItemWorkMultipleRecordsDesc';
import gseuChecklistItemWorkMultipleRecordsLinkLabel from '@salesforce/label/c.gseuChecklistItemWorkMultipleRecordsLinkLabel';
import gseuChecklistItemWorkMultipleRecordsPriBtnLabel from '@salesforce/label/c.gseuChecklistItemWorkMultipleRecordsPriBtnLabel';
import gseuChecklistItemWorkMultipleRecordsTitle from '@salesforce/label/c.gseuChecklistItemWorkMultipleRecordsTitle';
import gsAdminSetupTitle from '@salesforce/label/c.gsAdminSetupTitle';
import gseuPageTitle from '@salesforce/label/c.gseuPageTitle';
import gseuChecklistItemCaptureDonorIntentDesc from '@salesforce/label/c.gseuChecklistItemCaptureDonorIntentDesc';
import gseuChecklistItemCaptureDonorIntentLinkLabel from '@salesforce/label/c.gseuChecklistItemCaptureDonorIntentLinkLabel';
import gseuChecklistItemCaptureDonorIntentPriBtnLabel from '@salesforce/label/c.gseuChecklistItemCaptureDonorIntentPriBtnLabel';
import gseuChecklistItemCaptureDonorIntentTitle from '@salesforce/label/c.gseuChecklistItemCaptureDonorIntentTitle';
import gseuChecklistItemCollectGiftsDesc from '@salesforce/label/c.gseuChecklistItemCollectGiftsDesc';
import gseuChecklistItemCollectGiftsLinkLabel from '@salesforce/label/c.gseuChecklistItemCollectGiftsLinkLabel';
import gseuChecklistItemCollectGiftsPriBtnLabel from '@salesforce/label/c.gseuChecklistItemCollectGiftsPriBtnLabel';
import gseuChecklistItemCollectGiftsTitle from '@salesforce/label/c.gseuChecklistItemCollectGiftsTitle';
import gseuChecklistItemDonationIndividualDesc from '@salesforce/label/c.gseuChecklistItemDonationIndividualDesc';
import gseuChecklistItemDonationIndividualLinkLabel from '@salesforce/label/c.gseuChecklistItemDonationIndividualLinkLabel';
import gseuChecklistItemDonationIndividualPriBtnLabel from '@salesforce/label/c.gseuChecklistItemDonationIndividualPriBtnLabel';
import gseuChecklistItemDonationIndividualTitle from '@salesforce/label/c.gseuChecklistItemDonationIndividualTitle';
import gseuChecklistItemDonationOrganizationDesc from '@salesforce/label/c.gseuChecklistItemDonationOrganizationDesc';
import gseuChecklistItemDonationOrganizationLinkLabel from '@salesforce/label/c.gseuChecklistItemDonationOrganizationLinkLabel';
import gseuChecklistItemDonationOrganizationPriBtnLabel from '@salesforce/label/c.gseuChecklistItemDonationOrganizationPriBtnLabel';
import gseuChecklistItemDonationOrganizationTitle from '@salesforce/label/c.gseuChecklistItemDonationOrganizationTitle';
import gseuChecklistItemTrackDonationDesc from '@salesforce/label/c.gseuChecklistItemTrackDonationDesc';
import gseuChecklistItemTrackDonationLinkLabel from '@salesforce/label/c.gseuChecklistItemTrackDonationLinkLabel';
import gseuChecklistItemTrackDonationPriBtnLabel from '@salesforce/label/c.gseuChecklistItemTrackDonationPriBtnLabel';
import gseuChecklistItemTrackDonationTitle from '@salesforce/label/c.gseuChecklistItemTrackDonationTitle';
import gseuChecklistTrackDonationDesc from '@salesforce/label/c.gseuChecklistTrackDonationDesc';
import gseuChecklistTrackDonationTitle from '@salesforce/label/c.gseuChecklistTrackDonationTitle';
import gseuChecklistWelcomeNPSPTitle from '@salesforce/label/c.gseuChecklistWelcomeNPSPTitle';
import gseuChecklistWelcomeNPSPDesc from '@salesforce/label/c.gseuChecklistWelcomeNPSPDesc';
import gseuChecklistItemWhatIsNPSPTitle from '@salesforce/label/c.gseuChecklistItemWhatIsNPSPTitle';
import gseuChecklistItemWhatIsNPSPDesc from '@salesforce/label/c.gseuChecklistItemWhatIsNPSPDesc';
import gseuChecklistItemWhatIsNPSPLink from '@salesforce/label/c.gseuChecklistItemWhatIsNPSPLink';
import gseuChecklistItemWhatIsNPCloudTitle from '@salesforce/label/c.gseuChecklistItemWhatIsNPCloudTitle';
import gseuChecklistItemWhatIsNPCloudTitleDesc from '@salesforce/label/c.gseuChecklistItemWhatIsNPCloudTitleDesc';
import gseuChecklistItemWhatIsNPCloudLink from '@salesforce/label/c.gseuChecklistItemWhatIsNPCloudLink';
import gseuChecklistCreateConstituentRecordsTitle from '@salesforce/label/c.gseuChecklistCreateConstituentRecordsTitle';
import gseuChecklistCreateConstituentRecordsDesc from '@salesforce/label/c.gseuChecklistCreateConstituentRecordsDesc';
import gseuChecklistItemCreateContactAndAccountTitle from '@salesforce/label/c.gseuChecklistItemCreateContactAndAccountTitle';
import gseuChecklistItemCreateContactAndAccountDesc from '@salesforce/label/c.gseuChecklistItemCreateContactAndAccountDesc';
import gseuChecklistItemCreateContactAndAccountLink from '@salesforce/label/c.gseuChecklistItemCreateContactAndAccountLink';
import gseuChecklistItemCreateContactAndAccountBlueButton from '@salesforce/label/c.gseuChecklistItemCreateContactAndAccountBlueButton';
import gseuChecklistItemConnectContactsRelationshipsTitle from '@salesforce/label/c.gseuChecklistItemConnectContactsRelationshipsTitle';
import gseuChecklistItemConnectContactsRelationshipsDesc from '@salesforce/label/c.gseuChecklistItemConnectContactsRelationshipsDesc';
import gseuChecklistItemConnectContactsRelationshipsLink from '@salesforce/label/c.gseuChecklistItemConnectContactsRelationshipsLink';
import gseuChecklistItemConnectContactsRelationshipsBlueButton from '@salesforce/label/c.gseuChecklistItemConnectContactsRelationshipsBlueButton';
import gseuChecklistItemConnectContactOrganizationTitle from '@salesforce/label/c.gseuChecklistItemConnectContactOrganizationTitle';
import gseuChecklistItemConnectContactOrganizationDesc from '@salesforce/label/c.gseuChecklistItemConnectContactOrganizationDesc';
import gseuChecklistItemConnectContactOrganizationLink from '@salesforce/label/c.gseuChecklistItemConnectContactOrganizationLink';
import gseuChecklistItemConnectContactOrganizationBlueButton from '@salesforce/label/c.gseuChecklistItemConnectContactOrganizationBlueButton';
import gseuChecklistItemExtraTwoMinutesVideo from '@salesforce/label/c.gseuChecklistItemExtraTwoMinutesVideo';

/**
* @description Map of getLabelValue labels
*/
const labelMap = {
    gsAdminSetupTitle,
    gseuPageTitle,
    gsChecklistExploreNPSPTitle,
    gsChecklistExploreNPSPDesc,
    gsChecklistItemAddUserDesc,
    gsChecklistItemAddUserLinkLabel,
    gsChecklistItemAddUserTitle,
    gsChecklistItemCommunicateWithUserskDesc,
    gsChecklistItemCommunicateWithUserskLinkLabel,
    gsChecklistItemCommunicateWithUserskTitle,
    gsChecklistItemCreateDonationTitle,
    gsChecklistItemCreateDonationDesc,
    gsChecklistItemCreateDonationLinkLabel,
    gsChecklistItemCreateDonationPriBtnLabel,
    gsChecklistItemCustomFieldsDesc,
    gsChecklistItemCustomFieldsLinkLabel,
    gsChecklistItemCustomFieldsTitle,
    gsChecklistItemExtraFourMinuteVideo,
    gsChecklistItemExtraOneMinuteVideo,
    gsChecklistItemExtraSixtyMinuteVideo,
    gsChecklistItemExtraTwoMinutesVideo,
    gsChecklistItemFundraisingProcessDesc,
    gsChecklistItemFundraisingProcessTitle,
    gsChecklistItemFundraisingProcessLinkLabel,
    gsChecklistItemFundraisingProcessPriBtnLabel,
    gsChecklistItemGoFurtherDesc,
    gsChecklistItemGoFurtherLinkLabel,
    gsChecklistItemGoFurtherTitle,
    gsChecklistItemImportDataDesc,
    gsChecklistItemImportDataPriBtnLabel,
    gsChecklistItemImportDataLinkLabel,
    gsChecklistItemImportDataSecBtnLabel,
    gsChecklistItemImportDataTitle,
    gsChecklistItemManageChangeDesc,
    gsChecklistItemManageChangeLinkLabel,
    gsChecklistItemManageChangePriBtnLabel,
    gsChecklistItemManageChangeTitle,
    gsChecklistItemNPSPCloudDesc,
    gsChecklistItemNPSPCloudPriBtnLabel,
    gsChecklistItemNPSPCloudLinkLabel,
    gsChecklistItemNPSPCloudTitle,
    gsChecklistItemNPSPGuideDesc,
    gsChecklistItemNPSPGuidePriBtnLabel,
    gsChecklistItemNPSPGuideTitle,
    gsChecklistItemNPSPSettingsDesc,
    gsChecklistItemNPSPSettingsPriBtnLabel,
    gsChecklistItemNPSPSettingsLinkLabel,
    gsChecklistItemNPSPSettingsTitle,
    gsChecklistItemPageLayoutsDesc,
    gsChecklistItemPageLayoutsLinkLabel,
    gsChecklistItemPageLayoutsTitle,
    gsChecklistItemPrepareNPSPDesc,
    gsChecklistItemPrepareNPSPPriBtnLabel,
    gsChecklistItemPrepareNPSPLinkLabel,
    gsChecklistItemPrepareNPSPTitle,
    gsChecklistItemReviewCompanyDesc,
    gsChecklistItemReviewCompanyLinkLabel,
    gsChecklistItemReviewCompanyTitle,
    gsChecklistItemRunningReportsDesc,
    gsChecklistItemRunningReportsPriBtnLabel,
    gsChecklistItemRunningReportsLinkLabel,
    gsChecklistItemRunningReportsTitle,
    gsChecklistItemSetupContactTitle,
    gsChecklistItemSetupContactDesc,
    gsChecklistItemSetupContactLinkLabel,
    gsChecklistItemSetupContactPriBtnLabel,
    gsChecklistItemSetupContactSecBtnLabel,
    gsChecklistItemStayTrackTitle,
    gsChecklistItemStayTrackDesc,
    gsChecklistItemStayTrackLinkLabel,
    gsChecklistItemStayTrackPriBtnLabel,
    gsChecklistItemTrainUsersDesc,
    gsChecklistItemTrainUsersLinkLabel,
    gsChecklistItemTrainUsersTitle,
    gsChecklistMakeItYourDesc,
    gsChecklistMakeItYourTitle,
    gsChecklistOnboardUsersTitle,
    gsChecklistOnboardUsersDesc,
    gseuChecklistItemPrebuiltNPSPReportDesc,
    gseuChecklistItemPrebuiltNPSPReportLinkLabel,
    gseuChecklistItemPrebuiltNPSPReportPriBtnLabel,
    gseuChecklistItemPrebuiltNPSPReportSecBtnLabel,
    gseuChecklistItemPrebuiltNPSPReportTitle,
    gseuChecklistItemStandardReportTypeDesc,
    gseuChecklistItemStandardReportTypeLinkLabel,
    gseuChecklistItemStandardReportTypePriBtnLabel,
    gseuChecklistItemStandardReportTypeTitle,
    gseuChecklistItemViewDashboardDesc,
    gseuChecklistItemViewDashboardLinkLabel,
    gseuChecklistItemViewDashboardPriBtnLabel,
    gseuChecklistItemViewDashboardTitle,
    gseuChecklistYourDataTitle,
    gseuChecklistYourDataDesc,
    gseuChecklistWorkRecordsDesc,
    gseuChecklistWorkRecordsTitle,
    gseuChecklistItemGlobalSearchDesc,
    gseuChecklistItemGlobalSearchLinkLabel,
    gseuChecklistItemGlobalSearchPriBtnLabel,
    gseuChecklistItemGlobalSearchTitle,
    gseuChecklistItemStayTrackDesc,
    gseuChecklistItemStayTrackLinkLabel,
    gseuChecklistItemStayTrackPriBtnLabel,
    gseuChecklistItemStayTrackTitle,
    gseuChecklistItemWorkMultipleRecordsDesc,
    gseuChecklistItemWorkMultipleRecordsLinkLabel,
    gseuChecklistItemWorkMultipleRecordsPriBtnLabel,
    gseuChecklistItemWorkMultipleRecordsTitle,
    gseuChecklistItemCaptureDonorIntentDesc,
    gseuChecklistItemCaptureDonorIntentLinkLabel,
    gseuChecklistItemCaptureDonorIntentPriBtnLabel,
    gseuChecklistItemCaptureDonorIntentTitle,
    gseuChecklistItemCollectGiftsDesc,
    gseuChecklistItemCollectGiftsLinkLabel,
    gseuChecklistItemCollectGiftsPriBtnLabel,
    gseuChecklistItemCollectGiftsTitle,
    gseuChecklistItemDonationIndividualDesc,
    gseuChecklistItemDonationIndividualLinkLabel,
    gseuChecklistItemDonationIndividualPriBtnLabel,
    gseuChecklistItemDonationIndividualTitle,
    gseuChecklistItemDonationOrganizationDesc,
    gseuChecklistItemDonationOrganizationLinkLabel,
    gseuChecklistItemDonationOrganizationPriBtnLabel,
    gseuChecklistItemDonationOrganizationTitle,
    gseuChecklistItemTrackDonationDesc,
    gseuChecklistItemTrackDonationLinkLabel,
    gseuChecklistItemTrackDonationPriBtnLabel,
    gseuChecklistItemTrackDonationTitle,
    gseuChecklistTrackDonationDesc,
    gseuChecklistTrackDonationTitle,
    gseuChecklistWelcomeNPSPTitle,
    gseuChecklistWelcomeNPSPDesc,
    gseuChecklistItemWhatIsNPSPTitle,
    gseuChecklistItemWhatIsNPSPDesc,
    gseuChecklistItemWhatIsNPSPLink,
    gseuChecklistItemWhatIsNPCloudTitle,
    gseuChecklistItemWhatIsNPCloudTitleDesc,
    gseuChecklistItemWhatIsNPCloudLink,
    gseuChecklistCreateConstituentRecordsTitle,
    gseuChecklistCreateConstituentRecordsDesc,
    gseuChecklistItemCreateContactAndAccountTitle,
    gseuChecklistItemCreateContactAndAccountDesc,
    gseuChecklistItemCreateContactAndAccountLink,
    gseuChecklistItemCreateContactAndAccountBlueButton,
    gseuChecklistItemConnectContactsRelationshipsTitle,
    gseuChecklistItemConnectContactsRelationshipsDesc,
    gseuChecklistItemConnectContactsRelationshipsLink,
    gseuChecklistItemConnectContactsRelationshipsBlueButton,
    gseuChecklistItemConnectContactOrganizationTitle,
    gseuChecklistItemConnectContactOrganizationDesc,
    gseuChecklistItemConnectContactOrganizationLink,
    gseuChecklistItemConnectContactOrganizationBlueButton,
    gseuChecklistItemExtraTwoMinutesVideo

}

/**
*  @description This function getLabelValue the string using labelMap for that
*  @param string Name to label to getLabelValue
*  @return string
*/
export default function getLabelValue(label) {
    return labelMap[label] != undefined ? labelMap[label] : label;
}


text:
{% extends "base.html" %}
{% block title %}Error Encountered{% endblock %}
{% block content %}

Error!

Something with {{culprit}} has gone wrong.

{{details}}

{% endblock %}


text:
//
//  SkyActionSheet.m
//  MicroblogDemo
//
//  Created by Sky on 15/4/17.
//  Copyright (c) 2015年 Sky. All rights reserved.
//

#import "SkyActionSheet.h"
#import "UIView+AutoLayout.h"
#import "SkyActionSheetButton.h"

#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
#define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width

#define UIControlStateAll UIControlStateNormal & UIControlStateSelected & UIControlStateHighlighted
#define SYSTEM_VERSION_LESS_THAN(version) ([[[UIDevice currentDevice] systemVersion] compare:version options:NSNumericSearch] == NSOrderedAscending)

@implementation SkyActionSheet

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)init
{
    if (self=[super init])
    {
        self.backgroundColor=[UIColor clearColor];
        self.buttons = [[NSMutableArray alloc] init];
        self.shouldCancelOnTouch = YES;
        self.cancelButtonIndex = -1;
        self.transparentView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([UIScreen mainScreen].bounds), CGRectGetHeight([UIScreen mainScreen].bounds))];
        self.transparentView.backgroundColor = [UIColor blackColor];
        self.transparentView.alpha = 0.0f;

        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(cancelSelection)];
        tap.numberOfTapsRequired = 1;
        [self.transparentView addGestureRecognizer:tap];
    }
    return self;
}

-(instancetype)initWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelTitle andOtherButtonTitlesArray:(NSArray *)otherTitlesArray
{
    self=[self init];

    NSMutableArray* titles=[otherTitlesArray mutableCopy];

    // set up cancel button
    if (cancelTitle)
    {
        SkyActionSheetButton *cancelButton = [[SkyActionSheetButton alloc] initWithButtonWithCornerType:SkyActionSheetButtonCornerTypeAllCornersRounded];
        cancelButton.titleLabel.font = [UIFont boldSystemFontOfSize:21];
        [cancelButton setTitle:cancelTitle forState:UIControlStateAll];
        [self.buttons addObject:cancelButton];
        self.hasCancelButton = YES;
    }
    else
    {
        self.shouldCancelOnTouch = NO;
        self.hasCancelButton = NO;
    }

    switch (titles.count) {

        case 0: {
            break;
        }

        case 1: {

            SkyActionSheetButton *otherButton;

            if (title)
            {
                otherButton = [[SkyActionSheetButton alloc] initWithButtonWithCornerType:SkyActionSheetButtonCornerTypeBottomCornersRounded];
            } else
            {
                otherButton = [[SkyActionSheetButton alloc] initWithButtonWithCornerType:SkyActionSheetButtonCornerTypeAllCornersRounded];
            }

            [otherButton setTitle:[titles objectAtIndex:0] forState:UIControlStateAll];
            [self.buttons insertObject:otherButton atIndex:0];

            break;

        } case 2: {

            SkyActionSheetButton *otherButton = [[SkyActionSheetButton alloc] initWithButtonWithCornerType:SkyActionSheetButtonCornerTypeBottomCornersRounded];
            [otherButton setTitle:[titles objectAtIndex:1] forState:UIControlStateAll];

            SkyActionSheetButton *secondButton;

            if (title) {
                secondButton = [[SkyActionSheetButton alloc] init];
            } else {
                secondButton = [[SkyActionSheetButton alloc] initWithButtonWithCornerType:SkyActionSheetButtonCornerTypeTopCornersRounded];
            }

            [secondButton setTitle:[titles objectAtIndex:0] forState:UIControlStateAll];
            [self.buttons insertObject:secondButton atIndex:0];
            [self.buttons insertObject:otherButton atIndex:1];

            break;

        } default: {

            SkyActionSheetButton *bottomButton = [[SkyActionSheetButton alloc] initWithButtonWithCornerType:SkyActionSheetButtonCornerTypeBottomCornersRounded];
            [bottomButton setTitle:[titles lastObject] forState:UIControlStateAll];

            SkyActionSheetButton *topButton;

            if (title) {
                topButton = [[SkyActionSheetButton alloc] init];
            } else {
                topButton = [[SkyActionSheetButton alloc] initWithButtonWithCornerType:SkyActionSheetButtonCornerTypeTopCornersRounded];
            }

            [topButton setTitle:[titles objectAtIndex:0] forState:UIControlStateAll];
            [self.buttons insertObject:topButton atIndex:0];

            int whereToStop = (int)titles.count - 1;
            for (int i = 1; i < whereToStop; ++i) {
                SkyActionSheetButton *middleButton = [[SkyActionSheetButton alloc] init];
                [middleButton setTitle:[titles objectAtIndex:i] forState:UIControlStateAll];
                [self.buttons insertObject:middleButton atIndex:i];
            }

            [self.buttons insertObject:bottomButton atIndex:(titles.count - 1)];

            break;
        }
    }

    if (self.hasCancelButton) {
        self.cancelButtonIndex = self.buttons.count - 1;
    } else {
        self.cancelButtonIndex = -1;
    }

    [self setUpTheActions];

    for (int i = 0; i < self.buttons.count; ++i) {
        [[self.buttons objectAtIndex:i] setIndex:i];
    }

    if (title) {
        self.title = title;
    } else {
        [self setUpTheActionSheet];
    }

    return self;

    return self;
}

- (void)setUpTheActionSheet {

    float height;
    float width;

    if (UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) {
        width = CGRectGetWidth([UIScreen mainScreen].bounds);
    } else {
        width = CGRectGetHeight([UIScreen mainScreen].bounds);
    }

    // slight adjustment to take into account non-retina devices
    if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]
        && [[UIScreen mainScreen] scale] == 2.0) {

        // setup spacing for retina devices
        if (self.hasCancelButton) {
            height = 59.5;
        } else if (!self.hasCancelButton && self.titleView) {
            height = 52.0;
        } else {
            height = 104.0;
        }

        if (self.buttons.count) {
            height += (self.buttons.count * 44.5);
        }
        if (self.titleView) {
            height += CGRectGetHeight(self.titleView.frame) - 44;
        }

        self.frame = CGRectMake(0, 0, width, height);
        [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];

        CGPoint pointOfReference = CGPointMake(CGRectGetWidth(self.frame) / 2.0, CGRectGetHeight(self.frame) - 30);

        int whereToStop;
        if (self.hasCancelButton) {
            [self addSubview:[self.buttons lastObject]];
            [[self.buttons lastObject] setCenter:pointOfReference];
            [[self.buttons objectAtIndex:0] setCenter:CGPointMake(pointOfReference.x, pointOfReference.y - 52)];
            pointOfReference = CGPointMake(pointOfReference.x, pointOfReference.y - 52);
            whereToStop = (int)self.buttons.count - 2;
        } else {
            [self addSubview:[self.buttons lastObject]];
            [[self.buttons lastObject] setCenter:pointOfReference];
            whereToStop = (int)self.buttons.count - 1;
        }

        for (int i = 0, j = whereToStop; i <= whereToStop; ++i, --j) {
            [self addSubview:[self.buttons objectAtIndex:i]];
            [[self.buttons objectAtIndex:i] setCenter:CGPointMake(pointOfReference.x, pointOfReference.y - (44.5 * j))];
        }

        if (self.titleView) {
            [self addSubview:self.titleView];
            self.titleView.center = CGPointMake(self.center.x, CGRectGetHeight(self.titleView.frame) / 2.0);
        }

    } else {

        // setup spacing for non-retina devices

        if (self.hasCancelButton) {
            height = 60.0;
        } else {
            height = 104.0;
        }

        if (self.buttons.count) {
            height += (self.buttons.count * 45);
        }
        if (self.titleView) {
            height += CGRectGetHeight(self.titleView.frame) - 45;
        }

        self.frame = CGRectMake(0, 0, width, height);
        [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];

        CGPoint pointOfReference = CGPointMake(CGRectGetWidth(self.frame) / 2.0, CGRectGetHeight(self.frame) - 30);

        int whereToStop;
        if (self.hasCancelButton) {
            [self addSubview:[self.buttons lastObject]];
            [[self.buttons lastObject] setCenter:pointOfReference];
            [[self.buttons objectAtIndex:0] setCenter:CGPointMake(pointOfReference.x, pointOfReference.y - 52)];
            pointOfReference = CGPointMake(pointOfReference.x, pointOfReference.y - 52);
            whereToStop = (int)self.buttons.count - 2;
        } else {
            [self addSubview:[self.buttons lastObject]];
            [[self.buttons lastObject] setCenter:pointOfReference];
            whereToStop = (int)self.buttons.count - 1;
        }

        for (int i = 0, j = whereToStop; i <= whereToStop; ++i, --j) {
            [self addSubview:[self.buttons objectAtIndex:i]];
            [[self.buttons objectAtIndex:i] setCenter:CGPointMake(pointOfReference.x, pointOfReference.y - (45 * j))];
        }

        if (self.titleView) {
            [self addSubview:self.titleView];
            self.titleView.center = CGPointMake(self.center.x, CGRectGetHeight(self.titleView.frame) / 2.0);
        }
    }

}

- (void)setUpTheActions {

    for (SkyActionSheetButton *button in self.buttons) {
        if ([button isKindOfClass:[SkyActionSheetButton class]]) {
            [button addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
            [button addTarget:self action:@selector(highlightPressedButton:) forControlEvents:UIControlEventTouchDown];
            [button addTarget:self action:@selector(unhighlightPressedButton:) forControlEvents:UIControlEventTouchUpInside | UIControlEventTouchCancel | UIControlEventTouchDragExit];
        }
    }
}

- (void)highlightPressedButton:(SkyActionSheetButton *)button {

    [UIView animateWithDuration:0.15f animations:^() {

         button.transform = CGAffineTransformMakeScale(.98, .95);
    }];
}

- (void)unhighlightPressedButton:(SkyActionSheetButton *)button {

    [UIView animateWithDuration:0.3f animations:^() {

         button.transform = CGAffineTransformMakeScale(1, 1);

    }];

}

#pragma mark - SkyActionSheet Helpful Method

- (void)buttonClicked:(SkyActionSheetButton *)button {

    if(self.actionSheetPressHndler) self.actionSheetPressHndler(self,self.actionSheetStyle,button.index);
    self.shouldCancelOnTouch = YES;

    [self removeFromView];
}

- (void)showInView:(UIView *)theView {

    UIVisualEffect *blurEffect;
    blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];

    if (NSClassFromString(@"UIVisualEffectView") && self.blurBackground) {
        UIVisualEffectView *visualEffectView;
        visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
        visualEffectView.frame = theView.bounds;
        visualEffectView.tag = 821;
        [theView addSubview:visualEffectView];
        visualEffectView.userInteractionEnabled = NO;
    }

    [theView addSubview:self];

    [theView insertSubview:self.transparentView belowSubview:self];

    CGRect theScreenRect = [UIScreen mainScreen].bounds;

    float height;
    float x;

    if (UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) {
        height = CGRectGetHeight(theScreenRect);
        x = CGRectGetWidth(theView.frame) / 2.0;
        self.transparentView.frame = CGRectMake(self.transparentView.center.x, self.transparentView.center.y, CGRectGetWidth(theScreenRect), CGRectGetHeight(theScreenRect));
    } else {
        height = CGRectGetWidth(theScreenRect);
        x = CGRectGetHeight(theView.frame) / 2.0;
        self.transparentView.frame = CGRectMake(self.transparentView.center.x, self.transparentView.center.y, CGRectGetHeight(theScreenRect), CGRectGetWidth(theScreenRect));
    }

    self.center = CGPointMake(x, height + CGRectGetHeight(self.frame) / 2.0);
    self.transparentView.center = CGPointMake(x, height / 2.0);

    if (SYSTEM_VERSION_LESS_THAN(@"7.0")) {

        [UIView animateWithDuration:0.3f
                              delay:0.0f
                            options:UIViewAnimationOptionCurveEaseOut
                         animations:^() {
                             self.transparentView.alpha = 0.4f;
                             self.center = CGPointMake(x, (height - 20) - CGRectGetHeight(self.frame) / 2.0);

                         } completion:^(BOOL finished) {
                             self.visible = YES;
                         }];
    } else {

        [UIView animateWithDuration:0.3f
                              delay:0
             usingSpringWithDamping:0.85f
              initialSpringVelocity:1.0f
                            options:UIViewAnimationOptionCurveLinear
                         animations:^{
                             self.transparentView.alpha = 0.4f;
                             self.center = CGPointMake(x, height - CGRectGetHeight(self.frame) / 2.0);

                         } completion:^(BOOL finished) {
                             self.visible = YES;
                         }];
    }
}

- (void) cancelSelection {
    if(self.actionSheetPressHndler) self.actionSheetPressHndler(self,self.actionSheetStyle,NSIntegerMax);
    [self removeFromView];
}

- (void)removeFromView {

    if (self.shouldCancelOnTouch) {

        if (SYSTEM_VERSION_LESS_THAN(@"7.0")) {

            [UIView animateWithDuration:0.3f
                                  delay:0.0f
                                options:UIViewAnimationOptionCurveEaseOut
                             animations:^() {
                                 self.transparentView.alpha = 0.0f;
                                 self.center = CGPointMake(CGRectGetWidth(self.frame) / 2.0, CGRectGetHeight([UIScreen mainScreen].bounds) + CGRectGetHeight(self.frame) / 2.0);

                             } completion:^(BOOL finished) {
                                 [self.transparentView removeFromSuperview];
                                 [self removeFromSuperview];
                                 self.visible = NO;
                             }];
        } else {

            UIView *blurView = [self.transparentView.superview viewWithTag:821];

            [UIView animateWithDuration:0.3f
                                  delay:0
                 usingSpringWithDamping:0.85f
                  initialSpringVelocity:1.0f
                                options:UIViewAnimationOptionCurveLinear
                             animations:^{

                                 if (blurView) {
                                     blurView.alpha = 0;
                                 }

                                 self.transparentView.alpha = 0.0f;
                                 self.center = CGPointMake(CGRectGetWidth(self.frame) / 2.0, CGRectGetHeight([UIScreen mainScreen].bounds) + CGRectGetHeight(self.frame) / 2.0);

                             } completion:^(BOOL finished) {
                                 [self.transparentView removeFromSuperview];
                                 [self removeFromSuperview];
                                 if (blurView) {
                                     [blurView removeFromSuperview];
                                 }
                                 self.visible = NO;
                             }];
        }

    }

}

@end

@implementation SkyActionSheetTitleView

-(instancetype)initWithTitle:(NSString *)title andFont:(UIFont *)font
{
    if (self=[super init])
    {
        self.alpha= 0.95f;
        self.backgroundColor=[UIColor whiteColor];
        self.titleLabel = [[UILabel alloc] initForAutoLayout];
        self.titleLabel.textColor = [UIColor colorWithWhite:0.564 alpha:1.000];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.titleLabel.numberOfLines = 0;
        self.titleLabel.text = title;
        self.titleLabel.backgroundColor = [UIColor clearColor];
        self.titleLabel.font=font?font:[UIFont systemFontOfSize:13];
        [self.titleLabel sizeToFit];
        [self setMaskTo:self byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight];
        [self addSubview:self.titleLabel];
        self.titleLabel.center = self.center;

    }
    return self;
}

- (void)setMaskTo:(UIView*)view byRoundingCorners:(UIRectCorner)corners
{
    UIBezierPath *rounded = [UIBezierPath bezierPathWithRoundedRect:view.bounds
                                                  byRoundingCorners:corners
                                                        cornerRadii:CGSizeMake(4.0, 4.0)];
    CAShapeLayer *shape = [[CAShapeLayer alloc] init];
    [shape setPath:rounded.CGPath];
    view.layer.mask = shape;
}

@end


text:
/*jslint node: true */
'use strict';

var fs      = require('fs');
var path    = require('path');
var shortid = require('shortid');

// Since Node 0.8, .existsSync() moved from path to fs:
var _existsSync = fs.existsSync || path.existsSync;

var getFileKey = function(filePath){

    return path.basename(filePath);

};
var udf;

function FileInfo(file, opts) {
    this.rawName = file.name;
    this.name = file.name;
    this.extName = path.extname( file.name );
    this.size = file.size;
    this.type = file.type;
    this.modified = file.lastMod;
    this.deleteType = 'DELETE';
    this.options = opts;
    this.key = getFileKey(file.path);
    this.versions = {};
    this.proccessed = false;
    this.width = udf;
    this.height = udf;
    this.safeName();
}
FileInfo.prototype.update = function(file){
    this.size = file.size;
};
FileInfo.prototype.safeName = function() {
    // Prevent directory traversal and creating hidden system files:
    this.name = path.basename(this.name).replace(/^\.+/, '');
    this.nameNoExt = path.basename( this.name, this.extName );

    if( this.options.autoRename ) {
        this.name = shortid.generate() + this.extName;
    }

    // Prevent overwriting existing files:
    while (_existsSync(this.options.uploadDir + '/' + this.name)) {
        if( !this.options.autoRename ){
            this.name = this.nameNoExt + '_' + shortid.generate() + this.extName;
        } else {
            this.name = shortid.generate() + this.extName;
        }
    }
};

FileInfo.prototype.initUrls = function() {

    var that = this;
    var baseUrl = (that.options.useSSL ? 'https:' : 'http:') + '//' + that.options.host + that.options.uploadUrl;
    var encodedName = encodeURIComponent(that.name);
    if( this.error ) return;

    that.url = baseUrl + encodedName;
    that.deleteUrl = baseUrl + encodedName;
    if(!that.hasVersionImages()) return;
    Object.keys(that.options.imageVersions).forEach(function(version) {
        if ( _existsSync( that.options.uploadDir + '/' + version + '/' + that.name )) {
            that[version + 'Url'] = baseUrl + version + '/' + encodedName;
        } else {
            // create version failed, use the default url as version url
            that[version + 'Url'] = that.url;
        }
    });

};

FileInfo.prototype.validate = function() {
    if (this.options.minFileSize && this.options.minFileSize > this.size) {
        this.error = 'File is too small';
    } else if (this.options.maxFileSize && this.options.maxFileSize < this.size) {
        this.error = 'File is too big';
    } else if (!this.options.acceptFileTypes.test(this.name)) {
        this.error = 'Filetype not allowed';
    }
    return !this.error;
};
FileInfo.prototype.hasVersionImages = function(){
    return (this.options.copyImgAsThumb && this.options.imageTypes.test(this.url));
};

module.exports = FileInfo;

module.exports.getFileKey = getFileKey;


text:
import {verifyNoBrowserErrors} from 'angular2/src/test_lib/e2e_util';

describe('Order Management CRUD', function() {
  var URL = 'examples/src/order_management/index.html';

  it('should work', function() {
    browser.get(URL);
    verifyNoBrowserErrors();
  });
});