text:
#pragma once

#include "il2cpp-config.h"

#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif

#include <stdint.h>
#include <assert.h>
#include <exception>

#include "codegen/il2cpp-codegen.h"

// Methods for marshaling
struct Internal_DrawWithTextSelectionArguments_t43446288;
struct Internal_DrawWithTextSelectionArguments_t43446288_marshaled_pinvoke;

extern "C" void Internal_DrawWithTextSelectionArguments_t43446288_marshal_pinvoke(const Internal_DrawWithTextSelectionArguments_t43446288& unmarshaled, Internal_DrawWithTextSelectionArguments_t43446288_marshaled_pinvoke& marshaled);
extern "C" void Internal_DrawWithTextSelectionArguments_t43446288_marshal_pinvoke_back(const Internal_DrawWithTextSelectionArguments_t43446288_marshaled_pinvoke& marshaled, Internal_DrawWithTextSelectionArguments_t43446288& unmarshaled);
extern "C" void Internal_DrawWithTextSelectionArguments_t43446288_marshal_pinvoke_cleanup(Internal_DrawWithTextSelectionArguments_t43446288_marshaled_pinvoke& marshaled);

// Methods for marshaling
struct Internal_DrawWithTextSelectionArguments_t43446288;
struct Internal_DrawWithTextSelectionArguments_t43446288_marshaled_com;

extern "C" void Internal_DrawWithTextSelectionArguments_t43446288_marshal_com(const Internal_DrawWithTextSelectionArguments_t43446288& unmarshaled, Internal_DrawWithTextSelectionArguments_t43446288_marshaled_com& marshaled);
extern "C" void Internal_DrawWithTextSelectionArguments_t43446288_marshal_com_back(const Internal_DrawWithTextSelectionArguments_t43446288_marshaled_com& marshaled, Internal_DrawWithTextSelectionArguments_t43446288& unmarshaled);
extern "C" void Internal_DrawWithTextSelectionArguments_t43446288_marshal_com_cleanup(Internal_DrawWithTextSelectionArguments_t43446288_marshaled_com& marshaled);


text:
from django.conf import settings
from vanilla import CreateView

from pyalp.utils import render_to_response
from tournaments.models import (
    Tournament,
    PollMaps,
    TournamentMatchesTeams
)

get_what_teams_called = lambda: None
get_num_teams = lambda: None
make_tournament_link = lambda: None

def allscores(tournament, team):
    # SELECT score FROM tournament_matches_teams WHERE
    # tourneyid='".tournament.id."' AND team='".teamid."'");

    query = TournamentMatchesTeams.objects.filter(
        tourney=tournament, team=team
    )
    return sum(query.values_list('score', flat=True))

class TournamentsView(CreateView):
    def get(self, request):
        context = {}

        tournament_id = request.GET.get('id', False)
        if tournament_id:
            tournament = Tournament.objects.filter(tournament_id).one()

            # tournament = 'SELECT tourneyid, ttype, tournaments.*
            # FROM tournaments WHERE tourneyid='.(int)_GET['id']);
            context['game'] = tournament.game

            context['txt'] = get_what_teams_called(tournament.id)

            team_num = get_num_teams(tournament.id)
            if tournament.lockstart:
                link = make_tournament_link(tournament.id)
            else:
                link = 'disp_teams.php?id=' + tournament.id

            polls = PollMaps.objects.filter(tourney=tournament, selected=True)
            if not settings.ALP_TOURNAMENT_MODE and polls.count():
                mapvote = True
            else:
                mapvote = False

            top_four = polls.fetch(4).ids

        context = {
            'team_num': team_num,
            'top_four': top_four,
            'link': link,
            'mapvote': mapvote
        }

        return render_to_response(
            'tournaments_get.html',
            context,
            request
        )

    def post(self):
        return render_to_response('tournaments_post.html')

redpajama_set_name: RedPajamaGithub


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

using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

using JetBrains.Annotations;

using NHibernate.Mapping.ByCode;

using PPWCode.Vernacular.NHibernate.III.MappingByCode;
using PPWCode.Vernacular.Persistence.IV;

namespace PPWCode.Vernacular.NHibernate.III.Tests.Model.BiDirectionalNoCascading
{
    [Serializable]
    [DataContract(IsReference = true)]
    public class Author : PersistentObject<int>
    {
        [DataMember]
        private readonly ISet<Book> _books = new HashSet<Book>();

        public Author()
        {
        }

        public Author(int id)
            : base(id)
        {
        }

        [DataMember]
        public virtual string Name { get; set; }

        [AuditLogPropertyIgnore]
        public virtual ISet<Book> Books
            => _books;

        public virtual void AddBook(Book book)
        {
            if ((book != null) && Books.Add(book))
            {
                book.Author = this;
            }
        }

        public virtual void RemoveBook(Book book)
        {
            if ((book != null) && Books.Remove(book))
            {
                book.Author = null;
            }
        }
    }

    [UsedImplicitly]
    public class AuthorMapper : PersistentObjectMapper<Author, int>
    {
        public AuthorMapper()
        {
            Property(a => a.Name);

            Set(
                c => c.Books,
                m => m.Cascade(Cascade.None),
                r => r.OneToMany());
        }
    }
}


text:
package main;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import ui.MainWindow;
import domain.CrawlerAnt;
import domain.CrawlerLazy;
import domain.Graph;
import domain.Link;
import domain.Node;

public class Main {

	public static Integer width = 800;
	public static Integer heigth = 600;
	public static Integer pheromoneToAdd = 100;
	public static Integer nbNode = 200;
	public static Float evaporation = 0.70f;

	public static void main(String[] args) throws Exception {

		Long startTime = System.currentTimeMillis();

		Graph graph = new Graph();
		graph.initRandomGraph(width, heigth, nbNode);
		//graph.initCircleGraph(width, heigth, nbNode);

		MainWindow window = new MainWindow(width, heigth);

		Float bestPath = Float.MAX_VALUE;
		Float wortPath = Float.MIN_VALUE;
		List<Link> bestTrip = null;
		Integer cptNoImprovement = 0;
		Integer nbIteration = 0;

		Random random = new Random();

		Node start = graph.getNodes().get(random.nextInt(graph.getNodes().size()));
		Node end = graph.getNodes().get(random.nextInt(graph.getNodes().size()));

		if(start.equals(end)){
			System.out.println("start == end -> pas de bol");
			return;
		}

		int availableProcessors = Runtime.getRuntime().availableProcessors()*2;
		System.out.println(availableProcessors + " threads.");

		while(cptNoImprovement < 10*nbNode){

			List<CrawlerAnt> ants = new ArrayList<CrawlerAnt>();

			for(int i = 0; i < availableProcessors; i++){
				ants.add(new CrawlerAnt(graph, start, end));
			}

			for(CrawlerAnt crawlerAnt : ants){
				crawlerAnt.start();
			}

			List<List<Link>> results = new ArrayList<List<Link>>();

			for(CrawlerAnt crawlerAnt : ants){
				crawlerAnt.join();
				results.add(crawlerAnt.getResult());
			}

			for(List<Link> crawlerResult : results){
				if(crawlerResult == null){
					System.out.println("y'a eu un pb capitaine. On skip le résultat ...");
					continue;
				}
				float pathLength = (float) Graph.getPathLength(crawlerResult);

				/* register bestPath */
				if(pathLength < bestPath){
					bestPath = pathLength;
					bestTrip = new ArrayList<Link>(crawlerResult);
					cptNoImprovement = 0;
				}
				else{
					cptNoImprovement ++;
				}

				/* register wort path */
				if(pathLength > wortPath){
					wortPath = pathLength;
				}

				if(nbIteration%5 == 0){
					window.showPath(crawlerResult, bestTrip);
					synchronized (window) {
						/* waiting for the window to be refreshed */
						window.wait();
					}
				}

				if(nbIteration%10 == 0){
					System.out.print('.');
				}
				if(nbIteration%100 == 0){
					System.out.print('\n');
				}

				nbIteration++;

				if(nbIteration%5 == 0){
					graph.evaporation(evaporation);
				}
			}

		}
		System.out.print('\n');

		CrawlerLazy crawlerLazy = new CrawlerLazy(graph, start, end);
		crawlerLazy.run();
		crawlerLazy.join();
		List<Link> lazyPath = crawlerLazy.getResult();

		window.showPath(lazyPath, bestTrip);

		System.out.println("---- terminé :");
		System.out.println("Best path : " + bestPath);
		System.out.println("worst path : " + wortPath);
		System.out.println("Lazy path : " + Graph.getPathLength(lazyPath));
		System.out.println("Total taken time : " + (System.currentTimeMillis() - startTime));

		Thread.currentThread().sleep(2000);
		window.dispose();
	}

}


text:
start_test Redirecting to the same domain retains PageSpeed query parameters.
URL="$(generate_url redirect.example.com /mod_pagespeed_test/forbidden.html)"
WGET_STDERR="${WGET_OUTPUT}.stderr"
MY_WGET_DUMP="$WGET -O $WGET_OUTPUT --server-response"
OPTS="?PageSpeedFilters=-add_instrumentation"
# First, fetch with add_instrumentation enabled (default) to ensure it is on.
echo wget $URL
http_proxy=$SECONDARY_HOSTNAME $MY_WGET_DUMP $URL 2>$WGET_STDERR
check_not_from "$(< $WGET_STDERR)" egrep -q ' 301 Moved Permanentl| 302 Found'
check_not_from "$(< $WGET_STDERR)" grep -q '^ *Location:'
check_from     "$(< $WGET_OUTPUT)" grep -q 'pagespeed.addInstrumentationInit'
check_not_from "$(< $WGET_OUTPUT)" grep -q '  '
# Then, fetch with add_instrumentation disabled and the URL not redirected.
echo wget $URL$OPTS
http_proxy=$SECONDARY_HOSTNAME $MY_WGET_DUMP $URL$OPTS 2>$WGET_STDERR
check_not_from "$(< $WGET_STDERR)" egrep -q ' 301 Moved Permanentl| 302 Found'
check_not_from "$(< $WGET_STDERR)" grep -q '^ *Location:'
check_not_from "$(< $WGET_OUTPUT)" grep -q 'pagespeed.addInstrumentationInit'
check_not_from "$(< $WGET_OUTPUT)" grep -q '  '
# Finally, fetch with add_instrumentation disabled and the URL redirected.
URL="$(generate_url redirect.example.com \
                    /redirect/mod_pagespeed_test/forbidden.html)"
echo wget $URL$OPTS
http_proxy=$SECONDARY_HOSTNAME $MY_WGET_DUMP $URL$OPTS 2>$WGET_STDERR
check_from     "$(< $WGET_STDERR)" egrep -q ' 301 Moved Permanentl| 302 Found'
check_from     "$(< $WGET_STDERR)" grep -q '^ *Location:.*=-add_instrumentati'
check_not_from "$(< $WGET_OUTPUT)" grep -q 'pagespeed.addInstrumentationInit'
check_not_from "$(< $WGET_OUTPUT)" grep -q '  '


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

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

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

<entity-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entity-eca.xsd">

    <eca entity="WorkEffortPartyAssignment" operation="create" event="return">
        <condition field-name="statusId" operator="equals" value="PAS_ASSIGNED"/>
        <set field-name="noteParty" env-name="partyId"/>
        <set field-name="noteInfo" value="New task assignment"/>
        <set field-name="moreInfoItemName" value="workEffortId"/>
        <set field-name="moreInfoItemId" env-name="workEffortId"/>
        <set field-name="moreInfoUrl" value="/projectmgr/control/taskView"/>
        <action service="createSystemInfoNote" mode="sync"/>
    </eca>

</entity-eca>


text:
package feature

import (
	"errors"
	"fmt"
	apiFace "github.com/jurevic/facegrinder/pkg/api/v1/face"
	"github.com/jurevic/facegrinder/pkg/api/v1/processor/draw"
	"github.com/jurevic/facegrinder/pkg/datastore"
	"github.com/jurevic/go-face"
	"gocv.io/x/gocv"
)

type RecogniseFaces struct {
	Key       string  `json:"key"`
	Jitter    int     `json:"jitter"`
	Threshold float64 `json:"threshold"`
	Skip      int     `json:"skip"`

	faceRec *face.Recognizer
	faces   []face.Face
	matches []int
	boxes   []draw.LabeledBox
	counter int
	context *map[string]interface{}
}

func (o *RecogniseFaces) Default() (err error) {
	o.Key = "faces"
	o.Jitter = 0
	o.Threshold = 0.6
	o.Skip = 10

	return
}

func (o *RecogniseFaces) Init(params map[string]interface{}) (err error) {
	if key, ok := params["key"]; ok {
		o.Key, ok = key.(string)
		if !ok {
			err = errors.New("key is not string type")
			return err
		}
	}
	if jitter, ok := params["jitter"]; ok {
		o.Jitter, ok = jitter.(int)
		if !ok {
			err = errors.New("jitter is not int type")
			return err
		}
	}
	if threshold, ok := params["threshold"]; ok {
		o.Threshold, ok = threshold.(float64)
		if !ok {
			err = errors.New("threshold is not float type")
			return err
		}
	}
	if skip, ok := params["skip"]; ok {
		o.Skip, ok = skip.(int)
		if !ok {
			err = errors.New("skip is not int type")
			return err
		}
	}

	o.faceRec, err = face.NewRecognizer("models", o.Threshold, uint(o.Jitter))
	if err != nil {
		return err
	}

	userId := params["user_id"].(int)
	o.initKnownFaces(userId)

	return
}

func (o *RecogniseFaces) InitCtx(ref *map[string]interface{}) (err error) {
	o.context = ref

	return
}

func (o *RecogniseFaces) Process(frame *gocv.Mat) (err error) {
	if o.counter == 0 {
		o.getFaces(frame)
		if err != nil {
			return err
		}

		o.classifyFaces()
		if err != nil {
			return err
		}

		// Create labeled boxes
		o.boxes = make([]draw.LabeledBox, len(o.faces))
		for i := range o.faces {
			o.boxes[i] = draw.LabeledBox{
				Rectangle: o.faces[i].Rectangle,
			}

			o.boxes[i].Label = ""
			if o.matches[i] >= 0 {
				o.boxes[i].Label = "suspect"
			}
		}

		// Output boxes to context
		ctx := *o.context
		ctx[o.Key] = &o.boxes
	}

	if o.counter >= o.Skip {
		o.counter = 0
	} else {
		o.counter++
	}

	return
}

func (o *RecogniseFaces) initKnownFaces(userId int) {
	db := datastore.DBConn()

	var faces []apiFace.Face
	err := db.Model(&faces).Where("owner_id = ?", userId).Select()
	if err != nil {
		return
	}

	var descriptors []face.Descriptor
	for i := range faces {
		knownFace, err := o.faceRec.RecognizeSingleFile(faces[i].Url)
		if err != nil {
			fmt.Println(err)
			return
		}
		descriptors = append(descriptors, knownFace.Descriptor)
	}

	o.faceRec.SetSamples(descriptors)
}

func (o *RecogniseFaces) getFaces(mat *gocv.Mat) (err error) {
	o.faces, err = o.faceRec.RecognizeMat(mat.ToBytes(), mat.Rows(), mat.Cols())
	if err != nil {
		return err
	}

	return
}

func (o *RecogniseFaces) classifyFaces() (err error) {
	var matches []int
	for i := range o.faces {
		matches = append(
			matches,
			o.faceRec.Classify(o.faces[i].Descriptor))
	}

	o.matches = matches

	return
}


text:
<!--
  ~ Copyright (c) 2016.
  ~
  ~ Rex M. Torres <rexmtorres@gmail.com>
  -->

<resources>

    <style name="AppThemeDot.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>

    <style name="AppThemeDroid.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>

</resources>


text:
![Oculus VR,
Inc.](RakNet_Icon_Final-copy.jpg){width="150" height="150"}\
\
  -------------------------------------------------------------------------------------------
  ![](spacer.gif){width="8" height="1"}Fully Connected Mesh Plugin Interface Implementation
  -------------------------------------------------------------------------------------------

+--------------------------------------------------------------------------+
| Automatically connect all peers in a peer |
| to peer game\                                                     |
| \                                                                        |
| The fully connected mesh implementation reads connection messages from   |
| RakNet and tries to connect to all systems on the network. On a new      |
| connection, it will tell the remote system of all systems it knows       |
| about. When that packet arrives, that system will then try to connect to |
| all those systems in turn. You can optionally specify a password which   |
| you can use to allow certain systems to join the mesh and other systems  |
| to not do so.                                                            |
|                                                                          |
| NOTE : The implementation requires that a ConnectionGraph plugin is also |
| attached to the RakPeer.\                                                |
|                                                                          |
| /// Set the password to use to connect to the other systems\             |
| void Startup(const char \*password, int \_passwordLength);               |
|                                                                          |
| /// Use the NAT punchthrough system to connect rather than calling       |
| directly\                                                                |
| void ConnectWithNatPunchthrough(NatPunchthrough \*np, SystemAddress      |
| \_facilitator);                                                          |
|                                                                          |
| See *Samples/FullyConnectedMesh* for a demonstration of this plugin      |
+--------------------------------------------------------------------------+

  -----------------------------------------------
  ![](spacer.gif){width="8" height="1"}See Also
  -----------------------------------------------

+--------------------------------------------------------------------------+
| [Index](index.html)\                                                     |
| [PluginInterface](plugininterface.html)\                                 |
| [NAT-Punchthrough](natpunchthrough.html)\                                |
| [Ready Event](readyevent.html)\                                          |
+--------------------------------------------------------------------------+


text:
FROM java:8-jre
MAINTAINER architecture@wso2.org

WORKDIR /opt

# --------------------------------
# Copy scripts, packages & plugins
# --------------------------------
COPY packages/petstore-txn.jar /opt/

# ----------------------
# Expose container ports
# ----------------------
EXPOSE 8080

ENTRYPOINT java -jar /opt/petstore-txn.jar


text:
/* Adapted to ISO-C90 */

#pragma once

#include "fast_atof.h"
#include "c99_math_compat.h"
#include "stringstream.h"

GMIO_INLINE uint32_t gmio_stringstream_strtoul10(
        struct gmio_stringstream* sstream)
{
    unsigned int value = 0;
    const char* in = gmio_stringstream_current_char(sstream);
    for (;
         in != NULL && gmio_ascii_isdigit(*in);
         in = gmio_stringstream_next_char(sstream))
    {
        value = (value * 10) + (*in - '0');
    }
    return value;
}

GMIO_INLINE int32_t gmio_stringstream_strtol10(
        struct gmio_stringstream* sstream)
{
    const char* in = gmio_stringstream_current_char(sstream);
    const bool inv = (*in == '-');
    int value = 0;

    if (inv || *in == '+')
        in = gmio_stringstream_next_char(sstream);
    value = gmio_stringstream_strtoul10(sstream);
    if (inv)
        value = -value;
    return value;
}

struct gmio_stringstream_strtof10_result
{
    float val;
    unsigned char_diff;
};

GMIO_INLINE struct gmio_stringstream_strtof10_result
        gmio_stringstream_strtof10(struct gmio_stringstream* sstream)
{
    const char* in = gmio_stringstream_current_char(sstream);
    const uint32_t MAX_SAFE_U32_VALUE = UINT_MAX / 10 - 10;
    uint32_t int_val = 0;
    float float_val = 0.f;
    unsigned char_diff = 0;
    struct gmio_stringstream_strtof10_result result;

    /* Use integer arithmetic for as long as possible, for speed and
     * precision */
    for (;
         in != NULL && gmio_ascii_isdigit(*in) && int_val < MAX_SAFE_U32_VALUE;
         in = gmio_stringstream_next_char(sstream))
    {
        int_val = (int_val * 10) + (*in - '0');
        ++char_diff;
    }
    float_val = (float)int_val;
    /* If there are any digits left to parse, then we need to use floating point
     * arithmetic from here */
    for (;
         in != NULL && gmio_ascii_isdigit(*in) && float_val <= FLT_MAX;
         in = gmio_stringstream_next_char(sstream))
    {
        float_val = (float_val * 10) + (*in - '0');
        ++char_diff;
    }
    result.val = float_val;
    result.char_diff = char_diff;
    return result;
}

GMIO_INLINE float gmio_stringstream_fast_atof(struct gmio_stringstream* sstream)
{
    const char* in = gmio_stringstream_current_char(sstream);
    const bool negative = ('-' == *in);
    float value = 0.f;

    /* Please run the regression test when making any modifications to this
     * function. */
    if (negative || ('+' == *in))
        in = gmio_stringstream_next_char(sstream);
    value = gmio_stringstream_strtof10(sstream).val;
    in = gmio_stringstream_current_char(sstream);
    if (is_local_decimal_point(*in)) {
        const struct gmio_stringstream_strtof10_result decimal =
                gmio_stringstream_strtof10(
                    gmio_stringstream_move_next_char(sstream));
        value += decimal.val * fast_atof_table[decimal.char_diff];
        in = gmio_stringstream_current_char(sstream);
    }
    if (in != NULL && ('e' == *in || 'E' == *in)) {
        in = gmio_stringstream_next_char(sstream);
        /* Assume that the exponent is a whole number.
         * strtol10() will deal with both + and - signs,
         * but calculate as float to prevent overflow at FLT_MAX */
        value *= gmio_powf(10.f, (float)gmio_stringstream_strtol10(sstream));
    }
    return negative ? -value : value;
}


text:
/** Author:  Ben Lau (https://github.com/benlau)
 */
#ifndef QUICKITEMGRABBER_H
#define QUICKITEMGRABBER_H

#include <QObject>
#include <QQuickItem>
#include <QImage>
#include <QPointer>

/// QuickItemGrabber grabs QQuickItem into QImage

class QuickItemGrabber : public QObject
{
    Q_OBJECT
    /// "Busy" flag. It is TRUE if the grabber is running. It won't accept another request when busy.
    Q_PROPERTY(bool busy READ busy NOTIFY busyChanged)

    /// The grabbed image
    Q_PROPERTY(QImage image READ image NOTIFY imageChanged)

public:
    explicit QuickItemGrabber(QObject *parent = 0);

    bool busy() const;
    QImage image() const;

    /// Grab the target item and save to "image" property
    Q_INVOKABLE bool grab(QQuickItem* target,QSize targetSize = QSize());

    /// Save the grabbed image into file. It is a blocked call.
    Q_INVOKABLE bool save(QString filename);

    /// Clear the captured image.
    Q_INVOKABLE void clear();

signals:
    void busyChanged();
    void imageChanged();
    void grabbed();
    void maxTextureSizeChanged();

private:
    // Ready for capture
    Q_INVOKABLE void ready();

#if (QT_VERSION < QT_VERSION_CHECK(5, 4, 0))
    Q_INVOKABLE void capture();
#else
    Q_INVOKABLE void onGrabResultReady();
    QSharedPointer<QQuickItemGrabResult> result;
#endif

    void setBusy(bool value);
    void setImage(QImage value);

    bool m_busy;
    bool m_ready;
    QSize m_targetSize;
    QPointer<QQuickItem> m_target;
    QPointer<QQuickWindow> m_window;
    QImage m_image;
};

#endif // QUICKITEMGRABBER_H


text:
GameJamFall2014
===============

Entry for Taylor CSE Game Jam Fall 2014

Controls:

- WASD to move
- Hold left click to turn on flashlight
- Move mouse to where you want flashlight to point.
- 2-Player is sort of supported. Plug in an Xbox360 controller before starting the game! Use right stick to point flashlight and r-trigger to shine.

Gameplay:
- There are a couple baddies out and about.
- They won't bother you if you don't bother them.
- But don't touch them, they are mighty dangerous!
- They are scared of light, I've heard.
- There have been stories told of secrets among these mysterious ruins.
- What will you discover? Will you WIN?

** There is no menu so you must close and restart game manually if you die *gasp* or win.


text:
import { Component, OnInit, Input, ElementRef } from '@angular/core';
import { HeadlineModel } from '../../models/headline.model';
import { Constants } from '../../Constants';
import { ImageTypes } from '../../Enums';
import { HeadlineBase, CustomBaseModel } from './headline-base.component';
@Component({
    selector: 'headline-pair',
    templateUrl: 'headline-pair.component.html',
    host: {
        '(window:scroll)': 'scrolleEvent($event)'
    }
})
export class HeadlinePairComponent {
    @Input() item: HeadlineModel;
    @Input() nextItem: HeadlineModel;
    _changedToRealImage: boolean = false;
    private _basic: HeadlineBase;
    private _baseModel = new CustomBaseModel();
    private _imageType = ImageTypes.HeadlIne_Big_460_258;

    constructor(private myElement: ElementRef) {
        this._basic = new HeadlineBase(myElement, this._baseModel);
    }

    scrolleEvent(event) {
        if (!this._changedToRealImage && this.isVisible) {
            this.loadUrls();
        }
    }

    imageLoaded() {
        if (this.item.ImageTimeout > 0 && !this._changedToRealImage) {
            setTimeout(() => {
                this.loadUrls();
            }, this.item.ImageTimeout);
        }

    }
    private loadUrls() {
        this._basic.loadUrl(this.item.MediaStockImageID, this._imageType, this.nextItem.MediaStockImageID); // load pair of images
        this._changedToRealImage = true;
    }

    get isVisible() {
        return this._basic.isVisible();
    }

    get loadingUrl() {
        return this._baseModel.loadingUrl;
    }
    set loadingUrl(value: string) {
        this._baseModel.loadingUrl = value;
    }

    get loadingUrlNext() {
        return this._baseModel.loadingUrlNext;
    }
    set loadingUrlNext(value: string) {
        this._baseModel.loadingUrlNext = value;
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public class PerformanceCar : Car
{
    private List<string> addOns;

    public PerformanceCar(string brand, string model, int yearOfProduction, int horsepower, int acceleration, int suspension, int durability)
        : base(brand, model, yearOfProduction, horsepower, acceleration, suspension, durability)
    {
        this.HorsePower += (this.HorsePower * 50) / 100;
        this.Suspension -= (this.Suspension * 25) / 100;
        this.addOns = new List<string>();
    }

    public override void Tune(int tuneIndex, string addOn)
    {
        base.Tune(tuneIndex, addOn);
        this.addOns.Add(addOn);
    }

    public override string ToString()
    {
        var sb = new StringBuilder(base.ToString());

        if (this.addOns.Count > 0)
        {
            sb.AppendLine("Add-ons: " + string.Join(", ", addOns));
        }
        else
        {
            sb.AppendLine("Add-ons: None");
        }

        return sb.ToString().Trim();
    }
}


text:
===============================
Migrating Zuul V2 CI jobs to V3
===============================

The OpenStack CI system moved from Zuul v2 to Zuul v3, and all CI jobs moved to
the new CI system. All jobs have been migrated automatically to a format
compatible with Zuul v3; the jobs produced in this way however are suboptimal
and do not use the capabilities introduced by Zuul v3, which allow for re-use of
job parts, in the form of Ansible roles, as well as inheritance between jobs.

DevStack hosts a set of roles, plays and jobs that can be used by other
repositories to define their DevStack based jobs. To benefit from them, jobs
must be migrated from the legacy v2 ones into v3 native format.

This document provides guidance and examples to make the migration process as
painless and smooth as possible.

Where to host the job definitions.
==================================

In Zuul V3 jobs can be defined in the repository that contains the code they
excercise. If you are writing CI jobs for an OpenStack service you can define
your DevStack based CI jobs in one of the repositories that host the code for
your service. If you have a branchless repo, like a Tempest plugin, that is
a convenient choice to host the job definitions since job changes do not have
to be backported. For example, see the beginning of the ``.zuul.yaml`` from the
sahara Tempest plugin repo:

.. code:: yaml

  # In http://git.openstack.org/cgit/openstack/sahara-tests/tree/.zuul.yaml:
  - job:
      name: sahara-tests-tempest
      description: |
        Run Tempest tests from the Sahara plugin.
      parent: devstack-tempest

Which base job to start from
============================

If your job needs an OpenStack cloud deployed via DevStack, but you don't plan
on running Tempest tests, you can start from one of the base
:doc:`jobs <zuul_jobs>` defined in the DevStack repo.

The ``devstack`` job can be used for both single-node jobs and multi-node jobs,
and it includes the list of services used in the integrated gate (keystone,
glance, nova, cinder, neutron and swift). Different topologies can be achieved
by switching the nodeset used in the child job.

The ``devstack-base`` job is similar to ``devstack`` but it does not specify any
required repo or service to be run in DevStack. It can be useful to setup
children jobs that use a very narrow DevStack setup.

If your job needs an OpenStack cloud deployed via DevStack, and you do plan
on running Tempest tests, you can start from one of the base jobs defined in the
Tempest repo.

The ``devstack-tempest`` job can be used for both single-node jobs and
multi-node jobs. Different topologies can be achieved by switching the nodeset
used in the child job.

Jobs can be customized as follows without writing any Ansible code:

- add and/or remove DevStack services
- add or modify DevStack and services configuration
- install DevStack plugins
- extend the number of sub-nodes (multinode only)
- define extra log files and/or directories to be uploaded on logs.o.o
- define extra log file extensions to be rewritten to .txt for ease of access

Tempest jobs can be further customized as follows:

- define the Tempest tox environment to be used
- define the test concurrency
- define the test regular expression

Writing Ansible code, or importing existing custom roles, jobs can be further
extended by:

- adding pre and/or post playbooks
- overriding the run playbook, add custom roles

The (partial) example below extends a Tempest single node base job
"devstack-tempest" in the Kuryr repository. The parent job name is defined in
job.parent.

.. code:: yaml

  # https://git.openstack.org/cgit/openstack/kuryr-kubernetes/tree/.zuul.yaml:
  - job:
      name: kuryr-kubernetes-tempest-base
      parent: devstack-tempest
      description: Base kuryr-kubernetes-job
      required-projects:
        - openstack/devstack-plugin-container
        - openstack/kuryr
        - openstack/kuryr-kubernetes
        - openstack/kuryr-tempest-plugin
        - openstack/neutron-lbaas
      vars:
        tempest_test_regex: '^(kuryr_tempest_plugin.tests.)'
        tox_envlist: 'all'
        devstack_localrc:
          KURYR_K8S_API_PORT: 8080
          TEMPEST_PLUGINS: '/opt/stack/kuryr-tempest-plugin'
        devstack_services:
          kubernetes-api: true
          kubernetes-controller-manager: true
          kubernetes-scheduler: true
          kubelet: true
          kuryr-kubernetes: true
          (...)
        devstack_plugins:
          kuryr-kubernetes: https://git.openstack.org/openstack/kuryr
          devstack-plugin-container: https://git.openstack.org/openstack/devstack-plugin-container
          neutron-lbaas: https://git.openstack.org/openstack/neutron-lbaas
        (...)

Job variables
=============

Variables can be added to the job in three different places:

- job.vars: these are global variables available to all node in the nodeset
- job.host-vars.[HOST]: these are variables available only to the specified HOST
- job.group-vars.[GROUP]: these are variables available only to the specified
  GROUP

Zuul merges dict variables through job inheritance. Host and group variables
override variables with the same name defined as global variables.

In the example below, for the sundaes job, hosts that are not part of the
subnode group will run vanilla and chocolate. Hosts in the subnode group will
run stracciatella and strawberry.

.. code:: yaml

  - job:
      name: ice-creams
      vars:
        devstack_service:
          vanilla: true
          chocolate: false
      group-vars:
        subnode:
          devstack_service:
            pistacchio: true
            stracciatella: true

  - job:
      name: sundaes
      parent: ice-creams
      vars:
        devstack_service:
          chocolate: true
      group-vars:
        subnode:
          devstack_service:
            strawberry: true
            pistacchio: false

DevStack Gate Flags
===================

The old CI system worked using a combination of DevStack, Tempest and
devstack-gate to setup a test environment and run tests against it. With Zuul
V3, the logic that used to live in devstack-gate is moved into different repos,
including DevStack, Tempest and grenade.

DevStack-gate exposes an interface for job definition based on a number of
DEVSTACK_GATE_* environment variables, or flags. This guide shows how to map
DEVSTACK_GATE flags into the new
system.

The repo column indicates in which repository is hosted the code that replaces
the devstack-gate flag. The new implementation column explains how to reproduce
the same or a similar behaviour in Zuul v3 jobs. For localrc settings,
devstack-gate defined a default value. In ansible jobs the default is either the
value defined in the parent job, or the default from DevStack, if any.

==============================================  ============= ==================
DevStack gate flag                              Repo          New implementation
==============================================  ============= ==================
OVERRIDE_ZUUL_BRANCH                            zuul          override-checkout:
                                                              [branch]
                                                              in the job definition.
DEVSTACK_GATE_NET_OVERLAY                       zuul-jobs     A bridge called
                                                              br-infra is set up for
                                                              all jobs that inherit
                                                              from multinode with
                                                              a dedicated `bridge role <https://docs.openstack.org/infra/zuul-jobs/roles.html#role-multi-node-bridge>`_.
DEVSTACK_GATE_FEATURE_MATRIX                    devstack-gate ``test_matrix_features``
                                                              variable of the
                                                              test-matrix role in
                                                              devstack-gate. This
                                                              is a temporary
                                                              solution, feature
                                                              matrix will go away.
                                                              In the future services
                                                              will be defined in
                                                              jobs only.
DEVSTACK_CINDER_VOLUME_CLEAR                    devstack      *CINDER_VOLUME_CLEAR: true/false*
                                                              in devstack_localrc
                                                              in the job vars.
DEVSTACK_GATE_NEUTRON                           devstack      True by default. To
                                                              disable, disable all
                                                              neutron services in
                                                              devstack_services in
                                                              the job definition.
DEVSTACK_GATE_CONFIGDRIVE                       devstack      *FORCE_CONFIG_DRIVE: true/false*
                                                              in devstack_localrc
                                                              in the job vars.
DEVSTACK_GATE_INSTALL_TESTONLY                  devstack      *INSTALL_TESTONLY_PACKAGES: true/false*
                                                              in devstack_localrc
                                                              in the job vars.
DEVSTACK_GATE_VIRT_DRIVER                       devstack      *VIRT_DRIVER: [virt driver]*
                                                              in devstack_localrc
                                                              in the job vars.
DEVSTACK_GATE_LIBVIRT_TYPE                      devstack      *LIBVIRT_TYPE: [libvirt type]*
                                                              in devstack_localrc
                                                              in the job vars.
DEVSTACK_GATE_TEMPEST                           devstack      Defined by the job
                                                tempest       that is used. The
                                                              ``devstack`` job only
                                                              runs devstack.
                                                              The ``devstack-tempest``
                                                              one triggers a Tempest
                                                              run as well.
DEVSTACK_GATE_TEMPEST_FULL                      tempest       *tox_envlist: full*
                                                              in the job vars.
DEVSTACK_GATE_TEMPEST_ALL                       tempest       *tox_envlist: all*
                                                              in the job vars.
DEVSTACK_GATE_TEMPEST_ALL_PLUGINS               tempest       *tox_envlist: all-plugin*
                                                              in the job vars.
DEVSTACK_GATE_TEMPEST_SCENARIOS                 tempest       *tox_envlist: scenario*
                                                              in the job vars.
TEMPEST_CONCURRENCY                             tempest       *tempest_concurrency: [value]*
                                                              in the job vars. This
                                                              is available only on
                                                              jobs that inherit from
                                                              ``devstack-tempest``
                                                              down.
DEVSTACK_GATE_TEMPEST_NOTESTS                   tempest       *tox_envlist: venv-tempest*
                                                              in the job vars. This
                                                              will create Tempest
                                                              virtual environment
                                                              but run no tests.
DEVSTACK_GATE_SMOKE_SERIAL                      tempest       *tox_envlist: smoke-serial*
                                                              in the job vars.
DEVSTACK_GATE_TEMPEST_DISABLE_TENANT_ISOLATION  tempest       *tox_envlist: full-serial*
                                                              in the job vars.
                                                              *TEMPEST_ALLOW_TENANT_ISOLATION: false*
                                                              in devstack_localrc in
                                                              the job vars.
==============================================  ============= ==================

The following flags have not been migrated yet or are legacy and won't be
migrated at all.

=====================================  ======  ==========================
DevStack gate flag                     Status  Details
=====================================  ======  ==========================
DEVSTACK_GATE_TOPOLOGY                 WIP     The topology depends on the base
                                               job that is used and more
                                               specifically on the nodeset
                                               attached to it. The new job
                                               format allows project to define
                                               the variables to be passed to
                                               every node/node-group that exists
                                               in the topology. Named topologies
                                               that include the nodeset and the
                                               matching variables can be defined
                                               in the form of base jobs.
DEVSTACK_GATE_GRENADE                  TBD     Grenade Zuul V3 jobs will be
                                               hosted in the grenade repo.
GRENADE_BASE_BRANCH                    TBD     Grenade Zuul V3 jobs will be
                                               hosted in the grenade repo.
DEVSTACK_GATE_NEUTRON_DVR              TBD     Depends on multinode support.
DEVSTACK_GATE_EXERCISES                TBD     Can be done on request.
DEVSTACK_GATE_IRONIC                   TBD     This will probably be implemented
                                               on ironic side.
DEVSTACK_GATE_IRONIC_DRIVER            TBD     This will probably be implemented
                                               on ironic side.
DEVSTACK_GATE_IRONIC_BUILD_RAMDISK     TBD     This will probably be implemented
                                               on ironic side.
DEVSTACK_GATE_POSTGRES                 Legacy  This flag exists in d-g but the
                                               only thing that it does is
                                               capture postgres logs. This is
                                               already supported by the roles in
                                               post, so the flag is useless in
                                               the new jobs. postgres itself can
                                               be enabled via the
                                               devstack_service job variable.
DEVSTACK_GATE_ZEROMQ                   Legacy  This has no effect in d-g.
DEVSTACK_GATE_MQ_DRIVER                Legacy  This has no effect in d-g.
DEVSTACK_GATE_TEMPEST_STRESS_ARGS      Legacy  Stress is not in Tempest anymore.
DEVSTACK_GATE_TEMPEST_HEAT_SLOW        Legacy  This is not used anywhere.
DEVSTACK_GATE_CELLS                    Legacy  This has no effect in d-g.
DEVSTACK_GATE_NOVA_API_METADATA_SPLIT  Legacy  This has no effect in d-g.
=====================================  ======  ==========================


text:
using System;
using System.Threading;
using EasyNetQ;
using RabbitEasyNetQ.Messages;

namespace RabbitEasyNetQ.Patterns
{
    public class EasyNetQSendAndReceive
    {
        public void Run()
        {
            //SetupReceive();
            StartSending();
        }

        void SetupReceive()
        {
            var bus = RabbitHutch.CreateBus(GlobalInfo.RabbitMqConnectionString);
            bus.Receive("My.Queue", x => x
                .Add<MessageA>(m =>
                {
                    Console.WriteLine("Received MessageA: UserId: {0}, Purchase Price: {1}", m.UserId, m.PurchasePrice);
                })
                .Add<MessageB>(m =>
                {
                    Console.WriteLine("Received MessageB: ItemNumber: {0}, Ship to Address: {1}", m.ItemNumber, m.ShipToAddress);
                }));
        }

        void StartSending()
        {
            var bus = RabbitHutch.CreateBus(GlobalInfo.RabbitMqConnectionString);
            var rand = new Random();
            while (true)
            {
                var messageA = new MessageA
                {
                    UserId = rand.Next(5000,9999),
                    PurchasePrice = rand.Next(250,1000) / 10M
                };
                var messageB = new MessageB
                {
                    ShipToAddress = string.Format("{0} {1} St.", rand.Next(100,1000), rand.RandomString()),
                    ItemNumber = rand.Next(100000,200000)
                };

                // these messages will be put in the queue even if there aren't any
                // receivers yet
                bus.Send("My.Queue", messageA);
                Console.WriteLine("Sent message A.");
                Thread.Sleep(1000);

                bus.Send("My.Queue", messageB);
                Console.WriteLine("Sent message B.");
                Thread.Sleep(1000);
            }
        }
    }
}


text:
function nD = getDimension( obj )
% GETDIMENSION  Get dimension of nlsaKernelDensity objects
%
% Modified 2015/04/06

nD = zeros( size( obj ) );
for iObj = 1 : numel( obj )
    nD( iObj ) = obj( iObj ).nD;
end


text:
package android.view.accessibility;

import android.os.Parcelable;
import android.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import java.util.List;

public class AccessibilityRecord
{
    public AccessibilityNodeInfo getSource(){ return null; }
    public AccessibilityRecord(){}
    public AccessibilityRecord(AccessibilityRecord p0){}
    public CharSequence getBeforeText(){ return null; }
    public CharSequence getClassName(){ return null; }
    public CharSequence getContentDescription(){ return null; }
    public List<CharSequence> getText(){ return null; }
    public Parcelable getParcelableData(){ return null; }
    public String toString(){ return null; }
    public boolean isChecked(){ return false; }
    public boolean isEnabled(){ return false; }
    public boolean isFullScreen(){ return false; }
    public boolean isPassword(){ return false; }
    public boolean isScrollable(){ return false; }
    public int getAddedCount(){ return 0; }
    public int getCurrentItemIndex(){ return 0; }
    public int getFromIndex(){ return 0; }
    public int getItemCount(){ return 0; }
    public int getMaxScrollX(){ return 0; }
    public int getMaxScrollY(){ return 0; }
    public int getRemovedCount(){ return 0; }
    public int getScrollDeltaX(){ return 0; }
    public int getScrollDeltaY(){ return 0; }
    public int getScrollX(){ return 0; }
    public int getScrollY(){ return 0; }
    public int getToIndex(){ return 0; }
    public int getWindowId(){ return 0; }
    public static AccessibilityRecord obtain(){ return null; }
    public static AccessibilityRecord obtain(AccessibilityRecord p0){ return null; }
    public void recycle(){}
    public void setAddedCount(int p0){}
    public void setBeforeText(CharSequence p0){}
    public void setChecked(boolean p0){}
    public void setClassName(CharSequence p0){}
    public void setContentDescription(CharSequence p0){}
    public void setCurrentItemIndex(int p0){}
    public void setEnabled(boolean p0){}
    public void setFromIndex(int p0){}
    public void setFullScreen(boolean p0){}
    public void setItemCount(int p0){}
    public void setMaxScrollX(int p0){}
    public void setMaxScrollY(int p0){}
    public void setParcelableData(Parcelable p0){}
    public void setPassword(boolean p0){}
    public void setRemovedCount(int p0){}
    public void setScrollDeltaX(int p0){}
    public void setScrollDeltaY(int p0){}
    public void setScrollX(int p0){}
    public void setScrollY(int p0){}
    public void setScrollable(boolean p0){}
    public void setSource(View p0){}
    public void setSource(View p0, int p1){}
    public void setToIndex(int p0){}
}


text:
@implementation REINoteModel

@end


text:
"""
Supporting event detector components.

Utils module contains the various supporting classes used by the
components of the event detection system.
"""


text:
extern "Java"
{
  namespace org
  {
    namespace omg
    {
      namespace CORBA
      {
          class Any;
          class Context;
          class ContextList;
          class DomainManager;
          class DynAny;
          class DynValue;
          class ExceptionList;
          class NVList;
          class NameValuePair;
          class NamedValue;
          class Object;
          class Policy;
          class Request;
          class SetOverrideType;
          class TCKind;
          class TypeCode;
      }
    }
  }
}

class org::omg::CORBA::DynValue : public ::java::lang::Object
{

public:
  virtual ::org::omg::CORBA::TCKind * current_member_kind() = 0;
  virtual ::java::lang::String * current_member_name() = 0;
  virtual JArray< ::org::omg::CORBA::NameValuePair * > * get_members() = 0;
  virtual void set_members(JArray< ::org::omg::CORBA::NameValuePair * > *) = 0;
  virtual void assign(::org::omg::CORBA::DynAny *) = 0;
  virtual ::org::omg::CORBA::DynAny * copy() = 0;
  virtual ::org::omg::CORBA::DynAny * current_component() = 0;
  virtual void destroy() = 0;
  virtual void from_any(::org::omg::CORBA::Any *) = 0;
  virtual ::org::omg::CORBA::Any * get_any() = 0;
  virtual jboolean get_boolean() = 0;
  virtual jchar get_char() = 0;
  virtual jdouble get_double() = 0;
  virtual jfloat get_float() = 0;
  virtual jint get_long() = 0;
  virtual jlong get_longlong() = 0;
  virtual jbyte get_octet() = 0;
  virtual ::org::omg::CORBA::Object * get_reference() = 0;
  virtual jshort get_short() = 0;
  virtual ::java::lang::String * get_string() = 0;
  virtual ::org::omg::CORBA::TypeCode * get_typecode() = 0;
  virtual jint get_ulong() = 0;
  virtual jlong get_ulonglong() = 0;
  virtual jshort get_ushort() = 0;
  virtual ::java::io::Serializable * get_val() = 0;
  virtual jchar get_wchar() = 0;
  virtual ::java::lang::String * get_wstring() = 0;
  virtual void insert_any(::org::omg::CORBA::Any *) = 0;
  virtual void insert_boolean(jboolean) = 0;
  virtual void insert_char(jchar) = 0;
  virtual void insert_double(jdouble) = 0;
  virtual void insert_float(jfloat) = 0;
  virtual void insert_long(jint) = 0;
  virtual void insert_longlong(jlong) = 0;
  virtual void insert_octet(jbyte) = 0;
  virtual void insert_reference(::org::omg::CORBA::Object *) = 0;
  virtual void insert_short(jshort) = 0;
  virtual void insert_string(::java::lang::String *) = 0;
  virtual void insert_typecode(::org::omg::CORBA::TypeCode *) = 0;
  virtual void insert_ulong(jint) = 0;
  virtual void insert_ulonglong(jlong) = 0;
  virtual void insert_ushort(jshort) = 0;
  virtual void insert_val(::java::io::Serializable *) = 0;
  virtual void insert_wchar(jchar) = 0;
  virtual void insert_wstring(::java::lang::String *) = 0;
  virtual jboolean next() = 0;
  virtual void rewind() = 0;
  virtual jboolean seek(jint) = 0;
  virtual ::org::omg::CORBA::Any * to_any() = 0;
  virtual ::org::omg::CORBA::TypeCode * type() = 0;
  virtual ::org::omg::CORBA::Request * _create_request(::org::omg::CORBA::Context *, ::java::lang::String *, ::org::omg::CORBA::NVList *, ::org::omg::CORBA::NamedValue *) = 0;
  virtual ::org::omg::CORBA::Request * _create_request(::org::omg::CORBA::Context *, ::java::lang::String *, ::org::omg::CORBA::NVList *, ::org::omg::CORBA::NamedValue *, ::org::omg::CORBA::ExceptionList *, ::org::omg::CORBA::ContextList *) = 0;
  virtual ::org::omg::CORBA::Object * _duplicate() = 0;
  virtual JArray< ::org::omg::CORBA::DomainManager * > * _get_domain_managers() = 0;
  virtual ::org::omg::CORBA::Object * _get_interface_def() = 0;
  virtual ::org::omg::CORBA::Policy * _get_policy(jint) = 0;
  virtual jint _hash(jint) = 0;
  virtual jboolean _is_a(::java::lang::String *) = 0;
  virtual jboolean _is_equivalent(::org::omg::CORBA::Object *) = 0;
  virtual jboolean _non_existent() = 0;
  virtual void _release() = 0;
  virtual ::org::omg::CORBA::Request * _request(::java::lang::String *) = 0;
  virtual ::org::omg::CORBA::Object * _set_policy_override(JArray< ::org::omg::CORBA::Policy * > *, ::org::omg::CORBA::SetOverrideType *) = 0;
  static ::java::lang::Class class$;
} __attribute__ ((java_interface));

#endif // __org_omg_CORBA_DynValue__


text:
<?php
namespace Whitecap\IOC\Classes;

class Argument
{
    public $argument;

    public function __construct($argument)
    {
        $this->argument = $argument;
    }
}


text:
using System.Runtime.Serialization;
#endif

namespace System.IO
{
    /// <summary>
    /// The FileFormatException class is thrown when an input file or a data stream that is supposed to conform
    /// to a certain file format specification is malformed.
    /// </summary>
#if FEATURE_SERIALIZATION
    [Serializable]
    [System.Runtime.CompilerServices.TypeForwardedFrom("WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
    public class FileFormatException : FormatException
    {
        /// <summary>
        /// Creates a new instance of FileFormatException class.
        /// This constructor initializes the Message property of the new instance to a system-supplied message that describes the error,
        /// such as "An input file or a data stream does not conform to the expected file format specification."
        /// This message takes into account the current system culture.
        /// </summary>
        public FileFormatException()
            : base(SR.FileFormatException)
        { }

        /// <summary>
        /// Creates a new instance of FileFormatException class.
        /// This constructor initializes the Message property of the new instance with a specified error message.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        public FileFormatException(string message)
            : base(message)
        { }

        /// <summary>
        /// Creates a new instance of FileFormatException class.
        /// This constructor initializes the Message property of the new instance with a specified error message.
        /// The InnerException property is initialized using the innerException parameter.
        /// </summary>
        /// <param name="message">The error message that explains the reason for the exception.</param>
        /// <param name="innerException">The exception that is the cause of the current exception.</param>
        public FileFormatException(string message, Exception innerException)
            : base(message, innerException)
        { }

        /// <summary>
        /// Creates a new instance of FileFormatException class.
        /// This constructor initializes the Message property of the new instance to a system-supplied message that describes the error and includes the file name,
        /// such as "The file 'sourceUri' does not conform to the expected file format specification."
        /// This message takes into account the current system culture.
        /// The SourceUri property is initialized using the sourceUri parameter.
        /// </summary>
        /// <param name="sourceUri">The Uri of a file that caused this error.</param>
        public FileFormatException(Uri sourceUri)
            : base(
                sourceUri == null
                ? SR.FileFormatException
                : SR.Format(SR.FileFormatExceptionWithFileName, sourceUri))
        {
            _sourceUri = sourceUri;
        }

        /// <summary>
        /// Creates a new instance of FileFormatException class.
        /// This constructor initializes the Message property of the new instance using the message parameter.
        /// The content of message is intended to be understood by humans.
        /// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
        /// The SourceUri property is initialized using the sourceUri parameter.
        /// </summary>
        /// <param name="sourceUri">The Uri of a file that caused this error.</param>
        /// <param name="message">The message that describes the error.</param>
        public FileFormatException(Uri sourceUri, string message)
            : base(message)
        {
            _sourceUri = sourceUri;
        }

        /// <summary>
        /// Creates a new instance of FileFormatException class.
        /// This constructor initializes the Message property of the new instance to a system-supplied message that describes the error and includes the file name,
        /// such as "The file 'sourceUri' does not conform to the expected file format specification."
        /// This message takes into account the current system culture.
        /// The SourceUri property is initialized using the sourceUri parameter.
        /// The InnerException property is initialized using the innerException parameter.
        /// </summary>
        /// <param name="sourceUri">The Uri of a file that caused this error.</param>
        /// <param name="innerException">The exception that is the cause of the current exception.</param>
        public FileFormatException(Uri sourceUri, Exception innerException)
            : base(
                sourceUri == null
                ? SR.FileFormatException
                : SR.Format(SR.FileFormatExceptionWithFileName, sourceUri),
                innerException)
        {
            _sourceUri = sourceUri;
        }

        /// <summary>
        /// Creates a new instance of FileFormatException class.
        /// This constructor initializes the Message property of the new instance using the message parameter.
        /// The content of message is intended to be understood by humans.
        /// The caller of this constructor is required to ensure that this string has been localized for the current system culture.
        /// The SourceUri property is initialized using the sourceUri parameter.
        /// The InnerException property is initialized using the innerException parameter.
        /// </summary>
        /// <param name="sourceUri">The Uri of a file that caused this error.</param>
        /// <param name="message">The message that describes the error.</param>
        /// <param name="innerException">The exception that is the cause of the current exception.</param>
        public FileFormatException(Uri sourceUri, string message, Exception innerException)
            : base(message, innerException)
        {
            _sourceUri = sourceUri;
        }

#if FEATURE_SERIALIZATION
        protected FileFormatException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            string sourceUriString = info.GetString("SourceUri");
            if (sourceUriString != null)
                _sourceUri = new Uri(sourceUriString, UriKind.RelativeOrAbsolute);
        }

        /// <summary>
        /// Sets the SerializationInfo object with the file name and additional exception information.
        /// </summary>
        /// <param name="info">The object that holds the serialized object data.</param>
        /// <param name="context">The contextual information about the source or destination.</param>
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            base.GetObjectData(info, context);
            info.AddValue("SourceUri", SourceUri?.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), typeof(string));
        }
#endif

        /// <summary>
        /// Returns the name of a file that caused this exception. This property may be equal to an empty string
        /// if obtaining the file path that caused the error was not possible.
        /// </summary>
        /// <value>The file name.</value>
        /// <SecurityNote>
        ///     Critical : Calls critical Demand for path discovery
        ///     Safe     : Path which could be leaked by an exception is already known to caller since it is supplied by the caller
        /// </SecurityNote>
        public Uri SourceUri
        {
            get
            {
                return _sourceUri;
            }
        }

        private readonly Uri _sourceUri;
    }
}


text:
CHANGELOG

## Version 1.2.1

* fix error on authentication with empty password (thanks @cmer)

## Version 1.2.0
* exit with non-zero code on unsuccessful upload but successful http call

## Version 1.1.0

* Improved support for basic auth
* :use_config option now adds all values as defaults, which can still be overwritten by passing the option directly to GeminaboxRelease.patch

## Version 1.0.0

Stable release