text:
\documentclass{parcfd2015}

\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}

\title{PetIBM - A PETSc-based Immersed Boundary Method code}

\author{OLIVIER P. MESNARD$^{*}$, ANUSH KRISHNAN$^{*}$ \\ AND LORENA A. BARBA$^{*}$}

\heading{Olivier P. Mesnard, Anush Krishnan and Lorena A. Barba}

\address{$^{*}$ Mechanical and Aerospace Engineering, The George Washington University\\
Washington, DC, 20052, United-States\\
e-mail: mesnardo@gwu.edu, web page: lorenabarba.com}

\keywords{Immersed Boundary Method, PETSc, flying snake}

\abstract{A new, open-source \texttt{PETSc}-based immersed boundary method code is under development that uses a fully discrete projection formulation. Its initial purpose is to study the three-dimensional flow around an accurate cross-sectional shape of the flying snake species \textit{Chrysopelea paradisi}. We analyze vorticity structures in the wake and explain the enhanced lift generation of the snake at a particular angle of attack.}

\begin{document}
\maketitle

\section{IMMERSED BOUNDARY METHOD}

Immersed boundary methods (IBM) form a class of techniques in computational fluid dynamics where an immersed boundary is represented by a collection of Lagrangian points that do not coincide with the Eulerian grid nodes. They are particularly useful to simulate flows over complex and moving geometries. Simple, structured Cartesian meshes covering the entire physical domain (including the solid region) can be used, requiring low memory storage. The governing equations are solved over the whole domain and the key is finding a way to incorporate the boundary conditions on the immersed surface.

We use the method proposed by Taira and Colonius \cite{Taira_Colonius_2007} in which the momentum equations are augmented by a forcing term that acts as a Lagrange multiplier to bring the fluid to rest in the vicinity of the body surface. The fully-discrete modified Navier-Stokes equations produce an algebraic system that is solved via a projection method by performing a block LU decomposition \cite{Perot_1993}.

\section{PETIBM}

We use the open-source library \texttt{PETSc} \cite{PETSc_webpage_2014} to build the IBM code, taking advantage of its efficient data structures and routines to solve partial differential equations on multi-CPUs. The \texttt{PETSc} data structure \textit{distributed array} allows us to perform a logically Cartesian decomposition, such that nodal values spatially close in the physical domain are stored on the same process, thus, minimizing communications when using finite-difference stencils. Explicit terms of the Navier-Stokes system are stored using \textit{local vectors} that include ghost-cell values while \textit{global vectors} are used in sparse linear algebra routines.

The full code, named \texttt{PetIBM}, is open-source, released under an MIT License and hosted on the version-controlled platform GitHub \cite{PetIBM}.

\section{APPLICATION TO FLYING SNAKES}

We study the aerodynamics of the \textit{Chrysopelea paradisi}, a species of flying snake. Previous experimental work \cite{Holden_et_al_2014} reported enhanced lift force on a snake gliding at angle of attack of $35^o$ for flows with Reynolds number beyond $9000$. Two-dimensional numerical investigations confirmed a spike in the lift curve at this particular angle of attack ($Re=2000$) \cite{Krishnan_et_al_2014}. Using \texttt{PetIBM}, we aim to understand the three-dimensional wake structures responsible for high gliding performances of the paradise tree snake.

\begin{figure}[h!]
\centering
\includegraphics[width=8cm]{images/flying_snake_petibm.png}
\caption{Contours of the spanwise (red and blue) and streamwise (grey) components of the vorticity shed in the wake of an infinitely long cylinder with cross-section of the \textit{Chrysopelea paradisi}.}
\label{flying_snake_petibm}
\end{figure}

\begin{thebibliography}{99}
\bibitem{PETSc_webpage_2014} Balay S., Abhyankar S., Adams M.F., Brown J., Brune P., Buschelman K., Eijkhout V., Gropp W.D., Kaushik D., Knepley M.G., Curfman McInnes L., Rupp K., Smith B.F. and Zhang H. PETSc Web page. \texttt{http://www.mcs.anl.gov/petsc} (2014).
\bibitem{Holden_et_al_2014} Holden D., Socha J.J., Cardwell N.D. and Vlachos P.P. Aerodynamics of the flying snake Chrysopelea paradisi: how a bluff body cross-sectional shape contributes to gliding performance. \textit{J. Exp. Biol.} (2014) \textbf{217}:382--394.
\bibitem{PetIBM} Krishnan A. and Barba L.A. PetIBM - A 3D and parallel PETSc-based immersed boundary method code. \texttt{https://www.github.com/barbagroup/PetIBM}.
\bibitem{Krishnan_et_al_2014} Krishnan A., Socha J.J., Vlachos P.P. and Barba L.A. Lift and wakes of flying snakes. \textit{Phys. Fluids} (2014) \textbf{26(3)}:031901.
\bibitem{Perot_1993} Perot J.B. An analysis of the fractional step method. \textit{J. Comp. Phys.} (1993) \textbf{108(1)}:51--58.
\bibitem{Taira_Colonius_2007} Taira K. and Colonius T. The immersed boundary method: A projection approach. \textit{J. Comp. Phys.} (2007) \textbf{225(2)}:2118--2137.
\end{thebibliography}

\end{document}


text:
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">

    <persistence-unit name="usermanager" transaction-type="RESOURCE_LOCAL">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>

        <!-- Need to add all classes due to JPA persistence file scope problem -->
        <class>jp.kde.lod.jacquet.movielensloader.User</class>

        <properties>
<!--            <property name="hibernate.hbm2ddl.auto" value="create-drop"/> -->
            <property name="hibernate.hbm2ddl.auto" value="update"/>
            <property name="hibernate.showSql" value="true"/>

            <!-- H2 -->
            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
            <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
            <property name="hibernate.connection.username" value="dba" />
            <property name="hibernate.connection.password" value="dba" />
            <property name="hibernate.connection.url" value="jdbc:h2:tcp://localhost/~/media-selector-users"/>

        </properties>
    </persistence-unit>
</persistence>

redpajama_set_name: RedPajamaGithub


text:
using namespace gpos;
using namespace gpdxl;

namespace gpopt
{
	// fwd decl
	class CMDAccessor;

	//---------------------------------------------------------------------------
	//	@class:
	//		CSerializableMDAccessor
	//
	//	@doc:
	//		Wrapper for serializing MD objects in a minidump
	//
	//---------------------------------------------------------------------------
	class CSerializableMDAccessor : public CSerializable
	{
		private:
			// MD accessor
			CMDAccessor *m_pmda;

			// serialize header
			void SerializeHeader(COstream &oos);

			// serialize footer
			void SerializeFooter(COstream &oos);

			// private copy ctor
			CSerializableMDAccessor(const CSerializableMDAccessor&);

		public:

			// ctor
			explicit
			CSerializableMDAccessor(CMDAccessor *pmda);

			// dtor
			virtual
			~CSerializableMDAccessor()
			{}

			// serialize object to passed stream
			virtual
			void Serialize(COstream &oos);

	}; // class CSerializableMDAccessor
}

#endif // !GPOS_CSerializableMDAccessor_H

// EOF


text:
package com.h6ah4i.android.widget.advrecyclerview.utils;

import android.graphics.Rect;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

public class CustomRecyclerViewUtils {
    public static RecyclerView.ViewHolder findChildViewHolderUnderWithoutTranslation(RecyclerView rv, float x, float y) {
        final View child = findChildViewUnderWithoutTranslation(rv, x, y);
        return (child != null) ? rv.getChildViewHolder(child) : null;
    }

    private static View findChildViewUnderWithoutTranslation(ViewGroup parent, float x, float y) {
        final int count = parent.getChildCount();
        for (int i = count - 1; i >= 0; i--) {
            final View child = parent.getChildAt(i);
            if (x >= child.getLeft() &&
                    x <= child.getRight() &&
                    y >= child.getTop() &&
                    y <= child.getBottom()) {
                return child;
            }
        }
        return null;
    }

    public static RecyclerView.ViewHolder findChildViewHolderUnderWithTranslation(RecyclerView rv, float x, float y) {
        final View child = rv.findChildViewUnder(x, y);
        return (child != null) ? rv.getChildViewHolder(child) : null;
    }

    public static Rect getLayoutMargins(View v, Rect outMargins) {
        final ViewGroup.LayoutParams layoutParams = v.getLayoutParams();
        if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
            final ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;
            outMargins.left = marginLayoutParams.leftMargin;
            outMargins.right = marginLayoutParams.rightMargin;
            outMargins.top = marginLayoutParams.topMargin;
            outMargins.bottom = marginLayoutParams.bottomMargin;
        } else {
            outMargins.left = outMargins.right = outMargins.top = outMargins.bottom = 0;
        }
        return outMargins;
    }

    public static Rect getDecorationOffsets(RecyclerView.LayoutManager layoutManager, View view, Rect outDecorations) {
        outDecorations.left = layoutManager.getLeftDecorationWidth(view);
        outDecorations.right = layoutManager.getRightDecorationWidth(view);
        outDecorations.top = layoutManager.getTopDecorationHeight(view);
        outDecorations.bottom = layoutManager.getBottomDecorationHeight(view);

        return outDecorations;
    }

    public static Rect getViewBounds(View v, Rect outBounds) {
        outBounds.left = v.getLeft();
        outBounds.right = v.getRight();
        outBounds.top = v.getTop();
        outBounds.bottom = v.getBottom();
        return outBounds;
    }

    public static int findFirstVisibleItemPosition(RecyclerView rv) {
        RecyclerView.LayoutManager layoutManager = rv.getLayoutManager();

        if (layoutManager instanceof LinearLayoutManager) {
            return (((LinearLayoutManager) layoutManager).findFirstVisibleItemPosition());
        } else {
            return RecyclerView.NO_POSITION;
        }
    }

    public static int findLastVisibleItemPosition(RecyclerView rv) {
        RecyclerView.LayoutManager layoutManager = rv.getLayoutManager();

        if (layoutManager instanceof LinearLayoutManager) {
            return (((LinearLayoutManager) layoutManager).findLastVisibleItemPosition());
        } else {
            return RecyclerView.NO_POSITION;
        }
    }

    public static int findFirstCompletelyVisibleItemPosition(RecyclerView rv) {
        RecyclerView.LayoutManager layoutManager = rv.getLayoutManager();

        if (layoutManager instanceof LinearLayoutManager) {
            return (((LinearLayoutManager) layoutManager).findFirstCompletelyVisibleItemPosition());
        } else {
            return RecyclerView.NO_POSITION;
        }
    }

    public static int findLastCompletelyVisibleItemPosition(RecyclerView rv) {
        RecyclerView.LayoutManager layoutManager = rv.getLayoutManager();

        if (layoutManager instanceof LinearLayoutManager) {
            return (((LinearLayoutManager) layoutManager).findLastCompletelyVisibleItemPosition());
        } else {
            return RecyclerView.NO_POSITION;
        }
    }
}


text:
layout: logistics
date: March 2nd - March 5th, 2015
permalink: meetings/2015/03/logistics
---

### [Meeting Registration](https://www.eventbrite.com/e/mpi-forum-tickets-15289893483)

The registration covers snacks at the meeting on Monday, Tuesday  Wednesday, and
Thursday lunch on Tuesday and Wednesday, and the meeting logistics.

### Meeting Location

he meeting will take place at the Microsoft facility in downtown Portland, OR,
which is on the 9th floor of 1414 NW Northrup Street (meeting rooms Belmont and
Hollywood)

### Meeting Cost

$50 per person (+$3.74 service fee) to cover meeting logistics costs, snacks on
Monday, Tuesday, Wednesday, and Thursday, and lunch on Tuesday and Wednesday.

### Hotel Room Block

A block of rooms is reserved at the Residence Inn Portland Downtown/Pearl District, 1150 NW 9th Avenue Portland OR 97209\. The rate is $179 per night and is available until February 6th 2015

[Reservation Link](http://www.marriott.com/meeting-event-hotels/group-corporate-travel/groupCorp.mi?resLinkData=MPI%20Forum%20Room%20Block%20Mar2015%5Epdxpd%60MPIMPIA%60179%60USD%60false%603/2/15%603/5/15%602/6/15&app=resvlink&stop_mobi=yes)


text:
package net.glowstone.generator.ground;

import org.bukkit.Material;

public class SnowyGroundGenerator extends GroundGenerator {
    public SnowyGroundGenerator() {
        super();
        setTopMaterial(Material.SNOW_BLOCK);
    }
}


text:
(function () {

  $(function () {
    var input = $('#username'),
      button = $('#feedBtn'),
      container = $('#result'),
      tmplTweet = $('#tmpl_tweet').html(),
      tmplError = $('#tmpl_error').html();

    function loadFeed() {
      laziness.github.getFeed(input.val())
        .done(function (data) {
          data = data
            .filter(laziness.github.pushEvents)
            .map(laziness.github.transform);
          laziness.github.render(tmplTweet, { feed: data }, container);
        })
        .fail(function (err) {
          laziness.github.render(tmplError, err, container);
        });
    }

    button.click(loadFeed);

    input.keyup(function (e) {
      if(e.which === 13) {
        e.preventDefault();
        loadFeed();
      }
    });

    input.focus();
  });

})();


text:
package com.rctwebrtcdemo;

import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.widget.TextView;
import android.widget.Toast;

import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.modules.core.DeviceEventManagerModule;

import static android.content.Context.SENSOR_SERVICE;

/**
 * Created by arvindthangamani on 06/05/17.
 */

public class TiltActivity extends ReactContextBaseJavaModule {
    SensorManager sensorManager;
    public TiltActivity(ReactApplicationContext reactContext) {
        super(reactContext);
    }
    @Override
    public String getName() {
        return "TiltActivity";
    }
    @ReactMethod
    public void listenToTheTilt() {
        sensorManager = (SensorManager) getReactApplicationContext().getSystemService(SENSOR_SERVICE);
        rotationVector();
    }

    private void rotationVector() {
        final Sensor rotationVector = sensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);
        if (rotationVector == null) {
            Toast.makeText(super.getReactApplicationContext(), "Rotation Vector not available.", Toast.LENGTH_LONG).show();
        } else {
            sensorManager.registerListener(new MyListener(), rotationVector, SensorManager.SENSOR_DELAY_NORMAL);
        }
    }

    private class MyListener implements SensorEventListener {

        MyListener() {
        }

        @Override
        public void onSensorChanged(SensorEvent event) {
            float[] rotationMatrix = new float[16];
            SensorManager.getRotationMatrixFromVector(rotationMatrix, event.values);

            // Convert to orientations
            float[] orientationsInRadian = new float[3];
            SensorManager.getOrientation(rotationMatrix, orientationsInRadian);

            double[] orientationsInDegrees = new double[3];
            for (int i = 0; i < 3; i++) {
                orientationsInDegrees[i] = (Math.toDegrees(orientationsInRadian[i]));
            }
            getReactApplicationContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
                    .emit("EVENT_TAG", orientationsInDegrees[2]);
        }

        @Override
        public void onAccuracyChanged(Sensor sensor, int accuracy) {

        }
    }

    public static void setTimeout(final Runnable runnable, final int delay){
        new Thread(){
            @Override
            public void run() {
                try {
                    Thread.sleep(delay);
                    runnable.run();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }.start();
    }
}


text:
void GetDSCAction(_In_ MI_Context* context, _In_opt_ const MSFT_DSCWebPullClient_GetDSCAction* in)
{
    MI_Result r = MI_RESULT_OK;
    MI_Char url[URL_SIZE] = {0};
    MI_Char subUrl[SUBURL_SIZE] = {0};
    MI_Uint32 port;
    MI_Instance *extendedError = NULL;
    MI_Boolean bIsHttps;
    MI_Uint32 getActionStatusCode;
    MI_Value value;
    MI_Uint32 flags;
    MI_Char *result = NULL;
    MSFT_DSCWebPullClient_GetDSCAction out;

    if( !in->CustomData.exists || !in->ConfigurationID.exists || !in->FileHash.exists || !in->NotCompliant.exists || !in->StatusCode.exists )
    {
        MI_PostResult(context, MI_RESULT_INVALID_PARAMETER);
        return;
    }
    r = MSFT_DSCWebPullClient_GetDSCAction_Construct(&out, context);
    if( r != MI_RESULT_OK)
    {
        MI_PostResult(context, r);
        return;
    }
    r = MI_Instance_GetElement(&in->__instance, MI_T("CustomData"), &value, NULL, &flags, NULL);
    if( r != MI_RESULT_OK || (flags & MI_FLAG_NULL) || value.instancea.size == 0)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostResult(context, MI_RESULT_INVALID_PARAMETER);
        return;
    }
    r = GetUrlParam(&value.instancea, url, subUrl, &port, &bIsHttps, &getActionStatusCode, &extendedError);
    if( r != MI_RESULT_OK)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostCimError(context, extendedError);
        MI_Instance_Delete(extendedError);
        return;
    }
    r = IssueGetActionRequest(in->ConfigurationID.value,
                              NULL, //For certificateID
                              in->FileHash.value,
                              in->NotCompliant.value,
                              in->StatusCode.value,
                              &result,
                              &getActionStatusCode,
                              url,
                              port,
                              subUrl,
                              bIsHttps,
                              &extendedError);

    if( r != MI_RESULT_OK)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostCimError(context, extendedError);
        MI_Instance_Delete(extendedError);
        return;
    }

    r = MSFT_DSCWebPullClient_GetDSCAction_SetPtr_Result(&out, result);
    if( r != MI_RESULT_OK)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostResult(context, r);
        return;
    }
    MSFT_DSCWebPullClient_GetDSCAction_Set_MIReturn(&out, 0 );
    r = MSFT_DSCWebPullClient_GetDSCAction_Post(&out, context);
    DSC_free(result);
    MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
    MI_PostResult(context, r);
}

void GetDSCDocument(_In_ MI_Context* context, _In_opt_ const MSFT_DSCWebPullClient_GetDSCDocument* in)
{
    MI_Result r = MI_RESULT_OK;
    MI_Char url[URL_SIZE] = {0};
    MI_Char subUrl[SUBURL_SIZE] = {0};
    MI_Uint32 port;
    MI_Instance *extendedError = NULL;
    MI_Boolean bIsHttps;
    MI_Uint32 getActionStatusCode;
    MI_Value value;
    MI_Uint32 flags;
    MI_Char *result = NULL;
    MSFT_DSCWebPullClient_GetDSCAction out;

    if( !in->CustomData.exists || !in->ConfigurationID.exists || !in->DestinationPath.exists)
    {
        MI_PostResult(context, MI_RESULT_INVALID_PARAMETER);
        return;
    }
    r = MSFT_DSCWebPullClient_GetDSCAction_Construct(&out, context);
    if( r != MI_RESULT_OK)
    {
        MI_PostResult(context, r);
        return;
    }
    r = MI_Instance_GetElement(&in->__instance, MI_T("CustomData"), &value, NULL, &flags, NULL);
    if( r != MI_RESULT_OK || (flags & MI_FLAG_NULL) || value.instancea.size == 0)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostResult(context, MI_RESULT_INVALID_PARAMETER);
       return;
    }
    r = GetUrlParam(&value.instancea, url, subUrl, &port, &bIsHttps, &getActionStatusCode, &extendedError);
    if( r != MI_RESULT_OK)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostCimError(context, extendedError);
        MI_Instance_Delete(extendedError);
        return;
    }
    r = IssueGetConfigurationRequest(in->ConfigurationID.value,
                              NULL, //For certificateID
                              in->DestinationPath.value,
                              &result,
                              &getActionStatusCode,
                              url,
                              port,
                              subUrl,
                              bIsHttps,
                              &extendedError);

    if( r != MI_RESULT_OK)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostCimError(context, extendedError);
        MI_Instance_Delete(extendedError);
        return;
    }

    r = MSFT_DSCWebPullClient_GetDSCAction_SetPtr_Result(&out, result);
    if( r != MI_RESULT_OK)
    {
        MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
        MI_PostResult(context, r);
        return;
    }
    MSFT_DSCWebPullClient_GetDSCAction_Set_MIReturn(&out, 0 );
    r = MSFT_DSCWebPullClient_GetDSCAction_Post(&out, context);
    DSC_free(result);
    MSFT_DSCWebPullClient_GetDSCAction_Destruct(&out);
    MI_PostResult(context, r);
}

void GetDSCModule(_In_ MI_Context* context, _In_opt_ const MSFT_DSCWebPullClient_GetDSCModule* in)
{
}


text:
package v1alpha1

import (
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime"
	"k8s.io/apimachinery/pkg/runtime/schema"
)

const (
	// GroupName is the group of the API.
	GroupName = "operator.tekton.dev"

	// SchemaVersion is the current version of the API.
	SchemaVersion = "v1alpha1"

	// KindTektonPipeline is the Kind of Tekton Pipeline in a GVK context.
	KindTektonPipeline = "TektonPipeline"

	// KindTektonTrigger is the Kind of Tekton Trigger in a GVK context.
	KindTektonTrigger = "TektonTrigger"

	// KindTektonDashboard is the Kind of Tekton Dashboard in a GVK context.
	KindTektonDashboard = "TektonDashboard"

	// KindTektonAddon is the Kind of Tekton Addon in a GVK context.
	KindTektonAddon = "TektonAddon"

	// KindTektonConfig is the Kind of Tekton Config in a GVK context.
	KindTektonConfig = "TektonConfig"

	// KindTektonResult is the Kind of Tekton Result in a GVK context.
	KindTektonResult = "TektonResult"

	// KindTektonInstallerSet is the Kind of TektonInstallerSet in a GVK context.
	KindTektonInstallerSet = "TektonInstallerSet"

	// KindTektonHub is the Kind of TektonHub in a GVK context.
	KindTektonHub = "TektonHub"

	// KindTektonChain is the Kind of Tekton Chain in a GVK context.
	KindTektonChain = "TektonChain"

	// KindOpenShiftPipelinesAsCode is the Kind of OpenShiftPipelinesAsCode in a GVK context.
	KindOpenShiftPipelinesAsCode = "OpenShiftPipelinesAsCode"
)

// Resource takes an unqualified resource and returns a Group qualified GroupResource
func Resource(resource string) schema.GroupResource {
	return SchemeGroupVersion.WithResource(resource).GroupResource()
}

// addKnownTypes adds the set of types defined in this package to the supplied
// scheme.
func addKnownTypes(s *runtime.Scheme) error {
	s.AddKnownTypes(SchemeGroupVersion,
		&TektonPipeline{},
		&TektonPipelineList{},
		&TektonTrigger{},
		&TektonTriggerList{},
		&TektonDashboard{},
		&TektonDashboardList{},
		&TektonAddon{},
		&TektonAddonList{},
		&TektonConfig{},
		&TektonConfigList{},
		&TektonResult{},
		&TektonResultList{},
		&TektonInstallerSet{},
		&TektonInstallerSetList{},
		&TektonHub{},
		&TektonHubList{},
		&TektonChain{},
		&TektonChainList{},
		&OpenShiftPipelinesAsCode{},
		&OpenShiftPipelinesAsCodeList{},
	)
	metav1.AddToGroupVersion(s, SchemeGroupVersion)
	return nil
}

var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: SchemaVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme adds the API's types to the Scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)


text:
/*****************************************************************************/
/**
 *  @file   SliceRange.h
 *  @author Naohisa Sakamoto
 *  @brief  Range class for slicing into ValueArray and ValueTable
 */
/*****************************************************************************/
#pragma once
#include <initializer_list>
#include <algorithm>
#include <utility>
#include <kvs/Exception>
#include <kvs/Assert>

namespace kvs
{

/*===========================================================================*/
/**
 *  @brief  Range class for slicing into ValueArray and ValueTable
 */
/*===========================================================================*/
struct SliceRange
{
    mutable long start; ///< starting index
    mutable long stop;  ///< stopping index (not included)
    mutable long step;  ///< step (not zero)
    mutable bool has_stop; ///< if true, 'stop' is specified

    SliceRange():
        start( 0 ),
        stop( 1 ),
        step( 1 ),
        has_stop( false ) {}

    SliceRange( const long in_start ):
        start( in_start ),
        stop( 1 ),
        step( 1 ),
        has_stop( false ) {}

    SliceRange( const long in_start, const long in_stop ):
        start( in_start ),
        stop( in_stop ),
        step( 1 ),
        has_stop( true ) {}

    SliceRange( const long in_start, const long in_stop, const long in_step ):
        start( in_start ),
        stop( in_stop ),
        step( in_step ),
        has_stop( true ) {}

    SliceRange( std::initializer_list<long> list ):
        start( list.size() > 0 ? *( list.begin() + 0 ) : 0 ),
        stop( list.size() > 1 ? *( list.begin() + 1 ) : 1 ),
        step( list.size() > 2 ? *( list.begin() + 2 ) : 1 ),
        has_stop( list.size() > 1 ) {}

    long size() const
    {
        KVS_ASSERT( step != 0 );
        return ( stop - start ) / step;
    }

    void adjust( const size_t array_size ) const
    {
        const auto size = static_cast<long>( array_size );

        // Adjust the starting index.
        if ( start < 0 ) { start += size; }
        if ( start > size - 1 )
        {
            KVS_THROW( kvs::InvalidDataException, "Invalid starting index." );
        }

        // Adjust the stopping index.
        if ( !has_stop ) { stop = array_size; }
        else
        {
            if ( stop < 0 ) { stop += size; }
            if ( stop > size )
            {
                KVS_THROW( kvs::InvalidDataException, "Invalid stopping index." );
            }
        }

        // Adjust the slicing step.
        if ( start < stop )
        {
            if ( step < 0 )
            {
                KVS_THROW( kvs::InvalidDataException, "Invalid slicing step." );
            }
        }

        if ( stop < start )
        {
            if ( step > 0 )
            {
                KVS_THROW( kvs::InvalidDataException, "Invalid slicing step." );
            }

            std::swap( start, stop );
            step *= -1;
        }
    }
};

} // end of namespace kvs


text:
FROM ubuntu:13.04

MAINTAINER Eric Busboom "eric@clarinova.com"

RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install -y language-pack-en
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales

RUN apt-get install -y openssh-server git-core libxml2-dev curl python
RUN apt-get install -y build-essential make gcc python-dev wget libsqlite3-dev sqlite3
RUN apt-get install -y postgresql-client-9.1 postgresql-client-common libpq5
RUN apt-get install -y libpq-dev

RUN wget http://python-distribute.org/distribute_setup.py
RUN python distribute_setup.py

RUN wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
RUN python get-pip.py

RUN apt-get install -y libfreetype6 libfreetype6-dev
RUN apt-get install -y python-imaging libpng-dev
RUN apt-get install -y libzmq-dev
RUN apt-get install -y curl

# Needed to build matplotlib on ubuntu 14.04
RUN ln -s /usr/include/freetype2 /usr/include/freetype2/freetype

RUN pip install pyzmq
RUN pip install numpy
RUN pip install matplotlib
RUN pip install pandas
RUN pip install jinja2
RUN pip install ipython

RUN python -c "from IPython.external import mathjax; mathjax.install_mathjax()"

##
## Install Ambry
##

RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/clarinova/ambry/master/support/install-ubuntu.sh)"#kick3
RUN ambry config install -f
RUN ambry library sync

# This is a second one, meant for updating the sync done in the first one.
RUN ambry library sync

# Do this after so the synced bundle databases are in the main libary, not in the cache.
COPY ambry.yaml /etc/ambry.yaml

##
## Configure IPython
##

RUN ipython profile create default
COPY ipython_notebook_config.py /.ipython/profile_default/ipython_notebook_config.py
COPY hide_warnings.py /.ipython/profile_default/startup/ipython_notebook_config.py

RUN pip install 'git+https://github.com/sdrdl/ipydoc.git#egg=ipydoc' #change2

EXPOSE 8888
VOLUME /notebooks
VOLUME /ambry

CMD ipython notebook  --ip=*


text:
namespace app {
namespace Uno {
namespace UX {

::uDelegateType* ValueChangedHandler__Fuse_Triggers_Actions_TriggerDirection__typeof();

}}}

#endif


text:
import {$} from 'protractor';
import {openTreeBenchmark, runTreeBenchmark} from './tree_perf_test_utils';

describe('benchmark render', () => {
  it('should work for detectChanges', () => {
    openTreeBenchmark();
    $('#detectChanges').click();
    expect($('#numberOfChecks').getText()).toContain('10');
  });
});

describe('benchmarks', () => {
  it('should work for detectChanges', async() => {
    await runTreeBenchmark({
      id: 'detectChanges',
      work: () => $('#detectChanges').click(),
      setup: () => $('#destroyDom').click()
    });
  });
});


text:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Demo extends My_Module
{
	public function __construct()
	{
		parent::__construct();
	}

	function index()
	{
		$this->template['title'] = 'Demo module title';
		$this->output('demo');

		// Tags
		// Uncomment the previous lines
		// PHP $this->template['title'] = 'Demo module title' will not be supported

		// $this->render('demo_tags');

	}

	public function test1()
	{
		echo 'coucou';
	}

}


text:
package org.apache.poi.hssf.record.formula.functions;

import org.apache.poi.hssf.record.formula.eval.StringEval;
import org.apache.poi.hssf.record.formula.eval.ValueEval;

/**
 * Implementation of Excel HYPERLINK function.

 *
 * In Excel this function has special behaviour - it causes the displayed cell value to behave like
 * a hyperlink in the GUI. From an evaluation perspective however, it is very simple.

 *
 * Syntax:

 * HYPERLINK(link_location, friendly_name)

 *
 * link_location The URL of the hyperlink

 * friendly_name (optional) the value to display

 *
 *  Returns last argument.  Leaves type unchanged (does not convert to {@link StringEval}).
 *
 * @author Wayne Clingingsmith
 */
public final class Hyperlink extends Var1or2ArgFunction {

	public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {
		return arg0;
	}
	public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {
		// note - if last arg is MissingArgEval, result will be NumberEval.ZERO,
		// but WorkbookEvaluator does that translation
		return arg1;
	}
}


text:
try {
  chrome.tabs.onUpdated.addListener(function(request, changeInfo, tab) {
    if(changeInfo.url === "chrome://newtab/") {

    }

    else if (changeInfo.url) {
      var xhrGet = new XMLHttpRequest();
          xhrGet.open("GET", 'https://api.mongolab.com/api/1/databases/semanticuri/collections/urls?q={"visited.url": "' + tab.url + '"}&apiKey=2P7QlEw29SmcG6BrJ5TZJZZT-eQmd64s');
          xhrGet.onreadystatechange = function(){
            var response = JSON.parse(xhrGet.responseText);
            //var response = xhrGet.responseText;
            if(response.length === 0){
              var jsonUrl = '{"visited":' + '{"url":' + '"' + tab.url + '"' + ', "weight": 1}}';
              //alert("Line 32: " + jsonUrl);
              xhrGet.open("POST", "https://api.mongolab.com/api/1/databases/semanticuri/collections/urls?apiKey=2P7QlEw29SmcG6BrJ5TZJZZT-eQmd64s");
              xhrGet.setRequestHeader("Content-Type", "application/json");
              xhrGet.send(jsonUrl);
            } else {
              for(var i = 0; i < response.length; i++){
                var temp = response[i];
                var weight = temp.visited.weight + 1;
                //alert("Line 45: " + weight);
                var updated = '{"visited":' + '{"url":' + '"' + tab.url + '"' + ', "weight":' + weight + '}}';
                xhrGet.open("PUT", 'https://api.mongolab.com/api/1/databases/semanticuri/collections/urls?apiKey=2P7QlEw29SmcG6BrJ5TZJZZT-eQmd64s&q={"visited.url": "' + temp.visited.url + '"}' );
                xhrGet.setRequestHeader("Content-Type", "application/json");
                xhrGet.send(updated);

              }
            }
          }
        xhrGet.send();
    }

    //console.log(sender.tab ? "from a content script: " + sender.tab.id+", "+sender.tab.url : "from the extension" );
     if (request.harvestedTriples) {
         chrome.pageAction.show(sender.tab.id);
         sendResponse({});
     }  else {
        sendResponse({}); // snub them.
     }
  });

  chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
     //console.log(sender.tab ? "from a content script: " + sender.tab.id+", "+sender.tab.url : "from the extension" );
     if (request.harvestedTriples) {
         chrome.pageAction.show(sender.tab.id);
         sendResponse({});
     }  else {
        sendResponse({}); // snub them.
     }
  });

  //This happens when clicking the browseraction-button
  chrome.browserAction.onClicked.addListener(function(tab) {
        var url = chrome.extension.getURL("Recommending/presentation.html");
        chrome.tabs.create({"url": url, "selected": true},
          function(viewerTab) {
           chrome.tabs.sendRequest(viewerTab.id, { viewerInit: true, url: tab.url, id: tab.id});
        });
  });

} catch (ex) {
   console.log("Error setting up rdfa extension: "+ex);
}


text:
module.exports = {
  plugins: [
    // eslint-disable-next-line global-require
    require('postcss-easy-import')({ prefix: '_' }), // keep this first
    // eslint-disable-next-line global-require
    require('autoprefixer')({ /* ...options */ }), // so imports are auto-prefixed too
    // eslint-disable-next-line global-require
    require('cssnano')({ discardComments: { removeAll: true } }),
  ],
};


text:
package com.haulmont.cuba.gui.components;

import com.google.common.collect.BiMap;
import com.google.common.collect.ImmutableBiMap;
import com.haulmont.bali.util.Preconditions;
import com.haulmont.chile.core.datatypes.impl.EnumClass;
import com.haulmont.cuba.gui.components.data.Options;
import com.haulmont.cuba.gui.components.data.options.DatasourceOptions;
import com.haulmont.cuba.gui.components.data.options.EnumOptions;
import com.haulmont.cuba.gui.components.data.options.ListOptions;
import com.haulmont.cuba.gui.components.data.options.MapOptions;
import com.haulmont.cuba.gui.data.CollectionDatasource;

import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * todo JavaDoc
 *
 * @param <V>
 * @param <I>
 */
public interface OptionsField<V, I> extends Field<V> {
    void setOptions(Options<I> options);
    Options<I> getOptions();

    void setOptionCaptionProvider(Function<? super I, String> captionProvider);
    Function<? super I, String> getOptionCaptionProvider();

    /*
     * Deprecated API
     */

    @Deprecated
    CaptionMode getCaptionMode();
    @Deprecated
    void setCaptionMode(CaptionMode captionMode);

    @Deprecated
    String getCaptionProperty();
    @Deprecated
    void setCaptionProperty(String captionProperty);

    @Deprecated
    default CollectionDatasource getOptionsDatasource() {
        Options<I> options = getOptions();
        if (options instanceof DatasourceOptions) {
            return ((DatasourceOptions) options).getDatasource();
        }
        return null;
    }
    @SuppressWarnings("unchecked")
    @Deprecated
    default void setOptionsDatasource(CollectionDatasource datasource) {
        if (datasource == null) {
            setOptions(null);
        } else {
            setOptions(new DatasourceOptions<>(datasource));
        }
    }

    default List getOptionsList() {
        Options options = getOptions();
        if (options instanceof ListOptions) {
            return (List) ((ListOptions) options).getItemsCollection();
        }
        return null;
    }
    @SuppressWarnings("unchecked")
    default void setOptionsList(List optionsList) {
        setOptions(new ListOptions<>(optionsList));
    }

    @SuppressWarnings("unchecked")
    @Deprecated
    default Map<String, ?> getOptionsMap() {
        Options options = getOptions();
        if (options instanceof MapOptions) {
            return ((MapOptions) options).getItemsCollection();
        }
        return null;
    }

    /**
     * JavaDoc
     */
    @Deprecated
    default void setOptionsMap(Map<String, I> map) {
        Preconditions.checkNotNullArgument(map);

        BiMap<String, I> biMap = ImmutableBiMap.copyOf(map);

        setOptions(new MapOptions<>(map));
        setOptionCaptionProvider(v -> biMap.inverse().get(v));
    }

    @SuppressWarnings("unchecked")
    @Deprecated
    default Class<? extends EnumClass> getOptionsEnum() {
        Options options = getOptions();
        if (options instanceof EnumOptions) {
            return ((EnumOptions) options).getEnumClass();
        }
        return null;
    }

    /**
     * JavaDoc
     */
    @SuppressWarnings("unchecked")
    @Deprecated
    default void setOptionsEnum(Class<V> optionsEnum) {
        Preconditions.checkNotNullArgument(optionsEnum);

        setOptions(new EnumOptions(optionsEnum));
    }
}


text:
module Zermelo
  module Associations
    class Singular

      def initialize(type, parent_klass, parent_id, name)
        @type = type
        @parent_klass = parent_klass
        @parent_id = parent_id
        @name   = name

        @backend = parent_klass.send(:backend)

        @record_id_key = Zermelo::Records::Key.new(
          :klass  => parent_klass,
          :id     => parent_id,
          :name   => type.to_s,
          :type   => :hash,
          :object => :association
        )

        parent_klass.send(:with_association_data, name.to_sym) do |data|
          @associated_class = data.data_klass
          @lock_klasses     = [data.data_klass] + data.related_klasses
          @inverse          = data.inverse
          @callbacks        = data.callbacks
        end

        raise ':inverse_of must be set' if @inverse.nil?
        @inverse_key = "#{@inverse}_id"
      end

      def value=(record)
        if record.nil?
          @parent_klass.lock(*@lock_klasses) do
            _clear(:callbacks => true)
          end
        else
          raise 'Invalid record class' unless record.is_a?(@associated_class)
          raise 'Record must have been saved' unless record.persisted?
          @parent_klass.lock(*@lock_klasses) do
            opts = {:callbacks => true}
            if :sorted_set.eql?(_inverse.type)
              opts[:score] = @parent_klass.find_by_id!(@parent_id).send(@inverse_sort_key.to_sym).to_f
            end
            _set(opts, record.id)
          end
        end
      end

      def value
        v = nil
        @parent_klass.lock(*@lock_klasses) do
          br = @callbacks[:before_read]
          @parent_klass.send(br, @parent_id) if !br.nil? && @parent_klass.respond_to?(br)
          id = @backend.get(@record_id_key)["#{@name}_id"]
          # # TODO maybe: uses hgetall, need separate getter for hash/list/set
          # @backend.get_hash_value(@record_id_key, "#{@name}_id")
          v = @associated_class.send(:load, id) unless id.nil?
          ar = @callbacks[:after_read]
          @parent_klass.send(ar, @parent_id, v) if !ar.nil? && @parent_klass.respond_to?(ar)
        end
        v
      end

      def key_dump
        [@backend.key_to_backend_key(@record_id_key), @record_id_key]
      end

      private

      # on_remove already runs inside a lock & transaction
      def on_remove
        _clear(:callbacks => false)
      end

      def _inverse
        return @inverse_obj unless @inverse_obj.nil?
        @associated_class.send(:with_association_data, @inverse.to_sym) do |data|
          @inverse_obj = case @type
          when :belongs_to
            key_name, key_type = case data.data_type
            when :has_many
              ["#{@inverse}_ids", :set]
            when :has_sorted_set
              ["#{@inverse}_ids", :sorted_set]
            when :has_one
              ["has_one", :hash]
            end

            @inverse_sort_key = data.sort_key

            Zermelo::Records::Key.new(
              :klass  => @associated_class,
              :name   => key_name,
              :type   => key_type,
              :object => :association
            )
          when :has_one
            # inverse is belongs_to
            Zermelo::Records::Key.new(
              :klass  => @associated_class,
              :name   => 'belongs_to',
              :type   => :hash,
              :object => :association
            )
          end
        end
        @inverse_obj
      end

      def _clear(opts = {})
        bc = @callbacks[:before_clear]
        if bc.nil? || !opts[:callbacks] || !@parent_klass.respond_to?(bc) ||
          !@parent_klass.send(bc, @parent_id).is_a?(FalseClass)

          record_id = @backend.get(@record_id_key)["#{@name}_id"]
          _inverse.id = record_id

          new_txn = @backend.begin_transaction

          case @type
          when :belongs_to, :has_one
            # FIXME can we access the assoc type instead?
            case _inverse.type
            when :set, :sorted_set
              @backend.delete(_inverse, @parent_id)
            when :hash
              @backend.delete(_inverse, "#{@inverse}_id")
            end

            @backend.delete(@record_id_key, "#{@name}_id")
          end

          @backend.commit_transaction if new_txn

          ac = @callbacks[:after_clear]
          if !ac.nil? && opts[:callbacks] && @parent_klass.respond_to?(ac)
            @parent_klass.send(ac, @parent_id, record_id)
          end
        end
      end

      def _set(opts = {}, record_id)
        bs = @callbacks[:before_set]
        if bs.nil? || !opts[:callbacks] || !@parent_klass.respond_to?(bs) ||
          !@parent_klass.send(bs, @parent_id, record_id).is_a?(FalseClass)

          _inverse.id = record_id

          new_txn = @backend.begin_transaction

          # FIXME can we access the assoc type instead?
          case _inverse.type
          when :set
            @backend.add(_inverse, @parent_id)
          when :sorted_set
            @backend.add(_inverse, [opts[:score], @parent_id])
          when :hash
            @backend.add(_inverse, @inverse_key => @parent_id)
          end

          @backend.add(@record_id_key, "#{@name}_id" => record_id)

          @backend.commit_transaction if new_txn

          as = @callbacks[:after_set]
          if !as.nil? && opts[:callbacks] && @parent_klass.respond_to?(as)
            @parent_klass.send(as, @parent_id, record_id)
          end
        end
      end

      def self.associated_ids_for(backend, type, klass, name, inversed, *these_ids)
        these_ids.each_with_object({}) do |this_id, memo|
          key = Zermelo::Records::Key.new(
            :klass  => klass,
            :id     => this_id,
            :name   => type.to_s,
            :type   => :hash,
            :object => :association
          )

          assoc_id = backend.get(key)["#{name}_id"]
          # assoc_id = backend.get_hash_value(key, "#{name}_id")

          if inversed
            memo[assoc_id] ||= []
            memo[assoc_id] << this_id
          else
            memo[this_id] = assoc_id
          end
        end
      end

    end
  end
end


text:
#import <iWorkImport/TSCH3DChartAddBoundsSceneObjectMode.h>

// Not exported
@interface TSCH3DChartAddRadialBoundsSceneObjectMode : TSCH3DChartAddBoundsSceneObjectMode
{
    float mFactor;
}

@property(nonatomic) float factor; // @synthesize factor=mFactor;
- (void)getBounds:(id)arg1;

@end