text:
// This source file is automatically generated

package android.opengl;

/** OpenGL ES 3.1
 */
public class GLES31 extends GLES30 {

    public static final int GL_VERTEX_SHADER_BIT                            = 0x00000001;
    public static final int GL_FRAGMENT_SHADER_BIT                          = 0x00000002;
    public static final int GL_COMPUTE_SHADER_BIT                           = 0x00000020;
    public static final int GL_ALL_SHADER_BITS                              = -1; // 0xFFFFFFFF

    public static final int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT              = 0x00000001;
    public static final int GL_ELEMENT_ARRAY_BARRIER_BIT                    = 0x00000002;
    public static final int GL_UNIFORM_BARRIER_BIT                          = 0x00000004;
    public static final int GL_TEXTURE_FETCH_BARRIER_BIT                    = 0x00000008;
    public static final int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT              = 0x00000020;
    public static final int GL_COMMAND_BARRIER_BIT                          = 0x00000040;
    public static final int GL_PIXEL_BUFFER_BARRIER_BIT                     = 0x00000080;
    public static final int GL_TEXTURE_UPDATE_BARRIER_BIT                   = 0x00000100;
    public static final int GL_BUFFER_UPDATE_BARRIER_BIT                    = 0x00000200;
    public static final int GL_FRAMEBUFFER_BARRIER_BIT                      = 0x00000400;
    public static final int GL_TRANSFORM_FEEDBACK_BARRIER_BIT               = 0x00000800;
    public static final int GL_ATOMIC_COUNTER_BARRIER_BIT                   = 0x00001000;
    public static final int GL_SHADER_STORAGE_BARRIER_BIT                   = 0x00002000;
    public static final int GL_ALL_BARRIER_BITS                             = -1; // 0xFFFFFFFF

    public static final int GL_TEXTURE_WIDTH                                = 0x1000;
    public static final int GL_TEXTURE_HEIGHT                               = 0x1001;
    public static final int GL_TEXTURE_INTERNAL_FORMAT                      = 0x1003;
    public static final int GL_STENCIL_INDEX                                = 0x1901;
    public static final int GL_TEXTURE_RED_SIZE                             = 0x805C;
    public static final int GL_TEXTURE_GREEN_SIZE                           = 0x805D;
    public static final int GL_TEXTURE_BLUE_SIZE                            = 0x805E;
    public static final int GL_TEXTURE_ALPHA_SIZE                           = 0x805F;
    public static final int GL_TEXTURE_DEPTH                                = 0x8071;
    public static final int GL_PROGRAM_SEPARABLE                            = 0x8258;
    public static final int GL_ACTIVE_PROGRAM                               = 0x8259;
    public static final int GL_PROGRAM_PIPELINE_BINDING                     = 0x825A;
    public static final int GL_MAX_COMPUTE_SHARED_MEMORY_SIZE               = 0x8262;
    public static final int GL_MAX_COMPUTE_UNIFORM_COMPONENTS               = 0x8263;
    public static final int GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS           = 0x8264;
    public static final int GL_MAX_COMPUTE_ATOMIC_COUNTERS                  = 0x8265;
    public static final int GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS      = 0x8266;
    public static final int GL_COMPUTE_WORK_GROUP_SIZE                      = 0x8267;
    public static final int GL_MAX_UNIFORM_LOCATIONS                        = 0x826E;
    public static final int GL_VERTEX_ATTRIB_BINDING                        = 0x82D4;
    public static final int GL_VERTEX_ATTRIB_RELATIVE_OFFSET                = 0x82D5;
    public static final int GL_VERTEX_BINDING_DIVISOR                       = 0x82D6;
    public static final int GL_VERTEX_BINDING_OFFSET                        = 0x82D7;
    public static final int GL_VERTEX_BINDING_STRIDE                        = 0x82D8;
    public static final int GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET            = 0x82D9;
    public static final int GL_MAX_VERTEX_ATTRIB_BINDINGS                   = 0x82DA;
    public static final int GL_MAX_VERTEX_ATTRIB_STRIDE                     = 0x82E5;
    public static final int GL_TEXTURE_COMPRESSED                           = 0x86A1;
    public static final int GL_TEXTURE_DEPTH_SIZE                           = 0x884A;
    public static final int GL_READ_ONLY                                    = 0x88B8;
    public static final int GL_WRITE_ONLY                                   = 0x88B9;
    public static final int GL_READ_WRITE                                   = 0x88BA;
    public static final int GL_TEXTURE_STENCIL_SIZE                         = 0x88F1;
    public static final int GL_TEXTURE_RED_TYPE                             = 0x8C10;
    public static final int GL_TEXTURE_GREEN_TYPE                           = 0x8C11;
    public static final int GL_TEXTURE_BLUE_TYPE                            = 0x8C12;
    public static final int GL_TEXTURE_ALPHA_TYPE                           = 0x8C13;
    public static final int GL_TEXTURE_DEPTH_TYPE                           = 0x8C16;
    public static final int GL_TEXTURE_SHARED_SIZE                          = 0x8C3F;
    public static final int GL_SAMPLE_POSITION                              = 0x8E50;
    public static final int GL_SAMPLE_MASK                                  = 0x8E51;
    public static final int GL_SAMPLE_MASK_VALUE                            = 0x8E52;
    public static final int GL_MAX_SAMPLE_MASK_WORDS                        = 0x8E59;
    public static final int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET            = 0x8E5E;
    public static final int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET            = 0x8E5F;
    public static final int GL_MAX_IMAGE_UNITS                              = 0x8F38;
    public static final int GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES         = 0x8F39;
    public static final int GL_IMAGE_BINDING_NAME                           = 0x8F3A;
    public static final int GL_IMAGE_BINDING_LEVEL                          = 0x8F3B;
    public static final int GL_IMAGE_BINDING_LAYERED                        = 0x8F3C;
    public static final int GL_IMAGE_BINDING_LAYER                          = 0x8F3D;
    public static final int GL_IMAGE_BINDING_ACCESS                         = 0x8F3E;
    public static final int GL_DRAW_INDIRECT_BUFFER                         = 0x8F3F;
    public static final int GL_DRAW_INDIRECT_BUFFER_BINDING                 = 0x8F43;
    public static final int GL_VERTEX_BINDING_BUFFER                        = 0x8F4F;
    public static final int GL_IMAGE_2D                                     = 0x904D;
    public static final int GL_IMAGE_3D                                     = 0x904E;
    public static final int GL_IMAGE_CUBE                                   = 0x9050;
    public static final int GL_IMAGE_2D_ARRAY                               = 0x9053;
    public static final int GL_INT_IMAGE_2D                                 = 0x9058;
    public static final int GL_INT_IMAGE_3D                                 = 0x9059;
    public static final int GL_INT_IMAGE_CUBE                               = 0x905B;
    public static final int GL_INT_IMAGE_2D_ARRAY                           = 0x905E;
    public static final int GL_UNSIGNED_INT_IMAGE_2D                        = 0x9063;
    public static final int GL_UNSIGNED_INT_IMAGE_3D                        = 0x9064;
    public static final int GL_UNSIGNED_INT_IMAGE_CUBE                      = 0x9066;
    public static final int GL_UNSIGNED_INT_IMAGE_2D_ARRAY                  = 0x9069;
    public static final int GL_IMAGE_BINDING_FORMAT                         = 0x906E;
    public static final int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE              = 0x90C7;
    public static final int GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE           = 0x90C8;
    public static final int GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS          = 0x90C9;
    public static final int GL_MAX_VERTEX_IMAGE_UNIFORMS                    = 0x90CA;
    public static final int GL_MAX_FRAGMENT_IMAGE_UNIFORMS                  = 0x90CE;
    public static final int GL_MAX_COMBINED_IMAGE_UNIFORMS                  = 0x90CF;
    public static final int GL_SHADER_STORAGE_BUFFER                        = 0x90D2;
    public static final int GL_SHADER_STORAGE_BUFFER_BINDING                = 0x90D3;
    public static final int GL_SHADER_STORAGE_BUFFER_START                  = 0x90D4;
    public static final int GL_SHADER_STORAGE_BUFFER_SIZE                   = 0x90D5;
    public static final int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS             = 0x90D6;
    public static final int GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS           = 0x90DA;
    public static final int GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS            = 0x90DB;
    public static final int GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS           = 0x90DC;
    public static final int GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS           = 0x90DD;
    public static final int GL_MAX_SHADER_STORAGE_BLOCK_SIZE                = 0x90DE;
    public static final int GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT       = 0x90DF;
    public static final int GL_DEPTH_STENCIL_TEXTURE_MODE                   = 0x90EA;
    public static final int GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS           = 0x90EB;
    public static final int GL_DISPATCH_INDIRECT_BUFFER                     = 0x90EE;
    public static final int GL_DISPATCH_INDIRECT_BUFFER_BINDING             = 0x90EF;
    public static final int GL_TEXTURE_2D_MULTISAMPLE                       = 0x9100;
    public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE               = 0x9104;
    public static final int GL_TEXTURE_SAMPLES                              = 0x9106;
    public static final int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS               = 0x9107;
    public static final int GL_SAMPLER_2D_MULTISAMPLE                       = 0x9108;
    public static final int GL_INT_SAMPLER_2D_MULTISAMPLE                   = 0x9109;
    public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE          = 0x910A;
    public static final int GL_MAX_COLOR_TEXTURE_SAMPLES                    = 0x910E;
    public static final int GL_MAX_DEPTH_TEXTURE_SAMPLES                    = 0x910F;
    public static final int GL_MAX_INTEGER_SAMPLES                          = 0x9110;
    public static final int GL_COMPUTE_SHADER                               = 0x91B9;
    public static final int GL_MAX_COMPUTE_UNIFORM_BLOCKS                   = 0x91BB;
    public static final int GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS              = 0x91BC;
    public static final int GL_MAX_COMPUTE_IMAGE_UNIFORMS                   = 0x91BD;
    public static final int GL_MAX_COMPUTE_WORK_GROUP_COUNT                 = 0x91BE;
    public static final int GL_MAX_COMPUTE_WORK_GROUP_SIZE                  = 0x91BF;
    public static final int GL_ATOMIC_COUNTER_BUFFER                        = 0x92C0;
    public static final int GL_ATOMIC_COUNTER_BUFFER_BINDING                = 0x92C1;
    public static final int GL_ATOMIC_COUNTER_BUFFER_START                  = 0x92C2;
    public static final int GL_ATOMIC_COUNTER_BUFFER_SIZE                   = 0x92C3;
    public static final int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS            = 0x92CC;
    public static final int GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS          = 0x92D0;
    public static final int GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS          = 0x92D1;
    public static final int GL_MAX_VERTEX_ATOMIC_COUNTERS                   = 0x92D2;
    public static final int GL_MAX_FRAGMENT_ATOMIC_COUNTERS                 = 0x92D6;
    public static final int GL_MAX_COMBINED_ATOMIC_COUNTERS                 = 0x92D7;
    public static final int GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE               = 0x92D8;
    public static final int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS                = 0x92D9;
    public static final int GL_UNSIGNED_INT_ATOMIC_COUNTER                  = 0x92DB;
    public static final int GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS           = 0x92DC;
    public static final int GL_UNIFORM                                      = 0x92E1;
    public static final int GL_UNIFORM_BLOCK                                = 0x92E2;
    public static final int GL_PROGRAM_INPUT                                = 0x92E3;
    public static final int GL_PROGRAM_OUTPUT                               = 0x92E4;
    public static final int GL_BUFFER_VARIABLE                              = 0x92E5;
    public static final int GL_SHADER_STORAGE_BLOCK                         = 0x92E6;
    public static final int GL_TRANSFORM_FEEDBACK_VARYING                   = 0x92F4;
    public static final int GL_ACTIVE_RESOURCES                             = 0x92F5;
    public static final int GL_MAX_NAME_LENGTH                              = 0x92F6;
    public static final int GL_MAX_NUM_ACTIVE_VARIABLES                     = 0x92F7;
    public static final int GL_NAME_LENGTH                                  = 0x92F9;
    public static final int GL_TYPE                                         = 0x92FA;
    public static final int GL_ARRAY_SIZE                                   = 0x92FB;
    public static final int GL_OFFSET                                       = 0x92FC;
    public static final int GL_BLOCK_INDEX                                  = 0x92FD;
    public static final int GL_ARRAY_STRIDE                                 = 0x92FE;
    public static final int GL_MATRIX_STRIDE                                = 0x92FF;
    public static final int GL_IS_ROW_MAJOR                                 = 0x9300;
    public static final int GL_ATOMIC_COUNTER_BUFFER_INDEX                  = 0x9301;
    public static final int GL_BUFFER_BINDING                               = 0x9302;
    public static final int GL_BUFFER_DATA_SIZE                             = 0x9303;
    public static final int GL_NUM_ACTIVE_VARIABLES                         = 0x9304;
    public static final int GL_ACTIVE_VARIABLES                             = 0x9305;
    public static final int GL_REFERENCED_BY_VERTEX_SHADER                  = 0x9306;
    public static final int GL_REFERENCED_BY_FRAGMENT_SHADER                = 0x930A;
    public static final int GL_REFERENCED_BY_COMPUTE_SHADER                 = 0x930B;
    public static final int GL_TOP_LEVEL_ARRAY_SIZE                         = 0x930C;
    public static final int GL_TOP_LEVEL_ARRAY_STRIDE                       = 0x930D;
    public static final int GL_LOCATION                                     = 0x930E;
    public static final int GL_FRAMEBUFFER_DEFAULT_WIDTH                    = 0x9310;
    public static final int GL_FRAMEBUFFER_DEFAULT_HEIGHT                   = 0x9311;
    public static final int GL_FRAMEBUFFER_DEFAULT_SAMPLES                  = 0x9313;
    public static final int GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS   = 0x9314;
    public static final int GL_MAX_FRAMEBUFFER_WIDTH                        = 0x9315;
    public static final int GL_MAX_FRAMEBUFFER_HEIGHT                       = 0x9316;
    public static final int GL_MAX_FRAMEBUFFER_SAMPLES                      = 0x9318;

    native private static void _nativeClassInit();
    static {
        _nativeClassInit();
    }

    /** @hide */
    GLES31() {}
    // C function void glDispatchCompute ( GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z )

    public static native void glDispatchCompute(
        int num_groups_x,
        int num_groups_y,
        int num_groups_z
    );

    // C function void glDispatchComputeIndirect ( GLintptr indirect );

    public static native void glDispatchComputeIndirect(long indirect);

    // C function void glDrawArraysIndirect ( GLenum mode, const void *indirect );

    public static native void glDrawArraysIndirect(int mode, long indirect);

    // C function glDrawElementsIndirect ( GLenum mode, GLenum type, const void *indirect );

    public static native void glDrawElementsIndirect(int mode, int type, long indirect);

    // C function void glFramebufferParameteri ( GLenum target, GLenum pname, GLint param )

    public static native void glFramebufferParameteri(
        int target,
        int pname,
        int param
    );

    // C function void glGetFramebufferParameteriv ( GLenum target, GLenum pname, GLint *params )

    public static native void glGetFramebufferParameteriv(
        int target,
        int pname,
        int[] params,
        int offset
    );

    // C function void glGetFramebufferParameteriv ( GLenum target, GLenum pname, GLint *params )

    public static native void glGetFramebufferParameteriv(
        int target,
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glGetProgramInterfaceiv ( GLuint program, GLenum programInterface, GLenum pname, GLint *params )

    public static native void glGetProgramInterfaceiv(
        int program,
        int programInterface,
        int pname,
        int[] params,
        int offset
    );

    // C function void glGetProgramInterfaceiv ( GLuint program, GLenum programInterface, GLenum pname, GLint *params )

    public static native void glGetProgramInterfaceiv(
        int program,
        int programInterface,
        int pname,
        java.nio.IntBuffer params
    );

    // C function GLuint glGetProgramResourceIndex ( GLuint program, GLenum programInterface, const GLchar *name )

    public static native int glGetProgramResourceIndex(
        int program,
        int programInterface,
        String name
    );

    // C function void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name )

    public static native String glGetProgramResourceName(
        int program,
        int programInterface,
        int index
    );

    // C function void glGetProgramResourceiv ( GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params )

    public static native void glGetProgramResourceiv(
        int program,
        int programInterface,
        int index,
        int propCount,
        int[] props,
        int propsOffset,
        int bufSize,
        int[] length,
        int lengthOffset,
        int[] params,
        int paramsOffset
    );

    // C function void glGetProgramResourceiv ( GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params )

    public static native void glGetProgramResourceiv(
        int program,
        int programInterface,
        int index,
        int propCount,
        java.nio.IntBuffer props,
        int bufSize,
        java.nio.IntBuffer length,
        java.nio.IntBuffer params
    );

    // C function GLint glGetProgramResourceLocation ( GLuint program, GLenum programInterface, const GLchar *name )

    public static native int glGetProgramResourceLocation(
        int program,
        int programInterface,
        String name
    );

    // C function void glUseProgramStages ( GLuint pipeline, GLbitfield stages, GLuint program )

    public static native void glUseProgramStages(
        int pipeline,
        int stages,
        int program
    );

    // C function void glActiveShaderProgram ( GLuint pipeline, GLuint program )

    public static native void glActiveShaderProgram(
        int pipeline,
        int program
    );

    // C function GLuint glCreateShaderProgramv ( GLenum type, GLsizei count, const GLchar *const *strings )

    public static native int glCreateShaderProgramv(
        int type,
        String[] strings
    );

    // C function void glBindProgramPipeline ( GLuint pipeline )

    public static native void glBindProgramPipeline(
        int pipeline
    );

    // C function void glDeleteProgramPipelines ( GLsizei n, const GLuint *pipelines )

    public static native void glDeleteProgramPipelines(
        int n,
        int[] pipelines,
        int offset
    );

    // C function void glDeleteProgramPipelines ( GLsizei n, const GLuint *pipelines )

    public static native void glDeleteProgramPipelines(
        int n,
        java.nio.IntBuffer pipelines
    );

    // C function void glGenProgramPipelines ( GLsizei n, GLuint *pipelines )

    public static native void glGenProgramPipelines(
        int n,
        int[] pipelines,
        int offset
    );

    // C function void glGenProgramPipelines ( GLsizei n, GLuint *pipelines )

    public static native void glGenProgramPipelines(
        int n,
        java.nio.IntBuffer pipelines
    );

    // C function GLboolean glIsProgramPipeline ( GLuint pipeline )

    public static native boolean glIsProgramPipeline(
        int pipeline
    );

    // C function void glGetProgramPipelineiv ( GLuint pipeline, GLenum pname, GLint *params )

    public static native void glGetProgramPipelineiv(
        int pipeline,
        int pname,
        int[] params,
        int offset
    );

    // C function void glGetProgramPipelineiv ( GLuint pipeline, GLenum pname, GLint *params )

    public static native void glGetProgramPipelineiv(
        int pipeline,
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glProgramUniform1i ( GLuint program, GLint location, GLint v0 )

    public static native void glProgramUniform1i(
        int program,
        int location,
        int v0
    );

    // C function void glProgramUniform2i ( GLuint program, GLint location, GLint v0, GLint v1 )

    public static native void glProgramUniform2i(
        int program,
        int location,
        int v0,
        int v1
    );

    // C function void glProgramUniform3i ( GLuint program, GLint location, GLint v0, GLint v1, GLint v2 )

    public static native void glProgramUniform3i(
        int program,
        int location,
        int v0,
        int v1,
        int v2
    );

    // C function void glProgramUniform4i ( GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3 )

    public static native void glProgramUniform4i(
        int program,
        int location,
        int v0,
        int v1,
        int v2,
        int v3
    );

    // C function void glProgramUniform1ui ( GLuint program, GLint location, GLuint v0 )

    public static native void glProgramUniform1ui(
        int program,
        int location,
        int v0
    );

    // C function void glProgramUniform2ui ( GLuint program, GLint location, GLuint v0, GLuint v1 )

    public static native void glProgramUniform2ui(
        int program,
        int location,
        int v0,
        int v1
    );

    // C function void glProgramUniform3ui ( GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2 )

    public static native void glProgramUniform3ui(
        int program,
        int location,
        int v0,
        int v1,
        int v2
    );

    // C function void glProgramUniform4ui ( GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3 )

    public static native void glProgramUniform4ui(
        int program,
        int location,
        int v0,
        int v1,
        int v2,
        int v3
    );

    // C function void glProgramUniform1f ( GLuint program, GLint location, GLfloat v0 )

    public static native void glProgramUniform1f(
        int program,
        int location,
        float v0
    );

    // C function void glProgramUniform2f ( GLuint program, GLint location, GLfloat v0, GLfloat v1 )

    public static native void glProgramUniform2f(
        int program,
        int location,
        float v0,
        float v1
    );

    // C function void glProgramUniform3f ( GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2 )

    public static native void glProgramUniform3f(
        int program,
        int location,
        float v0,
        float v1,
        float v2
    );

    // C function void glProgramUniform4f ( GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3 )

    public static native void glProgramUniform4f(
        int program,
        int location,
        float v0,
        float v1,
        float v2,
        float v3
    );

    // C function void glProgramUniform1iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform1iv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform1iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform1iv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform2iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform2iv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform2iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform2iv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform3iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform3iv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform3iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform3iv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform4iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform4iv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform4iv ( GLuint program, GLint location, GLsizei count, const GLint *value )

    public static native void glProgramUniform4iv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform1uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform1uiv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform1uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform1uiv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform2uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform2uiv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform2uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform2uiv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform3uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform3uiv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform3uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform3uiv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform4uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform4uiv(
        int program,
        int location,
        int count,
        int[] value,
        int offset
    );

    // C function void glProgramUniform4uiv ( GLuint program, GLint location, GLsizei count, const GLuint *value )

    public static native void glProgramUniform4uiv(
        int program,
        int location,
        int count,
        java.nio.IntBuffer value
    );

    // C function void glProgramUniform1fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform1fv(
        int program,
        int location,
        int count,
        float[] value,
        int offset
    );

    // C function void glProgramUniform1fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform1fv(
        int program,
        int location,
        int count,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniform2fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform2fv(
        int program,
        int location,
        int count,
        float[] value,
        int offset
    );

    // C function void glProgramUniform2fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform2fv(
        int program,
        int location,
        int count,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniform3fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform3fv(
        int program,
        int location,
        int count,
        float[] value,
        int offset
    );

    // C function void glProgramUniform3fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform3fv(
        int program,
        int location,
        int count,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniform4fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform4fv(
        int program,
        int location,
        int count,
        float[] value,
        int offset
    );

    // C function void glProgramUniform4fv ( GLuint program, GLint location, GLsizei count, const GLfloat *value )

    public static native void glProgramUniform4fv(
        int program,
        int location,
        int count,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix2fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix2fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix2fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix2fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix3fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix3fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix3fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix3fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix4fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix4fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix4fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix4fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix2x3fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix2x3fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix2x3fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix2x3fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix3x2fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix3x2fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix3x2fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix3x2fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix2x4fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix2x4fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix2x4fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix2x4fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix4x2fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix4x2fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix4x2fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix4x2fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix3x4fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix3x4fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix3x4fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix3x4fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glProgramUniformMatrix4x3fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix4x3fv(
        int program,
        int location,
        int count,
        boolean transpose,
        float[] value,
        int offset
    );

    // C function void glProgramUniformMatrix4x3fv ( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )

    public static native void glProgramUniformMatrix4x3fv(
        int program,
        int location,
        int count,
        boolean transpose,
        java.nio.FloatBuffer value
    );

    // C function void glValidateProgramPipeline ( GLuint pipeline )

    public static native void glValidateProgramPipeline(
        int pipeline
    );

    // C function void glGetProgramPipelineInfoLog( GLuint program, GLsizei maxLength, GLsizei * length, GLchar * infoLog);

    public static native String glGetProgramPipelineInfoLog(
        int program
    );

    // C function void glBindImageTexture ( GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format )

    public static native void glBindImageTexture(
        int unit,
        int texture,
        int level,
        boolean layered,
        int layer,
        int access,
        int format
    );

    // C function void glGetBooleani_v ( GLenum target, GLuint index, GLboolean *data )

    public static native void glGetBooleani_v(
        int target,
        int index,
        boolean[] data,
        int offset
    );

    // C function void glGetBooleani_v ( GLenum target, GLuint index, GLboolean *data )

    public static native void glGetBooleani_v(
        int target,
        int index,
        java.nio.IntBuffer data
    );

    // C function void glMemoryBarrier ( GLbitfield barriers )

    public static native void glMemoryBarrier(
        int barriers
    );

    // C function void glMemoryBarrierByRegion ( GLbitfield barriers )

    public static native void glMemoryBarrierByRegion(
        int barriers
    );

    // C function void glTexStorage2DMultisample ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations )

    public static native void glTexStorage2DMultisample(
        int target,
        int samples,
        int internalformat,
        int width,
        int height,
        boolean fixedsamplelocations
    );

    // C function void glGetMultisamplefv ( GLenum pname, GLuint index, GLfloat *val )

    public static native void glGetMultisamplefv(
        int pname,
        int index,
        float[] val,
        int offset
    );

    // C function void glGetMultisamplefv ( GLenum pname, GLuint index, GLfloat *val )

    public static native void glGetMultisamplefv(
        int pname,
        int index,
        java.nio.FloatBuffer val
    );

    // C function void glSampleMaski ( GLuint maskNumber, GLbitfield mask )

    public static native void glSampleMaski(
        int maskNumber,
        int mask
    );

    // C function void glGetTexLevelParameteriv ( GLenum target, GLint level, GLenum pname, GLint *params )

    public static native void glGetTexLevelParameteriv(
        int target,
        int level,
        int pname,
        int[] params,
        int offset
    );

    // C function void glGetTexLevelParameteriv ( GLenum target, GLint level, GLenum pname, GLint *params )

    public static native void glGetTexLevelParameteriv(
        int target,
        int level,
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glGetTexLevelParameterfv ( GLenum target, GLint level, GLenum pname, GLfloat *params )

    public static native void glGetTexLevelParameterfv(
        int target,
        int level,
        int pname,
        float[] params,
        int offset
    );

    // C function void glGetTexLevelParameterfv ( GLenum target, GLint level, GLenum pname, GLfloat *params )

    public static native void glGetTexLevelParameterfv(
        int target,
        int level,
        int pname,
        java.nio.FloatBuffer params
    );

    // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride )

    public static native void glBindVertexBuffer(
        int bindingindex,
        int buffer,
        long offset,
        int stride
    );

    // C function void glVertexAttribFormat ( GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset )

    public static native void glVertexAttribFormat(
        int attribindex,
        int size,
        int type,
        boolean normalized,
        int relativeoffset
    );

    // C function void glVertexAttribIFormat ( GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset )

    public static native void glVertexAttribIFormat(
        int attribindex,
        int size,
        int type,
        int relativeoffset
    );

    // C function void glVertexAttribBinding ( GLuint attribindex, GLuint bindingindex )

    public static native void glVertexAttribBinding(
        int attribindex,
        int bindingindex
    );

    // C function void glVertexBindingDivisor ( GLuint bindingindex, GLuint divisor )

    public static native void glVertexBindingDivisor(
        int bindingindex,
        int divisor
    );

}


text:
<!DOCTYPE html>

    <title>Telerik Academy Courses</title>

    <link href="css/bootstrap.css" rel="stylesheet" />

    <link href="css/site.css" rel="stylesheet" />

JS Apps Crowd Sharing

Last 100 posts:

            <input type="text" id="tb-message-submit" autofocus /><button id="btn-message-submit">Send</button>

            © Telerik Academy 2014

redpajama_set_name: RedPajamaGithub


text:
package util

import (
	"fmt"
	storagev1 "k8s.io/api/storage/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/labels"
	storagev1listers "k8s.io/client-go/listers/storage/v1"
	"k8s.io/klog/v2"
)

const (
	// isDefaultStorageClassAnnotation represents a StorageClass annotation that
	// marks a class as the default StorageClass
	IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"

	// betaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
	// TODO: remove Beta when no longer used
	BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
)

// GetDefaultClass returns the default StorageClass from the store, or nil.
func GetDefaultClass(lister storagev1listers.StorageClassLister) (*storagev1.StorageClass, error) {
	list, err := lister.List(labels.Everything())
	if err != nil {
		return nil, err
	}

	defaultClasses := []*storagev1.StorageClass{}
	for _, class := range list {
		if IsDefaultAnnotation(class.ObjectMeta) {
			defaultClasses = append(defaultClasses, class)
			klog.V(4).Infof("GetDefaultClass added: %s", class.Name)
		}
	}

	if len(defaultClasses) == 0 {
		return nil, nil
	}
	if len(defaultClasses) > 1 {
		klog.V(4).Infof("GetDefaultClass %d defaults found", len(defaultClasses))
		return nil, errors.NewInternalError(fmt.Errorf("%d default StorageClasses were found", len(defaultClasses)))
	}
	return defaultClasses[0], nil
}

// IsDefaultAnnotation returns a boolean if the default storage class
// annotation is set
// TODO: remove Beta when no longer needed
func IsDefaultAnnotation(obj metav1.ObjectMeta) bool {
	if obj.Annotations[IsDefaultStorageClassAnnotation] == "true" {
		return true
	}
	if obj.Annotations[BetaIsDefaultStorageClassAnnotation] == "true" {
		return true
	}

	return false
}


text:
// generated on 2016-07-04 using generator-webapp 2.1.0
const gulp = require('gulp');
const gulpLoadPlugins = require('gulp-load-plugins');
const browserSync = require('browser-sync');                    // live reload
const del = require('del');                                     // cleaning up things
const wiredep = require('wiredep').stream;                      // injecting 3rd party libs into html
const inject = require('gulp-inject');                          // injecting own files into html
const RevAll = require('gulp-rev-all');                         // hashing assets
const debug = require('gulp-using');                            // debugging gulp tasks
const include = require("gulp-include");                        // Include dependencies required from *.js files

const $ = gulpLoadPlugins();
const reload = browserSync.reload;                       // live reload

gulp.task('styles', () => {
  return gulp.src('app/styles/main.scss')
    .pipe($.plumber())
    .pipe($.sourcemaps.init())
    .pipe($.sass.sync({
      outputStyle: 'expanded',
      precision: 10,
      includePaths: ['.']
    }).on('error', $.sass.logError))
    .pipe($.autoprefixer({browsers: ['> 1%', 'last 2 versions', 'Firefox ESR']}))
    .pipe($.sourcemaps.write())
    .pipe(gulp.dest('.tmp/styles'))
    .pipe(reload({stream: true}));
});

gulp.task('scripts', () => {
  return gulp.src('app/scripts/**/*.js')
    .pipe(include())
    .pipe($.plumber())
    .pipe($.sourcemaps.init())
    .pipe($.babel())
    .pipe($.sourcemaps.write('.'))
    .pipe(gulp.dest('.tmp/scripts'))
    .pipe(reload({stream: true}));
});

function lint(files, options) {
  return gulp.src(files)
    .pipe(reload({stream: true, once: true}))
    .pipe($.eslint(options))
    .pipe($.eslint.format())
    .pipe($.if(!browserSync.active, $.eslint.failAfterError()));
}

gulp.task('lint', () => {
  return lint('app/scripts/**/*.js', {
    fix: true
  })
    .pipe(gulp.dest('app/scripts'));
});
gulp.task('lint:test', () => {
  return lint('test/spec/**/*.js', {
    fix: true,
    env: {
      mocha: true
    }
  })
    .pipe(gulp.dest('test/spec/**/*.js'));
});

gulp.task('html', ['styles', 'scripts'], () => {
  var revAll = new RevAll({ dontRenameFile: ['.html'] });
  return gulp.src('app/*.html')
    .pipe($.useref({searchPath: ['.tmp', 'app', '.']}))
    .pipe($.if('*.js', $.uglify()))
    .pipe($.if('*.css', $.cssnano({safe: true, autoprefixer: false})))
    .pipe($.if('*.html', $.htmlmin({collapseWhitespace: true})))
    .pipe(revAll.revision())
    .pipe(gulp.dest('dist'));
});

gulp.task('images', () => {
  return gulp.src('app/images/**/*')
    .pipe($.cache($.imagemin({
      progressive: true,
      interlaced: true,
      // don't remove IDs from SVGs, they are often used
      // as hooks for embedding and styling
      svgoPlugins: [{cleanupIDs: false}]
    })))
    .pipe(gulp.dest('dist/images'));
});

gulp.task('videos', () => {
  return gulp.src('app/videos/**/*')
    .pipe(gulp.dest('dist/videos'));
});

gulp.task('fonts', () => {
  return gulp.src(require('main-bower-files')('**/*.{eot,svg,ttf,woff,woff2}', function (err) {})
    .concat('app/fonts/**/*'))
    .pipe(gulp.dest('.tmp/fonts'))
    .pipe(gulp.dest('dist/fonts'));
});

gulp.task('extras', () => {
  return gulp.src([
    'app/*.*',
    '!app/*.html'
  ], {
    dot: true
  }).pipe(gulp.dest('dist'));
});

gulp.task('clean', del.bind(null, ['.tmp', 'dist']));

gulp.task('serve', ['styles', 'scripts', 'fonts'], () => {
  browserSync({
    notify: false,
    port: 9000,
    server: {
      baseDir: ['.tmp', 'app'],
      routes: {
        '/bower_components': 'bower_components'
      }
    }
  });

  gulp.watch([
    'app/*.html',
    'app/images/**/*',
    'app/videos/**/*',
    '.tmp/fonts/**/*'
  ]).on('change', reload);

  gulp.watch('app/styles/**/*.scss', ['styles', 'inject-own']);
  gulp.watch('app/scripts/**/*.js', ['scripts', 'inject-own']);
  gulp.watch('app/fonts/**/*', ['fonts']);
  gulp.watch('bower.json', ['wiredep', 'fonts']);
});

gulp.task('serve:dist', () => {
  browserSync({
    notify: false,
    port: 9000,
    server: {
      baseDir: ['dist']
    }
  });
});

gulp.task('serve:test', ['scripts'], () => {
  browserSync({
    notify: false,
    port: 9000,
    ui: false,
    server: {
      baseDir: 'test',
      routes: {
        '/scripts': '.tmp/scripts',
        '/bower_components': 'bower_components'
      }
    }
  });

  gulp.watch('app/scripts/**/*.js', ['scripts']);
  gulp.watch('test/spec/**/*.js').on('change', reload);
  gulp.watch('test/spec/**/*.js', ['lint:test']);
});

// inject bower components
gulp.task('wiredep', () => {
  return gulp.src('app/*.html')
    .pipe(wiredep({
      ignorePath: /^(\.\.\/)*\.\./,
      exclude: 'bower_components/uikit/css/uikit.min.css'
    }))
    .pipe(gulp.dest('app'));
});

// inject own components
gulp.task('inject-own', () => {
  var target = gulp.src('app/*.html');
  var sources = gulp.src(['.tmp/scripts/**/*.js', '.tmp/styles/**/*.css'], {read: false});

  return target
    .pipe(inject(sources, { ignorePath: '.tmp', addRootSlash: false }))
    .pipe(gulp.dest('app'));
});

gulp.task('build', ['lint', 'html', 'images', 'videos', 'fonts', 'extras'], () => {
  return gulp.src('dist/**/*').pipe($.size({title: 'build', gzip: true}));
});

gulp.task('default', ['clean'], () => {
  gulp.start('build');
});


text:
class UserGroup < ActiveRecord::Base

  attr_accessible :user_id, :group_id

  belongs_to :user
  belongs_to :group

  attr_accessible :edit, :manage, :read
end


text:
#if NON_UNITY

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;

namespace MagicOnion.Utils
{
    public class DuplicateKeyException : Exception
    {
        public int HashCode { get; }

        public DuplicateKeyException(int hashCode)
            : base("Duplicated. HashCode:" + hashCode)
        {
            HashCode = hashCode;
        }
    }

    /*
        < 10000 String.GetHashCode is almost unique.
        For example, Class/Methods lookup can avoid raw string lookup.
    */
    public class UniqueHashDictionary<T>
    {
        (int hash, T value)[][] table;
        int indexFor;
        int count;
        int maxConflict; // debugging for perf.

        public int Count => count;
        public int MaxConflict => maxConflict;

        public UniqueHashDictionary(params (int hashCode, T value)[] values)
        {
            CreateTable(values);
        }

        void CreateTable((int hashCode, T value)[] values)
        {
            var capacity = CalculateCapacity(values.Length, 0.72f);

            table = new (int, T)[capacity][];
            indexFor = table.Length - 1;
            count = values.Length;

            for (int i = 0; i < values.Length; i++)
            {
                ref var v = ref values[i];

                var index = v.hashCode & indexFor;
                if (table[index] == null)
                {
                    // first case.
                    table[index] = new (int, T)[1] { v };
                    continue;
                }
                else
                {
                    ref var t = ref table[index];

                    // check duplicate
                    foreach (var item in t)
                    {
                        if (item.hash == v.hashCode)
                        {
                            throw new DuplicateKeyException(v.hashCode);
                        }
                    }

                    // add last
                    Array.Resize(ref t, t.Length + 1);
                    t[t.Length - 1] = v;

                    maxConflict = Math.Max(maxConflict, t.Length);
                }
            }
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public bool TryGetValue(int hashCode, out T value)
        {
            ref var array = ref table[hashCode & indexFor];
            if (array == null)
            {
                value = default(T);
                return false;
            }

            ref var v = ref array[0];
            if (v.hash == hashCode)
            {
                value = v.value;
                return true;
            }

            return TryGetValueSlow(ref array, hashCode, out value);
        }

        [MethodImpl(MethodImplOptions.NoInlining)]
        bool TryGetValueSlow(ref (int, T)[] array, int hashCode, out T value)
        {
            for (int i = 1; i < array.Length; i++) // 0 is already checked.
            {
                ref var v = ref array[i];
                if (v.Item1 == hashCode)
                {
                    value = v.Item2;
                    return true;
                }
            }

            value = default(T);
            return false;
        }

        public IEnumerable<T> AllValues()
        {
            foreach (var item in table)
            {
                if (item != null)
                {
                    foreach (var item2 in item)
                    {
                        yield return item2.value;
                    }
                }
            }
        }

        static int CalculateCapacity(int collectionSize, float loadFactor)
        {
            var size = (int)(((float)collectionSize) / loadFactor);

            size--;
            size |= size >> 1;
            size |= size >> 2;
            size |= size >> 4;
            size |= size >> 8;
            size |= size >> 16;
            size += 1;

            // specialize adjust
            if (size < 128)
            {
                size = 128;
            }
            return size;
        }

        public override string ToString()
        {
            return $"Count:{Count} MaxConflict:{MaxConflict}";
        }
    }
}

#endif


text:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@anim/decelerate_interpolator_25">
    <translate
        android:duration="@integer/anim_duration"
        android:fromXDelta="-100%p"
        android:toXDelta="0" />
</set>


text:
package com.hpw.myapp;

/**
 * Created by hpw on 16/11/3.
 */

public class Constants {
    public static final String ARG_DAILY_ID = "arg_daily_id";
    public static final String ARG_SECTION_LIST_ID = "arg_section_list_id";
    public static final String ARG_SECTION_LIST_TITLE = "arg_section_list_title";
    public static final String ARG_OTHER_LIST_URL = "arg_other_list_url";
    public static final String ARG_POSITION = "arg_position";
    public static final String WEIXIN_KEY = "3d88f5fb6e5a1fbf2921dbb643f25894";
    public static final String ARG_POSITION_TV = "arg_position_tv";
    public static final String ARG_POIITEM = "arg_poiitem";
}


text:
namespace content {
class BrowserContext;
}

class ParentPermissionDialog;

namespace extensions {

class SupervisedUserExtensionsDelegateImpl
    : public extensions::SupervisedUserExtensionsDelegate {
 public:
  SupervisedUserExtensionsDelegateImpl();
  ~SupervisedUserExtensionsDelegateImpl() override;

  // extensions::SupervisedUserExtensionsDelegate overrides
  bool IsChild(content::BrowserContext* context) const override;
  bool IsExtensionAllowedByParent(
      const extensions::Extension& extension,
      content::BrowserContext* context) const override;
  void PromptForParentPermissionOrShowError(
      const extensions::Extension& extension,
      content::BrowserContext* browser_context,
      content::WebContents* web_contents,
      ParentPermissionDialogDoneCallback parent_permission_callback,
      base::OnceClosure error_callback) override;

 private:
  // Returns true if |context| represents a supervised child account who may
  // install extensions with parent permission.
  bool CanInstallExtensions(content::BrowserContext* context) const;

  // Shows a parent permission dialog for |extension| and call |done_callback|
  // when it completes.
  void ShowParentPermissionDialogForExtension(
      const extensions::Extension& extension,
      content::BrowserContext* context,
      content::WebContents* contents,
      extensions::SupervisedUserExtensionsDelegate::
          ParentPermissionDialogDoneCallback done_callback);

  // Shows a dialog indicating that |extension| has been blocked and call
  // |done_callback| when it completes.
  void ShowExtensionEnableBlockedByParentDialogForExtension(
      const extensions::Extension& extension,
      content::WebContents* contents,
      base::OnceClosure done_callback);

  std::unique_ptr<ParentPermissionDialog> parent_permission_dialog_;
};

}  // namespace extensions

#endif  // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_EXTENSIONS_DELEGATE_IMPL_H_


text:
using namespace boost;
using namespace boost::interprocess;
using namespace boost::posix_time;

static void ipcThread2(void* pArg);

#ifdef MAC_OSX
// URI handling not implemented on OSX yet

void ipcInit() { }

#else

static void ipcThread(void* pArg)
{
    IMPLEMENT_RANDOMIZE_STACK(ipcThread(pArg));

    // Make this thread recognisable as the GUI-IPC thread
    RenameThread("bitcoin-gui-ipc");

    try
    {
        ipcThread2(pArg);
    }
    catch (std::exception& e) {
        PrintExceptionContinue(&e, "ipcThread()");
    } catch (...) {
        PrintExceptionContinue(NULL, "ipcThread()");
    }
    printf("ipcThread exited\n");
}

static void ipcThread2(void* pArg)
{
    printf("ipcThread started\n");

    message_queue* mq = (message_queue*)pArg;
    char buffer[MAX_URI_LENGTH + 1] = "";
    size_t nSize = 0;
    unsigned int nPriority = 0;

    loop
    {
        ptime d = boost::posix_time::microsec_clock::universal_time() + millisec(100);
        if (mq->timed_receive(&buffer, sizeof(buffer), nSize, nPriority, d))
        {
            uiInterface.ThreadSafeHandleURI(std::string(buffer, nSize));
            Sleep(1000);
        }

        if (fShutdown)
            break;
    }

    // Remove message queue
    message_queue::remove(BITCOINURI_QUEUE_NAME);
    // Cleanup allocated memory
    delete mq;
}

void ipcInit()
{
    message_queue* mq = NULL;
    char buffer[MAX_URI_LENGTH + 1] = "";
    size_t nSize = 0;
    unsigned int nPriority = 0;

    try {
        mq = new message_queue(open_or_create, BITCOINURI_QUEUE_NAME, 2, MAX_URI_LENGTH);

        // Make sure we don't lose any bitlira: URIs
        for (int i = 0; i < 2; i++)
        {
            ptime d = boost::posix_time::microsec_clock::universal_time() + millisec(1);
            if (mq->timed_receive(&buffer, sizeof(buffer), nSize, nPriority, d))
            {
                uiInterface.ThreadSafeHandleURI(std::string(buffer, nSize));
            }
            else
                break;
        }

        // Make sure only one instance is listening
        message_queue::remove(BITCOINURI_QUEUE_NAME);
        delete mq;

        mq = new message_queue(open_or_create, BITCOINURI_QUEUE_NAME, 2, MAX_URI_LENGTH);
    }
    catch (interprocess_exception &ex) {
        printf("ipcInit() - boost interprocess exception #%d: %s\n", ex.get_error_code(), ex.what());
        return;
    }

    if (!CreateThread(ipcThread, mq))
    {
        delete mq;
        return;
    }
}

#endif


text:
This is a little toy I write when I learn python's asynchron.<br>
By reference to the nodejs package [node-spider](https://github.com/flesler/node-spider), I write this "aiospider".They have similar apis.

But because of the difference between python and javascript, I can't convert `splice` to `remove` simplily when I want to control the maximum of tasks.

Fortunately I found this [crawler-demo](https://github.com/aosabook/500lines/tree/master/crawler). It just uses a list of which length exactly is the maximum concurrent number. Just look like this:
```python
workers = [asyncio.Task(work(), loop=loop) for _ in range(max_tasks)]
await Queue.join()
for w in workers:
    w.cancel()
```

## Install:
```
    python3 setup.py install
    pip install -r requirements.txt
```
## Example:
```python
from aiospider import Spider
with Spider() as ss:
    async def parse_page(response):
        '''
        callback
        The response is just an aiohttp.ClientResponse object now.
        '''
        print("request url is %s, response status is %d"%(response.url,response.status))
    ss.start('https://www.python.org/',parse_page)
'''
my result : request url is https://www.python.org/, response status is 200
'''
```
# TODO
1. <del> request and callback exception handle <del>
2. <del> taskqueue call task with multi-parameter </del>
3. wrap request , add proxy, etc.
4. wrap response


text:
// Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.security.zynamics.binnavi.debug.models.targetinformation;

import com.google.common.base.Preconditions;

/**
 * This class is used to describe a CPU register. This information is necessary for displaying and
 * updating registers.
 */
public final class RegisterDescription {
  /**
   * Name of the described register.
   */
  private final String name;

  /**
   * Size of the register in bytes.
   */
  private final int byteSize;

  /**
   * Flag that determines whether the register is editable or not.
   */
  private final boolean isEditable;

  /**
   * Creates a new register description object.
   *
   * @param name Name of the described register.
   * @param size Size of the register in bytes.
   * @param editable Flag that determines whether the register is editable or not.
   */
  public RegisterDescription(final String name, final int size, final boolean editable) {
    this.name = Preconditions.checkNotNull(name, "IE01031: Name argument can not be null");
    if (!isValidSize(size)) {
      throw new IllegalArgumentException(String.format("IE01032: Invalid register size %d", size));
    }
    byteSize = size;
    isEditable = editable;
  }

  /**
   * Determines whether an integer value is a valid register size.
   *
   * @param size The size value to check.
   *
   * @return True, if the value is a valid register size value. False, otherwise.
   */
  private static boolean isValidSize(final int size) {
    return size == 0 || size == 1 || size == 2 || size == 4 || size == 8;
  }

  /**
   * Returns the name of the described register.
   *
   * @return The name of the described register.
   */
  public String getName() {
    return name;
  }

  /**
   * Returns the size in bytes of the described register.
   *
   * @return The size in bytes of the described register.
   */
  public int getSize() {
    return byteSize;
  }

  /**
   * Returns a flag that says whether the register is editable or not.
   *
   * @return True, if the register is editable. False, otherwise.
   */
  public boolean isEditable() {
    return isEditable;
  }
}


text:
Supports https devices on the HomeBridge Platform and provides a real time polling for getting the "On" and brightness level characteristics to Homekit. Includes Switch, Light, Door, Smoke and Motion sensor polling.

# Installation

1. Install homebridge using: npm install -g homebridge
2. Install this plugin by cloning this repo.
3. Update your configuration file. See sample-config.json in this repository for a sample.

# Configuration

The configuration for this plugin is the same as [homebridge-http](https://github.com/rudders/homebridge-http) but includes an additional method to read the power state of the device and the brightness level. Specify the `status_url` in your config.json that returns the status of the device as an integer (0 = off, 1 = on). Specify the `brightnesslvl_url` to return the current brighness level as an integer.

Switch handling and brightness handling support 3 methods, yes for polling on app load, realtime for constant polling or no polling

Configuration sample:

 ```
"accessories": [
	{
		"accessory": "Http",
		"name": "Alfresco Lamp",
		"switchHandling": "realtime",
		"http_method": "GET",
		"on_url":      "http://localhost/controller/1700/ON",
		"off_url":     "http://localhost/controller/1700/OFF",
		"status_url":  "http://localhost/status/100059",
		"service": "Light",
		"brightnessHandling": "yes",
		"brightness_url":     "http://localhost/controller/1707/%b",
		"brightnesslvl_url":  "http://localhost/status/100054",
		"sendimmediately": "",
		"username" : "",
		"password" : ""
       }
    ]
```

# Services

Each service shows up as a specific HomeKit device.

Service|URL Type|Data format|Description
-------|--------|-----------|------------
Lux|brightnesslvl_url|JSON: { "lightlevel": 94.00 }|Ambient light sensor
Occupancy|status_url|Integer: 1 or 0|Occupancy Sensor
Motion|status_url|Integer: 1 or 0|Motion Sensor
Light|status_url|Integer: 1 or 0|Switch status for the light
Light|brightnesslvl_url| Integer: 0 to 100|Current brightness percentage for the light


text:
package org.tpl.fitnesszone.fragment;

import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;

import org.tpl.fitnesszone.activity.WorkoutTrackerActivity;

import java.util.Calendar;

public class DatePickerFragment extends DialogFragment {

    // onCreateDialog(Bundle) used instead of onCreateView(LayoutInflater, ViewGroup, Bundle)
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {

        // Use the current date as the default date in the picker
        final Calendar calendar = Calendar.getInstance();
        int year = calendar.get(Calendar.YEAR);
        int month = calendar.get(Calendar.MONTH);
        int day = calendar.get(Calendar.DAY_OF_MONTH);

        // Create a new instance of the DatePickerDialog and return it
        return new DatePickerDialog(getActivity(), (WorkoutTrackerActivity)getActivity(), year, month, day);
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

<entity-engine-xml>

    <Geo abbreviation="HK" geoCode="01" geoId="JP-01" geoName="北海道" geoTypeId="PROVINCE" wellKnownText="Hokkaido"/>
    <Geo abbreviation="AO" geoCode="02" geoId="JP-02" geoName="青森県" geoTypeId="PROVINCE" wellKnownText="Aomori"/>
    <Geo abbreviation="IT" geoCode="03" geoId="JP-03" geoName="岩手県" geoTypeId="PROVINCE" wellKnownText="Iwate"/>
    <Geo abbreviation="MG" geoCode="04" geoId="JP-04" geoName="宮城県" geoTypeId="PROVINCE" wellKnownText="Miyagi"/>
    <Geo abbreviation="AK" geoCode="05" geoId="JP-05" geoName="秋田県" geoTypeId="PROVINCE" wellKnownText="Akita"/>
    <Geo abbreviation="YG" geoCode="06" geoId="JP-06" geoName="山形県" geoTypeId="PROVINCE" wellKnownText="Yamagata"/>
    <Geo abbreviation="FS" geoCode="07" geoId="JP-07" geoName="福島県" geoTypeId="PROVINCE" wellKnownText="Fukushima"/>
    <Geo abbreviation="IB" geoCode="08" geoId="JP-08" geoName="茨城県" geoTypeId="PROVINCE" wellKnownText="Ibaraki"/>
    <Geo abbreviation="TC" geoCode="09" geoId="JP-09" geoName="栃木県" geoTypeId="PROVINCE" wellKnownText="Tochigi"/>
    <Geo abbreviation="GU" geoCode="10" geoId="JP-10" geoName="群馬県" geoTypeId="PROVINCE" wellKnownText="Gunma"/>
    <Geo abbreviation="ST" geoCode="11" geoId="JP-11" geoName="埼玉県" geoTypeId="PROVINCE" wellKnownText="Saitama"/>
    <Geo abbreviation="CB" geoCode="12" geoId="JP-12" geoName="千葉県" geoTypeId="PROVINCE" wellKnownText="Chiba"/>
    <Geo abbreviation="TY" geoCode="13" geoId="JP-13" geoName="東京都" geoTypeId="PROVINCE" wellKnownText="Tokyo"/>
    <Geo abbreviation="KN" geoCode="14" geoId="JP-14" geoName="神奈川県" geoTypeId="PROVINCE" wellKnownText="Kanagawa"/>
    <Geo abbreviation="NI" geoCode="15" geoId="JP-15" geoName="新潟県" geoTypeId="PROVINCE" wellKnownText="Niigata"/>
    <Geo abbreviation="TM" geoCode="16" geoId="JP-16" geoName="富山県" geoTypeId="PROVINCE" wellKnownText="Toyama"/>
    <Geo abbreviation="IS" geoCode="17" geoId="JP-17" geoName="石川県" geoTypeId="PROVINCE" wellKnownText="Ishikawa"/>
    <Geo abbreviation="FI" geoCode="18" geoId="JP-18" geoName="福井県" geoTypeId="PROVINCE" wellKnownText="Fukui"/>
    <Geo abbreviation="YN" geoCode="19" geoId="JP-19" geoName="山梨県" geoTypeId="PROVINCE" wellKnownText="Yamanashi"/>
    <Geo abbreviation="NA" geoCode="20" geoId="JP-20" geoName="長野県" geoTypeId="PROVINCE" wellKnownText="Nagano"/>
    <Geo abbreviation="GI" geoCode="21" geoId="JP-21" geoName="岐阜県" geoTypeId="PROVINCE" wellKnownText="Gifu"/>
    <Geo abbreviation="SZ" geoCode="22" geoId="JP-22" geoName="静岡県" geoTypeId="PROVINCE" wellKnownText="Shizuoka"/>
    <Geo abbreviation="AI" geoCode="23" geoId="JP-23" geoName="愛知県" geoTypeId="PROVINCE" wellKnownText="Aichi"/>
    <Geo abbreviation="ME" geoCode="24" geoId="JP-24" geoName="三重県" geoTypeId="PROVINCE" wellKnownText="Mie"/>
    <Geo abbreviation="SI" geoCode="25" geoId="JP-25" geoName="滋賀県" geoTypeId="PROVINCE" wellKnownText="Shiga"/>
    <Geo abbreviation="KY" geoCode="26" geoId="JP-26" geoName="京都府" geoTypeId="PROVINCE" wellKnownText="Kyoto"/>
    <Geo abbreviation="OS" geoCode="27" geoId="JP-27" geoName="大阪府" geoTypeId="PROVINCE" wellKnownText="Osaka"/>
    <Geo abbreviation="HG" geoCode="28" geoId="JP-28" geoName="兵庫県" geoTypeId="PROVINCE" wellKnownText="Hyogo"/>
    <Geo abbreviation="NR" geoCode="29" geoId="JP-29" geoName="奈良県" geoTypeId="PROVINCE" wellKnownText="Nara"/>
    <Geo abbreviation="WA" geoCode="30" geoId="JP-30" geoName="和歌山県" geoTypeId="PROVINCE" wellKnownText="Wakayama"/>
    <Geo abbreviation="TT" geoCode="31" geoId="JP-31" geoName="鳥取県" geoTypeId="PROVINCE" wellKnownText="Tottori"/>
    <Geo abbreviation="SM" geoCode="32" geoId="JP-32" geoName="島根県" geoTypeId="PROVINCE" wellKnownText="Shimane"/>
    <Geo abbreviation="OY" geoCode="33" geoId="JP-33" geoName="岡山県" geoTypeId="PROVINCE" wellKnownText="Okayama"/>
    <Geo abbreviation="HS" geoCode="34" geoId="JP-34" geoName="広島県" geoTypeId="PROVINCE" wellKnownText="Hiroshima"/>
    <Geo abbreviation="YA" geoCode="35" geoId="JP-35" geoName="山口県" geoTypeId="PROVINCE" wellKnownText="Yamaguchi"/>
    <Geo abbreviation="TK" geoCode="36" geoId="JP-36" geoName="徳島県" geoTypeId="PROVINCE" wellKnownText="Tokushima"/>
    <Geo abbreviation="KA" geoCode="37" geoId="JP-37" geoName="香川県" geoTypeId="PROVINCE" wellKnownText="Kagawa"/>
    <Geo abbreviation="EH" geoCode="38" geoId="JP-38" geoName="愛媛県" geoTypeId="PROVINCE" wellKnownText="Ehime"/>
    <Geo abbreviation="KO" geoCode="39" geoId="JP-39" geoName="高知県" geoTypeId="PROVINCE" wellKnownText="Kochi"/>
    <Geo abbreviation="FO" geoCode="40" geoId="JP-40" geoName="福岡県" geoTypeId="PROVINCE" wellKnownText="Fukuoka"/>
    <Geo abbreviation="SG" geoCode="41" geoId="JP-41" geoName="佐賀県" geoTypeId="PROVINCE" wellKnownText="Saga"/>
    <Geo abbreviation="NS" geoCode="42" geoId="JP-42" geoName="長崎県" geoTypeId="PROVINCE" wellKnownText="Nagasaki"/>
    <Geo abbreviation="KU" geoCode="43" geoId="JP-43" geoName="熊本県" geoTypeId="PROVINCE" wellKnownText="Kumamoto"/>
    <Geo abbreviation="OI" geoCode="44" geoId="JP-44" geoName="大分県" geoTypeId="PROVINCE" wellKnownText="Oita"/>
    <Geo abbreviation="MZ" geoCode="45" geoId="JP-45" geoName="宮崎県" geoTypeId="PROVINCE" wellKnownText="Miyazaki"/>
    <Geo abbreviation="KG" geoCode="46" geoId="JP-46" geoName="鹿児島県" geoTypeId="PROVINCE" wellKnownText="Kagoshima"/>
    <Geo abbreviation="OK" geoCode="47" geoId="JP-47" geoName="沖縄県" geoTypeId="PROVINCE" wellKnownText="Okinawa"/>

    <GeoAssoc geoId="JPN" geoIdTo="JP-01" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-02" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-03" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-04" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-05" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-06" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-07" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-08" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-09" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-10" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-11" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-12" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-13" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-14" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-15" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-16" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-17" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-18" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-19" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-20" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-21" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-22" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-23" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-24" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-25" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-26" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-27" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-28" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-29" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-30" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-31" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-32" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-33" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-34" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-35" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-36" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-37" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-38" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-39" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-40" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-41" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-42" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-43" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-44" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-45" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-46" geoAssocTypeId="REGIONS"/>
    <GeoAssoc geoId="JPN" geoIdTo="JP-47" geoAssocTypeId="REGIONS"/>
</entity-engine-xml>


text:
using System.Threading;
using System.Threading.Tasks;
using Lime.Protocol;
using Take.Blip.Client.Extensions.Tunnel;
using Takenet.Iris.Messaging.Resources;

namespace Take.Blip.Builder.Variables
{
    public class TunnelVariableProvider : IVariableProvider
    {
        private readonly ITunnelExtension _tunnelExtension;

        public TunnelVariableProvider(ITunnelExtension tunnelExtension)
        {
            _tunnelExtension = tunnelExtension;
        }

        public VariableSource Source => VariableSource.Tunnel;

        public async Task<string> GetVariableAsync(string name, IContext context, CancellationToken cancellationToken)
        {
            var tunnel = await _tunnelExtension.TryGetTunnelAsync(context.Input.Message, cancellationToken);
            if (tunnel == null) return null;

            return GetVariable(name, tunnel, context.Input.Message.From.ToIdentity());
        }

        private static string GetVariable(string name, Tunnel tunnelInformation, Identity tunnelIdentity)
        {
            switch (name)
            {
                case "owner":
                    return tunnelInformation.Owner;

                case "originator":
                    return tunnelInformation.Originator;

                case "destination":
                    return tunnelInformation.Destination;

                case "identity":
                    return tunnelIdentity;

                default:
                    return null;
            }
        }
    }
}


text:
/* See LICENSE for licensing information */

/**
 * \file Sperocoin.h
 * \brief Headers for Sperocoin.cpp
 **/

#ifndef TOR_SperoCoin_H
#define TOR_SperoCoin_H

#ifdef __cplusplus
extern "C" {
#endif

    char const* SperoCoin_tor_data_directory(
    );

    char const* SperoCoin_service_directory(
    );

    int check_interrupted(
    );

    void set_initialized(
    );

    void wait_initialized(
    );

#ifdef __cplusplus
}
#endif

#endif


text:
package org.apache.jena.shacl.validation.event;

/**
 * Tagging interface for all events relating to the 'lifecyle' of a SHACL
 * validation (validation started/finished, focus nodes determined, etc.)
 */
public interface ValidationLifecycleEvent extends ValidationEvent {
}