text:
package anjithsasindran.materialcardanimation;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewAnimationUtils;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class MainActivity extends Activity {

    ImageView imageView;
    ImageButton imageButton, closeButton;
    RelativeLayout revealView;
    LinearLayout layoutButtons;
    Animation alphaAppear, alphaDisappear;
    int x, y, width, height, hypotenuse;
    float pixelDensity;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        pixelDensity = getResources().getDisplayMetrics().density;

        imageView = (ImageView) findViewById(R.id.imageView);
        imageButton = (ImageButton) findViewById(R.id.launchTwitterAnimation);
        closeButton = (ImageButton) findViewById(R.id.closeButton);
        revealView = (RelativeLayout) findViewById(R.id.linearView);
        layoutButtons = (LinearLayout) findViewById(R.id.layoutButtons);

        alphaAppear = AnimationUtils.loadAnimation(this, R.anim.alpha_anim);
        alphaDisappear = AnimationUtils.loadAnimation(this, R.anim.alpha_disappear);
    }

    public void launchTwitter(View view) {

        /*
         MARGIN_RIGHT = 16dp
         FAB_BUTTON_RADIUS = 28dp
         */
        width = imageView.getWidth();
        height = imageView.getHeight();

        x = width / 2;
        y = height / 2;
        hypotenuse = (int) Math.hypot(x, y);

        x = (int) (x - ((16 * pixelDensity) + (28 * pixelDensity)));

        FrameLayout.LayoutParams parameters = (FrameLayout.LayoutParams)
                revealView.getLayoutParams();
        parameters.height = imageView.getHeight();
        revealView.setLayoutParams(parameters);

        imageButton.animate()
            .translationX(-x)
            .translationY(-y)
            .setDuration(200)
            .setListener(new Animator.AnimatorListener() {
            @Override
            public void onAnimationStart(Animator animator) {

            }

            @Override
            public void onAnimationEnd(Animator animator) {

                Animator anim = ViewAnimationUtils.createCircularReveal(revealView, width / 2, height / 2, 28 * pixelDensity, hypotenuse);
                anim.setDuration(350);
                anim.addListener(new Animator.AnimatorListener() {
                    @Override
                    public void onAnimationStart(Animator animator) {

                    }

                    @Override
                    public void onAnimationEnd(Animator animator) {
                        layoutButtons.setVisibility(View.VISIBLE);
                        closeButton.setVisibility(View.VISIBLE);
                        layoutButtons.startAnimation(alphaAppear);
                        closeButton.startAnimation(alphaAppear);
                    }

                    @Override
                    public void onAnimationCancel(Animator animator) {

                    }

                    @Override
                    public void onAnimationRepeat(Animator animator) {

                    }
                });
                imageButton.setVisibility(View.GONE);
                revealView.setVisibility(View.VISIBLE);
                anim.start();
            }

            @Override
            public void onAnimationCancel(Animator animator) {

            }

            @Override
            public void onAnimationRepeat(Animator animator) {

            }
        });
    }

    public void closeTwitter(View view) {

        alphaDisappear.setAnimationListener(new Animation.AnimationListener() {
            @Override
            public void onAnimationStart(Animation animation) {

            }

            @Override
            public void onAnimationEnd(Animation animation) {
                Animator anim = ViewAnimationUtils.createCircularReveal(revealView, width / 2, height / 2, hypotenuse, 28 * pixelDensity);
                anim.setDuration(350);
                anim.addListener(new Animator.AnimatorListener() {
                    @Override
                    public void onAnimationStart(Animator animator) {

                    }

                    @Override
                    public void onAnimationEnd(Animator animator) {
                        revealView.setVisibility(View.GONE);
                        imageButton.setVisibility(View.VISIBLE);
                        imageButton.animate()
                          .translationX(0f)
                          .translationY(0f)
                          .setDuration(200);
                    }

                    @Override
                    public void onAnimationCancel(Animator animator) {

                    }

                    @Override
                    public void onAnimationRepeat(Animator animator) {

                    }
                });
                anim.start();
            }

            @Override
            public void onAnimationRepeat(Animation animation) {

            }
        });

        layoutButtons.setVisibility(View.GONE);
        closeButton.setVisibility(View.GONE);
        layoutButtons.startAnimation(alphaDisappear);
        closeButton.startAnimation(alphaDisappear);
    }
}


text:
package org.intellij.lang.regexp.inspection.custom;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.DumbAwareAction;
import org.jetbrains.annotations.NotNull;

public class OpenRegExpDialogAction extends DumbAwareAction {
  @Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    new RegExpDialog(e.getProject(), false, null).show();
  }
}

redpajama_set_name: RedPajamaGithub


text:
package com.amazonaws.services.kms.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 *
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateGrantResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable {

    /**
     *

     * The grant token.
     *

     *

     * For more information, see Grant Tokens in the
     * AWS Key Management Service Developer Guide.
     *

     */
    private String grantToken;
    /**
     *

     * The unique identifier for the grant.
     *

     *

     * You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.
     *

     */
    private String grantId;

    /**
     *

     * The grant token.
     *

     *

     * For more information, see Grant Tokens in the
     * AWS Key Management Service Developer Guide.
     *

     *
     * @param grantToken
     *        The grant token.

     *

     *        For more information, see Grant Tokens in
     *        the AWS Key Management Service Developer Guide.
     */

    public void setGrantToken(String grantToken) {
        this.grantToken = grantToken;
    }

    /**
     *

     * The grant token.
     *

     *

     * For more information, see Grant Tokens in the
     * AWS Key Management Service Developer Guide.
     *

     *
     * @return The grant token.

     *

     *         For more information, see Grant Tokens
     *         in the AWS Key Management Service Developer Guide.
     */

    public String getGrantToken() {
        return this.grantToken;
    }

    /**
     *

     * The grant token.
     *

     *

     * For more information, see Grant Tokens in the
     * AWS Key Management Service Developer Guide.
     *

     *
     * @param grantToken
     *        The grant token.

     *

     *        For more information, see Grant Tokens in
     *        the AWS Key Management Service Developer Guide.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateGrantResult withGrantToken(String grantToken) {
        setGrantToken(grantToken);
        return this;
    }

    /**
     *

     * The unique identifier for the grant.
     *

     *

     * You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.
     *

     *
     * @param grantId
     *        The unique identifier for the grant.

     *

     *        You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.
     */

    public void setGrantId(String grantId) {
        this.grantId = grantId;
    }

    /**
     *

     * The unique identifier for the grant.
     *

     *

     * You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.
     *

     *
     * @return The unique identifier for the grant.

     *

     *         You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.
     */

    public String getGrantId() {
        return this.grantId;
    }

    /**
     *

     * The unique identifier for the grant.
     *

     *

     * You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.
     *

     *
     * @param grantId
     *        The unique identifier for the grant.

     *

     *        You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateGrantResult withGrantId(String grantId) {
        setGrantId(grantId);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getGrantToken() != null)
            sb.append("GrantToken: ").append(getGrantToken()).append(",");
        if (getGrantId() != null)
            sb.append("GrantId: ").append(getGrantId());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof CreateGrantResult == false)
            return false;
        CreateGrantResult other = (CreateGrantResult) obj;
        if (other.getGrantToken() == null ^ this.getGrantToken() == null)
            return false;
        if (other.getGrantToken() != null && other.getGrantToken().equals(this.getGrantToken()) == false)
            return false;
        if (other.getGrantId() == null ^ this.getGrantId() == null)
            return false;
        if (other.getGrantId() != null && other.getGrantId().equals(this.getGrantId()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getGrantToken() == null) ? 0 : getGrantToken().hashCode());
        hashCode = prime * hashCode + ((getGrantId() == null) ? 0 : getGrantId().hashCode());
        return hashCode;
    }

    @Override
    public CreateGrantResult clone() {
        try {
            return (CreateGrantResult) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

}


text:
class Vector3
{
public:
	Vector3(double x=0.0, double y=0.0, double z=0.0);
	Vector3(const Vector3 &ref);
	virtual ~Vector3();

	// Addition of Vector3 field by field
	friend Vector3 operator+(const Vector3 v1, const Vector3 &v2) {
		return Vector3(v1.x + v2.x, v1.y + v2.y, v1.z + v2.z);
	}
	void operator+=(const Vector3 &other);

	// Subtraction of Vector3 field by field
	friend Vector3 operator-(const Vector3 v1, const Vector3 &v2) {
		return Vector3(v1.x - v2.x, v1.y - v2.y, v1.z - v2.z);
	}
	void operator-=(const Vector3 &other);

	// Scalar product
	double dot(const Vector3 &other) const;

	// Cross product
	friend Vector3 operator^(const Vector3 &v1, const Vector3 &v2) {
		return Vector3(
                        v1.y * v2.z - v1.z * v2.y,
                        v1.z * v2.x - v1.x * v2.z,
                        v1.x * v2.y - v1.y * v2.x);
	}
	void operator^=(const Vector3 &other);

	// Multiplication by a scalar
	friend Vector3 operator*(const Vector3 &v, double scalar);
	friend Vector3 operator*(double scalar, const Vector3 &v);
	void operator*=(const Vector3 &v);
	friend Vector3 operator*(const Vector3 &v1, const Vector3 &v2);
	void operator*=(double scalar);

	// unary opp
	Vector3 operator- () const;

	// Accessor
	double X(void) const;
	double Y(void) const;
	double Z(void) const;

	double R(void) const;
	double G(void) const;
	double B(void) const;

	// Mutator
	void X(double x);
	void Y(double y);
	void Z(double z);

	void R(double r);
	void G(double g);
	void B(double b);

	// norm stuff
	double length(void) const;
	double length_squared(void) const;
	void normalize(void);

protected:
	double x;
	double y;
	double z;
};

// 'Simple function to 'cout' a Vector3
std::ostream &operator<<(std::ostream &os, Vector3 const &m);