text:
#pragma once

typedef struct ir_unit ir_unit_t;

typedef enum {
  VMIR_LOG_FAIL  = 0,
  VMIR_LOG_ERROR = 1,
  VMIR_LOG_INFO  = 2,
  VMIR_LOG_DEBUG = 3,
} vmir_log_level_t;

typedef void (vmir_logger_t)(ir_unit_t *iu, vmir_log_level_t level,
                             const char *str);

typedef enum {
  VMIR_ERR_NOT_BITCODE = -1,
  VMIR_ERR_LOAD_ERROR = -2,
  VMIR_ERR_INVALID_ARGS = -3,
  VMIR_ERR_FS_ERROR = -4,  // Add more specific errors
} vmir_errcode_t;

typedef enum {
  VMIR_FS_OPEN_READ    = 0x1,   // Open file for reading
  VMIR_FS_OPEN_WRITE   = 0x2,   // Open file for writing
  VMIR_FS_OPEN_RW      = 0x3,   // Read + Write
  VMIR_FS_OPEN_CREATE  = 0x4,   // Create file if not exist
  VMIR_FS_OPEN_TRUNC   = 0x8,   // Truncate file
  VMIR_FS_OPEN_APPEND  = 0x10,  // Position file pointer at end of file
} vmir_openflags_t;

typedef struct {
  vmir_errcode_t(*open)(void *opaque, const char *path,
                        vmir_openflags_t flags, intptr_t *fh);

  void (*close)(void *opaque, intptr_t fh);

  ssize_t (*read)(void *opaque, intptr_t fh, void *buf, size_t count);
  ssize_t (*write)(void *opaque, intptr_t fh, const void *buf, size_t count);

  int64_t (*seek)(void *opaque, intptr_t fh, int64_t offset, int whence);

} vmir_fsops_t;

/**
 * Create a new environment
 *
 * membase should point to memory allocated by the user
 * memsize is size of said memory (in bytes)
 *
 * rsize is how much of the memory that will be used for register frames
 * asize is how much of the memory that will be used for stack allocation
 * Rest of memory will be used for standard malloc()/free() heap
 *
 * Opaque is a reference passed back in various callbacks and not
 * interpreted by vmir in any way.
 */
ir_unit_t *vmir_create(void *membase, uint32_t memsize,
                       uint32_t rsize, uint32_t asize,
                       void *opaque);

/**
 * Return opaque value passed to vmir_create()
 */
void *vmir_get_opaque(ir_unit_t *iu);

/**
 * Set callback for log messages
 *
 * If not set, logging will be sent to stdout
 */
void vmir_set_logger(ir_unit_t *iu, vmir_logger_t *logger);

/**
 * Set level for log messages
 *
 * Only messages with level lower or equal to this value will be
 * logged. Default is VMIR_LOG_INFO
 */
void vmir_set_log_level(ir_unit_t *iu, vmir_log_level_t level);

/**
 * Signature for external function (as returned by
 * vmir_function_resolver_t callback)
 *
 * Return 0 - Normal return
 *        1 - Exception thrown
 *   Others - Undefined
 */
typedef int (vm_ext_function_t)(void *ret,
                                const void *regs,
                                struct ir_unit *iu);

/**
 * Signature for overriding the default external function resolver
 */
typedef vm_ext_function_t *(*vmir_function_resolver_t)(const char *function,
                                                       void *opaque);

/**
 * The default external function resolver for resolving a function into
 * VMIR's built-in libc.
 */
vm_ext_function_t *vmir_default_external_function_resolver(const char *function,
                                                           void *opaque);

/**
 *
 */
vmir_function_resolver_t vmir_get_external_function_resolver(ir_unit_t *);

/**
 * Set function to call for resolving unresolved function symbols.
 *
 * Note that if using this and you want to keep the internal libc functions,
 * this function should call vmir_default_external_function_resolver() as
 * last resort to make VMIR use the built-in function for the given lookup.
 */
void vmir_set_external_function_resolver(ir_unit_t * iu,
                                         vmir_function_resolver_t fn);

/**
 * Override defaults functions for filesystem access
 */
void vmir_set_fsops(ir_unit_t *iu, const vmir_fsops_t *ops);

/**
 * Parse bitcode and generate code, data, etc
 */
vmir_errcode_t vmir_load(ir_unit_t *iu, const uint8_t *bitcode,
                         int bitcode_len);

/**
 * Destroy the environment and free all resources except the memory
 * passed in to vmir_create(). The user is responsible for freeing this
 * memory.
 *
 * After this the ir_unit is also free'd and no longer available
 */
void vmir_destroy(ir_unit_t *iu);

/**
 * Run will call main() with argc and argv as given by this call.
 *
 * Note: argv[0] is expected to be the executable name just as
 * the "normal" argv[] vector behaves. The user is responsible for
 * filling that out as well.
 *
 * Passing 0 to argc is OK if no arguments make sense in which case
 * argv[] is not dereferenced and can thus be NULL
 *
 * *ret is used to store the return value from main() or the value
 * passed to exit() if exit was called
 *
 */
int vmir_run(ir_unit_t *iu, int *ret, int argc, char **argv);

/**
 * Dump basic block profiling to stdout
 */
void vmir_instrumentation_dump(ir_unit_t *iu);

typedef struct ir_function ir_function_t;

/**
 * Lookup a vmir function that can be called with vmir_vm_function_call()
 */
ir_function_t *vmir_find_function(ir_unit_t *, const char *fn);

/**
 * Return values from vmir_vm_function_call()
 */
#define VM_STOP_OK          0      // Returned normally
#define VM_STOP_EXIT        1      // exit() was called
#define VM_STOP_ABORT       2      // abort() was called
#define VM_STOP_UNREACHABLE 3      // Ran the 'unreachable' LLVM instruction
#define VM_STOP_BAD_INSTRUCTION 4  // Invalid instruction encoding
                                   // This is an internal error in the VM
#define VM_STOP_BAD_FUNCTION 5     // Unresolved function was called
#define VM_STOP_UNCAUGHT_EXCEPTION 6
#define VM_STOP_ACCESS_VIOLATION 7
#define VM_STOP_BAD_ARGUMENTS   8
#define VM_STOP_OUT_OF_MEMROY   9

/**
 * Call a vmir function
 *
 * out is a pointer to where the return value from the function will be stored
 * Should hold 64 or 32 bit depending on the function signature.
 *
 * Rest of arguments are parsed in based on the function signature
 *
 * See VM_STOP_ defines above for return value of this function
 */
int vmir_vm_function_call(ir_unit_t *iu, ir_function_t *f, void *out, ...);

/**
 * Pop 32bit function argument.
 */
uint32_t vmir_vm_arg32(const void **rfp);

/**
 * Pop 64bit function argument.
 */
uint64_t vmir_vm_arg64(const void **rfp);

/**
 * Pop double function argument.
 */
double vmir_vm_arg_dbl(const void **rfp);

/**
 * Pop float function argument.
 */
float vmir_vm_arg_flt(const void **rfp);

/**
 * Pop pointer function argument and convert it from VMIR address
 * space to host address.
 */
void *vmir_vm_ptr(const void **rfp, ir_unit_t *iu);

/**
 * Pop pointer function argument and convert it from VMIR address
 * space to host address. If the pointer is NULL it will still be NULL
 * after conversion.
 */
void *vmir_vm_ptr_nullchk(const void **rfp, ir_unit_t *iu);

/**
 * Pop pointer function argument that is a function
 */
ir_function_t *vmir_vm_arg_func(const void **rfp, ir_unit_t *iu);

/**
 * Return a pointer inside the VM heap and adjust it to VMIR local address
 */
void vmir_vm_retptr(void *ret, void *p, const ir_unit_t *iu);

/**
 * Return a 32bit value from an external function
 */
void vmir_vm_ret32(void *ret, uint32_t v);

/**
 * Return a 64bit value from an external function
 */
void vmir_vm_ret64(void *ret, uint64_t v);

/**
 * Copy data to VM space
 */

uint32_t vmir_mem_alloc(ir_unit_t *iu, uint32_t size, void *hostaddr);

uint32_t vmir_mem_strdup(ir_unit_t *iu, const char *str);

uint32_t vmir_mem_copy(ir_unit_t *iu, const void *data, size_t size);

void vmir_mem_free(ir_unit_t *iu, uint32_t addr);

/**
 * File descriptors
 */
#define VMIR_FD_TYPE_FILEHANDLE 1
#define VMIR_FD_TYPE_SOCKET     2
#define VMIR_FD_TYPE_USER       128

typedef void (vmir_fd_release_t)(ir_unit_t *iu, intptr_t handle);

int vmir_fd_create(ir_unit_t *iu, intptr_t handle, int type,
                   vmir_fd_release_t *relfunc);

int vmir_fd_create_fh(ir_unit_t *iu, intptr_t fh, int closable);

void vmir_fd_close(ir_unit_t *iu, int fd);

intptr_t vmir_fd_get(ir_unit_t *iu, int fd, int type);

/**
 *
 */
typedef struct {
  const char *name;
  vm_ext_function_t *extfunc;
} vmir_function_tab_t;

vm_ext_function_t *vmir_function_tab_lookup(const char *function,
                                            const vmir_function_tab_t *array,
                                            int length);

/**
 * Debug / trace helpers
 *
 * Used with vmir_set_debug_flags()
 */
#define VMIR_DBG_DUMP_PARSED_FUNCTION 0x1
#define VMIR_DBG_DUMP_LOWERED_FUNCTION 0x2
#define VMIR_DBG_LIST_FUNCTIONS   0x4
#define VMIR_DBG_DUMP_DEV         0x8
#define VMIR_DBG_DUMP_REGALLOC    0x10
#define VMIR_DBG_BB_INSTRUMENT    0x20
#define VMIR_DBG_DISABLE_JIT      0x40
#define VMIR_DBG_IGNORE_UNRESOLVED_FUNCTIONS 0x80

void vmir_set_debug_flags(ir_unit_t *iu, int flags);

void vmir_set_traced_function(ir_unit_t *iu, const char *fname);

/**
 * Debug only a specific function. If unset (or set to NULL) any debugging
 * will be enabled for all functions.
 */
void vmir_set_debugged_function(ir_unit_t *iu, const char *function);

/**
 * Print various stats about code transformation to stdout
 */
void vmir_print_stats(ir_unit_t *iu);

/**
 *
 */
void vmir_walk_heap(ir_unit_t *iu,
                    void (*fn)(void *opaque, uint32_t addr, uint32_t size,
                               int inuse),
                    void *opaque);

void vmir_walk_fds(ir_unit_t *iu,
                   void (*fn)(void *opaque, int fd, int type),
                   void *opaque);

typedef struct vmir_stats {

  int vm_code_size;
  int jit_code_size;
  int data_size;
  int peak_heap_size;
  int peak_stack_size;

  int cmp_branch_combine;
  int cmp_select_combine;
  int mla_combine;
  int load_cast_combine;
  int moves_killed;

  int lea_load_combined;
  int lea_load_combined_failed;

} vmir_stats_t;

const vmir_stats_t *vmir_get_stats(ir_unit_t *iu);


text:
package foo.bar.impl;

public class Impl {
  public Inner {}
}

redpajama_set_name: RedPajamaGithub


text:
coffee -o ./ -c src/*.coffee
coffee -o ./lib/ -c src/lib/*
browserify browser.js > browser/colors-clustering.js


text:
package com.clubobsidian.obsidianengine.snakeyaml.representer;

import com.clubobsidian.obsidianengine.snakeyaml.nodes.Node;

/**
 * Create a Node Graph out of the provided Native Data Structure (Java
 * instance).
 *
 * @see Chapter 3. Processing YAML
 *      Information
 */
public interface Represent {
    /**
     * Create a Node
     *
     * @param data
     *            the instance to represent
     * @return Node to dump
     */
    Node representData(Object data);
}


text:
namespace MicroMapper
{
    using System.Linq.Expressions;
    using QueryableExtensions;

    /// <summary>
    /// Main entry point for executing maps
    /// </summary>
	public interface IMappingEngineRunner
	{
        TDestination Map<TSource, TDestination>(ResolutionContext parentContext, TSource source);

        object Map(ResolutionContext context);
		object CreateObject(ResolutionContext context);
		IConfigurationProvider ConfigurationProvider { get; }
	    bool ShouldMapSourceValueAsNull(ResolutionContext context);
	    bool ShouldMapSourceCollectionAsNull(ResolutionContext context);

        Expression CreateMapExpression(ExpressionRequest request,
            Expression instanceParameter, Internal.IDictionary<ExpressionRequest, int> typePairCount);

        LambdaExpression CreateMapExpression(ExpressionRequest request, Internal.IDictionary<ExpressionRequest, int> typePairCount);
	}
}


text:
package com.expedia.tesla.serialization.binary;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.expedia.tesla.serialization.ByteFixture;
import com.expedia.tesla.serialization.TeslaDeserializationException;

/**
 * Deserialization Byte tests for the Tesla Binary format.
 *
 * @author dheld
 */
public class ByteDeserializationTest extends BaseFixture implements ByteFixture {
	@Test(expected = TeslaDeserializationException.class)
	public void readByte_EmptyStream_Throws() throws Exception {
		this.getReader(EMPTY_STREAM).readByte(null);
	}

	@Test
	public void readByte_MinValue_Succeeds() throws Exception {
		final byte actual = this.getReader(MIN_BINARY).readByte(null);
		assertEquals((byte) MIN_VALUE, actual);
	}

	@Test
	public void readByte_MaxValue_Succeeds() throws Exception {
		final int actual = this.getReader(MAX_BINARY).readByte(null);
		assertEquals((byte) MAX_VALUE, actual);
	}

	@Test
	public void readByte_SmallValue_Succeeds() throws Exception {
		final int actual = this.getReader(SMALL_BINARY).readByte(null);
		assertEquals((byte) SMALL_VALUE, actual);
	}

	@Test
	public void readByte_LargeValue_Succeeds() throws Exception {
		final int actual = this.getReader(LARGE_BINARY).readByte(null);
		assertEquals((byte) LARGE_VALUE, actual);
	}
}


text:
package edu.clemson.resolve.jetbrains.psi;

import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
import com.intellij.psi.ResolveState;

public interface ResMathExp extends ResCompositeElement {

  @Nullable
  ResMathExp getResMathMetaTypeExp(ResolveState context);

}


text:
"use strict";
var XmlElementNames_1 = require("../Core/XmlElementNames");
var DocumentSharingLocationCollection = (function () {
    function DocumentSharingLocationCollection() {
        this.Entries = []; //System.Collections.Generic.List<DocumentSharingLocation>;
    }
    DocumentSharingLocationCollection.LoadFromXml = function (reader) { throw new Error("Not implemented. Depricated, use LoadFromJson"); };
    DocumentSharingLocationCollection.LoadFromJson = function (obj) {
        var instance = new DocumentSharingLocationCollection();
        var element = XmlElementNames_1.XmlElementNames.AlternateMailbox;
        var responses = undefined;
        if (Object.prototype.toString.call(obj[element]) === "[object Array]")
            responses = obj[element];
        else
            responses = [obj[element]];
        for (var i = 0; i < responses.length; i++) {
            instance.Entries.push(responses[i]); //skipped processing individual objects in collection against DocumentSharingLocation, fix if there is parsing error later
        }
        return instance;
    };
    return DocumentSharingLocationCollection;
}());
exports.DocumentSharingLocationCollection = DocumentSharingLocationCollection;


text:
/**
 * Created by jkane on 5/21/16.
 */

define([
  'react',
  './MainSlider',
  './MainPortal',
  './LastYouTubeVideo',
  './LatestPublications',
  './Footer',
  /* ======== */
  './resources/Main.scss'
], function (React, MainSlider, MainPortal, LastYouTubeVideo, LatestPublications, Footer) {
  return React.createClass({

    render: function () {
      return (

            <MainSlider />
            <MainPortal/>
            <LastYouTubeVideo />
            <LatestPublications />

      )
    }
  })
});


text:
package com.amazonaws.services.rds.model;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * Container for the parameters to the {@link com.amazonaws.services.rds.AmazonRDS#describeReservedDBInstancesOfferings(DescribeReservedDBInstancesOfferingsRequest) DescribeReservedDBInstancesOfferings operation}.
 *

 * Lists available reserved DB Instance offerings.
 *

 *
 * @see com.amazonaws.services.rds.AmazonRDS#describeReservedDBInstancesOfferings(DescribeReservedDBInstancesOfferingsRequest)
 */
public class DescribeReservedDBInstancesOfferingsRequest extends AmazonWebServiceRequest {

    /**
     * The offering identifier filter value. Specify this parameter to show
     * only the available offering that matches the specified reservation
     * identifier.
Example:
     * 438012d3-4052-4cc7-b2e3-8d3372e0e706
     */
    private String reservedDBInstancesOfferingId;

    /**
     * The DB Instance class filter value. Specify this parameter to show
     * only the available offerings matching the specified DB Instance class.
     */
    private String dBInstanceClass;

    /**
     * Duration filter value, specified in years or seconds. Specify this
     * parameter to show only reservations for this duration.
Valid
     * Values: 1 | 3 | 31536000 | 94608000
     */
    private String duration;

    /**
     * Product description filter value. Specify this parameter to show only
     * the available offerings matching the specified product description.
     */
    private String productDescription;

    /**
     * The offering type filter value. Specify this parameter to show only
     * the available offerings matching the specified offering type.
Valid
     * Values: "Light Utilization" | "Medium Utilization" | "Heavy
     * Utilization"
     */
    private String offeringType;

    /**
     * The Multi-AZ filter value. Specify this parameter to show only the
     * available offerings matching the specified Multi-AZ parameter.
     */
    private Boolean multiAZ;

    /**
     * The maximum number of records to include in the response. If more than
     * the MaxRecords value is available, a marker is included
     * in the response so that the following results can be retrieved.
     *
Default: 100
Constraints: minimum 20, maximum 100
     */
    private Integer maxRecords;

    /**
     * The marker provided in the previous request. If this parameter is
     * specified, the response includes records beyond the marker only, up to
     * MaxRecords.
     */
    private String marker;

    /**
     * Default constructor for a new DescribeReservedDBInstancesOfferingsRequest object.  Callers should use the
     * setter or fluent setter (with...) methods to initialize this object after creating it.
     */
    public DescribeReservedDBInstancesOfferingsRequest() {}

    /**
     * The offering identifier filter value. Specify this parameter to show
     * only the available offering that matches the specified reservation
     * identifier.
Example:
     * 438012d3-4052-4cc7-b2e3-8d3372e0e706
     *
     * @return The offering identifier filter value. Specify this parameter to show
     *         only the available offering that matches the specified reservation
     *         identifier.
Example:
     *         438012d3-4052-4cc7-b2e3-8d3372e0e706
     */
    public String getReservedDBInstancesOfferingId() {
        return reservedDBInstancesOfferingId;
    }

    /**
     * The offering identifier filter value. Specify this parameter to show
     * only the available offering that matches the specified reservation
     * identifier.
Example:
     * 438012d3-4052-4cc7-b2e3-8d3372e0e706
     *
     * @param reservedDBInstancesOfferingId The offering identifier filter value. Specify this parameter to show
     *         only the available offering that matches the specified reservation
     *         identifier.
Example:
     *         438012d3-4052-4cc7-b2e3-8d3372e0e706
     */
    public void setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) {
        this.reservedDBInstancesOfferingId = reservedDBInstancesOfferingId;
    }

    /**
     * The offering identifier filter value. Specify this parameter to show
     * only the available offering that matches the specified reservation
     * identifier.
Example:
     * 438012d3-4052-4cc7-b2e3-8d3372e0e706
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param reservedDBInstancesOfferingId The offering identifier filter value. Specify this parameter to show
     *         only the available offering that matches the specified reservation
     *         identifier.
Example:
     *         438012d3-4052-4cc7-b2e3-8d3372e0e706
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) {
        this.reservedDBInstancesOfferingId = reservedDBInstancesOfferingId;
        return this;
    }

    /**
     * The DB Instance class filter value. Specify this parameter to show
     * only the available offerings matching the specified DB Instance class.
     *
     * @return The DB Instance class filter value. Specify this parameter to show
     *         only the available offerings matching the specified DB Instance class.
     */
    public String getDBInstanceClass() {
        return dBInstanceClass;
    }

    /**
     * The DB Instance class filter value. Specify this parameter to show
     * only the available offerings matching the specified DB Instance class.
     *
     * @param dBInstanceClass The DB Instance class filter value. Specify this parameter to show
     *         only the available offerings matching the specified DB Instance class.
     */
    public void setDBInstanceClass(String dBInstanceClass) {
        this.dBInstanceClass = dBInstanceClass;
    }

    /**
     * The DB Instance class filter value. Specify this parameter to show
     * only the available offerings matching the specified DB Instance class.
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param dBInstanceClass The DB Instance class filter value. Specify this parameter to show
     *         only the available offerings matching the specified DB Instance class.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withDBInstanceClass(String dBInstanceClass) {
        this.dBInstanceClass = dBInstanceClass;
        return this;
    }

    /**
     * Duration filter value, specified in years or seconds. Specify this
     * parameter to show only reservations for this duration.
Valid
     * Values: 1 | 3 | 31536000 | 94608000
     *
     * @return Duration filter value, specified in years or seconds. Specify this
     *         parameter to show only reservations for this duration.
Valid
     *         Values: 1 | 3 | 31536000 | 94608000
     */
    public String getDuration() {
        return duration;
    }

    /**
     * Duration filter value, specified in years or seconds. Specify this
     * parameter to show only reservations for this duration.
Valid
     * Values: 1 | 3 | 31536000 | 94608000
     *
     * @param duration Duration filter value, specified in years or seconds. Specify this
     *         parameter to show only reservations for this duration.
Valid
     *         Values: 1 | 3 | 31536000 | 94608000
     */
    public void setDuration(String duration) {
        this.duration = duration;
    }

    /**
     * Duration filter value, specified in years or seconds. Specify this
     * parameter to show only reservations for this duration.
Valid
     * Values: 1 | 3 | 31536000 | 94608000
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param duration Duration filter value, specified in years or seconds. Specify this
     *         parameter to show only reservations for this duration.
Valid
     *         Values: 1 | 3 | 31536000 | 94608000
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withDuration(String duration) {
        this.duration = duration;
        return this;
    }

    /**
     * Product description filter value. Specify this parameter to show only
     * the available offerings matching the specified product description.
     *
     * @return Product description filter value. Specify this parameter to show only
     *         the available offerings matching the specified product description.
     */
    public String getProductDescription() {
        return productDescription;
    }

    /**
     * Product description filter value. Specify this parameter to show only
     * the available offerings matching the specified product description.
     *
     * @param productDescription Product description filter value. Specify this parameter to show only
     *         the available offerings matching the specified product description.
     */
    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    /**
     * Product description filter value. Specify this parameter to show only
     * the available offerings matching the specified product description.
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param productDescription Product description filter value. Specify this parameter to show only
     *         the available offerings matching the specified product description.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withProductDescription(String productDescription) {
        this.productDescription = productDescription;
        return this;
    }

    /**
     * The offering type filter value. Specify this parameter to show only
     * the available offerings matching the specified offering type.
Valid
     * Values: "Light Utilization" | "Medium Utilization" | "Heavy
     * Utilization"
     *
     * @return The offering type filter value. Specify this parameter to show only
     *         the available offerings matching the specified offering type.
Valid
     *         Values: "Light Utilization" | "Medium Utilization" | "Heavy
     *         Utilization"
     */
    public String getOfferingType() {
        return offeringType;
    }

    /**
     * The offering type filter value. Specify this parameter to show only
     * the available offerings matching the specified offering type.
Valid
     * Values: "Light Utilization" | "Medium Utilization" | "Heavy
     * Utilization"
     *
     * @param offeringType The offering type filter value. Specify this parameter to show only
     *         the available offerings matching the specified offering type.
Valid
     *         Values: "Light Utilization" | "Medium Utilization" | "Heavy
     *         Utilization"
     */
    public void setOfferingType(String offeringType) {
        this.offeringType = offeringType;
    }

    /**
     * The offering type filter value. Specify this parameter to show only
     * the available offerings matching the specified offering type.
Valid
     * Values: "Light Utilization" | "Medium Utilization" | "Heavy
     * Utilization"
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param offeringType The offering type filter value. Specify this parameter to show only
     *         the available offerings matching the specified offering type.
Valid
     *         Values: "Light Utilization" | "Medium Utilization" | "Heavy
     *         Utilization"
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withOfferingType(String offeringType) {
        this.offeringType = offeringType;
        return this;
    }

    /**
     * The Multi-AZ filter value. Specify this parameter to show only the
     * available offerings matching the specified Multi-AZ parameter.
     *
     * @return The Multi-AZ filter value. Specify this parameter to show only the
     *         available offerings matching the specified Multi-AZ parameter.
     */
    public Boolean isMultiAZ() {
        return multiAZ;
    }

    /**
     * The Multi-AZ filter value. Specify this parameter to show only the
     * available offerings matching the specified Multi-AZ parameter.
     *
     * @param multiAZ The Multi-AZ filter value. Specify this parameter to show only the
     *         available offerings matching the specified Multi-AZ parameter.
     */
    public void setMultiAZ(Boolean multiAZ) {
        this.multiAZ = multiAZ;
    }

    /**
     * The Multi-AZ filter value. Specify this parameter to show only the
     * available offerings matching the specified Multi-AZ parameter.
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param multiAZ The Multi-AZ filter value. Specify this parameter to show only the
     *         available offerings matching the specified Multi-AZ parameter.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withMultiAZ(Boolean multiAZ) {
        this.multiAZ = multiAZ;
        return this;
    }

    /**
     * The Multi-AZ filter value. Specify this parameter to show only the
     * available offerings matching the specified Multi-AZ parameter.
     *
     * @return The Multi-AZ filter value. Specify this parameter to show only the
     *         available offerings matching the specified Multi-AZ parameter.
     */
    public Boolean getMultiAZ() {
        return multiAZ;
    }

    /**
     * The maximum number of records to include in the response. If more than
     * the MaxRecords value is available, a marker is included
     * in the response so that the following results can be retrieved.
     *
Default: 100
Constraints: minimum 20, maximum 100
     *
     * @return The maximum number of records to include in the response. If more than
     *         the MaxRecords value is available, a marker is included
     *         in the response so that the following results can be retrieved.
     *
Default: 100
Constraints: minimum 20, maximum 100
     */
    public Integer getMaxRecords() {
        return maxRecords;
    }

    /**
     * The maximum number of records to include in the response. If more than
     * the MaxRecords value is available, a marker is included
     * in the response so that the following results can be retrieved.
     *
Default: 100
Constraints: minimum 20, maximum 100
     *
     * @param maxRecords The maximum number of records to include in the response. If more than
     *         the MaxRecords value is available, a marker is included
     *         in the response so that the following results can be retrieved.
     *
Default: 100
Constraints: minimum 20, maximum 100
     */
    public void setMaxRecords(Integer maxRecords) {
        this.maxRecords = maxRecords;
    }

    /**
     * The maximum number of records to include in the response. If more than
     * the MaxRecords value is available, a marker is included
     * in the response so that the following results can be retrieved.
     *
Default: 100
Constraints: minimum 20, maximum 100
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param maxRecords The maximum number of records to include in the response. If more than
     *         the MaxRecords value is available, a marker is included
     *         in the response so that the following results can be retrieved.
     *
Default: 100
Constraints: minimum 20, maximum 100
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withMaxRecords(Integer maxRecords) {
        this.maxRecords = maxRecords;
        return this;
    }

    /**
     * The marker provided in the previous request. If this parameter is
     * specified, the response includes records beyond the marker only, up to
     * MaxRecords.
     *
     * @return The marker provided in the previous request. If this parameter is
     *         specified, the response includes records beyond the marker only, up to
     *         MaxRecords.
     */
    public String getMarker() {
        return marker;
    }

    /**
     * The marker provided in the previous request. If this parameter is
     * specified, the response includes records beyond the marker only, up to
     * MaxRecords.
     *
     * @param marker The marker provided in the previous request. If this parameter is
     *         specified, the response includes records beyond the marker only, up to
     *         MaxRecords.
     */
    public void setMarker(String marker) {
        this.marker = marker;
    }

    /**
     * The marker provided in the previous request. If this parameter is
     * specified, the response includes records beyond the marker only, up to
     * MaxRecords.
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param marker The marker provided in the previous request. If this parameter is
     *         specified, the response includes records beyond the marker only, up to
     *         MaxRecords.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public DescribeReservedDBInstancesOfferingsRequest withMarker(String marker) {
        this.marker = marker;
        return this;
    }

    /**
     * Returns a string representation of this object; useful for testing and
     * debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (reservedDBInstancesOfferingId != null) sb.append("ReservedDBInstancesOfferingId: " + reservedDBInstancesOfferingId + ", ");
        if (dBInstanceClass != null) sb.append("DBInstanceClass: " + dBInstanceClass + ", ");
        if (duration != null) sb.append("Duration: " + duration + ", ");
        if (productDescription != null) sb.append("ProductDescription: " + productDescription + ", ");
        if (offeringType != null) sb.append("OfferingType: " + offeringType + ", ");
        if (multiAZ != null) sb.append("MultiAZ: " + multiAZ + ", ");
        if (maxRecords != null) sb.append("MaxRecords: " + maxRecords + ", ");
        if (marker != null) sb.append("Marker: " + marker + ", ");
        sb.append("}");
        return sb.toString();
    }

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

        hashCode = prime * hashCode + ((getReservedDBInstancesOfferingId() == null) ? 0 : getReservedDBInstancesOfferingId().hashCode());
        hashCode = prime * hashCode + ((getDBInstanceClass() == null) ? 0 : getDBInstanceClass().hashCode());
        hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode());
        hashCode = prime * hashCode + ((getProductDescription() == null) ? 0 : getProductDescription().hashCode());
        hashCode = prime * hashCode + ((getOfferingType() == null) ? 0 : getOfferingType().hashCode());
        hashCode = prime * hashCode + ((isMultiAZ() == null) ? 0 : isMultiAZ().hashCode());
        hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode());
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
        return hashCode;
    }

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

        if (obj instanceof DescribeReservedDBInstancesOfferingsRequest == false) return false;
        DescribeReservedDBInstancesOfferingsRequest other = (DescribeReservedDBInstancesOfferingsRequest)obj;

        if (other.getReservedDBInstancesOfferingId() == null ^ this.getReservedDBInstancesOfferingId() == null) return false;
        if (other.getReservedDBInstancesOfferingId() != null && other.getReservedDBInstancesOfferingId().equals(this.getReservedDBInstancesOfferingId()) == false) return false;
        if (other.getDBInstanceClass() == null ^ this.getDBInstanceClass() == null) return false;
        if (other.getDBInstanceClass() != null && other.getDBInstanceClass().equals(this.getDBInstanceClass()) == false) return false;
        if (other.getDuration() == null ^ this.getDuration() == null) return false;
        if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == false) return false;
        if (other.getProductDescription() == null ^ this.getProductDescription() == null) return false;
        if (other.getProductDescription() != null && other.getProductDescription().equals(this.getProductDescription()) == false) return false;
        if (other.getOfferingType() == null ^ this.getOfferingType() == null) return false;
        if (other.getOfferingType() != null && other.getOfferingType().equals(this.getOfferingType()) == false) return false;
        if (other.isMultiAZ() == null ^ this.isMultiAZ() == null) return false;
        if (other.isMultiAZ() != null && other.isMultiAZ().equals(this.isMultiAZ()) == false) return false;
        if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false;
        if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false;
        if (other.getMarker() == null ^ this.getMarker() == null) return false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false;
        return true;
    }

}


text:
<!-- This file is excerpted from "XML Query Use Cases" (http://www.w3.org/TR/xquery-use-cases/)
Copyright (c) 2007 W3C (R) (MIT, ERCIM, Keio).  All Rights Reserved.  W3C liability, trademark and document use rules apply.
The Status section of "XML Query Use Cases" states as follows:
Status of this Document
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This is the W3C Working Group Note of "XML Query (XQuery) Use Cases", produced by the W3C XML Query Working Group, part of the XML Activity. This document is being published as a Working Group Note to persistently record the Use Cases that guided the development of XQuery 1.0: An XML Query Language and its associated specifications as W3C Recommendations.
Please submit comments about this document using W3C's public Bugzilla system (instructions can be found at http://www.w3.org/XML/2005/04/qt-bugzilla). If access to that system is not feasible, you may send your comments to the W3C XSLT/XPath/XQuery public comments mailing list, public-qt-comments@w3.org. It will be very helpful if you include the string [XQRecUseCases] in the subject line of your report, whether made in Bugzilla or in email. Each Bugzilla entry and email message should contain only one comment. Archives of the comments and responses are available at http://lists.w3.org/Archives/Public/public-qt-comments/.
Publication as a Working Group Note does not imply endorsement by the W3C Membership. At the time of publication, work on this document was considered complete and no further revisions are anticipated. It is a stable document and may be used as reference material or cited from another document. However, this document may be updated, replaced, or made obsolete by other documents at any time.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy .
-->
<reviews>
  <entry>
    <title>Data on the Web</title>
    <price>34.95</price>
    <review>
      A very good discussion of semi-structured database
      systems and XML.
    </review>
  </entry>
  <entry>
    <title>Advanced Programming in the Unix environment</title>
    <price>65.95</price>
    <review>
      A clear and detailed discussion of UNIX programming.
    </review>
  </entry>
  <entry>
    <title>TCP/IP Illustrated</title>
    <price>65.95</price>
    <review>
      One of the best books on TCP/IP.
    </review>
  </entry>
</reviews>


text:
from distutils.core import setup

import interpreter

setup(
    name='simple interpreter',
    version=interpreter.__version__,
    description='Simple interpreter for Pascal language.',
    author='Lucas Magnum',
    author_email='lucasmagnumlopes@gmail.com',
    packages=['interpreter'],
)


text:
package net.dongliu.apk.parser;

/**
 * Parse apk file from byte array.
 * This class is not thread-safe.
 *
 * @author Liu Dong
 * @deprecated using {@link ByteArrayApkFile} instead
 */
@Deprecated
public class ByteArrayApkParser extends ByteArrayApkFile {

    public ByteArrayApkParser(byte[] apkData) {
        super(apkData);
    }
}


text:
using namespace DlangEditor;

QChar characterAt(const TextEditor::AssistInterface *interface, int offset = 0)
{
    return interface->characterAt(interface->position() + offset - 1);
}

bool findFunctionArgumentsBegin(const TextEditor::AssistInterface *interface, int &offset)
{
    QChar c = characterAt(interface);
    int off;
    for (off = 1; !c.isNull() && c != QLatin1Char('(') && c != QLatin1Char(')'); ++off) {
        c = characterAt(interface, -off);
    }
    if (c == QLatin1Char('(')) {
        offset = -off;
        return true;
    }
    return false;
}

int findWordBegin(const TextEditor::AssistInterface *interface)
{
    int pos = interface->position();
    QChar c;
    do {
        c = interface->characterAt(--pos);
    } while (!c.isNull() && (c.isLetterOrNumber() ||  c == QLatin1Char('_')));
    return pos + 1;
}

DlangAssistProcessor::DlangAssistProcessor()
{
}

DlangAssistProcessor::~DlangAssistProcessor()
{

}

TextEditor::IAssistProposal *DlangAssistProcessor::perform(const TextEditor::AssistInterface *interface)
{
    m_interface.reset(static_cast<const TextEditor::AssistInterface *>(interface));
    m_proposalOffset = 0;

    if (interface->reason() != TextEditor::ExplicitlyInvoked && !accepts())
        return 0;

    return proposal();
}

bool DlangAssistProcessor::accepts()
{
    QChar currentChar = characterAt(m_interface.data());
    switch (DlangCompletionAssistProvider::completionTypeOfChar(currentChar)) {
    case DlangCompletionAssistProvider::DLANG_DOT:
        return true;
    case DlangCompletionAssistProvider::DLANG_COMMA:
        return findFunctionArgumentsBegin(m_interface.data(), m_proposalOffset);
    case DlangCompletionAssistProvider::DLANG_FUNCTION:
        return true;
    default:
        return false;
    }
}

TextEditor::IAssistProposal *createAssistProposal(const DCodeModel::CompletionList &list, int pos)
{
    using namespace TextEditor;
    switch (list.type) {
    case DCodeModel::COMPLETION_IDENTIFIER:
    {
        QList<TextEditor::AssistProposalItemInterface *> items;
        foreach (const auto& comp, list.list) {
            AssistProposalItem *item = new AssistProposalItem;
            item->setText(comp.name);
            item->setIcon(DlangIconCache::instance().fromType(comp.type));
            items.append(item);
        }
        return new GenericProposal(pos, items);
    }
        break;
    case DCodeModel::COMPLETION_CALLTIP:
    {
        QStringList functionSymbols;
        foreach (const auto& comp, list.list) {
            functionSymbols.append(comp.parameters);
        }
        IFunctionHintProposalModel *model =
                new KeywordsFunctionHintModel(functionSymbols);
        return new FunctionHintProposal(pos, model);
    }
        break;
    case DCodeModel::COMPLETION_BAD_TYPE:
        return 0;
    default:
        return 0;
    }
}

TextEditor::IAssistProposal *DlangAssistProcessor::proposal()
{
    try {
        DCodeModel::CompletionList list;
        list.type = DCodeModel::COMPLETION_BAD_TYPE;
        DCodeModel::IModelSharedPtr model = DCodeModel::ModelManager::instance().getCurrentModel();
        DCodeModel::Sources sources(m_interface->fileName(),
                                    m_interface->textDocument()->toPlainText(),
                                    0);
        model->complete(Utils::currentProjectName(),
                        sources,
                        m_interface->position(), list);
        int wordPosition = findWordBegin(m_interface.data());
        return createAssistProposal(list, wordPosition);
    }
    catch (std::exception& ex) {
        qWarning("DlangAssistProcessor::proposal:%s", ex.what());
    }
    return 0;
}


text:
package no.dnt.sjekkut.realmmodels;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProjectSubscription extends RealmObject {
    @PrimaryKey
    private String projectId;
    private String offlineAction;
    private boolean offlinePurge;

    public ProjectSubscription() {
    }

    public ProjectSubscription(String string) {
        this.projectId = string;
    }
}


text:
<!--
`core-collapse` creates a collapsible block of content.  By default, the content
will be collapsed.  Use `opened` to show/hide the content.

    <button on-click="{{toggle}}">toggle collapse</button>

    <core-collapse id="collapse"></core-collapse>
      ...
    </core-collapse>

    ...

    toggle: function() {
      this.$.collapse.toggle();
    }

-->

<link rel="stylesheet" href="core-collapse.css" shim-shadowdom>

<div name="core-collapse" attributes="target horizontal opened duration fixedSize">
<template>

  <content></content>

</template>
<script>

  fun('core-collapse', {
    /**
     * Fired when the target element has been resized as a result of the opened
     * state changing.
     *
     * @event core-resize
    */

    /**
     * The target element.
     *
     * @attribute target
     * @type object
     * @default null
     */
    target: null,

    /**
     * If true, the orientation is horizontal; otherwise is vertical.
     *
     * @attribute horizontal
     * @type boolean
     * @default false
     */
    horizontal: false,

    /**
     * Set opened to true to show the collapse element and to false to hide it.
     *
     * @attribute opened
     * @type boolean
     * @default false
     */
    opened: false,

    /**
     * Collapsing/expanding animation duration in second.
     *
     * @attribute duration
     * @type number
     * @default 0.33
     */
    duration: 0.33,

    /**
     * If true, the size of the target element is fixed and is set
     * on the element.  Otherwise it will try to
     * use auto to determine the natural size to use
     * for collapsing/expanding.
     *
     * @attribute fixedSize
     * @type boolean
     * @default false
     */
    fixedSize: false,

    created: function() {
      this.transitionEndListener = this.transitionEnd.bind(this);
    },

    ready: function() {
      this.target = this.target || this;
    },

    domReady: function() {
      this.async(function() {
        this.afterInitialUpdate = true;
      });
    },

    detached: function() {
      if (this.target) {
        this.removeListeners(this.target);
      }
    },

    targetChanged: function(old) {
      if (old) {
        this.removeListeners(old);
      }
      if (!this.target) {
        return;
      }
      this.isTargetReady = !!this.target;
      this.classList.toggle('core-collapse-closed', this.target !== this);
      this.target.style.overflow = 'hidden';
      this.horizontalChanged();
      this.addListeners(this.target);
      // set core-collapse-closed class initially to hide the target
      this.toggleClosedClass(true);
      this.update();
    },

    addListeners: function(node) {
      node.addEventListener('transitionend', this.transitionEndListener);
    },

    removeListeners: function(node) {
      node.removeEventListener('transitionend', this.transitionEndListener);
    },

    horizontalChanged: function() {
      this.dimension = this.horizontal ? 'width' : 'height';
    },

    openedChanged: function() {
      this.update();
    },

    /**
     * Toggle the opened state.
     *
     * @method toggle
     */
    toggle: function() {
      this.opened = !this.opened;
    },

    setTransitionDuration: function(duration) {
      var s = this.target.style;
      s.transition = duration ? (this.dimension + ' ' + duration + 's') : null;
      if (duration === 0) {
        this.async('transitionEnd');
      }
    },

    transitionEnd: function() {
      if (this.opened && !this.fixedSize) {
        this.updateSize('auto', null);
      }
      this.setTransitionDuration(null);
      this.toggleClosedClass(!this.opened);
      this.asyncFire('core-resize', null, this.target);
    },

    toggleClosedClass: function(closed) {
      this.hasClosedClass = closed;
      this.target.classList.toggle('core-collapse-closed', closed);
    },

    updateSize: function(size, duration, forceEnd) {
      this.setTransitionDuration(duration);
      this.calcSize();
      var s = this.target.style;
      var nochange = s[this.dimension] === size;
      s[this.dimension] = size;
      // transitonEnd will not be called if the size has not changed
      if (forceEnd && nochange) {
        this.transitionEnd();
      }
    },

    update: function() {
      if (!this.target) {
        return;
      }
      if (!this.isTargetReady) {
        this.targetChanged();
      }
      this.horizontalChanged();
      this[this.opened ? 'show' : 'hide']();
    },

    calcSize: function() {
      return this.target.getBoundingClientRect()[this.dimension] + 'px';
    },

    getComputedSize: function() {
      return getComputedStyle(this.target)[this.dimension];
    },

    show: function() {
      this.toggleClosedClass(false);
      // for initial update, skip the expanding animation to optimize
      // performance e.g. skip calcSize
      if (!this.afterInitialUpdate) {
        this.transitionEnd();
        return;
      }
      if (!this.fixedSize) {
        this.updateSize('auto', null);
        var s = this.calcSize();
        this.updateSize(0, null);
      }
      this.async(function() {
        this.updateSize(this.size || s, this.duration, true);
      });
    },

    hide: function() {
      // don't need to do anything if it's already hidden
      if (this.hasClosedClass && !this.fixedSize) {
        return;
      }
      if (this.fixedSize) {
        // save the size before hiding it
        this.size = this.getComputedSize();
      } else {
        this.updateSize(this.calcSize(), null);
      }
      this.async(function() {
        this.updateSize(0, this.duration);
      });
    }

  });

</script>
</div>


text:
define([
    'flight/lib/component',
    '../../templates/auxillary/boolean.hbs'
], function(
    defineComponent,
    template) {
    'use strict';

    var BLANK_OPTIONS = [
            { value: '', display: 'Skip' },
            { value: 'true', display: 'True' },
            { value: 'false', display: 'False' }
        ],
        SPLIT_REGEX = /\s*,\s*/

    return defineComponent(BooleanAuxillary);

    function process(strlist) {
        var a = _.isArray(strlist) ? strlist : (strlist || '').split(SPLIT_REGEX);
        return a.join(', ');
    }

    function BooleanAuxillary() {

        this.defaultAttrs({
            inputSelector: 'input',
            selectSelector: 'select'
        });

        this.after('initialize', function() {
            var hints = this.attr.mapping.hints;
            this.$node.html(template({
                trueValues: process(hints.trueValues || 'yes, y, true, 1'),
                falseValues: process(hints.falseValues || 'no, n, false, 0'),
                blank: BLANK_OPTIONS.map(function(o) {
                    o.selected = false;
                    if ('defaultValue' in hints) {
                        o.selected = (o.value === 'true') === hints.defaultValue;
                    }
                    return o;
                })
            }));

            this.on('change', {
                selectSelector: this.triggerChange
            });

            this.on('change keyup paste', {
                inputSelector: this.triggerChange
            });

            this.triggerChange();
        });

        this.onChange = function() {
        };

        this.triggerChange = function() {
            var self = this;

            this.trigger('addAuxillaryData', _.tap({
                trueValues: this.$node.find('input.true').val().split(SPLIT_REGEX),
                falseValues: this.$node.find('input.false').val().split(SPLIT_REGEX)
            }, function(d) {
                var blank = self.$node.find('select.blank').val();
                if (blank) {
                    d.defaultValue = blank === 'true';
                }
            }));
        };

    }
});


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Trans. Br. mycol. Soc. 44: 180 (1961)

#### Original name
Entophlyctis lobata Willoughby & Townley, 1961

### Remarks
null


text:
/* eslint-disable no-console */

const { MongoClient } = require('mongodb');

const init = (connectionString) => {
    return MongoClient.connect(connectionString)
        .then((db) => {
            // eslint-disable-next-line max-len
            console.log(`Car Rentals databases connected at ${connectionString}`);
            return db;
        });
};

module.exports = { init };


text:
#include "httprequest.h"
#include "httprequest_p.h"
#include "networkcookiejar.h"

#include <QTimer>
#include <QtDebug>
#include <QtQml>
#include <QNetworkCookie>
#include <QVariant>

HttpRequest::HttpRequest(QObject *parent) :
    HttpRequest(Q_NULLPTR, parent)
{ }

HttpRequest::HttpRequest(QNetworkAccessManager *networkManager, QObject *parent):
    QObject(parent),
    d_ptr(new HttpRequestPrivate(networkManager, this))
{
    qRegisterMetaType<NetworkStatus>("HttpRequest::NetworkStatus");
    qRegisterMetaType<State>("HttpRequest::State");

    connect(d_ptr, &HttpRequestPrivate::responseTextChanged, this, &HttpRequest::responseTextChanged);
    connect(d_ptr, &HttpRequestPrivate::readyStateChanged, this, &HttpRequest::readyStateChanged);
    connect(d_ptr, &HttpRequestPrivate::statusChanged, this, &HttpRequest::statusChanged);
    connect(d_ptr, &HttpRequestPrivate::statusTextChanged, this, &HttpRequest::statusTextChanged);
    connect(d_ptr, &HttpRequestPrivate::error, this, &HttpRequest::error);
}

HttpRequest::~HttpRequest()
{
}

void HttpRequest::clear()
{
    Q_EMIT abort();
    d_ptr->clear();
}

void HttpRequest::setTimeout(qint32 time)
{
    if(this->getReadyState() != Loading ) {
        d_ptr->setTimeout(time);
    }
}

int HttpRequest::getTimeout() const
{
    return d_ptr->getTimeout();
}

void HttpRequest::setRequestCookies(const QJsonObject &cookies)
{
    QJsonObject::ConstIterator iter = cookies.begin();
    QJsonObject::ConstIterator end = cookies.end();

    QByteArray cookiesString = "";

    while(iter != end) {
        QByteArray cookieName = iter.key().toUtf8();
        QByteArray cookieValue = iter.value().toString().toUtf8();
        QByteArray cookieString = cookieName + "=" + cookieValue + "; ";
        cookiesString += cookieString;

        iter++;
    }
    this->setRequestHeader("Cookie", cookiesString);
}

void HttpRequest::setRequestHeader(const QJsonObject &headers)
{
    QJsonObject::ConstIterator iter = headers.begin();
    QJsonObject::ConstIterator end = headers.end();

    while(iter != end) {
        this->setRequestHeader(iter.key().toUtf8(), iter.value().toString().toUtf8());
        iter++;
    }
}

void HttpRequest::setRequestHeader(const QByteArray &headerName, const QByteArray &value)
{
    if(d_ptr->getReadyState() == Loading) {
        return ;
    }

    QNetworkRequest request(d_ptr->getRequest());
    request.setRawHeader(headerName, value);
    d_ptr->setRequest(request);
}

QString HttpRequest::getRequestHeader(const QString &headerName) const
{
    return d_ptr->getRequest().rawHeader(headerName.toUtf8());
}

void HttpRequest::open(const QString &method, const QUrl &url, bool async)
{
    Q_UNUSED(async)

    d_ptr->setMethodName(method);
    QNetworkRequest request(d_ptr->getRequest());
    request.setUrl(url);
    d_ptr->setRequest(request);
    d_ptr->setReadyState(HttpRequest::UnStart);
    Q_EMIT this->abort();
}

void HttpRequest::send(const QString &data)
{
    QNetworkAccessManager* netManager = d_ptr->getManager();
    if(netManager == Q_NULLPTR) {
        qDebug() << "NetAccessManager is nullptr";
        Q_EMIT error();
        return;
    }

    if(d_ptr->getReadyState() == Loading) {
        return ;
    }
    NetworkCookieJar* cookieJar = qobject_cast<NetworkCookieJar*>(d_ptr->getManager()->cookieJar());
    if(cookieJar) {

        QNetworkRequest request(d_ptr->getRequest());
        auto cookies = cookieJar->getAllCookies();
        QByteArray cookiesString;
        foreach(auto cookie, cookies) {
            cookiesString += cookie.toRawForm() + ";";
        }
        if(!request.hasRawHeader("Cookie")) {
#ifdef QT_DEBUG
        qDebug() << "cookiesString" << cookiesString;
#endif
            request.setRawHeader("Cookie", cookiesString);
        }
        d_ptr->setRequest(request);
    }

    QString methodName = d_ptr->getMethodName().toUpper();

    if(methodName == "GET") {
        QNetworkReply* reply = netManager->get(d_ptr->getRequest());
        d_ptr->setReply(reply);

    } else if(methodName == "POST") {
        QNetworkReply* reply = netManager->post(d_ptr->getRequest(), data.toUtf8());
        d_ptr->setReply(reply);

    } else if(methodName == "PUT") {
        QNetworkReply* reply = netManager->put(d_ptr->getRequest(), data.toUtf8());
        d_ptr->setReply(reply);

    } else if(methodName == "DELETE") {
        QNetworkReply* reply = netManager->deleteResource(d_ptr->getRequest());
        d_ptr->setReply(reply);

    } else if(methodName == "HEAD") {
        QNetworkReply* reply = netManager->head(d_ptr->getRequest());
        d_ptr->setReply(reply);
    } else {
        qDebug() << "Invaild method : " << methodName;
        return ;
    }

    connect(d_ptr, &HttpRequestPrivate::finished,
            this, &HttpRequest::finished);

    connect(this, &HttpRequest::abort,
            d_ptr->getReply(), &QNetworkReply::abort);

    connect( d_ptr->getReply(), &QNetworkReply::downloadProgress,
             this, &HttpRequest::downloadProgress);

    connect( d_ptr->getReply(), &QNetworkReply::uploadProgress,
             this, &HttpRequest::uploadProgress);

    const int usageNumber = d_ptr->increaseUsageCount();

    if(d_ptr->getTimeout() > 0) {
        QTimer::singleShot(d_ptr->getTimeout(), this, [=](){
            if(d_ptr->getReply()
                    && d_ptr->getReply()->isRunning()
                    && usageNumber == d_ptr->getUsageCount())
            {
                Q_EMIT this->abort();
                Q_EMIT this->timeout();
            }
        });
    }

    Q_EMIT started();
    d_ptr->setReadyState(HttpRequest::Loading);
}

/*
 * QString more better than QByteArray in qml.
*/
QString HttpRequest::getResponseText() const
{
    return QString(d_ptr->getResponseText());
}

QString HttpRequest::getStatusText() const
{
    return d_ptr->getStatusText();
}

HttpRequest::NetworkStatus HttpRequest::getStatus() const
{
    return d_ptr->getStatus();
}

HttpRequest::State HttpRequest::getReadyState() const
{
    return d_ptr->getReadyState();
}

QJsonArray HttpRequest::getAllResponseHeader() const
{
    QList<QNetworkReply::RawHeaderPair> rawHeaderPairs = d_ptr->getRawHeaderPairs();
    QJsonArray responseHeaders;
    if(!rawHeaderPairs.isEmpty()) {
        foreach(auto iter, rawHeaderPairs) {
            QJsonObject header;
            header[iter.first] = QString(iter.second);
            responseHeaders.push_back(QJsonValue(header));
        }
    }
    return responseHeaders;
}

QNetworkAccessManager *HttpRequest::manager() const {
    return d_ptr->getManager();
}

void HttpRequest::setManager(QNetworkAccessManager *manager) {
    d_ptr->setManager(manager);
}

void HttpRequest::classBegin()
{
    // qDebug() << Q_FUNC_INFO;
}

void HttpRequest::componentComplete()
{
    // qDebug() << Q_FUNC_INFO;
    QQmlContext* context = qmlContext(this);
    if(context && context->engine() && context->engine()->networkAccessManager()) {
        d_ptr->setManager(context->engine()->networkAccessManager());
         qDebug() << "Set Net Access Manager Success";
    }
}

HttpRequestFactory::HttpRequestFactory(QObject *parent):
    QObject(parent)
{}

HttpRequest *HttpRequestFactory::create()
{
    qDebug() << Q_FUNC_INFO;
    HttpRequest* httpRequest = nullptr;
    QQmlEngine* qmlEngine = qobject_cast<QQmlEngine *>(this->parent());
    if(qmlEngine && qmlEngine->networkAccessManager()) {
        httpRequest = new HttpRequest(qmlEngine->networkAccessManager(),
                                      Q_NULLPTR);
    } else {
        httpRequest = new HttpRequest();
    }

    QQmlEngine::setObjectOwnership(httpRequest, QQmlEngine::JavaScriptOwnership);

    return httpRequest;
}

QObject *HttpRequestFactory::singleton(QQmlEngine *engine, QJSEngine *jsEngine)
{
    Q_UNUSED(jsEngine)
    return new HttpRequestFactory(engine);
}


text:
<?php
/**
 * @package Make
 */

if ( ! function_exists( 'ttfmake_customizer_background' ) ) :
/**
 * Configure settings and controls for the Background section.
 *
 * @since  1.0.0.
 *
 * @return void
 */
function ttfmake_customizer_background() {
	global $wp_customize;
	$theme_prefix = 'ttfmake_';
	$section_id = 'background_image';
	$section = $wp_customize->get_section( $section_id );
	$priority = new TTFMAKE_Prioritizer( 10, 5 );

	// Bail if the section isn't registered
	if ( ! is_object( $section ) || 'WP_Customize_Section' !== get_class( $section ) ) {
		return;
	}

	// Move and rename Background Color control to Global section of Color panel
	$wp_customize->get_control( 'background_color' )->section = $theme_prefix . 'color';
	$wp_customize->get_control( 'background_color' )->label = __( 'Site Background Color', 'make' );
	$wp_customize->get_control( 'background_color' )->priority = (int) $wp_customize->get_control( $theme_prefix . 'color-group-global-background' )->priority + 5;

	// Move Background Image section to Background Images panel
	$section->panel = $theme_prefix . 'background-images';

	// Set section title
	$section->title = __( 'Site', 'make' );

	// Set section priority
	$header_priority = $wp_customize->get_section( $theme_prefix . 'header-background' )->priority;
	$section->priority = $header_priority - 5;

	// Reconfigure image and repeat controls
	$wp_customize->get_control( 'background_image' )->label = __( 'Background Image', 'make' );
	$wp_customize->get_control( 'background_image' )->priority = $priority->add();
	$wp_customize->get_control( 'background_repeat' )->label = __( 'Repeat', 'make' );
	$wp_customize->get_control( 'background_repeat' )->priority = $priority->add();

	// Remove position and attachment controls
	$wp_customize->remove_control( 'background_position_x' );
	$wp_customize->remove_control( 'background_attachment' );

	// Add replacement and new controls
	$options = array(
		'background_position_x' => array(
			'setting' => array(
				'sanitize_callback' => 'ttfmake_sanitize_choice',
			),
			'control' => array(
				'control_type' => 'TTFMAKE_Customize_Background_Position_Control',
				'label'   => __( 'Position', 'make' ),
				'type'    => 'radio',
				'choices' => ttfmake_get_choices( 'background_position_x' ),
			),
		),
		'background_attachment'     => array(
			'setting' => array(
				'sanitize_callback' => 'ttfmake_sanitize_choice',
			),
			'control' => array(
				'control_type' => 'TTFMAKE_Customize_Radio_Control',
				'label'   => __( 'Attachment', 'make' ),
				'type'    => 'radio',
				'mode'    => 'buttonset',
				'choices' => ttfmake_get_choices( 'background_attachment' ),
			),
		),
		'background_size' => array(
			'setting' => array(
				'sanitize_callback' => 'ttfmake_sanitize_choice',
			),
			'control' => array(
				'control_type' => 'TTFMAKE_Customize_Radio_Control',
				'label'   => __( 'Size', 'make' ),
				'type'    => 'radio',
				'mode'    => 'buttonset',
				'choices' => ttfmake_get_choices( 'background_size' ),
			),
		),
	);
	$new_priority = ttfmake_customizer_add_section_options( $section_id, $options, $priority->add() );
	$priority->set( $new_priority );
}
endif;

add_action( 'customize_register', 'ttfmake_customizer_background', 99 );


text:
from __future__ import print_function

def speak():
    print("mrrruu")


text:
namespace sensact {

cApplication::cApplication(const eApplicationID id) : Id(id) {}

eAppCallResult cApplication::OnEvent(eApplicationID sender, eEventType evt,
			const uint8_t * const payload, uint8_t payloadLength, Time_t now) {
		(void) sender;
		(void) evt;
		(void) payload;
		(void) payloadLength;
		(void) now;
		return eAppCallResult::OK;
	}

const char* cApplication::NN(eApplicationID const appId)
{
	return MODEL::ApplicationNames[(uint16_t)appId];
}

const char* cApplication::N()
{
	return MODEL::ApplicationNames[(uint16_t)this->Id];
}

const char* cApplication::N4I(uint32_t const appId)
{
	if(appId<(uint32_t)eApplicationID::CNT)
	{
		return MODEL::ApplicationNames[appId];
	}
	return "INVALID APPID";
}

}


text:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.sdsmdg.harjot.croller">

    <application
        android:allowBackup="true"
        android:label="@string/app_name"
        android:supportsRtl="true">

    </application>

</manifest>


text:
<!--
@license
Copyright (c) 2017 The expand.js authors. All rights reserved.
This code may only be used under the BSD style license found at https://expandjs.github.io/LICENSE.txt
The complete set of authors may be found at https://expandjs.github.io/AUTHORS.txt
The complete set of contributors may be found at https://expandjs.github.io/CONTRIBUTORS.txt
-->

<!--
A behavior used to add press capabilities on a [Material Design paper](http://www.google.com/design/spec/what-is-material/material-properties.html).

@behavior mat-pressed-paper-behavior
@since 1.0.0
@category behaviors
@description A behavior used to add press capabilities on a Material Design paper
@keywords material design, expandjs, web components

@homepage https://expandjs.com/components/mat-pressed-paper-behavior
@repository https://github.com/expandjs/mat-elements
@source https://github.com/expandjs/mat-elements/blob/master/mat-pressed-paper-behavior.html

@behavior mat-paper-behavior /bower_components/mat-elements/mat-paper-behavior.html
@behavior mat-pressed-behavior /bower_components/mat-elements/mat-pressed-behavior.html
-->

<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../expandjs/expandjs.html">
<link rel="import" href="mat-paper-behavior.html">
<link rel="import" href="mat-pressed-behavior.html">

<script>

    /**
     * @polymerBehavior Polymer.MATPressedPaperBehaviorImp
     */
    Polymer.MATPressedPaperBehaviorImp = {

        /**
         * Makes the paper fall.
         *
         * @method _fall
         * @private
         */
        _fall() {

            // Checking
            if (this.zRaising || !this.z) { return; }

            // Setting
            this.z         = this.pressed ? this.z : this.zPrevious;
            this.zPrevious = this.pressed ? this.zPrevious : 0;
            this.zRaising  = false;
        },

        /**
         * Makes the paper raise.
         *
         * @method _raise
         * @private
         */
        _raise() {

            // Checking
            if (this.zRaising || !this.z) { return; }

            // Setting
            this.zRaising  = true;
            this.zPrevious = this.z;
            this.z         = Math.min(this.z + this.zElevation, this.zMax);

            // Falling
            this.async(() => { this.zRaising = false; this._fall(); }, 400);
        },

        /*********************************************************************/

        // OBSERVERS
        observers: [
            '__backgroundChanged(active, activeBackground)'
        ],

        // PROPERTIES
        properties: {

            /**
             * The paper's active background.
             *
             * @attribute active-background
             * @type string
             */
            activeBackground: {
                type: String
            }
        },

        /*********************************************************************/

        /**
         * The elevation value of z.
         *
         * @property zElevation
         * @type number
         * @default 6
         * @readonly
         */
        zElevation: 6,

        /**
         * The maximum value of z.
         *
         * @property zMax
         * @type number
         * @default 24
         * @readonly
         */
        zMax: 24,

        /**
         * The previous value of z.
         *
         * @property zPrevious
         * @type number
         * @default 0
         * @readonly
         */
        zPrevious: 0,

        /**
         * If set to true, the paper is raising from the rest position.
         *
         * @property zRaising
         * @type boolean
         * @default false
         * @readonly
         */
        zRaising: false,

        /*********************************************************************/

        // OBSERVER
        __backgroundChanged() {

            // Ensuring
            this.ensure('currentBackground', (this.active && this.activeBackground) || this.background || null);
        },

        /*********************************************************************/

        // HANDLER
        __handleTouch(event) {

            // Super
            Polymer.MATPressedBehaviorImp.__handleTouch.apply(this, arguments);

            // Checking
            if (event.pressed !== this) { return; }

            // Raising
            if (this.pressed) { this._raise(); } else { this._fall(); }
        }
    };

    /**
     * @polymerBehavior Polymer.MATPressedPaperBehavior
     */
    Polymer.MATPressedPaperBehavior = [
        Polymer.MATPaperBehavior,
        Polymer.MATPressedBehavior,
        Polymer.MATPressedPaperBehaviorImp
    ];
</script>


text:
/*
 * @file	tpl/js/naver_map.js
 * @author	MinSoo Kim (misol.kr@gmail.com)
 * @brief	javascript for viewing naver map and load or save map data.
 * @see		지도 모듈의 편집용 자바스크립트 중 기초 스크립트
 */

var map_zoom = 10, map_lat = '', map_lng = '', map = '', marker = '', map_markers = new Array(), map_marker_positions = '', modi_marker_pos = '', saved_location = new Array(), result_array = new Array(), result_from = '', oIcon = '';

function map_point(i) { //검색된 위치 정보를 배열에서 로드
	center = result_array[i].geometry.location;
	map.setCenter(center);
}
function view_list() { //검색된 위치 정보를 배열에서 리스트로 뿌림
	var html = '';
	if(result_array.length == 0)
	{
		alert(no_result);
		return;
	}
	for(var i=0;i<result_array.length;i++) {
		if(i==0) {
			html += '
';
		}
		if(result_array.length==1) { map_point('0'); }
		var format_split = result_array[i].formatted_address.split(" ");
		var list_address = result_array[i].formatted_address.substring(result_array[i].formatted_address.lastIndexOf(format_split[format_split.length-3]));
		html += "
"+ list_address +"
";
	}
	html += '
';
	jQuery("#result_list_layer").html(html);
	window.location.href = '#view_list';
}

function showLocation(query) {
	result_from = '';
	if(!query) return;

	var params = new Array();
	params['query'] = query;

	var response_tags = new Array('error','message','results');
	exec_xml('maps', 'getMapsAdminLocation', params, function(a,b) { complete_search(a,b,query); }, response_tags);
}

function complete_search(ret_obj, response_tags, address) {
	var results = ret_obj['results'];
	if(results) results = results.item;
	else results = new Array();

	address_adder(results);
}
function address_adder(results) {
	result_array = new Array();
	if(typeof(results.length) == "undefined") results = new Array(results);

	for(var i=0;i<results.length;i++) {
		if(results[i].formatted_address || results[i].formatted_address != null) {
			result_array[i] = { from: results[i].result_from,
				formatted_address: results[i].formatted_address,
				geometry: {location : new nhn.api.map.LatLng(results[i].geometry.lat, results[i].geometry.lng) } };
		}
	}
	view_list();
}

function getMaps() {
	oIcon = new nhn.api.map.Icon('http://static.naver.com/maps2/icons/pin_spot2.png', new nhn.api.map.Size(28, 37), new nhn.api.map.Size(14, 37));

	var mapOption = {
		zoom: map_zoom,
		point: new nhn.api.map.LatLng(defaultlat, defaultlng),
		enableWheelZoom : true,
		enableDblClickZoom : true,
		mapMode : 0,
		activateTrafficMap : false,
		activateBicycleMap : false
	}
	map = new nhn.api.map.Map("map_canvas", mapOption);

	if(saved_maps_srl > 0)
	{
		var center_split = saved_map_center.split(',');
		center = new nhn.api.map.LatLng(center_split[0], center_split[1]);

		var markers_split = saved_map_markers.split(';');
		map_marker_positions = saved_map_markers.trim();
		marker = addMarker(0);

		map_zoom = parseInt(saved_map_zoom,10) - 5;
		if(!map_zoom) map_zoom = 10;
	}
	else
	{
		center = new nhn.api.map.LatLng(defaultlat, defaultlng);
	}

	map.setCenter(center);
	var center = map.getCenter();

	jQuery("#width").val('600');
	jQuery("#height").val('400');
	map.setLevel(map_zoom);

	var zoomControl = new nhn.api.map.ZoomControl();
	map.addControl(zoomControl);
	zoomControl.setPosition({ top : 10, left : 10 });
	var mapTypeControl = new nhn.api.map.MapTypeBtn();
	map.addControl(mapTypeControl);
	mapTypeControl.setPosition({ top : 10, right : 10 });

	map.attach('click', function(event) {
		var oTarget = event.target;
		if (oTarget instanceof nhn.api.map.Marker) {
			var position = event.target.getPoint();
			if(typeof(position) == "undefined") return;
			removeMarker(position);
		} else {
			var position = event.point;
			map_marker_positions += position.getLat() + ',' + position.getLng() + ';';
			addMarker(0);
		}
		return false;
	});

}

/* 새로운 위치에 마커 추가. latlng = 0 인 경우, map_marker_positions 에 지정된 마커 새로 찍음 */
function addMarker(latlng) {
	if(typeof(latlng) == "undefined") return;
	var new_marker_obj;
	/* 전체 구조는 removeMarker() 와 동일*/
	// 마커 일단 다 제거
	if(typeof(map_markers) != "undefined") {
		// 마커 일단 다 제거
		for(var i = 0; i < map_markers.length; i++)
		{
			map.removeOverlay(map_markers[i]);
		}
	}

	map_markers = new Array();

	if(latlng != 0) {
		var latitude = latlng.getLat();
		var longitude = latlng.getLng();

		// 중복되는 마커는 생성되지 않도록.
		map_marker_positions = map_marker_positions.replace(latitude+','+longitude+';', '');
		map_marker_positions += latitude + ',' + longitude + ';'; /* removeMarker() 와 다른 곳 */
	}

	positions = makeLocationArray(map_marker_positions);

	// 전체 마커 다시 생성
	for(var i = 0; i < positions.length; i++)
	{
		map_markers[i] = new nhn.api.map.Marker(oIcon, {
			point: positions[i]
		});
		map.addOverlay(map_markers[i]);

		new_marker_obj = map_markers[i];
	}

	// 추가된 마커가 배열의 가장 마지막에 있을거란 가정 하에 마지막 마커 리턴
	return new_marker_obj;

}
function removeMarker(latlng) {
	if(typeof(latlng) == "undefined") return;
	// 마커 일단 다 제거
	for(var i = 0; i < map_markers.length; i++)
	{
		map.removeOverlay(map_markers[i]);
	}
	map_markers = new Array();

	var latitude = latlng.getLat();
	var longitude = latlng.getLng();

	// 마커 위치 제거
	map_marker_positions = map_marker_positions.replace(latitude+','+longitude+';', '');
	positions = makeLocationArray(map_marker_positions);

	// 전체 마커 다시 생성
	for(var i = 0; i < positions.length; i++)
	{
		map_markers[i] = new nhn.api.map.Marker(oIcon, {
			point: positions[i]
		});
		map.addOverlay(map_markers[i]);
	}

}

function positionstrRemover(obj_position, str_positions) {
	var remove_point = '';
	var arr_positions = str_positions.split(";");
	for(var i = 0; i < arr_positions.length; i++)
	{
		if(!arr_positions[i].trim()) continue;
		var position = arr_positions[i].split(",");
		var obj_base_position = new nhn.api.map.LatLng(position[0],position[1]);
		if(obj_base_position.equals(obj_position))
		{
			str_positions = str_positions.replace(arr_positions[i] + ';', '');
		}
	}
	return str_positions;
}

function makeLocationArray(str_position) {
	var arr_positons = new Array();
	var positions = str_position.split(";");
	for(var i = 0; i < positions.length; i++)
	{
		if(!positions[i].trim()) continue;
		var position = positions[i].split(",");
		arr_positons[i] = new nhn.api.map.LatLng(position[0],position[1]);
	}
	return arr_positons;
}
function makeLocationStr(arr_position) {
	var str_positons = '';

	for(var i = 0; i < arr_position.length; i++)
	{
		str_positons += arr_position[i].getLat() + ',' + arr_position[i].getLng() + ';';
	}
	return str_positons;
}

function saveMap(obj) {
	var maps_srl = jQuery("#maps_srl").val(), map_title = jQuery("#map_title").val(), map_description = jQuery("#map_description").val();

	map_zoom = map.getLevel() + 5;
	map_lat = map.getCenter().getLat();
	map_lng = map.getCenter().getLng();
	if(!maps_srl) {maps_srl = 'NEW'}

	var map_var = {
			'maps_srl':maps_srl,
			'map_center': map_lat+','+map_lng,
			'map_markers': map_marker_positions,
			'map_zoom': map_zoom,
			'map_title': map_title,
			'map_description':map_description
		};

	var response_tags = new Array('error','message','maps_srl');
	exec_xml('maps', 'procMapsAdminInsert', map_var, function(ret_obj,b) {
			var maps_srl = ret_obj['maps_srl'];
			if(maps_srl > 0)
			{
				jQuery("#maps_srl").val(maps_srl);
				alert(maps_saved);
			}

		}, response_tags);

}

jQuery(document).ready(function() { getMaps(); });


text:
namespace content {

class RenderFrameHostImpl;

class WebTransportConnectorImpl final
    : public blink::mojom::WebTransportConnector {
 public:
  // |frame| is needed for devtools and the throttle context. Sometimes (e.g.,
  // the connector is for shared or service workers) there is no appropriate
  // frame to associate, and in that case nullptr should be passed.
  WebTransportConnectorImpl(
      int process_id,
      base::WeakPtr<RenderFrameHostImpl> frame,
      const url::Origin& origin,
      const net::NetworkAnonymizationKey& network_anonymization_key);
  ~WebTransportConnectorImpl() override;

  void Connect(
      const GURL& url,
      std::vector<network::mojom::WebTransportCertificateFingerprintPtr>
          fingerprints,
      mojo::PendingRemote<network::mojom::WebTransportHandshakeClient>
          handshake_client) override;

 private:
  void OnThrottleDone(
      const GURL& url,
      std::vector<network::mojom::WebTransportCertificateFingerprintPtr>
          fingerprints,
      mojo::PendingRemote<network::mojom::WebTransportHandshakeClient>
          handshake_client,
      std::unique_ptr<WebTransportThrottleContext::Tracker> tracker);

  void OnWillCreateWebTransportCompleted(
      const GURL& url,
      std::vector<network::mojom::WebTransportCertificateFingerprintPtr>
          fingerprints,
      mojo::PendingRemote<network::mojom::WebTransportHandshakeClient>
          handshake_client,
      absl::optional<network::mojom::WebTransportErrorPtr> error);

  const int process_id_;
  const base::WeakPtr<RenderFrameHostImpl> frame_;
  const url::Origin origin_;
  const net::NetworkAnonymizationKey network_anonymization_key_;
  const base::WeakPtr<WebTransportThrottleContext> throttle_context_;

  base::WeakPtrFactory<WebTransportConnectorImpl> weak_factory_{this};
};

}  // namespace content

#endif  // CONTENT_BROWSER_WEBTRANSPORT_WEB_TRANSPORT_CONNECTOR_IMPL_H_


text:
require "NodeT/version"

module NodeTraverser

  def self.calculateUniqueNodes(nodes, counter=0, uniqueNodes=nil)
    raise ArgumentError if nodes.nil?

    uniqueNodes = Array.new([]) if uniqueNodes.nil?

    if uniqueNodes[counter].nil?
      uniqueNodes[counter] = Array.new([nodes])
    else
      uniqueNodes[counter] << nodes unless uniqueNodes[counter].include?(nodes)
    end

    nodes.listNodes.each do |node|
      unless uniqueNodes[counter].include?(node)
        uniqueNodes[counter] << node
        calculateUniqueNodes(node,counter,uniqueNodes)
      end
    end
    uniqueNodes[counter].length
  end

  class Node
    attr_accessor :listNodes

    def initialize()
      self.listNodes = Array.new
    end

    def addNodeToList(node)
      listNodes.push(node)
    end
  end
end


text:
package com.sun.xml.internal.bind.v2.runtime.output;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Arrays;
import java.util.Collections;

import com.sun.xml.internal.bind.api.JAXBRIContext;
import com.sun.xml.internal.bind.v2.runtime.Name;
import com.sun.istack.internal.FinalArrayList;
import com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler;

/**
 * {@link XmlOutput} that generates canonical XML.
 *
 * @see com.sun.xml.internal.bind.api.C14nSupport_ArchitectureDocument
 * @author Kohsuke Kawaguchi
 */
public class C14nXmlOutput extends UTF8XmlOutput {
    public C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler) {
        super(out, localNames, escapeHandler);
        this.namedAttributesAreOrdered = namedAttributesAreOrdered;

        for( int i=0; i<staticAttributes.length; i++ )
            staticAttributes[i] = new StaticAttribute();
    }

    /**
     * Hosts statically known attributes.
     *
     * {@link StaticAttribute} instances are reused.
     */
    private StaticAttribute[] staticAttributes = new StaticAttribute[8];
    private int len = 0;

    /**
     * Used to sort namespace declarations. Reused.
     */
    private int[] nsBuf = new int[8];

    /**
     * Hosts other attributes whose name are not statically known
     * (AKA attribute wildcard.)
     *
     * As long as this map is empty, there's no need for sorting.
     * see {@link com.sun.xml.internal.bind.api.C14nSupport_ArchitectureDocument} for more details.
     */
    private final FinalArrayList<DynamicAttribute> otherAttributes = new FinalArrayList<DynamicAttribute>();

    /**
     * True if {@link JAXBRIContext} is created with c14n support on,
     * in which case all named attributes are sorted by the marshaller
     * and we won't have to do it here.
     */
    private final boolean namedAttributesAreOrdered;

    final class StaticAttribute implements Comparable<StaticAttribute> {
        Name name;
        String value;

        public void set(Name name, String value) {
            this.name = name;
            this.value = value;
        }

        void write() throws IOException {
            C14nXmlOutput.super.attribute(name,value);
        }

        DynamicAttribute toDynamicAttribute() {
            int nsUriIndex = name.nsUriIndex;
            int prefix;
            if(nsUriIndex==-1)
                prefix = -1;
            else
                prefix = nsUriIndex2prefixIndex[nsUriIndex];
            return new DynamicAttribute(
                prefix, name.localName, value );
        }

        public int compareTo(StaticAttribute that) {
            return this.name.compareTo(that.name);
        }

    }

    final class DynamicAttribute implements Comparable<DynamicAttribute> {
        final int prefix;
        final String localName;
        final String value;

        public DynamicAttribute(int prefix, String localName, String value) {
            this.prefix = prefix;
            this.localName = localName;
            this.value = value;
        }

        private String getURI() {
            if(prefix==-1)  return "";
            else            return nsContext.getNamespaceURI(prefix);
        }

        public int compareTo(DynamicAttribute that) {
            int r = this.getURI().compareTo(that.getURI());
            if(r!=0)    return r;
            return this.localName.compareTo(that.localName);
        }
    }

    @Override
    public void attribute(Name name, String value) throws IOException {
        if(staticAttributes.length==len) {
            // reallocate
            int newLen = len*2;
            StaticAttribute[] newbuf = new StaticAttribute[newLen];
            System.arraycopy(staticAttributes,0,newbuf,0,len);
            for(int i=len;i<newLen;i++)
                staticAttributes[i] = new StaticAttribute();
            staticAttributes = newbuf;
        }

        staticAttributes[len++].set(name,value);
    }

    @Override
    public void attribute(int prefix, String localName, String value) throws IOException {
        otherAttributes.add(new DynamicAttribute(prefix,localName,value));
    }

    @Override
    public void endStartTag() throws IOException {
        if(otherAttributes.isEmpty()) {
            if(len!=0) {
                // sort is expensive even for size 0 array,
                // so it's worth checking len==0
                if(!namedAttributesAreOrdered)
                    Arrays.sort(staticAttributes,0,len);
                // this is the common case
                for( int i=0; i<len; i++ )
                    staticAttributes[i].write();
                len = 0;
            }
        } else {
            // this is the exceptional case

            // sort all the attributes, not just the other attributes
            for( int i=0; i<len; i++ )
                otherAttributes.add(staticAttributes[i].toDynamicAttribute());
            len = 0;
            Collections.sort(otherAttributes);

            // write them all
            int size = otherAttributes.size();
            for( int i=0; i<size; i++ ) {
                DynamicAttribute a = otherAttributes.get(i);
                super.attribute(a.prefix,a.localName,a.value);
            }
            otherAttributes.clear();
        }
        super.endStartTag();
    }

    /**
     * Write namespace declarations after sorting them.
     */
    @Override
    protected void writeNsDecls(int base) throws IOException {
        int count = nsContext.getCurrent().count();

        if(count==0)
            return; // quickly reject the most common case

        if(count>nsBuf.length)
            nsBuf = new int[count];

        for( int i=count-1; i>=0; i-- )
            nsBuf[i] = base+i;

        // do a bubble sort. Hopefully # of ns decls are small enough to justify bubble sort.
        // faster algorithm is more compliated to implement
        for( int i=0; i<count; i++ ) {
            for( int j=i+1; j<count; j++ ) {
                String p = nsContext.getPrefix(nsBuf[i]);
                String q = nsContext.getPrefix(nsBuf[j]);
                if( p.compareTo(q) > 0 ) {
                    // swap
                    int t = nsBuf[j];
                    nsBuf[j] = nsBuf[i];
                    nsBuf[i] = t;
                }
            }
        }

        // write them out
        for( int i=0; i<count; i++ )
            writeNsDecl(nsBuf[i]);
    }
}


text:
"""
Contains tests for AmazonS3  related adapters.
"""

__version__ = "$Revision-Id$"


text:
<!DOCTYPE html>
<meta charset=utf-8>
<title>Redirecting...</title>
<link rel=canonical href="../豊/index.html">
<meta http-equiv=refresh content="0; url='../豊/index.html'">

Redirecting...

Click here if you are not redirected.


text:
@interface MOBProjectionEPSG32260 : MOBProjection

@end


text:
<?php

namespace Yucca\Component\Selector;

/**
 * Class Ids
 * @package Yucca\Component\Selector
 */
class Ids implements SelectorInterface
{
    /**
     * @var array
     */
    protected $ids;
    protected $preparedIds;
    protected $isQueryPrepared = false;

    protected $keyName;
    protected $limit = null;

    /**
     * @param array  $ids
     * @param string $keyName
     */
    public function __construct(array $ids, $keyName = null)
    {
        $this->ids = $ids;
        $this->keyName = $keyName ;
    }

    /**
     * @return mixed
     */
    public function current()
    {
        $this->prepareQuery();

        if (isset($this->keyName)) {
            return array($this->keyName => current($this->preparedIds));
        } else {
            return current($this->preparedIds);
        }
    }

    /**
     *
     */
    public function next()
    {
        $this->prepareQuery();

        next($this->preparedIds);
    }

    /**
     * @return mixed
     */
    public function key()
    {
        $this->prepareQuery();

        return key($this->preparedIds);
    }

    /**
     * @return bool
     */
    public function valid()
    {
        $this->prepareQuery();

        return ( false !== current($this->preparedIds) );
    }

    /**
     *
     */
    public function rewind()
    {
        $this->prepareQuery();

        reset($this->preparedIds);
    }

    /**
     * @return int
     */
    public function count()
    {
        return count($this->ids);
    }

    /**
     * @return null
     */
    public function currentShardingKey()
    {
        return null;
    }

    /**
     * @param array $criteria
     *
     * @throws \RuntimeException
     */
    public function setCriteria(array $criteria)
    {
        throw new \RuntimeException();
    }

    /**
     * @param mixed $value
     *
     * @return $this
     */
    public function limit($value)
    {
        if (0 === preg_match('/^([0-9]+)(,[0-9]+)?$/', $value)) {
            throw new \InvalidArgumentException($value.' doesn\'t match limit pattern');
        }
        $this->limit = $value;

        return $this;
    }

    /**
     *
     */
    protected function prepareQuery()
    {
        if (false === $this->isQueryPrepared) {
            if ($this->limit) {
                $limits = explode(',', $this->limit);
                if (count($limits) == 1) {
                    $this->preparedIds = array_slice($this->ids, 0, $limits[0]);
                } else {
                    $this->preparedIds = array_slice($this->ids, $limits[0], $limits[1]);
                }
            } else {
                $this->preparedIds = $this->ids;
            }
            $this->isQueryPrepared = true;
        }
    }
}


text:
from kafkatest.services.performance import PerformanceService
from kafkatest.utils.security_config import SecurityConfig

from kafkatest.services.kafka.directory import kafka_dir

class EndToEndLatencyService(PerformanceService):

    logs = {
        "end_to_end_latency_log": {
            "path": "/mnt/end-to-end-latency.log",
            "collect_default": True},
    }

    def __init__(self, context, num_nodes, kafka, security_protocol, topic, num_records, consumer_fetch_max_wait=100, acks=1):
        super(EndToEndLatencyService, self).__init__(context, num_nodes)
        self.kafka = kafka
        self.security_config = SecurityConfig(security_protocol)
        self.security_protocol = security_protocol
        self.args = {
            'topic': topic,
            'num_records': num_records,
            'consumer_fetch_max_wait': consumer_fetch_max_wait,
            'acks': acks
        }

    def _worker(self, idx, node):
        args = self.args.copy()
        self.security_config.setup_node(node)
        if self.security_protocol == SecurityConfig.SSL:
            ssl_config_file = SecurityConfig.SSL_DIR + "/security.properties"
            node.account.create_file(ssl_config_file, str(self.security_config))
        else:
            ssl_config_file = ""
        args.update({
            'zk_connect': self.kafka.zk.connect_setting(),
            'bootstrap_servers': self.kafka.bootstrap_servers(),
            'ssl_config_file': ssl_config_file
        })

        cmd = "/opt/%s/bin/kafka-run-class.sh kafka.tools.EndToEndLatency " % kafka_dir(node)
        cmd += "%(bootstrap_servers)s %(topic)s %(num_records)d %(acks)d 20 %(ssl_config_file)s" % args
        cmd += " | tee /mnt/end-to-end-latency.log"

        self.logger.debug("End-to-end latency %d command: %s", idx, cmd)
        results = {}
        for line in node.account.ssh_capture(cmd):
            if line.startswith("Avg latency:"):
                results['latency_avg_ms'] = float(line.split()[2])
            if line.startswith("Percentiles"):
                results['latency_50th_ms'] = float(line.split()[3][:-1])
                results['latency_99th_ms'] = float(line.split()[6][:-1])
                results['latency_999th_ms'] = float(line.split()[9])
        self.results[idx-1] = results