text:
<!DOCTYPE html>

	<title>QuickBlox Survey Generator</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="shortcut icon" href="http://quickblox.com/favicon.ico">
	<link rel="stylesheet" href="style.css" type="text/css">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700" type="text/css">

Sign up

Login

Contact

Enterprise

Pricing

Documentation

Documentation

Pricing

Enterprise

Contact

Login

Sign up

						<form class="co_form">

Thank You!

						</form>

				<button type="button" class="close" id="co_close" data-dismiss="modal" aria-hidden="true">×</button>

Thank You!

				<input type="text" class="form-control" id="co_name" placeholder="Name">
				<input type="email" class="form-control" id="co_email" placeholder="Email">
				<button type="submit" class="form-control btn-lg" id="co_submit" placeholder="SUBMIT" onclick="submitSurveyAnswer()">SUBMIT</button>

								Documentation

								Enterprise

								About

								Blog

								Press

								Privacy policy

								Terms of Use

								Status

 For sales and partnerships
 queries contact us:

						enterprise@quickblox.com


text:
package com.amazonaws.services.s3.internal;

import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.annotation.SdkTestInternalApi;
import com.amazonaws.internal.SdkFilterInputStream;
import com.amazonaws.services.s3.model.S3ObjectInputStream;
import com.amazonaws.util.IOUtils;
import com.amazonaws.util.Throwables;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.client.methods.HttpRequestBase;

/**
 * Does EOS detection for objects returned by S3. Will abort the HTTP connection if not all data is read
 * from the stream which means a new connection must be established. This is likely an error on the customers part
 * as they should only request the bytes they need (or drain the stream after use) to ensure the connection can be reused.
 */
@SdkInternalApi
public final class S3AbortableInputStream extends SdkFilterInputStream {

    private static final Log LOG = LogFactory.getLog(S3AbortableInputStream.class);

    private final HttpRequestBase httpRequest;
    private final long contentLength;
    private long bytesRead;
    private long markedBytes;
    private boolean eofReached = false;

    public S3AbortableInputStream(InputStream in, HttpRequestBase httpRequest, long contentLength) {
        super(in);
        this.httpRequest = httpRequest;
        this.contentLength = contentLength;
    }

    /**
     * {@inheritDoc}
     *
     * Aborts the underlying http request without reading any more data and
     * closes the stream.
     *

     * By default Apache {@link org.apache.http.client.HttpClient} tries to reuse http connections by
     * reading to the end of an attached input stream on
     * {@link InputStream#close()}. This is efficient from a socket pool
     * management perspective, but for objects with large payloads can incur
     * significant overhead while bytes are read from s3 and discarded. It's up
     * to clients to decide when to take the performance hit implicit in not
     * reusing an http connection in order to not read unnecessary information
     * from S3.
     *
     * @see org.apache.http.conn.EofSensorInputStream
     */
    @Override
    public void abort() {
        super.abort();
        if (httpRequest != null) {
            httpRequest.abort();
        }
        IOUtils.closeQuietly(in, null);
    }

    /**
     * Returns the value of super.available() if the result is nonzero, or 1
     * otherwise.
     *

     * This is necessary to work around a known bug in
     * GZIPInputStream.available(), which returns zero in some edge cases,
     * causing file truncation.
     *

     * Ref: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7036144
     */
    @Override
    public int available() throws IOException {
        int estimate = super.available();
        return estimate == 0 ? 1 : estimate;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int read() throws IOException {
        try {
            int value = super.read();
            eofReached = value == -1;
            if (!eofReached) {
                bytesRead++;
            }
            return value;
        } catch (Exception e) {
            return onException(e);
        }
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int read(byte[] b) throws IOException {
        return read(b, 0, b.length);

    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int read(byte[] b, int off, int len) throws IOException {
        try {
            int value = super.read(b, off, len);
            eofReached = value == -1;
            if (!eofReached) {
                bytesRead += value;
            }
            return value;
        } catch (Exception e) {
            return onException(e);
        }
    }

    @Override
    public synchronized void mark(int readlimit) {
        super.mark(readlimit);
        markedBytes = bytesRead;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public synchronized void reset() throws IOException {
        super.reset();
        bytesRead = markedBytes;
        eofReached = false;
    }

    @Override
    public synchronized long skip(long n) throws IOException {
        try {
            long skipped = super.skip(n);
            if (skipped > 0) {
                bytesRead += skipped;
            }
            return skipped;
        } catch (Exception e) {
            return onException(e);
        }
    }

    /**
     * {@inheritDoc}
     *
     * Delegates to {@link S3ObjectInputStream#abort()} if there is any data
     * remaining in the stream. Otherwise, it safely closes the stream.
     *
     * @see {@link S3ObjectInputStream#abort()}
     */
    @Override
    public void close() throws IOException {
        if (_readAllBytes() || isAborted()) {
            super.close();
        } else {
            LOG.warn(
                    "Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection. This is likely an error and " +
                    "may result in sub-optimal behavior. Request only the bytes you need via a ranged GET or drain the input " +
                    "stream after use.");
            if (httpRequest != null) {
                httpRequest.abort();
            }
            IOUtils.closeQuietly(in, null);
        }
    }

    /**
     * Exposed for tests to verify the correct number of bytes were read in mark/reset scenarios.
     */
    @SdkTestInternalApi
    long getBytesRead() {
        return this.bytesRead;
    }

    @SdkTestInternalApi
    boolean isEofReached() {
        return this.eofReached;
    }

    /**
     * Marks the input stream as EOF since no further reads should be done.
     *
     * @param e Exception thrown by delegate stream.
     * @return Noting, just for return signature.
     * @throws IOException or {@link RuntimeException}
     */
    private int onException(Exception e) throws IOException {
        eofReached = true;
        if (e instanceof IOException) {
            throw (IOException) e;
        } else if (e instanceof RuntimeException) {
            throw (RuntimeException) e;
        } else {
            // Impossible since InputStream throws no other checked exceptions.
            throw Throwables.failure(e);
        }
    }

    // Underscore to prevent clash with Java 9's method.
    private boolean _readAllBytes() {
        return bytesRead >= contentLength || eofReached;
    }
}

redpajama_set_name: RedPajamaGithub


text:
/*
 * Do not modify this file. This file is generated from the ec2-2015-10-01.normal.json service model.
 */
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.EC2.Model
{
    /// <summary>
    /// Container for the parameters to the RevokeSecurityGroupIngress operation.
    /// Removes one or more ingress rules from a security group. The values that you specify
    /// in the revoke request (for example, ports) must match the existing rule's values for
    /// the rule to be removed.
    ///
    ///
    /// <para>
    /// Each rule consists of the protocol and the CIDR range or source security group. For
    /// the TCP and UDP protocols, you must also specify the destination port or range of
    /// ports. For the ICMP protocol, you must also specify the ICMP type and code.
    /// </para>
    ///
    /// <para>
    /// Rule changes are propagated to instances within the security group as quickly as possible.
    /// However, a small delay might occur.
    /// </para>
    /// </summary>
    public partial class RevokeSecurityGroupIngressRequest : AmazonEC2Request
    {
        private string _groupId;
        private string _groupName;
        private List<IpPermission> _ipPermissions = new List<IpPermission>();

        /// <summary>
        /// Empty constructor used to set  properties independently even when a simple constructor is available
        /// </summary>
        public RevokeSecurityGroupIngressRequest() { }

        /// <summary>
        /// Instantiates RevokeSecurityGroupIngressRequest with the parameterized properties
        /// </summary>
        /// <param name="groupName">[EC2-Classic, default VPC] The name of the security group.</param>
        /// <param name="ipPermissions">A set of IP permissions. You can't specify a source security group and a CIDR IP address range.</param>
        public RevokeSecurityGroupIngressRequest(string groupName, List<IpPermission> ipPermissions)
        {
            _groupName = groupName;
            _ipPermissions = ipPermissions;
        }

        /// <summary>
        /// Gets and sets the property GroupId.
        /// <para>
        /// The ID of the security group. Required for a security group in a nondefault VPC.
        /// </para>
        /// </summary>
        public string GroupId
        {
            get { return this._groupId; }
            set { this._groupId = value; }
        }

        // Check to see if GroupId property is set
        internal bool IsSetGroupId()
        {
            return this._groupId != null;
        }

        /// <summary>
        /// Gets and sets the property GroupName.
        /// <para>
        /// [EC2-Classic, default VPC] The name of the security group.
        /// </para>
        /// </summary>
        public string GroupName
        {
            get { return this._groupName; }
            set { this._groupName = value; }
        }

        // Check to see if GroupName property is set
        internal bool IsSetGroupName()
        {
            return this._groupName != null;
        }

        /// <summary>
        /// Gets and sets the property IpPermissions.
        /// <para>
        /// A set of IP permissions. You can't specify a source security group and a CIDR IP address
        /// range.
        /// </para>
        /// </summary>
        public List<IpPermission> IpPermissions
        {
            get { return this._ipPermissions; }
            set { this._ipPermissions = value; }
        }

        // Check to see if IpPermissions property is set
        internal bool IsSetIpPermissions()
        {
            return this._ipPermissions != null && this._ipPermissions.Count > 0;
        }

    }
}


text:
from __future__ import absolute_import, division, print_function, with_statement

import os
import sys
import logging
import logging.handlers

from turbo.conf import app_config

PY3 = sys.version_info >= (3,)

_formatter = logging.Formatter(
    '%(levelname)s:%(asctime)s %(name)s:%(lineno)d:%(funcName)s %(message)s')

if PY3:
    basestring_type = str
else:
    basestring_type = basestring  # noqa: F821

def _init_file_logger(logger, level, log_path, log_size, log_count):
    """
    one logger only have one level RotatingFileHandler
    """
    if level not in [logging.NOTSET, logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL]:
        level = logging.DEBUG

    for h in logger.handlers:
        if isinstance(h, logging.handlers.RotatingFileHandler):
            if h.level == level:
                return

    fh = logging.handlers.RotatingFileHandler(
        log_path, maxBytes=log_size, backupCount=log_count)
    fh.setLevel(level)
    fh.setFormatter(_formatter)
    logger.addHandler(fh)

def _init_stream_logger(logger, level=None):
    ch = logging.StreamHandler()
    ch.setLevel(level or logging.DEBUG)
    ch.setFormatter(_formatter)
    logger.addHandler(ch)

def _module_logger(path):
    file_name = os.path.basename(path)
    module_name = file_name[0:file_name.rfind('.py')]
    logger_name_list = [module_name]

    # find project root dir util find it or to root dir '/'
    while True:
        # root path check
        path = os.path.dirname(path)
        if path == '/':
            break

        # project root path
        dirname = os.path.basename(path)
        if dirname == app_config.project_name:
            break
        logger_name_list.append(dirname)

    logger_name_list.reverse()

    return logging.getLogger('.'.join(logger_name_list))

def getLogger(currfile=None, level=None, log_path=None, log_size=500 * 1024 * 1024, log_count=3):
    # init logger first
    logger = None

    # py module logger
    if currfile is not None:
        path = os.path.abspath(currfile)
        if os.path.isfile(path):
            logger = _module_logger(path)
        elif isinstance(currfile, basestring_type) and currfile.strip():
            # normal logger
            logger = logging.getLogger(currfile)

        logger.setLevel(level or app_config.log_level)

    if not logger:
        logger = logging.getLogger()

    # keep the root logger at least have one streamhandler
    if not logger.root.handlers:
        _init_stream_logger(logger.root, level)

    if log_path:
        _init_file_logger(logger, level, log_path, log_size, log_count)

    return logger

# Logger objects for internal turbo use
app_log = getLogger('turbo.app')
model_log = getLogger('turbo.model', level=logging.WARNING)
util_log = getLogger('turbo.util')
helper_log = getLogger('turbo.helper')
session_log = getLogger('turbo.session')


text:
import * as internal from "./internal.js";
import ReactiveElement from "./ReactiveElement.js"; // eslint-disable-line no-unused-vars

/**
 * Update state before, during, and after CSS transitions
 *
 * @module TransitionEffectMixin
 * @param {Constructor<ReactiveElement>} Base
 */
export default function TransitionEffectMixin(Base) {
  // The class prototype added by the mixin.
  class TransitionEffect extends Base {
    [internal.componentDidMount]() {
      if (super[internal.componentDidMount]) {
        super[internal.componentDidMount]();
      }

      // Listen for `transitionend` events so we can check to see whether an
      // effect has completed. If the component defines an `effectEndTarget`
      // that's the host, listen to events on that. Otherwise, we assume the
      // target is either in the shadow or an element that will be slotted into
      // a slot in the shadow, so we'll listen to events that reach the shadow
      // root.
      const target =
        this[internal.effectEndTarget] === this ? this : this.shadowRoot;
      target.addEventListener("transitionend", event => {
        // See if the event target is our expected `effectEndTarget`. If the
        // component defines a `effectEndTarget` state, we use that; otherwise,
        // we use the element identified with `internal.effectEndTarget`.
        const effectEndTarget =
          this[internal.state].effectEndTarget ||
          this[internal.effectEndTarget];
        if (event.target === effectEndTarget) {
          // Advance to the next phase.
          this[internal.setState]({
            effectPhase: "after"
          });
        }
      });
    }

    [internal.componentDidUpdate](/** @type {PlainObject} */ changed) {
      if (super[internal.componentDidUpdate]) {
        super[internal.componentDidUpdate](changed);
      }
      if (changed.effect || changed.effectPhase) {
        const { effect, effectPhase } = this[internal.state];
        /**
         * Raised when [state.effect](TransitionEffectMixin#effect-phases) or
         * [state.effectPhase](TransitionEffectMixin#effect-phases) changes.
         *
         * Note: In general, Elix components do not raise events in response to
         * outside manipulation. (See
         * [internal.raiseChangeEvents](symbols#raiseChangeEvents).) However, for
         * a component using `TransitionEffectMixin`, a single invocation of the
         * `startEffect` method will cause the element to pass through multiple
         * visual states. This makes it hard for external hosts of this
         * component to know what visual state the component is in. Accordingly,
         * the mixin raises the `effect-phase-changed` event whenever the effect
         * or phase changes, even if `internal.raiseChangeEvents` is false.
         *
         * @event effect-phase-changed
         */
        const event = new CustomEvent("effect-phase-changed", {
          detail: {
            effect,
            effectPhase
          }
        });
        this.dispatchEvent(event);

        if (effect) {
          if (effectPhase !== "after") {
            // We read a layout property to force the browser to render the component
            // with its current styles before we move to the next state. This ensures
            // animated values will actually be applied before we move to the next
            // state.
            this.offsetHeight;
          }
          if (effectPhase === "before") {
            // Advance to the next phase.
            this[internal.setState]({
              effectPhase: "during"
            });
          }
        }
      }
    }

    /**
     * Return the elements that use CSS transitions to provide visual effects.
     *
     * By default, this assumes the host element itself will have a CSS
     * transition applied to it, and so returns an array containing the element.
     * If you will be applying CSS transitions to other elements, override this
     * property and return an array containing the implicated elements.
     *
     * See [internal.effectEndTarget](symbols#effectEndTarget)
     * for details.
     *
     * @type {HTMLElement}
     */
    get [internal.effectEndTarget]() {
      return super[internal.effectEndTarget] || this;
    }

    /**
     * See [internal.startEffect](symbols#startEffect).
     *
     * @param {string} effect
     */
    async [internal.startEffect](effect) {
      await this[internal.setState]({
        effect,
        effectPhase: "before"
      });
    }
  }

  return TransitionEffect;
}


text:
function Controller() {
    function tab() {
        Alloy.createController("tabWin").getView();
    }
    function json() {
        Alloy.createController("jsonWin").getView();
    }
    function gps() {
        Alloy.createController("gpsWin").getView();
    }
    function SQLite() {
        Alloy.createController("sqliteWin").getView();
    }
    function camera() {}
    function gallery() {}
    function barcode() {}
    function serverJSON() {}
    require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
    this.__controllerPath = "index";
    arguments[0] ? arguments[0]["__parentSymbol"] : null;
    arguments[0] ? arguments[0]["$model"] : null;
    arguments[0] ? arguments[0]["__itemTemplate"] : null;
    var $ = this;
    var exports = {};
    var __defers = {};
    $.__views.index = Ti.UI.createWindow({
        backgroundColor: "white",
        id: "index"
    });
    $.__views.index && $.addTopLevelView($.__views.index);
    $.__views.tab = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "30dp",
        left: "20dp",
        width: "50dp",
        height: "30dp",
        title: "TAB",
        id: "tab"
    });
    $.__views.index.add($.__views.tab);
    tab ? $.__views.tab.addEventListener("click", tab) : __defers["$.__views.tab!click!tab"] = true;
    $.__views.json = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "30dp",
        left: "100dp",
        width: "50dp",
        height: "30dp",
        title: "JSON",
        id: "json"
    });
    $.__views.index.add($.__views.json);
    json ? $.__views.json.addEventListener("click", json) : __defers["$.__views.json!click!json"] = true;
    $.__views.gps = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "30dp",
        left: "180dp",
        width: "50dp",
        height: "30dp",
        title: "GPS",
        id: "gps"
    });
    $.__views.index.add($.__views.gps);
    gps ? $.__views.gps.addEventListener("click", gps) : __defers["$.__views.gps!click!gps"] = true;
    $.__views.SQLite = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "90dp",
        left: "20dp",
        width: "80dp",
        height: "30dp",
        title: "SQLite",
        id: "SQLite"
    });
    $.__views.index.add($.__views.SQLite);
    SQLite ? $.__views.SQLite.addEventListener("click", SQLite) : __defers["$.__views.SQLite!click!SQLite"] = true;
    $.__views.camera = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "90dp",
        left: "125dp",
        width: "80dp",
        height: "30dp",
        title: "CAMERA",
        id: "camera"
    });
    $.__views.index.add($.__views.camera);
    camera ? $.__views.camera.addEventListener("click", camera) : __defers["$.__views.camera!click!camera"] = true;
    $.__views.gallery = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "90dp",
        left: "230dp",
        width: "80dp",
        height: "30dp",
        title: "GALLERY",
        id: "gallery"
    });
    $.__views.index.add($.__views.gallery);
    gallery ? $.__views.gallery.addEventListener("click", gallery) : __defers["$.__views.gallery!click!gallery"] = true;
    $.__views.barcode = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "150dp",
        left: "20dp",
        width: "80dp",
        height: "30dp",
        title: "BARCODE",
        id: "barcode"
    });
    $.__views.index.add($.__views.barcode);
    barcode ? $.__views.barcode.addEventListener("click", barcode) : __defers["$.__views.barcode!click!barcode"] = true;
    $.__views.serverJSON = Ti.UI.createButton({
        opacity: .8,
        backgroundColor: "#59ACFF",
        color: "white",
        backgroundSelectedColor: "orange",
        top: "150dp",
        left: "130dp",
        width: "130dp",
        height: "30dp",
        title: "SERVER-JSON",
        id: "serverJSON"
    });
    $.__views.index.add($.__views.serverJSON);
    serverJSON ? $.__views.serverJSON.addEventListener("click", serverJSON) : __defers["$.__views.serverJSON!click!serverJSON"] = true;
    exports.destroy = function() {};
    _.extend($, $.__views);
    $.index.open();
    __defers["$.__views.tab!click!tab"] && $.__views.tab.addEventListener("click", tab);
    __defers["$.__views.json!click!json"] && $.__views.json.addEventListener("click", json);
    __defers["$.__views.gps!click!gps"] && $.__views.gps.addEventListener("click", gps);
    __defers["$.__views.SQLite!click!SQLite"] && $.__views.SQLite.addEventListener("click", SQLite);
    __defers["$.__views.camera!click!camera"] && $.__views.camera.addEventListener("click", camera);
    __defers["$.__views.gallery!click!gallery"] && $.__views.gallery.addEventListener("click", gallery);
    __defers["$.__views.barcode!click!barcode"] && $.__views.barcode.addEventListener("click", barcode);
    __defers["$.__views.serverJSON!click!serverJSON"] && $.__views.serverJSON.addEventListener("click", serverJSON);
    _.extend($, exports);
}

var Alloy = require("alloy"), Backbone = Alloy.Backbone, _ = Alloy._;

module.exports = Controller;


text:
package org.wildfly.swarm.plugin.maven;

/**
 * @author Bob McWhirter
 */
public interface GraphVisitor {

    void visit(Graph graph);
    void visit(Graph.Module module);
    void visit(Graph.Artifact artifact);
}


text:
var assignInWith = require('lodash.assigninwith'),
    keys = require('lodash.keys'),
    reInterpolate = require('lodash._reinterpolate'),
    rest = require('lodash.rest'),
    templateSettings = require('lodash.templatesettings'),
    toString = require('lodash.tostring');

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** `Object#toString` result references. */
var errorTag = '[object Error]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]';

/** Used to match empty string literals in compiled template source. */
var reEmptyStringLeading = /\b__p \+= '';/g,
    reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
    reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;

/** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/** Used to ensure capturing order of template delimiters. */
var reNoMatch = /($^)/;

/** Used to match unescaped characters in compiled string literals. */
var reUnescapedString = /['\n\r\u2028\u2029\\]/g;

/** Used to escape characters for inclusion in compiled string literals. */
var stringEscapes = {
  '\\': '\\',
  "'": "'",
  '\n': 'n',
  '\r': 'r',
  '\u2028': 'u2028',
  '\u2029': 'u2029'
};

/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {...*} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function apply(func, thisArg, args) {
  var length = args.length;
  switch (length) {
    case 0: return func.call(thisArg);
    case 1: return func.call(thisArg, args[0]);
    case 2: return func.call(thisArg, args[0], args[1]);
    case 3: return func.call(thisArg, args[0], args[1], args[2]);
  }
  return func.apply(thisArg, args);
}

/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
      length = array.length,
      result = Array(length);

  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}

/**
 * The base implementation of `_.values` and `_.valuesIn` which creates an
 * array of `object` property values corresponding to the property names
 * of `props`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} props The property names to get values for.
 * @returns {Object} Returns the array of property values.
 */
function baseValues(object, props) {
  return arrayMap(props, function(key) {
    return object[key];
  });
}

/**
 * Used by `_.template` to escape characters for inclusion in compiled string literals.
 *
 * @private
 * @param {string} chr The matched character to escape.
 * @returns {string} Returns the escaped character.
 */
function escapeStringChar(chr) {
  return '\\' + stringEscapes[chr];
}

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
  length = length == null ? MAX_SAFE_INTEGER : length;
  return value > -1 && value % 1 == 0 && value < length;
}

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
 * of values.
 */
var objectToString = objectProto.toString;

/**
 * Used by `_.defaults` to customize its `_.assignIn` use.
 *
 * @private
 * @param {*} objValue The destination value.
 * @param {*} srcValue The source value.
 * @param {string} key The key of the property to assign.
 * @param {Object} object The parent object of `objValue`.
 * @returns {*} Returns the value to assign.
 */
function assignInDefaults(objValue, srcValue, key, object) {
  if (objValue === undefined ||
      (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
    return srcValue;
  }
  return objValue;
}

/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new function.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

/**
 * Gets the "length" property value of `object`.
 *
 * **Note:** This function is used to avoid a
 * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
 * Safari on at least iOS 8.1-8.3 ARM64.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {*} Returns the "length" value.
 */
var getLength = baseProperty('length');

/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
function isIterateeCall(value, index, object) {
  if (!isObject(object)) {
    return false;
  }
  var type = typeof index;
  if (type == 'number'
        ? (isArrayLike(object) && isIndex(index, object.length))
        : (type == 'string' && index in object)
      ) {
    return eq(object[index], value);
  }
  return false;
}

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'user': 'fred' };
 * var other = { 'user': 'fred' };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && isLength(getLength(value)) && !isFunction(value);
}

/**
 * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
 * `SyntaxError`, `TypeError`, or `URIError` object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an error object,
 *  else `false`.
 * @example
 *
 * _.isError(new Error);
 * // => true
 *
 * _.isError(Error);
 * // => false
 */
function isError(value) {
  if (!isObjectLike(value)) {
    return false;
  }
  return (objectToString.call(value) == errorTag) ||
    (typeof value.message == 'string' && typeof value.name == 'string');
}

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is correctly classified,
 *  else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 8 which returns 'object' for typed array and weak map constructors,
  // and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
  var tag = isObject(value) ? objectToString.call(value) : '';
  return tag == funcTag || tag == genTag;
}

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This function is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length,
 *  else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' &&
    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}

/**
 * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
 * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return !!value && (type == 'object' || type == 'function');
}

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return !!value && typeof value == 'object';
}

/**
 * Creates a compiled template function that can interpolate data properties
 * in "interpolate" delimiters, HTML-escape interpolated data properties in
 * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
 * properties may be accessed as free variables in the template. If a setting
 * object is given it takes precedence over `_.templateSettings` values.
 *
 * **Note:** In the development build `_.template` utilizes
 * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
 * for easier debugging.
 *
 * For more information on precompiling templates see
 * [lodash's custom builds documentation](https://lodash.com/custom-builds).
 *
 * For more information on Chrome extension sandboxes see
 * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category String
 * @param {string} [string=''] The template string.
 * @param {Object} [options={}] The options object.
 * @param {RegExp} [options.escape=_.templateSettings.escape]
 *  The HTML "escape" delimiter.
 * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
 *  The "evaluate" delimiter.
 * @param {Object} [options.imports=_.templateSettings.imports]
 *  An object to import into the template as free variables.
 * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
 *  The "interpolate" delimiter.
 * @param {string} [options.sourceURL='templateSources[n]']
 *  The sourceURL of the compiled template.
 * @param {string} [options.variable='obj']
 *  The data object variable name.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Function} Returns the compiled template function.
 * @example
 *
 * // Use the "interpolate" delimiter to create a compiled template.
 * var compiled = _.template('hello <%= user %>!');
 * compiled({ 'user': 'fred' });
 * // => 'hello fred!'
 *
 * // Use the HTML "escape" delimiter to escape data property values.
 * var compiled = _.template('<%- value %>');
 * compiled({ 'value': '


text:
The following packages are included in WinPython-32bit v3.9.2.0dot .

### Tools

Name | Version | Description
-----|---------|------------

### Python packages

Name | Version | Description
-----|---------|------------
[Python](http://www.python.org/) | 3.9.2 | Python programming language with standard library
[msvc_runtime](https://pypi.org/project/msvc_runtime) | 14.27.29016.1 | Install the Microsoft™ Visual C++™ runtime DLLs to the sys.prefix and Scripts directories
[pip](https://pypi.org/project/pip) | 21.0.1 | The PyPA recommended tool for installing Python packages.
[setuptools](https://pypi.org/project/setuptools) | 54.1.0 | Easily download, build, install, upgrade, and uninstall Python packages
[sqlite_bro](https://pypi.org/project/sqlite_bro) | 0.9.1 | a graphic SQLite Client in 1 Python file
[wheel](https://pypi.org/project/wheel) | 0.36.2 | A built-package format for Python
[winpython](http://winpython.github.io/) | 4.0.20210307 | WinPython distribution tools, including WPPM


text:
package com.spiral.gallery;

import com.nostra13.universalimageloader.core.assist.FailReason;
import com.nostra13.universalimageloader.core.listener.ImageLoadingListener;
import android.app.ProgressDialog;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

/**
 * Detail activity that will feature a larger visualization screen of a single picture selected
 * from the gallery
 * <p>
 * @author Nelson R. Pérez
 * @version 1.0.0
 */
public class DetailActivity extends AbsDynamicLoaderActivity {
	private String TAG = "DetailActivity";
	private ProgressDialog mProgress;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_detail);
		ImageView image = (ImageView) findViewById(R.id.Detail);
		String uri = getIntent().getExtras().getString(AlbumAdapter.URI_BIG);
		this.imageLoader.displayImage(uri, image, new ImageLoadingListener(){

			@Override
			public void onLoadingStarted(String imageUri, View view) {
				mProgress = new ProgressDialog(DetailActivity.this);
				mProgress.setIndeterminate(true);
				mProgress.setTitle(getResources().getString(R.string.download_dialog_title));
				mProgress.show();
			}

			@Override
			public void onLoadingFailed(String imageUri, View view,
					FailReason failReason) {
				mProgress.dismiss();
			}

			@Override
			public void onLoadingComplete(String imageUri, View view,
					Bitmap loadedImage) {
				mProgress.dismiss();
			}

			@Override
			public void onLoadingCancelled(String imageUri, View view) {
				mProgress.dismiss();
			}
		});
	}
}


text:
#ifndef TENSORFLOW_CONTRIB_TENSORRT_SEGMENT_SEGMENT_H_
#define TENSORFLOW_CONTRIB_TENSORRT_SEGMENT_SEGMENT_H_

#include <set>
#include <vector>

#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/graph/graph.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/types.h"

namespace tensorflow {

namespace tensorrt {
namespace segment {

// Vector of segments, each entry contains a set of node names and a device name
// in the segment.
// TODO(aaroey): use node pointer instead of node name.
using SegmentNodesVector = std::vector<std::pair<std::set<string>, string>>;

struct SegmentOptions {
  // Segment must contain at least this many nodes.
  int minimum_segment_size = 2;
  std::set<string> exclude_node_list;
};

// Get the subgraphs of a graph that can be handled by TensorRT.
//
// @param graph tensorflow::Graph of the network
// @param candidate_fn A function that returns true for a Node* if
// that node can be handled by TensorRT.
// @param segments Returns the TensorRT segments/subgraphs. Each entry
// in the vector describes a subgraph by giving a set of the names of
// all the NodeDefs in that subgraph.
// @return the status.
tensorflow::Status SegmentGraph(
    const tensorflow::Graph* tf_graph,
    const std::function<bool(const tensorflow::Node*)>& candidate_fn,
    const std::function<bool(const tensorflow::Edge*)>& input_candidate_fn,
    const std::function<bool(const tensorflow::Edge*)>& output_candidate_fn,
    const SegmentOptions& options, SegmentNodesVector* segments);

}  // namespace segment
}  // namespace tensorrt
}  // namespace tensorflow

#endif  // TENSORFLOW_CONTRIB_TENSORRT_SEGMENT_SEGMENT_H_


text:
require_relative 'super_class'

class SubClass < SuperClass
end

class SubClassMultiple < SuperClassMultiple
end


text:
module Knuckles
  module Stages
    # The combiner stage merges all of the individually rendered results into a
    # single hash. The output of this stage is a single object with string keys
    # and array values, ready to be serialized.
    module Combiner
      extend self

      # Merge all of the rendered data into a single hash. Each
      # resulting value will be an array, even if there was only one
      # value in the original rendered results.
      #
      # @param [Enumerable] prepared The prepared collection to be combined
      # @param [Hash] _options Options aren't used, but are accepted
      #   to maintain a consistent interface
      #
      # @example Combining rendered data
      #
      #     prepared = [
      #       {
      #         result: {
      #           author: {id: 1, name: "Michael"},
      #           posts: [{id: 1, title: "hello"}],
      #         }
      #       }, {
      #         result: {
      #           author: {id: 1, name: "Michael"},
      #           posts: [{id: 2, title: "there"}],
      #         }
      #       }
      #     ]
      #
      #     Knuckles::Stage::Combiner.call(prepared, {}) #=> {
      #       "author" => [
      #         {id: 1, name: "Michael"}
      #       ],
      #       "posts" => [
      #         {id: 1, title: "hello"},
      #         {id: 2, title: "there"}
      #       ]
      #     }
      #
      def call(prepared, _options)
        prepared.each_with_object(array_backed_hash) do |hash, memo|
          hash[:result].each do |root, values|
            case values
            when Hash  then memo[root.to_s] << values
            when Array then memo[root.to_s] += values
            end
          end
        end
      end

      private

      def array_backed_hash
        Hash.new { |hash, key| hash[key] = [] }
      end
    end
  end
end


text:
/**
 */
package rootElement;

import org.eclipse.emf.ecore.EObject;

/**
 *
 * A representation of the model object 'Class1'.
 *
 *
 *
 * @see rootElement.RootElementPackage#getClass1()
 * @model
 * @generated
 */
public interface Class1 extends EObject {
} // Class1


text:
class PaymentNotification < ActiveRecord::Base
  belongs_to :cart
  serialize :params
  after_create :mark_cart_as_purchased

  private

  def mark_cart_as_purchased
    if status == "Completed"
      cart.update_attribute(:purchased_at, Time.now)
    end
  end
end


text:
//////////////////////////////////////////////////////////////////////////////////////////////
template <typename PointSource, typename PointTarget, typename Scalar> inline void
pcl::Registration<PointSource, PointTarget, Scalar>::setInputTarget (const PointCloudTargetConstPtr &cloud)
{
  if (cloud->points.empty ())
  {
    PCL_ERROR ("[pcl::%s::setInputTarget] Invalid or empty point cloud dataset given!\n", getClassName ().c_str ());
    return;
  }
  target_ = cloud;
  tree_->setInputCloud (target_);
}

//////////////////////////////////////////////////////////////////////////////////////////////
template <typename PointSource, typename PointTarget, typename Scalar> inline double
pcl::Registration<PointSource, PointTarget, Scalar>::getFitnessScore (
    const std::vector<float> &distances_a,
    const std::vector<float> &distances_b)
{
  unsigned int nr_elem = static_cast<unsigned int> (std::min (distances_a.size (), distances_b.size ()));
  Eigen::VectorXf map_a = Eigen::VectorXf::Map (&distances_a[0], nr_elem);
  Eigen::VectorXf map_b = Eigen::VectorXf::Map (&distances_b[0], nr_elem);
  return (static_cast<double> ((map_a - map_b).sum ()) / static_cast<double> (nr_elem));
}

//////////////////////////////////////////////////////////////////////////////////////////////
template <typename PointSource, typename PointTarget, typename Scalar> inline double
pcl::Registration<PointSource, PointTarget, Scalar>::getFitnessScore (double max_range)
{
  double fitness_score = 0.0;

  // Transform the input dataset using the final transformation
  PointCloudSource input_transformed;
  //transformPointCloud (*input_, input_transformed, final_transformation_);
  input_transformed.resize (input_->size ());
  for (size_t i = 0; i < input_->size (); ++i)
  {
    const PointSource &src = input_->points[i];
    PointTarget &tgt = input_transformed.points[i];
    tgt.x = static_cast<float> (final_transformation_ (0, 0) * src.x + final_transformation_ (0, 1) * src.y + final_transformation_ (0, 2) * src.z + final_transformation_ (0, 3));
    tgt.y = static_cast<float> (final_transformation_ (1, 0) * src.x + final_transformation_ (1, 1) * src.y + final_transformation_ (1, 2) * src.z + final_transformation_ (1, 3));
    tgt.z = static_cast<float> (final_transformation_ (2, 0) * src.x + final_transformation_ (2, 1) * src.y + final_transformation_ (2, 2) * src.z + final_transformation_ (2, 3));
  }

  std::vector<int> nn_indices (1);
  std::vector<float> nn_dists (1);

  // For each point in the source dataset
  int nr = 0;
  for (size_t i = 0; i < input_transformed.points.size (); ++i)
  {
    Eigen::Vector4f p1 = Eigen::Vector4f (input_transformed.points[i].x,
                                          input_transformed.points[i].y,
                                          input_transformed.points[i].z, 0);
    // Find its nearest neighbor in the target
    tree_->nearestKSearch (input_transformed.points[i], 1, nn_indices, nn_dists);

    // Deal with occlusions (incomplete targets)
    if (nn_dists[0] > max_range)
      continue;

    Eigen::Vector4f p2 = Eigen::Vector4f (target_->points[nn_indices[0]].x,
                                          target_->points[nn_indices[0]].y,
                                          target_->points[nn_indices[0]].z, 0);
    // Calculate the fitness score
    fitness_score += fabs ((p1-p2).squaredNorm ());
    nr++;
  }

  if (nr > 0)
    return (fitness_score / nr);
  else
    return (std::numeric_limits<double>::max ());
}

//////////////////////////////////////////////////////////////////////////////////////////////
template <typename PointSource, typename PointTarget, typename Scalar> inline void
pcl::Registration<PointSource, PointTarget, Scalar>::align (PointCloudSource &output)
{
  align (output, Matrix4::Identity ());
}

//////////////////////////////////////////////////////////////////////////////////////////////
template <typename PointSource, typename PointTarget, typename Scalar> inline void
pcl::Registration<PointSource, PointTarget, Scalar>::align (PointCloudSource &output, const Matrix4& guess)
{
  if (!initCompute ())
    return;

  if (!target_)
  {
    PCL_WARN ("[pcl::%s::compute] No input target dataset was given!\n", getClassName ().c_str ());
    return;
  }

  // Resize the output dataset
  if (output.points.size () != indices_->size ())
    output.points.resize (indices_->size ());
  // Copy the header
  output.header   = input_->header;
  // Check if the output will be computed for all points or only a subset
  if (indices_->size () != input_->points.size ())
  {
    output.width    = static_cast<uint32_t> (indices_->size ());
    output.height   = 1;
  }
  else
  {
    output.width    = static_cast<uint32_t> (input_->width);
    output.height   = input_->height;
  }
  output.is_dense = input_->is_dense;

  // Copy the point data to output
  for (size_t i = 0; i < indices_->size (); ++i)
    output.points[i] = input_->points[(*indices_)[i]];

  // Set the internal point representation of choice
  if (point_representation_)
    tree_->setPointRepresentation (point_representation_);

  // Perform the actual transformation computation
  converged_ = false;
  final_transformation_ = transformation_ = previous_transformation_ = Matrix4::Identity ();

  // Right before we estimate the transformation, we set all the point.data[3] values to 1 to aid the rigid
  // transformation
  for (size_t i = 0; i < indices_->size (); ++i)
    output.points[i].data[3] = 1.0;

  computeTransformation (output, guess);

  deinitCompute ();
}


text:
				*

				<textarea type="text" id="subscribeAlarmReq" name="subscribeAlarmReq" style="color:gray;"
				 onfocus="textOnF(this);" onblur="textOnB(this);"><Content><DomainCode>089d6ae965674667bf7f9e5339f8e76b</DomainCode><Subscribe><SubscriberInfo><Subscriber>1</Subscriber><SubscriberID>8</SubscriberID><UserDomainCode>f563c8bc3f8240009637a9edd500ca19</UserDomainCode></SubscriberInfo></Subscribe></Content>
				 </textarea>

			<input class="btn_login" type="button"
				id="subscribeAlarmBtn" onclick="subscribeAlarm();">

			<input type="text" id="subscribeAlarm_resultCode"
				name="subscribeAlarm_resultCode" readonly="readonly">


text:
Yeni bir geliştirme yapılacağı zaman develop branchi üzerinden yeni bir branch yaratarak, o branch üzerinden çalışacağız. Geliştirmelerimiz bitse de bitmese de, çalışma yaptığımız branchi GitHub üzerindeki repository'ye push etmemizde bir sakınca yok; hatta çalışmayı bıraktığımız zaman o branchi push edelim mümkün olduğunca.

Geliştirme tamamlandıktan sonra:

* Öncelikle GitHub'daki develop branchini Fetch ve Pull yaparak lokalimize alalım, conflictler varsa çözelim.
* Lokalimizde, develop branchine geçiş yaptıktan sonra, geliştirme yaptığımız branchi develop üzerine merge edelim. (Conflict falan... :) )
* Bundan sonra develop branchini GitHub'a push edelim.


text:
@class ASIHTTPRequest, VehAvailRSCore, Booking, Fee, RentalSession, CTCountry;

@interface CTHelper : NSObject { }

// Utility methods

+ (void) showAlert:(NSString *)_t message:(NSString *)_m;

+ (NSString *) getCurrencySymbolFromString:(NSString *)currency;

+ (NSNumber *) convertStringToNumber:(NSString *)s;

+ (NSNumber *) convertFeeFromStringToNumber:(Fee *)fee;

+ (NSString *) getVehcileCategoryStringFromNumber:(NSString *)vehCatStr;

+ (NSString *) assetPath: (NSString *)asset;

// Request Builders

+ (ASIHTTPRequest *) makeRequest:(NSString *)rqCommand withSpecificHeader:(NSString *)header tail:(NSString *)rqTail;

+ (ASIHTTPRequest *) makeRequestWithoutBuiltInHeader:(NSString *)rqCommand tail:(NSString *)rqTail;

+ (ASIHTTPRequest *) makeRequest:(NSString *)rqCommand tail:(NSString *)rqTail;

+ (ASIHTTPRequest *) makeCancelBookingRequest:(NSString *)rqCommand tail:(NSString *)rqTail;

// Response validators

+ (id) validatePredictiveLocationsResponse:(NSDictionary *) response;

+ (id) validateResponse:(NSDictionary *)response;

// Response formatters

+ (NSMutableArray *) predictiveLocations:(NSDictionary *) locations;

+ (VehAvailRSCore *) vehAvailRSCore:(NSDictionary *) info;

+ (Booking *) retrievedVehResRSCore:(NSDictionary *)info;

+ (Booking *) vehResRSCore:(NSDictionary *)info;

+ (NSMutableArray *) rentalTermsAndConditions:(NSDictionary *) theTermsAndConditions;

// Local Detection

+ (void)saveCountry:(CTCountry *)country;

+ (CTCountry *)loadCountry;

+ (NSString *) getCurrencyNameForCode:(NSString *)isoCurrencyCode;

+ (NSString *) getLocaleCurrencyCode;

+ (NSString *) getLocaleCurrencySymbol;

+ (NSString *) getLocaleCode;

+ (NSString *) getLocaleDisplayName;

+ (NSString*) calculatePricePerDay:(RentalSession *)s price:(NSNumber *)p;

+ (UILabel *) getNavBarLabelWithTitle:(NSString *)t;

+ (UIButton *) getGreenUIButtonWithTitle:(NSString *)t;

+ (UIButton *) getSmallGreenUIButtonWithTitle:(NSString *)t;

+ (UIColor *) blueColor;

+ (NSString *) getTotalFeesFromSession:(RentalSession *)session;

+ (NSString *) getTotalFeesWithNoCurrencyFromSession:(RentalSession *)session;

@end


text:
require 'test_helper'
require "harvester_controller"

class HarvesterController
  def rescue_action(e)
    raise e
  end
end

class HarvesterControllerTest < ActionController::TestCase
  fixtures :tweets, :twitter_users, :duplicate_tweets
  test "remove too old" do
    xhr(:get, :removeOldTweets,
        :cutoffDate => "2011-08-24T08:40:00")
      assert_response :success
      #assert @response.body == "x", @response.body
      obj = ActiveSupport::JSON.decode @response.body
      beforeParts = obj['before']
      afterParts = obj['after']
      assert beforeParts['tweets'] == afterParts['tweets'], "tweets: #{beforeParts['tweets'] - afterParts['tweets']}"
      assert beforeParts['duplicates'] == afterParts['duplicates'], "duplicates: #{beforeParts['duplicates'] - afterParts['duplicates']}"
      assert beforeParts['twitter_users'] == afterParts['twitter_users'], "twitter_users: #{beforeParts['twitter_users'] - afterParts['twitter_users']}"
  end
  test "remove just before oldest" do
    xhr(:get, :removeOldTweets,
        :cutoffDate => "2011-08-24 18:37:04")
      assert_response :success
      obj = ActiveSupport::JSON.decode @response.body
      beforeParts = obj['before']
      afterParts = obj['after']
      assert beforeParts['tweets'] == afterParts['tweets'], "tweets: #{beforeParts['tweets'] - afterParts['tweets']}"
      assert beforeParts['duplicates'] == afterParts['duplicates'], "duplicates: #{beforeParts['duplicates'] - afterParts['duplicates']}"
      assert beforeParts['twitter_users'] == afterParts['twitter_users'], "twitter_users: #{beforeParts['twitter_users'] - afterParts['twitter_users']}"
  end
  test "remove oldest duplicate" do
    xhr(:get, :removeOldTweets,
        :cutoffDate => "2011-08-24 18:37:05")
      assert_response :success
      obj = ActiveSupport::JSON.decode @response.body
      beforeParts = obj['before']
      afterParts = obj['after']
      assert beforeParts['tweets'] == afterParts['tweets'], "tweets: #{beforeParts['tweets'] - afterParts['tweets']}"
      assert beforeParts['duplicates'] - 1 == afterParts['duplicates'], "duplicates: #{beforeParts['duplicates'] - afterParts['duplicates']}"
      assert beforeParts['twitter_users'] == afterParts['twitter_users'], "twitter_users: #{beforeParts['twitter_users'] - afterParts['twitter_users']}"
  end
  # Finally verify dependent users are deleted
  test "remove a bunch of items" do
    xhr(:get, :removeOldTweets,
        :cutoffDate => "2011-08-24 19:05:00")
      assert_response :success
      obj = ActiveSupport::JSON.decode @response.body
      beforeParts = obj['before']
      afterParts = obj['after']
      # The reason why we end up with 13 users is because one of the
      # users isn't referenced in any tweets, but we don't track those here.
      assert afterParts['tweets'] == 11, "tweets: #{afterParts['tweets']}"
      assert afterParts['duplicates'] == 1, "duplicates: #{afterParts['duplicates']}"
      assert afterParts['twitter_users'] == 13, "twitter_users: #{afterParts['twitter_users']}"
  end
end


text:
<!--
  ~ Copyright (c) 2017 Evolveum
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<role oid="9149b3ca-5da1-11e7-8e84-130a91fb5876"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
        xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
    <name>One: Manual</name>
    <inducement>
    	<construction>
    		<resourceRef oid="0ef80ab8-2906-11e7-b81a-3f343e28c264" type="ResourceType"/> <!-- Manual -->
    		<kind>account</kind>
    		<attribute>
                <ref>ri:interests</ref>
                <outbound>
                	<expression>
						<value>one</value>
					</expression>
				</outbound>
            </attribute>
    	</construction>
    </inducement>
</role>


text:
> **_Note:_** Ditto has been developed against **Umbraco v6.2.5** and will support that version and above.

Ditto can be installed from either Our Umbraco or NuGet package repositories, or build manually from the source-code:

## Our Umbraco package repository

To install from Our Umbraco, please download the package from:

> [http://our.umbraco.org/projects/developer-tools/ditto](http://our.umbraco.org/projects/developer-tools/ditto)

## NuGet package repository

To [install from NuGet](https://www.nuget.org/packages/Our.Umbraco.Ditto), you can run the following command from within Visual Studio:

```bash
PM> Install-Package Our.Umbraco.Ditto
```

We also have a [MyGet package repository](https://www.myget.org/gallery/umbraco-ditto) - for bleeding-edge / development releases.

## Manual build

If you prefer, you can compile Ditto yourself, you'll need:

* Visual Studio 2012 (or above)

To clone it locally run the following git commands:

```bash
git clone https://github.com/leekelleher/umbraco-ditto.git umbraco-ditto
cd umbraco-ditto
.\build.cmd
```


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Mycologia 60(4): 949 (1968)

#### Original name
Boletus chromapes Frost

### Remarks
null


text:
<?php

namespace Zimbra\Mail\Request;

/**
 * GetNotifications request class
 * Get notifications
 *
 * @package    Zimbra
 * @subpackage Mail
 * @category   Request
 * @author     Nguyen Van Nguyen - nguyennv1981@gmail.com
 * @copyright  Copyright © 2013 by Nguyen Van Nguyen.
 */
class GetNotifications extends Base
{
    /**
     * Constructor method for GetNotifications
     * @param  bool $markSeen
     * @return self
     */
    public function __construct($markSeen = null)
    {
        parent::__construct();
        if(null !== $markSeen)
        {
            $this->setProperty('markSeen', (bool) $markSeen);
        }
    }

    /**
     * Gets mark seen
     *
     * @return bool
     */
    public function getMarkSeen()
    {
        return $this->getProperty('markSeen');
    }

    /**
     * Sets mark seen
     *
     * @param  bool $markSeen
     * @return self
     */
    public function setMarkSeen($markSeen)
    {
        return $this->setProperty('markSeen', (bool) $markSeen);
    }
}


text:
package com.thoughtworks.go.util.command;

public class OutputConsumer implements StreamConsumer {
    private ConsoleOutputStreamConsumer consoleOutputStreamConsumer;

    public OutputConsumer(ConsoleOutputStreamConsumer consoleOutputStreamConsumer) {
        this.consoleOutputStreamConsumer = consoleOutputStreamConsumer;
    }

    @Override
    public void consumeLine(String line) {
        consoleOutputStreamConsumer.stdOutput(line);
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2021 The Android Open Source Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

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

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/chip"
    android:layout_width="10dp"
    android:layout_height="10dp"
    android:layout_gravity="fill"
    android:layout_columnWeight="1"
    android:layout_rowWeight="1"
    android:text="A1-500"
    android:backgroundTint="@color/system_accent1_500"
    android:background="@drawable/s_roundrect"
    android:gravity="center"
    android:textColor="?android:attr/textColorPrimary"
    android:fontFamily="?android:attr/textAppearanceLarge"
    android:layout_margin="2dp"
    android:singleLine="true"
    />


text:
<head>
  <title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.name }} – {{ site.description }}</title>

  {% include meta.html %}
  {% include fonts.html %}

  <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->

  <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css" />
  <link rel="alternate" type="application/rss+xml" title="{{ site.name }} - {{ site.description }}" href="{{ site.baseurl }}/feed.xml" />
  <script data-ad-client="ca-pub-2583055920258871" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  <!-- Created with Jekyll Now - http://github.com/barryclark/jekyll-now -->
</head>


text:
import React from 'react'
import { Link } from 'react-router'
import s from './ListItem.css'
import Paper from 'material-ui/Paper'
import FloatingActionButton from 'material-ui/FloatingActionButton'
import ActionDelete from 'material-ui/svg-icons/action/delete'

import Spinner from '../Spinner/Spinner'

const ListItem = props => {
  const { item, frame } = props
  const { image } = frame || {}
  const { header } = item
  const { item_thinking } = item
  return (

      {
        item_thinking ? <Spinner /> : (
        <Link to={`/items/${item.id}`}>

            <ActionDelete />

            {
              header ? (

                  {header['DATE-OBS'].value}
                  {/*{header['TIME-OBS'].value}*/}

              ) : null
            }

        </Link>
        )
      }

  )
}

export default ListItem


text:
package jp.fkmsoft.libs.kiilib.apis.app;

import org.json.JSONObject;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import java.util.List;

import jp.fkmsoft.libs.kiilib.apis.TopicAPI;
import jp.fkmsoft.libs.kiilib.entities.KiiGroup;
import jp.fkmsoft.libs.kiilib.entities.KiiTopic;
import jp.fkmsoft.libs.kiilib.entities.KiiTopicMessage;
import jp.fkmsoft.libs.kiilib.test.MockHttpClient;
import jp.fkmsoft.libs.kiilib.test.TestKiiAppApi;

/**
 * Test case for TopicApi
 */
public class TestTopicApi {

    private static final String APP_ID = "appId";
    private static final String APP_KEY = "appKey";
    private static final String BASE_URL = "https://api-jp.kii.com/api";

    private TestKiiAppApi mAppApi;
    private MockHttpClient mClient;

    @Before
    public void setUp() {
        mAppApi = new TestKiiAppApi(APP_ID, APP_KEY, BASE_URL);
        mClient = (MockHttpClient) mAppApi.getHttpClient();
    }

    @Test
    public void test_0000_create() {
        mClient.addToSendJson(204, null, "");

        KiiGroup group = new KiiGroup("group1234");
        String name = "topicName";

        mAppApi.topicAPI().create(group, name, new TopicAPI.TopicCallback<KiiTopic>() {
            @Override
            public void onSuccess(KiiTopic topic) {
                Assert.assertNotNull(topic);
                Assert.assertEquals("topicName", topic.getName());
            }

            @Override
            public void onError(Exception e) {
                Assert.fail(e.getMessage());
            }
        });
    }

    @Test
    public void test_0100_subscribe() {
        mClient.addToSendJson(204, null, "");

        KiiGroup group = new KiiGroup("group1234");
        String name = "topicName";
        KiiTopic topic = new KiiTopic(group, name);

        mAppApi.topicAPI().subscribe(topic, new TopicAPI.TopicCallback<KiiTopic>() {
            @Override
            public void onSuccess(KiiTopic topic) {
                Assert.assertNotNull(topic);
            }

            @Override
            public void onError(Exception e) {
                Assert.fail(e.getMessage());
            }
        });
    }

    @Test
    public void test_0200_sendMessage() {
        mClient.addToSendJson(200, "{\"pushMessageID\":\"message1234\"}", "");

        KiiGroup group = new KiiGroup("group1234");
        String name = "topicName";
        KiiTopic topic = new KiiTopic(group, name);

        JSONObject pushData = new JSONObject();
        KiiTopicMessage message = new KiiTopicMessage(pushData, "type01");

        mAppApi.topicAPI().sendMessage(topic, message, new TopicAPI.SendMessageCallback() {
            @Override
            public void onSuccess(String pushMessageId) {
                Assert.assertEquals("message1234", pushMessageId);
            }

            @Override
            public void onError(Exception e) {
                Assert.fail(e.getMessage());
            }
        });
    }

    @Test
    public void test_0300_getList() {
        mClient.addToSendJson(200, "{\"topics\":[" +
                "{\"topicID\":\"topic01\"}" +
                "]}", "");

        KiiGroup group = new KiiGroup("group1234");

        mAppApi.topicAPI().getList(group, new TopicAPI.TopicListCallback<KiiTopic>() {
            @Override
            public void onSuccess(List<KiiTopic> list) {
                Assert.assertNotNull(list);
                Assert.assertEquals(1, list.size());

                KiiTopic topic = list.get(0);
                Assert.assertEquals("topic01", topic.getName());
            }

            @Override
            public void onError(Exception e) {
                Assert.fail(e.getMessage());
            }
        });
    }
}


text:
require(['common'], function () {

    /*require(['Config', 'ErrorReporter', 'GA', 'Sugar'], function (Config, ErrorReporter, GA) {
        require.config({
            config: {
                i18n: {
                    locale: Config().locale.toLowerCase() /!* TODO: change to your app's way of getting the locale *!/
                }
            }
        });

        GA.init(Config().credentials.google.analytics/!* TODO: change to your app's way of getting the GA account *!/, [['require', 'linkid', 'linkid.js']], true);
        ErrorReporter.init('/api/log/log'); /!* TODO: change to your app's frontend error logger API url *!/

        try {
            Date.setLocale(Config().locale); /!* TODO: change to your app's way of getting the locale *!/
        } catch (e) {
            window.console && window.console.error(e.message);
        }
    });*/

    /* TODO: do other bootstrapping needed for your app */

    require(['AppRouter']);

});


text:
package ppc64asm

import (
	"fmt"
	"strings"
)

// GoSyntax returns the Go assembler syntax for the instruction.
// The pc is the program counter of the first instruction, used for expanding
// PC-relative addresses into absolute ones.
// The symname function queries the symbol table for the program
// being disassembled. It returns the name and base address of the symbol
// containing the target, if any; otherwise it returns "", 0.
func GoSyntax(inst Inst, pc uint64, symname func(uint64) (string, uint64)) string {
	if symname == nil {
		symname = func(uint64) (string, uint64) { return "", 0 }
	}
	if inst.Op == 0 {
		return "?"
	}
	var args []string
	for i, a := range inst.Args[:] {
		if a == nil {
			break
		}
		if s := plan9Arg(&inst, i, pc, a, symname); s != "" {
			args = append(args, s)
		}
	}
	var op string
	op = plan9OpMap[inst.Op]
	if op == "" {
		op = strings.ToUpper(inst.Op.String())
	}
	// laid out the instruction
	switch inst.Op {
	default: // dst, sA, sB, ...
		if len(args) == 0 {
			return op
		} else if len(args) == 1 {
			return fmt.Sprintf("%s %s", op, args[0])
		}
		args = append(args, args[0])
		return op + " " + strings.Join(args[1:], ", ")
	// store instructions always have the memory operand at the end, no need to reorder
	case STB, STBU, STBX, STBUX,
		STH, STHU, STHX, STHUX,
		STW, STWU, STWX, STWUX,
		STD, STDU, STDX, STDUX,
		STQ,
		STHBRX, STWBRX:
		return op + " " + strings.Join(args, ", ")
	// branch instructions needs additional handling
	case BCLR:
		if int(inst.Args[0].(Imm))&20 == 20 { // unconditional
			return "RET"
		}
		return op + " " + strings.Join(args, ", ")
	case BC:
		if int(inst.Args[0].(Imm))&0x1c == 12 { // jump on cond bit set
			return fmt.Sprintf("B%s %s", args[1], args[2])
		} else if int(inst.Args[0].(Imm))&0x1c == 4 && revCondMap[args[1]] != "" { // jump on cond bit not set
			return fmt.Sprintf("B%s %s", revCondMap[args[1]], args[2])
		}
		return op + " " + strings.Join(args, ", ")
	case BCCTR:
		if int(inst.Args[0].(Imm))&20 == 20 { // unconditional
			return "BR (CTR)"
		}
		return op + " " + strings.Join(args, ", ")
	case BCCTRL:
		if int(inst.Args[0].(Imm))&20 == 20 { // unconditional
			return "BL (CTR)"
		}
		return op + " " + strings.Join(args, ", ")
	case BCA, BCL, BCLA, BCLRL, BCTAR, BCTARL:
		return op + " " + strings.Join(args, ", ")
	}
}

// plan9Arg formats arg (which is the argIndex's arg in inst) according to Plan 9 rules.
// NOTE: because Plan9Syntax is the only caller of this func, and it receives a copy
//       of inst, it's ok to modify inst.Args here.
func plan9Arg(inst *Inst, argIndex int, pc uint64, arg Arg, symname func(uint64) (string, uint64)) string {
	// special cases for load/store instructions
	if _, ok := arg.(Offset); ok {
		if argIndex+1 == len(inst.Args) || inst.Args[argIndex+1] == nil {
			panic(fmt.Errorf("wrong table: offset not followed by register"))
		}
	}
	switch arg := arg.(type) {
	case Reg:
		if isLoadStoreOp(inst.Op) && argIndex == 1 && arg == R0 {
			return "0"
		}
		if arg == R30 {
			return "g"
		}
		return strings.ToUpper(arg.String())
	case CondReg:
		if arg == CR0 && strings.HasPrefix(inst.Op.String(), "cmp") {
			return "" // don't show cr0 for cmp instructions
		} else if arg >= CR0 {
			return fmt.Sprintf("CR%d", int(arg-CR0))
		}
		bit := [4]string{"LT", "GT", "EQ", "SO"}[(arg-Cond0LT)%4]
		if arg <= Cond0SO {
			return bit
		}
		return fmt.Sprintf("4*CR%d+%s", int(arg-Cond0LT)/4, bit)
	case Imm:
		return fmt.Sprintf("$%d", arg)
	case SpReg:
		switch arg {
		case 8:
			return "LR"
		case 9:
			return "CTR"
		}
		return fmt.Sprintf("SPR(%d)", int(arg))
	case PCRel:
		addr := pc + uint64(int64(arg))
		if s, base := symname(addr); s != "" && base == addr {
			return fmt.Sprintf("%s(SB)", s)
		}
		return fmt.Sprintf("%#x", addr)
	case Label:
		return fmt.Sprintf("%#x", int(arg))
	case Offset:
		reg := inst.Args[argIndex+1].(Reg)
		removeArg(inst, argIndex+1)
		if reg == R0 {
			return fmt.Sprintf("%d(0)", int(arg))
		}
		return fmt.Sprintf("%d(R%d)", int(arg), reg-R0)
	}
	return fmt.Sprintf("???(%v)", arg)
}

// revCondMap maps a conditional register bit to its inverse, if possible.
var revCondMap = map[string]string{
	"LT": "GE", "GT": "LE", "EQ": "NE",
}

// plan9OpMap maps an Op to its Plan 9 mnemonics, if different than its GNU mnemonics.
var plan9OpMap = map[Op]string{
	LWARX: "LWAR", STWCX_: "STWCCC",
	LDARX: "LDAR", STDCX_: "STDCCC",
	LHARX: "LHAR", STHCX_: "STHCCC",
	LBARX: "LBAR", STBCX_: "STBCCC",
	ADDI: "ADD",
	ADD_: "ADDCC",
	LBZ:  "MOVBZ", STB: "MOVB",
	LBZU: "MOVBZU", STBU: "MOVBU", // TODO(minux): indexed forms are not handled
	LHZ: "MOVHZ", LHA: "MOVH", STH: "MOVH",
	LHZU: "MOVHZU", STHU: "MOVHU",
	LI:  "MOVD",
	LIS: "ADDIS",
	LWZ: "MOVWZ", LWA: "MOVW", STW: "MOVW",
	LWZU: "MOVWZU", STWU: "MOVWU",
	LD: "MOVD", STD: "MOVD",
	LDU: "MOVDU", STDU: "MOVDU",
	MTSPR: "MOVD", MFSPR: "MOVD", // the width is ambiguous for SPRs
	B:     "BR",
	BL:    "CALL",
	CMPLD: "CMPU", CMPLW: "CMPWU",
	CMPD: "CMP", CMPW: "CMPW",
}


text:
<?php

$ex = new ReflectionExtension("git2");
$result = array();
foreach ($ex->getFunctions() as $func) {
    /** @var ReflectionFunction $func */

    $name = $func->getName();
    $result[$name] = array();
    foreach ($func->getParameters() as $param) {
        /** @var ReflectionParameter $param */
        $result[$name][] = '$' . $param->getName();
    }
}

echo "<?php\n";
foreach ($result as $func => $params) {
    printf("function %s(%s){}\n", $func, join(", ", $params));
}


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.08.09 at 09:22:32 PM IST
//

package com.pacificmetrics.ims.apip.qti.item;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
 *                 Provides an operator that returns the number of values that confrm to the associated constraints e.g. 'numberCorrect'.
 *
 *
 *
Java class for Number.Type complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="Number.Type">
 *   <complexContent>
 *     <extension base="{http://www.imsglobal.org/xsd/apip/apipv1p0/qtiitem/imsqti_v2p2}EmptyPrimitiveType.Type">
 *       <attGroup ref="{http://www.imsglobal.org/xsd/apip/apipv1p0/qtiitem/imsqti_v2p2}includeCategory.Number.Attr"/>
 *       <attGroup ref="{http://www.imsglobal.org/xsd/apip/apipv1p0/qtiitem/imsqti_v2p2}excludeCategory.Number.Attr"/>
 *       <attGroup ref="{http://www.imsglobal.org/xsd/apip/apipv1p0/qtiitem/imsqti_v2p2}sectionIdentifier.Number.Attr"/>
 *     </extension>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Number.Type")
public class NumberType
    extends EmptyPrimitiveTypeType {

    @XmlAttribute(name = "includeCategory")
    protected List<String> includeCategories;
    @XmlAttribute(name = "excludeCategory")
    protected List<String> excludeCategories;
    @XmlAttribute(name = "sectionIdentifier")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String sectionIdentifier;

    /**
     * Gets the value of the includeCategories property.
     *
     *

     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a set method for the includeCategories property.
     *
     *

     * For example, to add a new item, do as follows:
     *

     *    getIncludeCategories().add(newItem);
     *

     *
     *
     *

     * Objects of the following type(s) are allowed in the list
     * {@link String }
     *
     *
     */
    public List<String> getIncludeCategories() {
        if (includeCategories == null) {
            includeCategories = new ArrayList<String>();
        }
        return this.includeCategories;
    }

    /**
     * Gets the value of the excludeCategories property.
     *
     *

     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a set method for the excludeCategories property.
     *
     *

     * For example, to add a new item, do as follows:
     *

     *    getExcludeCategories().add(newItem);
     *

     *
     *
     *

     * Objects of the following type(s) are allowed in the list
     * {@link String }
     *
     *
     */
    public List<String> getExcludeCategories() {
        if (excludeCategories == null) {
            excludeCategories = new ArrayList<String>();
        }
        return this.excludeCategories;
    }

    /**
     * Gets the value of the sectionIdentifier property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getSectionIdentifier() {
        return sectionIdentifier;
    }

    /**
     * Sets the value of the sectionIdentifier property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setSectionIdentifier(String value) {
        this.sectionIdentifier = value;
    }

}


text:
const char name_01[] = "filebuf_virtuals-1.txt"; // file with data in it
const char name_03[] = "tmp_sputn_1io.tst"; // empty file, need to create

void test05()
{
  using namespace std;
  using namespace __gnu_test;

  typedef filebuf::int_type 	int_type;
  typedef filebuf::traits_type 	traits_type;
  typedef size_t 			size_type;

  bool test __attribute__((unused)) = true;
  streamsize 			strmsz_1, strmsz_2;

  // streamsize sputn(const char_typs* s, streamsize n)
  // write up to n chars to out_cur from s, returning number assigned
  // NB *sputn will happily put '\0' into your stream if you give it a chance*

  // in | out
  {
    constraint_filebuf fb_03;
    fb_03.open(name_03, ios_base::out | ios_base::in | ios_base::trunc);
    VERIFY( !fb_03.write_position() );
    VERIFY( !fb_03.read_position() );
    strmsz_1 = fb_03.sputn("racadabras", 10);//"abracadabras or what?"
    VERIFY( strmsz_1 == 10 );
    strmsz_2 = fb_03.sputn(", i wanna reach out and", 10);
    VERIFY( strmsz_2 == 10 );
    VERIFY( strmsz_1 == strmsz_2 );
    VERIFY( fb_03.write_position() );
    VERIFY( !fb_03.read_position() );
  }
}

int main()
{
  test05();
  return 0;
}


text:
namespace Technology {

class GameLoop: public RF_Pattern::SignalReceiver
{
public:
    void Start()
    {
        RF_Mem::AutoPointer<RF_IO::Directory> dir = RF_IO::Directory::ApplicationDirectory();

        m_Allocator = RF_Mem::AutoPointer<RFECS::Allocator>(new Technology::Allocator());
        m_Collector.Setup(*m_Allocator);

        RF_Mem::AutoPointer<RFECS::BaseComponentManager> renderBehaviourManager(new ComponentManager::Renderer());
        auto* renderer = static_cast<ComponentManager::Renderer*>(renderBehaviourManager.Get());

        RF_Mem::AutoPointer<MainWindow> window(new MainWindow());
        window->Initialize(renderer);
        m_Collector.RegisterComponentManager(renderBehaviourManager);

        window->OnIdle += Connector<>(&GameLoop::Run);
        RF_Form::WindowServiceLocator::Default().Application()->Run(window.Get());
    }

    void Run()
    {
        m_Collector.Process();
    }

    RF_Mem::AutoPointer<RFECS::Allocator> m_Allocator;
    RFECS::Collector m_Collector;
};

}

void main()
{
    RadonFramework::Radon framework;
    RF_Mem::AutoPointer<RF_Diag::Appender> console(new RF_IO::LogConsole);
    RF_IO::Log::AddAppender(console);

    if(RF_Form::WindowServiceLocator::Default().Application()->IsRunningOnDesktop())
        RF_Form::WindowServiceLocator::Default().Application()->ShowConsole(false);

    Technology::GameLoop gameloop;
    gameloop.Start();

    RF_Pattern::Singleton<RF_Thread::ThreadPool>::GetInstance().WaitTillDoneWithInactiveQueue();
    return;
}


text:
When a program crashes you can often see an error code.
It's a 3-digit number, usually shown with a frowny face.
You can trigger your own error code by calling `control.panic(code)`.

## Invalid cast codes

When static type of `x` is a class `C`, the dynamic type
of `x` isn't `C`, and you try to access a field on `x` or call a method
on `x`, you will get one of the following codes, depending on dynamic
type of `x`.

* **980** - when `x` is `undefined`
* **981** - when `x` is `true` or `false`
* **982** - when `x` is a number
* **983** - when `x` is a string
* **984** - when `x` is object of some type
* **985** - when `x` is a function
* **989** - when `x` is `null`

## Other codes

* **907** - a required configuration setting (in `config` namespace) is missing
* **908** - a required pin was not defined (also in `config` namespace)
* **910** - memory limit exceeded (only on Linux targets)
* **914** - TypeScript code was called from interrupt service routine
* **915** - heap dumped - the code is waiting for debugger to load the heap

## Codal codes

* **020** - out of memory in Codal heap - too many events or fibers
* **021** - out of memory in GC heap - too many objects
* **030** - heap error (memory corruption)
* **040** - null dereference
* **050** - USB error
* **090** - hardware configuration error - likely using wrong pin for SPI/I2C/PWM/etc

## Internal error codes

You should not see these.

```
    PANIC_INVALID_BINARY_HEADER = 901,
    PANIC_OUT_OF_BOUNDS = 902,
    PANIC_REF_DELETED = 903,
    PANIC_SIZE = 904,
    PANIC_INVALID_VTABLE = 905,
    PANIC_INTERNAL_ERROR = 906,
    PANIC_INVALID_ARGUMENT = 909,
    PANIC_SCREEN_ERROR = 911,
```

The error codes in the `800-899` are even more internal:

* **84X** - garbage collector errors


text:
package edu.hm.hafner.analysis.registry;

import edu.hm.hafner.analysis.IssueParser;
import edu.hm.hafner.analysis.parser.MavenConsoleParser;

/**
 * A descriptor for the Maven Console parser.
 *
 * @author Lorenz Munsch
 */
class MavenConsoleDescriptor extends ParserDescriptor {
    private static final String ID = "maven-warnings";
    private static final String NAME = "Maven";

    MavenConsoleDescriptor() {
        super(ID, NAME);
    }

    @Override
    public IssueParser createParser(final Option... options) {
        return new MavenConsoleParser();
    }
}


text:
Sorting

You can order the elements based off a function you supply. In the demo above, each item has a data-date-created and data-title attribute. When the select option menu changes, a sort object is passed to shuffle.

<select class="sort-options">
  <option value="">Default</option>
  <option value="title">Title</option>
  <option value="date-created">Date Created</option>
</select>

<figure class="picture-item" data-groups='["photography"]' data-date-created="2010-09-14" data-title="Baseball">…</figure>

// Sorting options
$('.sort-options').on('change', function() {
  var sort = this.value,
      opts = {};

  // We're given the element wrapped in jQuery
  if ( sort === 'date-created' ) {
    opts = {
      reverse: true,
      by: function($el) {
        return $el.data('date-created');
      }
    };
  } else if ( sort === 'title' ) {
    opts = {
      by: function($el) {
        return $el.data('title').toLowerCase();
      }
    };
  }

  // Filter elements
  $grid.shuffle('sort', opts);
});

The opts parameter can contain two properties. reverse, a boolean which will reverse the array. by is a function that is passed the element wrapped in jQuery. In the case above, we’re returning the value of the data-date-created or data-title attributes.

Calling sort with an empty object will reset the elements to DOM order.

Check out the demo.


text:
namespace gpu {

// Implementation of GPU memory buffer based on shared memory.
class GPU_EXPORT GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
 public:
  ~GpuMemoryBufferImplSharedMemory() override;

  static std::unique_ptr<GpuMemoryBufferImplSharedMemory> Create(
      gfx::GpuMemoryBufferId id,
      const gfx::Size& size,
      gfx::BufferFormat format,
      const DestructionCallback& callback);

  static gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
      gfx::GpuMemoryBufferId id,
      const gfx::Size& size,
      gfx::BufferFormat format);

  static std::unique_ptr<GpuMemoryBufferImplSharedMemory> CreateFromHandle(
      const gfx::GpuMemoryBufferHandle& handle,
      const gfx::Size& size,
      gfx::BufferFormat format,
      gfx::BufferUsage usage,
      const DestructionCallback& callback);

  static bool IsUsageSupported(gfx::BufferUsage usage);
  static bool IsConfigurationSupported(gfx::BufferFormat format,
                                       gfx::BufferUsage usage);
  static bool IsSizeValidForFormat(const gfx::Size& size,
                                   gfx::BufferFormat format);

  static base::Closure AllocateForTesting(const gfx::Size& size,
                                          gfx::BufferFormat format,
                                          gfx::BufferUsage usage,
                                          gfx::GpuMemoryBufferHandle* handle);

  // Overridden from gfx::GpuMemoryBuffer:
  bool Map() override;
  void* memory(size_t plane) override;
  void Unmap() override;
  int stride(size_t plane) const override;
  gfx::GpuMemoryBufferHandle GetHandle() const override;

 private:
  GpuMemoryBufferImplSharedMemory(
      gfx::GpuMemoryBufferId id,
      const gfx::Size& size,
      gfx::BufferFormat format,
      const DestructionCallback& callback,
      std::unique_ptr<base::SharedMemory> shared_memory,
      size_t offset,
      int stride);

  std::unique_ptr<base::SharedMemory> shared_memory_;
  size_t offset_;
  int stride_;

  DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSharedMemory);
};

}  // namespace gpu

#endif  // GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_