text:
(function () {
  'use strict';
  var sys = {
      dataPath: 'data/',
      dataBest: 'best.dat',
      dataSolutions: 'solution.%n.dat',
      answer: [],
      renderedLines: 0, //current rendered best pad line numbers
      toLines: 0,
      rendering: false,
      $tchislaPad:document.getElementById('tchislaPad'),
      $solutions: document.getElementById('solutions'),
      $answer: document.getElementById('answer'),
      $last: document.getElementById('last'),
      $next: document.getElementById('next'),
      $quiz: document.getElementById('quiz'),
      $formula: document.getElementById('formula'),
      $solution: document.getElementById('solution'),
      getName: function (n) {
        return sys.dataSolutions.replace(/%n/, (n - 1) / 50 | 0)
      },
      getLatex: function (a, s) {
        return '$$' + a + '=' + s.replace(/([a-z])/g, '#$1').replace(/#t/g, '\\times').
          replace(/#s/g, '\\sqrt').replace(/#l/g, '\\left').replace(/#r/g, '\\right').
          replace(/#f/g, '\\frac').replace(/#x/g, '\\textstyle') + '$$';
      }
    },
    tchisla = window.tchisla = {
      getData: function (file, callback, isAsync) {
        var request = new XMLHttpRequest();
        request.open('GET', sys.dataPath + file, isAsync);
        request.onload = function () {
          if (request.status >= 200 && request.status < 400) {
            console.log('file load success', file);
            sys[file] = request.responseText;
            callback(sys[file]);
          }
        };
        request.send();
      },
      parseData: function (dataSolution) {
        var solutionArr = dataSolution.split(/[\n\r]+/);
        solutionArr.forEach(function (data) {
          if (data.match(/^\d+,\d+,[^,]+,[^,]+$/)) {
            var answerArr = data.split(',');
            sys.answer[answerArr[0]] = sys.answer[answerArr[0]] || [];
            sys.answer[answerArr[0]][answerArr[1]] = [answerArr[2], answerArr[3]];
          }
        });
      },
      onScroll: function () {
        var targetPos = window.scrollY / 41 + 1 + 50 | 0;
        if (sys.renderedLines < targetPos) {
          sys.toLines = targetPos;
          if (!sys.rendering) { tchisla.renderPad(); }
        }
      },
      renderPad: function () {
        sys.rendering = true;
        if (sys.maxY < sys.toLines) {sys.toLines =  sys.maxY;}
        while (sys.renderedLines < sys.toLines) {
          var y = ++sys.renderedLines;
          var tr = document.createElement('tr'), td = document.createElement('td');
          td.setAttribute('class', 'row');
          td.innerText = y;
          tr.appendChild(td);
          for (var x = 1; x <= 9; x++) {
            td = document.createElement('td');
            td.setAttribute('rel', (y) + '#' + (x));
            td.innerText = parseInt(sys.bestArr[y-1][x-1], 36);
            tr.appendChild(td);
          }
          sys.$solutions.appendChild(tr);
        }
        sys.rendering = false;
      },
      showAnswer: function (targetNum, baseNum) {
        sys.x = +baseNum;
        sys.y = +targetNum;
        sys.$answer.style.display = 'block';
        sys.$quiz.innerText = targetNum + '#' + baseNum;
        sys.$solution.innerText = targetNum + '=' + sys.answer[targetNum][baseNum][0];
        if (MathJax) {
          sys.$formula.innerText = sys.getLatex(targetNum, sys.answer[targetNum][baseNum][1]);
          MathJax.Hub.Queue(["Typeset", MathJax.Hub, sys.$formula]);
        }
      },
      render: function () {
        tchisla.getData(sys.dataBest, function (bestData) {
          sys.bestArr = sys[sys.dataBest].split(/[\n\r]+/);
          sys.maxY = sys.bestArr.length;
          sys.$tchislaPad.style.height = sys.bestArr.length * 41 + 6 + 'px';
          sys.toLines = 50;
          if (!sys.rendering) { tchisla.renderPad(); }
        }, true);
        sys.$solutions.addEventListener('click', function (e) {
          var quiz = e.target.getAttribute('rel');
          if (!quiz) { return; }
          var temp = quiz.split('#'), targetNum = +temp[0], baseNum = +temp[1];
          if (!sys[sys.getName(targetNum)]) {
            tchisla.getData(sys.getName(targetNum), tchisla.parseData, false);
          }
          tchisla.showAnswer(targetNum, baseNum);
        });
        sys.$answer.addEventListener('click', function (e) {
          if (e.target.id === 'last') {
            if (--sys.x === 0) { sys.x = 9; sys.y--; }
            if (sys.y <= 0) { sys.x = 1; sys.y = 1; }
            tchisla.showAnswer(sys.y, sys.x);
          } else if (e.target.id === 'next') {
            if (++sys.x === 10) { sys.x = 1; sys.y++; }
            if (sys.y > sys.maxY) { sys.x = 9; sys.y = sys.maxY; }
            tchisla.showAnswer(sys.y, sys.x);
          } else {
            sys.$answer.style.display = 'none';
          }
        });
        document.addEventListener('scroll', tchisla.onScroll);
      }
    };
  tchisla.render();
  window.sys=sys;
})();


text:
/*------------------------------------------------------------------------*/
/*                                                                        */
/*  QUEUE.H                                                               */
/*                                                                        */
/*  Copyright Borland International 1991, 1992                            */
/*  All Rights Reserved                                                   */
/*                                                                        */
/*------------------------------------------------------------------------*/

#if !defined( __QUEUE_H )
#define __QUEUE_H

#if defined( TEMPLATES )

    #if !defined( __QUEUES_H )
    #include <Queues.h>
    #endif  // __QUEUES_H

    #pragma option -Vo-
    #if defined( __BCOPT__ ) && !defined( _ALLOW_po )
    #pragma option -po-
    #endif

    #define Queue   BI_TCQueueAsDoubleList
    #define PQueue  PBI_TCQueueAsDoubleList
    #define RQueue  RBI_TCQueueAsDoubleList
    #define RPQueue RPBI_TCQueueAsDoubleList
    #define PCQueue PCBI_TCQueueAsDoubleList
    #define RCQueue RCBI_TCQueueAsDoubleList

    _CLASSDEF( BI_TCQueueAsDoubleList )

    #define QueueIterator   BI_TCQueueAsDoubleListIterator
    #define PQueueIterator  PBI_TCQueueAsDoubleListIterator
    #define RQueueIterator  RBI_TCQueueAsDoubleListIterator
    #define RPQueueIterator RPBI_TCQueueAsDoubleListIterator
    #define PCQueueIterator PCBI_TCQueueAsDoubleListIterator
    #define RCQueueIterator RCBI_TCQueueAsDoubleListIterator

    _CLASSDEF( BI_TCQueueAsDoubleListIterator )

#else   // TEMPLATES

    #if !defined( __CLSTYPES_H )
    #include <ClsTypes.h>
    #endif  // __CLSTYPES_H

    #if !defined( __DEQUE_H )
    #include <Deque.h>
    #endif  // __DEQUE_H

    #pragma option -Vo-
    #if defined( __BCOPT__ ) && !defined( _ALLOW_po )
    #pragma option -po-
    #endif

    _CLASSDEF(Queue)

    class _CLASSTYPE Queue : public Deque
    {

    public:

        Object _FAR & get()
            {
            return Deque::getRight();
            }

        void put( Object _FAR & o )
            {
            Deque::putLeft( o );
            }

        virtual classType isA() const
            {
            return queueClass;
            }

        virtual char _FAR *nameOf() const
            {
            return "Queue";
            }

    private:

        Object _FAR & getLeft();
        Object _FAR & getRight();

        void putLeft( Object _FAR & );
        void putRight( Object _FAR & );

    };

#endif  // TEMPLATES

#if defined( __BCOPT__ ) && !defined( _ALLOW_po )
#pragma option -po.
#endif
#pragma option -Vo.

#endif  // __QUEUE_H

redpajama_set_name: RedPajamaGithub


text:
module Azure::ApiManagement::Mgmt::V2016_10_10
  module Models
    #
    # External OAuth authorization server Update settings contract.
    #
    class OAuth2AuthorizationServerUpdateContract

      include MsRestAzure

      # @return [String] User-friendly authorization server name.
      attr_accessor :name

      # @return [String] Description of the authorization server. Can contain
      # HTML formatting tags.
      attr_accessor :description

      # @return [String] Optional reference to a page where client or app
      # registration for this authorization server is performed. Contains
      # absolute URL to entity being referenced.
      attr_accessor :client_registration_endpoint

      # @return [String] OAuth authorization endpoint. See
      # http://tools.ietf.org/html/rfc6749#section-3.2.
      attr_accessor :authorization_endpoint

      # @return [Array<MethodContract>] HTTP verbs supported by the
      # authorization endpoint. GET must be always present. POST is optional.
      attr_accessor :authorization_methods

      # @return [Array<ClientAuthenticationMethodContract>] Method of
      # authentication supported by the token endpoint of this authorization
      # server. Possible values are Basic and/or Body. When Body is specified,
      # client credentials and other parameters are passed within the request
      # body in the application/x-www-form-urlencoded format.
      attr_accessor :client_authentication_method

      # @return [Array<TokenBodyParameterContract>] Additional parameters
      # required by the token endpoint of this authorization server represented
      # as an array of JSON objects with name and value string properties, i.e.
      # {"name" : "name value", "value": "a value"}.
      attr_accessor :token_body_parameters

      # @return [String] OAuth token endpoint. Contains absolute URI to entity
      # being referenced.
      attr_accessor :token_endpoint

      # @return [Boolean] If true, authorization server will include state
      # parameter from the authorization request to its response. Client may
      # use state parameter to raise protocol security.
      attr_accessor :support_state

      # @return [String] Access token scope that is going to be requested by
      # default. Can be overridden at the API level. Should be provided in the
      # form of a string containing space-delimited values.
      attr_accessor :default_scope

      # @return [Array<GrantTypesContract>] Form of an authorization grant,
      # which the client uses to request the access token.
      attr_accessor :grant_types

      # @return [Array<BearerTokenSendingMethodsContract>] Specifies the
      # mechanism by which access token is passed to the API.
      attr_accessor :bearer_token_sending_methods

      # @return [String] Client or app id registered with this authorization
      # server.
      attr_accessor :client_id

      # @return [String] Client or app secret registered with this
      # authorization server.
      attr_accessor :client_secret

      # @return [String] Can be optionally specified when resource owner
      # password grant type is supported by this authorization server. Default
      # resource owner username.
      attr_accessor :resource_owner_username

      # @return [String] Can be optionally specified when resource owner
      # password grant type is supported by this authorization server. Default
      # resource owner password.
      attr_accessor :resource_owner_password

      #
      # Mapper for OAuth2AuthorizationServerUpdateContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OAuth2AuthorizationServerUpdateContract',
          type: {
            name: 'Composite',
            class_name: 'OAuth2AuthorizationServerUpdateContract',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                constraints: {
                  MaxLength: 50,
                  MinLength: 1
                },
                type: {
                  name: 'String'
                }
              },
              description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'description',
                type: {
                  name: 'String'
                }
              },
              client_registration_endpoint: {
                client_side_validation: true,
                required: false,
                serialized_name: 'clientRegistrationEndpoint',
                type: {
                  name: 'String'
                }
              },
              authorization_endpoint: {
                client_side_validation: true,
                required: false,
                serialized_name: 'authorizationEndpoint',
                type: {
                  name: 'String'
                }
              },
              authorization_methods: {
                client_side_validation: true,
                required: false,
                serialized_name: 'authorizationMethods',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'MethodContractElementType',
                      type: {
                        name: 'Enum',
                        module: 'MethodContract'
                      }
                  }
                }
              },
              client_authentication_method: {
                client_side_validation: true,
                required: false,
                serialized_name: 'clientAuthenticationMethod',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ClientAuthenticationMethodContractElementType',
                      type: {
                        name: 'Enum',
                        module: 'ClientAuthenticationMethodContract'
                      }
                  }
                }
              },
              token_body_parameters: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tokenBodyParameters',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'TokenBodyParameterContractElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'TokenBodyParameterContract'
                      }
                  }
                }
              },
              token_endpoint: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tokenEndpoint',
                type: {
                  name: 'String'
                }
              },
              support_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'supportState',
                type: {
                  name: 'Boolean'
                }
              },
              default_scope: {
                client_side_validation: true,
                required: false,
                serialized_name: 'defaultScope',
                type: {
                  name: 'String'
                }
              },
              grant_types: {
                client_side_validation: true,
                required: false,
                serialized_name: 'grantTypes',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'GrantTypesContractElementType',
                      type: {
                        name: 'Enum',
                        module: 'GrantTypesContract'
                      }
                  }
                }
              },
              bearer_token_sending_methods: {
                client_side_validation: true,
                required: false,
                serialized_name: 'bearerTokenSendingMethods',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'BearerTokenSendingMethodsContractElementType',
                      type: {
                        name: 'Enum',
                        module: 'BearerTokenSendingMethodsContract'
                      }
                  }
                }
              },
              client_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'clientId',
                type: {
                  name: 'String'
                }
              },
              client_secret: {
                client_side_validation: true,
                required: false,
                serialized_name: 'clientSecret',
                type: {
                  name: 'String'
                }
              },
              resource_owner_username: {
                client_side_validation: true,
                required: false,
                serialized_name: 'resourceOwnerUsername',
                type: {
                  name: 'String'
                }
              },
              resource_owner_password: {
                client_side_validation: true,
                required: false,
                serialized_name: 'resourceOwnerPassword',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end


text:
<tool id="rcas" name="RNA Centric Annotation System" version="0.1.0">
    <requirements>
            <requirement type="package">r</requirement>
            <requirement type="package">bioconductor-biomart</requirement>
            <requirement type="package">bioconductor-org.hs.eg.db</requirement>
            <requirement type="package">bioconductor-org.mm.eg.db</requirement>
            <requirement type="package">bioconductor-org.ce.eg.db</requirement>
            <requirement type="package">bioconductor-org.dm.eg.db</requirement>
            <requirement type="package">bioconductor-topgo</requirement>
            <requirement type="package">bioconductor-genomicfeatures</requirement>
            <requirement type="package">bioconductor-genomation</requirement>
            <requirement type="package">bioconductor-rtracklayer</requirement>
            <requirement type="package">bioconductor-annotationdbi</requirement>
            <requirement type="package">bioconductor-genomicranges</requirement>
            <requirement type="package">bioconductor-bsgenome.hsapiens.ucsc.hg19</requirement>
            <requirement type="package">bioconductor-bsgenome.mmusculus.ucsc.mm9</requirement>
            <requirement type="package">bioconductor-genomeinfodb</requirement>
            <requirement type="package">bioconductor-biostrings</requirement>
            <requirement type="package">bioconductor-motifrg</requirement>
            <requirement type="package">bioconductor-rcas</requirement>
            <requirement type="package">r-rmarkdown</requirement>
            <requirement type="package">r-plotly</requirement>
            <requirement type="package">r-dt</requirement>
            <requirement type="package">r-data.table</requirement>
            <requirement type="package" version="1.16.0.2">pandoc</requirement>
    </requirements>
    <stdio>
        <exit_code range="1:" />
    </stdio>

    <command><![CDATA[
            R  -e   'library(RCAS);

                    library(data.table);

                    library(GenomicRanges);

                    library(topGO);

                    runReport(queryFilePath = "$input_BED",

                    gffFilePath = "$input_GTF",

                    msigdbFilePath = "$human_msigdb_gmt",

                    annotationSummary = $run_anot,

                    goAnalysis = $run_GOrich,

                    msigdbAnalysis = $run_PATHrich,

                    motifAnalysis = $run_motif,

                    genomeVersion = "$genomeVersion")'

            &&

                mv *RCAS.report.html RCAS.report.html
    ]]></command>
    <inputs>
        <param name="genomeVersion" type="select" label="Genome Version">
            <option value="hg19" selected="true">hg19</option>
            <option value="dm3">dm3</option>
            <option value="ce10">ce10</option>
            <option value="mm9">mm9</option>
        </param>

        <param name="input_BED" type="data" format="BED" label="Target regions in BED format"
        help="The coordinates should be in accord with Genome Version."/>

        <param name="input_GTF" type="data" format="GTF" label="Reference annotation in GTF format"/>

        <param name="human_msigdb_gmt" type="data" format="tabular"
        label="Human Molecular Signatures Database (MSigDB)"
        optional="true"
        help="The database is usesd for pathway enrichment.
        For non-human species, the human MSigDB will be automatically converted accordingly."/>

        <param name="run_anot" label="Run annotation."
        type="boolean" falsevalue="FALSE" truevalue="TRUE" checked="FALSE"
        help="Use this option if you want to run annotation."/>

        <param name="run_GOrich" label="Run GO term enrichment"
        type="boolean" falsevalue="FALSE" truevalue="TRUE" checked="FALSE"
        help="Use this option if you want to run GO term enrichment."/>

        <param name="run_PATHrich" label="Run pathway enrichment"
        type="boolean" falsevalue="FALSE" truevalue="TRUE" checked="FALSE"
        help="Use this option if you want to run pathway enrichment. If so,
        please provide path to msigdb."/>

        <param name="run_motif" label="Run motif search"
        type="boolean" falsevalue="FALSE" truevalue="TRUE" checked="FALSE"
        help="Use this option if you want to run motif search."/>
    </inputs>
    <outputs>
        <data name="report" format="html" from_work_dir="RCAS.report.html"
            label="${tool.name} on ${on_string}: Webpage"/>
    </outputs>
    <tests>
        <test>
            <param name="input_BED" value="TIA1.bed"/>
            <param name="input_GTF" value="Homo_sapiens.GRCh37-chr1-f10k.75.gtf"/>
            <param name="run_anot" value="TRUE"/>
            <param name="run_GOrich" value="FALSE"/>
            <param name="run_PATHrich" value="FALSE"/>
            <param name="run_motif" value="FALSE"/>
            <param name="genomeVersion" value="hg19"/>
            <output name="report" file="RCAS.report.html"/>
        </test>
    </tests>
    <help><![CDATA[

.. class:: infomark

**Purpose**

RNA Centric Annotation System (RCAS) automatically generates
dynamic annotations for custom input files
that contain transcriptomic target regions.
RCAS automatically summarizes annotated features
that overlap with targets in the BED file,
and perform enrichment analysis of
motifs, Gene Ontology (GO) terms and gene set.

-----

.. class:: infomark

**Inputs**

1. A target region file in BED format
2. A reference annotation file in GTF format
3. A Human Molecular Signatures Database (MSigDB) (optional)

-----

.. class:: infomark

**Outputs**

The main outputs of RCAS are:

1. Annotation Summary for Query Regions
2. motifRG analysis results
3. GO Term Analysis Results
4. Gene Set Enrichment Analysis Results

The summary of annotated features
consists of intuitive reports in terms of
distributions of gene types, genomic features, gene names
and coverage profiles.
RCAS can provide users list of motifs
that are enriched comparing with background sequences.
In addition,
RCAS generates lists of enriched gene sets and functions
to shed light on the functional aspects of target regions.
The final report of RCAS consists of high-quality dynamic figures and tables,
which are readily applicable for publications or other academic usage.

**The final report is provided as a HTML file which can be saved
and viewd via a web browser.**

]]></help>
    <citations>
        <citation type="bibtex">
        @ARTICLE{RCAS,
            author = {},
            keywords = {bioinformatics, transcriptome, peak, annotation},
            priority = {},
            title = {{RNA Centric Annotation System (RCAS)}},
            url = {https://github.com/BIMSBbioinfo/RCAS}
        }
        </citation>
    </citations>
</tool>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>ARBES2Compatibility (LWJGL API)</title>
<meta name="date" content="2013-12-02">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.lwjgl.opengl

Class ARBES2Compatibility

java.lang.Object

org.lwjgl.opengl.ARBES2Compatibility

public final class ARBES2Compatibility
extends java.lang.Object

Field Summary

Fields

Modifier and Type
Field and Description

static int
GL_FIXED

Accepted by the <type> parameter of VertexAttribPointer:

static int
GL_HIGH_FLOAT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

static int
GL_HIGH_INT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

static int
GL_IMPLEMENTATION_COLOR_READ_FORMAT

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

static int
GL_IMPLEMENTATION_COLOR_READ_TYPE

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

static int
GL_LOW_FLOAT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

static int
GL_LOW_INT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

static int
GL_MAX_FRAGMENT_UNIFORM_VECTORS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

static int
GL_MAX_VARYING_VECTORS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

static int
GL_MAX_VERTEX_UNIFORM_VECTORS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

static int
GL_MEDIUM_FLOAT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

static int
GL_MEDIUM_INT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

static int
GL_NUM_SHADER_BINARY_FORMATS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

static int
GL_RGB565

Accepted by the <format> parameter of most commands taking sized internal formats:

static int
GL_SHADER_COMPILER

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

Method Summary

Methods

Modifier and Type
Method and Description

static void
glClearDepthf(float d)

static void
glDepthRangef(float n,
             float f)

static void
glGetShaderPrecisionFormat(int shadertype,
                          int precisiontype,
                          java.nio.IntBuffer range,
                          java.nio.IntBuffer precision)

static void
glReleaseShaderCompiler()

static void
glShaderBinary(java.nio.IntBuffer shaders,
              int binaryformat,
              java.nio.ByteBuffer binary)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

GL_SHADER_COMPILER

public static final int GL_SHADER_COMPILER

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

See Also:

Constant Field Values

GL_NUM_SHADER_BINARY_FORMATS

public static final int GL_NUM_SHADER_BINARY_FORMATS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

See Also:

Constant Field Values

GL_MAX_VERTEX_UNIFORM_VECTORS

public static final int GL_MAX_VERTEX_UNIFORM_VECTORS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

See Also:

Constant Field Values

GL_MAX_VARYING_VECTORS

public static final int GL_MAX_VARYING_VECTORS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

See Also:

Constant Field Values

GL_MAX_FRAGMENT_UNIFORM_VECTORS

public static final int GL_MAX_FRAGMENT_UNIFORM_VECTORS

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

See Also:

Constant Field Values

GL_IMPLEMENTATION_COLOR_READ_TYPE

public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

See Also:

Constant Field Values

GL_IMPLEMENTATION_COLOR_READ_FORMAT

public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT

Accepted by the <value> parameter of GetBooleanv, GetIntegerv,
  GetInteger64v, GetFloatv, and GetDoublev:

See Also:

Constant Field Values

GL_FIXED

public static final int GL_FIXED

Accepted by the <type> parameter of VertexAttribPointer:

See Also:

Constant Field Values

GL_LOW_FLOAT

public static final int GL_LOW_FLOAT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

See Also:

Constant Field Values

GL_MEDIUM_FLOAT

public static final int GL_MEDIUM_FLOAT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

See Also:

Constant Field Values

GL_HIGH_FLOAT

public static final int GL_HIGH_FLOAT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

See Also:

Constant Field Values

GL_LOW_INT

public static final int GL_LOW_INT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

See Also:

Constant Field Values

GL_MEDIUM_INT

public static final int GL_MEDIUM_INT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

See Also:

Constant Field Values

GL_HIGH_INT

public static final int GL_HIGH_INT

Accepted by the <precisiontype> parameter of
  GetShaderPrecisionFormat:

See Also:

Constant Field Values

GL_RGB565

public static final int GL_RGB565

Accepted by the <format> parameter of most commands taking sized internal formats:

See Also:

Constant Field Values

Method Detail

glReleaseShaderCompiler

public static void glReleaseShaderCompiler()

glShaderBinary

public static void glShaderBinary(java.nio.IntBuffer shaders,
                  int binaryformat,
                  java.nio.ByteBuffer binary)

glGetShaderPrecisionFormat

public static void glGetShaderPrecisionFormat(int shadertype,
                              int precisiontype,
                              java.nio.IntBuffer range,
                              java.nio.IntBuffer precision)

glDepthRangef

public static void glDepthRangef(float n,
                 float f)

glClearDepthf

public static void glClearDepthf(float d)

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

Copyright © 2002-2009 lwjgl.org. All Rights Reserved.


text:
package com.javarush.task.task39.task3902;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/*
Биты были биты
*/
public class Solution {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        System.out.println("Please type in a number: ");

        long l = Long.parseLong(reader.readLine());
        String result = isWeightEven(l) ? "even" : "odd";
        System.out.println("Number of ones in a given number is " + result);

    }

    public static boolean isWeightEven(long number) {
        int count = 0;
        while (number != 0) {
            count++;
            number = number & (number - 1);
        }
        if (count % 2 == 0) return true;
        return false;
    }
}


text:
package game.saver;

import game.saver.gamemaps.GameByteMap;
import game.saver.gamemaps.GameDoubleMap;
import game.saver.gamemaps.GameFloatMap;
import game.saver.gamemaps.GameIntMap;
import game.saver.gamemaps.GameLongMap;
import game.saver.interfaces.Seriable;
import game.saver.gamemaps.GameStringMap;
import game.saver.gamemaps.GameMap;
import game.saver.gamemaps.GameShortMap;
import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;

/**
 *
 * @author MrInformatic
 */
public class GameSaver implements Seriable{
    protected GameGraph graph;
    protected LinkedList<Seriable> gameMaps = new LinkedList<>();
    private Quarry quarry;

    public GameSaver(){
        graph = new GameGraph();
    }

    public <K extends Seriable,T extends GameData> Map<K,T> getnewGameMap(Class<K> k,Class<T> t){
        GameMap<K,T> gameMap = new GameMap();
        gameMap.setKeyClass(k);
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    public <T extends GameData> Map<String,T> getnewGameStringMap(Class<T> t){
        GameStringMap<T> gameMap = new GameStringMap();
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    public <T extends GameData> Map<Integer,T> getnewGameIntMap(Class<T> t){
        GameIntMap<T> gameMap = new GameIntMap();
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    public <T extends GameData> Map<Byte,T> getnewGameByteMap(Class<T> t){
        GameByteMap<T> gameMap = new GameByteMap();
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    public <T extends GameData> Map<Short,T> getnewGameShortMap(Class<T> t){
        GameShortMap<T> gameMap = new GameShortMap();
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    public <T extends GameData> Map<Long,T> getnewGameLongMap(Class<T> t){
        GameLongMap<T> gameMap = new GameLongMap();
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    public <T extends GameData> Map<Float,T> getnewGameFloatMap(Class<T> t){
        GameFloatMap<T> gameMap = new GameFloatMap();
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    public <T extends GameData> Map<Double,T> getnewGameDoubleMap(Class<T> t){
        GameDoubleMap<T> gameMap = new GameDoubleMap();
        gameMap.setGameGraph(graph);
        gameMap.read(quarry);
        gameMaps.add(gameMap);
        return gameMap;
    }

    @Override
    public void write(Quarry quarry){
        graph.write(quarry);
        for(Seriable gameMap : gameMaps){
            gameMap.write(quarry);
        }
    }

    @Override
    public void read(Quarry quarry){
        this.quarry = quarry;
        graph.read(quarry);
    }
}


text:
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/paper-styles/typography.html">
<link rel="import" href="../bower_components/google-map/google-map.html">

<dom-module id="posada-ubicacion">
  <template>

<iron-icon class="paper-icon-title" icon="maps:add-location"></iron-icon>UBICACION

Se accede desde Villa de Las Rosas sur (Cba.) por RUTA 14, tomando el camino de tierra a San Javier. Recorra 3km y gire a la derecha en el cartel que indica Piedras Anchas. Llegará a la Posada 200 metros después.

Desde San Javier se llega por RUTA 1 hasta la indicación que señala "a Villa de las Rosas", camino de tierra que tomará y recorrerá aproximadamente 5km, en donde luego de pasar la Barranca de Los Loros, deberá doblar a la izquierda. Trescientos metros más adelante lo espera nuestra bienvenida.

También puede acceder desde Las Tapias, y fácilmente desde cualquier otro punto del país.

Llámenos y consulte, podremos guiarlo desde donde se encuentre e incluso acompañarlo desde algún pueblo cercano hasta la posada.

Ubicación por GPS: 31º59'06.00" S 65º03'19.00 O

  </template>

</dom-module>


text:
Adds an AWS::MediaLive::Input.MediaConnectFlowRequest resource property to the template.
The settings for a MediaConnect Flow.

## SYNTAX

```
Add-VSMediaLiveInputMediaConnectFlowRequest [[-FlowArn] <Object>] [<CommonParameters>]
```

## DESCRIPTION
Adds an AWS::MediaLive::Input.MediaConnectFlowRequest resource property to the template.
The settings for a MediaConnect Flow.

## PARAMETERS

### -FlowArn
The ARN of one or two MediaConnect flows that are the sources for this MediaConnect input.

Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-mediaconnectflowrequest.html#cfn-medialive-input-mediaconnectflowrequest-flowarn
PrimitiveType: String
UpdateType: Mutable

```yaml
Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS

### Vaporshell.Resource.MediaLive.Input.MediaConnectFlowRequest
## NOTES

## RELATED LINKS

[http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-mediaconnectflowrequest.html](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-mediaconnectflowrequest.html)


text:
////////////////////////////////////////////////////////////////////////////
//
// file PhantomPointsSpline.hpp
//
////////////////////////////////////////////////////////////////////////////

#ifndef AKJ_PHANTOMPOINTSSPLINE_HPP
#define AKJ_PHANTOMPOINTSSPLINE_HPP
#include "akjCubicSpline.hpp"
#include "Eigen\Core"
#include <vector>
#include <unordered_set>

namespace akj
{
template <typename tNVec>

class PhantomPointsSpline
{
public:
	PhantomPointsSpline(std::initializer_list<tNVec> list) {
		mControlPoints.reserve(std::max(64, (int)(list.size())));
		for(auto& vec : list){
			AppendCP(vec);
		}
	};
	~PhantomPointsSpline() {};

	inline PhantomPointsSpline& AppendCP(const tNVec & cp) {
		// add the point
		uint32_t i = NumCP();
		if(mControlPoints.empty()){
			AddInitialPoint(cp);
		}
		else{
			mControlPoints.emplace(mControlPoints.begin() + i + 1, cp);
		}

		const uint32_t spans = NumSpans();

		if(spans > 1){
			splineBase.appendKnot();
		}

		//maintain the phantom properties
		adjustEnd();
		if(u32(NumSpans()) <= 1 ) adjustStart();
		return *this;
	}

	PhantomPointsSpline& AdjustCP(uint indx, tNVec * CPptr) {
		mControlPoints.at(indx + 1) = (*CPptr);

		if (indx < 2) {
			adjustStart();
		}

		if (indx > NumCP() - 2) {
			adjustEnd();
		}

		return *this;
	}

	inline uint32_t NumCP() const {
		return u32(mControlPoints.size()) - 2;
	}
	inline uint32_t NumSpans() const {
		return u32(mControlPoints.size()) - 3;
	}
	/**
	 * Gets an apparent control point. this kind of spline is based on phantom
	 * points. So there are actually 2 more points in the spline then are
	 * apparent. We return the cp of index+1, basically.
	 *
	 * \param	indx	The control point index, 0 based.
	 * \return	null if it fails, else the apparent control point.
	 ***/
	inline const tNVec& ControlPoint(uint32_t indx) {
		return &mControlPoints.at((indx + 1));
	}

	template <class tListOfT, class tListOfCP>
	PhantomPointsSpline& eval(uint spanID, const tListOfT& in_t, tListOfCP& cp){
		if(spanID >= NumSpans())
		{
			AKJ_THROW("Phantom point span " + Twine(spanID) + "< "
								+ Twine(NumSpans())+" , Out of range.");
		}
		Eigen::Matrix<float, 1, 4> tmat;
		tmat(3)=1.0f;
		auto tmpCP = Eigen::Map < Eigen::Matrix < float, sizeof(tNVec) / 4, 4 > >
			((float*)&mControlPoints.at(spanID)).transpose();
		auto tmpBCP = Eigen::Map<const Eigen::Matrix<float, 4, 4> >
			(splineBase.getBlendMatrix(spanID))*tmpCP;
		Eigen::Matrix<float,1, sizeof(tNVec) / 4 > ret;
		for (uint i = 0; i < u32(in_t.size()); i++)
		{
			const float t=in_t[i];
			const float tsq=t*t;
			tmat(0)=tsq*t; tmat(1)=tsq; tmat(2)=t;
			ret=tmat*tmpBCP;
			cp.emplace_back(*((tNVec*)ret.data()));
		}
		return *this;
	}

	const float * SpanMatrix(size_t indx) {
		auto tmpCP = Eigen::Map < Eigen::Matrix < float, tNVec::kNumElements, 4 > >
			((float*)&mControlPoints.at(indx)).transpose();
		BCP = Eigen::Map<Eigen::Matrix<float, 4, 4> >(
			splineBase.getBlendMatrix(indx)) * tmpCP;
		return BCP.data();
	}
private:

	void AddInitialPoint(const tNVec & CPptr) {
		mControlPoints.resize(3, CPptr);
	}

	inline void adjustEnd() {
		size_t indx = NumCP();
		const tNVec& f1 = mControlPoints.at(indx - 1);
		tNVec& fe = mControlPoints.at(indx + 1);
		const tNVec& f0 = mControlPoints.at(indx);

		fe = 2.0f * f0 - f1;
	}
	inline void adjustStart() {
		const tNVec&  f1 = mControlPoints.at(2);
		tNVec&  fe = mControlPoints.at(0);
		const tNVec&  f0 = mControlPoints.at(1);

		fe = 2.0f * f0 - 1.0f*f1;
	}
	CubicSpline splineBase;
	std::vector<tNVec> mControlPoints;
	Eigen::Matrix < float, 4, sizeof(tNVec) / 4 >  BCP;
};

}//end namespace akj
#endif


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Uses of Class org.apache.poi.hssf.record.CFRuleRecord (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Uses of Class
org.apache.poi.hssf.record.CFRuleRecord

Packages that use CFRuleRecord

Package
Description

org.apache.poi.hssf.record

Record package contains class representations for XLS binary strutures.

org.apache.poi.hssf.record.aggregates

record aggregates are not real "records" but collections of records that act as a single record.

org.apache.poi.hssf.usermodel

usermodel package maps HSSF low level strutures to familiar workbook/sheet model

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:

Apache POI Project

Uses of CFRuleRecord in org.apache.poi.hssf.record

Methods in org.apache.poi.hssf.record that return CFRuleRecord

Modifier and Type
Method and Description

static CFRuleRecord
CFRuleRecord.create(HSSFSheet sheet,
      byte comparisonOperation,
      java.lang.String formulaText1,
      java.lang.String formulaText2)

Creates a new comparison operation rule

static CFRuleRecord
CFRuleRecord.create(HSSFSheet sheet,
      java.lang.String formulaText)

Creates a new comparison operation rule

Uses of CFRuleRecord in org.apache.poi.hssf.record.aggregates

Methods in org.apache.poi.hssf.record.aggregates that return CFRuleRecord

Modifier and Type
Method and Description

CFRuleRecord
CFRecordsAggregate.getRule(int idx)

Methods in org.apache.poi.hssf.record.aggregates with parameters of type CFRuleRecord

Modifier and Type
Method and Description

void
CFRecordsAggregate.addRule(CFRuleRecord r)

void
CFRecordsAggregate.setRule(int idx,
       CFRuleRecord r)

Constructors in org.apache.poi.hssf.record.aggregates with parameters of type CFRuleRecord

Constructor and Description

CFRecordsAggregate(CellRangeAddress[] regions,
                  CFRuleRecord[] rules)

Uses of CFRuleRecord in org.apache.poi.hssf.usermodel

Constructors in org.apache.poi.hssf.usermodel with parameters of type CFRuleRecord

Constructor and Description

HSSFBorderFormatting(CFRuleRecord cfRuleRecord)

HSSFFontFormatting(CFRuleRecord cfRuleRecord)

HSSFPatternFormatting(CFRuleRecord cfRuleRecord)

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

                Copyright 2014 The Apache Software Foundation or
        its licensors, as applicable.


text:
import sys, ped, ui

try:
    from envy import set_app_system
except ImportError:
    sys.exit('%s plugin requires envy module' % __plugin__)

def apply_settings(self):
    old_apply_settings(self)
    set_app_system(self.settings.plugins.system_app)

# get the translator object for this plugin
_ = ped.get_plugin_translator(__file__)

# patch the ped.Application.apply_settings method
old_apply_settings = ped.repattr(ped.Application,
    'apply_settings', apply_settings)

# add to settings
ped.app.settings.plugins.append('system_app',
    ui.BoolSetting(_('System application'), False))


text:
"""
	The script generate score for the performance evaluation for kaggle contest "bag of words meets bag of popcorn",
using split data from only train data set
	Text represents using tf-idf
	Predictive model: naive_bayes
"""

from sklearn.metric import roc_auc_score,roc_curve
import first_attempt
from sklearn.cross_validation import train_test_split

def main():
	#loading and preprocessing original train dataset
	train_data=pd.read_csv("/labeledTrainData.tsv", header=0,delimiter="\t", quoting=3)

	# Split 80-20 train vs test data
	split_train_features, split_test_features, split_train_target, split_test_target=
								train_test_split(train_features,train_target,test_size=0.20,random_state=0)
	#pre-processing split train
	vectorizer= TfidfVectorizer(stop_words='english')
	split_train_features=corpus_preprocessing(split_train_features)
	split_train_features=vectorizer.fit_transform(split_train_features)
	tsvd=TruncatedSVD(100)
	tsvd.fit(split_train_features)
	split_train_features=tsvd.transform(split_train_features)

	#pre-processing split test features
	split_test_features=corpus_preprocessing(split_test_features)
	split_test_features=vectorizer.transform(split_test_features)
	split_test_features=tsvd.transform(split_test_features=)

	#fit and predict using split data
	model.fit(split_train_features,split_train_target)
	split_prediction=model.predict(split_test_features)
	score=roc_auc_score(split_test_target, split_predict)
	print (score(split_test_target, split_predict))

if __name__=="__main__":
	main()


text:
class NotificationsMailer < ActionMailer::Base
  layout 'email'

  def notify(notification)
    @notification = notification
    address = Mail::Address.new @notification.origin_email
    address.display_name = @notification.origin_name
    subject = render_to_string(template: "notifications_mailer/subjects/#{@notification.template_name}")

    params = {
      from: address.format,
      to: @notification.user.email,
      subject: subject,
      template_name: @notification.template_name
    }

    params.merge!({ bcc: @notification.bcc }) if @notification.bcc.present?
    m = mail(params)
    m
  end
end


text:
function ready (module, callback) {
  callback();
}


text:
package model.staff;

/**
 * Enumeration representing the position types.
 *
 * @author Nikolce Ambukovski, s2008618
 *
 */
public enum PositionType {
    Manager, Administrator, Instructor
}


text:
import compression from 'compression';
import config from '../config';
import esteHeaders from '../lib/estemiddleware';
import express from 'express';
import intlMiddleware from '../lib/intlmiddleware';
import render from './render';
import userState from './userstate';

const app = express();

app.use(esteHeaders());
app.use(compression());

// app.use(favicon('_assets/img/favicon.ico'));

// Serve the static assets. We can cache them as they include hashes.
app.use('/assets/img', express.static('assets/img', {maxAge: '200d'}));
app.use('/_assets', express.static('build', {maxAge: '200d'}));

// Intl
app.use('/node_modules/intl/dist', express.static('node_modules/intl/dist'));
app.use('/node_modules/intl/locale-data', express.static('node_modules/intl/locale-data'));

// Load translations, fallback to defaultLocale if no translation is available.
app.use(intlMiddleware({
  defaultLocale: config.defaultLocale
}));

// Load state extras for current user.
app.use(userState());

app.get('*', (req, res, next) => {
  render(req, res, req.userState, {intl: req.intl})
    .catch(next);
});

app.on('mount', () => {
  console.log('App is available at %s', app.mountpath);
});

export default app;


text:
//
// Programmer:    Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Mon Jul 29 16:48:22 CEST 2019
// Last Modified: Mon Jul 29 16:48:25 CEST 2019
// Filename:      tool-composite.h
// URL:           https://github.com/craigsapp/humlib/blob/master/include/tool-composite.h
// Syntax:        C++11; humlib
// vim:           ts=3 noexpandtab
//
// Description:   Fill in kern measures that have no duration with rests.
//

#ifndef _TOOL_COMPOSITE_H
#define _TOOL_COMPOSITE_H

#include "HumTool.h"
#include "HumdrumFile.h"

namespace hum {

// START_MERGE

class Tool_composite : public HumTool {
	public:
		       	   Tool_composite      (void);
		       	  ~Tool_composite      () {};

		bool        run                (HumdrumFileSet& infiles);
		bool        run                (HumdrumFile& infile);
		bool        run                (const string& indata, ostream& out);
		bool        run                (HumdrumFile& infile, ostream& out);

	protected:
		void        processFile        (HumdrumFile& infile);
		void        initialize         (void);

	private:
		string      m_pitch = "e";

};

// END_MERGE

} // end namespace hum

#endif /* _TOOL_COMPOSITE_H */


text:
package com.jarhart.scat

import shapeless._

object Operations extends Operations

trait Operations
  extends Primitives
    with MathOperations


text:
/////////////////////////////////////////////////////////////////////
// = NMatrix
//
// A linear algebra library for scientific computation in Ruby.
// NMatrix is part of SciRuby.
//
// NMatrix was originally inspired by and derived from NArray, by
// Masahiro Tanaka: http://narray.rubyforge.org
//
// == Copyright Information
//
// SciRuby is Copyright (c) 2010 - 2014, Ruby Science Foundation
// NMatrix is Copyright (c) 2012 - 2014, John Woods and the Ruby Science Foundation
//
// Please see LICENSE.txt for additional copyright notices.
//
// == Contributing
//
// By contributing source code to SciRuby, you agree to be bound by
// our Contributor Agreement:
//
// * https://github.com/SciRuby/sciruby/wiki/Contributor-Agreement
//
// == complex.h
//
// Functions and classes for dealing with complex numbers.

#ifndef COMPLEX_H
#define COMPLEX_H

/*
 * Standard Includes
 */

#include <type_traits>
#include <iostream>
#include <cmath>

/*
 * Project Includes
 */

#include "types.h"

/*
 * Macros
 */

/*
 * Types
 */
namespace nm {

class RubyObject;
template <typename Type> class Complex;

typedef Complex<float32_t> Complex64;
typedef Complex<float64_t> Complex128;

/*
 * Data
 */

/*
 * Classes and Functions
 */

template <typename Type>
class Complex {
	public:
	// The real and immaginary parts of the complex number.
	Type r;
	Type i;

	/*
	 * Default constructor.
	 */
	inline Complex(Type real = 0, Type imaginary = 0) : r(real), i(imaginary) {}

	/*
	 * Copy constructors.
	 */
	template <typename ComplexType>
	inline Complex(const Complex<ComplexType>& other) : r(other.r), i(other.i) {}

  Complex(const RubyObject& other);

  /*
   * Complex conjugate function -- creates a copy, but inverted.
   */
  inline Complex<Type> conjugate() const {
    return Complex<Type>(this->r, -(this->i));
  }

  /*
   * Complex inverse function -- creates a copy, but inverted.
   *
   * FIXME: Check that this doesn't duplicate functionality of NativeType / Complex<Type>
   */
  inline Complex<Type> inverse() const {
    Complex<Type> conj = conjugate();
    Type denom = this->r * this->r + this->i * this->i;
    return Complex<Type>(conj.r / denom, conj.i / denom);
  }

	/*
	 * Binary operator definitions for various types.
	 */

	////////////////////////////////
	// Complex-Complex Operations //
	////////////////////////////////

	template <typename OtherType>
	inline Complex<Type> operator+(const Complex<OtherType>& other) const {
		return Complex<Type>(this->r + other.r, this->i + other.i);
	}

  template <typename OtherType>
  inline Complex<Type>& operator+=(const Complex<OtherType>& other) {
    this->r += other.r;
    this->i += other.i;
    return *this;
  }

  template <typename OtherType>
  inline Complex<Type>& operator-=(const Complex<OtherType>& other) {
    this->r -= other.r;
    this->i -= other.i;
    return *this;
  }

	template <typename OtherType>
	inline Complex<Type> operator-(const Complex<OtherType>& other) const {
		return Complex<Type>(this->r - other.r, this->i - other.i);
	}

	template <typename OtherType>
	inline Complex<Type> operator*(const Complex<OtherType>& other) const {
		return Complex<Type>(this->r * other.r - this->i * other.i, this->r * other.i + this->i * other.r);
	}

  template <typename OtherType>
  inline Complex<Type>& operator*=(const Complex<OtherType>& other) {
    this->r = this->r * other.r - this->i * other.i;
    this->i = this->r * other.i + this->i * other.r;
    return *this;
  }

	template <typename OtherType>
	inline Complex<Type> operator/(const Complex<OtherType>& other) const {
		Type new_r, new_i;
		Type denom = other.i * other.i + other.r * other.r;

		new_r = (this->r * other.r + this->i * other.i) / denom;
		new_i = (this->i * other.r - this->r * other.i) / denom;

		return Complex<Type>(new_r, new_i);
	}

	template <typename OtherType>
	inline Complex<Type> operator/=(const Complex<OtherType>& other) {
		Type new_r, new_i;
		Type denom = other.i * other.i + other.r * other.r;

		new_r = (this->r * other.r + this->i * other.i) / denom;
		new_i = (this->i * other.r - this->r * other.i) / denom;

		this->r = new_r;
		this->i = new_i;
		return *this;
	}

	template <typename OtherType>
	inline bool operator<(const Complex<OtherType>& other) const {
		return (this->r < other.r) || ((this->r <= other.r) && (this->i < other.i));
	}

	template <typename OtherType>
	inline bool operator>(const Complex<OtherType>& other) const {
		return (this->r > other.r) || ((this->r >= other.r) && (this->i > other.i));
	}

	template <typename OtherType>
	inline bool operator==(const Complex<OtherType>& other) const {
		return FP_EQUAL(this->r, other.r) && FP_EQUAL(this->i, other.i);
	}

	template <typename OtherType>
	inline bool operator!=(const Complex<OtherType>& other) const {
		return !(*this == other);
	}

	template <typename OtherType>
	inline bool operator<=(const Complex<OtherType>& other) const {
		return (*this < other) || (*this == other);
	}

	template <typename OtherType>
	inline bool operator>=(const Complex<OtherType>& other) const {
		return (*this > other) || (*this == other);
	}

	template <typename OtherType>
	inline operator Complex<OtherType> () const {
		return Complex<OtherType>((OtherType)this->r, (OtherType)this->i);
	}

	///////////////////////////////
	// Complex-Native Operations //
	///////////////////////////////

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline Complex<Type> operator+(const NativeType& other) const {
		return *this + Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline Complex<Type> operator-(const NativeType& other) const {
		return *this - Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline Complex<Type> operator*(const NativeType& other) const {
		return *this * Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline Complex<Type> operator/(const NativeType& other) const {
		return *this / Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline bool operator<(const NativeType& other) const {
		return *this < Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline bool operator>(const NativeType& other) const {
		return *this > Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline bool operator==(const NativeType& other) const {
		return *this == Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline bool operator!=(const NativeType& other) const {
		return *this != Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline bool operator<=(const NativeType& other) const {
		return *this <= Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline bool operator>=(const NativeType& other) const {
		return *this >= Complex<Type>(other);
	}

	template <typename NativeType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
	inline operator NativeType () const {
		return (NativeType)this->r;
	}
};

///////////////////////////////
// Native-Complex Operations //
///////////////////////////////

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline Complex<ComplexType> operator+(const NativeType& left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) + right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline Complex<ComplexType> operator-(const NativeType& left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) - right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline Complex<ComplexType> operator*(const NativeType& left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) * right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline Complex<ComplexType> operator/(const NativeType& left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) / right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline bool operator<(const NativeType left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) < right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline bool operator>(const NativeType left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) > right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline bool operator==(const NativeType left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) == right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline bool operator!=(const NativeType left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) != right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline bool operator<=(const NativeType left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) <= right;
}

template <typename NativeType, typename ComplexType, typename = typename std::enable_if<std::is_arithmetic<NativeType>::value>::type>
inline bool operator>=(const NativeType left, const Complex<ComplexType>& right) {
	return Complex<ComplexType>(left) >= right;
}

template <typename Type>
inline std::ostream& operator<<(std::ostream& out, const Complex<Type>& rhs) {
  out << "(" << rhs.r << "," << rhs.i << "i)" << std::flush;
  return out;
}

// Negative operator
template <typename IntType, typename = typename std::enable_if<std::is_integral<IntType>::value>::type>
inline Complex<IntType> operator-(const Complex<IntType>& rhs) {
  return Complex<IntType>(-rhs.r, -rhs.i);
}

} // end of namespace nm

namespace std {
  template <typename FloatType, typename = typename std::enable_if<std::is_floating_point<FloatType>::value>::type>
  nm::Complex<FloatType> piecewise_abs(const nm::Complex<FloatType>& value) {
    return nm::Complex<FloatType>(value.r < 0 ? -value.r : value.r,
                                  value.i < 0 ? -value.i : value.i);
  }

  template <typename FloatType, typename = typename std::enable_if<std::is_floating_point<FloatType>::value>::type>
  nm::Complex<FloatType> real_abs(const nm::Complex<FloatType>& value) {
    return nm::Complex<FloatType>(value.r < 0 ? -value.r : value.r,
                                  value.i);
  }

  template <typename FloatType, typename = typename std::enable_if<std::is_floating_point<FloatType>::value>::type>
  nm::Complex<FloatType> imag_abs(const nm::Complex<FloatType>& value) {
    return nm::Complex<FloatType>(value.r,
                                  value.i < 0 ? -value.i : value.i);
  }

  template <typename FloatType, typename = typename std::enable_if<std::is_floating_point<FloatType>::value>::type>
  double abs(const nm::Complex<FloatType>& value) {
    return std::sqrt(double(value.r)*double(value.r) + double(value.i)*double(value.i));
  }
}

#endif // COMPLEX_H


text:
{% extends "base.html" %}
{% block title %}Dashboard{% endblock %}
{% block scripts %} {% endblock %}
{% block content %}

Changelog

1.0.0 beta 1
				(August 15, 2017)

						Added   Initial release

{% endblock %}


text:
// this file was automatically generated and should not be edited

#pragma once

#ifndef NAZARA_GLOBAL_OPENGLRENDERER_HPP
#define NAZARA_GLOBAL_OPENGLRENDERER_HPP

#include <Nazara/OpenGLRenderer/Config.hpp>
#include <Nazara/OpenGLRenderer/DummySurface.hpp>
#include <Nazara/OpenGLRenderer/OpenGLBuffer.hpp>
#include <Nazara/OpenGLRenderer/OpenGLCommandBuffer.hpp>
#include <Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.hpp>
#include <Nazara/OpenGLRenderer/OpenGLCommandPool.hpp>
#include <Nazara/OpenGLRenderer/OpenGLDevice.hpp>
#include <Nazara/OpenGLRenderer/OpenGLFboFramebuffer.hpp>
#include <Nazara/OpenGLRenderer/OpenGLFramebuffer.hpp>
#include <Nazara/OpenGLRenderer/OpenGLRenderer.hpp>
#include <Nazara/OpenGLRenderer/OpenGLRenderImage.hpp>
#include <Nazara/OpenGLRenderer/OpenGLRenderPass.hpp>
#include <Nazara/OpenGLRenderer/OpenGLRenderPipeline.hpp>
#include <Nazara/OpenGLRenderer/OpenGLRenderPipelineLayout.hpp>
#include <Nazara/OpenGLRenderer/OpenGLRenderWindow.hpp>
#include <Nazara/OpenGLRenderer/OpenGLShaderBinding.hpp>
#include <Nazara/OpenGLRenderer/OpenGLShaderModule.hpp>
#include <Nazara/OpenGLRenderer/OpenGLTexture.hpp>
#include <Nazara/OpenGLRenderer/OpenGLTextureSampler.hpp>
#include <Nazara/OpenGLRenderer/OpenGLUploadPool.hpp>
#include <Nazara/OpenGLRenderer/OpenGLVaoCache.hpp>
#include <Nazara/OpenGLRenderer/OpenGLWindowFramebuffer.hpp>
#include <Nazara/OpenGLRenderer/Utils.hpp>

#endif // NAZARA_GLOBAL_OPENGLRENDERER_HPP


text:
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
end


text:
package com.eduworks.cruncher.cache;

import java.io.InputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import org.json.JSONException;
import org.json.JSONObject;

import com.eduworks.lang.util.EwCache;
import com.eduworks.resolver.Context;
import com.eduworks.resolver.Cruncher;

/**
 * Caches a result, and fetches it automatically (without executing the code in obj) if it is in cache.
Cache, by default, persists over the web service
 * request.
 *
 * rs2: result = obj.cache(name="unique name");

 * LevrJS: result = cache.call(this,obj,"unique name");
 *
 * @class cache
 * @module ew.levr.base
 * @author fritz.ray@eduworks.com
 */
public class CruncherCache extends Cruncher {

    public static Map<String, Object> obj = Collections.synchronizedMap(new HashMap<String, Object>());

    /**
     * @method cache
     * @param obj {Cruncher|Function} Cruncher or Function that will return an object to cache.
     * @param name {String} Unique name used to store and retrieve the cached object.
     * @param [remove=false] {Boolean} Removes the cached value using the name. 'obj' can be null. May be combined with 'global'.
     * @param [global=false] {Boolean} Add to global cache, persists over web service requests.
     * @param [justLock=false] {Boolean} Don't deal with the cache, but use the cache locking mechanism to prevent recurrent entrance.
     * @param [removeAllGlobal=false] {Boolean} Clears all caches in LEVR.
     * @return {Object} Cached value if in cache, computed value if not in cache.
     */

    @Override
    public Object resolve(Context c, Map<String, String[]> parameters, Map<String, InputStream> dataStreams) throws JSONException {
        String cacheName = "cruncherCache" + getAsString("name", c, parameters, dataStreams);
        Object result = null;
        Object lock = null;
        if (optAsBoolean("removeAllGlobal", false, c, parameters, dataStreams)) {
            EwCache.caches.clear();
            obj.clear();
            return null;
        }
        boolean global = optAsBoolean("global", false, c, parameters, dataStreams);
        synchronized (getClass()) {
            if (global) {
                lock = obj.get(cacheName);
                if (lock == null) {
                    obj.put(cacheName, lock = new Object());
                }
            } else {
                lock = c.get("cache" + cacheName);
                if (lock == null) {
                    obj.put("cache" + cacheName, lock = new Object());
                }
            }
        }
        synchronized (lock) {
            if (optAsBoolean("remove", false, c, parameters, dataStreams)) {
                if (global) {
                    EwCache.getCache("GlobalCache").remove(cacheName);
                } else {
                    c.remove(cacheName);
                }
            } else {
                if (global) {
                    result = EwCache.getCache("GlobalCache").get(cacheName);
                } else {
                    result = c.get(cacheName);
                }
                if (result == null) {
                    result = getObj(c, parameters, dataStreams);
                    if (!optAsBoolean("justLock", false, c, parameters, dataStreams)) {
                        if (global) {
                            EwCache.getCache("GlobalCache").put(cacheName, result);
                        } else {
                            c.put(cacheName, result);
                        }
                    }
                }
            }
        }
        return result;
    }

    @Override
    public String getDescription() {
        return "Caches a result, and fetches it automatically if it is in cache. Use Name to specify cache key.";
    }

    @Override
    public String getReturn() {
        return "Object";
    }

    @Override
    public JSONObject getParameters() throws JSONException {
        return jo("obj", "Object", "name", "String", "remove", "Boolean", "global", "Boolean", "justLock", "Boolean", "removeAllGlobal", "Boolean");
    }

    @Override
    public String getAttribution() {
        return ATTRIB_NONE;
    }

}


text:
package com.hpe.application.automation.tools.sse.sdk;

import com.hpe.application.automation.tools.rest.RestClient;
import com.hpe.application.automation.tools.sse.common.RestClient4Test;
import com.hpe.application.automation.tools.sse.common.TestCase;
import com.hpe.application.automation.tools.sse.sdk.handler.RunHandler;
import com.hpe.application.automation.tools.sse.sdk.handler.RunHandlerFactory;
import org.junit.Assert;
import org.junit.Test;

import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Map;

/**
 * @author Effi Bar-She'an
 * @author Dani Schreiber
 */
@SuppressWarnings({"squid:S2699","squid:S3658"})
public class TestPCRunHandler extends TestCase {

    @Test
    public void testStart() {

        Client client = new MockRestStartClient(URL, DOMAIN, PROJECT, USER);
        Response response =
                new RunHandlerFactory().create(client, "PC", ENTITY_ID).start(
                        DURATION,
                        POST_RUN_ACTION,
                        "",
                        null);
        Assert.assertTrue(response.isOk());
    }

    private class MockRestStartClient extends RestClient4Test {

        public MockRestStartClient(String url, String domain, String project, String username) {

            super(url, domain, project, username);
        }

        @Override
        public Response httpPost(String url, byte[] data, Map<String, String> headers, ResourceAccessLevel resourceAccessLevel) {

            return new Response(null, null, null, HttpURLConnection.HTTP_OK);
        }
    }

    @Test
    public void testStop() {

        Client client = new MockRestStopClient(URL, DOMAIN, PROJECT, USER);
        Response response = new RunHandlerFactory().create(client, "PC", "23").stop();
        Assert.assertTrue(response.isOk());
    }

    @Test
    public void testReportUrl() {
        RunHandler handler =
                new RunHandlerFactory().create(
                        new RestClient(URL, DOMAIN, PROJECT, USER),
                        "PC",
                        "1001");
        handler.setRunId("1");

        try {
            Assert.assertTrue(String.format(
                    "td://%s.%s.%s:8080/qcbin/[TestRuns]?EntityLogicalName=run&EntityID=%s",
                    PROJECT,
                    DOMAIN,
                    new URL(URL).getHost(),
                    "1").equals(
                    handler.getReportUrl(createArgs())));
        } catch (MalformedURLException e) {
            Assert.fail();
        }

    }

    private class MockRestStopClient extends RestClient4Test {

        public MockRestStopClient(String url, String domain, String project, String username) {

            super(url, domain, project, username);
        }

        @Override
        public Response httpPost(String url, byte[] data, Map<String, String> headers, ResourceAccessLevel resourceAccessLevel) {

            return new Response(null, null, null, HttpURLConnection.HTTP_OK);
        }
    }
}


text:
<?xml version="1.0"?>
<ruleset name="Tartana">
	<description>The Tartana coding standard, based on PSR-2.</description>

	<rule ref="PSR2">
		<!-- Being more relaxed on multiline function calls -->
<!-- 		<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
		<exclude name="PSR2.Methods.FunctionCallSignature.Indent" />
		<exclude name="PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket" />
		<exclude name="PSR2.Methods.FunctionCallSignature.CloseBracketLine" />
		<exclude name="PSR2.Methods.FunctionCallSignature.MultipleArguments" /> -->
		<exclude name="Generic.WhiteSpace.DisallowTabIndent" />
	</rule>

	<!-- Use tabs instead of spaces -->
	<rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
	<rule ref="Generic.WhiteSpace.ScopeIndent">
		<properties>
			<property name="indent" value="4" />
			<property name="tabIndent" value="true" />
		</properties>
	</rule>

	<!-- Allow line length 150 -->
	<rule ref="Generic.Files.LineLength">
		<properties>
			<property name="lineLimit" value="150" />
			<property name="absoluteLineLimit" value="0" />
		</properties>
	</rule>

	<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
		<exclude-pattern type="relative">tests/*</exclude-pattern>
	</rule>
</ruleset>


text:
using namespace std;
const short max = 100;

struct ArrayList
{
	short countElements = 0;
	int *arrayList = new int[max];
};

ArrayList *createList()
{
	ArrayList *arrayList = new ArrayList;
	return arrayList;
}

short countElements(ArrayList *arrayList)
{
	return arrayList->countElements;
}

int headList(ArrayList *arrayList)
{
	return arrayList->arrayList[0];
}

void addElement(ArrayList *arrayList, int value)
{
	++arrayList->countElements;
	arrayList->arrayList[arrayList->countElements - 1] = value;
}

int deleteElement(ArrayList *arrayList)
{
	int help = arrayList->arrayList[0];
	for (int i = 0; i < arrayList->countElements - 1; ++i)
	{
		arrayList->arrayList[i] = arrayList->arrayList[i + 1];
	}
	arrayList->arrayList[arrayList->countElements - 1] = 0;
	--arrayList->countElements;
	return help;
}

void deleteList(ArrayList *arrayList)
{
	delete[] arrayList->arrayList;
	delete arrayList;
}

void showList(ArrayList *arrayList)
{
	cout << "\nSorted list: \n";
	for (int i = 0; i < countElements(arrayList); ++i)
	{
		cout << arrayList->arrayList[i] << " ";
	}
	cout << endl;
}

ArrayList *reverseList(ArrayList *arrayList)
{
	int i = 0;
	while (i < arrayList->countElements / 2)
	{
		swap(arrayList->arrayList[arrayList->countElements - i - 1], arrayList->arrayList[i]);
		++i;
	}
	return arrayList;
}


text:
(function(){
  'use strict';
  angular.module('fsReferenceClientShared')
    .directive('fsLifeSketchSection', function () {
      return {
        templateUrl: 'fsReferenceClientShared/fsLifeSketchSection/fsLifeSketchSection.tpl.html',
        scope: {
          state: '='
        }
      };
    });
})();


text:
/*
  DO NOT EDIT THIS FILE - the content was created using a source code generator
*/

#include "QMovieSlots.h"

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

QMovieSlots::~QMovieSlots()
{
}

void QMovieSlots::error( QImageReader::ImageReaderError error )
{
  QObject * object = qobject_cast< QObject * >( sender() );

  PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "error(QImageReader::ImageReaderError)" );

  if( cb )
  {
    PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QMOVIE" );
    PHB_ITEM pError = hb_itemPutNI( NULL, static_cast< int >( error ) );

    hb_vmEvalBlockV( cb, 2, pSender, pError );

    hb_itemRelease( pSender );
    hb_itemRelease( pError );
  }
}

void QMovieSlots::finished()
{
  QObject * object = qobject_cast< QObject * >( sender() );

  PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "finished()" );

  if( cb )
  {
    PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QMOVIE" );

    hb_vmEvalBlockV( cb, 1, pSender );

    hb_itemRelease( pSender );
  }
}

void QMovieSlots::frameChanged( int frameNumber )
{
  QObject * object = qobject_cast< QObject * >( sender() );

  PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "frameChanged(int)" );

  if( cb )
  {
    PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QMOVIE" );
    PHB_ITEM pFrameNumber = hb_itemPutNI( NULL, frameNumber );

    hb_vmEvalBlockV( cb, 2, pSender, pFrameNumber );

    hb_itemRelease( pSender );
    hb_itemRelease( pFrameNumber );
  }
}

void QMovieSlots::resized( const QSize & size )
{
  QObject * object = qobject_cast< QObject * >( sender() );

  PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "resized(QSize)" );

  if( cb )
  {
    PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QMOVIE" );
    PHB_ITEM pSize = Qt4xHb::Signals_return_object( ( void * ) &size, "QSIZE" );

    hb_vmEvalBlockV( cb, 2, pSender, pSize );

    hb_itemRelease( pSender );
    hb_itemRelease( pSize );
  }
}

void QMovieSlots::started()
{
  QObject * object = qobject_cast< QObject * >( sender() );

  PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "started()" );

  if( cb )
  {
    PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QMOVIE" );

    hb_vmEvalBlockV( cb, 1, pSender );

    hb_itemRelease( pSender );
  }
}

void QMovieSlots::stateChanged( QMovie::MovieState state )
{
  QObject * object = qobject_cast< QObject * >( sender() );

  PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "stateChanged(QMovie::MovieState)" );

  if( cb )
  {
    PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QMOVIE" );
    PHB_ITEM pState = hb_itemPutNI( NULL, static_cast< int >( state ) );

    hb_vmEvalBlockV( cb, 2, pSender, pState );

    hb_itemRelease( pSender );
    hb_itemRelease( pState );
  }
}

void QMovieSlots::updated( const QRect & rect )
{
  QObject * object = qobject_cast< QObject * >( sender() );

  PHB_ITEM cb = Qt4xHb::Signals_return_codeblock( object, "updated(QRect)" );

  if( cb )
  {
    PHB_ITEM pSender = Qt4xHb::Signals_return_qobject( object, "QMOVIE" );
    PHB_ITEM pRect = Qt4xHb::Signals_return_object( ( void * ) &rect, "QRECT" );

    hb_vmEvalBlockV( cb, 2, pSender, pRect );

    hb_itemRelease( pSender );
    hb_itemRelease( pRect );
  }
}

void QMovieSlots_connect_signal( const QString & signal, const QString & slot )
{
  QMovie * obj = qobject_cast< QMovie * >( Qt4xHb::getQObjectPointerFromSelfItem() );

  if( obj )
  {
    QMovieSlots * s = QCoreApplication::instance()->findChild<QMovieSlots *>();

    if( s == NULL )
    {
      s = new QMovieSlots();
      s->moveToThread( QCoreApplication::instance()->thread() );
      s->setParent( QCoreApplication::instance() );
    }

    hb_retl( Qt4xHb::Signals_connection_disconnection( s, signal, slot ) );
  }
  else
  {
    hb_retl( false );
  }
}


text:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<schema name="autoSolrSchema" version="1.5">
<types>
<fieldType class="org.apache.solr.schema.StrField" name="StrField"/>
<fieldType class="org.apache.solr.schema.TrieIntField" name="TrieIntField"/>
</types>
<fields>
<field indexed="true" multiValued="false" name="asin" stored="true" type="StrField"/>
<field indexed="true" multiValued="false" name="rank" stored="true" type="TrieIntField"/>
<field indexed="true" multiValued="false" name="category" stored="true" type="StrField"/>
</fields>
<uniqueKey>(asin,category)</uniqueKey>
</schema>


text:
package cz.metacentrum.perun.core.bl;

import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.AttributeDefinition;
import cz.metacentrum.perun.core.api.Facility;
import cz.metacentrum.perun.core.api.Group;
import cz.metacentrum.perun.core.api.Pair;
import cz.metacentrum.perun.core.api.PerunBean;
import cz.metacentrum.perun.core.api.Resource;
import cz.metacentrum.perun.core.api.User;
import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException;
import cz.metacentrum.perun.core.api.exceptions.InternalErrorException;
import cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException;
import cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException;
import cz.metacentrum.perun.core.api.exceptions.WrongReferenceAttributeValueException;
import cz.metacentrum.perun.core.impl.PerunSessionImpl;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Michal Stava <stavamichal@gmail.com>
 *
 * ModuleUtils interface.
 * There are methods for help with modules.
 *
 */
public interface ModulesUtilsBl {

	/**
	 * If attribute "def_facility_unixGroup_namespace" is "null" return false.
	 * If value of attribute "def_facility_unixGroup_namespace" is not same like "namespace", return false.
	 * Else return true.
	 *
	 * Facility, sess and namespace can't be null, otherwise throw InternalErrorException
	 *
	 * @param sess
	 * @param facility
	 * @param namespace
	 * @return
	 * @throws InternalErrorException
	 * @throws AttributeNotExistsException
	 * @throws WrongAttributeAssignmentException
	 */
	boolean isNamespaceEqualsToFacilityUnixGroupNameNamespace(PerunSessionImpl sess, Facility facility, String namespace) throws InternalErrorException, AttributeNotExistsException, WrongAttributeAssignmentException;

	/**
	 * This method get if the resource has the same attribute "attr" with the same namespace and same or different values
	 *
	 * If return 0 then there exists for the resource the same attribute with the same value
	 * if return more than 0 then there exists for the resource the same attribute with different value
	 * if return less than 0 then there not exists for the resource the same attribute
	 *
	 * @param sess
	 * @param resource
	 * @param attr any resource attribute with namespace which will be use for comparing
	 * @return
	 * @throws InternalErrorException if something is not correct
	 * @throws WrongAttributeAssignmentException if attribute name is not RESOURCE attribute
	 */
	int haveTheSameAttributeWithTheSameNamespace(PerunSessionImpl sess, Resource resource, Attribute attr) throws InternalErrorException, WrongAttributeAssignmentException;

	/**
	 * This method get if the group has the same attribute "attr" with the same namespace and same or different values
	 *
	 * If return 0 then there exists for the group the same attribute with the same value
	 * if return more than 0 then there exists for the group the same attribute with different value
	 * if return less than 0 then there not exists for the group the same attribute
	 *
	 * @param sess
	 * @param group
	 * @param attr any group attribute with namespace which will be use for comparing
	 * @return
	 * @throws InternalErrorException if something is not correct
	 * @throws WrongAttributeAssignmentException if attribute name is not GROUP attribute
	 */
	int haveTheSameAttributeWithTheSameNamespace(PerunSessionImpl sess, Group group, Attribute attr) throws InternalErrorException, WrongAttributeAssignmentException;

	/**
	 * If there are commong GID in the list of resources, get it.
	 * If there is some collision (more than one have the other GID in the same namespace) throw exception
	 *
	 * @param sess
	 * @param resourcesWithSameGroupNameInSameNamespace
	 * @param nameOfAttribute
	 * @param commonGID can be null if no commonGID exists
	 * @return common GID, if no exists return null
	 *
	 * @throws InternalErrorException
	 * @throws WrongAttributeAssignmentException
	 */
	Integer getCommonGIDOfResourcesWithSameNameInSameNamespace(PerunSessionImpl sess, List<Resource> resourcesWithSameGroupNameInSameNamespace, String nameOfAttribute, Integer commonGID) throws InternalErrorException, WrongAttributeAssignmentException;

	/**
	 * Check if list of gids in arguments is free in the namespace
	 *
	 * @param sess
	 * @param attribute list of unixGIDs-namespace attribute with value
	 * @param user handler of atribute
	 *
	 * @throws InternalErrorException
	 * @throws WrongReferenceAttributeValueException if minGid or maxGid is null
	 * @throws WrongAttributeAssignmentException
	 * @throws AttributeNotExistsException
	 * @throws WrongAttributeValueException
	 */
	void checkIfListOfGIDIsWithinRange(PerunSessionImpl sess,User user, Attribute attribute) throws InternalErrorException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongAttributeValueException;

	/**
	 * If there are commong GID in the list of groups, get it.
	 * If there is some collision (more than one have the other GID in the same namespace) throw exception
	 *
	 * @param sess
	 * @param groupsWithSameGroupNameInSameNamespace
	 * @param nameOfAttribute
	 * @param commonGID can bu null if no commonGID exists
	 * @return common GID, if no exists return null
	 *
	 * @throws InternalErrorException
	 * @throws WrongAttributeAssignmentException
	 */
	Integer getCommonGIDOfGroupsWithSameNameInSameNamespace(PerunSessionImpl sess, List<Group> groupsWithSameGroupNameInSameNamespace, String nameOfAttribute, Integer commonGID) throws InternalErrorException, WrongAttributeAssignmentException;

	/**
	 * Get free gid for resource or group.
	 *
	 * @param sess
	 * @param attribute group or resource unixGID-namespace attribute
	 * @return if 0 there probably isn't maxGID or minGID, if null there is no free gid, other less or more than 0 gid
	 *
	 * @throws InternalErrorException
	 * @throws AttributeNotExistsException
	 * @throws WrongAttributeAssignmentException
	 */
	Integer getFreeGID(PerunSessionImpl sess, Attribute attribute) throws InternalErrorException, AttributeNotExistsException, WrongAttributeAssignmentException;

	/**
	 * Check if gid in arguments is free in the namespace
	 *
	 * @param sess
	 * @param attribute group or resource unixGID-namespace attribute with value
	 *
	 * @throws InternalErrorException
	 * @throws WrongReferenceAttributeValueException if minGid or maxGid is null
	 * @throws WrongAttributeAssignmentException
	 * @throws AttributeNotExistsException
	 * @throws WrongAttributeValueException
	 */
	void checkIfGIDIsWithinRange(PerunSessionImpl sess, Attribute attribute) throws InternalErrorException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongAttributeValueException;

	/**
	 * Return true if i have right on any of groups or resources to WRITE the attribute
	 *
	 * @param sess
	 * @param groups lists of groups to search
	 * @param resources lists of resources to search
	 * @param groupAttribute AttributeDefinition for testing Write privileges for groups
	 * @param resourceAttribute AttributeDefinition for testing Write privileges for resource
	 *
	 * @return true if such group or resource exists, false if not
	 * @throws InternalErrorException if something is not correct or attribute is null
	 */
	boolean haveRightToWriteAttributeInAnyGroupOrResource(PerunSessionImpl sess, List<Group> groups, List<Resource> resources, AttributeDefinition groupAttribute, AttributeDefinition resourceAttribute) throws InternalErrorException;

	/**
	 * Take list of groupGID attributes and return list of the same GID attributes only for resource (with the same original value)
	 *
	 * @param sess
	 * @param groupGIDs list of attributes type of Group UnixGID
	 * @return list of attribute type of Resource UnixGID with same values like in original list
	 * @throws InternalErrorException if something is not correct or attribute is null
	 * @throws AttributeNotExistsException
	 */
	List<Attribute> getListOfResourceGIDsFromListOfGroupGIDs(PerunSessionImpl sess, List<Attribute> groupGIDs) throws InternalErrorException, AttributeNotExistsException;

	/**
	 * Take list of resourceGID attributes and return list of the same GID attributes only for group (with the same original value)
	 *
	 * @param sess
	 * @param resourceGIDs list of attributes type of Resource UnixGID
	 * @return list of attribute type of Group UnixGID with same values like in original list
	 * @throws InternalErrorException if something is not correct or attribute is null
	 * @throws AttributeNotExistsException
	 */
	List<Attribute> getListOfGroupGIDsFromListOfResourceGIDs(PerunSessionImpl sess, List<Attribute> resourceGIDs) throws InternalErrorException, AttributeNotExistsException;

	/**
	 * Get list of facilities and namespace of group or resource attribute unixGroupName-namespace and
	 * if any facility has unixGroupName-namespace with same value like this namespace of unixGroupNameNamespace attribute
	 * then get unixGID-namespace of this facility and save it to the hashSet of these namespaces.
	 *
	 * @param sess
	 * @param facilities list of facilities
	 * @param unixGroupNameNamespace unixGroupName-namespace attribute
	 * @return list of namespaces
	 * @throws InternalErrorException
	 * @throws WrongAttributeAssignmentException
	 * @throws WrongReferenceAttributeValueException
	 */
	Set<String> getSetOfGIDNamespacesWhereFacilitiesHasTheSameGroupNameNamespace(PerunSessionImpl sess, List<Facility> facilities, Attribute unixGroupNameNamespace) throws InternalErrorException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException;

	/**
	 * Get list of facilities and namespace of group or resource attribute unixGID-namespace and
	 * if any facility has unixGID-namespace with same value like this namespace of unixGIDNamespace attribute
	 * then get unixGroupName-namespace of this facility and save it to the hashSet of these namespaces.
	 *
	 * @param sess
	 * @param facilities list of facilities
	 * @param unixGroupNameNamespace unixGroupName-namespace attribute
	 * @return list of namespaces
	 * @throws InternalErrorException
	 * @throws WrongAttributeAssignmentException
	 * @throws WrongReferenceAttributeValueException
	 */
	Set<String> getSetOfGroupNameNamespacesWhereFacilitiesHasTheSameGIDNamespace(PerunSessionImpl sess, List<Facility> facilities, Attribute unixGroupNameNamespace) throws InternalErrorException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException;

	/**
	 * Check if value of groupName attribute is not reserved String.
	 * If not, its ok.
	 * If yes, throw WrongAttributeValueException.
	 * If attribute is null, then it's ok.
	 * For reserved unix group names this method firstly tries to read perun-namespaces.properties file.
	 * If there is no property in this file, it reads the default hardcoded values.
	 *
	 * @param groupNameAttribute unixGroupName-namespace
	 * @throws InternalErrorException
	 * @throws WrongAttributeValueException
	 */
	void checkReservedUnixGroupNames(Attribute groupNameAttribute) throws InternalErrorException, WrongAttributeValueException;

	/**
	 * Check if value of login attribute is unpermitted.
	 * If not, its ok.
	 * If yes, throw WrongAttributeValueException.
	 * If attribute is null, then it's ok.
	 * For unpermitted user logins this method firstly tries to read perun-namespaces.properties file.
	 * If there is no property in this file, it reads the default hardcoded values.
	 *
	 * @param loginAttribute login-namespace
	 * @throws InternalErrorException
	 * @throws WrongAttributeValueException
	 */
	void checkUnpermittedUserLogins(Attribute loginAttribute) throws InternalErrorException, WrongAttributeValueException;

	/**
	 * Get value of attribute A_F_Def_unixGroupName-Namespace
	 * If this value is null, throw WrongReferenceAttributeValueException
	 *
	 * @param sess
	 * @param resource
	 * @return namespace if is not null
	 * @throws InternalErrorException
	 * @throws WrongReferenceAttributeValueException if value of unixGroupName-namespace attribute is null
	 */
	Attribute getUnixGroupNameNamespaceAttributeWithNotNullValue(PerunSessionImpl sess, Resource resource) throws InternalErrorException, WrongReferenceAttributeValueException;

	/**
	 * Get value of attribute A_F_Def_googleGroupName-Namespace
	 * If this value is null, throw WrongReferenceAttributeValueException
	 *
	 * @param sess
	 * @param resource
	 * @return namespace if is not null
	 * @throws InternalErrorException
	 * @throws WrongReferenceAttributeValueException if value of googleGroupName-namespace attribute is null
	 */
	Attribute getGoogleGroupNameNamespaceAttributeWithNotNullValue(PerunSessionImpl sess, Resource resource) throws InternalErrorException, WrongReferenceAttributeValueException;

	/**
	 * Get value of attribute A_F_Def_unixGID-Namespace
	 * If this value is null, throw WrongReferenceAttributeValueException
	 *
	 * @param sess
	 * @param resource
	 * @return
	 * @throws InternalErrorException
	 * @throws WrongReferenceAttributeValueException
	 */
	Attribute getUnixGIDNamespaceAttributeWithNotNullValue(PerunSessionImpl sess, Resource resource) throws InternalErrorException, WrongReferenceAttributeValueException;

	/**
	 * This method return true if there exists some Facility (get from assigned resources) where is
	 * facility_unixGID-namespace attribute with value same like group_unixGID-namespace namespace and
	 * if the group has unixGroupName-namespace with notNull value in the same namespace like value of attribute
	 * facility_unixGroupName-namespace.
	 * Return false if not.
	 *
	 * @param sess
	 * @param group the group
	 * @param groupUnixGIDNamespace attribute of the group
	 * @return
	 * @throws InternalErrorException
	 * @throws WrongReferenceAttributeValueException
	 * @throws WrongAttributeAssignmentException
	 */
	boolean isGroupUnixGIDNamespaceFillable(PerunSessionImpl sess, Group group, Attribute groupUnixGIDNamespace) throws InternalErrorException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException;

	/**
	 * Check if shell has the right format.
	 * Use regex ^(/[-_a-zA-Z0-9]+)+$
	 *
	 * @param shell value of shell
	 * @param attribute attribute which need to test shell (needed for right exception)
	 * @throws WrongAttributeValueException if shell has bad format
	 */
	void checkFormatOfShell(String shell, Attribute attribute) throws WrongAttributeValueException;

	/**
	 * Checks name of an email by standard pattern and returns true, if it is valid.
	 *
	 * @param sess
	 * @param email name of the email
	 *
	 * @return true if the name of email is valid
	 */
	boolean isNameOfEmailValid(PerunSessionImpl sess, String email);

	/**
	 * Check if value of attribute (friendlyName) suits regex in perun-namespaces.properties file.
	 * If yes, nothing happens.
	 * If no, WrongAttributeValueException is thrown.
	 * If there is no property record in the properties file, defaultRegex is used instead (if not null).
	 *
	 * @param attribute
	 * @param defaultRegex Default regex to be used if regex is not found in the configuration file.
	 * @throws InternalErrorException
	 * @throws WrongAttributeValueException
	 */
	void checkAttributeRegex(Attribute attribute, String defaultRegex) throws InternalErrorException, WrongAttributeValueException;

	/**
	 * Check if value in quotas attribute are in the right format.
	 * Also transfer and return data in suitable container.
	 *
	 * Example of correct quotas with metrics: key=/path/to/volume , value=50T:0
	 * Example of correct quotas without metrics: key=/path/to/volume , value=1000:2000
	 *
	 * Example of suitable format: key=/path/to/volume, softQuota=50000000000000, hradQuota=0
	 *
	 * Left part of value is softQuota, right part after delimeter ':' is hardQuota.
	 * SoftQuota must be less or equals to hardQuota. '0' means unlimited.
	 *
	 * @param quotasAttribute attribute with paths and quotas (Map<String, String>) (data or files quotas)
	 * @param firstPlaceholder first attribute placeholder (can't be null, mandatory)
	 * @param secondPlaceholder second attribute placeholder (can be null if not exists)
	 * @param withMetrics true if metrics are used, false if not
	 *
	 * @return map with path in key and pair with <softQuota, hardQuota> in big decimal
	 *
	 * @throws InternalErrorException if attribute or his value is null
	 * @throws WrongAttributeValueException if something is wrong in format of attribute
	 */
	Map<String, Pair<BigDecimal, BigDecimal>> checkAndTransferQuotas(Attribute quotasAttribute, PerunBean firstPlaceholder, PerunBean secondPlaceholder, boolean withMetrics) throws InternalErrorException, WrongAttributeValueException;

	/**
	 * Reverse method for checkAndTransferQuotas method.
	 * Take transfered map and create again not transfered map.
	 * From path=/path/to/ , softQuota=50000, hardQuota=0
	 * To path=/path/to/ , value=50M:0
	 * (Do not check again!)
	 *
	 * @param transferedQuotasMap
	 * @param withMetrics if true, then use metrics, if not, do not convert data to metrics
	 *
	 * @return not transfered map for saving to attribute value
	 * @throws InternalErrorException
	 */
	Map<String, String> transferQuotasBackToAttributeValue(Map<String, Pair<BigDecimal, BigDecimal>> transferedQuotasMap, boolean withMetrics) throws InternalErrorException;

	/**
	 * Merge two transfered Quotas together.
	 * Paths are always unique, quotas are merged. (soft together and hard together)
	 * Together means = bigger is better, 0 means unlimited so it is always bigger
	 *
	 * @param firstQuotas  first transfered map with quotas
	 * @param secondQuotas second transfered map with quotas
	 *
	 * @return merged quotas transfered map
	 */
	Map<String,Pair<BigDecimal, BigDecimal>> mergeMemberAndResourceTransferedQuotas(Map<String, Pair<BigDecimal, BigDecimal>> firstQuotas, Map<String, Pair<BigDecimal, BigDecimal>> secondQuotas);

	/**
	 * Count all quotas for user.
	 * Every record in list is merged quotas map with value from resource attribute and resource-member attribute where user has allowed member.
	 *
	 * Quotas for same paths are sum together. If value is '0' then result is also '0', because 0 means unlimited.
	 *
	 * Example: /path/to/volume 30G:50G , /path/to/volume 40G:0 => /path/to/volume 70G:0
	 *
	 * @param allUserQuotas list
	 *
	 * @return counted user facility quotas
	 */
	Map<String, Pair<BigDecimal, BigDecimal>> countUserFacilityQuotas(List<Map<String, Pair<BigDecimal, BigDecimal>>> allUserQuotas);
}


text:
package ca.corefacility.bioinformatics.irida.ria.config.thymeleaf.webpacker.util;

/**
 * Enum for available webpacker tag types
 */
public enum WebpackerTagType {
	HTML,
	JS,
	CSS;

	@Override
	public String toString() {
		return super.toString().toLowerCase();
	}
}


text:
. ./conf.sh

# Released with Roboconf ${project.version}.
# Do not edit further, unless you know exactly what to change.

rm -rf $DM_NAME
tar -xf $DM_NAME.tar.gz

cd $DM_NAME/etc
sed -i "s/message-server-ip = localhost/message-server-ip = $IP_RMQ/g" net.roboconf.dm.configuration.cfg
sed -i "s/message-server-username = guest/message-server-username = $RMQ_USER/g" net.roboconf.agent.configuration.cfg
sed -i "s/message-server-password = guest/message-server-password = $RMQ_PWD/g" net.roboconf.agent.configuration.cfg

echo "Installation and configuration of the DM completed successfully."
echo "You will have to start the DM manually when you need it (~/..../bin/.karaf)."