text:
for(var i = 0; i < 169; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); }

$axure.eventManager.pageLoad(
function (e) {

if (true) {

SetWidgetSelected('u11');
}

});

widgetIdToMoveFunction['u78'] = function() {
var e = windowEvent;

if (true) {

	MoveWidgetWithThis('u104','u78');

}

}

widgetIdToMoveFunction['u104'] = function() {
var e = windowEvent;

if (true) {

	MoveWidgetWithThis('u1','u104');

}

}

widgetIdToMoveFunction['u1'] = function() {
var e = windowEvent;

if (true) {

	MoveWidgetWithThis('u154','u1');

}

}

function rdo2Open(e) {

if (true) {

	SetPanelState('u78', 'pd0u78','none','',500,'none','',500);

	MoveWidgetBy('u104', GetNum('0'), GetNum('83'),'none',500);

}

}

function rdo0Home(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Home__Find_A_Store.html');

}

}

function rdo0More(e) {

if (true) {

	SetPanelVisibility('u47','','none',500);

	BringToFront("u47");

	MoveWidgetBy('u78', GetNum('0'), GetNum('245'),'none',500);

}

}

function rdo0Less(e) {

if (true) {

	SetPanelVisibility('u47','hidden','none',500);

	SendToBack("u47");

	MoveWidgetBy('u78', GetNum('0'), GetNum('-245'),'none',500);

}

}

function rdo1Close(e) {

if (true) {

	SetPanelState('u78', 'pd1u78','none','',500,'none','',500);

	MoveWidgetBy('u104', GetNum(''), GetNum('-83'),'none',500);

}

}
gv_vAlignTable['u122'] = 'center';gv_vAlignTable['u21'] = 'center';gv_vAlignTable['u156'] = 'center';gv_vAlignTable['u130'] = 'center';document.getElementById('u7_img').tabIndex = 0;

u7.style.cursor = 'pointer';
$axure.eventManager.click('u7', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Store_Details__Gateway.html');

}
});
document.getElementById('u79_img').tabIndex = 0;

u79.style.cursor = 'pointer';
$axure.eventManager.click('u79', function(e) {

if (true) {

	SetPanelState('u78', 'pd0u78','none','',500,'none','',500);

	MoveWidgetBy('u104', GetNum('0'), GetNum('83'),'none',500);

}
});
gv_vAlignTable['u153'] = 'center';document.getElementById('u17_img').tabIndex = 0;

u17.style.cursor = 'pointer';
$axure.eventManager.click('u17', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Shopping_List__Home.html');

}
});
gv_vAlignTable['u135'] = 'center';gv_vAlignTable['u151'] = 'center';gv_vAlignTable['u55'] = 'center';gv_vAlignTable['u101'] = 'center';gv_vAlignTable['u14'] = 'center';document.getElementById('u48_img').tabIndex = 0;
HookClick('u48', false);

u48.style.cursor = 'pointer';
$axure.eventManager.click('u48', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Special_Diets_Overview.html');

}
});
gv_vAlignTable['u27'] = 'center';document.getElementById('u52_img').tabIndex = 0;
HookClick('u52', false);

u52.style.cursor = 'pointer';
$axure.eventManager.click('u52', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Our_Apps.html');

}
});
document.getElementById('u20_img').tabIndex = 0;

u20.style.cursor = 'pointer';
$axure.eventManager.click('u20', function(e) {

if (true) {

	SetPanelState('u19', 'pd0u19','none','',500,'none','',500);

rdo0Less(e);

}
});
gv_vAlignTable['u67'] = 'center';gv_vAlignTable['u65'] = 'center';gv_vAlignTable['u120'] = 'center';gv_vAlignTable['u110'] = 'center';gv_vAlignTable['u108'] = 'center';document.getElementById('u37_img').tabIndex = 0;

u37.style.cursor = 'pointer';
$axure.eventManager.click('u37', function(e) {

if ((GetWidgetText('u39')) != ('enter text...')) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Search_Results.html');

}
});
HookClick('u62', false);
gv_vAlignTable['u141'] = 'center';document.getElementById('u11_img').tabIndex = 0;

u11.style.cursor = 'pointer';
$axure.eventManager.click('u11', function(e) {

if (true) {

rdo0Home(e);

}
});
gv_vAlignTable['u89'] = 'center';
u39.style.cursor = 'pointer';
$axure.eventManager.click('u39', function(e) {

if (true) {

SetWidgetFormText('u39', '');

}
});
gv_vAlignTable['u103'] = 'top';gv_vAlignTable['u164'] = 'center';gv_vAlignTable['u99'] = 'center';gv_vAlignTable['u112'] = 'center';gv_vAlignTable['u44'] = 'center';gv_vAlignTable['u57'] = 'center';gv_vAlignTable['u16'] = 'center';gv_vAlignTable['u41'] = 'center';gv_vAlignTable['u149'] = 'center';document.getElementById('u54_img').tabIndex = 0;
HookClick('u54', false);

u54.style.cursor = 'pointer';
$axure.eventManager.click('u54', function(e) {

if (true) {

	self.location.href='http://www.wholefoodsmarket.com/careers';

}
});
gv_vAlignTable['u118'] = 'center';document.getElementById('u88_img').tabIndex = 0;

u88.style.cursor = 'pointer';
$axure.eventManager.click('u88', function(e) {

if (true) {

rdo1Close(e);

}
});
gv_vAlignTable['u38'] = 'center';document.getElementById('u26_img').tabIndex = 0;

u26.style.cursor = 'pointer';
$axure.eventManager.click('u26', function(e) {

if (true) {

	SetPanelState('u19', 'pd1u19','none','',500,'none','',500);

rdo0More(e);

}
});

$axure.eventManager.click('u85', function(e) {

if (true) {

	SetPanelState('u78', 'pd0u78','none','',500,'none','',500);

	MoveWidgetBy('u104', GetNum('0'), GetNum('83'),'none',500);

}
});
gv_vAlignTable['u51'] = 'center';gv_vAlignTable['u10'] = 'center';document.getElementById('u100_img').tabIndex = 0;

u100.style.cursor = 'pointer';
$axure.eventManager.click('u100', function(e) {

if ((GetWidgetText('u95')) != ('Zip, or City and State')) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Store_Results.html');

}
});

$axure.eventManager.click('u77', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Home__Find_A_Store.html');

}
});

$axure.eventManager.click('u77', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Home__Find_A_Store.html');

}
});

$axure.eventManager.click('u77', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Home__Find_A_Store.html');

}
});
gv_vAlignTable['u82'] = 'center';
u95.style.cursor = 'pointer';
$axure.eventManager.click('u95', function(e) {

if (true) {

SetWidgetFormText('u95', '');

}
});
gv_vAlignTable['u61'] = 'center';gv_vAlignTable['u116'] = 'center';gv_vAlignTable['u158'] = 'center';gv_vAlignTable['u114'] = 'center';gv_vAlignTable['u160'] = 'center';
$axure.eventManager.click('u92', function(e) {

if (true) {

	SetPanelState('u78', 'pd1u78','none','',500,'none','',500);

	MoveWidgetBy('u104', GetNum(''), GetNum('-83'),'none',500);

}
});
gv_vAlignTable['u46'] = 'center';gv_vAlignTable['u126'] = 'top';gv_vAlignTable['u5'] = 'center';document.getElementById('u98_img').tabIndex = 0;

u98.style.cursor = 'pointer';
$axure.eventManager.click('u98', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Store_Results.html');

}
});
document.getElementById('u56_img').tabIndex = 0;
HookClick('u56', false);

u56.style.cursor = 'pointer';
$axure.eventManager.click('u56', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Blog.html');

}
});
gv_vAlignTable['u106'] = 'center';document.getElementById('u40_img').tabIndex = 0;

u40.style.cursor = 'pointer';
$axure.eventManager.click('u40', function(e) {

if (true) {

	SetPanelState('u36', 'pd1u36','none','',500,'swing','left',1000);

}
});
gv_vAlignTable['u139'] = 'center';gv_vAlignTable['u87'] = 'center';gv_vAlignTable['u53'] = 'center';gv_vAlignTable['u84'] = 'center';document.getElementById('u50_img').tabIndex = 0;
HookClick('u50', false);

u50.style.cursor = 'pointer';
$axure.eventManager.click('u50', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Product_FAQs_Landing.html');

}
});
gv_vAlignTable['u97'] = 'center';gv_vAlignTable['u63'] = 'center';document.getElementById('u81_img').tabIndex = 0;

u81.style.cursor = 'pointer';
$axure.eventManager.click('u81', function(e) {

if (true) {

	SetPanelState('u78', 'pd0u78','none','',500,'none','',500);

	MoveWidgetBy('u104', GetNum('0'), GetNum('83'),'none',500);

}
});
gv_vAlignTable['u128'] = 'top';gv_vAlignTable['u94'] = 'center';document.getElementById('u60_img').tabIndex = 0;
HookClick('u60', false);

u60.style.cursor = 'pointer';
$axure.eventManager.click('u60', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Online_Ordering.html');

}
});
document.getElementById('u9_img').tabIndex = 0;

u9.style.cursor = 'pointer';
$axure.eventManager.click('u9', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Store_Details__Lamar.html');

}
});
gv_vAlignTable['u147'] = 'center';gv_vAlignTable['u91'] = 'center';document.getElementById('u24_img').tabIndex = 0;

u24.style.cursor = 'pointer';
$axure.eventManager.click('u24', function(e) {

if (true) {

	SetPanelState('u19', 'pd1u19','none','',500,'none','',500);

rdo0More(e);

}
});
gv_vAlignTable['u23'] = 'center';document.getElementById('u13_img').tabIndex = 0;

u13.style.cursor = 'pointer';
$axure.eventManager.click('u13', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Recipes.html');

}
});
gv_vAlignTable['u29'] = 'center';gv_vAlignTable['u132'] = 'center';document.getElementById('u58_img').tabIndex = 0;
HookClick('u58', false);

u58.style.cursor = 'pointer';
$axure.eventManager.click('u58', function(e) {

if (true) {

	self.location.href='http://www.wholefoodsmarket.com/whole-foods-market';

}
});
document.getElementById('u83_img').tabIndex = 0;

u83.style.cursor = 'pointer';
$axure.eventManager.click('u83', function(e) {

if (true) {

rdo2Open(e);

}
});
gv_vAlignTable['u8'] = 'center';gv_vAlignTable['u3'] = 'center';document.getElementById('u15_img').tabIndex = 0;

u15.style.cursor = 'pointer';
$axure.eventManager.click('u15', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Deals.html');

}
});
gv_vAlignTable['u49'] = 'center';gv_vAlignTable['u124'] = 'center';gv_vAlignTable['u80'] = 'center';gv_vAlignTable['u167'] = 'center';gv_vAlignTable['u145'] = 'center';gv_vAlignTable['u12'] = 'center';gv_vAlignTable['u25'] = 'center';gv_vAlignTable['u59'] = 'center';gv_vAlignTable['u137'] = 'center';document.getElementById('u90_img').tabIndex = 0;

u90.style.cursor = 'pointer';
$axure.eventManager.click('u90', function(e) {

if (true) {

rdo1Close(e);

}
});
gv_vAlignTable['u18'] = 'center';document.getElementById('u161_img').tabIndex = 0;

u161.style.cursor = 'pointer';
$axure.eventManager.click('u161', function(e) {

if (true) {

    self.location.href="resources/reload.html#" + encodeURI($axure.globalVariableProvider.getLinkUrl($axure.pageData.url));

}
});
document.getElementById('u45_img').tabIndex = 0;

u45.style.cursor = 'pointer';
$axure.eventManager.click('u45', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Store_Results.html');

}
});
document.getElementById('u22_img').tabIndex = 0;

u22.style.cursor = 'pointer';
$axure.eventManager.click('u22', function(e) {

if (true) {

	SetPanelState('u19', 'pd0u19','none','',500,'none','',500);

rdo0Less(e);

}
});
gv_vAlignTable['u143'] = 'center';gv_vAlignTable['u162'] = 'center';gv_vAlignTable['u35'] = 'center';document.getElementById('u28_img').tabIndex = 0;

u28.style.cursor = 'pointer';
$axure.eventManager.click('u28', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('Home__Find_A_Store.html');

}
});


text:
"""
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import tensorflow as tf
from fabric import util
from fabric import exec_train
from fabric import DatasetRecord
from models import ModelSdc
from processors import ProcessorSdc
from feeds import FeedImagesWithLabels

FLAGS = tf.app.flags.FLAGS

tf.app.flags.DEFINE_string('subset', 'train',
                           """Either 'validation', 'train', 'test'""")

tf.app.flags.DEFINE_string('root_network', 'resnet_v1_50',
                           """Either resnet_v1_50, resnet_v1_101, resnet_v1_152, inception_resnet_v2, nvidia_sdc""")

tf.app.flags.DEFINE_integer('top_version', 5,
                           """Top level network version, specifies output layer variations. See model code.""")

tf.app.flags.DEFINE_boolean('lock_root', False, 'Lock root convnet parameters')

class SdcData(DatasetRecord):
    """Self-driving car dataset."""

    def __init__(self):
        super(SdcData, self).__init__('sdc', FLAGS.subset)

    def num_classes(self):
        return 0

    def num_examples_per_epoch(self):
        """Returns the number of examples in the data subset."""
        if self.subset == 'train':
            return 92643 #431627 #319814
        elif self.subset == 'validation':
            return 16709 #43134 #57557

def main(_):
    util.check_tensorflow_version()

    processor = ProcessorSdc()
    processor.standardize_input = 'frame'
    #processor.num_input_images = 2

    feed = FeedImagesWithLabels(dataset=SdcData(), processor=processor)

    model_params = {
        'outputs': {
            'steer': 1,
        #    'xyz': 2,
        },

        #'network': 'resnet_v1_50',
        #'version': 5,

        'network': FLAGS.root_network,
        'version': FLAGS.top_version,
        'bayesian': False,
        'lock_root': FLAGS.lock_root,
        'regression_loss': 'mse',
    }
    model = ModelSdc(params=model_params)

    exec_train.train(feed, model)

if __name__ == '__main__':
    tf.app.run()

redpajama_set_name: RedPajamaGithub


text:
#include <PiDxe.h>

#include <Protocol/ReportStatusCodeHandler.h>
#include <Protocol/AcpiTable.h>
#include <Protocol/LockBox.h>
#include <Protocol/Variable.h>

#include <Guid/Acpi.h>
#include <Guid/FirmwarePerformance.h>

#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/DxeServicesLib.h>
#include <Library/TimerLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>
#include <Library/LockBoxLib.h>
#include <Library/UefiLib.h>

#define SMM_BOOT_RECORD_COMM_SIZE (OFFSET_OF (EFI_SMM_COMMUNICATE_HEADER, Data) + sizeof(SMM_BOOT_RECORD_COMMUNICATE))

EFI_RSC_HANDLER_PROTOCOL    *mRscHandlerProtocol = NULL;

BOOLEAN                     mLockBoxReady = FALSE;
EFI_EVENT                   mReadyToBootEvent;
EFI_EVENT                   mLegacyBootEvent;
EFI_EVENT                   mExitBootServicesEvent;
UINTN                       mFirmwarePerformanceTableTemplateKey  = 0;
BOOLEAN                     mDxeCoreReportStatusCodeEnable = FALSE;

BOOT_PERFORMANCE_TABLE                      *mAcpiBootPerformanceTable = NULL;
BOOT_PERFORMANCE_TABLE                      *mReceivedAcpiBootPerformanceTable = NULL;
S3_PERFORMANCE_TABLE                        *mAcpiS3PerformanceTable   = NULL;

FIRMWARE_PERFORMANCE_TABLE  mFirmwarePerformanceTableTemplate = {
  {
    EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE,
    sizeof (FIRMWARE_PERFORMANCE_TABLE),
    EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION,    // Revision
    0x00, // Checksum will be updated at runtime
    //
    // It is expected that these values will be updated at EntryPoint.
    //
    {0x00},     // OEM ID is a 6 bytes long field
    0x00,       // OEM Table ID(8 bytes long)
    0x00,       // OEM Revision
    0x00,       // Creator ID
    0x00,       // Creator Revision
  },
  //
  // Firmware Basic Boot Performance Table Pointer Record.
  //
  {
    {
      EFI_ACPI_5_0_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER ,       // Type
      sizeof (EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD), // Length
      EFI_ACPI_5_0_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER     // Revision
    },
    0,  // Reserved
    0   // BootPerformanceTablePointer will be updated at runtime.
  },
  //
  // S3 Performance Table Pointer Record.
  //
  {
    {
      EFI_ACPI_5_0_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER,     // Type
      sizeof (EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD), // Length
      EFI_ACPI_5_0_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER  // Revision
    },
    0,  // Reserved
    0   // S3PerformanceTablePointer will be updated at runtime.
  }
};

BOOT_PERFORMANCE_TABLE mBootPerformanceTableTemplate = {
  {
    EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE,
    sizeof (BOOT_PERFORMANCE_TABLE)
  },
  {
    {
      EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT,    // Type
      sizeof (EFI_ACPI_5_0_FPDT_FIRMWARE_BASIC_BOOT_RECORD),        // Length
      EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT // Revision
    },
    0,  // Reserved
    //
    // These values will be updated at runtime.
    //
    0,  // ResetEnd
    0,  // OsLoaderLoadImageStart
    0,  // OsLoaderStartImageStart
    0,  // ExitBootServicesEntry
    0   // ExitBootServicesExit
  }
};

S3_PERFORMANCE_TABLE        mS3PerformanceTableTemplate = {
  {
    EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE,
    sizeof (S3_PERFORMANCE_TABLE)
  },
  {
    {
      EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME,     // Type
      sizeof (EFI_ACPI_5_0_FPDT_S3_RESUME_RECORD),         // Length
      EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME  // Revision
    },
    //
    // These values will be updated by Firmware Performance PEIM.
    //
    0,  // ResumeCount
    0,  // FullResume
    0   // AverageResume
  },
  {
    {
      EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND,    // Type
      sizeof (EFI_ACPI_5_0_FPDT_S3_SUSPEND_RECORD),        // Length
      EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND // Revision
    },
    //
    // These values will be updated bye Firmware Performance SMM driver.
    //
    0,  // SuspendStart
    0   // SuspendEnd
  }
};

/**
  This function calculates and updates an UINT8 checksum.

  @param[in]  Buffer          Pointer to buffer to checksum
  @param[in]  Size            Number of bytes to checksum

**/
VOID
FpdtAcpiTableChecksum (
  IN UINT8      *Buffer,
  IN UINTN      Size
  )
{
  UINTN ChecksumOffset;

  ChecksumOffset = OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER, Checksum);

  //
  // Set checksum to 0 first.
  //
  Buffer[ChecksumOffset] = 0;

  //
  // Update checksum value.
  //
  Buffer[ChecksumOffset] = CalculateCheckSum8 (Buffer, Size);
}

/**
  Callback function upon VariableArchProtocol and LockBoxProtocol
  to allocate S3 performance table memory and save the pointer to LockBox.

  @param[in] Event    Event whose notification function is being invoked.
  @param[in] Context  Pointer to the notification function's context.
**/
VOID
EFIAPI
FpdtAllocateS3PerformanceTableMemory (
  IN  EFI_EVENT                             Event,
  IN  VOID                                  *Context
  )
{
  EFI_STATUS                    Status;
  VOID                          *Interface;
  FIRMWARE_PERFORMANCE_VARIABLE PerformanceVariable;
  UINTN                         Size;
  EFI_PHYSICAL_ADDRESS          S3PerformanceTablePointer;

  if (mLockBoxReady && (mAcpiS3PerformanceTable != NULL)) {
    //
    // The memory for S3 performance table should have been ready,
    // and the pointer should have been saved to LockBox, just return.
    //
    return;
  }

  if (!mLockBoxReady) {
    Status = gBS->LocateProtocol (&gEfiLockBoxProtocolGuid, NULL, &Interface);
    if (!EFI_ERROR (Status)) {
      //
      // LockBox services has been ready.
      //
      mLockBoxReady = TRUE;
    }
  }

  if (mAcpiS3PerformanceTable == NULL) {
    Status = gBS->LocateProtocol (&gEfiVariableArchProtocolGuid, NULL, &Interface);
    if (!EFI_ERROR (Status)) {
      //
      // Try to allocate the same runtime buffer as last time boot.
      //
      ZeroMem (&PerformanceVariable, sizeof (PerformanceVariable));
      Size = sizeof (PerformanceVariable);
      Status = gRT->GetVariable (
                      EFI_FIRMWARE_PERFORMANCE_VARIABLE_NAME,
                      &gEfiFirmwarePerformanceGuid,
                      NULL,
                      &Size,
                      &PerformanceVariable
                      );
      if (!EFI_ERROR (Status)) {
        Status = gBS->AllocatePages (
                        AllocateAddress,
                        EfiReservedMemoryType,
                        EFI_SIZE_TO_PAGES (sizeof (S3_PERFORMANCE_TABLE)),
                        &PerformanceVariable.S3PerformanceTablePointer
                        );
        if (!EFI_ERROR (Status)) {
          mAcpiS3PerformanceTable = (S3_PERFORMANCE_TABLE *) (UINTN) PerformanceVariable.S3PerformanceTablePointer;
        }
      }
      if (mAcpiS3PerformanceTable == NULL) {
        //
        // Fail to allocate at specified address, continue to allocate at any address.
        //
        mAcpiS3PerformanceTable = (S3_PERFORMANCE_TABLE *) AllocatePeiAccessiblePages (
                                                             EfiReservedMemoryType,
                                                             EFI_SIZE_TO_PAGES (sizeof (S3_PERFORMANCE_TABLE))
                                                             );
      }
      DEBUG ((EFI_D_INFO, "FPDT: ACPI S3 Performance Table address = 0x%x\n", mAcpiS3PerformanceTable));
      if (mAcpiS3PerformanceTable != NULL) {
        CopyMem (mAcpiS3PerformanceTable, &mS3PerformanceTableTemplate, sizeof (mS3PerformanceTableTemplate));
      }
    }
  }

  if (mLockBoxReady && (mAcpiS3PerformanceTable != NULL)) {
    //
    // If LockBox services has been ready and memory for FPDT S3 performance table has been allocated,
    // save the pointer to LockBox for use in S3 resume.
    //
    S3PerformanceTablePointer = (EFI_PHYSICAL_ADDRESS) (UINTN) mAcpiS3PerformanceTable;
    Status = SaveLockBox (
               &gFirmwarePerformanceS3PointerGuid,
               &S3PerformanceTablePointer,
               sizeof (EFI_PHYSICAL_ADDRESS)
               );
    ASSERT_EFI_ERROR (Status);
  }
}

/**
  Install ACPI Firmware Performance Data Table (FPDT).

  @return Status code.

**/
EFI_STATUS
InstallFirmwarePerformanceDataTable (
  VOID
  )
{
  EFI_STATUS                    Status;
  EFI_ACPI_TABLE_PROTOCOL       *AcpiTableProtocol;
  UINTN                         BootPerformanceDataSize;
  FIRMWARE_PERFORMANCE_VARIABLE PerformanceVariable;
  UINTN                         Size;

  //
  // Get AcpiTable Protocol.
  //
  Status = gBS->LocateProtocol (&gEfiAcpiTableProtocolGuid, NULL, (VOID **) &AcpiTableProtocol);
  if (EFI_ERROR (Status)) {
    return Status;
  }

  if (mReceivedAcpiBootPerformanceTable != NULL) {
    mAcpiBootPerformanceTable = mReceivedAcpiBootPerformanceTable;
    mAcpiBootPerformanceTable->BasicBoot.ResetEnd = mBootPerformanceTableTemplate.BasicBoot.ResetEnd;
  } else {
    //
    // Try to allocate the same runtime buffer as last time boot.
    //
    BootPerformanceDataSize = sizeof (BOOT_PERFORMANCE_TABLE);
    ZeroMem (&PerformanceVariable, sizeof (PerformanceVariable));
    Size = sizeof (PerformanceVariable);
    Status = gRT->GetVariable (
                    EFI_FIRMWARE_PERFORMANCE_VARIABLE_NAME,
                    &gEfiFirmwarePerformanceGuid,
                    NULL,
                    &Size,
                    &PerformanceVariable
                    );
    if (!EFI_ERROR (Status)) {
      Status = gBS->AllocatePages (
                      AllocateAddress,
                      EfiReservedMemoryType,
                      EFI_SIZE_TO_PAGES (BootPerformanceDataSize),
                      &PerformanceVariable.BootPerformanceTablePointer
                      );
      if (!EFI_ERROR (Status)) {
         mAcpiBootPerformanceTable = (BOOT_PERFORMANCE_TABLE *) (UINTN) PerformanceVariable.BootPerformanceTablePointer;
      }
    }
    if (mAcpiBootPerformanceTable == NULL) {
      //
      // Fail to allocate at specified address, continue to allocate at any address.
      //
      mAcpiBootPerformanceTable = (BOOT_PERFORMANCE_TABLE *) AllocatePeiAccessiblePages (
                                                               EfiReservedMemoryType,
                                                               EFI_SIZE_TO_PAGES (BootPerformanceDataSize)
                                                               );
    }
    DEBUG ((DEBUG_INFO, "FPDT: ACPI Boot Performance Table address = 0x%x\n", mAcpiBootPerformanceTable));
    if (mAcpiBootPerformanceTable == NULL) {
      return EFI_OUT_OF_RESOURCES;
    }
    //
    // Fill Basic Boot record to Boot Performance Table.
    //
    CopyMem (mAcpiBootPerformanceTable, &mBootPerformanceTableTemplate, sizeof (mBootPerformanceTableTemplate));
  }
  BootPerformanceDataSize   = mAcpiBootPerformanceTable->Header.Length;

  //
  // Save Boot Performance Table address to Variable for use in S4 resume.
  //
  PerformanceVariable.BootPerformanceTablePointer = (EFI_PHYSICAL_ADDRESS) (UINTN) mAcpiBootPerformanceTable;
  //
  // Update Boot Performance Table Pointer in template.
  //
  mFirmwarePerformanceTableTemplate.BootPointerRecord.BootPerformanceTablePointer = (UINT64) (UINTN) mAcpiBootPerformanceTable;

  //
  // Save S3 Performance Table address to Variable for use in S4 resume.
  //
  PerformanceVariable.S3PerformanceTablePointer = (EFI_PHYSICAL_ADDRESS) (UINTN) mAcpiS3PerformanceTable;
  //
  // Update S3 Performance Table Pointer in template.
  //
  mFirmwarePerformanceTableTemplate.S3PointerRecord.S3PerformanceTablePointer = (UINT64) (UINTN) mAcpiS3PerformanceTable;
  //
  // Save Runtime Performance Table pointers to Variable.
  // Don't check SetVariable return status. It doesn't impact FPDT table generation.
  //
  gRT->SetVariable (
        EFI_FIRMWARE_PERFORMANCE_VARIABLE_NAME,
        &gEfiFirmwarePerformanceGuid,
        EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,
        sizeof (PerformanceVariable),
        &PerformanceVariable
        );

  //
  // Publish Firmware Performance Data Table.
  //
  FpdtAcpiTableChecksum ((UINT8 *) &mFirmwarePerformanceTableTemplate, mFirmwarePerformanceTableTemplate.Header.Length);
  Status = AcpiTableProtocol->InstallAcpiTable (
                                AcpiTableProtocol,
                                &mFirmwarePerformanceTableTemplate,
                                mFirmwarePerformanceTableTemplate.Header.Length,
                                &mFirmwarePerformanceTableTemplateKey
                                );
  if (EFI_ERROR (Status)) {
    if (mAcpiBootPerformanceTable != NULL) {
      FreePages (mAcpiBootPerformanceTable, EFI_SIZE_TO_PAGES (BootPerformanceDataSize));
    }
    if (mAcpiS3PerformanceTable != NULL) {
      FreePages (mAcpiS3PerformanceTable, EFI_SIZE_TO_PAGES (sizeof (S3_PERFORMANCE_TABLE)));
    }
    mAcpiBootPerformanceTable = NULL;
    mAcpiS3PerformanceTable = NULL;
    return Status;
  }
  return EFI_SUCCESS;
}

/**
  Report status code listener of FPDT. This is used to collect performance data
  for OsLoaderLoadImageStart and OsLoaderStartImageStart in FPDT.

  @param[in]  CodeType            Indicates the type of status code being reported.
  @param[in]  Value               Describes the current status of a hardware or software entity.
                                  This included information about the class and subclass that is used to
                                  classify the entity as well as an operation.
  @param[in]  Instance            The enumeration of a hardware or software entity within
                                  the system. Valid instance numbers start with 1.
  @param[in]  CallerId            This optional parameter may be used to identify the caller.
                                  This parameter allows the status code driver to apply different rules to
                                  different callers.
  @param[in]  Data                This optional parameter may be used to pass additional data.

  @retval EFI_SUCCESS             Status code is what we expected.
  @retval EFI_UNSUPPORTED         Status code not supported.

**/
EFI_STATUS
EFIAPI
FpdtStatusCodeListenerDxe (
  IN EFI_STATUS_CODE_TYPE     CodeType,
  IN EFI_STATUS_CODE_VALUE    Value,
  IN UINT32                   Instance,
  IN EFI_GUID                 *CallerId,
  IN EFI_STATUS_CODE_DATA     *Data
  )
{
  EFI_STATUS  Status;

  //
  // Check whether status code is what we are interested in.
  //
  if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) != EFI_PROGRESS_CODE) {
    return EFI_UNSUPPORTED;
  }

  if (Value == (EFI_SOFTWARE_DXE_CORE | EFI_SW_DXE_CORE_PC_HANDOFF_TO_NEXT)) {
    //
    // DxeCore ReportStatusCode Enable so that the capability can be supported.
    //
    mDxeCoreReportStatusCodeEnable = TRUE;
  }

  Status = EFI_SUCCESS;
  if (Value == PcdGet32 (PcdProgressCodeOsLoaderLoad)) {
    //
    // Progress code for OS Loader LoadImage.
    //
    if (mAcpiBootPerformanceTable == NULL) {
      return Status;
    }

    //
    // Update OS Loader LoadImage Start for UEFI boot.
    //
    mAcpiBootPerformanceTable->BasicBoot.OsLoaderLoadImageStart = GetTimeInNanoSecond (GetPerformanceCounter ());
  } else if (Value == PcdGet32 (PcdProgressCodeOsLoaderStart)) {
    //
    // Progress code for OS Loader StartImage.
    //
    if (mAcpiBootPerformanceTable == NULL) {
      return Status;
    }

    //
    // Update OS Loader StartImage Start for UEFI boot.
    //
    mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart = GetTimeInNanoSecond (GetPerformanceCounter ());
  } else if (Value == (EFI_SOFTWARE_EFI_BOOT_SERVICE | EFI_SW_BS_PC_EXIT_BOOT_SERVICES)) {
    //
    // Unregister boot time report status code listener.
    //
    mRscHandlerProtocol->Unregister (FpdtStatusCodeListenerDxe);

    //
    // Progress code for ExitBootServices.
    //
    if (mAcpiBootPerformanceTable == NULL) {
      return Status;
    }

    //
    // Update ExitBootServicesExit for UEFI boot.
    //
    mAcpiBootPerformanceTable->BasicBoot.ExitBootServicesExit = GetTimeInNanoSecond (GetPerformanceCounter ());
  } else if (Value == (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT)) {
    if (mAcpiBootPerformanceTable == NULL) {
      //
      // Firmware Performance Data Table not installed, do nothing.
      //
      return Status;
    }

    //
    // Update Firmware Basic Boot Performance Record for legacy boot.
    //
    mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart = GetTimeInNanoSecond (GetPerformanceCounter ());

    //
    // Dump FPDT Boot Performance record.
    //
    DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ResetEnd                = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ResetEnd));
    DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderLoadImageStart  = 0\n"));
    DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderStartImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart));
    DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ExitBootServicesEntry   = 0\n"));
    DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ExitBootServicesExit    = 0\n"));
  } else if (Value == (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT)) {
    if (mAcpiBootPerformanceTable == NULL) {
      //
      // ACPI Firmware Performance Data Table not installed yet, install it now.
      //
      InstallFirmwarePerformanceDataTable ();
    }
  } else if (Data != NULL && CompareGuid (&Data->Type, &gEdkiiFpdtExtendedFirmwarePerformanceGuid)) {
    //
    // Get the Boot performance table and then install it to ACPI table.
    //
    CopyMem (&mReceivedAcpiBootPerformanceTable, Data + 1, Data->Size);
  } else if (Data != NULL && CompareGuid (&Data->Type, &gEfiFirmwarePerformanceGuid)) {
    DEBUG ((DEBUG_ERROR, "FpdtStatusCodeListenerDxe: Performance data reported through gEfiFirmwarePerformanceGuid will not be collected by FirmwarePerformanceDataTableDxe\n"));
    Status = EFI_UNSUPPORTED;
  } else {
    //
    // Ignore else progress code.
    //
    Status = EFI_UNSUPPORTED;
  }

  return Status;
}

/**
  Notify function for event EVT_SIGNAL_EXIT_BOOT_SERVICES. This is used to record
  performance data for ExitBootServicesEntry in FPDT.

  @param[in]  Event   The Event that is being processed.
  @param[in]  Context The Event Context.

**/
VOID
EFIAPI
FpdtExitBootServicesEventNotify (
  IN EFI_EVENT        Event,
  IN VOID             *Context
  )
{
  if (!mDxeCoreReportStatusCodeEnable) {
    //
    // When DxeCore Report Status Code is disabled,
    // Unregister boot time report status code listener at ExitBootService Event.
    //
    mRscHandlerProtocol->Unregister (FpdtStatusCodeListenerDxe);
  }

  if (mAcpiBootPerformanceTable == NULL) {
    //
    // Firmware Performance Data Table not installed, do nothing.
    //
    return ;
  }

  //
  // Update Firmware Basic Boot Performance Record for UEFI boot.
  //
  mAcpiBootPerformanceTable->BasicBoot.ExitBootServicesEntry = GetTimeInNanoSecond (GetPerformanceCounter ());

  //
  // Dump FPDT Boot Performance record.
  //
  DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ResetEnd                = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ResetEnd));
  DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderLoadImageStart  = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderLoadImageStart));
  DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderStartImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart));
  DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ExitBootServicesEntry   = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ExitBootServicesEntry));
  //
  // ExitBootServicesExit will be updated later, so don't dump it here.
  //
}

/**
  The module Entry Point of the Firmware Performance Data Table DXE driver.

  @param[in]  ImageHandle    The firmware allocated handle for the EFI image.
  @param[in]  SystemTable    A pointer to the EFI System Table.

  @retval EFI_SUCCESS    The entry point is executed successfully.
  @retval Other          Some error occurs when executing this entry point.

**/
EFI_STATUS
EFIAPI
FirmwarePerformanceDxeEntryPoint (
  IN EFI_HANDLE          ImageHandle,
  IN EFI_SYSTEM_TABLE    *SystemTable
  )
{
  EFI_STATUS               Status;
  EFI_HOB_GUID_TYPE        *GuidHob;
  FIRMWARE_SEC_PERFORMANCE *Performance;
  VOID                     *Registration;
  UINT64                   OemTableId;

  CopyMem (
    mFirmwarePerformanceTableTemplate.Header.OemId,
    PcdGetPtr (PcdAcpiDefaultOemId),
    sizeof (mFirmwarePerformanceTableTemplate.Header.OemId)
    );
  OemTableId = PcdGet64 (PcdAcpiDefaultOemTableId);
  CopyMem (&mFirmwarePerformanceTableTemplate.Header.OemTableId, &OemTableId, sizeof (UINT64));
  mFirmwarePerformanceTableTemplate.Header.OemRevision      = PcdGet32 (PcdAcpiDefaultOemRevision);
  mFirmwarePerformanceTableTemplate.Header.CreatorId        = PcdGet32 (PcdAcpiDefaultCreatorId);
  mFirmwarePerformanceTableTemplate.Header.CreatorRevision  = PcdGet32 (PcdAcpiDefaultCreatorRevision);

  //
  // Get Report Status Code Handler Protocol.
  //
  Status = gBS->LocateProtocol (&gEfiRscHandlerProtocolGuid, NULL, (VOID **) &mRscHandlerProtocol);
  ASSERT_EFI_ERROR (Status);

  //
  // Register report status code listener for OS Loader load and start.
  //
  Status = mRscHandlerProtocol->Register (FpdtStatusCodeListenerDxe, TPL_HIGH_LEVEL);
  ASSERT_EFI_ERROR (Status);

  //
  // Register the notify function to update FPDT on ExitBootServices Event.
  //
  Status = gBS->CreateEventEx (
                  EVT_NOTIFY_SIGNAL,
                  TPL_NOTIFY,
                  FpdtExitBootServicesEventNotify,
                  NULL,
                  &gEfiEventExitBootServicesGuid,
                  &mExitBootServicesEvent
                  );
  ASSERT_EFI_ERROR (Status);

  //
  // Retrieve GUID HOB data that contains the ResetEnd.
  //
  GuidHob = GetFirstGuidHob (&gEfiFirmwarePerformanceGuid);
  if (GuidHob != NULL) {
    Performance = (FIRMWARE_SEC_PERFORMANCE *) GET_GUID_HOB_DATA (GuidHob);
    mBootPerformanceTableTemplate.BasicBoot.ResetEnd = Performance->ResetEnd;
  } else {
    //
    // SEC Performance Data Hob not found, ResetEnd in ACPI FPDT table will be 0.
    //
    DEBUG ((DEBUG_WARN, "FPDT: WARNING: SEC Performance Data Hob not found, ResetEnd will be set to 0!\n"));
  }

  if (FeaturePcdGet (PcdFirmwarePerformanceDataTableS3Support)) {
    //
    // Register callback function upon VariableArchProtocol and LockBoxProtocol
    // to allocate S3 performance table memory and save the pointer to LockBox.
    //
    EfiCreateProtocolNotifyEvent (
      &gEfiVariableArchProtocolGuid,
      TPL_CALLBACK,
      FpdtAllocateS3PerformanceTableMemory,
      NULL,
      &Registration
      );
    EfiCreateProtocolNotifyEvent (
      &gEfiLockBoxProtocolGuid,
      TPL_CALLBACK,
      FpdtAllocateS3PerformanceTableMemory,
      NULL,
      &Registration
      );
  } else {
    //
    // Exclude S3 Performance Table Pointer from FPDT table template.
    //
    mFirmwarePerformanceTableTemplate.Header.Length -= sizeof (EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD);
  }

  return EFI_SUCCESS;
}


text:
//======================================================================================
// Copyright 5AM Solutions Inc, Yale University
//
// Distributed under the OSI-approved BSD 3-Clause License.
// See http://ncip.github.com/caarray/LICENSE.txt for details.
//======================================================================================
package gov.nih.nci.caarray.domain.search;

import gov.nih.nci.caarray.domain.hybridization.Hybridization;

import com.fiveamsolutions.nci.commons.data.search.SortCriterion;

/**
 * Enum of possible sort criterions for hybridizations.
 * @author dkokotov
 */
public enum HybridizationSortCriterion implements SortCriterion<Hybridization> {
    /**
     * name.
     */
    NAME("name");

    private final String orderField;

    private HybridizationSortCriterion(String orderField) {
        this.orderField = orderField;
    }

    /**
     * {@inheritDoc}
     */
    public String getOrderField() {
        return this.orderField;
    }

    /**
     * {@inheritDoc}
     */
    public String getLeftJoinField() {
        // this is to support nci-commons-code 1.0.24, but this aspect of the
        // search is not yet used in caaaray or it is implemented diffrently.
        // https://jira.5amsolutions.com/browse/NCIC-60
        throw new UnsupportedOperationException("Not supported yet.");
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:id="@+id/emojiKeyboardLayout"
    android:visibility="visible"
    android:focusable="true"
    android:clickable="true"
    tools:showIn="@layout/common_enter_emoji"
    android:background="@color/white">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="7.5dp"
        android:orientation="vertical">

        <android.support.v4.view.ViewPager
            android:id="@+id/viewPager"
            android:layout_width="match_parent"
            android:layout_height="120dp" />

        <LinearLayout
            android:layout_marginTop="7.5dp"
            android:id="@+id/emojiKeyboardIndicator"
            android:layout_width="match_parent"
            android:layout_height="14.5dp"
            android:orientation="horizontal"
            android:gravity="center" />

    </LinearLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:background="@color/emoji_line" />

    <RadioGroup
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:orientation="horizontal">

        <ImageView
            android:layout_width="@dimen/emoji_switch_button_width"
            android:layout_height="match_parent"
            android:id="@+id/selectEmoji"
            android:gravity="center"
            android:src="@drawable/ic_emoji_small"
            android:scaleType="centerInside" />

        <View
            android:layout_width="0.5dp"
            android:layout_height="match_parent"
            android:background="@color/emoji_line" />

        <!--<ImageView-->
            <!--android:layout_width="@dimen/emoji_switch_button_width"-->
            <!--android:layout_height="match_parent"-->
            <!--android:id="@+id/selectMonkey"-->
            <!--android:gravity="center_vertical"-->
            <!--android:src="@drawable/ic_emoji_monkey"-->
            <!--android:scaleType="centerInside" />-->

        <!--<View-->
            <!--android:id="@+id/selectMonkeyDivideLine"-->
            <!--android:layout_width="0.5dp"-->
            <!--android:layout_height="match_parent"-->
            <!--android:background="@color/emoji_line" />-->

        <!--<ImageView-->
            <!--android:layout_width="@dimen/emoji_switch_button_width"-->
            <!--android:layout_height="match_parent"-->
            <!--android:id="@+id/selectZhongqiu"-->
            <!--android:gravity="center_vertical"-->
            <!--android:src="@drawable/ic_emoji_zhongqiu"-->
            <!--android:scaleType="centerInside" />-->

        <!--<View-->
            <!--android:id="@+id/selectMonkeyDivideLine1"-->
            <!--android:layout_width="0.5dp"-->
            <!--android:layout_height="match_parent"-->
            <!--android:background="@color/emoji_line" />-->

    </RadioGroup>

</LinearLayout>


text:
package org.apache.shardingsphere.example.proxy.distsql.feature;

import org.apache.shardingsphere.example.proxy.distsql.DistSQLExecutor;
import org.apache.shardingsphere.example.proxy.distsql.feature.encrypt.EncryptExecutor;
import org.apache.shardingsphere.example.proxy.distsql.feature.readwritesplitting.ReadWriteSplittingExecutor;
import org.apache.shardingsphere.example.proxy.distsql.feature.resource.ResourceExecutor;
import org.apache.shardingsphere.example.proxy.distsql.feature.shadow.ShadowExecutor;
import org.apache.shardingsphere.example.proxy.distsql.feature.sharding.ShardingExecutor;

public enum FeatureType {

    RESOURCE {
        @Override
        public DistSQLExecutor getExecutor() {
            return new ResourceExecutor();
        }
    }, SHADOW {
        @Override
        public DistSQLExecutor getExecutor() {
            return new ShadowExecutor();
        }
    }, ENCRYPT {
        @Override
        public DistSQLExecutor getExecutor() {
            return new EncryptExecutor();
        }
    }, SHARDING {
        @Override
        public DistSQLExecutor getExecutor() {
            return new ShardingExecutor();
        }
    }, READWRITE_SPLITTING {
        @Override
        public DistSQLExecutor getExecutor() {
            return new ReadWriteSplittingExecutor();
        }
    };

    public abstract DistSQLExecutor getExecutor();
}


text:
<!DOCTYPE html>

		<meta charset="utf-8">

		<title>Persona</title>

Persona

Persona A

Name:Shawn
Age:49

Profession:HR Recruiter for Hilton

Technology:PC computer and iPhone 6

Attitudes and Behaviors:Extremely anxious and protective of her dog. She has a fear of huskies and doesn't want her dog near that breed.

Frustrations and Needs:Shawn needs to be able to know what types of dogs frequent the dog parks she wants to go to. She is frustrated when she goes to dog parks and has to wait for certain dogs to leave before she can enter due to her fear of certain breeds.

Goals:Shawn's goals are to be more active with her dog, meet other dog owners, and make going to dog parks more pleasant and less fearful.

Persona B

Name:Danesha
Age:26

Profession:Marketing Assistant for Redfin

Technology:2015 MacBook Pro and iPhone 6

Attitudes and Behaviors:Danesha walks her dog Oreo at local parks twice daily. She takes her to a park near her house every day before work and she takes her to a park a little further out, every day after work. On weekends, they hike.

Frustrations and Needs:Danesha moved to the D.C. area about a year ago, and she is still not familiar with most of the parks in her area. She wants to have a variety of safe options, and she also wants to meet other dog lovers in the area.

Goals:Danesha's goal is to make some connections with a few dog enthusiasts and build a network of friends who workout with their dogs at parks, together.


text:
//
//  PureLayoutTestBase.h
//  PureLayout Tests
//
//  Copyright (c) 2014-2015 Tyler Fox
//  https://github.com/PureLayout/PureLayout
//

#import <XCTest/XCTest.h>
#import "PureLayout.h"
#import "PureLayout+Internal.h"

#if TARGET_OS_IPHONE
#   define VALUES(iOS, OSX)        (iOS)  // a macro that takes a value for each platform, and substitutes the value for the current platform
#   define ALLabel                 UILabel
#   define ALImageView             UIImageView
#else
#   define VALUES(iOS, OSX)        (OSX)  // a macro that takes a value for each platform, and substitutes the value for the current platform
#   define ALLabel                 NSTextView
#   define ALImageView             NSImageView
#endif /* TARGET_OS_IPHONE */

#define EPSILON                                     1.0  // the allowable delta between the expected result and the actual result (due to rounding)
#define ROUNDED_EQUALS(a, b)                        (fabs((a) - (b)) < EPSILON)

#define ALAssertFrameEquals(view, x, y, w, h)       XCTAssert(ROUNDED_EQUALS(CGRectGetMinX(view.frame), x) && ROUNDED_EQUALS(CGRectGetMinY(view.frame), y) && ROUNDED_EQUALS(CGRectGetWidth(view.frame), w) && ROUNDED_EQUALS(CGRectGetHeight(view.frame), h))
#define ALAssertOriginEquals(view, x, y)            XCTAssert(ROUNDED_EQUALS(CGRectGetMinX(view.frame), x) && ROUNDED_EQUALS(CGRectGetMinY(view.frame), y))
#define ALAssertCenterEquals(view, x, y)            XCTAssert(ROUNDED_EQUALS(CGRectGetMidX(view.frame), x) && ROUNDED_EQUALS(CGRectGetMidY(view.frame), y))
#define ALAssertMaxEquals(view, x, y)               XCTAssert(ROUNDED_EQUALS(CGRectGetMaxX(view.frame), x) && ROUNDED_EQUALS(CGRectGetMaxY(view.frame), y))
#define ALAssertSizeEquals(view, w, h)              XCTAssert(ROUNDED_EQUALS(CGRectGetWidth(view.frame), w) && ROUNDED_EQUALS(CGRectGetHeight(view.frame), h))
#define ALAssertOriginXEquals(view, x)              XCTAssert(ROUNDED_EQUALS(CGRectGetMinX(view.frame), x))
#define ALAssertOriginYEquals(view, y)              XCTAssert(ROUNDED_EQUALS(CGRectGetMinY(view.frame), y))
#define ALAssertCenterXEquals(view, x)              XCTAssert(ROUNDED_EQUALS(CGRectGetMidX(view.frame), x))
#define ALAssertCenterYEquals(view, y)              XCTAssert(ROUNDED_EQUALS(CGRectGetMidY(view.frame), y))
#define ALAssertMaxXEquals(view, x)                 XCTAssert(ROUNDED_EQUALS(CGRectGetMaxX(view.frame), x))
#define ALAssertMaxYEquals(view, y)                 XCTAssert(ROUNDED_EQUALS(CGRectGetMaxY(view.frame), y))
#define ALAssertWidthEquals(view, w)                XCTAssert(ROUNDED_EQUALS(CGRectGetWidth(view.frame), w))
#define ALAssertHeightEquals(view, h)               XCTAssert(ROUNDED_EQUALS(CGRectGetHeight(view.frame), h))

static const CGFloat kContainerViewWidth = 1000.0;
static const CGFloat kContainerViewHeight = 1000.0;

@interface PureLayoutTestBase : XCTestCase

// An array of viewA, viewB, viewC, and viewD
@property (nonatomic, readonly) __NSArray_of(ALView *) *viewArray;

// The indendentation below represents how the view hierarchy is set up
@property (nonatomic, strong) ALView *containerView;
@property (nonatomic, strong) ALView *  viewA;
@property (nonatomic, strong) ALView *      viewA_A;
@property (nonatomic, strong) ALView *          viewA_A_A;
@property (nonatomic, strong) ALView *          viewA_A_B;
@property (nonatomic, strong) ALView *      viewA_B;
@property (nonatomic, strong) ALView *          viewA_B_A;
@property (nonatomic, strong) ALView *  viewB;
@property (nonatomic, strong) ALView *      viewB_A;
@property (nonatomic, strong) ALView *  viewC;
@property (nonatomic, strong) ALView *  viewD;

/** Sets up the default view hierarchy for tests. Test subclasses may override this method to customize the view hierarchy set up. */
- (void)setupViewHierarchy;
/** Test subclasses should override this method with updated tests if the -[setupViewHierarchy] method is overridden. */
- (void)testViewHierarchy;

/** Forces the container view to immediately do a layout pass, which will evaluate the constraints and set the frames for the container view and subviews. */
- (void)evaluateConstraints;

/** Forces the given view to immediately do a layout pass, which will evaluate the constraints and set the frames for the view and any subviews. */
- (void)evaluateConstraintsForView:(ALView *)view;

@end


text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Xunit;

namespace System.Drawing.Imaging.Tests
{
    public class MetaHeaderTests
    {
        [ConditionalFact(Helpers.GdiplusIsAvailable)]
        public void Ctor_Default()
        {
            MetaHeader mh = new MetaHeader();
            Assert.Equal(0, mh.HeaderSize);
            Assert.Equal(0, mh.MaxRecord);
            Assert.Equal(0, mh.NoObjects);
            Assert.Equal(0, mh.NoParameters);
            Assert.Equal(0, mh.Size);
            Assert.Equal(0, mh.Type);
            Assert.Equal(0, mh.Version);
        }

        [ConditionalTheory(Helpers.GdiplusIsAvailable)]
        [InlineData(short.MaxValue)]
        [InlineData(0)]
        [InlineData(short.MinValue)]
        public void ShortProperties_SetValues_ReturnsExpected(short value)
        {
            MetaHeader mh = new MetaHeader();
            mh.HeaderSize = value;
            mh.NoObjects = value;
            mh.NoParameters = value;
            mh.Type = value;
            mh.Version = value;
            Assert.Equal(value, mh.HeaderSize);
            Assert.Equal(value, mh.NoObjects);
            Assert.Equal(value, mh.NoParameters);
            Assert.Equal(value, mh.Type);
            Assert.Equal(value, mh.Version);
        }

        [ConditionalTheory(Helpers.GdiplusIsAvailable)]
        [InlineData(int.MaxValue)]
        [InlineData(0)]
        [InlineData(int.MinValue)]
        public void IntProperties_SetValues_ReturnsExpected(int value)
        {
            MetaHeader mh = new MetaHeader();
            mh.Size = value;
            mh.MaxRecord = value;
            Assert.Equal(value, mh.Size);
            Assert.Equal(value, mh.MaxRecord);
        }
    }
}


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

namespace MonoDevelop.Database.Sql
{
	public class TriggerAlterSchema : AbstractAlterSchema<TriggerSchema>
	{
		public TriggerAlterSchema (TriggerSchema oldSchema, TriggerSchema newSchema)
			: base (oldSchema, newSchema)
		{
		}

		protected override void DetermineDifferences (TriggerSchema oldSchema, TriggerSchema newSchema)
		{
			base.DetermineDifferences (oldSchema, newSchema);

			//TODO:
		}
	}
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>User</title>
<meta name="date" content="2014-10-25">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.pvsagar.smartlockscreen.applogic_objects

Class User

java.lang.Object

com.pvsagar.smartlockscreen.applogic_objects.User

public class User
extends java.lang.Object

Created by aravind on 8/9/14.
 Class which represents a User.

Field Summary

Fields

Modifier and Type
Field and Description

private static User
currentUser

Stores the active user

private long
id

private static java.lang.String
LOG_TAG

static long
UNKNOWN_ENVIRONMENT_ID

private java.lang.String
userName

private Picture
userPicture

Constructor Summary

Constructors

Constructor and Description

User(java.lang.String userName)

Method Summary

Methods

Modifier and Type
Method and Description

static java.util.List<User>
getAllUsers(android.content.Context context)

Get all users from the database

private android.content.ContentValues
getContentValues()

Gets content values for this user instance

static User
getCurrentUser(android.content.Context context)

static User
getDefaultUser(android.content.Context context)

Gets an instance of this class which represents the default user (device owner)

long
getId()

Passphrase
getPassphraseForEnvironment(android.content.Context context,
                           Environment environment)

Gets passphrase for this user for specific environment

Passphrase
getPassphraseForUnknownEnvironment(android.content.Context context)

Gets passphrase for current user, when environment is unknown.

private static User
getUserFromCursor(android.database.Cursor cursor)

Takes in a cursor and creates instances of user populated with data from the cursor

java.lang.String
getUserName()

Picture
getUserPicture()

android.graphics.drawable.Drawable
getUserPictureDrawable(android.content.Context context)

Gets a drawable corresponding to user's picture

static void
insertDefaultUser(android.content.Context context)

Inserts the default user (Device owner) into the database.

long
insertIntoDatabase(android.content.Context context)

Inserts this user into database

void
removePassphraseForUnknownEnvironment(android.content.Context context)

Removes the passphrase for current user, for unknown environment.

static void
setCurrentUser(User user)

void
setPassphraseForEnvironment(android.content.Context context,
                           Passphrase passphrase,
                           Environment environment)

Sets passphrase for this user for specific environment

void
setPassphraseForUnknownEnvironment(android.content.Context context,
                                  Passphrase passphrase)

Sets passphrase for current user, when environment is unknown.

void
setUserName(java.lang.String userName)

void
setUserPicture(Picture userPicture)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

LOG_TAG

private static final java.lang.String LOG_TAG

UNKNOWN_ENVIRONMENT_ID

public static final long UNKNOWN_ENVIRONMENT_ID

See Also:

Constant Field Values

userName

private java.lang.String userName

id

private long id

userPicture

private Picture userPicture

currentUser

private static User currentUser

Stores the active user

Constructor Detail

User

public User(java.lang.String userName)

Method Detail

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

getId

public long getId()

getDefaultUser

public static User getDefaultUser(android.content.Context context)

Gets an instance of this class which represents the default user (device owner)

Parameters:

context - Activity/Service context

Returns:

instance of device owner

getUserFromCursor

private static User getUserFromCursor(android.database.Cursor cursor)

Takes in a cursor and creates instances of user populated with data from the cursor

Parameters:

cursor - should contain data from users table

Returns:

list of users read from the cursor

getContentValues

private android.content.ContentValues getContentValues()

Gets content values for this user instance

Returns:

instance of ContentValues with values from this instance of User

insertIntoDatabase

public long insertIntoDatabase(android.content.Context context)

Inserts this user into database

Parameters:

context - Activity/Service context

Returns:

id of the user

setPassphraseForEnvironment

public void setPassphraseForEnvironment(android.content.Context context,
                               Passphrase passphrase,
                               Environment environment)

Sets passphrase for this user for specific environment

Parameters:

context - Activity/Service context

passphrase - Passphrase to be set

environment - Environment for which the passphrase is to be set

getPassphraseForEnvironment

public Passphrase getPassphraseForEnvironment(android.content.Context context,
                                     Environment environment)

Gets passphrase for this user for specific environment

Parameters:

context - Activity/Service context

environment - Environment for which the passphrase is to be retrieved

Returns:

required Passphrase

setPassphraseForUnknownEnvironment

public void setPassphraseForUnknownEnvironment(android.content.Context context,
                                      Passphrase passphrase)

Sets passphrase for current user, when environment is unknown. For restricted profiles, this passphrase will be used throughout

Parameters:

context - Activity/Service context

passphrase - passphrase to be set

removePassphraseForUnknownEnvironment

public void removePassphraseForUnknownEnvironment(android.content.Context context)

Removes the passphrase for current user, for unknown environment.

Parameters:

context - Activity/Service context

getPassphraseForUnknownEnvironment

public Passphrase getPassphraseForUnknownEnvironment(android.content.Context context)

Gets passphrase for current user, when environment is unknown. For restricted profiles, this passphrase is to be used throughout

Parameters:

context - Activity/Service context

Returns:

required passphrase

getCurrentUser

public static User getCurrentUser(android.content.Context context)

setCurrentUser

public static void setCurrentUser(User user)

getAllUsers

public static java.util.List<User> getAllUsers(android.content.Context context)

Get all users from the database

Parameters:

context - Activity/Service context

Returns:

list of all users

getUserPicture

public Picture getUserPicture()

setUserPicture

public void setUserPicture(Picture userPicture)

getUserPictureDrawable

public android.graphics.drawable.Drawable getUserPictureDrawable(android.content.Context context)

Gets a drawable corresponding to user's picture

Parameters:

context - Activity/Service context

Returns:

a drawable of user picture

insertDefaultUser

public static void insertDefaultUser(android.content.Context context)

Inserts the default user (Device owner) into the database. This reads the 'me' contact card available
 in the system, and uses a generic string if that is null

Parameters:

context - Activity/Service context

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
  // 1. define a function separateComma
    // 1a. pass the number through the function
    // 1b. define variable number
    // 1c. define variable number as an array and split each individual digit
  // 2. Set conditions for commas
    // 2a. IF number is less than 4 digits, return number
    // 2b. ELSE look to iterate through array to place commas
    // 2c. Implement LOOP that inserts comma after last 3 elements in the array
    // 2d. Continue LOOP to insert commas every 4 elements after the first comma is placed
    // 2e. Return integer with commas

// Initial Solution
// function separateComma(number){
//   var number = number;
//   var digits_rev_array = (""+number).split("").reverse();
//   if (number.length < 4) {
//     console.log(number);
//   }
//   else {
//     var counter = 0;
//     var len = digits_rev_array.length;
//     for (counter = 0 ; counter < len; counter++){

//       if (counter == 3){
//         digits_rev_array.splice(3, 0, ",");
//       }

//       else if (counter % 3 == 0 && counter !=0){
//         digits_rev_array.splice(counter + 1, 0, ",");
//         }
//     }
//   }
//   var final_number = digits_rev_array.reverse().join("")
//   console.log(final_number);
// }

// Refactored Solution

var commaNumber = function(number) {
    var number_array = number.toString().split('');
    var at_index = -3;
    while (number_array.length + at_index > 0) {
        number_array.splice(at_index, 0, ',');
        at_index -= 4;
    }
    console.log(number_array.join(''));
};

// Your Own Tests (OPTIONAL)

// n/a

// Reflection

// What was it like to approach the problem from the perspective of JavaScript? Did you approach the problem differently?
// Our original approach was to deal with the problem the same way we had with Ruby. The pseudocode breakdown stayed practically the same as well. Once we were beginning the initial solution, our perspective changed as we were limited in our knowledge of iterating over arrays in JavaScript. This led to additional research to use loops such as for and while. For our intitial solution, we maintained the practice that if the integer was less than 4 digits, we would simply print the integer -- otherwise a series of conditions would be put into affect.

// What did you learn about iterating over arrays in JavaScript?
// There's no each method that iterates over an array in JavaScript. Instead, we had to rely on 'for' and/or 'while' loops to look at each individual digit. In these loops, we set conditions for the iteration. This differed from Ruby's iteration that looks to execute a block of code. Once we understood the syntax of JS iterations, it made much more sense for implementation. That being said, we did spend a significant amount of time working on basic syntax and ultimately decided to take a break and return to the code on our own time.

// What was different about solving this problem in JavaScript?
// I'm not sure whether this was due to JavaScript, or just a better grasp on code at this time, but we were able to complete the challenge without creating a new array. In the Ruby exercise, I relied on pushing numbers into a new array to place the comma and increase the counter index. That being said, I didn't see any glaring differences in solving this challenge. The biggest must have been the syntax implemented -- but evidently it would differ as JavaScript and Ruby are two seperate languages. Because of this, we used different statements for iterating (for & while vs. .each).

// What built-in methods did you find to incorporate in your refactored solution?
// The methods used in our refactored solution was actually the same as our initial solution. The problem with our initial solution was that it broke once a 10 digit integer was passed through the function. After some time off from the challenge, my pair was able to make a solve for this in our refactored solution by including an at_index variable that would increase the counter to include the new array elements. Across both solutions, we used splice(), join(), and toString().


text:
from django.conf.urls import url, include
from rest_framework import routers
from api.services.user_services import *
from rest_framework_swagger.views import get_swagger_view

schema_view = get_swagger_view(title='API Documentation ')
router = routers.DefaultRouter()

# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
    url(r'^$', schema_view),
    url(r'api/teste', UserServices.as_view()),
]


text:
/*
**  WS2TCPIP.H - WinSock2 Extension for TCP/IP protocols
**
**  This file contains TCP/IP specific information for use
**  by WinSock2 compatible applications.
**
**  To provide the backward compatibility, all the TCP/IP
**  specific definitions that were included in the WINSOCK.H
**  file are now included in WINSOCK2.H file. WS2TCPIP.H
**  file includes only the definitions  introduced in the
**  WinSock 2 Protocol-Specific Annex document.
**
**  Rev 0.2 Aug 10, 1995
*/

#ifndef _WS2TCPIP_H_
#define _WS2TCPIP_H_

/* Structure to keep interface specific information */

typedef struct _INTERFACE_INFO
{
    u_long          iiFlags;            /* Interface flags */
    struct sockaddr iiAddress;          /* Interface address */
    struct sockaddr iiBroadcastAddress; /* Broadcast address */
    struct sockaddr iiNetmask;          /* Network mask */
} INTERFACE_INFO, FAR * LPINTERFACE_INFO;

/* Possible flags for the  iiFlags - bitmask  */

#define IFF_UP           0x00000001 /* Interface is up */
#define IFF_BROADCAST    0x00000002 /* Broadcast is  supported */
#define IFF_LOOPBACK     0x00000004 /* this is loopback interface */
#define IFF_POINTTOPOINT 0x00000008 /*this is point-to-point interface*/
#define IFF_MULTICAST    0x00000010 /* multicast is supported */

/* Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP */

struct ip_mreq {
    struct in_addr imr_multiaddr;   /* IP multicast address of group */
    struct in_addr imr_interface;   /* local IP address of interface */
};

/* TCP/IP specific Ioctl codes */

#define SIO_GET_INTERFACE_LIST  _IOR('t', 127, u_long)  // <TBD>

/* Option to use with [gs]etsockopt at the IPPROTO_IP level */

#define IP_OPTIONS          1  /* set/get IP options */
#define IP_HDRINCL          2  /* header is included with data */
#define IP_TOS              3  /* IP type of service and preced*/
#define IP_TTL              4  /* IP time to live */
#define IP_MULTICAST_IF     9  /* set/get IP multicast i/f  */
#define IP_MULTICAST_TTL    10 /* set/get IP multicast ttl */
#define IP_MULTICAST_LOOP   11 /*set/get IP multicast loopback */
#define IP_ADD_MEMBERSHIP   12 /* add an IP group membership */
#define IP_DROP_MEMBERSHIP  13 /* drop an IP group membership */
#define IP_DONTFRAGMENT     14 /* don't fragment IP datagrams */

/* Option to use with [gs]etsockopt at the IPPROTO_UDP level */

#define UDP_NOCHECKSUM      1

/* Option to use with [gs]etsockopt at the IPPROTO_TCP level */

#define TCP_EXPEDITED_1122  0x0002

#endif  /* _WS2TCPIP_H_ */


text:
/*
 * rtGetNaN.h
 *
 * Code generation for function 'costotogo'
 *
 * C source code generated on: Wed Jun 11 17:43:10 2014
 *
 */

#ifndef __RTGETNAN_H__
#define __RTGETNAN_H__

#include <stddef.h>
#include "rtwtypes.h"
#include "rt_nonfinite.h"

extern real_T rtGetNaN(void);
extern real32_T rtGetNaNF(void);

#endif
/* End of code generation (rtGetNaN.h) */


text:
<!DOCTYPE html>

		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Home</title>

		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

Whilyham Blog

					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
						Toggle navigation

					</button>
					Whilyham

Home

About

Contact

Welcome to my blog

This is my blog

					Learn more


text:
'use strict'

const config = require('config')
const bunyan = require('bunyan')
const bunyanFormat = require('bunyan-format')
const grpc = require('grpc')

const log = bunyan.createLogger({
  name: config.get('log.name'),
  level: config.get('log.level'),
  streams: [
    {
      stream: bunyanFormat({
        outputMode: config.get('log.format')
      })
    }
  ]
})

log.addSerializers({
  err: bunyan.stdSerializers.err
})

log.log = log.info.bind(log)

grpc.setLogger(log)

module.exports = log


text:
	<form id="form-main" class="form-submit" role="form" action="<?php echo site_url($controller.'/process-reset');?>">

Reset Password

			<input type="password" class="form-control input-custom" name="password" placeholder="New password..." required autofocus>
			<input type="password" class="form-control input-custom" name="repassword" placeholder="Retype password..." required>
			<input type="hidden" name="activation_code" value="<?php echo $activation_code;?>">

	            <button id="btnGenerate" class="btn-dark pull-left" type="submit" data-loading-text="Please wait...">Reset</button>

	        		<a href="<?php echo site_url("auth");?>">Back

	</form>


text:
// plugin.h was modeled very closely after the work of Gigi Sayfan in the Dr.
// Dobbs article:
// http://www.drdobbs.com/cpp/building-your-own-plugin-framework-part/206503957
// The original work was released under the Apache License v2.

#pragma once

#include <string>

#include <pdal/pdal_export.hpp>

#include <cstdint>

#ifdef __cplusplus
extern "C" {
#endif

typedef enum PF_PluginType
{
    PF_PluginType_Kernel,
    PF_PluginType_Reader,
    PF_PluginType_Filter,
    PF_PluginType_Writer
} PF_PluginType;

typedef struct PF_PluginAPI_Version
{
    int32_t major;
    int32_t minor;
} PF_PluginAPI_Version;

typedef void * (*PF_CreateFunc)();
typedef int32_t (*PF_DestroyFunc)(void *);

typedef struct PF_RegisterParams
{
    PF_PluginAPI_Version version;
    PF_CreateFunc createFunc;
    PF_DestroyFunc destroyFunc;
    std::string description;
    std::string link;
    PF_PluginType pluginType;
} PF_RegisterParams;

typedef int32_t (*PF_ExitFunc)();
typedef PF_ExitFunc (*PF_InitFunc)();

#ifndef PDAL_DLL
  #ifdef _WIN32
    #define PDAL_DLL __declspec(dllimport)
  #else
    #define PDAL_DLL
  #endif
#endif

extern
#ifdef __cplusplus
"C"
#endif
PDAL_DLL PF_ExitFunc PF_initPlugin();

#ifdef __cplusplus
}
#endif


text:
import pytest
from app.worship.models import Worship

@pytest.fixture
def worship1():
  worship = Worship(name='Worship Test',week_day='sunday', schedule='09:00',pastor='Abriran Abilu')
  worship.put()
  return worship


text:
package com.mojang.minecraft.model;

public abstract class Model {

	public float grounded;

	public void render(float var1, float var2, float var3, float var4, float var5, float var6) {
	}
}


text:
package com.evolveum.midpoint.model.intest.password;

import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.annotation.DirtiesContext.ClassMode;
import org.springframework.test.context.ContextConfiguration;
import org.testng.annotations.Listeners;

import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.schema.constants.SchemaConstants;
import com.evolveum.midpoint.schema.result.OperationResult;
import com.evolveum.midpoint.task.api.Task;
import com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialsStorageTypeType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.UserType;

/**
 * Password test with NONE password storage (default storage for other types)
 *
 * This test is only partially working.
 * IT IS NOT PART OF THE TEST SUITE. It is NOT executed automatically.
 *
 * E.g. new password will be generated on every recompute because the
 * weak inbound mapping is activated.
 *
 * @author semancik
 *
 */
@ContextConfiguration(locations = {"classpath:ctx-model-intest-test-main.xml"})
@DirtiesContext(classMode = ClassMode.AFTER_CLASS)
@Listeners({ com.evolveum.midpoint.tools.testng.AlphabeticalMethodInterceptor.class })
public class TestPasswordNone extends AbstractPasswordTest {

    @Override
    public void initSystem(Task initTask, OperationResult initResult) throws Exception {
        super.initSystem(initTask, initResult);
    }

    @Override
    protected String getSecurityPolicyOid() {
        return SECURITY_POLICY_PASSWORD_STORAGE_NONE_OID;
    }

    @Override
    protected CredentialsStorageTypeType getPasswordStorageType() {
        return CredentialsStorageTypeType.NONE;
    }

    @Override
    protected void assertShadowLifecycle(PrismObject<ShadowType> shadow, boolean focusCreated) {
        if (focusCreated) {
            assertShadowLifecycle(shadow, null);
        } else {
            assertShadowLifecycle(shadow, SchemaConstants.LIFECYCLE_PROPOSED);
        }
    }

    @Override
    protected void assert31xBluePasswordAfterAssignment(PrismObject<UserType> userAfter) throws Exception {
        assertDummyPassword(RESOURCE_DUMMY_BLUE_NAME, ACCOUNT_JACK_DUMMY_USERNAME, null);
        PrismObject<ShadowType> shadow = getBlueShadow(userAfter);
        assertNoShadowPassword(shadow);
    }

    @Override
    protected void assert31xBluePasswordAfterPasswordChange(PrismObject<UserType> userAfter) throws Exception {
        assertDummyPassword(RESOURCE_DUMMY_BLUE_NAME, ACCOUNT_JACK_DUMMY_USERNAME, USER_PASSWORD_VALID_2);
        PrismObject<ShadowType> shadow = getBlueShadow(userAfter);
        assertIncompleteShadowPassword(shadow);
    }

    @Override
    protected void assertAccountActivationNotification(String dummyResourceName, String username) {
        // TODO Auto-generated method stub

    }

}


text:
'''
This module provides a fully functional Paxos implementation based on a
simple heartbeating mechanism.
'''
import time

from paxos import practical

from paxos.practical import ProposalID

class HeartbeatMessenger (practical.Messenger):

    def send_heartbeat(self, leader_proposal_id):
        '''
        Sends a heartbeat message to all nodes
        '''

    def schedule(self, msec_delay, func_obj):
        '''
        While leadership is held, this method is called by pulse() to schedule
        the next call to pulse(). If this method is not overridden appropriately,
        subclasses must use the on_leadership_acquired()/on_leadership_lost() callbacks
        to ensure that pulse() is called every hb_period while leadership is held.
        '''

    def on_leadership_lost(self):
        '''
        Called when loss of leadership is detected
        '''

    def on_leadership_change(self, prev_leader_uid, new_leader_uid):
        '''
        Called when a change in leadership is detected. Either UID may
        be None.
        '''

class HeartbeatNode (practical.Node):
    '''
    This class implements a Paxos node that provides a reasonable assurance of
    progress through a simple heartbeating mechanism that is used to detect
    leader failure and initiate leadership acquisition.

    If one or more heartbeat messages are not received within the
    'liveness_window', leadership acquisition will be attempted by sending out
    phase 1a, Prepare messages. If a quorum of replies acknowledging leadership
    is received, the node has successfully gained leadership and will begin
    sending out heartbeat messages. If a quorum is not received, the node will
    continually send a prepare every 'liveness_window' until either a quorum is
    established or a heartbeat with a proposal number greater than its own is
    received. The units for hb_period and liveness_window is seconds and floating
    point values may be used for sub-second precision.

    Leadership loss is detected by way of receiving a heartbeat message from a proposer
    with a higher proposal number (which must be obtained through a successful phase 1).
    Or by receiving a quorum of NACK responses to Accept! messages.

    This process does not modify the basic Paxos algorithm in any way, it merely seeks
    to ensure recovery from failures in leadership. Consequently, the basic Paxos
    safety mechanisms remain intact.
    '''

    hb_period       = 1
    liveness_window = 5

    timestamp       = time.time

    def __init__(self, messenger, my_uid, quorum_size, leader_uid=None,
                 hb_period=None, liveness_window=None):

        super(HeartbeatNode, self).__init__(messenger, my_uid, quorum_size)

        self.leader_uid          = leader_uid
        self.leader_proposal_id  = ProposalID(1, leader_uid)
        self._tlast_hb           = self.timestamp()
        self._tlast_prep         = self.timestamp()
        self._acquiring          = False
        self._nacks              = set()

        if hb_period:       self.hb_period       = hb_period
        if liveness_window: self.liveness_window = liveness_window

        if self.node_uid == leader_uid:
            self.leader                = True
            self.proposal_id           = ProposalID(self.next_proposal_number, self.node_uid)
            self.next_proposal_number += 1

    def prepare(self, *args, **kwargs):
        self._nacks.clear()
        return super(HeartbeatNode, self).prepare(*args, **kwargs)

    def leader_is_alive(self):
        return self.timestamp() - self._tlast_hb <= self.liveness_window

    def observed_recent_prepare(self):
        return self.timestamp() - self._tlast_prep <= self.liveness_window * 1.5

    def poll_liveness(self):
        '''
        Should be called every liveness_window. This method checks to see if the
        current leader is active and, if not, will begin the leadership acquisition
        process.
        '''
        if not self.leader_is_alive() and not self.observed_recent_prepare():
            if self._acquiring:
                self.prepare()
            else:
                self.acquire_leadership()

    def recv_heartbeat(self, from_uid, proposal_id):

        if proposal_id > self.leader_proposal_id:
            # Change of leadership
            self._acquiring = False

            old_leader_uid = self.leader_uid

            self.leader_uid         = from_uid
            self.leader_proposal_id = proposal_id

            if self.leader and from_uid != self.node_uid:
                self.leader = False
                self.messenger.on_leadership_lost()
                self.observe_proposal( from_uid, proposal_id )

            self.messenger.on_leadership_change( old_leader_uid, from_uid )

        if self.leader_proposal_id == proposal_id:
            self._tlast_hb = self.timestamp()

    def pulse(self):
        '''
        Must be called every hb_period while this node is the leader
        '''
        if self.leader:
            self.recv_heartbeat(self.node_uid, self.proposal_id)
            self.messenger.send_heartbeat(self.proposal_id)
            self.messenger.schedule(self.hb_period, self.pulse)

    def acquire_leadership(self):
        '''
        Initiates the leadership acquisition process if the current leader
        appears to have failed.
        '''
        if self.leader_is_alive():
            self._acquiring = False

        else:
            self._acquiring = True
            self.prepare()

    def recv_prepare(self, node_uid, proposal_id):
        super(HeartbeatNode, self).recv_prepare( node_uid, proposal_id )
        if node_uid != self.node_uid:
            self._tlast_prep = self.timestamp()

    def recv_promise(self, acceptor_uid, proposal_id, prev_proposal_id, prev_proposal_value):

        pre_leader = self.leader

        super(HeartbeatNode, self).recv_promise(acceptor_uid, proposal_id, prev_proposal_id, prev_proposal_value)

        if not pre_leader and self.leader:
            old_leader_uid = self.leader_uid

            self.leader_uid         = self.node_uid
            self.leader_proposal_id = self.proposal_id
            self._acquiring         = False
            self.pulse()
            self.messenger.on_leadership_change( old_leader_uid, self.node_uid )

    def recv_prepare_nack(self, from_uid, proposal_id, promised_id):
        super(HeartbeatNode, self).recv_prepare_nack(from_uid, proposal_id, promised_id)
        if self._acquiring:
            self.prepare()

    def recv_accept_nack(self, from_uid, proposal_id, promised_id):
        if proposal_id == self.proposal_id:
            self._nacks.add(from_uid)

        if self.leader and len(self._nacks) >= self.quorum_size:
            self.leader             = False
            self.promises_rcvd      = set()
            self.leader_uid         = None
            self.leader_proposal_id = None
            self.messenger.on_leadership_lost()
            self.messenger.on_leadership_change(self.node_uid, None)
            self.observe_proposal( from_uid, promised_id )


text:
import { Component, NgZone } from '@angular/core';
import { canDisplayRdpDom, Config, ConfigInterface, Instance, ConfigParamInterface } from 'src/classes';
import { errorConnectingToServer } from 'src/constants';
import { MatSnackBar } from '@angular/material/snack-bar';
import { AdminService } from './admin.service';
import { ResizeEvent } from 'angular-resizable-element';

@Component({
  selector: 'app-admin',
  templateUrl: 'admin.component.html',
  providers: [AdminService],
  styleUrls: ['admin.component.scss']
})

export class AdminComponent {
  config: Config;
  configError: string;
  commonParams = [];
  operations = [];
  loading = true;
  operationsRunning = [];
  outputTabIndex: number;
  instanceToUpdate: Instance;
  style: {};
  specifyProject: boolean;
  project: string;
  projectToValidate: string;
  instancesLoading: boolean;
  disableGetInstances = false;
  instances = [] as Instance[];
  getProjectError: string;
  initializeInstances = false;
  preRdpError: string;
  authenticated = false;
  authError: string;
  fullOutput = false;

  constructor(private zone: NgZone, private snackbar: MatSnackBar, private adminService: AdminService) { };

  authenticate() {
    chrome.identity.getAuthToken({interactive: true}, (token) => {
      const data = {token: token}
      console.log(data)
      this.adminService.verifyToken(data)
      .subscribe((response: any) => {
        console.log(response)
        if (response && response.error) {
          this.zone.run(() => {
            this.authError = response.error;
          })
        } else {
          this.zone.run(() => {
            this.authenticated = true;
            this.loadConfig();
          })
        }
      }, error => {
        if (error.status === 0) {
          this.zone.run(() => {
            this.authError = errorConnectingToServer;
          })
        } else {
          this.zone.run(() => {
            this.authError = error.error.error;
          })
        }
    })
    })
  }
  // setCommonParams sets up a commonParams array consisting of name-value pairs using the configuration common params.
  setCommonParams() {
    if (this.config.project_operation) {
      this.specifyProject = false;
    } else {
      this.specifyProject = true;
    }
    if (this.config.common_params) {
      for (const [name, paramValue] of Object.entries(this.config.common_params)) {
        paramValue.name = name;
        paramValue.value = paramValue.default;
        this.commonParams.push(paramValue);
      }
    }
  }

  // setOperations sets up an operations array using config.operations
  setOperations() {
    if (this.config.operations) {
      this.config.operations.forEach((operation) => {
        const params = [];

        if (operation.params) {
          for (const [name, paramValue] of Object.entries(operation.params)) {
            paramValue.value = paramValue.default;
            paramValue.name = name;
            params.push(paramValue);
          }
        }
        this.operations.push({ type: 'single', name: operation.name, description: operation.description, params });
      })

      console.log(this.operations)
    }
  }

  setWorkFlows() {
    if (this.config.workflows) {
      const workflows = [];
      this.config.workflows.forEach((workflow) => {
        console.log(workflow);
        const operations = [];

        workflow.operations.forEach(operation => {
          for (const operationLoaded of this.operations) {
            if (operationLoaded.name === operation) {
              operations.push(operationLoaded);
            }
          }
        });
        workflows.push({ type: 'workflow', name: workflow.name, description: workflow.description, operations })
      })

      this.operations = workflows.concat(this.operations);
    }
  }

  getProject() {
    this.initializeInstances = false;

    if (this.project && this.project != '') {
      this.disableGetInstances = true;

      this.getComputeInstances();
    } else {
      const data = { type: '', project_name: '', variables: {} };
      if (!this.specifyProject) {
        data.type = 'get';
      } else {
        data.type = 'validate';
        data.project_name = this.projectToValidate;
      }

      this.disableGetInstances = true;

      this.loadCommonParams(data.variables)
      console.log("send project")
      this.adminService.sendProjectOperation(data)
        .subscribe((response: any) => {
          console.log(response)

          // If operation returned, set loadedOperation to response
          if (response.project) {
            this.project = response.project;
            console.log(this.project)
            this.getComputeInstances();
          }

          // If error returned, set operation.error to error
          if (response.error) {
            this.getProjectError = response.error;
            this.disableGetInstances = false;
          }

        }, error => {
          if (error.status === 0) {
            this.getProjectError = errorConnectingToServer;
            this.disableGetInstances = false;
          } else {
            this.getProjectError = error.error.error;
            this.disableGetInstances = false;
          }
        })
    }
  }

  getComputeInstances() {
    this.instancesLoading = true;
    this.getProjectError = null;
    const data = { project: this.project }
    this.adminService.getComputeInstances(data)
      .subscribe((response: any) => {
        console.log(response)

        // If error returned, set getInstancesError to error
        if (response.error) {
          this.getProjectError = response.error;
          this.instances = [];
        } else {
          const instances = response;
          console.log(response)
          instances.forEach((instance) => {
            instance.project = this.project;
            instance.zone = instance.zone.split('/').pop();
            instance.networkInterfaces[0].network = instance.networkInterfaces[0].network.split('/').pop();
            instance.displayPrivateRdpDom = canDisplayRdpDom(instance);
          })
          this.instances = instances;
          console.log(this.instances);
          if (instances.length > 0) {
            this.initializeInstances = true;
          }
          this.instancesLoading = false;
        }

        this.disableGetInstances = false;
      }, error => {
        if (error.status === 0) {
          this.disableGetInstances = false;
          this.getProjectError = errorConnectingToServer;
          this.instancesLoading = false;
        } else {
          this.getProjectError = error.error.error;
          this.instancesLoading = false;
          this.disableGetInstances = false;
        }
      })
  }

  // loadCommonParams adds the commonParams to a variables object.
  loadCommonParams(variables: any) {
    this.commonParams.forEach((commonParam) => {
      variables[commonParam.name] = commonParam.value
    })
  }

  // sendOperation sends the operation and its params to the server to get an ready operation.
  sendOperation(operation: any) {
    const variables = {};
    operation.params.forEach(param => {
      variables[param.name] = param.value;
    });
    const data = { name: operation.name, variables }

    this.loadCommonParams(data.variables)

    this.adminService.sendOperation(data)
      .subscribe((response: any) => {
        console.log(response)

        // If operation returned, set loadedOperation to response
        if (response.operation) {
          operation.error = '';
          operation.loadedOperation = response;
          console.log(operation)
        }

        // If error returned, set operation.error to error
        if (response.error) {
          operation.error = response.error;
        }

      }, error => {
        if (error.status === 0) {
          operation.error = errorConnectingToServer;
        } else {
          operation.error = error.error.error;
        }
      })
  }

  // clearLoadedOperation is triggered by the clear button, clears the operation
  clearLoadedOperation(operation: any) {
    operation.loadedOperation = null;
  }

  // startLoadedOperation will start the loadedOperation.
  startLoadedOperation(operation: any) {
    const operationFull = operation.name;
    operation.loadedOperation.label = operationFull.substr(0, 20 - 1) + (operationFull.length > 20 ? '...' : '');
    this.operationsRunning.push(operation.loadedOperation)

    this.snackbar.open('Started operation', '', { duration: 3000 });

    console.log(this.operationsRunning)
    operation.loadedOperation = null;
  }

  // startLoadedInstanceOperation will start an instance operation from the subrdp component.
  startLoadedInstanceOperation(operation: any) {
    const operationFull = operation.instanceName + " - " + operation.name;
    operation.label = operationFull.substr(0, 20 - 1) + (operationFull.length > 20 ? '...' : '');
    this.operationsRunning.push(operation)
    this.snackbar.open('Started instance operation', '', { duration: 3000 });
  }

  // loadConfig loads the config file from the server and sets up all the variables needed to render page.
  loadConfig() {
    this.adminService.getConfig()
      .subscribe((response: any) => {
        console.log(response)
        if (response.error) {
          this.configError = response.error;
        } else {
          this.config = new Config(response as ConfigInterface);
          this.setCommonParams();
          this.setOperations();
          this.setWorkFlows();

          console.log(this.config)

          // If no operations defined and rdp not enabled, set a configError
          if (!this.config) {
            this.configError = 'Your configuration file is empty.'
          }
        }

      }, error => {
        console.log(error)
        console.log(error.status)
        if (error.status === 0) {
          this.configError = errorConnectingToServer;
        } else {
          this.configError = JSON.stringify(error);
        }
      })

    this.loading = false;
  }

  // refreshConfig is trigerred by the refresh icon in the top bar, resets all the variables and reloadsConfig
  refreshConfig() {
    this.config = null;
    this.operations = [];
    this.configError = null;
    this.commonParams = [];
    this.loading = true;
    this.operationsRunning = [];
    this.initializeInstances = false;
    this.preRdpError = null;
    this.getProjectError = null;
    this.project = null;
    this.loadConfig();
  }

  // closeOutputTab sends a close message to the tab running an operation to close the websocket.
  closeOutputTab() {
    console.log('close button')
    console.log(this.operationsRunning[this.outputTabIndex])
    this.operationsRunning[this.outputTabIndex].close = true;
  }

  // tabChanged changes outputTabIndex to the current tab index
  tabChanged(tabChangeEvent: any): void {
    this.outputTabIndex = tabChangeEvent.index;
  }

  // outputTabClosed removes the ended operation from the list of tabs
  outputTabClosed(i: number) {
    this.operationsRunning.splice(i, 1);
    this.snackbar.open('Operation ended', '', { duration: 3000 });
  }

  // instanceEmitted handles cases from the subrdp component including starting and ending the RDP websocket connection.
  instanceEmitted(instance: Instance) {
    if (!instance.rdpRunning) {
      if (this.config.pre_rdp_operations) {
        instance.rdpRunning = true;
        const operation = { type: 'rdp', label: 'RDP ' + instance.name, instance }
        operation.instance.params = {};
        this.loadCommonParams(operation.instance.params)
        this.operationsRunning.push(operation);
      }

    } else {
      this.operationsRunning.forEach((operation => {
        if (operation.instance === instance) {
          operation.rdpClose = true;

          this.snackbar.open('Ending RDP for ' + instance.name, '', { duration: 3000 });
        }
      }))
    }
  }
}


text:
/** Class that should be used in components when uninitialized objects are desired and to enable
	dragging values to serializable object variables for components in editor. */
var TypeReference=Serializable.extend({
	/** Constructor */
	init: function(type, value) {
		this._super();
		this.valueType=type;
		this.value=value;
	},

	type: function() {
		return "TypeReference";
	},

	isNull: function() {
		return !this.value;
	}
});

//@ sourceURL=TypeReference.js


text:
{
  if (!callback) {
    return;
  }

  var rules;

  if (cssText.match("@import") && isChrome) {
    var style = cssTextToStyle(cssText);
    inFrame(function(doc) {
      doc.head.appendChild(style.impl);
      rules = Array.prototype.slice.call(style.sheet.cssRules, 0);
      callback(rules);
    });
  } else {
    rules = cssToRules(cssText);
    callback(rules);
  }
}


text:
package com.cchtw.sfy.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.cchtw.sfy.R;
import com.cchtw.sfy.uitls.Constant;
import com.cchtw.sfy.uitls.SharedPreferencesHelper;

public class RunningSettingActivity extends BaseActivity{
    private TextView tv_page_size;
    private TextView tv_time_out;
    private TextView tv_finger_times;
    private TextView tv_video_time;
    private TextView tv_video_cache_time;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_running_settings);
        setCanBack(true);
        initView();
        initData();
    }
    private void initView(){
        tv_page_size = (TextView) findViewById(R.id.tv_page_size);
        tv_time_out = (TextView) findViewById(R.id.tv_time_out);
        tv_finger_times = (TextView) findViewById(R.id.tv_finger_times);
        tv_video_time = (TextView) findViewById(R.id.tv_video_time);
        tv_video_cache_time = (TextView) findViewById(R.id.tv_video_cache_time);
    }

    private void initData(){
        tv_page_size.setText(new StringBuilder().append(SharedPreferencesHelper.getString(Constant.PAGESIZE, "4")).append("条").toString());
        tv_time_out.setText(new StringBuilder().append(SharedPreferencesHelper.getString(Constant.TIMEOUT, "30")).append("秒").toString());
        tv_finger_times.setText(new StringBuilder().append(SharedPreferencesHelper.getString(Constant.FINGERPASSWORDTIMES, "5")).append("次").toString());
        tv_video_time.setText(new StringBuilder().append(SharedPreferencesHelper.getString(Constant.VEDIOLONG, "10")).append("秒").toString());
        tv_video_cache_time.setText(new StringBuilder().append(SharedPreferencesHelper.getString(Constant.VEDIOANDPHOTOCACHELONG, "10")).append("天").toString());
    }
}


text:
/**
 * check if element is enabled
 *
 * @param {String}  elements  DOM elements to check against
 * @param {Boolean} reverse   if true, function waits until element is disabled
 *
 * @see  waitForVisible
 */

/* global document,window */
module.exports = function(elements, reverse) {

    if(elements.length === 0) {
        throw new Error('NoSuchElement');
    }

    var cb = arguments[arguments.length - 1];
    var interval = setInterval(function() {

        for (var i = 0; i < elements.length; ++i) {
            var elem = elements[i];

            if ((!reverse && typeof elem.disabled === 'boolean' && !elem.disabled) ||
                ( reverse && typeof elem.disabled === 'boolean' &&  elem.disabled)) {
                window.clearInterval(interval);
                return cb(true);
            }
        }

    }, 100);
};