text:
package com.vladmihalcea.book.hpjp.hibernate.query.recursive.complex;

import com.vladmihalcea.book.hpjp.hibernate.query.recursive.PostCommentScore;
import org.hibernate.query.NativeQuery;
import org.hibernate.transform.ResultTransformer;
import org.junit.Ignore;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

/**
 * @author Vlad Mihalcea
 */
@Ignore
public class PostCommentScoreRecursiveCTESelectPerformanceTest extends AbstractPostCommentScorePerformanceTest {

    public PostCommentScoreRecursiveCTESelectPerformanceTest(int postCount, int commentCount) {
        super(postCount, commentCount);
    }

    @Override
    protected List<PostCommentScore> postCommentScores(Long postId, int rank) {
        return doInJPA(entityManager -> {
            long startNanos = System.nanoTime();
            List<PostCommentScore> postCommentScores = entityManager.createNativeQuery(
                "SELECT id, parent_id, root_id, review, created_on, score " +
                "FROM ( " +
                "    SELECT " +
                "        id, parent_id, root_id, review, created_on, score, " +
                "        dense_rank() OVER (ORDER BY total_score DESC) rank " +
                "    FROM ( " +
                "       SELECT " +
                "           id, parent_id, root_id, review, created_on, score, " +
                "           SUM(score) OVER (PARTITION BY root_id) total_score " +
                "       FROM (" +
                "          WITH RECURSIVE post_comment_score(id, root_id, post_id, " +
                "              parent_id, review, created_on, score) AS (" +
                "              SELECT id, id, post_id, parent_id, review, created_on, " +
                "                COALESCE (( SELECT SUM (CASE WHEN up = true THEN 1 ELSE - 1 END ) FROM post_comment_vote WHERE comment_id = id ), 0)  score " +
                "              FROM post_comment " +
                "              WHERE post_id = :postId AND parent_id IS NULL " +
                "              UNION ALL " +
                "              SELECT pc.id, pcs.root_id, pc.post_id, pc.parent_id, " +
                "                  pc.review, pc.created_on, " +
                "                  COALESCE(( SELECT SUM (CASE WHEN up = true THEN 1 ELSE - 1 END ) FROM post_comment_vote WHERE comment_id = pc.id ), 0)  score " +
                "              FROM post_comment pc " +
                "              INNER JOIN post_comment_score pcs ON pc.parent_id = pcs.id " +
                "          ) " +
                "          SELECT id, parent_id, root_id, review, created_on, score" +
                "          FROM post_comment_score" +
                "       ) score_by_comment " +
                "    ) score_total " +
                "    ORDER BY total_score DESC, created_on ASC " +
                ") total_score_group  " +
                "WHERE rank <= :rank", "PostCommentScore")
            .unwrap(NativeQuery.class)
            .setParameter("postId", postId).setParameter("rank", rank)
            .setResultTransformer(new PostCommentScoreResultTransformer())
            .list();
            timer.update(System.nanoTime() - startNanos, TimeUnit.NANOSECONDS);
            return postCommentScores;
        });
    }

    public static class PostCommentScoreResultTransformer implements ResultTransformer {

        private Map<Long, PostCommentScore> postCommentScoreMap = new HashMap<>();

        private List<PostCommentScore> roots = new ArrayList<>();

        @Override
        public Object transformTuple(Object[] tuple, String[] aliases) {
            PostCommentScore postCommentScore = (PostCommentScore) tuple[0];
            if(postCommentScore.getParentId() == null) {
                roots.add(postCommentScore);
            } else {
                PostCommentScore parent = postCommentScoreMap.get(postCommentScore.getParentId());
                if(parent != null) {
                    parent.addChild(postCommentScore);
                }
            }
            postCommentScoreMap.putIfAbsent(postCommentScore.getId(), postCommentScore);
            return postCommentScore;
        }

        @Override
        public List transformList(List collection) {
            return roots;
        }
    }
}


text:
package org.zstack.header.rest;

import org.springframework.http.HttpEntity;
import org.zstack.header.core.AbstractCompletion;
import org.zstack.header.core.AsyncBackup;
import org.zstack.header.errorcode.ErrorCode;

public abstract class AsyncRESTCallback extends AbstractCompletion {
    public AsyncRESTCallback() {
    }

    public AsyncRESTCallback(AsyncBackup...backup) {
        super(backup);
    }

    public abstract void fail(ErrorCode err);

    public abstract void success(HttpEntity<String> responseEntity);
}

redpajama_set_name: RedPajamaGithub


text:
Before('@javascript') do
  @javascript = true
end


text:
validateQuestionnaire = {

    // Define parameters
    route: null,
    responses: null,
    idQuestionTirage: null,
    estMarquee: null,
    routeResultat: null,

    init: function() {
        $.ajax({
            url: this.route,
            method: "POST",
            data: {
                responses: this.responses,
                idQuestionTirage: this.idQuestionTirage,
                estMarquee: this.estMarquee
            }
        }).done(function(data) {

        }).fail(function(msg) {
            alert('Une erreur innatendue est survenue, veuillez prévenir le formateur');
        });
    }

};


text:
 Tattva

 Analyze logs better !

Log In

Sign Up

              <input type="text" ng-model="uName"
              class="form-control"
              placeholder="User Name" required/>

              <input type="password" ng-model="pwd"
              class="form-control"
              placeholder="Enter Password" required />

            Log In

{{loginMessage}}

            <form name="sign-up-form">

              <input type="text" id="fname" ng-model="firstName" placeholder="First Name" class="form-control" required />

              <input type="text" id="lname" ng-model="lastName" placeholder="Last Name" class="form-control" required />

              <input type="text" ng-model="username" placeholder="User Name" class="form-control" required />

              <input type='email' name='email' placeholder="Example@gmail.com" class="form-control" ng-model="email" required>

              <input type="password" ng-model="password" placeholder="Password" class="form-control" required />

              <input type="password" ng-model="confirmPassword"placeholder="Confirm Password" class="form-control" required />

              Create Account

{{checkData}}

             </form>


text:
NAMESPACE_MICROSOFT_XBOX_SERVICES_PRIVACY_BEGIN

/// <summary>
/// Provides an endpoint for managing privacy settings.
/// </summary>
public ref class PrivacyService sealed
{
public:

    /// <summary>
    /// Get the list of Xbox Live Ids the calling user should avoid during multiplayer matchmaking.
    /// </summary>
    /// <returns>A collection of XboxUserIds that correspond to the calling user's avoid list.</returns>
    /// <remarks>
    /// Returns an IAsyncOperation<TResult> object that represents the state of the asynchronous operation.
    ///
    /// Calls V1 GET /users/xuid({xuid})/people/avoid</remarks>
    Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Platform::String^>^>^ GetAvoidListAsync();

    /// <summary>
    /// Check a single permission with a single target user.
    /// </summary>
    /// <param name="permissionId">The ID of the permission to check.
    /// See Microsoft::Xbox::Services::Privacy::PermissionIdConstants for the latest options.</param>
    /// <param name="targetXboxUserId">The target user's xbox Live ID for validation</param>
    /// <returns>The permission check result against a single user.</returns>
    /// <remarks>
    /// Returns an IAsyncOperation<TResult> object that represents the state of the asynchronous operation.
    ///
    /// Calls V1 GET /users/{requestorId}/permission/validate
    /// </remarks>
    Windows::Foundation::IAsyncOperation<PermissionCheckResult^>^ CheckPermissionWithTargetUserAsync(
        _In_ Platform::String^ permissionId,
        _In_ Platform::String^ targetXboxUserId
        );

    /// <summary>
    /// Check multiple permissions with multiple target users.
    /// </summary>
    /// <param name="permissionIds">The collection of IDs of the permissions to check.
    /// See Microsoft::Xbox::Services::Privacy::PermissionIdConstants for the latest options.</param>
    /// <param name="targetXboxUserIds">The collection of target Xbox user IDs to check permissions against.</param>
    /// <returns>A multiple permission check result which contains a collection of permission information.</returns>
    /// <remarks>
    /// Returns an IAsyncOperation<TResult> object that represents the state of the asynchronous operation.
    ///
    /// Calls V1 POST /users/{requestorId}/permission/validate
    /// </remarks>
    Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<MultiplePermissionsCheckResult^>^>^ CheckMultiplePermissionsWithMultipleTargetUsersAsync(
        _In_ Windows::Foundation::Collections::IVectorView<Platform::String^>^ permissionIds,
        _In_ Windows::Foundation::Collections::IVectorView<Platform::String^>^ targetXboxUserIds
        );

    /// <summary>
    /// Get the list of Xbox Live Ids that the calling user should not hear (mute) during multiplayer matchmaking.
    /// </summary>
    /// <returns>The collection of Xbox user IDs that represent the mute list for a user.</returns>
    /// <remarks>
    /// Returns an IAsyncOperation<TResult> object that represents the state of the asynchronous operation.
    ///
    /// Calls V1 GET /users/xuid({xuid})/people/mute
    /// </remarks>
    Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Platform::String^>^>^ GetMuteListAsync();

internal:
    PrivacyService(
        _In_ xbox::services::privacy::privacy_service cppObj
        );

private:
    xbox::services::privacy::privacy_service m_cppObj;

};

NAMESPACE_MICROSOFT_XBOX_SERVICES_PRIVACY_END


text:
Partial Class controls_includedScripts
    Inherits System.Web.UI.UserControl

End Class


text:
<script>
$(function(){

	$('.addFilter').on('click',function(e){
		e.preventDefault();
		var prnt = $(this).parent();
		var kloning = prnt.clone(true,true);
		var filterForm = $(prnt).parent();

		$('.filterForm').append(kloning);
		$(this).remove();
	});
})

</script>


text:
var gamejs = require('gamejs');

module.exports = (function () {

    function Map(url, canvasSize) {
        this.map = new gamejs.tiledmap.Map(url);
        this.mapView = new gamejs.tiledmap.MapView(this.map);
        this.isMoving = {
            top: true,
            left: true
        };
        this.overHeight = this.mapView.viewRect.height - canvasSize[1];
        this.overWidth = this.mapView.viewRect.width - canvasSize[0];
    }

    Map.prototype.move = function (controls) {
        var top = Math.min(this.mapView.viewRect.top + controls.position.top, this.overHeight),
            left = Math.min(this.mapView.viewRect.left + controls.position.left, this.overWidth);

        this.mapView.viewRect.top = Math.max(0, top);
        this.mapView.viewRect.left = Math.max(0, left);

        return this;
    };

    Map.prototype.draw = function (display) {
        this.mapView.draw(display, [0, 0]);
        this.isMoving = {
            top: true,
            left: true
        };

        if (!this.mapView.viewRect.top || this.mapView.viewRect.top >= this.overHeight) {
            this.isMoving.top = false;
        }

        if (!this.mapView.viewRect.left || this.mapView.viewRect.left >= this.overWidth) {
            this.isMoving.left = false;
        }

        return this.isMoving;
    };

    return Map;
})();


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Baustelle">
    <meta name="author" content="David Urscheler">

    <link rel="shortcut icon" type="image/png" href="/images/favicon.png"/>
    <title>Neubau Reservoir Oberseen</title>

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

    <link href="/css/modern-business.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet">
   <link href="/lib/ekko-lightbox.min.css" rel="stylesheet">

    <link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

Home

Baustellen

Neubau Reservoir Oberseen

Neubau Reservoir Oberseen

Projektbeschrieb

Die hydraulischen Berechnungen für den Generellen Wasserversorgungsplan 2010 von Winterthur ergaben für das Reservoir Oberseen einen nutzbaren Inhalt von ca. 2000 m3 und eine Überlaufhöhe von 566.03 m.ü.M.

Stadtwerk Winterthur evaluierte mögliche Reservoirstandorte in der Nähe des Versorgungsgebiets Oberseen und begann Anfang 2014 mit dem Vorprojekt des Reservoirs. Der gewählte Standort befindet sich oberhalb von Oberseen an der Köhlbergstrasse. Das Reservoir wird mit zwei Kammern von je 1000 m3 Inhalt erstellt.

Es werden höchste Anforderungen an die Betonqualität gestellt. Das Reservoir wird in Sichtbauweise mit Verwendung von Schalungsbahnen erstellt.

Bauherr: Stadtwerk Winterthur

Projektleitung: Gujer AG, Rümlang

Ingenieur: Bona Fischer, Winterthur

Unsere Verantwortlichen

Bauführer: Harry Kern

Polier: Remo Vroomen

Baustellen-Bilder


text:
module.exports = function() {
  console.log('I am second level js');
};


text:
require 'minitest_helper'

describe Rasti::Web::Request do

  it 'Route params' do
    env = Rack::MockRequest.env_for '/10/20'
    env[Rasti::Web::ROUTE_PARAMS] = {'lat' => '10', 'lon' => '20'}

    request = Rasti::Web::Request.new env

    request.params[:lat].must_equal '10'
    request.params['lon'].must_equal '20'
  end

  it 'Query string params' do
    env = Rack::MockRequest.env_for '/?lat=10&lon=20'

    request = Rasti::Web::Request.new env

    request.params[:lat].must_equal '10'
    request.params['lon'].must_equal '20'
  end

  it 'Form params' do
    env = Rack::MockRequest.env_for '/', method: 'POST', params: 'lat=10&lon=20'

    request = Rasti::Web::Request.new env

    request.params[:lat].must_equal '10'
    request.params['lon'].must_equal '20'
  end

  describe 'Json body params' do

    it 'Valid content type' do
      env = Rack::MockRequest.env_for '/', input: '{"lat": 10, "lon": 20}', 'CONTENT_TYPE' => 'application/json'

      request = Rasti::Web::Request.new env

      request.json?.must_equal true
      request.params[:lat].must_equal 10
      request.params['lon'].must_equal 20
    end

    it 'Invalid content type' do
      env = Rack::MockRequest.env_for '/', input: '{"lat": 10, "lon": 20}', 'CONTENT_TYPE' => 'other/type'

      request = Rasti::Web::Request.new env

      request.json?.must_equal false
      request.params[:lat].must_be_nil
      request.params['lon'].must_be_nil
    end

    it 'Undefined content type' do
      env = Rack::MockRequest.env_for '/', input: '{"lat": 10, "lon": 20}'

      request = Rasti::Web::Request.new env

      request.json?.must_equal false
      request.params[:lat].must_be_nil
      request.params['lon'].must_be_nil
    end

  end

end


text:
require File.expand_path(File.dirname(__FILE__) + '/helper')

# Books Total Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::TotalSearch,{:booksGenreId => "000"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books Book Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::BookSearch,{:booksGenreId => "001004008"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books CD Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::CdSearch,{:booksGenreId => "002"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books DVD Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::DvdSearch,{:booksGenreId => "003"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books Foreign Book Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::ForeignBookSearch,{:booksGenreId => "005407"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books Magazine Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::MagazineSearch,{:booksGenreId => "007604001"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books Game Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::GameSearch,{:booksGenreId => "006"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books Software Search API (version:2013-05-22)
res = Rakuten::Api.get(Rakuten::Api::Books::SoftwareSearch,{:booksGenreId => "004"})
res["Items"].each do |v|
  p v["Item"]["title"]
end

# Books Genre Search API (version:2012-11-28)
res = Rakuten::Api.get(Rakuten::Api::Books::GenreSearch,{:booksGenreId => "000"})
res["children"].each do |v|
  p v["child"]["booksGenreName"]
end


text:
import re

import requests
from bs4 import BeautifulSoup

from appium_selector.CapGenerators.GridMobile import GridMobile
from appium_selector.CapGenerators.GridMobileWeb import GridMobileWeb
from appium_selector.CapGenerators.GridWeb import GridWeb
from appium_selector.Helpers.Config import GetConfig

class GridConnector(object):

    webNodes = []
    mobileNodes = []

    browsers = ['chrome', 'firefox', 'ie', 'safari', 'edge']
    mobilePlatforms = ['ANDROID', 'MAC']

    def __init__(self):
        for node in self._getNodes():
            self._parseNodes(node)

    def _getNodes(self):
        try:
            page = requests.get(GetConfig('GRID_URL') + '/grid/console')
            soup = BeautifulSoup(page.text, 'html.parser')
            resultsWeb = soup.select('img[title*=WebDriver]')
            resultsMobile = soup.select('a[title*=platform]')
            return resultsWeb + resultsMobile
        except:
            return []

    def _parseNodes(self, node):
        if self._propertyFromTitle('platform', node['title']):
            if self._propertyFromTitle('platform', node['title']) not in self.mobilePlatforms:
                self.webNodes.append(GridWeb(node['title']))
            elif self._propertyFromTitle('browserName', node['title']) in self.browsers:
                self.webNodes.append(GridMobileWeb(node['title']))
            else:
                self.mobileNodes.append(GridMobile(node['title']))

    def _propertyFromTitle(self, property, title):
        try:
            return re.search(property + '=.*?[}|,]', title).group().split('=')[1].replace('}','').replace(',','')
        except:
            return False


text:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^', include('goal.urls')),
    url('', include('social.apps.django_app.urls', namespace='social')),
]

urlpatterns += staticfiles_urlpatterns()


text:
Bower Install

``` php
<?php
// simple execution
$this->taskBowerInstall()->run();

// prefer dist with custom path
$this->taskBowerInstall('path/to/my/bower')
     ->noDev()
     ->run();
?>
```

* `allowRoot()`  adds `allow-root` option to bower
* `forceLatest()`  adds `force-latest` option to bower
* `noDev()`  adds `production` option to bower
* `offline()`  adds `offline` option to bower
* `addToCollection($collection, $taskName = null, $rollbackTask = null)`
* `addAsRollback($collection)`
* `addAsCompletion($collection)`
* `addToCollectionAndIgnoreErrors($collection, $taskName = null)`
* `dir($dir)`  changes working directory of command
* `printed($arg)`  Should command output be printed
* `arg($arg)`  Pass argument to executable
* `args($args)`  Pass methods parameters as arguments to executable
* `option($option, $value = null)`  Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter.
* `optionList($option, $value = null)`  Pass multiple options to executable. Value can be a string or array.

## Update

Bower Update

``` php
<?php
// simple execution
$this->taskBowerUpdate->run();

// prefer dist with custom path
$this->taskBowerUpdate('path/to/my/bower')
     ->noDev()
     ->run();
?>
```

* `allowRoot()`  adds `allow-root` option to bower
* `forceLatest()`  adds `force-latest` option to bower
* `noDev()`  adds `production` option to bower
* `offline()`  adds `offline` option to bower
* `addToCollection($collection, $taskName = null, $rollbackTask = null)`
* `addAsRollback($collection)`
* `addAsCompletion($collection)`
* `addToCollectionAndIgnoreErrors($collection, $taskName = null)`
* `dir($dir)`  changes working directory of command
* `printed($arg)`  Should command output be printed
* `arg($arg)`  Pass argument to executable
* `args($args)`  Pass methods parameters as arguments to executable
* `option($option, $value = null)`  Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter.
* `optionList($option, $value = null)`  Pass multiple options to executable. Value can be a string or array.


text:
/**
 */
package COSEM.COSEMObjects;

import COSEM.InterfaceClasses.Data;

/**
 *
 * A representation of the model object 'Billing Period Values'.
 *
 *
 *

 * The following features are supported:
 *

 *

 *
{@link COSEM.COSEMObjects.BillingPeriodValues#getBillingPeriodCounter Billing Period Counter}

 *
{@link COSEM.COSEMObjects.BillingPeriodValues#getNumberAvailableBillingPeriods Number Available Billing Periods}

 *
{@link COSEM.COSEMObjects.BillingPeriodValues#getTimestampRecentBillingPeriod Timestamp Recent Billing Period}

 *

 *
 * @see COSEM.COSEMObjects.COSEMObjectsPackage#getBillingPeriodValues()
 * @model
 * @generated
 */
public interface BillingPeriodValues extends Data {
	/**
	 * Returns the value of the 'Billing Period Counter' attribute.
	 *
	 *

	 * If the meaning of the 'Billing Period Counter' attribute isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @return the value of the 'Billing Period Counter' attribute.
	 * @see #setBillingPeriodCounter(int)
	 * @see COSEM.COSEMObjects.COSEMObjectsPackage#getBillingPeriodValues_BillingPeriodCounter()
	 * @model
	 * @generated
	 */
	int getBillingPeriodCounter();

	/**
	 * Sets the value of the '{@link COSEM.COSEMObjects.BillingPeriodValues#getBillingPeriodCounter Billing Period Counter}' attribute.
	 *
	 *
	 * @param value the new value of the 'Billing Period Counter' attribute.
	 * @see #getBillingPeriodCounter()
	 * @generated
	 */
	void setBillingPeriodCounter(int value);

	/**
	 * Returns the value of the 'Number Available Billing Periods' attribute.
	 *
	 *

	 * If the meaning of the 'Number Available Billing Periods' attribute isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @return the value of the 'Number Available Billing Periods' attribute.
	 * @see #setNumberAvailableBillingPeriods(int)
	 * @see COSEM.COSEMObjects.COSEMObjectsPackage#getBillingPeriodValues_NumberAvailableBillingPeriods()
	 * @model
	 * @generated
	 */
	int getNumberAvailableBillingPeriods();

	/**
	 * Sets the value of the '{@link COSEM.COSEMObjects.BillingPeriodValues#getNumberAvailableBillingPeriods Number Available Billing Periods}' attribute.
	 *
	 *
	 * @param value the new value of the 'Number Available Billing Periods' attribute.
	 * @see #getNumberAvailableBillingPeriods()
	 * @generated
	 */
	void setNumberAvailableBillingPeriods(int value);

	/**
	 * Returns the value of the 'Timestamp Recent Billing Period' attribute.
	 *
	 *

	 * If the meaning of the 'Timestamp Recent Billing Period' attribute isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @return the value of the 'Timestamp Recent Billing Period' attribute.
	 * @see #setTimestampRecentBillingPeriod(String)
	 * @see COSEM.COSEMObjects.COSEMObjectsPackage#getBillingPeriodValues_TimestampRecentBillingPeriod()
	 * @model
	 * @generated
	 */
	String getTimestampRecentBillingPeriod();

	/**
	 * Sets the value of the '{@link COSEM.COSEMObjects.BillingPeriodValues#getTimestampRecentBillingPeriod Timestamp Recent Billing Period}' attribute.
	 *
	 *
	 * @param value the new value of the 'Timestamp Recent Billing Period' attribute.
	 * @see #getTimestampRecentBillingPeriod()
	 * @generated
	 */
	void setTimestampRecentBillingPeriod(String value);

} // BillingPeriodValues


text:
Définition des différentes catégories d'essai – Principes d'organisation

      CATTAN - Michel Ancien responsable de la définition et de la maîtrise des systèmes qualité au sein de la Direction des réalisations nucléaires de Framatome. Expert en organisation et gestion de la documentation et de la configuration technique. Expert en matière d'analyse et de maîtrise des processus de l'entreprise.

1
Objet – Domaine couvert

L'objet de cette note est de présenter une vue synthétique de l'ensemble des activités de la direction des Chantiers relatives aux essais sur site avant et après transfert de propriété des fournitures [Nom de l'organisme].

Cette présentation décrit les différentes catégories d'essais et les principes d'organisation utilisés pour les mener à bien.

Ne font pas partie de la présente note les essais sur site entrepris par [Nom de l'organisme] et pour lesquels la direction des Chantiers n'intervient pas ; c'est le cas de certains essais de requalification.

2
Définition des catégories d'essais

On distingue trois catégories principales d'essais :

essais standards ;

essais hors standards ;

essais occasionnels.

2.1
Essais standards

Ce sont les essais effectués normalement dans le cadre du programme de démarrage de l'installation et dont l'enchaînement permet d'assurer la mise en service des équipements et systèmes fonctionnels de l'installation, de vérifier leurs performances et d'en garantir une exploitation sûre.

Ces essais sont subdivisés en essais pré-opérationnels et en essais de démarrage.

Les essais pré-opérationnels comprennent :

les essais préliminaires ou de phase 1 ;

les essais d'ensemble ou de phase 2, eux-mêmes subdivisés, le cas échéant, en :

essais à froid (phase 2.1),

essais à chaud (phase 2.3).

les essais de démarrage forment la phase 3.

Dans le cadre d'un programme comportant la mise en service de plusieurs installations identiques, certains essais standards, destinés à vérifier les hypothèses d'étude, peuvent n'être entrepris que sur la première installation ; ces essais sont dénommés « essais tête de série ».

2.2
Essais hors standards

Les essais hors standards sont les essais non inclus dans le programme de démarrage de l'installation. Ils comprennent les essais particuliers et les essais spéciaux.

2.2.1
Essais particuliers

Ce sont des essais destinés à résoudre des problèmes d'étude ou de mise au point de matériel survenant en cours de démarrage ou non encore réglés à ce moment-là.

Dans la mesure où leurs résultats sont positifs, ces essais ne sont exécutés que sur une installation ou, exceptionnellement, sur un nombre restreint d'installations d'une même série ; au cas où il apparaîtrait nécessaire de les répéter systématiquement sur toutes les installations, ces essais seraient intégrés dans le programme des essais standards, perdant alors leur caractère particulier.

2.2.2
Essais spéciaux

Ce sont des essais non prévus dans le cadre du programme contractuel d'essais (essais standards et essais particuliers) et entrepris, soit :

dans le but de recherche et développement des produits actuels,

dans le but de qualifier des solutions techniques nouvelles pour les installations futures.

2.2.3
Essais occasionnels

Ce sont des essais simples, non programmés et généralement entrepris à l'initiative du site dans divers buts, par exemple pour :

diagnostiquer la cause d'un événement anormal ;

s'assurer de l'état de certains équipements ou circuits avant ou après une intervention ;

parfaire la mise au point de l'installation dans le cadre du programme de principe d'essai (PPE).

3
Règles générales de préparation, d'exécution et de dépouillement des essais

3.1
Règles communes

Pour toutes ces catégories d'essais, l'unité Essais et, par délégation, l'unité Essais/démarrage sur site, a la responsabilité de veiller au respect des règles en vigueur pour la préparation, l'exécution et le dépouillement des essais effectués sur site. Ces règles sont rappelées succinctement ci-après et sont détaillées dans les notes particulières.

Les chefs de chantier sont en droit de refuser l'exécution des essais qui seraient engagés en contradiction avec ces règles.

3.2
Essais standards

Suivant les termes de sa commande, le fournisseur peut être responsable de tout ou partie des activités décrites ci-dessous.

3.2.1
Préparation

Ces essais font l'objet :

d'un « programme de principe d'essai » établi par fonction (PPE) ;

d'une « procédure d'essai » (PE).

Ces documents sont établis par la direction des Chantiers (ou en sous-traitance par un constructeur).

Dans tous les cas, l'unité Essais garantit :

la cohérence du dossier d'essai ;

sa conformité avec les spécifications contractuelles ;

la faisabilité des essais tant au point de vue des manœuvres de conduite que des moyens matériels spéciaux ;

l'unité essais veille particulièrement à ce que les dispositifs provisoires et notamment l'instrumentation ne présentent pas de danger pour le reste de l'installation ;

l'élaboration des programmes de mise en service et de démarrage.

Les documents (PE et PPE) sont rédigés en accord avec les « Règles de base pour la rédaction des PPE et PEE ».

Cette note précise la nature et la forme des documents d'essais ainsi que les circuits de mise au point et d'approbation de ces documents.

3.2.2
Exécution

Tous les essais effectués sur le site dans le cadre du démarrage d'une installation sont exécutés conformément aux règles précisées dans les procédures « Organisation mise en place au cours des essais des différentes phases » et « états atteints par les installations au cours des essais ».

Les personnels éventuellement détachés sur les sites par le siège à l'occasion de certains essais agissent sous la directive du responsable de l'unité Essais/Démarrage.

S'ils travaillent en tant que Chargés d'essais, ils sont responsables devant le chef de chantier [Nom de l'organisme] :

de la préparation des essais sur le site ;

de leur exécution ;

de leur dépouillement local.

Ils assurent en outre une assistance technique aux ingénieurs chargés d'essais (ICE) pour tous les problèmes relevant de leur compétence technique.

3.2.3
Traitement des résultats

Les procédures de la direction des chantiers :

gestion sur site :

des procédures de conduite,

des procédures d'essais,

validation des résultats,

documents ou dossiers de l'unité essais/démarrage sur site.

fixent les règles qui président à l'élaboration des comptes rendus d'essais : il importe de remarquer que même si le dépouillement de l'essai n'est pas effectué par le chantier, le compte rendu ne peut en être officiellement diffusé et notamment vers le client qu'avec l'approbation du chantier où il a été exécuté, approbation donnée par le Responsable de l'unité Essais/Démarrage.

Les comptes rendus émis par les personnels détachés des « unités siège » et non approuvés par le responsable de l'unité Essais/Démarrage n'ont qu'un caractère provisoire et informatif vis-à-vis de leur hiérarchie et ne doivent pas être diffusés officiellement à l'extérieur de [Nom de l'organisme].

Par ailleurs, le concours des « unités siège » peut être demandé par le l'unité Essais pour présenter les résultats au client.

3.3
Essais hors standards

Pour tous les essais hors standards (essais particuliers ou essais spéciaux), les modalités sont les suivantes.

3.3.1
Préparation

Ces essais peuvent être demandés par le client ou une cellule interne à [Nom de l'organisme]. Les modalités pratiques d'exécution sont décidées en accord entre le projet (ou le chargé d'affaires), la (ou les) unité(s) [Nom de l'organisme] concernée(s) et l'unité Essais.

La demande d'essai hors standards ayant été retenue, l'unité Essais et l'unité ayant réclamé l'essai effectuent avec l'aide d'unités compétentes une analyse permettant :

la définition complémentaire des principes de l'essai,

la définition des modalités de réalisation,

l'évaluation des incidences de la prise en compte dans le projet (coûts et délais) en liaison avec la direction des Chantier.

Dans le cas où l'essai a une incidence sur le matériel, l'unité ayant réclamé l'essai ouvre une fiche de modification.

À partir de l'accord du chef de Projet et du chef de Chantier ou de l'ingénieur d'affaires, puis du client sur l'intégration des essais sur la ou les installations concernées, l'unité Essais établit un programme d'essai, puis établit ou fait établir un dossier d'essai. Le rôle de l'unité Essais dans la préparation des essais hors standards est de garantir :

la cohérence des documents émis dans le cadre de cet essai avec le reste du « dossier essais »,

la conformité de cet essai avec les Spécifications Contractuelles,

la faisabilité de cet essai tant du point de vue des manœuvres de conduite que des moyens matériels spéciaux et notamment de l'instrumentation provisoire.

son intégration dans les programmes de démarrage ou d'arrêt de l'installation.

Les procédures d'essai sont établies suivant les mêmes règles que celles des essais standards et transmises au client pour approbation ou information suivant le cas.

3.3.2
Exécution

Pour exécuter de tels essais, les modalités sont celles du paragraphe « exécution ».

3.3.3
Dépouillement des résultats

Le dépouillement de l'essai est assuré soit par l'unité Essais, soit par la cellule initiatrice.

L'unité en charge de ce dépouillement est désignée lors de la phase de préparation.

Pour ces essais, les résultats et conclusions sont transmis à l'unité Essais et au site pour information.

3.4
Essais occasionnels

Ces essais effectués à l'initiative du site font l'objet d'une procédure simplifiée rédigée sur site sous la responsabilité du chef de l'unité Essais/Démarrage, responsabilité qu'il peut déléguer au cas par cas responsable de l'installation, voire dans des cas simples au Chargé de la fonction concernée.

Aucun accord du siège ni du client n'est formellement requis.

Le chef de l'unité Essai/Démarrage reprend à son compte les responsabilités qui sont normalement celles de l'unité Essais et, en particulier, la faisabilité de l'essai tant au point de vue des moyens de conduite que des moyens matériels spéciaux et son intégration dans le programme.

Après essai, la procédure et les résultats sont archivés dans le dossier de fonction.

À l'initiative du responsable d'essai ou du responsable de l'installation, les résultats peuvent faire l'objet d'un compte rendu particulier baptisé rapport occasionnel et archivé comme tel. Ceux-ci permettent d'étayer :

un bulletin technique,

une demande de modification,

une fiche d'événement anormal.


text:
<?xml version="1.0"?>
<openerp>
    <data>
        ######################## JOB OPPORTUNITIES (menu) ###########################
         <record model="ir.actions.act_window" id="crm_case_categ0_act_job">
            <field name="name">Applications</field>
            <field name="res_model">hr.applicant</field>
            <field name="view_mode">kanban,tree,form,graph,calendar</field>
            <field name="view_id" eval="False"/>
            <field name="search_view_id" ref="view_crm_case_jobs_filter"/>
            <field name="context">{'empty_list_help_model': 'hr.job'}</field>
            <field name="help" type="html">

                Odoo helps you track applicants in the recruitment
                process and follow up all operations: meetings, interviews, etc.

                Applicants and their attached CV are created automatically when an email is sent.
                If you install the document management modules, all resumes are indexed automatically,
                so that you can easily search through their content.

            </field>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_kanban_view_act_job">
            <field name="sequence" eval="0"/>
            <field name="view_mode">kanban</field>
            <field name="view_id" ref="hr_kanban_view_applicant"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_tree_view_act_job">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="crm_case_tree_view_job"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_form_view_act_job">
            <field name="sequence" eval="3"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_case_form_view_job"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_hr_sec_graph_view_act_job">
            <field name="sequence" eval="4"/>
            <field name="view_mode">graph</field>
            <field name="view_id" ref="crm_case_graph_view_job"/>
            <field name="act_window_id" ref="crm_case_categ0_act_job"/>
        </record>

        <menuitem
            name="Recruitment"
            id="base.menu_crm_case_job_req_main"
            parent="hr.menu_hr_root"
            sequence="1"/>

        <menuitem parent="base.menu_crm_case_job_req_main" id="hr.menu_hr_job_position" action="action_hr_job" sequence="1"/>
        <menuitem
            name="Applications"
            parent="base.menu_crm_case_job_req_main"
            id="menu_crm_case_categ0_act_job" action="crm_case_categ0_act_job" sequence="2"/>
    </data>
</openerp>


text:
void reader_init(Reader *reader, String buffer,
		Array(Adjustment) adjustments, bool at_start_of_line,
		char *source_filename)
{
	*reader = (Reader) {
		.buffer = buffer,
		.position = 0,
		.adjustments = adjustments,
		.next_adjustment = 0,
		.at_start_of_line = at_start_of_line,
		.source_loc = {
			.filename = source_filename,
			.line = 1,
			.column = 1,
		},
		.prev_char_source_loc = { NULL, 0, 0},
	};
}

// @TODO: Maybe we should remove all uses of back_up (instead doing peek_char
// followed by advance if we don't want to back up). Then we don't have to keep
// track of prev_source_loc + remove some edge cases.
void back_up(Reader *reader)
{
	Adjustment *prev_adjustment = ARRAY_REF(&reader->adjustments,
			Adjustment, reader->next_adjustment - 1);
	if (reader->next_adjustment >= 1
			&& prev_adjustment->location == reader->position) {
		reader->next_adjustment--;
	}

	assert(reader->prev_char_source_loc.filename != NULL);
	reader->source_loc = reader->prev_char_source_loc;
	reader->prev_char_source_loc = (SourceLoc) { NULL, 0, 0 };

	reader->position--;
}

void advance(Reader *reader)
{
	reader->prev_char_source_loc = reader->source_loc;
	reader->at_start_of_line = peek_char(reader) == '\n';

	for (;;) {
		reader->position++;
		reader->source_loc.column++;

		if (at_end(reader))
			break;

		if (peek_char(reader) == '\\') {
			reader->position++;
			if (peek_char(reader) == '\n') {
				reader->source_loc.line++;
				reader->source_loc.column = 0;
				continue;
			} else {
				reader->position--;
				break;
			}
		} else {
			break;
		}
	}

	Adjustment *prev_adjustment = NULL;
	if (reader->next_adjustment >= 1
			&& reader->next_adjustment <= reader->adjustments.size) {
		prev_adjustment = ARRAY_REF(&reader->adjustments,
				Adjustment, reader->next_adjustment - 1);
	}
	Adjustment *next_adjustment = NULL;
	if (reader->next_adjustment < reader->adjustments.size) {
		next_adjustment = ARRAY_REF(&reader->adjustments,
				Adjustment, reader->next_adjustment);
	}

	if (next_adjustment != NULL && next_adjustment->location == reader->position) {
		reader->source_loc = next_adjustment->new_source_loc;
		reader->next_adjustment++;
	} else if (prev_adjustment != NULL
			&& prev_adjustment->type == BEGIN_MACRO_ADJUSTMENT) {
		reader->source_loc = prev_adjustment->new_source_loc;
	} else if (peek_char(reader) == '\n') {
		reader->source_loc.line++;
		reader->source_loc.column = 0;
	}
}

// @TODO: Handle backslash newline in the middle of a symbol.
String read_symbol(Reader *reader)
{
	u32 start_index = reader->position;
	if (!initial_ident_char(peek_char(reader)))
		return INVALID_STRING;

	while (!at_end(reader)) {
		char c = peek_char(reader);
		if (!ident_char(c))
			break;

		advance(reader);
	}

	return (String) {
		.chars = reader->buffer.chars + start_index,
		.len = reader->position - start_index,
	};
}

extern inline bool at_end(Reader *reader);
extern inline char peek_char(Reader *reader);
extern inline char read_char(Reader *reader);
extern inline bool initial_ident_char(char c);
extern inline bool ident_char(char c);


text:
DROP VIEW IF EXISTS view_daftar_penerimaan_satpolpp;

CREATE VIEW view_daftar_penerimaan_satpolpp AS

SELECT
*

FROM
view_daftar_penerimaan_kabupaten

WHERE
1 = 1  AND
id_skpd = 25;

GRANT ALL PRIVILEGES ON view_daftar_penerimaan_satpolpp, sub_skpd TO lap_satpolpp;
REVOKE INSERT, UPDATE, DELETE ON view_daftar_penerimaan_satpolpp, sub_skpd FROM lap_satpolpp;


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. 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.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>5-route-messages-between-systems</artifactId>
        <groupId>org.wso2.ei</groupId>
        <version>6.4.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>5.3-load-balance-messages-among-systems</artifactId>
    <packaging>pom</packaging>
    <modules>
        <module>5.3.1-load-balance-messages-received-over-http</module>
    </modules>

</project>


text:
<?php
namespace Data\Model;

interface Model
{
/*
 * Static Convenience Method
 */
    public static function get($idObject);

/*
 * Fetch an object instance
 */
    public function fetchObject($idObject);

/*
 * Fetch an object instance based on field
 */
    public function fetchByField($field, $value);

/*
 *  Save the instance to a peristent storage
 */
    public function save();

/*
 * Remove object from persistent storage
 */
    public function delete($idObject);

/*
 *  Get the object instance fields
 */
    public function getFields();

/*
 *  Set the object instance fields
 */
    public function setFields(array $fields);
}


text:
title:  Gottessohn und Menschensohn
date:   15/01/2022
---

#### imAnfang

Lies die Textstelle dieser Woche: Hebräer 2

Gottessohn und Menschensohn

Hebräer 1 spricht von Jesus als dem Sohn Gottes, dem Herrscher über die Engel, und "der Ausstrahlung seiner Herrlichkeit und Abdruck seines Wesens" (Hebräer 1,3). In Hebräer 2 ist Jesus der Menschensohn, der niedriger gemacht wurde als die Engel und der die menschliche Natur mit all ihrer Schwäche angenommen hat, bis hin zum Tod (Hebräer 2,7).

In Hebräer 1 sagt Gott über Jesus: "Du bist mein Sohn" (Hebräer 1,5). In Hebräer 2 bezeichnet Jesus die Menschen als seine "Brüder" (Hebräer 2,12).

In Hebräer 1 erklärt der Vater die göttliche Herrschaft des Sohnes (Hebräer 1,8-12). In Hebräer 2 bekräftigt der Sohn seine Treue zum Vater (Hebräer 2,13a).

In Hebräer 1 ist Jesus der göttliche Herr, Schöpfer, Erhalter und Herrscher. In Hebräer 2 ist Jesus der menschliche Hohepriester und wird als barmherzig und treu dargestellt.

Zusammenfassend kann also gesagt werden, dass die Beschreibung von Jesus als treuer und barmherziger Bruder die Darstellung des Sohnes ultimativ als ewigen Schöpfergott (Hebräer 1,1-4) manifestiert.

#### imWort

Schreibe Hebräer 2 aus einer Übersetzung deiner Wahl ab. Wenn du wenig Zeit hast, schreibe nur die Verse 14-18 ab. Du kannst den Abschnitt auch in eigene Worte fassen, eine Gliederung machen oder den Text als Mindmap darstellen.

``


text:
package org.apache.mxnetexamples

import org.apache.mxnet._

trait InferBase {

  def loadModel(context: Array[Context], batchInference : Boolean): Any
  def loadSingleData(): Any
  def loadBatchFileList(batchSize: Int): List[Any]
  def loadInputBatch(source: Any): Any
  def runSingleInference(loadedModel: Any, input: Any): Any
  def runBatchInference(loadedModel: Any, input: Any): Any
}


text:
#[=======================================================================[.rst:
FindCygwin
----------

Find Cygwin, a POSIX-compatible environment that runs natively
on Microsoft Windows
#]=======================================================================]

if (WIN32)
  if(CYGWIN_INSTALL_PATH)
    set(CYGWIN_BAT "${CYGWIN_INSTALL_PATH}/cygwin.bat")
  endif()

  find_program(CYGWIN_BAT
    NAMES cygwin.bat
    PATHS
      "C:/Cygwin"
      "C:/Cygwin64"
      "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygwin\\setup;rootdir]"
      "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
  )
  get_filename_component(CYGWIN_INSTALL_PATH "${CYGWIN_BAT}" DIRECTORY)
  mark_as_advanced(CYGWIN_BAT)

endif ()


text:
//========================================================================
//
//File:      $RCSfile: TextEditPart.java,v $
//Version:   $Revision: 1.11 $
//Modified:  $Date: 2013/01/10 23:05:55 $
//
//(c) Copyright 2005-2014 by Mentor Graphics Corp. All rights reserved.
//
//========================================================================
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License.  You may obtain a copy
// of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the
// License for the specific language governing permissions and limitations under
// the License.
//========================================================================
//
package com.mentor.nucleus.bp.ui.graphics.parts;

import org.eclipse.draw2d.FigureUtilities;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.MarginBorder;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.draw2d.text.FlowPage;
import org.eclipse.draw2d.text.TextFlow;
import org.eclipse.gef.DragTracker;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.Request;
import org.eclipse.gef.RequestConstants;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;
import org.eclipse.gef.requests.SelectionRequest;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.graphics.Color;

import com.mentor.nucleus.bp.ui.canvas.Connector_c;
import com.mentor.nucleus.bp.ui.canvas.Elementstyle_c;
import com.mentor.nucleus.bp.ui.canvas.Fillcolorstyle_c;
import com.mentor.nucleus.bp.ui.canvas.FloatingText_c;
import com.mentor.nucleus.bp.ui.canvas.Graphelement_c;
import com.mentor.nucleus.bp.ui.canvas.GraphicalElement_c;
import com.mentor.nucleus.bp.ui.canvas.Graphnode_c;
import com.mentor.nucleus.bp.ui.canvas.Linecolorstyle_c;
import com.mentor.nucleus.bp.ui.canvas.Model_c;
import com.mentor.nucleus.bp.ui.canvas.Shape_c;
import com.mentor.nucleus.bp.ui.graphics.Activator;
import com.mentor.nucleus.bp.ui.graphics.editor.GraphicalEditor;
import com.mentor.nucleus.bp.ui.graphics.layout.FloatingTextLocator;
import com.mentor.nucleus.bp.ui.graphics.trackers.TextDragEditPartsTracker;
import com.mentor.nucleus.bp.ui.graphics.utilities.TextUtilities;

public class TextEditPart extends AbstractGraphicalEditPart {

	@Override
	protected IFigure createFigure() {
		FlowPage figure = new FlowPage();
		figure.setBorder(new MarginBorder(5, 5, 5, 5));
	    TextFlow tf = new TextFlow() {

			@Override
			protected void paintFigure(Graphics g) {
				// configure color based off of style
				Object parentModel = ((EditPart) TextEditPart.this.getParent()).getModel();
				GraphicalElement_c graphicalElement = null;
				if(parentModel instanceof Connector_c) {
					graphicalElement = GraphicalElement_c.getOneGD_GEOnR2((Connector_c) parentModel);
				}
				if(parentModel instanceof Shape_c) {
					graphicalElement = GraphicalElement_c.getOneGD_GEOnR2((Shape_c) parentModel);
				}
				Fillcolorstyle_c fcs = null;
				Linecolorstyle_c lcs = Linecolorstyle_c
						.getOneSTY_LCSOnR400(Elementstyle_c
								.getManySTY_SsOnR401(graphicalElement));
				if(lcs == null) {
					// see if there is an element to inherit from
					lcs = getInheritedLineColorStyle();
					if(lcs == null) {
						fcs = getInheritedFillColorStyleFromShapeOrConnector();
					}
				}
				if(lcs != null || fcs != null) {
					if(fcs != null) {
						Color lineColor = Activator.getDefault().getColor(
								fcs.getRed(), fcs.getGreen(), fcs.getBlue());
						g.setForegroundColor(lineColor);
					} else {
						Color lineColor = Activator.getDefault().getColor(
								lcs.getRed(), lcs.getGreen(), lcs.getBlue());
						g.setForegroundColor(lineColor);
					}
				}
				super.paintFigure(g);
			}

		};
	    figure.setHorizontalAligment(PositionConstants.ALWAYS_LEFT);
	    figure.add(tf);
		figure.setOpaque(false);
		if (getModelBounds().isEmpty()) {
			// initialize a default position
			Dimension stringExtents = FigureUtilities.getTextExtents(getText(),
					((GraphicalEditPart) getParent()).getFigure().getFont());
			Rectangle modelBounds = getModelBounds();
			if ((modelBounds.x == 0 && modelBounds.y == 0)
					|| (modelBounds.x == -4000 && modelBounds.y == -3000))
				((FloatingText_c) getModel()).Setdefaultlocation(
						stringExtents.height, stringExtents.width);
			modelBounds.width = -1;
			modelBounds.height = -1;
			figure.setBounds(modelBounds);
			tf.setText(getText());
		} else {
			figure.setBounds(getModelBounds());
			tf.setText(getText());
		}
		return figure;
	}

	protected Fillcolorstyle_c getInheritedFillColorStyleFromShapeOrConnector() {
		if(getParent() instanceof ShapeEditPart) {
			return ((ShapeEditPart) getParent()).getInheritedFillColorStyleFromConnector();
		} else {
			return ((ConnectorEditPart) getParent()).getInheritedFillColorStyleFromShape();
		}
	}

	protected Linecolorstyle_c getInheritedLineColorStyle() {
		if(getParent() instanceof ShapeEditPart) {
			return ((ShapeEditPart) getParent()).getInheritedLineColorStyle();
		} else {
			return ((ConnectorEditPart) getParent()).getInheritedLineColorStyle();
		}
	}

	protected Fillcolorstyle_c getInheritedFillColorStyle() {
		if(getParent() instanceof ShapeEditPart) {
			return ((ShapeEditPart) getParent()).getInheritedFillColorStyle();
		} else {
			return ((ConnectorEditPart) getParent()).getInheritedFillColorStyle();
		}
	}

	public String getText() {
		FloatingText_c text = (FloatingText_c) getModel();
		return TextUtilities.getTextValueFor(text,
				(AbstractGraphicalEditPart) getParent());
	}

	public void refreshVisuals() {
		if (getParent() == null)
			return;

		Rectangle modelBounds = getModelBounds();
		if(!modelBounds.equals(getFigure().getBounds())) {
			// update the bounds if necessary, we need
			// this to account for undo/redo bounds
			// changes
			getFigure().setBounds(modelBounds);
		}

		TextFlow tf = ((TextFlow) getFigure().getChildren().get(0));
		if(!tf.getText().equals(getText())) {
			// update the text
			tf.setText(getText());
		}

		// validate here, so that the minimum width
		// calculate below is always correct
		getFigure().validate();

		// if the user has never set a width, do not perform
		// the following
		if(modelBounds.width != 0) {
			int minimumWidth = FloatingTextLocator.getMinimumWidth(getFigure());
			if(minimumWidth != modelBounds.width) {
				// if the current width does not equal the
				// minimum, then the text has been shortened
				// we need to crop the width
				modelBounds.width = minimumWidth;
			}
		}

		if(!modelBounds.equals(getFigure().getBounds())) {
			// update the bounds if necessary, we need
			// this to account for bounds changes caused
			// by text changes
			getFigure().setBounds(modelBounds);
		}

		// invalidate the figure, to assure correct
		// placement when a shape owns the text
		getFigure().revalidate();
		// repaint the figure
		getFigure().repaint();
	}

	public Rectangle getModelBounds() {
		FloatingText_c text = (FloatingText_c) getModel();
		Graphnode_c node = Graphnode_c.getOneDIM_NDOnR19(text);
		if (node == null)
			return new Rectangle();
		Graphelement_c elem = Graphelement_c.getOneDIM_GEOnR301(node);
		return new Rectangle((int) elem.getPositionx(), (int) elem
				.getPositiony(), (int) node.getWidth(), (int) node.getHeight());
	}

	@Override
	public void performRequest(Request req) {
		if (req.getType().equals(RequestConstants.REQ_OPEN)) {
			GraphicalEditor.handleOpen(((SelectionRequest) req).getLocation(),
					(Model_c) getRoot().getContents().getModel(),
					(IStructuredSelection) getViewer().getSelectionManager()
							.getSelection());
		}
	}

	@Override
	protected void createEditPolicies() {
		// no edit policies needed
	}

	@Override
	public DragTracker getDragTracker(Request request) {
		return new TextDragEditPartsTracker(this);
	}

	public Object getModelElement() {
		FloatingText_c text = (FloatingText_c) getModel();
		Connector_c con = Connector_c.getOneGD_CONOnR8(text);
		if (con != null) {
			GraphicalElement_c ge = GraphicalElement_c.getOneGD_GEOnR2(con);
			if (ge == null)
				return null;
			if (ge.getRepresents() == null)
				return ge;
			return ge.getRepresents();
		}
		Shape_c shp = Shape_c.getOneGD_SHPOnR27(text);
		if (shp != null) {
			GraphicalElement_c ge = GraphicalElement_c.getOneGD_GEOnR2(shp);
			if (ge == null)
				return null;
			if (ge.getRepresents() == null)
				return ge;
			return ge.getRepresents();
		}
		return null;
	}

	@Override
	public void setSelected(int value) {
		if (value == SELECTED_NONE) {
			super.setSelected(value);
			return;
		}
		getViewer().deselect(this);
		getViewer().appendSelection(getParent());
	}

	/**
	 * Set's the selected value for this element, skipping the overridden method
	 *
	 * @param value
	 */
	public void setInternalSelected(int value) {
		super.setSelected(value);
	}

}


text:
module PoullouQueue
  class Queue
    include Helper::Repetition, Helper::Log, Interface::Setup

    def initialize(options = {})
      @options = default_options.merge(options)
      setup_interface(@options[:interface])
      initialize_interface
      initialize_logger(@options[:logger])
    end

    private

    def default_options
      {
        interface: :in_memory,
        logger: default_logger
      }
    end
  end
end


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

<title>PlexOfField (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 Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.apache.poi.hwpf.model

Class PlexOfField

java.lang.Object

org.apache.poi.hwpf.model.PlexOfField

@Internal
public class PlexOfField
extends java.lang.Object

Structure describing the Plex for fields (contained plclfd* in the spec).

Author:

Cedric Bosdonnat <cbosdonnat@novell.com>

Constructor Summary

Constructors

Constructor and Description

PlexOfField(GenericPropertyNode propertyNode)

PlexOfField(int fcStart,
           int fcEnd,
           byte[] data)

Deprecated.

Method Summary

Methods

Modifier and Type
Method and Description

int
getFcEnd()

int
getFcStart()

FieldDescriptor
getFld()

java.lang.String
toString()

Methods inherited from class java.lang.Object

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

Constructor Detail

PlexOfField

@Deprecated
public PlexOfField(int fcStart,
                      int fcEnd,
                      byte[] data)

Deprecated.

PlexOfField

public PlexOfField(GenericPropertyNode propertyNode)

Method Detail

getFcStart

public int getFcStart()

getFcEnd

public int getFcEnd()

getFld

public FieldDescriptor getFld()

toString

public java.lang.String toString()

Overrides:

toString in class java.lang.Object

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 2015 The Apache Software Foundation or
        its licensors, as applicable.


text:
steve.savitzky.net
  / Honu /

 [..]
    [files]

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

Where the wind takes us next year no turtle can tell

But we'll still be at home, come high water or hell,

Because home is wherever you carry your shell.

-- Windward, by
   Stephen Savitzky, 2015

 This project contains a set of configuration files, with Makefiles for
    setup and installation, that allow you to set up a home directory exactly
    the way I like it, with a single command.  Unlike its predecessor, which
    was very specific to me, it's meant to be reasonably general -- it expects
    to find its repository on github, leaves your .mailrc and .signature files
    alone, and preserves most of your old configuration in case you didn't
    really mean it.

 On the other hand, it still sets up my favorite aliases, gnome
    configuration options, emacs options, and xmonad.hs.  Forking
    is not only encouraged, it's practically mandatory if you want to stay
    sane.

 That said, it also has provisions for personal and machine-local
    customizations.  I first started putting those in to accommodate laptop
    and desktop systems with a wide range of screen sizes; it's gotten
    somewhat more general since then.

 Note: this file is meant for incorporation into my website.  If
    you're looking at it on github, you may already have noticed that it's
    mostly a duplicate of README.md.

Annotated Contents

Files

 bootstrap.sh

 This is the shell script that I use to configure a system.  Set up your
       ssh keys, and say:

      wget -O - https://github.com/ssavitzky/Honu/bootstrap.sh | bash

      or something of the sort.  You can also clone the repo and source it, but
      that takes half the fun out of it.

 MIT_LICENSE.txt

 The license for this project.

 Makefile

 Once things get bootstrapped, the entire configuration process is run
       via the Makefile.  make install is the main target;
       eventually there will be targets for partial installs, e.g. on tiny
      systems or systems where I don't have sudo access.

 to.do

 My to-do list, of course.  The format is trivial: an open circle
       (lowercase "o") is something that's not started yet; a period is
       something in progress, and a filled circle (asterisk) is finished.  "~"
       indicates something I've decided not to do, and "?" indicates something
       I'm dithering about.  "&" indicates something I did that I wasn't
       planning to do.  Eventually finished items move to a "done" section.

Directories

 bin/

 Programs.  Mostly small shell scripts; I don't think there are any
       actual binary files in there at the moment.  Some are symlinks into
       other parts of the tree, e.g. dotfiles/_xmonad.  No doubt many are
       useless at this point; some date back to the days of usenet.

 dotconfig/

 Configuration files and directories that go into
       ~/.config/.  These are symlinked so as not to conflict
       with the stuff already there.

 dotfiles/

 Configuration files that go into the home directory.  They are
       symlinked rather than being copied.

 emacs/

 Like it says on the tin:  configuration files for emacs.  This doesn't
       include .emacs, which you'll find in dotfiles.

 local/

 Files that are expected to be edited on a per-system or per-user basis.
       Initial versions are created by make install

 opt/

 The Makefile here lets you download and install various optional
       programs from elsenet.  (Right now the only one is dzen2
       -- older releases of Debian and Ubuntu don't have one that's recent
       enough to include all the features I want to use with
       xmonad.)

 setup/

 Scripts for configuring the things that can't (easily) be installed by
       simply symlinking a dotfile.  This includes a lot of Gnome options.
       There are also files with a -pkgs suffix, that install
       programs using apt.

Copyright ©  Stephen R. Savitzky (HyperSpace Express)


text:
package eu.seaclouds.platform.dashboard.rest;

import com.codahale.metrics.annotation.Timed;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;
import eu.atos.sla.datamodel.IGuaranteeTerm;
import eu.atos.sla.parser.data.GuaranteeTermsStatus;
import eu.atos.sla.parser.data.wsag.Agreement;
import eu.seaclouds.platform.dashboard.model.SeaCloudsApplicationData;
import eu.seaclouds.platform.dashboard.model.SeaCloudsApplicationDataStorage;
import eu.seaclouds.platform.dashboard.proxy.DeployerProxy;
import eu.seaclouds.platform.dashboard.proxy.MonitorProxy;
import eu.seaclouds.platform.dashboard.proxy.PlannerProxy;
import eu.seaclouds.platform.dashboard.proxy.SlaProxy;
import it.polimi.tower4clouds.rules.MonitoringRules;
import org.apache.brooklyn.rest.domain.ApplicationSummary;
import org.apache.brooklyn.rest.domain.TaskSummary;
import org.codehaus.jackson.JsonNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.io.IOException;
import java.util.List;

@Path("/deployer")
@Api("/deployer")
public class DeployerResource implements Resource {
    private static final Logger LOG = LoggerFactory.getLogger(DeployerResource.class);

    private final DeployerProxy deployer;
    private final MonitorProxy monitor;
    private final SlaProxy sla;
    private final PlannerProxy planner;
    private final SeaCloudsApplicationDataStorage dataStore;

    public DeployerResource(DeployerProxy deployerProxy, MonitorProxy monitorProxy, SlaProxy slaProxy, PlannerProxy planner) {
        this.deployer = deployerProxy;
        this.monitor = monitorProxy;
        this.sla = slaProxy;
        this.planner = planner;
        this.dataStore = SeaCloudsApplicationDataStorage.getInstance();
    }

    private void cleanUpApplicationDependencies(SeaCloudsApplicationData seaCloudsApplicationData) {

        // TODO: Undo observers (Maybe they are removed when MR are removed)

        // TODO: Undo grafana

        if (seaCloudsApplicationData.getMonitoringRulesTemplateId() != null) {
            try {
                for (String ruleId : seaCloudsApplicationData.getMonitoringRulesIds()) {
                    monitor.removeMonitoringRule(ruleId);
                }
            } catch (Exception e) {
                LOG.debug("Something went wrong during the cleanup of the monitoring rules");
                // This is perfectly fine, it will happen if this phase was not reached before the error.
            }
        }
        if (seaCloudsApplicationData.getAgreementId() != null) {
            try {
                sla.removeAgreement(seaCloudsApplicationData.getAgreementId());
            } catch (Exception e) {
                LOG.debug("Something went wrong during the cleanup of the agreement");
                // This is perfectly fine, it will happen if this phase was not reached before the error.
            }
        }
        try {
            deployer.removeApplication(seaCloudsApplicationData.getDeployerApplicationId());
        } catch (Exception e) {
            LOG.debug("Something went wrong during the cleanup of the application");
            // This is perfectly fine, it will happen if this phase was not reached before the error.
        }

    }

    @POST
    @Timed
    @Produces(MediaType.APPLICATION_JSON)
    @Path("applications")
    @ApiOperation("Adds new application to SeaClouds Platform based on a SeaClouds-compliant TOSCA DAM specification")
    public Response addApplication(@ApiParam() String dam) {
        SeaCloudsApplicationData seaCloudsApplication = null;

        if (dam == null) {
            LOG.error("Missing input parameters");
            return Response.status(Response.Status.NOT_ACCEPTABLE).build();
        } else {
            try {
                LOG.debug("Deploy new application process started");

                seaCloudsApplication = new SeaCloudsApplicationData(dam);

                LOG.debug("STEP 1: Start deployment of the application");
                TaskSummary taskSummary = deployer.deployApplication(dam);
                seaCloudsApplication.setDeployerApplicationId(taskSummary);

                if (seaCloudsApplication.getMonitoringRulesTemplateId() != null) {
                    LOG.debug("STEP 2: Retrieve Monitoring Rules from TOSCA");
                    MonitoringRules monitoringRules = planner.getMonitoringRulesByTemplateId(seaCloudsApplication.getMonitoringRulesTemplateId());

                    LOG.debug("STEP 3: Install Monitoring Rules");
                    monitor.addMonitoringRules(monitoringRules);
                    seaCloudsApplication.setMonitoringRulesIds(monitoringRules);
                }

                if (seaCloudsApplication.getAgreementTemplateId() != null) {
                    LOG.debug("STEP 4: Retrieve SLA Agreements from TOSCA");
                    Agreement agreement = sla.getAgreementByTemplateId(seaCloudsApplication.getAgreementTemplateId());

                    LOG.debug("STEP 5: Install SLA Agreements");
                    sla.addAgreement(agreement);
                    seaCloudsApplication.setAgreementId(agreement);

                    LOG.debug("STEP 6: Notify Rules Ready (Issue #56)");
                    sla.notifyRulesReady(agreement);
                }

                LOG.debug("Application deployment process finished");
                dataStore.addSeaCloudsApplicationData(seaCloudsApplication);
                return Response.ok(seaCloudsApplication).build();
            } catch (Exception e) {
                cleanUpApplicationDependencies(seaCloudsApplication);
                LOG.error(e.getMessage());
                return Response.status(Response.Status.BAD_REQUEST).build();
            }
        }
    }

    @GET
    @Timed
    @Produces(MediaType.APPLICATION_JSON)
    @Path("applications")
    @ApiOperation(value = "List all SeaClouds deployed Applications")
    public Response listApplications() throws IOException {
        List<SeaCloudsApplicationData> applications = dataStore.listSeaCloudsApplicationData();

        for (SeaCloudsApplicationData application : applications) {
            ApplicationSummary applicationSummary = deployer.getApplication(application.getDeployerApplicationId());
            application.setDeploymentStatus(applicationSummary.getStatus());

            if (application.getAgreementId() != null) {
                GuaranteeTermsStatus agreementStatus = sla.getAgreementStatus(application.getAgreementId());
                application.setAgreementStatus(IGuaranteeTerm.GuaranteeTermStatusEnum.valueOf(agreementStatus.getValue()));
            }

        }
        return Response.ok(applications).build();
    }

    @GET
    @Timed
    @Produces(MediaType.APPLICATION_JSON)
    @Path("applications/{seaCloudsId}")
    @ApiOperation(value = "Get SeaClouds Application details from the Deployer Component")
    public Response getApplication(@PathParam("seaCloudsId") String seaCloudsId) throws IOException {
        if (seaCloudsId == null) {
            LOG.error("Missing input parameters");
            return Response.status(Response.Status.NOT_ACCEPTABLE).build();
        } else {
            SeaCloudsApplicationData seaCloudsApplicationData = dataStore.getSeaCloudsApplicationDataById(seaCloudsId);

            if (seaCloudsApplicationData == null) {
                return Response.status(Response.Status.BAD_REQUEST).build();
            }

            for (JsonNode application : deployer.getApplicationsTree()) {
                if(application.get("id").getTextValue().equals(seaCloudsApplicationData.getDeployerApplicationId())){
                    return Response.ok(application).build();
                }
            }

            return Response.status(Response.Status.BAD_REQUEST).build();
        }
    }

    @DELETE
    @Timed
    @Produces(MediaType.APPLICATION_JSON)
    @Path("applications/{seaCloudsId}")
    @ApiOperation(value = "Remove SeaClouds Application from SeaClouds")
    public Response removeApplication(@PathParam("seaCloudsId") String seaCloudsId) {
        if (seaCloudsId == null) {
            LOG.error("Missing input parameters");
            return Response.status(Response.Status.NOT_ACCEPTABLE).build();
        }

        SeaCloudsApplicationData seaCloudsApplicationData = dataStore.getSeaCloudsApplicationDataById(seaCloudsId);

        if (seaCloudsApplicationData == null) {
            return Response.status(Response.Status.BAD_REQUEST).build();
        }
        cleanUpApplicationDependencies(seaCloudsApplicationData);
        dataStore.removeSeaCloudsApplicationDataById(seaCloudsApplicationData.getSeaCloudsApplicationId());

        return Response.ok().build();
    }

}


text:
package azurerm

import (
	"fmt"
	"log"

	"net/http"

	"regexp"

	"github.com/Azure/azure-sdk-for-go/arm/containerregistry"
	"github.com/hashicorp/terraform/helper/hashcode"
	"github.com/hashicorp/terraform/helper/schema"
	"github.com/jen20/riviera/azure"
)

func resourceArmContainerRegistry() *schema.Resource {
	return &schema.Resource{
		Create: resourceArmContainerRegistryCreate,
		Read:   resourceArmContainerRegistryRead,
		Update: resourceArmContainerRegistryCreate,
		Delete: resourceArmContainerRegistryDelete,
		Importer: &schema.ResourceImporter{
			State: schema.ImportStatePassthrough,
		},

		Schema: map[string]*schema.Schema{
			"name": {
				Type:         schema.TypeString,
				Required:     true,
				ForceNew:     true,
				ValidateFunc: validateAzureRMContainerRegistryName,
			},

			"resource_group_name": {
				Type:     schema.TypeString,
				Required: true,
				ForceNew: true,
			},

			"location": locationSchema(),

			"admin_enabled": {
				Type:     schema.TypeBool,
				Optional: true,
				Default:  false,
			},

			"storage_account": {
				Type:     schema.TypeSet,
				Required: true,
				MaxItems: 1,
				Elem: &schema.Resource{
					Schema: map[string]*schema.Schema{
						"name": {
							Type:     schema.TypeString,
							Required: true,
						},

						"access_key": {
							Type:      schema.TypeString,
							Required:  true,
							Sensitive: true,
						},
					},
				},
			},

			"login_server": {
				Type:     schema.TypeString,
				Computed: true,
			},

			"admin_username": {
				Type:     schema.TypeString,
				Computed: true,
			},

			"admin_password": {
				Type:     schema.TypeString,
				Computed: true,
			},

			"tags": tagsSchema(),
		},
	}
}

func resourceArmContainerRegistryCreate(d *schema.ResourceData, meta interface{}) error {
	client := meta.(*ArmClient).containerRegistryClient
	log.Printf("[INFO] preparing arguments for AzureRM Container Registry creation.")

	resourceGroup := d.Get("resource_group_name").(string)
	name := d.Get("name").(string)
	location := d.Get("location").(string)

	adminUserEnabled := d.Get("admin_enabled").(bool)
	tags := d.Get("tags").(map[string]interface{})

	parameters := containerregistry.Registry{
		Location: &location,
		RegistryProperties: &containerregistry.RegistryProperties{
			AdminUserEnabled: &adminUserEnabled,
		},
		Tags: expandTags(tags),
	}

	accounts := d.Get("storage_account").(*schema.Set).List()
	account := accounts[0].(map[string]interface{})
	storageAccountName := account["name"].(string)
	storageAccountAccessKey := account["access_key"].(string)
	parameters.RegistryProperties.StorageAccount = &containerregistry.StorageAccountProperties{
		Name:      azure.String(storageAccountName),
		AccessKey: azure.String(storageAccountAccessKey),
	}

	_, err := client.CreateOrUpdate(resourceGroup, name, parameters)
	if err != nil {
		return err
	}

	read, err := client.GetProperties(resourceGroup, name)
	if err != nil {
		return err
	}

	if read.ID == nil {
		return fmt.Errorf("Cannot read Container Registry %s (resource group %s) ID", name, resourceGroup)
	}

	d.SetId(*read.ID)

	return resourceArmContainerRegistryRead(d, meta)
}

func resourceArmContainerRegistryRead(d *schema.ResourceData, meta interface{}) error {
	client := meta.(*ArmClient).containerRegistryClient

	id, err := parseAzureResourceID(d.Id())
	if err != nil {
		return err
	}
	resourceGroup := id.ResourceGroup
	name := id.Path["registries"]

	resp, err := client.GetProperties(resourceGroup, name)
	if err != nil {
		return fmt.Errorf("Error making Read request on Azure Container Registry %s: %s", name, err)
	}
	if resp.StatusCode == http.StatusNotFound {
		d.SetId("")
		return nil
	}

	d.Set("name", resp.Name)
	d.Set("resource_group_name", resourceGroup)
	d.Set("location", azureRMNormalizeLocation(*resp.Location))
	d.Set("admin_enabled", resp.AdminUserEnabled)
	d.Set("login_server", resp.LoginServer)

	if resp.StorageAccount != nil {
		flattenArmContainerRegistryStorageAccount(d, resp.StorageAccount)
	}

	if *resp.AdminUserEnabled {
		credsResp, err := client.GetCredentials(resourceGroup, name)
		if err != nil {
			return fmt.Errorf("Error making Read request on Azure Container Registry %s for Credentials: %s", name, err)
		}

		d.Set("admin_username", credsResp.Username)
		d.Set("admin_password", credsResp.Password)
	} else {
		d.Set("admin_username", "")
		d.Set("admin_password", "")
	}

	flattenAndSetTags(d, resp.Tags)

	return nil
}

func resourceArmContainerRegistryDelete(d *schema.ResourceData, meta interface{}) error {
	client := meta.(*ArmClient).containerRegistryClient

	id, err := parseAzureResourceID(d.Id())
	if err != nil {
		return err
	}
	resourceGroup := id.ResourceGroup
	name := id.Path["registries"]

	resp, err := client.Delete(resourceGroup, name)

	if resp.StatusCode != http.StatusOK {
		return fmt.Errorf("Error issuing Azure ARM delete request of Container Registry '%s': %s", name, err)
	}

	return nil
}

func flattenArmContainerRegistryStorageAccount(d *schema.ResourceData, properties *containerregistry.StorageAccountProperties) {
	storageAccounts := schema.Set{
		F: resourceAzureRMContainerRegistryStorageAccountHash,
	}

	storageAccount := map[string]interface{}{}
	storageAccount["name"] = properties.Name
	storageAccounts.Add(storageAccount)

	d.Set("storage_account", &storageAccounts)
}

func resourceAzureRMContainerRegistryStorageAccountHash(v interface{}) int {
	m := v.(map[string]interface{})
	name := m["name"].(*string)
	return hashcode.String(*name)
}

func validateAzureRMContainerRegistryName(v interface{}, k string) (ws []string, errors []error) {
	value := v.(string)
	if !regexp.MustCompile(`^[a-zA-Z0-9]+$`).MatchString(value) {
		errors = append(errors, fmt.Errorf(
			"alpha numeric characters only are allowed in %q: %q", k, value))
	}

	if 5 > len(value) {
		errors = append(errors, fmt.Errorf("%q cannot be less than 5 characters: %q", k, value))
	}

	if len(value) >= 50 {
		errors = append(errors, fmt.Errorf("%q cannot be longer than 50 characters: %q %d", k, value, len(value)))
	}

	return
}


text:
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${CURRENT_DIR}/../integration_test_setup.sh" \
  || { echo "integration_test_setup.sh not found!" >&2; exit 1; }

#### SETUP #############################################################

set -e

test_ignores_comment_lines() {
    rm -rf work && mkdir work && cd work
    create_workspace_with_default_repos WORKSPACE
    mkdir -p ignoreme
    echo Not a valid BUILD file > ignoreme/BUILD
    mkdir -p '#foo/bar'
    cat > '#foo/bar/BUILD' <<'EOI'
genrule(
  name = "out",
  outs = ["out.txt"],
  cmd = "echo Hello World > $@",
)
EOI
    cat > .bazelignore <<'EOI'
# Some comment
#foo/bar
ignoreme
EOI
    bazel build '//#foo/bar/...' || fail "Could not build valid target"
}

test_does_not_glob_into_ignored_directory() {
    rm -rf work && mkdir work && cd work
    create_workspace_with_default_repos WORKSPACE

    echo 'filegroup(name="f", srcs=glob(["**"]))' > BUILD
    echo 'ignored' > .bazelignore
    mkdir -p ignored/pkg
    echo 'filegroup(name="f", srcs=glob(["**"]))' > ignored/pkg/BUILD
    touch ignored/pkg/a
    touch ignored/file
    bazel query //:all-targets > "$TEST_TMPDIR/targets"
    assert_not_contains "//:ignored/file" "$TEST_TMPDIR/targets"
    assert_not_contains "//:ignored/pkg/BUILD" "$TEST_TMPDIR/targets"
    assert_not_contains "//:ignored/pkg/a" "$TEST_TMPDIR/targets"

    # This weird line tests whether .bazelignore also stops the Skyframe-based
    # glob. Globbing (as of 2019 Oct) is done in a hybrid fashion: we do the
    # legacy globbing because it's faster and Skyframe globbing because it's
    # more incremental. In the first run, we get the results of the legacy
    # globbing, but if we invalidate the BUILD file, the result of the legacy
    # glob is invalidated and but the better incrementality allows the result of
    # the Skyframe glob to be cached.
    echo "# change" >> BUILD
    bazel query //:all-targets > "$TEST_TMPDIR/targets"
    assert_not_contains "//:ignored/file" "$TEST_TMPDIR/targets"
    assert_not_contains "//:ignored/pkg/BUILD" "$TEST_TMPDIR/targets"
    assert_not_contains "//:ignored/pkg/a" "$TEST_TMPDIR/targets"

    echo > .bazelignore
    bazel query //:all-targets > "$TEST_TMPDIR/targets"
    assert_contains "//:ignored/file" "$TEST_TMPDIR/targets"
    bazel query //ignored/pkg:all-targets > "$TEST_TMPDIR/targets"
    assert_contains "//ignored/pkg:a" "$TEST_TMPDIR/targets"
}

test_broken_BUILD_files_ignored() {
    rm -rf work && mkdir work && cd work
    create_workspace_with_default_repos WORKSPACE
    mkdir -p ignoreme/deep/reallydep/stillignoreme
    echo This is a broken BUILD file > ignoreme/BUILD
    echo This is a broken BUILD file > ignoreme/deep/BUILD
    echo This is a broken BUILD file > ignoreme/deep/reallydep/BUILD
    echo This is a broken BUILD file > ignoreme/deep/reallydep/stillignoreme/BUILD
    touch BUILD
    bazel build ... >& "$TEST_log" && fail "Expected failure" || :

    echo ignoreme > .bazelignore
    bazel build ... >& "$TEST_log" \
        || fail "directory mentioned in .bazelignore not ignored as it should"
}

test_broken_BUILD_files_ignored_subdir() {
    rm -rf work && mkdir work && cd work
    create_workspace_with_default_repos WORKSPACE
    mkdir -p ignoreme/deep || fail "Couldn't mkdir"
    ln -s deeper ignoreme/deep/deeper || fail "Couldn't create cycle"
    touch BUILD
    bazel build //ignoreme/deep/... >& "$TEST_log" && fail "Expected failure" \
        || :
    expect_log "circular symlinks detected"
    expect_log "ignoreme/deep/deeper"

    echo ignoreme > .bazelignore
    bazel build //ignoreme/deep/... >& "$TEST_log" || fail "Expected success"
    expect_log "WARNING: Pattern '//ignoreme/deep/...' was filtered out by ignored directory 'ignoreme'"
    expect_not_log "circular symlinks detected"
    expect_not_log "ignoreme/deep/deeper"

    bazel query //ignoreme/deep/... >& "$TEST_log" || fail "Expected success"
    expect_log "WARNING: Pattern '//ignoreme/deep/...' was filtered out by ignored directory 'ignoreme'"
    expect_not_log "circular symlinks detected"
    expect_not_log "ignoreme/deep/deeper"
    expect_log "Empty results"

    bazel query //ignoreme/deep/... --universe_scope=//ignoreme/deep/... \
        --order_output=no >& "$TEST_log" || fail "Expected success"
    expect_log "WARNING: Pattern '//ignoreme/deep/...' was filtered out by ignored directory 'ignoreme'"
    expect_not_log "circular symlinks detected"
    expect_not_log "ignoreme/deep/deeper"
    expect_log "Empty results"

    # Test patterns with exclude.
    bazel build -- //ignoreme/deep/... -//ignoreme/... >& "$TEST_log" \
        || fail "Expected success"
    expect_log "WARNING: Pattern '//ignoreme/deep/...' was filtered out by ignored directory 'ignoreme'"
    expect_not_log "circular symlinks detected"
    expect_not_log "ignoreme/deep/deeper"

    bazel build -- //ignoreme/... -//ignoreme/deep/... >& "$TEST_log" \
        || fail "Expected success"
    expect_log "WARNING: Pattern '//ignoreme/...' was filtered out by ignored directory 'ignoreme'"
    expect_not_log "circular symlinks detected"
    expect_not_log "ignoreme/deep/deeper"
}

test_symlink_cycle_ignored() {
    rm -rf work && mkdir work && cd work
    create_workspace_with_default_repos WORKSPACE
    mkdir -p ignoreme/deep
    (cd ignoreme/deep && ln -s . loop)
    touch BUILD

    # This should really fail, but it does not:
    # https://github.com/bazelbuild/bazel/issues/12148
    bazel build ... >& $TEST_log || fail "Expected success"
    expect_log "Infinite symlink expansion"

    echo; echo
    echo ignoreme > .bazelignore
    bazel build ... >& $TEST_log || fail "Expected success"
    expect_not_log "Infinite symlink expansion"
}

test_build_specific_target() {
    rm -rf work && mkdir work && cd work
    create_workspace_with_default_repos WORKSPACE
    mkdir -p ignoreme
    echo Not a valid BUILD file > ignoreme/BUILD
    mkdir -p foo/bar
    cat > foo/bar/BUILD <<'EOI'
genrule(
  name = "out",
  outs = ["out.txt"],
  cmd = "echo Hello World > $@",
)
EOI
    echo ignoreme > .bazelignore
    bazel build //foo/bar/... || fail "Could not build valid target"
}

test_aquery_specific_target() {
    rm -rf work && mkdir work && cd work
    create_workspace_with_default_repos WORKSPACE
    mkdir -p foo/ignoreme
    cat > foo/ignoreme/BUILD <<'EOI'
genrule(
  name = "ignoreme",
  outs = ["ignore.txt"],
  cmd = "echo Hello World > $@",
)
EOI
    mkdir -p foo
    cat > foo/BUILD <<'EOI'
genrule(
  name = "out",
  outs = ["out.txt"],
  cmd = "echo Hello World > $@",
)
EOI
    bazel aquery ... > output 2> "$TEST_log" \
        || fail "Aquery should complete without error."
    cat output >> "$TEST_log"
    assert_contains "ignoreme" output

    echo foo/ignoreme > .bazelignore
    bazel aquery ... > output 2> "$TEST_log" \
        || fail "Aquery should complete without error."
    cat output >> "$TEST_log"
    assert_not_contains "ignoreme" output
}

run_suite "Integration tests for .bazelignore"


text:
using Microsoft.Xna.Framework;

namespace Nez.Svg
{
	/// <summary>
	/// base class for all of the different SVG path types. Note that arcs are not supported at this time.
	/// </summary>
	public abstract class SvgPathSegment
	{
		public Vector2 start, end;

		protected SvgPathSegment()
		{}

		protected SvgPathSegment( Vector2 start, Vector2 end )
		{
			this.start = start;
			this.end = end;
		}

		protected string toSvgString( Vector2 point )
		{
			return string.Format( "{0} {1}", point.X, point.Y );
		}
	}

	public sealed class SvgMoveToSegment : SvgPathSegment
	{
		public SvgMoveToSegment( Vector2 position )
		{
			start = position;
			end = position;
		}

		public override string ToString()
		{
			return "M" + toSvgString( start );
		}
	}

	public sealed class SvgLineSegment : SvgPathSegment
	{
		public SvgLineSegment( Vector2 start, Vector2 end )
		{
			this.start = start;
			this.end = end;
		}

		public override string ToString()
		{
			return "L" + toSvgString( end );
		}

	}

	public sealed class SvgClosePathSegment : SvgPathSegment
	{
		public override string ToString()
		{
			return "z";
		}
	}

	public sealed class SvgQuadraticCurveSegment : SvgPathSegment
	{
		public Vector2 controlPoint;

		public Vector2 firstCtrlPoint
		{
			get
			{
				var x1 = start.X + ( controlPoint.X - start.X ) * 2 / 3;
				var y1 = start.Y + ( controlPoint.Y - start.Y ) * 2 / 3;

				return new Vector2( x1, y1 );
			}
		}

		public Vector2 secondCtrlPoint
		{
			get
			{
				var x2 = controlPoint.X + ( end.X - controlPoint.X ) / 3;
				var y2 = controlPoint.Y + ( end.Y - controlPoint.Y ) / 3;

				return new Vector2( x2, y2 );
			}
		}

		public SvgQuadraticCurveSegment( Vector2 start, Vector2 controlPoint, Vector2 end )
		{
			this.start = start;
			this.controlPoint = controlPoint;
			this.end = end;
		}

		public override string ToString()
		{
			return "Q" + toSvgString( controlPoint ) + " " + toSvgString( end );
		}

	}

	public sealed class SvgCubicCurveSegment : SvgPathSegment
	{
		public Vector2 firstCtrlPoint;
		public Vector2 secondCtrlPoint;

		public SvgCubicCurveSegment( Vector2 start, Vector2 firstCtrlPoint, Vector2 secondCtrlPoint, Vector2 end )
		{
			this.start = start;
			this.end = end;
			this.firstCtrlPoint = firstCtrlPoint;
			this.secondCtrlPoint = secondCtrlPoint;
		}

		public override string ToString()
		{
			return "C" + toSvgString( firstCtrlPoint ) + " " + toSvgString( secondCtrlPoint ) + " " + toSvgString( end );
		}
	}

}


text:
from django.core.exceptions import PermissionDenied

class BankTransactionTagAccessMixin(object):
    """
    Mixin to allow access on tag only for explicit owner or super user.
    """
    permissions = ()

    def dispatch(self, request, *args, **kwargs):

        # No need to continue if permission is denied.
        if not request.user.has_perms(self.permissions):
            raise PermissionDenied

        # Only strict owner with perm could edit or update it.
        if self.get_object().owner != request.user:
            raise PermissionDenied

        return super(BankTransactionTagAccessMixin, self).dispatch(
            request, *args, **kwargs
        )


text:
<?php
class Kwc_Basic_Link_Form extends Kwc_Abstract_Composite_Form
{
    protected $_createFieldsets = false;
    protected function _initFields()
    {
        $this->add(new Kwf_Form_Field_TextField('text', trlKwf('Linktext')))
            ->setWidth(300);

        parent::_initFields();
    }
}


text:
package co.colector.database;

import android.util.Log;

import java.util.ArrayList;
import java.util.List;

import co.colector.listeners.OnDataBaseSave;
import co.colector.model.Question;
import co.colector.model.ResponseComplex;
import co.colector.model.ResponseItem;
import co.colector.model.Section;
import co.colector.model.Survey;
import co.colector.model.SurveySave;
import io.realm.Realm;
import io.realm.RealmList;
import io.realm.RealmResults;

/**
 * @author Gabriel Rodriguez
 * @version 1.0
 */

public class DatabaseHelper {

    private static Realm realm;
    private static DatabaseHelper instance;

    public static DatabaseHelper getInstance() {
        if (instance == null) {
            realm = Realm.getDefaultInstance();
            instance = new DatabaseHelper();
        }
        return instance;
    }

    public void addSurvey(final SurveySave surveySave, final OnDataBaseSave callback) {
        realm.executeTransactionAsync(new Realm.Transaction() {
            @Override
            public void execute(Realm realm) {
                realm.copyToRealmOrUpdate(surveySave);
            }
        }, new Realm.Transaction.OnSuccess() {
            @Override
            public void onSuccess() {
                callback.onSuccess();
            }
        }, new Realm.Transaction.OnError() {
            @Override
            public void onError(Throwable error) {
                callback.onError();
            }
        });
    }

    public Long getNewSurveyIndex() {
        RealmResults<SurveySave> results = realm.where(SurveySave.class).findAll();
        return results.size() + 1l;
    }

    public void addSurveyAvailable(final List<Survey> surveys, final OnDataBaseSave callback) {
        realm.executeTransactionAsync(new Realm.Transaction() {
            @Override
            public void execute(Realm realm) {
                for (Survey survey : surveys) realm.copyToRealmOrUpdate(survey);
            }
        }, new Realm.Transaction.OnSuccess() {
            @Override
            public void onSuccess() {
                callback.onSuccess();
            }
        }, new Realm.Transaction.OnError() {
            @Override
            public void onError(Throwable error) {
                callback.onError();
            }
        });
    }

    public ArrayList<Survey> getSurveysDone(ArrayList<Survey> surveys) {
        ArrayList<Survey> surveyFilled = new ArrayList<>();
        for (Survey survey : surveys) {
            RealmResults<SurveySave> results = realm.where(SurveySave.class)
                    .equalTo("instanceId", survey.getForm_id()).findAll().where()
                    .equalTo("uploaded", false).findAll();
            for (SurveySave surveySave : results) {
                Survey surveyWithAnswer = new Survey(survey, surveySave);
                surveyFilled.add(surveyWithAnswer);
            }
        }
        return surveyFilled;
    }

    public void deleteSurveysDone(Long saveDataId) {
        final SurveySave result = realm.where(SurveySave.class).equalTo("id", saveDataId).findFirst();
        realm.executeTransaction(new Realm.Transaction() {
            @Override
            public void execute(Realm realm) {
                result.deleteFromRealm();
            }
        });
    }

    public void updateRealmSurveySave(final Long id, final OnDataBaseSave callback) {
        realm.executeTransactionAsync(new Realm.Transaction() {
            @Override
            public void execute(Realm realm) {
                SurveySave result = realm.where(SurveySave.class).equalTo("id", id).findFirst();
                result.setUploaded(true);
            }
        }, new Realm.Transaction.OnSuccess() {
            @Override
            public void onSuccess() {
                callback.onSuccess();
            }
        }, new Realm.Transaction.OnError() {
            @Override
            public void onError(Throwable error) {
                callback.onError();
            }
        });
    }

    public ArrayList<Survey> getSurveysUploaded(ArrayList<Survey> surveys) {
        ArrayList<Survey> surveyFilled = new ArrayList<>();
        for (Survey survey : surveys) {
            RealmResults<SurveySave> results = realm.where(SurveySave.class)
                    .equalTo("instanceId", survey.getForm_id()).findAll().where()
                    .equalTo("uploaded", true).findAll();
            for (SurveySave surveySave : results) {
                Survey surveyWithAnswer = new Survey(survey, surveySave);
                surveyFilled.add(surveyWithAnswer);
            }
        }
        return surveyFilled;
    }

    public List<Survey> getSurveys() {
        RealmResults<Survey> results = realm.where(Survey.class).findAll();
        return results.subList(0, results.size());
    }

    public void deleteDatabase() {
        realm.executeTransaction(new Realm.Transaction() {
            @Override
            public void execute(Realm realm) {
                Realm.getDefaultInstance().deleteAll();
            }
        });
    }

    public String formHaveAnswerForOtherForm(Long associate_id, Long question_id){
        RealmResults<Survey> results = realm.where(Survey.class).findAll();
        for (Survey survey: results){
            RealmList<Section> sections = survey.getSections();
            for (Section section : sections){
                RealmList<Question> questions = section.getInputs();
                  for (Question question: questions){
                      if (question.getType() == 10){
                         if (question.getAsociate_form().get(0).getAssociate_id() == associate_id){
                             RealmList<ResponseComplex> options = question.getOptions();
                             for (ResponseComplex responseComplex: options){
                                 RealmList<ResponseItem> responseItems = responseComplex.getResponses();
                                 for (ResponseItem responseItem: responseItems){
                                     if (String.valueOf(responseItem.getInput_id()).equals(String.valueOf(question_id))){
                                         return responseItem.getValue();
                                     }
                                 }
                             }
                         }
                      }
                  }
            }
        }
        return "";
    }
}


text:
package imc.disxmldb.xpath.function;

import imc.disxmldb.dom.typesystem.ValueType;

import java.util.List;

/**
 * This class encapsulate the concept of an function in XPath
 */
public class FunctionDef {

	private static String delimiter = "_";
	private String funcName = null;
	private String argTypeSig = "";
	private ValueType retType;
	private boolean isAtomResult = false;

	private String signature = null;

	private IXPathFunction funcImpl = null;

	public FunctionDef(String funcName) {
		this.funcName = funcName;
	}

	public FunctionDef(String funcName, List<ValueType> argTypes, ValueType retType) {
		this.funcName = funcName;
		for (ValueType type : argTypes) {
			argTypeSig += delimiter + type;
		}
		this.retType = retType;
	}

	public void addArgType(ValueType type) {
		signature = null;
		argTypeSig += delimiter + type;
	}

	public void setRetType(ValueType type) {
		signature = null;
		retType = type;
	}

	public String signature() {
		if (signature == null) {
			signature = funcName + delimiter + argTypeSig + delimiter + retType;
		}
		return signature;
	}

	public void setFuncImpl(IXPathFunction funcImpl) {
		this.funcImpl = funcImpl;
	}

	public IXPathFunction getFuncImpl() {
		return funcImpl;
	}

	@Override
	public int hashCode() {
		return signature().hashCode();
	}

	@Override
	public boolean equals(Object other) {
		return signature().equals(((FunctionDef)other).signature());
	}
	/**
	 *
	 * @return
	 * 	true if the return of the function should not be regarded as child element nodes that
	 * 			should be further joined with the parent nodes
	 */
	public boolean isAtomResult() {
		return isAtomResult;
	}

	public void setIsAtomResult(boolean isAtomResult) {
		this.isAtomResult = isAtomResult;
	}
}


text:
ADCAU, versió 2.0
=================

What is it
----------

Still WORK IN PROGRESS.. This is a brief and incomplete description of my project ADCAU (ADministracio per a un Centre d'Atenció a l'Usuari)

This is my second version of an application for the management of computers, electronic stuff and installed application - licenses - in a business.

You can register issues that happen and link them to a location, a user, and you can put some tags on the description of the issue. The issues can be have three states: draft, opened or closed.

It allows the administrator to have a register of computers and installed applications in an office or business. You can also the rest of machines, such as like printers, routers, switches or scanners.

The current version is in Catalan, but is expected to work as well in English and Spanish in the future.


text:
#ifndef XSTYPEDEFS_H
#define XSTYPEDEFS_H

#include "xstypesconfig.h"
#include "pstdint.h"

#ifndef XSENS_SINGLE_PRECISION
#include <stddef.h>
typedef double XsReal;	//!< Defines the floating point type used by the Xsens libraries
typedef size_t XsSize;	//!< XsSize must be unsigned number!
# ifndef PRINTF_SIZET_MODIFIER
#  if defined(XSENS_64BIT)
#	 if defined(__APPLE__)
#      define PRINTF_SIZET_MODIFIER "l"
#    else
#	   define PRINTF_SIZET_MODIFIER PRINTF_INT64_MODIFIER
#    endif
#  else
#    define PRINTF_SIZET_MODIFIER PRINTF_INT32_MODIFIER
#  endif
# endif // PRINTF_SIZET_MODIFIER
#else
typedef float XsReal;			//!< Defines the floating point type used by the Xsens libraries
typedef unsigned int XsSize;	//!< XsSize must be unsigned number!
#endif // XSENS_SINGLE_PRECISION

/*!	\addtogroup enums Global enumerations
	@{
*/
/*! \brief These flags define the behaviour of data contained by Xsens data structures
	\details Normally, the user should never need to use these directly.
*/
enum XsDataFlags {
	 XSDF_None = 0				//!< No flag set
	,XSDF_Managed = 1			//!< The contained data should be managed (freed) by the object, when false, the object assumes the memory is freed by some other process after its destruction
	,XSDF_FixedSize = 2			//!< The contained data points to a fixed-size buffer, this allows creation of dynamic objects on the stack without malloc/free overhead.
	,XSDF_Empty = 4				//!< The object contains undefined data / should be considered empty. Usually only relevant when XSDF_FixedSize is also set, as otherwise the data pointer will be NULL and empty-ness is implicit.
};
/*! @} */
typedef enum XsDataFlags XsDataFlags;

#ifdef __cplusplus
extern "C" {
#endif

XSTYPES_DLL_API const char *XsDataFlags_toString(XsDataFlags f);

#ifdef __cplusplus
} // extern "C"
/*! \brief \copybrief XsDataFlags_toString \sa XsDataFlags_toString */
inline const char *toString(XsDataFlags s)
{
	return XsDataFlags_toString(s);
}
#else
// define BOOL, TRUE and FALSE
#ifndef BOOL
typedef int BOOL;
#endif

#ifndef TRUE
#define TRUE (1)
#endif

#ifndef FALSE
#define FALSE (0)
#endif
#endif // __cplusplus

#define XS_ENUM_TO_STR_CASE(value) case value: return #value;

#endif // file guard