text:
namespace Magellan.Framework
{
    /// <summary>
    /// Represents a <see cref="ViewResult"/> for a Silverlight page object.
    /// </summary>
    public class PageResult : ViewResult
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PageResult"/> class.
        /// </summary>
        /// <param name="publicUri">The public URI, such as /Home, which will be given to the Silverlight navigation framework.</param>
        /// <param name="model">The model.</param>
        /// <param name="viewEngines">The view engines.</param>
        public PageResult(string publicUri, object model, ViewEngineCollection viewEngines)
            : base(publicUri, model, viewEngines)
        {
            Options.SetViewType("Page");
        }
    }
}


text:
package org.apache.struts.faces.component;

import java.io.IOException;
import java.util.Iterator;

import javax.faces.component.UIOutput;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;

/**
 *
Custom component that replaces the Struts
 * <html:write> tag.

 */

public class WriteComponent extends UIOutput {

    // ------------------------------------------------------------ Constructors

    /**
     *
Create a new {@link WriteComponent} with default properties.

     */
    public WriteComponent() {

        super();
        setRendererType("org.apache.struts.faces.Write");

    }

    // ------------------------------------------------------ Instance Variables

    /**
     *
Flag indicating whether output should be filtered.

     */
    private boolean filter = true;
    private boolean filterSet = false;

    /**
     *
CSS style(s) to be rendered for this component.

     */
    private String style = null;

    /**
     *
CSS style class(es) to be rendered for this component.

     */
    private String styleClass = null;

    // ---------------------------------------------------- Component Properties

    /**
     *
Return the component family to which this component belongs.

     */
    public String getFamily() {

        return "org.apache.struts.faces.Write";

    }

    /**
     *
Return a flag indicating whether filtering should take place.

     */
    public boolean isFilter() {

        if (filterSet) {
            return filter;
        }
        ValueBinding vb = getValueBinding("filter");
        if (vb != null) {
            Boolean value = (Boolean) vb.getValue(getFacesContext());
            if (null == value) {
                return filter;
            }
            return value.booleanValue();
        } else {
            return filter;
        }

    }

    /**
     *
Set the flag indicating that the output value should be filtered.

     *
     * @param filter The new filter flag
     */
    public void setFilter(boolean filter) {

        this.filter = filter;
        this.filterSet = true;

    }

    /**
     *
Return the CSS style(s) to be rendered for this component.

     */
    public String getStyle() {

        ValueBinding vb = getValueBinding("style");
        if (vb != null) {
            return (String) vb.getValue(getFacesContext());
        } else {
            return style;
        }

    }

    /**
     *
Set the CSS style(s) to be rendered for this component.

     *
     * @param style The new CSS style(s)
     */
    public void setStyle(String style) {

        this.style = style;

    }

    /**
     *
Return the CSS style class(es) to be rendered for this component.

     */
    public String getStyleClass() {

        ValueBinding vb = getValueBinding("styleClass");
        if (vb != null) {
            return (String) vb.getValue(getFacesContext());
        } else {
            return styleClass;
        }

    }

    /**
     *
Set the CSS style class(es) to be rendered for this component.

     *
     * @param styleClass The new CSS style class(es)
     */
    public void setStyleClass(String styleClass) {

        this.styleClass = styleClass;

    }

    // ---------------------------------------------------- StateManager Methods

    /**
     *
Restore the state of this component.

     *
     * @param context FacesContext for the current request
     * @param state State object from which to restore our state
     */
    public void restoreState(FacesContext context, Object state) {

        Object values[] = (Object[]) state;
        super.restoreState(context, values[0]);
        filter = ((Boolean) values[1]).booleanValue();
        filterSet = ((Boolean) values[2]).booleanValue();
        style = (String) values[3];
        styleClass = (String) values[4];

    }

    /**
     *
Save the state of this component.

     *
     * @param context FacesContext for the current request
     */
    public Object saveState(FacesContext context) {

        Object values[] = new Object[5];
        values[0] = super.saveState(context);
        values[1] = filter ? Boolean.TRUE : Boolean.FALSE;
        values[2] = filterSet ? Boolean.TRUE : Boolean.FALSE;
        values[3] = style;
        values[4] = styleClass;
        return values;

    }

}

redpajama_set_name: RedPajamaGithub


text:
using UnityEngine;
using System.Collections;

public class AppendBufferExample : MonoBehaviour
{
	public Material material;
	public ComputeShader appendBufferShader;

	const int width = 32;
	const float size = 5.0f;

	ComputeBuffer buffer;
	ComputeBuffer argBuffer;

	void Start()
	{

		buffer = new ComputeBuffer(width * width, sizeof(float) * 3, ComputeBufferType.Append);

		appendBufferShader.SetBuffer(0, "appendBuffer", buffer);
		appendBufferShader.SetFloat("size", size);
		appendBufferShader.SetFloat("width", width);

		appendBufferShader.Dispatch(0, width/8, width/8, 1);

		argBuffer = new ComputeBuffer(4, sizeof(int), ComputeBufferType.DrawIndirect);

		int[] args = new int[]{ 0, 1, 0, 0 };
		argBuffer.SetData(args);

		ComputeBuffer.CopyCount(buffer, argBuffer, 0);
		argBuffer.GetData(args);

		Debug.Log("vertex count " + args[0]);
		Debug.Log("instance count " + args[1]);
		Debug.Log("start vertex " + args[2]);
		Debug.Log("start instance " + args[3]);
	}

	void OnPostRender ()
	{
		material.SetPass(0);
		material.SetBuffer ("buffer", buffer);
		material.SetColor("col", Color.red);
		Graphics.DrawProceduralIndirect(MeshTopology.Points, argBuffer, 0);
	}

	void OnDestroy ()
	{
		buffer.Release();
		argBuffer.Release();
	}
}


text:
#ifndef __TINYTINYJPG_H__
#define __TINYTINYJPG_H__

#include <stdio.h>
#include <string.h>

/*=============================================================================
Definitions
=============================================================================*/
#if defined(VLD) && defined(_DEBUG)
  #include <vld.h>
#endif

#if defined(_MSC_VER)
  #define ALIGN16 __declspec(align(16))
#else
  #define ALIGN16
#endif

/* Special huffman symbol codes */
#define JPG_HUFFMAN_EOB             0
#define JPG_HUFFMAN_ZRL             -1000000

/* Known and supported MCU layouts */
#define JPG_MCU_LAYOUT_YCBCR_444    0
#define JPG_MCU_LAYOUT_YCBCR_422    1
#define JPG_MCU_LAYOUT_YCBCR_420    2
#define JPG_NUM_MCU_LAYOUTS         3

namespace ttjpg {

  /* Forward declarations */
  class InputStream;

  /*===========================================================================
  Types
  ===========================================================================*/
  /* Unsigned types */
  typedef unsigned char uint8;
  typedef unsigned short uint16;
  typedef unsigned int uint32;

  /* Error codes */
  enum ErrorCode {
    ERR_NONE,ERR_UNSUPPORTED_MCU_LAYOUT,ERR_INVALID_HUFFMAN_TREE,
    ERR_INVALID_HUFFMAN_CODE,ERR_NOT_JPEG,ERR_NO_FRAME,ERR_UNEXPECTED_MARKER,
    ERR_MUST_BE_8BIT,ERR_INVALID_FRAME,ERR_INVALID_HUFFMAN_TABLE_ID,
    ERR_INVALID_QUANTIZATION_TABLE,ERR_INVALID_SCAN,
    ERR_DYNAMIC_ARRAY_TOO_LARGE,ERR_STREAM_FAILURE
  };

  /* Simple 24-bit RGB (8 bits per component) images. Note that the pixel data
     memory is released when the object runs out of scope */
  struct RGBImage {
    RGBImage() {
      /* Tidy */
      pc = NULL;
      nWidth = nHeight = 0;
    }
    ~RGBImage() {
      /* Automatic release memory */
      release();
    }

    /* Data */
    uint8 *pc;
    int nWidth,nHeight;

    /* Methods */
    void release(void) {
      if(pc != NULL) delete [] pc;
      pc = NULL;
    }
  };

  /* Component information as described in the JPEG file */
  struct ComponentInfo {
    ComponentInfo() {
      /* Defaults */
      nXSampleFactor = 1;
      nYSampleFactor = 1;
      nQuantizationTable = 0;
    }

    int nXSampleFactor;
    int nYSampleFactor;
    int nQuantizationTable;
  };

  /* 8x8 quantization table (table is in zig-zag order) */
  struct QuantizationTable {
    QuantizationTable() {
      /* Defaults */
      bDefined = false;
      memset(nTable,0,sizeof(nTable));
    }

    bool bDefined;
    ALIGN16 short nTable[64];
  };

  /* Node of the huffman decoding tree */
  struct HuffmanNode {
    HuffmanNode() {
      /* Defaults */
      pChildren[0] = pChildren[1] = NULL;
      nSymbol = -1;
    }

    int nSymbol;
    HuffmanNode *pChildren[2];
  };

  /* Dynamic array. Allocations are done in buckets. */
  template<typename _T,int _AllocSize,int _MaxAllocs>
  struct DynamicArray {
    DynamicArray() {
      _Tidy();
    }
    ~DynamicArray() {
      clear();
    }

    _T Static[_AllocSize];
    _T *p[_MaxAllocs];
    int nAllocs,nSize;

    /* Methods */
    void clear(void) {
      for(int i=0;i<nAllocs;i++)
        delete [] p[i];
      _Tidy();
    }

    void grow(int n) {
      int nNewSize = nSize + n;

      if(nNewSize > (nAllocs + 1) * _AllocSize) {
        int nNeeded = (nNewSize / _AllocSize) - 1;
        if(nNewSize % _AllocSize) nNeeded++;

        if(nAllocs >= _MaxAllocs)
          throw DecodeError(ERR_DYNAMIC_ARRAY_TOO_LARGE);

        for(int i=nAllocs;i<nNeeded;i++)
          p[i] = new _T[_AllocSize];

        nAllocs = nNeeded;
      }

      nSize = nNewSize;
    }

    int size(void) const {
      return nSize;
    }

    _T & operator [] (int i) {
      int a = i / _AllocSize;
      if(a == 0) return Static[i % _AllocSize];
      return p[a][(i % _AllocSize) - 1];
    }

    /* Local functions */
    void _Tidy(void) {
      memset(p,0,sizeof(_T *) * _MaxAllocs);
      nAllocs = nSize = 0;
    }
  };

  /* Huffman table and associated decoding tree built from it */
  struct HuffmanTable {
    HuffmanTable() {
      /* Defaults */
      bDefined = false;
      memset(nTable,0,sizeof(nTable));
      memset(nL,0,sizeof(nL));

      nNextFreeNode = 0;
      nNumFreeNodes = 0;
      nMaxBits = 0;
    }
    ~HuffmanTable() {
    }

    bool bDefined;

    int nMaxBits;     /* Maximum code length (i.e. height of tree) */
    int nL[16];
    int nTable[4096];

    int nNextFreeNode;
    int nNumFreeNodes;
    DynamicArray<HuffmanNode,1024,1024> Tree;

    /* Methods */
    void buildTree(void);
    void buildLookupTables(HuffmanNode *p,int nBits,uint32 nCode);
    int decode(InputStream *pIn,int *pnLeadingZeros);
  };

  /* JPEG information (internal per-decode context) */
  struct Info {
    Info() {
      pcMCUBuffer = NULL;
    }
    ~Info() {
      if(pcMCUBuffer != NULL) delete [] pcMCUBuffer;
    }

    ComponentInfo Components[3];
    QuantizationTable QuantizationTables[4];
    HuffmanTable ACHuffmanTables[4];
    HuffmanTable DCHuffmanTables[4];

    int nRestartInterval;

    int nMCULayout;
    int nMCUIndex;
    int nTotalMCUs;

    int nHorizontalMCUs,nVerticalMCUs;

    uint8 *pcMCUBuffer;
  };

  /* Component of a scan */
  struct ScanComponent {
    HuffmanTable *pACTable; /* Huffman decoding of AC values */
    HuffmanTable *pDCTable; /* Huffman decoding of DC values */
    int nDCPred;            /* DC predictor */
  };

  /* Internal per-decode scan context */
  struct Scan {
    ScanComponent Components[3];
  };

  /*===========================================================================
  Exception class
  ===========================================================================*/
  class DecodeError {
    public:
      DecodeError(ErrorCode _ErrorCode) : m_ErrorCode(_ErrorCode) {}
      ~DecodeError() {}

      /* Methods */
      ErrorCode getError(void) {return m_ErrorCode;}

    private:
      /* Data */
      ErrorCode m_ErrorCode;
  };

  /*===========================================================================
  InputStream abstract class interface

    Applications should implement this class in order to stream data to the
    decoder.
  ===========================================================================*/
  class InputStream {
    public:
      InputStream() {
        flushBitStream();
      }
      virtual ~InputStream() {
      }

      /*-----------------------------------------------------------------------
      Virtual interface
      -----------------------------------------------------------------------*/
      /* isEndOfStream() should return true if end-of-stream has been hit
         crossed */
      virtual bool isEndOfStream(void) = 0;

      /* readByte() should read a single byte from the stream and return it */
      virtual int readByte(void) = 0;

      /* skip() should skip the next nBytes bytes in stream */
      virtual void skip(int nBytes) = 0;

      /*-----------------------------------------------------------------------
      Methods
      -----------------------------------------------------------------------*/
      /* Common stream helper functions */
      int readWord(void);
      int readMarker(void);
      uint32 readBits(int nNum);
      void flushBitStream(void);

      int getEmbeddedMarker(void) {return m_nEmbeddedMarker;}

    private:
      /*-----------------------------------------------------------------------
      Data
      -----------------------------------------------------------------------*/
      uint32 m_nBitBuf;
      int m_nBits;
      int m_nEmbeddedMarker;
  };

  /*===========================================================================
  StdioInputStream class

    stdio (fopen(), etc) implementation of the InputStream interface
  ===========================================================================*/
  class StdioInputStream : public InputStream {
    public:
      StdioInputStream(FILE *fp,bool bCloseFile = false)
        : m_fp(fp),
          m_bCloseFile(bCloseFile),
          m_nBufferedBytes(0),
          m_nNextByte(0),
          m_bEOS(false) {
        /* Use supplied stdio stream */
      }
      StdioInputStream(const char *pcFileName)
        : m_bCloseFile(true),
          m_nBufferedBytes(0),
          m_nNextByte(0),
          m_bEOS(false) {
        /* Open file */
        m_fp = fopen(pcFileName,"rb");
      }
      virtual ~StdioInputStream() {
        /* Close handle? */
        if(m_bCloseFile && m_fp != NULL)
          fclose(m_fp);
      }

      /* InputStream implementation */
      virtual bool isEndOfStream(void) {
        return m_bEOS;
      }

      virtual int readByte(void) {
        if(m_nBufferedBytes == 0) {
          /* Need to fill the buffer */
          if(m_fp == NULL) throw DecodeError(ERR_STREAM_FAILURE);

          m_nBufferedBytes = (int)fread(m_cBuffer,1,sizeof(m_cBuffer),m_fp);

          if(ferror(m_fp) != 0) throw DecodeError(ERR_STREAM_FAILURE);

          if(m_nBufferedBytes == 0) {
            m_bEOS = true;
            return 0;
          }

          m_nNextByte = 0;
        }

        /* Grab next byte and return it */
        int n = m_cBuffer[m_nNextByte];
        m_nNextByte++;
        m_nBufferedBytes--;
        return n;
      }

      virtual void skip(int nBytes) {
        /* Skip next bytes */
        if(m_nBufferedBytes >= nBytes) {
          m_nBufferedBytes -= nBytes;
          m_nNextByte += nBytes;
        }
        else {
          int nRemaining = nBytes - m_nBufferedBytes;

          m_nBufferedBytes = 0;
          m_nNextByte = 0;

          fseek(m_fp,nRemaining,SEEK_CUR);

          if(ferror(m_fp) != 0) throw DecodeError(ERR_STREAM_FAILURE);
        }
      }

    private:
      /* Data */
      FILE *m_fp;
      bool m_bCloseFile;
      bool m_bEOS;

      /* Buffer */
      int m_nBufferedBytes;
      int m_nNextByte;
      uint8 m_cBuffer[16384];
  };

  /*===========================================================================
  MemoryInputStream class

    Implementation of the InputStream interface for reading JPEG files directly
    from a memory buffer.
  ===========================================================================*/
  class MemoryInputStream : public InputStream {
    public:
      MemoryInputStream(const uint8 *pc,int nTotalBytes)
        : m_pc(pc),
          m_nTotalBytes(nTotalBytes),
          m_nNextByte(0),
          m_bEOS(false) {
      }
      virtual ~MemoryInputStream() {
      }

      /* InputStream implementation */
      virtual bool isEndOfStream(void) {
        return m_bEOS;
      }

      virtual int readByte(void) {
        if(m_nNextByte == m_nTotalBytes) {
          m_bEOS = true;
          return 0;
        }

        /* Grab next byte and return it */
        return m_pc[m_nNextByte++];
      }

      virtual void skip(int nBytes) {
        /* Skip next bytes */
        m_nNextByte += nBytes;

        if(m_nNextByte > m_nTotalBytes) {
          m_bEOS = true;
          m_nNextByte = m_nTotalBytes;
        }
      }

    private:
      /* Data */
      bool m_bEOS;
      int m_nTotalBytes;
      int m_nNextByte;
      const uint8 *m_pc;
  };

  /*===========================================================================
  Decoder class

    This class defines the decoding functionality of the library.
  ===========================================================================*/
  class Decoder {
    public:
      Decoder();
      ~Decoder();

      /*-----------------------------------------------------------------------
      Methods
      -----------------------------------------------------------------------*/
      void readImageInfo(InputStream *pIn,RGBImage *pRGB);
      void readImage(InputStream *pIn,RGBImage *pRGB);
      void decodeScan(InputStream *pIn,RGBImage *pRGB,Info *pi,Scan *ps);

    private:
      /*-----------------------------------------------------------------------
      Data
      -----------------------------------------------------------------------*/
      int m_nZZOrder[64];

      short m_nRTable[256];
      short m_nGTable[65536];
      short m_nBTable[256];

      /*-----------------------------------------------------------------------
      Local functions
      -----------------------------------------------------------------------*/
      void _InterpretMarker(InputStream *pIn,RGBImage *pRGB,Info *pi,int nMarker);
      void _DecodeFrame(InputStream *pIn,RGBImage *pRGB,Info *pi);
      int _DecodeRestartInterval(InputStream *pIn,RGBImage *pRGB,Info *pi,Scan *ps);

      void _Parse(InputStream *pIn,RGBImage *pRGB,Info *pi,bool bGetInfoOnly);
      void _ParseSOF(InputStream *pIn,RGBImage *pRGB,Info *pi);
      void _ParseDHT(InputStream *pIn,RGBImage *pRGB,Info *pi);
      void _ParseDQT(InputStream *pIn,RGBImage *pRGB,Info *pi);
      void _ParseSOS(InputStream *pIn,RGBImage *pRGB,Info *pi,Scan *ps);
      void _ParseDRI(InputStream *pIn,RGBImage *pRGB,Info *pi);

      void _InverseDCT(short *pnBlock);

      void _MergeMCU(RGBImage *pRGB,Info *pi);
      void _UpdateMCU(Info *pi,int nDataUnit,short *pnBlock);

      void _UpdateMCU8x8(uint8 *pcMCUBuffer,int nMCUXSize,int nMCUYSize,short *pnBlock,int nComponent,int nXOffset,int nYOffset);
      void _UpdateMCU16x8(uint8 *pcMCUBuffer,short *pnBlock,int nComponent);
      void _UpdateMCU16x16(uint8 *pcMCUBuffer,short *pnBlock,int nComponent);

      void _InitZZOrdering(void);
      void _InitRGBTables(void);
  };

}

#endif


text:
IMPLEMENT_DYNCREATE(CCol2012Doc, CDocument)

BEGIN_MESSAGE_MAP(CCol2012Doc, CDocument)
END_MESSAGE_MAP()

// CCol2012Doc construction/destruction

CCol2012Doc::CCol2012Doc()
{
	// TODO: add one-time construction code here

}

CCol2012Doc::~CCol2012Doc()
{
}

BOOL CCol2012Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}

// CCol2012Doc serialization

void CCol2012Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

#ifdef SHARED_HANDLERS

// Support for thumbnails
void CCol2012Doc::OnDrawThumbnail(CDC& dc, LPRECT lprcBounds)
{
	// Modify this code to draw the document's data
	dc.FillSolidRect(lprcBounds, RGB(255, 255, 255));

	CString strText = _T("TODO: implement thumbnail drawing here");
	LOGFONT lf;

	CFont* pDefaultGUIFont = CFont::FromHandle((HFONT) GetStockObject(DEFAULT_GUI_FONT));
	pDefaultGUIFont->GetLogFont(&lf);
	lf.lfHeight = 36;

	CFont fontDraw;
	fontDraw.CreateFontIndirect(&lf);

	CFont* pOldFont = dc.SelectObject(&fontDraw);
	dc.DrawText(strText, lprcBounds, DT_CENTER | DT_WORDBREAK);
	dc.SelectObject(pOldFont);
}

// Support for Search Handlers
void CCol2012Doc::InitializeSearchContent()
{
	CString strSearchContent;
	// Set search contents from document's data.
	// The content parts should be separated by ";"

	// For example:  strSearchContent = _T("point;rectangle;circle;ole object;");
	SetSearchContent(strSearchContent);
}

void CCol2012Doc::SetSearchContent(const CString& value)
{
	if (value.IsEmpty())
	{
		RemoveChunk(PKEY_Search_Contents.fmtid, PKEY_Search_Contents.pid);
	}
	else
	{
		CMFCFilterChunkValueImpl *pChunk = NULL;
		ATLTRY(pChunk = new CMFCFilterChunkValueImpl);
		if (pChunk != NULL)
		{
			pChunk->SetTextValue(PKEY_Search_Contents, value, CHUNK_TEXT);
			SetChunkValue(pChunk);
		}
	}
}

#endif // SHARED_HANDLERS

// CCol2012Doc diagnostics

#ifdef _DEBUG
void CCol2012Doc::AssertValid() const
{
	CDocument::AssertValid();
}

void CCol2012Doc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

// CCol2012Doc commands


text:
package cloud::aws::ebs::mode::discovery;

use base qw(centreon::plugins::mode);

use strict;
use warnings;
use JSON::XS;

sub new {
    my ($class, %options) = @_;
    my $self = $class->SUPER::new(package => __PACKAGE__, %options);
    bless $self, $class;

    $options{options}->add_options(arguments => {
        "prettify"  => { name => 'prettify' },
    });

    return $self;
}

sub check_options {
    my ($self, %options) = @_;
    $self->SUPER::init(%options);
}

sub run {
    my ($self, %options) = @_;

    my @disco_data;
    my $disco_stats;

    $disco_stats->{start_time} = time();

    my $volumes = $options{custom}->discovery(
        service => 'ec2',
        command => 'describe-volumes'
    );

    foreach my $volume (@{$volumes->{Volumes}}) {
        my %volume;
        my @name_tags;
            foreach my $tag (@{$volume->{Tags}}) {
                if ($tag->{Key} eq "Name" && defined($tag->{Value})) {
                    push @name_tags, $tag->{Value};
                }
            }
        $volume{id} = $volume->{VolumeId};
        $volume{name} = join(",", @name_tags);
        $volume{type} = $volume->{VolumeType};
        $volume{state} = $volume->{State};
        $volume{snapshotid} = $volume->{SnapshotId};
        $volume{encrypted} = $volume->{Encrypted};
        push @disco_data, \%volume;
    }

    $disco_stats->{end_time} = time();
    $disco_stats->{duration} = $disco_stats->{end_time} - $disco_stats->{start_time};
    $disco_stats->{discovered_items} = @disco_data;
    $disco_stats->{results} = \@disco_data;

    my $encoded_data;
    eval {
        if (defined($self->{option_results}->{prettify})) {
            $encoded_data = JSON::XS->new->utf8->pretty->encode($disco_stats);
        } else {
            $encoded_data = JSON::XS->new->utf8->encode($disco_stats);
        }
    };
    if ($@) {
        $encoded_data = '{"code":"encode_error","message":"Cannot encode discovered data into JSON format"}';
    }

    $self->{output}->output_add(short_msg => $encoded_data);
    $self->{output}->display(nolabel => 1, force_ignore_perfdata => 1);
    $self->{output}->exit();
}

1;

__END__

=head1 MODE

Amazon EBS volumes discovery.

=over 8

=item B<--prettify>

Prettify JSON output.

=back

=cut


text:
***self*** stands for _Simple Exploratory Learning Framework_. Goal of this project is to provide a simple package with which a novice as well as an advanced R programmer, can quickly dissect and analyze a dataset. In addition, to providing wrappers with error tracing, this package can be customized and extended to maintain a code base for creating predictive models when exploring multiple types datasets, consectively.

To summarize, ***self*** is good when analyzing lots data by yourself, but can also be extended by an organization to become a standard package for internal use.

## Style Guide
When writing this package, the following guidelines were followed as strictly as possible, [Google's R Style Guide](https://google.github.io/styleguide/Rguide.xml#assignment)

## Examples
Checkout the web app [housing-predictions](https://github.com/admurali/housing-prediction) that uses ***self*** and Shiny, a web application framework using R, to allow users to predict a value of a house in Cupertino, California, where Apple's headquarter (HQ) is located.

You can see a live demo of this application at:

## About Me
I am currently a R&D Scrum Master/Project Lead for Mass Spectrometry Software Development at Agilent Technologies in Santa Clara, CA. I graduated with a Bachelor and Master of Science in Engineering from Johns Hopkins University. I have published several publications in the realm of Engineering and Biology.

I have deep interest in Data Science and its applications for Metabolomics, Genomics and Healthcare. In addition to my work and personal hobbies, I also teach developers and engineers in Silicon Valley Machine Learning using R. I enjoy teaching as it is a great way to meet myraid professionals from junior developers to senior directors in the valley and it is one of the best ways to learn.

## As Instructor
![][image1]
![][image2]
![][image3]
![][image4]

[image1]: https://github.com/admurali/self/blob/master/markdown-images/IMG_2549.JPG?raw=true "Training 1"
[image2]: https://github.com/admurali/self/blob/master/markdown-images/IMG_2567.JPG?raw=true "Training 2"
[image3]: https://github.com/admurali/self/blob/master/markdown-images/IMG_2568.JPG?raw=true "Training 3"
[image4]: https://github.com/admurali/self/blob/master/markdown-images/IMG_2575.JPG?raw=true "Training 4"


text:
package org.hscieripple.patient.consent.model;

import java.util.Date;

/**
 */
public class ConsentSummary {

    private String source;
    private String sourceId;
    private boolean optIn;
    private Date dateCreated;

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public boolean isOptIn() {
        return optIn;
    }

    public void setOptIn(boolean optIn) {
        this.optIn = optIn;
    }

    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }
}


text:
import type { ExternalMethods } from './types'

const reset: ExternalMethods['reset'] = async (pool, readModelName) => {
  const {
    PassthroughError,
    inlineLedgerRunQuery,
    dropReadModel,
    tablePrefix,
    fullJitter,
    escapeId,
    escapeStr,
  } = pool

  const ledgerTableNameAsId = escapeId(`${tablePrefix}__LEDGER__`)
  try {
    pool.activePassthrough = true
    while (true) {
      try {
        await inlineLedgerRunQuery(
          `BEGIN IMMEDIATE;

        UPDATE ${ledgerTableNameAsId}
        SET "Cursor" = NULL,
        "SuccessEvent" = NULL,
        "FailedEvent" = NULL,
        "Errors" = NULL,
        "IsPaused" = 1
        WHERE "EventSubscriber" = ${escapeStr(readModelName)};

        COMMIT;
      `,
          true
        )

        break
      } catch (error) {
        if (!(error instanceof PassthroughError)) {
          throw error
        }

        try {
          await inlineLedgerRunQuery(`ROLLBACK`, true)
        } catch (err) {
          if (!(err instanceof PassthroughError)) {
            throw err
          }
        }

        await fullJitter(0)
      }
    }

    await dropReadModel(pool, readModelName)

    while (true) {
      try {
        await inlineLedgerRunQuery(
          `BEGIN IMMEDIATE;

         UPDATE ${ledgerTableNameAsId}
         SET "IsPaused" = 0
         WHERE "EventSubscriber" = ${escapeStr(readModelName)};

         COMMIT;
      `,
          true
        )

        break
      } catch (error) {
        if (!(error instanceof PassthroughError)) {
          throw error
        }

        try {
          await inlineLedgerRunQuery(`ROLLBACK`, true)
        } catch (err) {
          if (!(err instanceof PassthroughError)) {
            throw err
          }
        }

        await fullJitter(0)
      }
    }
  } finally {
    pool.activePassthrough = false
  }
}

export default reset


text:
package com.ilivoo.netty.share;

import java.io.Serializable;

public abstract class BaseMessage implements Serializable{

	private static final long serialVersionUID = 1L;

	private int index;

	protected BaseMessage(int index){
		this.index = index;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
}


text:
package com.morse.service;

import java.util.Map;
import java.util.Set;

/**
 * Morse Decipher interface.
 *
 * @author csanchez
 */
public interface Decipher {

    /**
     * Returns all combinations for the input morse message".
     *
     * @param morseLib Map with morse words. The key is the morse value  and the value is the text.
     * @param msg The message to decipher.
     * @return Set<String> with all combinations
     */
    Set<String> decipherer(Map<String, String> morseLib, String msg);

}


text:
.class Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;
.super Ljava/lang/Object;
.source "MediaBrowserCompat.java"

# interfaces
.implements Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImpl;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/support/v4/media/MediaBrowserCompat;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "MediaBrowserImplApi21"
.end annotation

# instance fields
.field protected mBrowserObj:Ljava/lang/Object;

.field protected mHandler:Landroid/os/Handler;

.field protected mMessenger:Landroid/os/Messenger;

# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/content/ComponentName;Landroid/support/v4/media/MediaBrowserCompat$ConnectionCallback;Landroid/os/Bundle;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "serviceComponent"    # Landroid/content/ComponentName;
    .param p3, "callback"    # Landroid/support/v4/media/MediaBrowserCompat$ConnectionCallback;
    .param p4, "rootHints"    # Landroid/os/Bundle;

    .prologue
    .line 1097
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 1095
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mHandler:Landroid/os/Handler;

    .line 1100
    iget-object v0, p3, Landroid/support/v4/media/MediaBrowserCompat$ConnectionCallback;->mConnectionCallbackObj:Ljava/lang/Object;

    .line 1099
    invoke-static {p1, p2, v0, p4}, Landroid/support/v4/media/MediaBrowserCompatApi21;->createBrowser(Landroid/content/Context;Landroid/content/ComponentName;Ljava/lang/Object;Landroid/os/Bundle;)Ljava/lang/Object;

    move-result-object v0

    iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    .line 1098
    return-void
.end method

.method private sendRequest(ILjava/lang/Object;Landroid/os/Bundle;Landroid/os/Messenger;)V
    .locals 2
    .param p1, "what"    # I
    .param p2, "obj"    # Ljava/lang/Object;
    .param p3, "data"    # Landroid/os/Bundle;
    .param p4, "cbMessenger"    # Landroid/os/Messenger;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 1222
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object v0

    .line 1223
    .local v0, "msg":Landroid/os/Message;
    iput p1, v0, Landroid/os/Message;->what:I

    .line 1224
    const/4 v1, 0x1

    iput v1, v0, Landroid/os/Message;->arg1:I

    .line 1225
    iput-object p2, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1226
    invoke-virtual {v0, p3}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 1227
    iput-object p4, v0, Landroid/os/Message;->replyTo:Landroid/os/Messenger;

    .line 1228
    iget-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mMessenger:Landroid/os/Messenger;

    invoke-virtual {v1, v0}, Landroid/os/Messenger;->send(Landroid/os/Message;)V

    .line 1221
    return-void
.end method

# virtual methods
.method public connect()V
    .locals 1

    .prologue
    .line 1105
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0}, Landroid/support/v4/media/MediaBrowserCompatApi21;->connect(Ljava/lang/Object;)V

    .line 1104
    return-void
.end method

.method public disconnect()V
    .locals 1

    .prologue
    .line 1110
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0}, Landroid/support/v4/media/MediaBrowserCompatApi21;->disconnect(Ljava/lang/Object;)V

    .line 1109
    return-void
.end method

.method public getExtras()Landroid/os/Bundle;
    .locals 1
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .prologue
    .line 1132
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0}, Landroid/support/v4/media/MediaBrowserCompatApi21;->getExtras(Ljava/lang/Object;)Landroid/os/Bundle;

    move-result-object v0

    return-object v0
.end method

.method public getItem(Ljava/lang/String;Landroid/support/v4/media/MediaBrowserCompat$ItemCallback;)V
    .locals 7
    .param p1, "mediaId"    # Ljava/lang/String;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .param p2, "cb"    # Landroid/support/v4/media/MediaBrowserCompat$ItemCallback;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    .prologue
    .line 1155
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 1156
    new-instance v5, Ljava/lang/IllegalArgumentException;

    const-string/jumbo v6, "mediaId is empty."

    invoke-direct {v5, v6}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v5

    .line 1158
    :cond_0
    if-nez p2, :cond_1

    .line 1159
    new-instance v5, Ljava/lang/IllegalArgumentException;

    const-string/jumbo v6, "cb is null."

    invoke-direct {v5, v6}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v5

    .line 1161
    :cond_1
    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v5}, Landroid/support/v4/media/MediaBrowserCompatApi21;->isConnected(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    .line 1162
    const-string/jumbo v5, "MediaBrowserCompat"

    const-string/jumbo v6, "Not connected, unable to retrieve the MediaItem."

    invoke-static {v5, v6}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1163
    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mHandler:Landroid/os/Handler;

    new-instance v6, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$1;

    invoke-direct {v6, p0, p2, p1}, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$1;-><init>(Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;Landroid/support/v4/media/MediaBrowserCompat$ItemCallback;Ljava/lang/String;)V

    invoke-virtual {v5, v6}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 1169
    return-void

    .line 1171
    :cond_2
    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mMessenger:Landroid/os/Messenger;

    if-nez v5, :cond_3

    .line 1172
    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v5}, Landroid/support/v4/media/MediaBrowserCompatApi21;->getExtras(Ljava/lang/Object;)Landroid/os/Bundle;

    move-result-object v2

    .line 1173
    .local v2, "extras":Landroid/os/Bundle;
    const-string/jumbo v5, "extra_messenger"

    invoke-static {v2, v5}, Landroid/support/v4/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;

    move-result-object v4

    .line 1174
    .local v4, "serviceBinder":Landroid/os/IBinder;
    if-eqz v4, :cond_3

    .line 1175
    new-instance v5, Landroid/os/Messenger;

    invoke-direct {v5, v4}, Landroid/os/Messenger;-><init>(Landroid/os/IBinder;)V

    iput-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mMessenger:Landroid/os/Messenger;

    .line 1178
    .end local v2    # "extras":Landroid/os/Bundle;
    .end local v4    # "serviceBinder":Landroid/os/IBinder;
    :cond_3
    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mMessenger:Landroid/os/Messenger;

    if-nez v5, :cond_4

    .line 1179
    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mHandler:Landroid/os/Handler;

    new-instance v6, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$2;

    invoke-direct {v6, p0, p2}, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$2;-><init>(Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;Landroid/support/v4/media/MediaBrowserCompat$ItemCallback;)V

    invoke-virtual {v5, v6}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 1186
    return-void

    .line 1188
    :cond_4
    new-instance v3, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$3;

    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mHandler:Landroid/os/Handler;

    invoke-direct {v3, p0, v5, p2, p1}, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$3;-><init>(Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;Landroid/os/Handler;Landroid/support/v4/media/MediaBrowserCompat$ItemCallback;Ljava/lang/String;)V

    .line 1206
    .local v3, "receiver":Landroid/support/v4/os/ResultReceiver;
    :try_start_0
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 1207
    .local v0, "data":Landroid/os/Bundle;
    const-string/jumbo v5, "data_result_receiver"

    invoke-virtual {v0, v5, v3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 1208
    const/4 v5, 0x5

    const/4 v6, 0x0

    invoke-direct {p0, v5, p1, v0, v6}, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->sendRequest(ILjava/lang/Object;Landroid/os/Bundle;Landroid/os/Messenger;)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1154
    .end local v0    # "data":Landroid/os/Bundle;
    :goto_0
    return-void

    .line 1209
    :catch_0
    move-exception v1

    .line 1210
    .local v1, "e":Landroid/os/RemoteException;
    const-string/jumbo v5, "MediaBrowserCompat"

    const-string/jumbo v6, "Remote error getting media item."

    invoke-static {v5, v6}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1211
    iget-object v5, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mHandler:Landroid/os/Handler;

    new-instance v6, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$4;

    invoke-direct {v6, p0, p2, p1}, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21$4;-><init>(Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;Landroid/support/v4/media/MediaBrowserCompat$ItemCallback;Ljava/lang/String;)V

    invoke-virtual {v5, v6}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method

.method public getRoot()Ljava/lang/String;
    .locals 1
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation

    .prologue
    .line 1126
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0}, Landroid/support/v4/media/MediaBrowserCompatApi21;->getRoot(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getServiceComponent()Landroid/content/ComponentName;
    .locals 1

    .prologue
    .line 1120
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0}, Landroid/support/v4/media/MediaBrowserCompatApi21;->getServiceComponent(Ljava/lang/Object;)Landroid/content/ComponentName;

    move-result-object v0

    return-object v0
.end method

.method public getSessionToken()Landroid/support/v4/media/session/MediaSessionCompat$Token;
    .locals 1
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation

    .prologue
    .line 1139
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0}, Landroid/support/v4/media/MediaBrowserCompatApi21;->getSessionToken(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 1138
    invoke-static {v0}, Landroid/support/v4/media/session/MediaSessionCompat$Token;->fromToken(Ljava/lang/Object;)Landroid/support/v4/media/session/MediaSessionCompat$Token;

    move-result-object v0

    return-object v0
.end method

.method public isConnected()Z
    .locals 1

    .prologue
    .line 1115
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0}, Landroid/support/v4/media/MediaBrowserCompatApi21;->isConnected(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public subscribe(Ljava/lang/String;Landroid/support/v4/media/MediaBrowserCompat$SubscriptionCallback;)V
    .locals 2
    .param p1, "parentId"    # Ljava/lang/String;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .param p2, "callback"    # Landroid/support/v4/media/MediaBrowserCompat$SubscriptionCallback;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    .prologue
    .line 1145
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    iget-object v1, p2, Landroid/support/v4/media/MediaBrowserCompat$SubscriptionCallback;->mSubscriptionCallbackObj:Ljava/lang/Object;

    .line 1144
    invoke-static {v0, p1, v1}, Landroid/support/v4/media/MediaBrowserCompatApi21;->subscribe(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V

    .line 1143
    return-void
.end method

.method public unsubscribe(Ljava/lang/String;)V
    .locals 1
    .param p1, "parentId"    # Ljava/lang/String;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    .prologue
    .line 1150
    iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$MediaBrowserImplApi21;->mBrowserObj:Ljava/lang/Object;

    invoke-static {v0, p1}, Landroid/support/v4/media/MediaBrowserCompatApi21;->unsubscribe(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1149
    return-void
.end method


text:
bsheridan12.github.io
=====================


text:
from __future__ import unicode_literals

import factory
from faker import Faker

from machina.core.db.models import get_model
from machina.test.factories.conversation import PostFactory

faker = Faker()

Attachment = get_model('forum_attachments', 'Attachment')

class AttachmentFactory(factory.DjangoModelFactory):
    post = factory.SubFactory(PostFactory)
    comment = faker.text(max_nb_chars=255)

    class Meta:
        model = Attachment


text:
#ifndef __U_BOOT_H__
#define __U_BOOT_H__

/*
 * Board information passed to Linux kernel from U-Boot
 *
 * include/asm-ppc/u-boot.h
 */

#ifdef CONFIG_SYS_GENERIC_BOARD
/* Use the generic board which requires a unified bd_info */
#include <asm-generic/u-boot.h>
#else

#ifndef __ASSEMBLY__

typedef struct bd_info {
	unsigned long bi_memstart;	/* start of DRAM memory */
	phys_size_t bi_memsize;		/* size  of DRAM memory in bytes */
	unsigned long bi_flashstart;	/* start of FLASH memory */
	unsigned long bi_flashsize;	/* size  of FLASH memory */
	unsigned long bi_flashoffset;	/* reserved area for startup monitor */
	unsigned long bi_sramstart;	/* start of SRAM memory */
	unsigned long bi_sramsize;	/* size  of SRAM memory */
	unsigned long bi_mbar_base;	/* base of internal registers */
	unsigned long bi_bootflags;	/* boot / reboot flag (for LynxOS) */
	unsigned long bi_boot_params;	/* where this board expects params */
	unsigned short bi_ethspeed;	/* Ethernet speed in Mbps */
	unsigned long bi_intfreq;	/* Internal Freq, in MHz */
	unsigned long bi_busfreq;	/* Bus Freq, in MHz */
#ifdef CONFIG_PCI
	unsigned long bi_pcifreq;	/* pci Freq in MHz */
#endif
#ifdef CONFIG_EXTRA_CLOCK
	unsigned long bi_inpfreq;	/* input Freq in MHz */
	unsigned long bi_vcofreq;	/* vco Freq in MHz */
	unsigned long bi_flbfreq;	/* Flexbus Freq in MHz */
#endif
} bd_t;

#endif				/* __ASSEMBLY__ */

#endif				/* !CONFIG_SYS_GENERIC_BOARD */

/* For image.h:image_check_target_arch() */
#define IH_ARCH_DEFAULT IH_ARCH_M68K

#endif				/* __U_BOOT_H__ */


text:
/*	$NetBSD: mcontext.h,v 1.3 2003/10/08 22:43:01 thorpej Exp $	*/

/*-
 * Copyright (c) 2001 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by Klaus Klein.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *        This product includes software developed by the NetBSD
 *        Foundation, Inc. and its contributors.
 * 4. Neither the name of The NetBSD Foundation nor the names of its
 *    contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef _ALPHA_MCONTEXT_H_
#define _ALPHA_MCONTEXT_H_

/*
 * General register state (important: 0-31 maps to `struct reg')
 */
#define _NGREG		34	/* 0-31, PC, PS */
typedef	unsigned long	__greg_t;
typedef	__greg_t	__gregset_t[_NGREG];

/* Convenience synonyms */
#define	_REG_V0		0
#define	_REG_T0		1
#define	_REG_T1		2
#define	_REG_T2		3
#define	_REG_T3		4
#define	_REG_T4		5
#define	_REG_T5		6
#define	_REG_T6		7
#define	_REG_T7		8
#define	_REG_S0		9
#define	_REG_S1		10
#define	_REG_S2		11
#define	_REG_S3		12
#define	_REG_S4		13
#define	_REG_S5		14
#define	_REG_S6		15
#define	_REG_A0		16
#define	_REG_A1		17
#define	_REG_A2		18
#define	_REG_A3		19
#define	_REG_A4		20
#define	_REG_A5		21
#define	_REG_T8		22
#define	_REG_T9		23
#define	_REG_T10	24
#define	_REG_T11	25
#define	_REG_RA		26
#define	_REG_T12	27
#define	_REG_PV		27
#define	_REG_AT		28
#define	_REG_GP		29
#define	_REG_SP		30
#define	_REG_UNIQUE	31
#define	_REG_PC		32
#define	_REG_PS		33

/*
 * Floating point register state (important: maps to `struct fpreg')
 */
typedef struct {
	union {
		unsigned long	__fp_regs[32];
		double		__fp_dregs[32];
	}		__fp_fr;
	unsigned long	__fp_fpcr;
} __fpregset_t;

typedef struct {
	__gregset_t	__gregs;
	__fpregset_t	__fpregs;
} mcontext_t;

/* Machine-dependent uc_flags */
#define _UC_UNIQUE	0x20	/* valid process-unique value in _REG_UNIQUE */

#define _UC_MACHINE_SP(uc)	((uc)->uc_mcontext.__gregs[_REG_SP])
#define _UC_MACHINE_PC(uc)	((uc)->uc_mcontext.__gregs[_REG_PC])
#define _UC_MACHINE_INTRV(uc)	((uc)->uc_mcontext.__gregs[_REG_V0])

#define	_UC_MACHINE_SET_PC(uc, pc)	_UC_MACHINE_PC(uc) = (pc)

#endif	/* !_ALPHA_MCONTEXT_H_ */


text:
#include <defs.h>
#include <stdio.h>
#include <console.h>
#include <unistd.h>
/* HIGH level console I/O */

/* *
 * cputch - writes a single character @c to stdout, and it will
 * increace the value of counter pointed by @cnt.
 * */
static void
cputch(int c, int *cnt) {
    cons_putc(c);
    (*cnt) ++;
}

/* *
 * vcprintf - format a string and writes it to stdout
 *
 * The return value is the number of characters which would be
 * written to stdout.
 *
 * Call this function if you are already dealing with a va_list.
 * Or you probably want cprintf() instead.
 * */
int
vcprintf(const char *fmt, va_list ap) {
    int cnt = 0;
    vprintfmt((void*)cputch, NO_FD, &cnt, fmt, ap);
    return cnt;
}

/* *
 * cprintf - formats a string and writes it to stdout
 *
 * The return value is the number of characters which would be
 * written to stdout.
 * */
int
cprintf(const char *fmt, ...) {
    va_list ap;
    int cnt;
    va_start(ap, fmt);
    cnt = vcprintf(fmt, ap);
    va_end(ap);
    return cnt;
}

/* cputchar - writes a single character to stdout */
void
cputchar(int c) {
    cons_putc(c);
}

/* *
 * cputs- writes the string pointed by @str to stdout and
 * appends a newline character.
 * */
int
cputs(const char *str) {
    int cnt = 0;
    char c;
    while ((c = *str ++) != '\0') {
        cputch(c, &cnt);
    }
    cputch('\n', &cnt);
    return cnt;
}

/* getchar - reads a single non-zero character from stdin */
int
getchar(void) {
    int c;
    while ((c = cons_getc()) == 0)
        /* do nothing */;
    return c;
}


text:
// See LICENSE.txt for license information.

namespace VictorBush.Ego.NefsLib.Progress
{
    /// <summary>
    /// Progress report information.
    /// </summary>
    public class NefsProgressEventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="NefsProgressEventArgs"/> class.
        /// </summary>
        /// <param name="progress">Current progress.</param>
        /// <param name="message">Current message.</param>
        /// <param name="subMessage">Current sub-message.</param>
        public NefsProgressEventArgs(float progress, string message, string subMessage)
        {
            this.Progress = progress;
            this.Message = message;
            this.SubMessage = subMessage;
        }

        /// <summary>
        /// Current status message.
        /// </summary>
        public string Message { get; }

        /// <summary>
        /// Percent complete in range [0.0, 1.0].
        /// </summary>
        public float Progress { get; }

        /// <summary>
        /// Current status sub-message.
        /// </summary>
        public string SubMessage { get; }
    }
}


text:
jstag/core/page-analysis

## Functions

pageAnalysis()

## jstag/core/page-analysis

## pageAnalysis()
**Kind**: global function
**Todo**

- [ ] add a description


text:
package com.carlo;

import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class KafkaTest {

}


text:
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <assert.h>

#include <vlc/libvlc.h>

#include "libvlc_internal.h"
#include "event_internal.h"

struct queue_elmt {
    libvlc_event_listener_t listener;
    libvlc_event_t event;
    struct queue_elmt * next;
};

struct libvlc_event_async_queue {
    struct queue_elmt *first_elmt, *last_elmt;
    vlc_mutex_t lock;
    vlc_cond_t signal;
    vlc_thread_t thread;
    bool is_idle;
    vlc_cond_t signal_idle;
    vlc_threadvar_t is_asynch_dispatch_thread_var;
};

/*
 * Utilities
 */

static void*  event_async_loop(void * arg);

static inline struct libvlc_event_async_queue * queue(libvlc_event_manager_t * p_em)
{
    return p_em->async_event_queue;
}

static inline bool is_queue_initialized(libvlc_event_manager_t * p_em)
{
    return queue(p_em) != NULL;
}

static inline bool current_thread_is_asynch_thread(libvlc_event_manager_t * p_em)
{
    return vlc_threadvar_get(queue(p_em)->is_asynch_dispatch_thread_var)
            != NULL;
}

/* Lock must be held */
static void push(libvlc_event_manager_t * p_em,
                 libvlc_event_listener_t * listener, libvlc_event_t * event)
{
    struct queue_elmt * elmt = malloc(sizeof(struct queue_elmt));
    elmt->listener = *listener;
    elmt->event = *event;
    elmt->next = NULL;

    /* Append to the end of the queue */
    if(!queue(p_em)->first_elmt)
        queue(p_em)->first_elmt = elmt;
    else
        queue(p_em)->last_elmt->next = elmt;
    queue(p_em)->last_elmt = elmt;
}

static inline void queue_lock(libvlc_event_manager_t * p_em)
{
    vlc_mutex_lock(&queue(p_em)->lock);
}

static inline void queue_unlock(libvlc_event_manager_t * p_em)
{
    vlc_mutex_unlock(&queue(p_em)->lock);
}

/* Lock must be held */
static bool pop(libvlc_event_manager_t * p_em,
                libvlc_event_listener_t * listener, libvlc_event_t * event)
{
    if(!queue(p_em)->first_elmt)
        return false; /* No first_elmt */

    struct queue_elmt * elmt = queue(p_em)->first_elmt;
    *listener = elmt->listener;
    *event = elmt->event;

    queue(p_em)->first_elmt = elmt->next;
    if( !elmt->next ) queue(p_em)->last_elmt=NULL;

    free(elmt);
    return true;
}

/* Lock must be held */
static void pop_listener(libvlc_event_manager_t * p_em, libvlc_event_listener_t * listener)
{
    struct queue_elmt * iter = queue(p_em)->first_elmt;
    struct queue_elmt * prev = NULL;
    while (iter) {
        if(listeners_are_equal(&iter->listener, listener))
        {
            struct queue_elmt * to_delete = iter;
            if(!prev)
                queue(p_em)->first_elmt = to_delete->next;
            else
                prev->next = to_delete->next;
            iter = to_delete->next;
            free(to_delete);
        }
        else {
            prev = iter;
            iter = iter->next;
        }
    }
    queue(p_em)->last_elmt=prev;
}

/**************************************************************************
 *       libvlc_event_async_fini (internal) :
 *
 * Destroy what might have been created by.
 **************************************************************************/
void
libvlc_event_async_fini(libvlc_event_manager_t * p_em)
{
    if(!is_queue_initialized(p_em)) return;

    if(current_thread_is_asynch_thread(p_em))
    {
        fprintf(stderr, "*** Error: releasing the last reference of the observed object from its callback thread is not (yet!) supported\n");
        abort();
    }

    vlc_thread_t thread = queue(p_em)->thread;
    if(thread)
    {
        vlc_cancel(thread);
        vlc_join(thread, NULL);
    }

    vlc_mutex_destroy(&queue(p_em)->lock);
    vlc_cond_destroy(&queue(p_em)->signal);
    vlc_cond_destroy(&queue(p_em)->signal_idle);
    vlc_threadvar_delete(&queue(p_em)->is_asynch_dispatch_thread_var);

    struct queue_elmt * iter = queue(p_em)->first_elmt;
    while (iter) {
        struct queue_elmt * elemt_to_delete = iter;
        iter = iter->next;
        free(elemt_to_delete);
    }

    free(queue(p_em));
}

/**************************************************************************
 *       libvlc_event_async_init (private) :
 *
 * Destroy what might have been created by.
 **************************************************************************/
static void
libvlc_event_async_init(libvlc_event_manager_t * p_em)
{
    p_em->async_event_queue = calloc(1, sizeof(struct libvlc_event_async_queue));

    int error = vlc_threadvar_create(&queue(p_em)->is_asynch_dispatch_thread_var, NULL);
    assert(!error);

    vlc_mutex_init(&queue(p_em)->lock);
    vlc_cond_init(&queue(p_em)->signal);
    vlc_cond_init(&queue(p_em)->signal_idle);

    error = vlc_clone (&queue(p_em)->thread, event_async_loop, p_em, VLC_THREAD_PRIORITY_LOW);
    if(error)
    {
        free(p_em->async_event_queue);
        p_em->async_event_queue = NULL;
        return;
    }

}

/**************************************************************************
 *       libvlc_event_async_ensure_listener_removal (internal) :
 *
 * Make sure no more message will be issued to the listener.
 **************************************************************************/
void
libvlc_event_async_ensure_listener_removal(libvlc_event_manager_t * p_em, libvlc_event_listener_t * listener)
{
    if(!is_queue_initialized(p_em)) return;

    queue_lock(p_em);
    pop_listener(p_em, listener);

    // Wait for the asynch_loop to have processed all events.
    if(!current_thread_is_asynch_thread(p_em))
    {
        while(!queue(p_em)->is_idle)
            vlc_cond_wait(&queue(p_em)->signal_idle, &queue(p_em)->lock);
    }
    queue_unlock(p_em);
}

/**************************************************************************
 *       libvlc_event_async_dispatch (internal) :
 *
 * Send an event in an asynchronous way.
 **************************************************************************/
void
libvlc_event_async_dispatch(libvlc_event_manager_t * p_em, libvlc_event_listener_t * listener, libvlc_event_t * event)
{
    // We do a lazy init here, to prevent constructing the thread when not needed.
    vlc_mutex_lock(&p_em->object_lock);
    if(!queue(p_em))
        libvlc_event_async_init(p_em);
    vlc_mutex_unlock(&p_em->object_lock);

    queue_lock(p_em);
    push(p_em, listener, event);
    vlc_cond_signal(&queue(p_em)->signal);
    queue_unlock(p_em);
}

/**************************************************************************
 *       event_async_loop (private) :
 *
 * Send queued events.
 **************************************************************************/
static void * event_async_loop(void * arg)
{
    libvlc_event_manager_t * p_em = arg;
    libvlc_event_listener_t listener;
    libvlc_event_t event;

    vlc_threadvar_set(queue(p_em)->is_asynch_dispatch_thread_var, p_em);

    queue_lock(p_em);
    while (true) {
        int has_listener = pop(p_em, &listener, &event);

        if (has_listener)
        {
            queue_unlock(p_em);
            listener.pf_callback(&event, listener.p_user_data); // This might edit the queue
            queue_lock(p_em);
        }
        else
        {
            queue(p_em)->is_idle = true;

            mutex_cleanup_push(&queue(p_em)->lock);
            vlc_cond_broadcast(&queue(p_em)->signal_idle); // We'll be idle
            vlc_cond_wait(&queue(p_em)->signal, &queue(p_em)->lock);
            vlc_cleanup_pop();

            queue(p_em)->is_idle = false;
        }
    }
    queue_unlock(p_em);
    return NULL;
}


text:
<?php

namespace Jacoz\Symfony\ApiBundle\Services\Search;

trait SearchQueryBuilderHelperTrait
{
    /**
     * @var SearchQueryBuilderHelper
     */
    protected $searchQueryBuilderHelper;

    /**
     * @return SearchQueryBuilderHelper
     */
    public function getSearchQueryBuilderHelper()
    {
        return $this->searchQueryBuilderHelper;
    }

    /**
     * @param SearchQueryBuilderHelper $searchQueryBuilderHelper
     */
    public function setSearchQueryBuilderHelper(SearchQueryBuilderHelper $searchQueryBuilderHelper)
    {
        $this->searchQueryBuilderHelper = $searchQueryBuilderHelper;
    }
}


text:
import webpack from 'webpack'
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin'
import config from './index'
import getClientEnvironment from './env'

// Get environment variables to inject into our app.
const env = getClientEnvironment(config.publicUrl)

// Assert this just to be safe.
if (env['process.env'].NODE_ENV !== '"development"') {
  throw new Error('Development builds must have NODE_ENV=development.')
}

const webpackConfig = {
  // You may want 'eval' instead if you prefer to see the compiled output in DevTools.
  // See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
  devtool: 'cheap-module-source-map',
  entry: [
    `webpack-hot-middleware/client`,
    // We ship a few polyfills by default:
    require.resolve('./polyfills'),
    // Finally, this is your app's code:
    config.path.entry
    // We include the app code last so that if there is a runtime error during
    // initialization, it doesn't blow up the WebpackDevServer client, and
    // changing JS code would still trigger a refresh.
  ],
  output: {
    // Next line is not used in dev but WebpackDevServer crashes without it:
    path: config.path.build,
    // Add /* filename */ comments to generated require()s in the output.
    pathinfo: true,
    // This does not produce a real file. It's just the virtual path that is
    // served by WebpackDevServer in development. This is the JS bundle
    // containing code from all our entry points, and the Webpack runtime.
    filename: config.webpack.fileName,
    // This is the URL that app is served from. We use "/" in development.
    publicPath: config.webpack.publicPath,
  },
  plugins: [
    new webpack.optimize.OccurenceOrderPlugin(),
    // Makes some environment variables available to the JS code, for example:
    // if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
    new webpack.DefinePlugin(env),
    // This is necessary to emit hot updates.
    new webpack.HotModuleReplacementPlugin(),
    // Watcher doesn't work well if you mistype casing in a path so we use
    // a plugin that prints an error when you attempt to do this.
    // See https://github.com/facebookincubator/create-react-app/issues/240
    new CaseSensitivePathsPlugin(),
    new webpack.NoErrorsPlugin()
  ],
  resolve: {
    extensions: ['', '.js']
  },
  module: {
    // First, run the linter.
    // It's important to do this before Babel processes the JS.
    preLoaders: [
      {
        test: /\.js$/,
        loader: 'eslint-loader',
        include: config.path.src
      }
    ],
    loaders: [
      // Process JS with Babel.
      {
        test: /\.js$/,
        include: config.path.src,
        loader: 'babel',
        query: {
          // This is a feature of `babel-loader` for webpack (not Babel itself).
          // It enables caching results in ./node_modules/.cache/babel-loader/
          // directory for faster rebuilds.
          cacheDirectory: true,
          presets: [
            'latest',
            'react'
          ],
          plugins: [
            // class { handleClick = () => { } }
            'transform-class-properties',
            // The following two plugins use Object.assign directly, instead of Babel's
            // extends helper. Note that this assumes `Object.assign` is available.
            // { ...todo, completed: true }
            ['transform-object-rest-spread', {
              useBuiltIns: true
            }],
            // Transforms JSX
            ['transform-react-jsx', {
              useBuiltIns: true
            }],
            // function* () { yield 42; yield 43; }
            ['transform-regenerator', {
              // Async functions are converted to generators by babel-preset-latest
              async: false
            }],
            // Polyfills the runtime needed for async/await and generators
            ['transform-runtime', {
              helpers: false,
              polyfill: false,
              regenerator: true
            }],
            'transform-react-jsx-source',
            'transform-react-jsx-self'
          ]
        }
      }
    ]
  }
}

export default webpackConfig


text:
#!/usr/bin/env node

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//   /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// create-fitbit-app is installed globally on people's computers. This means
// that it is extremely difficult to have them upgrade the version and
// because there's only one global version installed, it is very prone to
// breaking changes.
//
// The only job of create-fitbit-app is to init the repository and then
// forward all the commands to the local version of create-fitbit-app.
//
// If you need to add a new command, please add it to the scripts/ folder.
//
// The only reason to modify this file is to add more warnings and
// troubleshooting information for the `create-fitbit-app` command.
//
// Do not make breaking changes! We absolutely don't want to have to
// tell people to update their global version of create-fitbit-app.
//
// Also be careful with new language features.
// This file must work on Node 0.10+.
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//   /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

'use strict';

var chalk = require('chalk');

var currentNodeVersion = process.versions.node;
var semver = currentNodeVersion.split('.');
var major = semver[0];

if (major < 8) {
  console.error(
    chalk.red(
      'You are running Node ' +
        currentNodeVersion +
        '.\n' +
        'Fitbit SDK requires Node 8 or higher. \n' +
        'Please update your version of Node.'
    )
  );
  process.exit(1);
}

require('./createFitbitApp');


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

import static org.testng.AssertJUnit.assertEquals;

import java.io.File;

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

import com.evolveum.midpoint.model.api.CollectionStats;
import com.evolveum.midpoint.model.api.authentication.CompiledObjectCollectionView;
import com.evolveum.midpoint.model.api.authentication.CompiledUserProfile;
import com.evolveum.midpoint.model.intest.AbstractInitializedModelIntegrationTest;
import com.evolveum.midpoint.model.test.asserter.ObjectCollectionViewAsserter;
import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.prism.query.ObjectFilter;
import com.evolveum.midpoint.prism.query.ObjectQuery;
import com.evolveum.midpoint.prism.util.PrismTestUtil;
import com.evolveum.midpoint.schema.SearchResultList;
import com.evolveum.midpoint.schema.constants.SchemaConstants;
import com.evolveum.midpoint.schema.result.OperationResult;
import com.evolveum.midpoint.schema.util.ObjectQueryUtil;
import com.evolveum.midpoint.security.api.MidPointPrincipal;
import com.evolveum.midpoint.task.api.Task;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnforcementType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.RichHyperlinkType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.UserType;

/**
 * @author Radovan Semancik
 *
 */
@ContextConfiguration(locations = {"classpath:ctx-model-intest-test-main.xml"})
@DirtiesContext(classMode = ClassMode.AFTER_CLASS)
public class AbstractArchetypesTest extends AbstractInitializedModelIntegrationTest {

    public static final File TEST_DIR = new File("src/test/resources/archetypes");

    public static final File SYSTEM_CONFIGURATION_ARCHETYPES_FILE = new File(TEST_DIR, "system-configuration-archetypes.xml");

    public static final String VIEW_ALL_EMPLOYEES_NAME = "all-employees";
    public static final String VIEW_ACTIVE_EMPLOYEES_IDENTIFIER = "active-employees";
    public static final String VIEW_BUSINESS_ROLES_IDENTIFIER = "business-roles-view";
    public static final String VIEW_BUSINESS_ROLES_LABEL = "Business";

    public static final File ARCHETYPE_TEST_FILE = new File(TEST_DIR, "archetype-test.xml");
    protected static final String ARCHETYPE_TEST_OID = "a8df34a8-f6f0-11e8-b98e-eb03652d943f";

    public static final File ARCHETYPE_BUSINESS_ROLE_FILE = new File(TEST_DIR, "archetype-business-role.xml");
    protected static final String ARCHETYPE_BUSINESS_ROLE_OID = "018e7340-199a-11e9-ad93-2b136d1c7ecf";
    private static final String ARCHETYPE_BUSINESS_ROLE_ICON_CSS_CLASS = "fe fe-business";
    private static final String ARCHETYPE_BUSINESS_ROLE_ICON_COLOR = "green";

    public static final File ROLE_EMPLOYEE_BASE_FILE = new File(TEST_DIR, "role-employee-base.xml");
    protected static final String ROLE_EMPLOYEE_BASE_OID = "e869d6c4-f6ef-11e8-b51f-df3e51bba129";

    public static final File ROLE_USER_ADMINISTRATOR_FILE = new File(TEST_DIR, "role-user-administrator.xml");
    protected static final String ROLE_USER_ADMINISTRATOR_OID = "6ae02e34-f8b0-11e8-9c40-87e142b606fe";

    public static final File ROLE_BUSINESS_CAPTAIN_FILE = new File(TEST_DIR, "role-business-captain.xml");
    protected static final String ROLE_BUSINESS_CAPTAIN_OID = "9f65f4b6-199b-11e9-a4c1-2f6b7eb1ebae";

    public static final File ROLE_BUSINESS_BOSUN_FILE = new File(TEST_DIR, "role-business-bosun.xml");
    protected static final String ROLE_BUSINESS_BOSUN_OID = "186b29c6-199c-11e9-9acc-3f8cc307573b";

    public static final File COLLECTION_ACTIVE_EMPLOYEES_FILE = new File(TEST_DIR, "collection-active-employees.xml");
    protected static final String COLLECTION_ACTIVE_EMPLOYEES_OID = "f61bcb4a-f8ae-11e8-9f5c-c3e7f27ee878";

    protected static final File COLLECTION_ACTIVE_USERS_FILE = new File(TEST_DIR, "collection-active-users.xml");
    protected static final String COLLECTION_ACTIVE_USERS_OID = "9276c3a6-5790-11e9-a931-efe1b34f25f6";

    protected static final String POLICY_SITUATION_TOO_MANY_INACTIVE_USERS = "http://foo.example.com/policy#tooManyInactiveUsers";

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

    }

    @Override
    protected File getSystemConfigurationFile() {
        return SYSTEM_CONFIGURATION_ARCHETYPES_FILE;
    }

    protected ObjectCollectionViewAsserter<Void> assertObjectCollectionView(CompiledObjectCollectionView view) {
        ObjectCollectionViewAsserter<Void> asserter = new ObjectCollectionViewAsserter<>(view, null, "view");
        initializeAsserter(asserter);
        return asserter;
    }

    protected void assertPercentage(CollectionStats stats, Integer expectedIntPercentage) {
        Float actualPercentage = stats.computePercentage();
        assertFloat("Wrong percentage in stats", expectedIntPercentage, actualPercentage);
    }

    protected void assertPercentage(CollectionStats stats, Float expectedIntPercentage) {
        Float actualPercentage = stats.computePercentage();
        assertFloat("Wrong percentage in stats", expectedIntPercentage, actualPercentage);
    }
}


text:
angular.module('onlineExamPrep.common')
    .service('RoleService', function (DataService, Paths) {
        var path = Paths.api.endpoint + Paths.api.paths.role;

        this.getRoleById = function (roleId) {
            return DataService.get(path + '/' + roleId, roleId);
        };

        this.getRoleCollection = function (pagingParams) {
            return DataService.post(path + '/page', pagingParams);
        };

        this.saveRole = function (role) {
            if (role.id) {
                return DataService.put(path + '/' + role.id, role);
            }
            else {
                return DataService.post(path, role);
            }
        };

        this.deleteRole = function (roleId) {
            return DataService.delete(path + '/' + roleId, roleId);
        };
    });


text:
@implementation SALocationUpdatesListener

#pragma mark inits & dealloc
- (instancetype)init
{
    if (self = [super init])
    {
        self.desiredHorizontalAccuracy  = 100.f;
        self.retryCount                 = 10;
        self.maxAge                     = 5 * 60;
        self.continuousUpdates          = NO;
        self.authorizeAlways            = NO;
        self.failsAuthorizationSilently = NO;
        self.onLocationUpdated          = ^(CLLocation *location) {};
        self.onLocationRetrieved        = ^(CLLocation *location) {};
        self.onLocationUpdatesStopped   = ^(CLLocation *location) {};
        self.onLocationUpdatesResumed   = ^(CLLocation *location) {};
        self.onLocationUpdateFailed     = ^(NSError *error) {};
    }

    return self;
}

@end


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

    const async = require('async');

    const actions    = require('./actions'),
          controller = require('./controller'),
          files      = require('./files'),
          filters    = require('./filters'),
          settings   = require('./settings'),
          sockets    = require('./sockets');

    //NodeBB list of Hooks: https://github.com/NodeBB/NodeBB/wiki/Hooks
    Plugin.hooks = {
        actions: actions,
        filters: filters,
        statics: {
            load: function (params, callback) {
                var router                = params.router,
                    middleware            = params.middleware,
                    controllers           = params.controllers,
                    pluginUri             = '/admin/plugins/points',

                    renderAdmin           = function (req, res, next) {
                        res.render(pluginUri.substring(1), {});
                    },

                    renderOverviewSection = function (req, res, next) {
                        controller.getTopUsers(function (error, payload) {
                            if (error) {
                                return res.status(500).json(error);
                            }
                            res.render('client/points/overview', payload);
                        });
                    };

                router.get(pluginUri, middleware.admin.buildHeader, renderAdmin);
                router.get('/api' + pluginUri, renderAdmin);

                // Overview Page
                router.get('/points', middleware.buildHeader, renderOverviewSection);
                router.get('/api/points', renderOverviewSection);

                async.parallel({
                    settings: async.apply(settings.init),
                    sockets : async.apply(sockets.init),
                    files   : async.apply(files.init)
                }, callback);
            },

            userDelete: function ({uid}, callback) {
                controller.deleteUser(uid, callback);
            }
        }
    };
})(module.exports);


text:
package com.stewsters.util.pathing.twoDimention.shared;

public interface MovementCost2d {
    float getCost(int sx, int sy, int tx, int ty);
}


text:
{% include 'common/migrations.md' %}

If you are using an `AndroidSqliteDriver` you can pass these callbacks in during the driver's creation:

```kotlin
val driver: SqlDriver = AndroidSqliteDriver(
    schema = Database.Schema,
    context = context,
    name = "test.db",
    callback = AndroidSqliteDriver.Callback(
        schema = Database.Schema,
        AfterVersion(3) { database.execute(null, "INSERT INTO test (value) VALUES('hello')", 0) },
    )
)
```


text:
package org.nuprocess.osx;

import java.util.Arrays;
import java.util.List;

import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

/**
 * @author Brett Wooldridge
 */
public class LibKevent
{
    static
    {
        Native.register("c");
    }

    public static native int kqueue();

    public static native int kevent(int kq, Pointer changeList, int nchanges, Pointer eventList, int nevents, TimeSpec timespec);

    public static class TimeSpec extends Structure
    {
        public long tv_sec;
        public long tv_nsec;

        @SuppressWarnings("rawtypes")
        @Override
        protected List getFieldOrder()
        {
            return Arrays.asList("tv_sec", "tv_nsec");
        }
    }
}


text:
A developer's blog, built on top of Laravel. You can find more info on this project on my website (fr).

[View website](http://www.codeur.co/)

## version
0.2


text:
<!DOCTYPE HTML>

<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,gprs-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<link href="{$responseAdmin}/css/H-ui.min.css" rel="stylesheet"
	type="text/css" />
<link href="{$responseAdmin}/css/H-ui.admin.css" rel="stylesheet"
	type="text/css" />
<link href="{$responseAdmin}/lib/icheck/icheck.css" rel="stylesheet"
	type="text/css" />
<link href="{$responseAdmin}/lib/Hui-iconfont/1.0.1/iconfont.css"
	rel="stylesheet" type="text/css" />

<title>添加跑马灯</title>

		<form action="" method="post" class="form form-horizontal" id="form-menu-add">

				*内容:

					<input type="text"   value="" name="Content"  datatype="*" class="input-text" >

				*渠道:

							<select size="1" name="Channel" class="select">
								<option value="0">全服</option>
								<volist name = "catChannel" id = "val">
									<option value="{$val['id']}">{$val['name']}</option>
								</volist>
						    </select>

				*游戏版本:

							<select size="1"  name="Version"  datatype="*"  class="select">
								<option value="" >请选择游戏版本</option>
								<volist name = "Versionlist" id = "val">
									<option value="{$val}">{$val}</option>
								</volist>
						    </select>

				*是否定时发送:

						<input type="radio" id="Timing-1"   onclick="TimingFun(this)"  checked = "true" value="1"  name="Timing">
						否

						<input type="radio"  onclick="TimingFun(this)"  id="Timing-2" value="2" name="Timing">
						是

				*结束时间:

					<input type="text"
						   onfocus="<literal>WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:''})</literal>"
						    value="" name="Btime"
						   class="input-text Wdate" style="width: 150px;">

				*立即发送:

						<input type="radio" id="Status-1" checked = "true" value="1"  name="Status">
						否

						<input type="radio" id="Status-2" value="2" name="Status">
						是

				*权重(越大越高):

					<input type="text"   value="" name="Sort"  datatype="*" class="input-text" >

				备注:

					<textarea  style="width: 100%;" name="Remark"   rows="5" ></textarea>

					<input class="btn btn-primary radius" type="submit" name="submit" value="  提交  ">

		</form>

	<literal>

	</literal>


text:
package com.esri.ges.processor.serviceAreaCalculator;

import java.io.Serializable;

public class SpatialReference implements com.esri.ges.spatial.SpatialReference, Serializable
{
	private static final long serialVersionUID = 1L;
	private final int DEFAULT_WKID = 4326;
	private int wkid;

	public SpatialReference()
	{
	  setWkid(DEFAULT_WKID);
	}

	public SpatialReference(int wkid)
	{
		setWkid(wkid);
	}

	@Override
	public int getWkid()
	{
		return wkid;
	}
	@Override
	public void setWkid(int wkid)
	{
	  try
	  {
	    this.wkid = (com.esri.core.geometry.SpatialReference.create(wkid) != null) ? wkid : DEFAULT_WKID;
	  }
	  catch (IllegalArgumentException e)
	  {
	    this.wkid = DEFAULT_WKID;
	  }
	}

	@Override
	public boolean equals(com.esri.ges.spatial.SpatialReference sr)
	{
		return (sr != null && sr.getWkid() == wkid);
	}
}


text:
package ray.math;

/**
 * This class represents a simple RGB color.
 *
 * There is also a Color class in the java.awt package, but we wanted simplicity
 * and full access to the code.
 *
 * @author ags
 */
public class Color extends Tuple {
    /**
     * Default constructor. Produces black.
     */
    public Color() {
	super(0, 0, 0);
    }

    /**
     * Copy constructor.
     *
     * @param newColor
     *            The color to copy.
     */
    public Color(Color newColor) {
	super(newColor.x, newColor.y, newColor.z);
    }

    /**
     * The explicit constructor.
     *
     * @param newR
     *            The new red value.
     * @param newG
     *            The new green value.
     * @param newB
     *            The new blue value.
     */
    public Color(double newR, double newG, double newB) {
	super(newR, newG, newB);
    }

    /**
     * Sets this color as the product of the pairwise product of this color and
     * the other.
     */
    public Color scale(Color other) {
	x *= other.x;
	y *= other.y;
	z *= other.z;
	return this;
    }

    /**
     * Add a scalar multiple of the other vector to this Vector
     */
    public Color scale(double factor) {
	x *= factor;
	y *= factor;
	z *= factor;
	return this;
    }

    /**
     * Sets this color to the pairwise sum of this color and ths.
     */
    public Color add(Color other) {
	x += other.x;
	y += other.y;
	z += other.z;
	return this;
    }

    /**
     * Add a scalar multiple of the other color to this Color
     */
    public Color scaleAdd(double scale, Color other) {
	x += scale * other.x;
	y += scale * other.y;
	z += scale * other.z;
	return this;
    }

    /**
     * Clamps the each component of this color to between [min,max]
     *
     * @param min
     *            the minimum value
     * @param max
     *            the maximum value
     */
    public Color clamp(double min, double max) {
	x = Math.max(Math.min(x, max), min);
	y = Math.max(Math.min(y, max), min);
	z = Math.max(Math.min(z, max), min);
	return this;
    }

    /**
     * This function returns an int which represents this color. The standard
     * RGB style bit packing is used and is compatible with
     * java.awt.BufferedImage.TYPE_INT_RGB. (i.e., - the low 8 bits, 0-7 are for
     * the blue channel, the next 8 are for the green channel, and the next 8
     * are for the red channel). The highest 8 bits are left untouched.
     *
     * @return An integer representing this color.
     */
    public int toInt() {
	clamp(0, 1);
	// Here we do the dumb thing and simply clamp then scale.
	// The "+ 0.5" is to achieve a "round to nearest" effect
	// since Java float to int casting simply truncates.
	int r = (int) (255.0 * x + 0.5);
	int g = (int) (255.0 * y + 0.5);
	int b = (int) (255.0 * z + 0.5);
	// Bit packing at its finest
	return (r << 16) | (g << 8) | (b << 0);
    }

    /**
     * @see Object#toString()
     */
    @Override
    public String toString() {
	return "[" + x + "," + y + "," + z + "]";
    }
}


text:
package me.F_o_F_1092.TimeVote.PluginManager;

import me.F_o_F_1092.TimeVote.Options;

public class Command {

	String permission;
	String commandString;
	String commandColloredString;
	HelpMessage helpMessage;

	public Command(String commandString, String permission, String helpMessage) {
		this.commandString = commandString;

		this.commandColloredString = Options.msg.get("color.1") + this.commandString.replace("[", Options.msg.get("color.1") + "[" + Options.msg.get("color.2")).replace("(", Options.msg.get("color.1") + "(" + Options.msg.get("color.2")).replace("]", Options.msg.get("color.1") + "]" + Options.msg.get("color.2")).replace(")", Options.msg.get("color.1") + ")" + Options.msg.get("color.2")).replace("|", Options.msg.get("color.1") + "|" + Options.msg.get("color.2"));

		this.permission = permission;

		this.helpMessage = new HelpMessage(this.commandString, this.commandColloredString, helpMessage);
	}

	public String getColoredCommand() {
		return this.commandColloredString;
	}

	public String getCommandString() {
		return this.commandString;
	}

	public String getPermission() {
		return this.permission;
	}

	public HelpMessage getHelpMessage() {
		return this.helpMessage;
	}
}


text:
@interface MASExampleAspectFitView ()
@property UIView *topView;
@property UIView *topInnerView;
@property UIView *bottomView;
@property UIView *bottomInnerView;
@end

@implementation MASExampleAspectFitView

// Designated initializer
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];

    if (self) {

        // Create views
        self.topView = [[UIView alloc] initWithFrame:CGRectZero];
        self.topInnerView = [[UIView alloc] initWithFrame:CGRectZero];
        self.bottomView = [[UIView alloc] initWithFrame:CGRectZero];
        self.bottomInnerView = [[UIView alloc] initWithFrame:CGRectZero];

        // Set background colors
        UIColor *blueColor = [UIColor colorWithRed:0.663 green:0.796 blue:0.996 alpha:1];
        [self.topView setBackgroundColor:blueColor];

        UIColor *lightGreenColor = [UIColor colorWithRed:0.784 green:0.992 blue:0.851 alpha:1];
        [self.topInnerView setBackgroundColor:lightGreenColor];

        UIColor *pinkColor = [UIColor colorWithRed:0.992 green:0.804 blue:0.941 alpha:1];
        [self.bottomView setBackgroundColor:pinkColor];

        UIColor *darkGreenColor = [UIColor colorWithRed:0.443 green:0.780 blue:0.337 alpha:1];
        [self.bottomInnerView setBackgroundColor:darkGreenColor];

        // Layout top and bottom views to each take up half of the window
        [self addSubview:self.topView];
        [self.topView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.and.top.equalTo(self);
        }];

        [self addSubview:self.bottomView];
        [self.bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.and.bottom.equalTo(self);
            make.top.equalTo(self.topView.mas_bottom);
            make.height.equalTo(self.topView);
        }];

        // Inner views are configured for aspect fit with ratio of 3:1
        [self.topView addSubview:self.topInnerView];
        [self.topInnerView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(self.topInnerView.mas_height).multipliedBy(3);

            make.width.and.height.lessThanOrEqualTo(self.topView);
            make.width.and.height.equalTo(self.topView).with.priorityLow();

            make.center.equalTo(self.topView);
        }];

        [self.bottomView addSubview:self.bottomInnerView];
        [self.bottomInnerView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.equalTo(self.bottomInnerView.mas_width).multipliedBy(3);

            make.width.and.height.lessThanOrEqualTo(self.bottomView);
            make.width.and.height.equalTo(self.bottomView).with.priorityLow();

            make.center.equalTo(self.bottomView);
        }];
    }

    return self;
}

@end


text:
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
'use strict';

test(() => {
    let TwoValuedOverflow = 2900; // From web_feature.mojom

    let isCounted = () => internals.isUseCounted(document, TwoValuedOverflow);
    var div = document.createElement('div');

    // Test that other position-using properties do not
    // increment the counter.

    div.style = 'inset-block: auto auto;';
    assert_false(isCounted(),
                 'other properties should not be counted');

    div.style = 'overflow: visible;';
    assert_false(isCounted(),
                 'single value should not be counted');

    div.style = 'overflow: visible visible;';
    assert_true(isCounted(),
                 'two value overflow be counted');
}, 'Two valued overflow syntax is use counted');
</script>


text:
var request = require('../index');
var http = require('http');
var requests = 0;
var assert = require('assert');

var server = http.createServer(function (req, res) {
  requests ++;

  // redirect everything 3 times, no matter what.
  var c = req.headers.cookie;

  if (!c) c = 0;
  else c = +c.split('=')[1] || 0;

  if (c > 3) {
    res.end('ok: '+requests);
    return;
  }

  res.setHeader('set-cookie', 'c=' + (c + 1));
  res.setHeader('location', req.url);
  res.statusCode = 302;
  res.end('try again, i guess\n');
});
server.listen(6767);

request.post({ url: 'http://localhost:6767/foo',
               followAllRedirects: true,
               form: { foo: 'bar' } }, function (er, req, body) {
  if (er) throw er;
  assert.equal(body, 'ok: 5');
  assert.equal(requests, 5);
  console.error('ok - ' + process.version);
  server.close();
});


text:
<?php
// @codingStandardsIgnoreFile
// @codeCoverageIgnoreStart
// this is an autogenerated file - do not edit
spl_autoload_register(
    function($class) {
        static $classes = null;
        if ($classes === null) {
            $classes = array(
                'acme\\rest\\application' => '/Application.php',
                'acme\\rest\\errorhandler' => '/ErrorHandler.php',
                'acme\\rest\\httprequest' => '/HttpRequest.php',
                'acme\\rest\\httprequestinterface' => '/interfaces/HttpRequestInterface.php',
                'acme\\rest\\indexrequesthandler' => '/IndexRequestHandler.php',
                'acme\\rest\\jsonresponse' => '/JsonResponse.php',
                'acme\\rest\\requesthandlerinterface' => '/RequestHandlerInterface.php',
                'acme\\rest\\responseinterface' => '/interfaces/ResponseInterface.php',
                'acme\\rest\\restexception' => '/exceptions/RestException.php',
                'acme\\rest\\route' => '/routing/Route.php',
                'acme\\rest\\router' => '/routing/Router.php',
                'acme\\rest\\routingexception' => '/exceptions/RoutingException.php'
            );
        }
        $cn = strtolower($class);
        if (isset($classes[$cn])) {
            require __DIR__ . $classes[$cn];
        }
    },
    true,
    false
);
// @codeCoverageIgnoreEnd


text:
		<input type="text" placeholder="Column Name" data-id="column_name">
		<input type="text" placeholder="Date Time Format" data-id="column_format">
		Remove

		Add


text:
import {Page, NavParams} from 'ionic-angular';

@Page({
  templateUrl: 'build/pages/session-detail/session-detail.html'
})
export class SessionDetailPage {
  static get parameters(){
    return [[NavParams]];
  }
  constructor(navParams) {
    this.navParams = navParams;
    this.session = navParams.data;
  }
}