text:
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'

module Google
  module Apis
    module SourcerepoV1
      # Cloud Source Repositories API
      #
      # Accesses source code repositories hosted by Google.
      #
      # @example
      #    require 'google/apis/sourcerepo_v1'
      #
      #    Sourcerepo = Google::Apis::SourcerepoV1 # Alias the module
      #    service = Sourcerepo::CloudSourceRepositoriesService.new
      #
      # @see https://cloud.google.com/source-repositories/docs/apis
      class CloudSourceRepositoriesService < Google::Apis::Core::BaseService
        # @return [String]
        #  API key. Your API key identifies your project and provides you with API access,
        #  quota, and reports. Required unless you provide an OAuth 2.0 token.
        attr_accessor :key

        # @return [String]
        #  Available to use for quota purposes for server-side applications. Can be any
        #  arbitrary string assigned to a user, but should not exceed 40 characters.
        attr_accessor :quota_user

        def initialize
          super('https://sourcerepo.googleapis.com/', '',
                client_name: 'google-apis-sourcerepo_v1',
                client_version: Google::Apis::SourcerepoV1::GEM_VERSION)
          @batch_path = 'batch'
        end

        # Returns the Cloud Source Repositories configuration of the project.
        # @param [String] name
        #   The name of the requested project. Values are of the form `projects/`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::ProjectConfig] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::ProjectConfig]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}/config', options)
          command.response_representation = Google::Apis::SourcerepoV1::ProjectConfig::Representation
          command.response_class = Google::Apis::SourcerepoV1::ProjectConfig
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Updates the Cloud Source Repositories configuration of the project.
        # @param [String] name
        #   The name of the requested project. Values are of the form `projects/`.
        # @param [Google::Apis::SourcerepoV1::UpdateProjectConfigRequest] update_project_config_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::ProjectConfig] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::ProjectConfig]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def update_project_config(name, update_project_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1/{+name}/config', options)
          command.request_representation = Google::Apis::SourcerepoV1::UpdateProjectConfigRequest::Representation
          command.request_object = update_project_config_request_object
          command.response_representation = Google::Apis::SourcerepoV1::ProjectConfig::Representation
          command.response_class = Google::Apis::SourcerepoV1::ProjectConfig
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Creates a repo in the given project with the given name. If the named
        # repository already exists, `CreateRepo` returns `ALREADY_EXISTS`.
        # @param [String] parent
        #   The project in which to create the repo. Values are of the form `projects/`.
        # @param [Google::Apis::SourcerepoV1::Repo] repo_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::Repo] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::Repo]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def create_project_repo(parent, repo_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+parent}/repos', options)
          command.request_representation = Google::Apis::SourcerepoV1::Repo::Representation
          command.request_object = repo_object
          command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
          command.response_class = Google::Apis::SourcerepoV1::Repo
          command.params['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Deletes a repo.
        # @param [String] name
        #   The name of the repo to delete. Values are of the form `projects//repos/`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::Empty] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::Empty]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def delete_project_repo(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:delete, 'v1/{+name}', options)
          command.response_representation = Google::Apis::SourcerepoV1::Empty::Representation
          command.response_class = Google::Apis::SourcerepoV1::Empty
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Returns information about a repo.
        # @param [String] name
        #   The name of the requested repository. Values are of the form `projects//repos/`
        #   .
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::Repo] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::Repo]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_repo(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}', options)
          command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
          command.response_class = Google::Apis::SourcerepoV1::Repo
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Gets the access control policy for a resource. Returns an empty policy if the
        # resource exists and does not have a policy set.
        # @param [String] resource
        #   REQUIRED: The resource for which the policy is being requested. See [Resource
        #   names](https://cloud.google.com/apis/design/resource_names) for the
        #   appropriate value for this field.
        # @param [Fixnum] options_requested_policy_version
        #   Optional. The maximum policy version that will be used to format the policy.
        #   Valid values are 0, 1, and 3. Requests specifying an invalid value will be
        #   rejected. Requests for policies with any conditional role bindings must
        #   specify version 3. Policies with no conditional role bindings may specify any
        #   valid value or leave the field unset. The policy in the response might use the
        #   policy version that you specified, or it might use a lower policy version. For
        #   example, if you specify version 3, but the policy has no conditional role
        #   bindings, the response uses version 1. To learn which resources support
        #   conditions in their IAM policies, see the [IAM documentation](https://cloud.
        #   google.com/iam/help/conditions/resource-policies).
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::Policy] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::Policy]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_repo_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
          command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
          command.response_class = Google::Apis::SourcerepoV1::Policy
          command.params['resource'] = resource unless resource.nil?
          command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Returns all repos belonging to a project. The sizes of the repos are not set
        # by ListRepos. To get the size of a repo, use GetRepo.
        # @param [String] name
        #   The project ID whose repos should be listed. Values are of the form `projects/`
        #   .
        # @param [Fixnum] page_size
        #   Maximum number of repositories to return; between 1 and 500. If not set or
        #   zero, defaults to 100 at the server.
        # @param [String] page_token
        #   Resume listing repositories where a prior ListReposResponse left off. This is
        #   an opaque token that must be obtained from a recent, prior ListReposResponse's
        #   next_page_token field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::ListReposResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::ListReposResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_project_repos(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}/repos', options)
          command.response_representation = Google::Apis::SourcerepoV1::ListReposResponse::Representation
          command.response_class = Google::Apis::SourcerepoV1::ListReposResponse
          command.params['name'] = name unless name.nil?
          command.query['pageSize'] = page_size unless page_size.nil?
          command.query['pageToken'] = page_token unless page_token.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Updates information about a repo.
        # @param [String] name
        #   The name of the requested repository. Values are of the form `projects//repos/`
        #   .
        # @param [Google::Apis::SourcerepoV1::UpdateRepoRequest] update_repo_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::Repo] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::Repo]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def patch_project_repo(name, update_repo_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1/{+name}', options)
          command.request_representation = Google::Apis::SourcerepoV1::UpdateRepoRequest::Representation
          command.request_object = update_repo_request_object
          command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
          command.response_class = Google::Apis::SourcerepoV1::Repo
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Sets the access control policy on the specified resource. Replaces any
        # existing policy.
        # @param [String] resource
        #   REQUIRED: The resource for which the policy is being specified. See [Resource
        #   names](https://cloud.google.com/apis/design/resource_names) for the
        #   appropriate value for this field.
        # @param [Google::Apis::SourcerepoV1::SetIamPolicyRequest] set_iam_policy_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::Policy] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::Policy]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_repo_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
          command.request_representation = Google::Apis::SourcerepoV1::SetIamPolicyRequest::Representation
          command.request_object = set_iam_policy_request_object
          command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
          command.response_class = Google::Apis::SourcerepoV1::Policy
          command.params['resource'] = resource unless resource.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Synchronize a connected repo. The response contains SyncRepoMetadata in the
        # metadata field.
        # @param [String] name
        #   The name of the repo to synchronize. Values are of the form `projects//repos/`.
        # @param [Google::Apis::SourcerepoV1::SyncRepoRequest] sync_repo_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def sync_repo(name, sync_repo_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:sync', options)
          command.request_representation = Google::Apis::SourcerepoV1::SyncRepoRequest::Representation
          command.request_object = sync_repo_request_object
          command.response_representation = Google::Apis::SourcerepoV1::Operation::Representation
          command.response_class = Google::Apis::SourcerepoV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        # Returns permissions that a caller has on the specified resource. If the
        # resource does not exist, this will return an empty set of permissions, not a
        # NOT_FOUND error.
        # @param [String] resource
        #   REQUIRED: The resource for which the policy detail is being requested. See [
        #   Resource names](https://cloud.google.com/apis/design/resource_names) for the
        #   appropriate value for this field.
        # @param [Google::Apis::SourcerepoV1::TestIamPermissionsRequest] test_iam_permissions_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::SourcerepoV1::TestIamPermissionsResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SourcerepoV1::TestIamPermissionsResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def test_repo_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
          command.request_representation = Google::Apis::SourcerepoV1::TestIamPermissionsRequest::Representation
          command.request_object = test_iam_permissions_request_object
          command.response_representation = Google::Apis::SourcerepoV1::TestIamPermissionsResponse::Representation
          command.response_class = Google::Apis::SourcerepoV1::TestIamPermissionsResponse
          command.params['resource'] = resource unless resource.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        protected

        def apply_command_defaults(command)
          command.query['key'] = key unless key.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
        end
      end
    end
  end
end


text:
package gingerbread.savingsmanager.data;

import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;

/**
 * Created by Boris Wang on 4/17/2017.
 */

public class SavingsManagerContentProvider extends ContentProvider {

    public static final String AUTHORITY = "gingerbread.savingsmanager.provider";
    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + SavingsProjectTable.TABLE_NAME);
    private static final String DATABASE_NAME = "SavingsManager.db";

    private SavingsProjectTable savingsProjectTable;
    private SQLiteDatabase database;

    @Override
    public boolean onCreate() {
        savingsProjectTable = new SavingsProjectTable(getContext(), DATABASE_NAME);
        database = savingsProjectTable.getWritableDatabase();
        return (database == null) ? false : true;
    }

    @Override
    public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
        return database.query(SavingsProjectTable.TABLE_NAME, projection,selection, selectionArgs, null, null, sortOrder);
    }

    @Override
    public String getType( Uri uri) {
        return null;
    }

    @Override
    public Uri insert( Uri uri, ContentValues values) {
        long id = database.insert(SavingsProjectTable.TABLE_NAME, null, values);
        return ContentUris.withAppendedId(CONTENT_URI, id);
    }

    @Override
    public int delete( Uri uri, String selection, String[] selectionArgs) {
        return database.delete(SavingsProjectTable.TABLE_NAME,selection,selectionArgs);
    }

    @Override
    public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
        return database.update(SavingsProjectTable.TABLE_NAME, values, selection, selectionArgs);
    }
}

redpajama_set_name: RedPajamaGithub


text:
Pattern: Misaligned doc comment

Issue: -

## Description

Tests that the stars in a doc comment align correctly.

## Further Reading

* [PHP_CodeSniffer - Squiz.Commenting.DocCommentAlignment](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Squiz/Sniffs/Commenting/DocCommentAlignmentSniff.php)


text:
'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = formatDistance;
var formatDistanceLocale = {
  lessThanXSeconds: {
    one: 'moins d'une seconde',
    other: 'moins de {{count}} secondes'
  },

  xSeconds: {
    one: '1 seconde',
    other: '{{count}} secondes'
  },

  halfAMinute: '30 secondes',

  lessThanXMinutes: {
    one: 'moins d'une minute',
    other: 'moins de {{count}} minutes'
  },

  xMinutes: {
    one: '1 minute',
    other: '{{count}} minutes'
  },

  aboutXHours: {
    one: 'environ 1 heure',
    other: 'environ {{count}} heures'
  },

  xHours: {
    one: '1 heure',
    other: '{{count}} heures'
  },

  xDays: {
    one: '1 jour',
    other: '{{count}} jours'
  },

  aboutXMonths: {
    one: 'environ 1 mois',
    other: 'environ {{count}} mois'
  },

  xMonths: {
    one: '1 mois',
    other: '{{count}} mois'
  },

  aboutXYears: {
    one: 'environ 1 an',
    other: 'environ {{count}} ans'
  },

  xYears: {
    one: '1 an',
    other: '{{count}} ans'
  },

  overXYears: {
    one: 'plus d'un an',
    other: 'plus de {{count}} ans'
  },

  almostXYears: {
    one: 'presqu'un an',
    other: 'presque {{count}} ans'
  }
};

function formatDistance(token, count, options) {
  options = options || {};

  var result;
  if (typeof formatDistanceLocale[token] === 'string') {
    result = formatDistanceLocale[token];
  } else if (count === 1) {
    result = formatDistanceLocale[token].one;
  } else {
    result = formatDistanceLocale[token].other.replace('{{count}}', count);
  }

  if (options.addSuffix) {
    if (options.comparison > 0) {
      return 'dans ' + result;
    } else {
      return 'il y a ' + result;
    }
  }

  return result;
}
module.exports = exports['default'];


text:
package proguard.classfile.attribute.annotation;

import proguard.classfile.*;
import proguard.classfile.attribute.annotation.visitor.*;

/**
 * This ElementValue represents an annotation element value.
 *
 * @author Eric Lafortune
 */
public class AnnotationElementValue extends ElementValue
{
    public Annotation annotationValue;

    /**
     * Creates an uninitialized AnnotationElementValue.
     */
    public AnnotationElementValue()
    {
    }

    /**
     * Creates an initialized AnnotationElementValue.
     */
    public AnnotationElementValue(int        u2elementNameIndex,
                                  Annotation annotationValue)
    {
        super(u2elementNameIndex);

        this.annotationValue = annotationValue;
    }

    /**
     * Applies the given visitor to the annotation.
     */
    public void annotationAccept(Clazz clazz, AnnotationVisitor annotationVisitor)
    {
        annotationVisitor.visitAnnotation(clazz, annotationValue);
    }

    // Implementations for ElementValue.

    public char getTag()
    {
        return ClassConstants.ELEMENT_VALUE_ANNOTATION;
    }

    public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
    {
        elementValueVisitor.visitAnnotationElementValue(clazz, annotation, this);
    }
}


text:
<!DOCTYPE html>

    <title>About 3 Tier System</title>
    <?php
      include("res/links/fav.php");
      require_once("res/cdn/bootstrap_cdn.php");
      require_once("res/links/css_links.php");
      require_once("res/links/fonts.php");
    ?>

        3-T-S

App

Documentation

About

About

        Everything related to this 3-T-S project

               About Project

              <?php
                $myfile = fopen("res/about_doc/about_project.html", "r") or die("Unable to open file!");
                echo fread($myfile,filesize("res/about_doc/about_project.html"));
                fclose($myfile);
               ?>

               Technologies used

              <?php
                $myfile = fopen("res/about_doc/tech_used.html", "r") or die("Unable to open file!");
                echo fread($myfile,filesize("res/about_doc/tech_used.html"));
                fclose($myfile);
               ?>

               Development Team

              <?php
                $myfile = fopen("res/about_doc/dev_team.html", "r") or die("Unable to open file!");
                echo fread($myfile,filesize("res/about_doc/dev_team.html"));
                fclose($myfile);
               ?>

               Open Source

              <?php
                $myfile = fopen("res/about_doc/open_source.html", "r") or die("Unable to open file!");
                echo fread($myfile,filesize("res/about_doc/open_source.html"));
                fclose($myfile);
               ?>

               Institution

              <?php
                $myfile = fopen("res/about_doc/institution.html", "r") or die("Unable to open file!");
                echo fread($myfile,filesize("res/about_doc/institution.html"));
                fclose($myfile);
               ?>

          <form method="get">

<input class="form-control" type="text" placeholder="Search" name="number_array"/>

About Project

Technologies used

Devlopment Team

Open source

Institution

          </form>

    <?php
      include("footer.php");
     ?>

    <?php
      require_once("res/links/js_links.php");
     ?>


text:
// -----------------------------------------------------------------------
//  <copyright file="EntityRoleMap.cs" company="">
//      Copyright (c) 2014-2015 OSky. All rights reserved.
//  </copyright>
//  <site>http://www.OSky.org</site>
//  <last-editor>Lmf</last-editor>
//  <last-date>2015-08-07 3:46</last-date>
// -----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using OSky.Core.Security;
using OSky.Core.Security.Models;
using OSky.UI.Models.Identity;

namespace OSky.UI.Models.Security
{
    /// <summary>
    /// 实体类——数据角色映射信息
    /// </summary>
    [Description("权限-数据角色映射信息")]
    public class EntityRoleMap : EntityRoleMapBase<int, EntityInfo, Guid, Role, int>
    { }
}


text:
package com.googlecode.totallylazy.collections;

import com.googlecode.totallylazy.Files;
import org.junit.Ignore;
import org.junit.Test;

import java.io.File;

import static com.googlecode.totallylazy.Strings.bytes;

@Ignore
public class TreeVisualiser {
    @Test
    public void canVisualiseTree() throws Exception {
        render((TreeMap<?, ?>) MapPerformanceTest.createPersistent(MapPerformanceTest.range));
    }

    private void render(TreeMap<?, ?> map) {
        final File file = new File(Files.temporaryDirectory(), getClass().getSimpleName() + ".html");
        Files.write(bytes("" + new TreeMapRenderer().render(map) + ""), file);
        System.out.println("tree = " + file);
    }

    private class TreeMapRenderer {
        public String render(TreeMap<?, ?> map) {
            if (map.isEmpty()) return "";
            return "
" +
                    "
" + map.key() + "
" +
                    "
" + render(map.left()) + "
" +
                    "
" + render(map.right()) + "
" +
                    "
";
        }
    }

}


text:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <title>react-pdf sample page</title>


text:
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using UserManagementApplication.Client.Data;
using UserManagementApplication.Client.Enumerations;
using UserManagementApplication.Client.Presenters;
using UserManagementApplication.Client.ViewData;
using UserManagementApplication.Client.ViewDefinitions;

namespace UserManagementApplication.Client.Wpf.Views
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class UserManagementView : Window, IUserManagementView
    {
        #region Properties

        public event EventHandler<IView> OnViewLoaded;

        public SessionData SessionToken { get; set; }

        public UserData CurrentUserData
        {
            get
            {
                return this.ListView.SelectedItem as UserData;
            }
        }

        public string ViewTitle
        {
            get
            {
                return this.Title;
            }
            set
            {
                this.Title = value;
            }
        }

        public string FirstName
        {
            get
            {
                return this.textBoxFirstName.Text;
            }
            set
            {
                this.textBoxFirstName.Text = value;
            }
        }

        public string LastName
        {
            get
            {
                return this.textBoxLastName.Text;
            }
            set
            {
                this.textBoxLastName.Text = value;
            }
        }

        protected UserManagementPresenter Presenter { get; set; }

        #endregion

        #region Constructors

        public UserManagementView()
        {
            InitializeComponent();
            Presenter = new UserManagementPresenter(this);
        }

        #endregion

        #region Methods

        public void UpdateData(IList<UserData> userData)
        {
            ListView.Items.Clear();

            foreach (var data in userData)
            {
                ListView.Items.Add(data);
            }
        }

        public void HandleException(string message)
        {
            MessageBox.Show(this, message, this.Title);
        }

        public void HandleLogout()
        {
            LoginView loginView = new LoginView();

            loginView.Show();
        }

        public void EnableAdd(bool value)
        {
            buttonAdd.IsEnabled = value;
        }

        public void EnableEdit(bool value)
        {
            buttonEdit.IsEnabled = value;
        }

        public void EnableDelete(bool value)
        {
            buttonDelete.IsEnabled = value;
        }

        public void EnableUnlock(bool value)
        {
            buttonUnlock.IsEnabled = value;
        }

        public void OnAddUser(UserData userData)
        {
            UserAddEditView userAddEdit = new UserAddEditView()
            {
                ViewOperation = ViewOperation.Add,
                UserData = userData,
                SessionToken = this.SessionToken,
                Owner = this
            };

            userAddEdit.ShowDialog();
        }

        public void OnEditUser(UserData userData)
        {
            UserAddEditView userAddEdit = new UserAddEditView()
            {
                ViewOperation = ViewOperation.Edit,
                UserData = userData,
                SessionToken = this.SessionToken,
                Owner = this
            };

            userAddEdit.ShowDialog();
        }

        #endregion

        #region MyRegion

        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            Presenter.Logout();
        }

        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            var eventHandler = OnViewLoaded;

            if (eventHandler != null)
            {
                OnViewLoaded(this, this);
            }
        }

        private void buttonLogout_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void buttonRefresh_Click(object sender, RoutedEventArgs e)
        {
            Presenter.FindAllUsers();
        }

        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Presenter.SecureControls();
        }

        private void buttonAdd_Click(object sender, RoutedEventArgs e)
        {
            Presenter.AddUser();
        }

        private void buttonEdit_Click(object sender, RoutedEventArgs e)
        {
            Presenter.EditUser();
        }

        private void buttonDelete_Click(object sender, RoutedEventArgs e)
        {
            Presenter.DeleteUser();
        }

        private void buttonUnlock_Click(object sender, RoutedEventArgs e)
        {
            Presenter.UnlockUser();
        }

        private void buttonSearch_Click(object sender, RoutedEventArgs e)
        {
            Presenter.FindUsers();
        }

        #endregion
    }
}


text:
<?php

require_once('config.php');
require_once(PATH . CLASSES . 'alkaline.php');

$alkaline = new Alkaline;
$alkaline->recordStat('page');

$id = $alkaline->findID($_GET['id']);
if(!$id){ $alkaline->addError('No page was found.', 'Try searching for the page you were seeking.', null, null, 404); }

$pages = new Page($id);
$pages->formatTime();
$pages->updateViews();
$page = $pages->pages[0];

if(!$page){ $alkaline->addError('No page was found.', 'Try searching for the page you were seeking.', null, null, 404); }

$header = new Canvas;
$header->load('header');
$header->setTitle($page['page_title']);
$header->assign('Canonical', $page['page_uri']);
$header->display();

$content = new Canvas;
$content->load('page');
$content->loop($pages);
$content->assignArray($page);
$content->display();

$footer = new Canvas;
$footer->load('footer');
$footer->display();

?>


text:
class AddShowHistoricPointsToWebAppConfigs < ActiveRecord::Migration[5.2]

  def change
    add_column :web_app_configs,
    :show_historic_points,
    :boolean,
    default: false
  end
end


text:
@interface BNTextCell ()

@property (nonatomic, retain) NSAttributedString * textString;
@property (nonatomic, retain) UIColor * bgColour;
@property (nonatomic) BOOL centred;
@property (nonatomic, assign) CGFloat margin;
@end

@implementation BNTextCell

+ (BNTextCell *)textCellWithText:(NSAttributedString *)text bgColour:(UIColor *)bgColour centred:(BOOL)centred {

    BNTextCell * cell = [[[self alloc] init] autorelease];
    [cell setTextString:text];
    [cell setBgColour:bgColour];
    [cell setCentred:centred];
    [cell setMargin:16.f];
    return cell;
}

+ (BNTextCell *)textCellWithText:(NSAttributedString *)text {

    return [self textCellWithText:text bgColour:[UIColor whiteColor] centred:NO];
}

- (void)tableView:(BNTableView *)tableView cell:(BNTableViewCell *)cell forIndexPath:(NSIndexPath *)indexPath {

    BNTextCellView * cellView = (BNTextCellView *)cell;

    [cellView.labelView setTextAlignment: (_centred) ? NSTextAlignmentCenter:NSTextAlignmentLeft];
    [cellView.contentView setBackgroundColor:_bgColour];

    if(_textString == nil) {

        [cellView.labelView setText:@""];
    }

    else {

        [cellView.labelView setAttributedText:_textString];
    }
}

- (CGFloat)cellHeight {

    CGFloat result = [_textString boundingRectWithSize:CGSizeMake(self.expectedCellWidth - (2.f * _margin), CGFLOAT_MAX) options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading context:nil].size.height;

    return result < 25.f ? 25.f:result + 10.f;
}

- (void)clickAction {

    if(self.hasAction) {
        [self.target performSelector:self.action withObject:nil];
    }
}

- (void)dealloc {

    [_bgColour release], _bgColour = nil;
    [_textString release], _textString = nil;
    [super dealloc];
}

@end

@implementation BNTextCellView

- (IBAction)clickAction:(id)sender {
    [(BNTextCell *)self.controller clickAction];
}

- (void)dealloc {

    [_labelView release], _labelView = nil;
    [super dealloc];
}

@end


text:
import DecorationOperatorFactory from '../decoration/decoration-operator-factory';
import RegexReader from '../regex-reader';
import {CommandLike} from '../vscode/vscode';
import MatchingModeRegistry from '../matching-mode-registry';
import WindowComponent from '../vscode/window';
import {getOptionM} from 'fp-ts/lib/OptionT';
import {task} from 'fp-ts/lib/Task';

export default class HighlightUsingRegexCommand implements CommandLike {
    private readonly decorationOperatorFactory: DecorationOperatorFactory;
    private readonly regexReader: RegexReader;

    constructor(decorationOperatorFactory: DecorationOperatorFactory,
                matchingModeRegistry: MatchingModeRegistry,
                windowComponent: WindowComponent) {
        this.decorationOperatorFactory = decorationOperatorFactory;
        this.regexReader = new RegexReader(matchingModeRegistry, windowComponent);
    }

    execute() {
        return getOptionM(task).map(this.regexReader.read(), regex => {
            const decorationOperator = this.decorationOperatorFactory.createForVisibleEditors();
            decorationOperator.addDecoration(regex);
        })();
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>Table of Contents</title>

Table of Contents

Please enter your text here.

As you see this is a custom page called
toc.html located in the html folder of  ..doc


text:
using System;
using System.Linq;

public class ItVillage
{
    private static int currentRow = 0;
    private static int currentCol = 0;
    private static int inn = 0;
    private static int skip = 0;
    private static bool win = false;

    public static void Main()
    {
        int coins = 50;
        var inputRows = Console.ReadLine().Split('|').Select(a => a.Trim()).ToArray();
        char[][] field = InitilizeField(inputRows);
        var startInput = Console.ReadLine().Split();
        currentRow = int.Parse(startInput[0].Trim()) - 1;
        currentCol = int.Parse(startInput[1].Trim()) - 1;
        var moves = Console.ReadLine().Split().Select(int.Parse).ToArray();
        int innInGame = FindInnInGame(field);

        for (int i = 0; i < moves.Length; i++)
        {
            if (inn > 0)
            {
                coins += inn * 20;
            }
            skip = 0;
            int move = moves[i];
            CalculateNextPosition(move, field);
            CheckWhatTheCellIsAndPerformAction(field, ref coins);
            i += skip;
            if (win)
            {
                Console.WriteLine("
You won! Nakov's force was with you!
");
                break;
            }
            if (coins < 0)
            {
                Console.WriteLine("
You lost! You ran out of money!
");
                break;
            }
            if (inn == innInGame)
            {
                Console.WriteLine($"
You won! You own the village now! You have {coins} coins!
");
                break;
            }
            if (i + 1 >= moves.Length)
            {
                Console.WriteLine($"
You lost! No more moves! You have {coins} coins!
");
            }
        }
    }

    private static int FindInnInGame(char[][] field)
    {
        int counter = 0;
        for (int row = 0; row < 4; row++)
        {
            for (int col = 0; col < 4; col++)
            {
                if (field[row][col].Equals('I'))
                {
                    counter++;
                }
            }
        }
        return counter;
    }

    private static void CheckWhatTheCellIsAndPerformAction(char[][] field, ref int coins)
    {
        switch (field[currentRow][currentCol])
        {
            case 'P':
                coins -= 5;
                break;
            case 'I':
                if (coins >= 100)
                {
                    coins -= 100;
                    inn++;
                }
                else
                {
                    coins -= 10;
                }
                break;
            case 'F':
                coins += 20;
                break;
            case 'S':
                skip = 2;
                break;
            case 'V':
                coins *= 10;
                break;
            case 'N':
                win = true;
                break;
        }
    }

    private static void CalculateNextPosition(int move, char[][] field)
    {
        while (move != 0)
        {
            if (currentRow > 0 && currentCol == 0)
            {
                currentRow--;
            }
            else if (currentRow < 3 && currentCol == 3)
            {
                currentRow++;
            }
            else if (currentRow == 0 && currentCol < 3)
            {
                currentCol++;
            }
            else if (currentRow == 3 && currentCol > 0)
            {
                currentCol--;
            }
            move--;
        }
    }

    private static char[][] InitilizeField(string[] inputRows)
    {
        char[][] array = new char[4][];
        int colArray = 0;

        for (int row = 0; row < inputRows.Length; row++)
        {
            array[row] = new char[4];
            for (int col = 0; col < inputRows[row].Length; col++)
            {
                if (!inputRows[row][col].Equals(' '))
                {
                    array[row][colArray] = inputRows[row][col];
                    colArray++;
                }
            }
            colArray = 0;
        }
        return array;
    }
}


text:
package org.multiverse.stms.gamma.transactionalobjects.lock;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.multiverse.api.LockMode;
import org.multiverse.api.TxnFactory;
import org.multiverse.api.exceptions.DeadTxnException;
import org.multiverse.api.exceptions.PreparedTxnException;
import org.multiverse.stms.gamma.GammaStm;
import org.multiverse.stms.gamma.transactionalobjects.GammaTxnLong;
import org.multiverse.stms.gamma.transactions.GammaTxn;
import org.multiverse.stms.gamma.transactions.GammaTxnFactory;
import org.multiverse.stms.gamma.transactions.fat.FatFixedLengthGammaTxnFactory;
import org.multiverse.stms.gamma.transactions.fat.FatMonoGammaTxnFactory;
import org.multiverse.stms.gamma.transactions.fat.FatVariableLengthGammaTxnFactory;

import java.util.Collection;

import static java.util.Arrays.asList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.multiverse.TestUtils.*;
import static org.multiverse.api.TxnThreadLocal.clearThreadLocalTxn;
import static org.multiverse.api.TxnThreadLocal.setThreadLocalTxn;
import static org.multiverse.stms.gamma.GammaTestUtils.assertRefHasLockMode;

@RunWith(Parameterized.class)
public class Lock_getLockMode0Test {

    private final GammaTxnFactory transactionFactory;
    private final GammaStm stm;

    public Lock_getLockMode0Test(GammaTxnFactory transactionFactory) {
        this.transactionFactory = transactionFactory;
        this.stm = transactionFactory.getConfig().getStm();
    }

    @Before
    public void setUp() {
        clearThreadLocalTxn();
    }

    @Parameterized.Parameters
    public static Collection<TxnFactory[]> configs() {
        return asList(
                new TxnFactory[]{new FatVariableLengthGammaTxnFactory(new GammaStm())},
                new TxnFactory[]{new FatFixedLengthGammaTxnFactory(new GammaStm())},
                new TxnFactory[]{new FatMonoGammaTxnFactory(new GammaStm())}
        );
    }

    @Test(expected = NullPointerException.class)
    public void whenNullTransaction() {
        GammaTxnLong ref = new GammaTxnLong(stm);

        ref.getLock().getLockMode(null);
    }

    @Test
    public void other_whenLockedForWriteByOther() {
        whenLockedByOther(LockMode.Read);
        whenLockedByOther(LockMode.Write);
        whenLockedByOther(LockMode.Exclusive);
    }

    public void whenLockedByOther(LockMode lockMode) {
        GammaTxnLong ref = new GammaTxnLong(stm);
        GammaTxn otherTx = transactionFactory.newTxn();
        ref.getLock().acquire(otherTx, lockMode);

        GammaTxn tx = transactionFactory.newTxn();
        setThreadLocalTxn(tx);
        LockMode result = ref.getLock().getLockMode();

        assertEquals(LockMode.None, result);
        assertRefHasLockMode(ref,otherTx, lockMode.asInt());
    }

    @Test
    public void whenLockedBySelf(){
        self_whenLocked(LockMode.None);
        self_whenLocked(LockMode.Read);
        self_whenLocked(LockMode.Write);
        self_whenLocked(LockMode.Exclusive);
    }

    public void self_whenLocked(LockMode lockMode){
        GammaTxnLong ref = new GammaTxnLong(stm);

        GammaTxn tx = transactionFactory.newTxn();
        ref.getLock().acquire(tx, lockMode);
        setThreadLocalTxn(tx);
        LockMode result = ref.getLock().getLockMode();

        assertEquals(lockMode, result);
        assertIsActive(tx);
    }

    // ====================== states ==================================

    @Test
    public void whenTransactionPrepared_thenPreparedTxnException() {
        GammaTxnLong ref = new GammaTxnLong(stm);

        GammaTxn tx = transactionFactory.newTxn();
        tx.prepare();

        try {
            ref.getLock().getLockMode(tx);
            fail();
        } catch (PreparedTxnException expected) {

        }

        assertIsAborted(tx);
    }

    @Test
    public void whenTransactionAborted_thenDeadTxnException() {
        GammaTxnLong ref = new GammaTxnLong(stm);

        GammaTxn tx = transactionFactory.newTxn();
        tx.abort();

        try {
            ref.getLock().getLockMode(tx);
            fail();
        } catch (DeadTxnException expected) {
        }

        assertIsAborted(tx);
    }

    @Test
    public void whenTransactionCommitted_thenDeadTxnException() {
        GammaTxnLong ref = new GammaTxnLong(stm);

        GammaTxn tx = transactionFactory.newTxn();
        tx.commit();

        try {
            ref.getLock().getLockMode(tx);
            fail();
        } catch (DeadTxnException expected) {
        }

        assertIsCommitted(tx);
    }
}


text:
import Ember from 'ember';
import DriverRoute from 'ui/hosts/new/driver-route';

const exclude = ['amazonec2Config','digitaloceanConfig','exoscaleConfig','packetConfig','rackspaceConfig','ubiquityConfig'];

export default DriverRoute.extend({
  driverName: 'other',

  otherChoices: function() {
    var schema = this.get('store').getById('schema','machine');
    var fields = schema.get('resourceFields');
    var keys = Object.keys(fields);
    var out = [];
    keys.forEach((key) => {
      var field = fields[key];
      var match;
      if ( exclude.indexOf(key) === -1 )
      {
        if ( match = field.type.match(/^(.*)Config$/) )
        {
          out.push({label: match[1], value: key});
        }
      }
    });

    return out;
  }.property(),

  newModel: function() {
    var store = this.get('store');
    return store.findAll('schema').then((schemas) => {
      return store.findAll('typedocumentation').then((typeDocs) => {
        return Ember.Object.create({
          machine: store.createRecord({type: 'machine'}),
          schemas: schemas,
          typeDocumentations: typeDocs,
          otherChoices: this.get('otherChoices')
        });
      });
    });
  },

  setupController: function(controller/*, model*/) {
    this._super.apply(this,arguments);
    controller.set('driver', this.get('otherChoices.firstObject.value'));
  },

  resetController: function (controller, isExisting/*, transition*/) {
    if (isExisting)
    {
      controller.setProperties({
        driver: null,
        driverOpts: null,
      });
    }
  }
});


text:
SYNONYM

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

#### Published in
null

#### Original name
Agaricus ringens Fr., 1828

### Remarks
null


text:
#include <stdlib.h>

#include "iup.h"
#include "iupmask.h"

#include <lua.h>
#include <lauxlib.h>

#include "iuplua.h"
#include "il.h"
#include "il_controls.h"

static void cfMaskSet (void)
{
  iupmaskSet(iuplua_checkihandle(1),
             luaL_check_string(2),
             luaL_check_int(3),
             luaL_check_int(4));
}

static void cfMaskRemove (void)
{
  iupmaskRemove(iuplua_checkihandle(1));
}

static void cfMaskMatSet(void)
{
  iupmaskMatSet(iuplua_checkihandle(1),
                luaL_check_string(2),
                luaL_check_int(3),
                luaL_check_int(4),
                luaL_check_int(5),
                luaL_check_int(6));

}

static void cfMaskMatRemove(void)
{
  iupmaskMatRemove(iuplua_checkihandle(1),
                   luaL_check_int(2),
                   luaL_check_int(3));

}

static void cfMaskSetInt(void)
{
  iupmaskSetInt(iuplua_checkihandle(1),
                luaL_check_int(2),
                luaL_check_int(3),
                luaL_check_int(4));

}

static void cfMaskSetFloat(void)
{
  iupmaskSetFloat(iuplua_checkihandle(1),
                  luaL_check_int(2),
                  (float)luaL_check_number(3),
                  (float)luaL_check_number(4));

}

static void cfMaskMatSetInt (void)
{
  iupmaskMatSetInt(iuplua_checkihandle(1),
                   luaL_check_int(2),
                   luaL_check_int(3),
                   luaL_check_int(4),
                   luaL_check_int(5),
                   luaL_check_int(6));

}

static void cfMaskMatSetFloat (void)
{
  iupmaskMatSetFloat(iuplua_checkihandle(1),
                     luaL_check_int(2),
                     (float)luaL_check_number(3),
                     (float)luaL_check_number(4),
                     luaL_check_int(5),
                     luaL_check_int(6));
}

static void cfMaskCheck (void)
{
  iupmaskCheck(iuplua_checkihandle(1));
}

static void cfMaskMatCheck (void)
{
  iupmaskMatCheck(iuplua_checkihandle(1),
                  luaL_check_int(2),
                  luaL_check_int(3));
}

static int match_cb (Ihandle *handle)
{
  iuplua_call_start(handle, "match_cb");
  return iuplua_call();
}

int masklua_open(void)
{
  iuplua_regstring_mask(IUP_MASK_FLOAT, "IUPMASK_FLOAT");
  iuplua_regstring_mask(IUP_MASK_UFLOAT, "IUPMASK_UFLOAT");
  iuplua_regstring_mask(IUP_MASK_EFLOAT, "IUPMASK_EFLOAT");
  iuplua_regstring_mask(IUP_MASK_INT, "IUPMASK_INT");
  iuplua_regstring_mask(IUP_MASK_UINT, "IUPMASK_UINT");
  iuplua_regstring(IUP_MASK_FLOAT, "IUP_MASK_FLOAT");
  iuplua_regstring(IUP_MASK_UFLOAT, "IUP_MASK_UFLOAT");
  iuplua_regstring(IUP_MASK_EFLOAT, "IUP_MASK_EFLOAT");
  iuplua_regstring(IUP_MASK_INT, "IUP_MASK_INT");
  iuplua_regstring(IUP_MASK_UINT, "IUP_MASK_UINT");

  iuplua_register("iupmaskRemove", cfMaskRemove);
  iuplua_register("iupmaskMatRemove", cfMaskMatRemove);
  iuplua_register("iupmaskSet", cfMaskSet);
  iuplua_register("iupmaskMatSet", cfMaskMatSet);
  iuplua_register("iupmaskSetInt", cfMaskSetInt);
  iuplua_register("iupmaskSetFloat", cfMaskSetFloat);
  iuplua_register("iupmaskMatSetInt", cfMaskMatSetInt);
  iuplua_register("iupmaskMatSetFloat", cfMaskMatSetFloat);
  iuplua_register("iupmaskCheck", cfMaskCheck);
  iuplua_register("iupmaskMatCheck", cfMaskMatCheck);

  lua_register("iup_match_cb", (lua_CFunction)match_cb);

  return lua_dostring("iup_callbacks.match_cb = {\"MATCH_CB\", iup_match_cb}");
}


text:
package io.liquorice.config.storage.file.json.gson;

import static io.liquorice.config.utils.StringUtils.requireNonEmpty;
import static java.util.Objects.requireNonNull;

import java.io.Reader;
import java.lang.reflect.Type;
import java.nio.channels.Channels;
import java.nio.channels.FileChannel;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import io.liquorice.config.api.formatter.ConfigFormatter;
import io.liquorice.config.api.storage.AbstractConfigSpace;
import io.liquorice.config.api.storage.ConfigSpace;
import io.liquorice.config.exception.ConfigurationException;
import io.liquorice.config.formatter.json.gson.GsonConfigFormatter;

/**
 * A Google/Gson-backed backed implementation of a {@link ConfigSpace} where the contained items are unmodifiable after
 * creation
 */
public class ReadableGsonFileConfigSpace extends AbstractConfigSpace {

    private static final Function<FileChannel, Reader> DEFAULT_FILE_CHANNEL_READER_FUNCTION = internalFileChannel -> Channels
            .newReader(requireNonNull(internalFileChannel), StandardCharsets.UTF_8.name());

    private static final GsonBuilder DEFAULT_GSON_BUILDER = new GsonBuilder();

    private final FileChannel fileChannel;
    private final Function<FileChannel, Reader> fileChannelReaderFunction;
    private final Gson gson;
    private final JsonObject rootObject;

    /**
     * CTOR
     *
     * @param configSpace
     *            A {@link ReadableGsonFileConfigSpace} to shallow copy
     *
     */
    protected ReadableGsonFileConfigSpace(final ReadableGsonFileConfigSpace configSpace) {
        super(configSpace.getConfigFormatter());
        this.fileChannel = configSpace.fileChannel;
        this.fileChannelReaderFunction = configSpace.fileChannelReaderFunction;
        this.gson = configSpace.gson;
        this.rootObject = configSpace.rootObject;
    }

    private ReadableGsonFileConfigSpace(final Builder builder) {
        super(builder.configFormatter);
        this.fileChannel = builder.fileChannel;
        this.fileChannelReaderFunction = builder.fileChannelReaderFunction;
        this.gson = builder.gsonBuilder.create();
        this.rootObject = new JsonParser().parse(gson.newJsonReader(fileChannelReaderFunction.apply(fileChannel)))
                .getAsJsonObject();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean getBooleanRequired(final String key) throws ConfigurationException {
        return getObjectRequired(key, Boolean.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public double getDoubleRequired(final String key) throws ConfigurationException {
        return getObjectRequired(key, Double.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int getIntRequired(final String key) throws ConfigurationException {
        return getObjectRequired(key, Integer.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public long getLongRequired(final String key) throws ConfigurationException {
        return getObjectRequired(key, Long.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public <T> T getObjectRequired(final String key, final Class<T> clazz) throws ConfigurationException {
        try {
            return getConfigFormatter().read(getNonNullable(key), clazz).get();
        } catch (final Exception e) {
            throw new ConfigurationException(String.format("Failed to read property '%s'", key), e);
        }
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getStringRequired(final String key) throws ConfigurationException {
        return getObjectRequired(key, String.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean hasValue(final String key) {
        return rootObject.has(requireNonEmpty(key));
    }

    /**
     * Get a reference to the {@link Gson} storing all of the contained properties
     *
     *

     * NOTE: This is the actual backing store, not a copy. This method should only be used by extending classes
     *
     * @return the backing store
     */
    protected Gson getBackingGson() {
        return gson;
    }

    /**
     * Get a reference to the {@link JsonObject} storing all of the contained properties
     *
     *

     * NOTE: This is the actual backing store, not a copy. This method should only be used by extending classes
     *
     * @return the backing store
     */
    protected JsonObject getBackingJsonObject() {
        return rootObject;
    }

    private JsonElement getNonNullable(final String key) {
        final JsonElement value = getBackingJsonObject().get(requireNonEmpty(key));
        requireNonNull(value);
        return value;
    }

    /**
     * Builder
     */
    public static final class Builder {

        private ConfigFormatter configFormatter;
        private FileChannel fileChannel;
        private Function<FileChannel, Reader> fileChannelReaderFunction;
        private GsonBuilder gsonBuilder;
        private Map<Type, Object> typeAdapters;

        /**
         * CTOR
         */
        public Builder() {
            this.gsonBuilder = DEFAULT_GSON_BUILDER;
            this.configFormatter = new GsonConfigFormatter.Builder().build();
            this.fileChannelReaderFunction = DEFAULT_FILE_CHANNEL_READER_FUNCTION;
            this.typeAdapters = new HashMap<>();
        }

        /**
         * Overwrite the default {@link ConfigFormatter} with a custom one
         *
         * @param configFormatter
         *            the {@link ConfigFormatter}
         * @return this
         */
        public Builder withConfigFormatter(final ConfigFormatter configFormatter) {
            this.configFormatter = configFormatter;
            return this;
        }

        /**
         * Overwrite the default {@link ConfigFormatter} with a custom one
         *
         * @param fileChannel
         *            the {@link FileChannel}
         * @return this
         */
        public Builder withFileChannel(final FileChannel fileChannel) {
            this.fileChannel = fileChannel;
            return this;
        }

        /**
         * Overwrite the default {@link FileChannel} to {@link Reader} {@link Function} with a custom one
         *
         *

         * This is likely only needed by inheriting classes and tests. The default should be sufficient in most cases.
         *
         * @param fileChannelReaderFunction
         *            the {@link Function}
         * @return this
         */
        protected Builder withFileChannelReaderFunction(final Function<FileChannel, Reader> fileChannelReaderFunction) {
            this.fileChannelReaderFunction = fileChannelReaderFunction;
            return this;
        }

        /**
         * Overwrite the default {@link GsonBuilder} with a custom one
         *
         * @param gsonBuilder
         *            the {@link GsonBuilder}
         * @return this
         */
        public Builder withGsonBuilder(final GsonBuilder gsonBuilder) {
            this.gsonBuilder = gsonBuilder;
            return this;
        }

        /**
         * Register a {@link com.google.gson.TypeAdapter} with the underlying {@link GsonBuilder}
         *
         * @param type
         *            the {@link Type}
         * @param typeAdapter
         *            the type adapter
         * @return this
         */
        public Builder withTypeAdapter(final Type type, final Object typeAdapter) {
            this.typeAdapters.put(type, typeAdapter);
            return this;
        }

        /**
         * Register multiple {@link com.google.gson.TypeAdapter}s with the underlying {@link GsonBuilder}
         *
         * @param typeAdapters
         *            the type adapters
         * @return this
         */
        public Builder withTypeAdapters(final Map<Type, Object> typeAdapters) {
            this.typeAdapters.putAll(typeAdapters);
            return this;
        }

        /**
         * Build
         *
         * @return a new {@link ReadableGsonFileConfigSpace} built to specification
         */
        public ReadableGsonFileConfigSpace build() {
            requireNonNull(configFormatter);
            requireNonNull(fileChannel);
            requireNonNull(fileChannelReaderFunction);
            requireNonNull(gsonBuilder);

            for (final Map.Entry<Type, Object> entry : typeAdapters.entrySet()) {
                gsonBuilder.registerTypeAdapter(requireNonNull(entry.getKey()), requireNonNull(entry.getValue()));
            }

            return new ReadableGsonFileConfigSpace(this);
        }
    }
}


text:
package org.drip.analytics.holset;

/*
 * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 */

/*
 *    GENERATED on Wed Jul 04 22:35:36 EDT 2012 ---- DO NOT DELETE
 */

/*!
 * Copyright (C) 2012 Lakshmi Krishnamurthy
 * Copyright (C) 2011 Lakshmi Krishnamurthy
 *
 * This file is part of CreditAnalytics, a free-software/open-source library for
 *		fixed income analysts and developers - http://www.credit-trader.org
 *
 * CreditAnalytics is a free, full featured, fixed income credit analytics library, developed with a special focus
 * 		towards the needs of the bonds and credit products community.
 *
 *  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.
 */

public class BEFHoliday implements org.drip.analytics.holset.LocationHoliday {
	public BEFHoliday()
	{
	}

	public java.lang.String getHolidayLoc()
	{
		return "BEF";
	}

	public org.drip.analytics.holiday.Locale getHolidaySet()
	{
		org.drip.analytics.holiday.Locale lh = new
			org.drip.analytics.holiday.Locale();

		lh.addStaticHoliday ("01-JAN-1998", "New Years Day");

		lh.addStaticHoliday ("13-APR-1998", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-1998", "Labour Day");

		lh.addStaticHoliday ("21-MAY-1998", "Ascension Day");

		lh.addStaticHoliday ("22-MAY-1998", "Bank Holiday");

		lh.addStaticHoliday ("01-JUN-1998", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-1998", "National Holiday");

		lh.addStaticHoliday ("17-AUG-1998", "Bridging Day");

		lh.addStaticHoliday ("02-NOV-1998", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-1998", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-1998", "Christmas Day");

		lh.addStaticHoliday ("01-JAN-1999", "New Years Day");

		lh.addStaticHoliday ("05-APR-1999", "Easter Monday");

		lh.addStaticHoliday ("03-MAY-1999", "Bridging Day");

		lh.addStaticHoliday ("13-MAY-1999", "Ascension Day");

		lh.addStaticHoliday ("14-MAY-1999", "Bank Holiday");

		lh.addStaticHoliday ("24-MAY-1999", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-1999", "National Holiday");

		lh.addStaticHoliday ("16-AUG-1999", "Bridging Day");

		lh.addStaticHoliday ("01-NOV-1999", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-1999", "Armistice Day");

		lh.addStaticHoliday ("27-DEC-1999", "Bridging Day");

		lh.addStaticHoliday ("03-JAN-2000", "Bridging Day");

		lh.addStaticHoliday ("24-APR-2000", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2000", "Labour Day");

		lh.addStaticHoliday ("01-JUN-2000", "Ascension Day");

		lh.addStaticHoliday ("02-JUN-2000", "Bank Holiday");

		lh.addStaticHoliday ("12-JUN-2000", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2000", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2000", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2000", "All Saints Day");

		lh.addStaticHoliday ("13-NOV-2000", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2000", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2000", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2001", "New Years Day");

		lh.addStaticHoliday ("13-APR-2001", "Good Friday");

		lh.addStaticHoliday ("16-APR-2001", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2001", "Labour Day");

		lh.addStaticHoliday ("24-MAY-2001", "Ascension Day");

		lh.addStaticHoliday ("25-MAY-2001", "Bank Holiday");

		lh.addStaticHoliday ("04-JUN-2001", "Whit Monday");

		lh.addStaticHoliday ("23-JUL-2001", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2001", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2001", "All Saints Day");

		lh.addStaticHoliday ("12-NOV-2001", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2001", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2001", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2002", "New Years Day");

		lh.addStaticHoliday ("01-APR-2002", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2002", "Labour Day");

		lh.addStaticHoliday ("09-MAY-2002", "Ascension Day");

		lh.addStaticHoliday ("10-MAY-2002", "Bank Holiday");

		lh.addStaticHoliday ("20-MAY-2002", "Whit Monday");

		lh.addStaticHoliday ("22-JUL-2002", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2002", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2002", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2002", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2002", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2002", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2003", "New Years Day");

		lh.addStaticHoliday ("21-APR-2003", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2003", "Labour Day");

		lh.addStaticHoliday ("29-MAY-2003", "Ascension Day");

		lh.addStaticHoliday ("30-MAY-2003", "Bank Holiday");

		lh.addStaticHoliday ("09-JUN-2003", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2003", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2003", "Assumption Day");

		lh.addStaticHoliday ("03-NOV-2003", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2003", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2003", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2003", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2004", "New Years Day");

		lh.addStaticHoliday ("12-APR-2004", "Easter Monday");

		lh.addStaticHoliday ("03-MAY-2004", "Bridging Day");

		lh.addStaticHoliday ("20-MAY-2004", "Ascension Day");

		lh.addStaticHoliday ("21-MAY-2004", "Bank Holiday");

		lh.addStaticHoliday ("31-MAY-2004", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2004", "National Holiday");

		lh.addStaticHoliday ("16-AUG-2004", "Bridging Day");

		lh.addStaticHoliday ("01-NOV-2004", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2004", "Armistice Day");

		lh.addStaticHoliday ("27-DEC-2004", "Bridging Day");

		lh.addStaticHoliday ("03-JAN-2005", "Bridging Day");

		lh.addStaticHoliday ("28-MAR-2005", "Easter Monday");

		lh.addStaticHoliday ("02-MAY-2005", "Bridging Day");

		lh.addStaticHoliday ("05-MAY-2005", "Ascension Day");

		lh.addStaticHoliday ("06-MAY-2005", "Bank Holiday");

		lh.addStaticHoliday ("16-MAY-2005", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2005", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2005", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2005", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2005", "Armistice Day");

		lh.addStaticHoliday ("26-DEC-2005", "Bridging Day");

		lh.addStaticHoliday ("02-JAN-2006", "Bridging Day");

		lh.addStaticHoliday ("17-APR-2006", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2006", "Labour Day");

		lh.addStaticHoliday ("25-MAY-2006", "Ascension Day");

		lh.addStaticHoliday ("26-MAY-2006", "Bank Holiday");

		lh.addStaticHoliday ("05-JUN-2006", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2006", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2006", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2006", "All Saints Day");

		lh.addStaticHoliday ("13-NOV-2006", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2006", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2006", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2007", "New Years Day");

		lh.addStaticHoliday ("09-APR-2007", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2007", "Labour Day");

		lh.addStaticHoliday ("17-MAY-2007", "Ascension Day");

		lh.addStaticHoliday ("18-MAY-2007", "Bank Holiday");

		lh.addStaticHoliday ("28-MAY-2007", "Whit Monday");

		lh.addStaticHoliday ("23-JUL-2007", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2007", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2007", "All Saints Day");

		lh.addStaticHoliday ("12-NOV-2007", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2007", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2007", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2008", "New Years Day");

		lh.addStaticHoliday ("24-MAR-2008", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2008", "Labour Day");

		lh.addStaticHoliday ("02-MAY-2008", "Bank Holiday");

		lh.addStaticHoliday ("12-MAY-2008", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2008", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2008", "Assumption Day");

		lh.addStaticHoliday ("03-NOV-2008", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2008", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2008", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2008", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2009", "New Years Day");

		lh.addStaticHoliday ("13-APR-2009", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2009", "Labour Day");

		lh.addStaticHoliday ("21-MAY-2009", "Ascension Day");

		lh.addStaticHoliday ("22-MAY-2009", "Bank Holiday");

		lh.addStaticHoliday ("01-JUN-2009", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2009", "National Holiday");

		lh.addStaticHoliday ("17-AUG-2009", "Bridging Day");

		lh.addStaticHoliday ("02-NOV-2009", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2009", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2009", "Christmas Day");

		lh.addStaticHoliday ("01-JAN-2010", "New Years Day");

		lh.addStaticHoliday ("05-APR-2010", "Easter Monday");

		lh.addStaticHoliday ("03-MAY-2010", "Bridging Day");

		lh.addStaticHoliday ("13-MAY-2010", "Ascension Day");

		lh.addStaticHoliday ("14-MAY-2010", "Bank Holiday");

		lh.addStaticHoliday ("24-MAY-2010", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2010", "National Holiday");

		lh.addStaticHoliday ("16-AUG-2010", "Bridging Day");

		lh.addStaticHoliday ("01-NOV-2010", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2010", "Armistice Day");

		lh.addStaticHoliday ("27-DEC-2010", "Bridging Day");

		lh.addStaticHoliday ("03-JAN-2011", "Bridging Day");

		lh.addStaticHoliday ("25-APR-2011", "Easter Monday");

		lh.addStaticHoliday ("02-MAY-2011", "Bridging Day");

		lh.addStaticHoliday ("02-JUN-2011", "Ascension Day");

		lh.addStaticHoliday ("03-JUN-2011", "Bank Holiday");

		lh.addStaticHoliday ("13-JUN-2011", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2011", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2011", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2011", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2011", "Armistice Day");

		lh.addStaticHoliday ("26-DEC-2011", "Bridging Day");

		lh.addStaticHoliday ("02-JAN-2012", "Bridging Day");

		lh.addStaticHoliday ("09-APR-2012", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2012", "Labour Day");

		lh.addStaticHoliday ("17-MAY-2012", "Ascension Day");

		lh.addStaticHoliday ("18-MAY-2012", "Bank Holiday");

		lh.addStaticHoliday ("28-MAY-2012", "Whit Monday");

		lh.addStaticHoliday ("23-JUL-2012", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2012", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2012", "All Saints Day");

		lh.addStaticHoliday ("12-NOV-2012", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2012", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2012", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2013", "New Years Day");

		lh.addStaticHoliday ("01-APR-2013", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2013", "Labour Day");

		lh.addStaticHoliday ("09-MAY-2013", "Ascension Day");

		lh.addStaticHoliday ("10-MAY-2013", "Bank Holiday");

		lh.addStaticHoliday ("20-MAY-2013", "Whit Monday");

		lh.addStaticHoliday ("22-JUL-2013", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2013", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2013", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2013", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2013", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2013", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2014", "New Years Day");

		lh.addStaticHoliday ("21-APR-2014", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2014", "Labour Day");

		lh.addStaticHoliday ("29-MAY-2014", "Ascension Day");

		lh.addStaticHoliday ("30-MAY-2014", "Bank Holiday");

		lh.addStaticHoliday ("09-JUN-2014", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2014", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2014", "Assumption Day");

		lh.addStaticHoliday ("03-NOV-2014", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2014", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2014", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2014", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2015", "New Years Day");

		lh.addStaticHoliday ("06-APR-2015", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2015", "Labour Day");

		lh.addStaticHoliday ("14-MAY-2015", "Ascension Day");

		lh.addStaticHoliday ("15-MAY-2015", "Bank Holiday");

		lh.addStaticHoliday ("25-MAY-2015", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2015", "National Holiday");

		lh.addStaticHoliday ("17-AUG-2015", "Bridging Day");

		lh.addStaticHoliday ("02-NOV-2015", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2015", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2015", "Christmas Day");

		lh.addStaticHoliday ("01-JAN-2016", "New Years Day");

		lh.addStaticHoliday ("28-MAR-2016", "Easter Monday");

		lh.addStaticHoliday ("02-MAY-2016", "Bridging Day");

		lh.addStaticHoliday ("05-MAY-2016", "Ascension Day");

		lh.addStaticHoliday ("06-MAY-2016", "Bank Holiday");

		lh.addStaticHoliday ("16-MAY-2016", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2016", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2016", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2016", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2016", "Armistice Day");

		lh.addStaticHoliday ("26-DEC-2016", "Bridging Day");

		lh.addStaticHoliday ("02-JAN-2017", "Bridging Day");

		lh.addStaticHoliday ("17-APR-2017", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2017", "Labour Day");

		lh.addStaticHoliday ("25-MAY-2017", "Ascension Day");

		lh.addStaticHoliday ("26-MAY-2017", "Bank Holiday");

		lh.addStaticHoliday ("05-JUN-2017", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2017", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2017", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2017", "All Saints Day");

		lh.addStaticHoliday ("13-NOV-2017", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2017", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2017", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2018", "New Years Day");

		lh.addStaticHoliday ("02-APR-2018", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2018", "Labour Day");

		lh.addStaticHoliday ("10-MAY-2018", "Ascension Day");

		lh.addStaticHoliday ("11-MAY-2018", "Bank Holiday");

		lh.addStaticHoliday ("21-MAY-2018", "Whit Monday");

		lh.addStaticHoliday ("23-JUL-2018", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2018", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2018", "All Saints Day");

		lh.addStaticHoliday ("12-NOV-2018", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2018", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2018", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2019", "New Years Day");

		lh.addStaticHoliday ("22-APR-2019", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2019", "Labour Day");

		lh.addStaticHoliday ("30-MAY-2019", "Ascension Day");

		lh.addStaticHoliday ("31-MAY-2019", "Bank Holiday");

		lh.addStaticHoliday ("10-JUN-2019", "Whit Monday");

		lh.addStaticHoliday ("22-JUL-2019", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2019", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2019", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2019", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2019", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2019", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2020", "New Years Day");

		lh.addStaticHoliday ("13-APR-2020", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2020", "Labour Day");

		lh.addStaticHoliday ("21-MAY-2020", "Ascension Day");

		lh.addStaticHoliday ("22-MAY-2020", "Bank Holiday");

		lh.addStaticHoliday ("01-JUN-2020", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2020", "National Holiday");

		lh.addStaticHoliday ("17-AUG-2020", "Bridging Day");

		lh.addStaticHoliday ("02-NOV-2020", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2020", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2020", "Christmas Day");

		lh.addStaticHoliday ("01-JAN-2021", "New Years Day");

		lh.addStaticHoliday ("05-APR-2021", "Easter Monday");

		lh.addStaticHoliday ("03-MAY-2021", "Bridging Day");

		lh.addStaticHoliday ("13-MAY-2021", "Ascension Day");

		lh.addStaticHoliday ("14-MAY-2021", "Bank Holiday");

		lh.addStaticHoliday ("24-MAY-2021", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2021", "National Holiday");

		lh.addStaticHoliday ("16-AUG-2021", "Bridging Day");

		lh.addStaticHoliday ("01-NOV-2021", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2021", "Armistice Day");

		lh.addStaticHoliday ("27-DEC-2021", "Bridging Day");

		lh.addStaticHoliday ("03-JAN-2022", "Bridging Day");

		lh.addStaticHoliday ("18-APR-2022", "Easter Monday");

		lh.addStaticHoliday ("02-MAY-2022", "Bridging Day");

		lh.addStaticHoliday ("26-MAY-2022", "Ascension Day");

		lh.addStaticHoliday ("27-MAY-2022", "Bank Holiday");

		lh.addStaticHoliday ("06-JUN-2022", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2022", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2022", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2022", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2022", "Armistice Day");

		lh.addStaticHoliday ("26-DEC-2022", "Bridging Day");

		lh.addStaticHoliday ("02-JAN-2023", "Bridging Day");

		lh.addStaticHoliday ("10-APR-2023", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2023", "Labour Day");

		lh.addStaticHoliday ("18-MAY-2023", "Ascension Day");

		lh.addStaticHoliday ("19-MAY-2023", "Bank Holiday");

		lh.addStaticHoliday ("29-MAY-2023", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2023", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2023", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2023", "All Saints Day");

		lh.addStaticHoliday ("13-NOV-2023", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2023", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2023", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2024", "New Years Day");

		lh.addStaticHoliday ("01-APR-2024", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2024", "Labour Day");

		lh.addStaticHoliday ("09-MAY-2024", "Ascension Day");

		lh.addStaticHoliday ("10-MAY-2024", "Bank Holiday");

		lh.addStaticHoliday ("20-MAY-2024", "Whit Monday");

		lh.addStaticHoliday ("22-JUL-2024", "Bridging Day");

		lh.addStaticHoliday ("15-AUG-2024", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2024", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2024", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2024", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2024", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2025", "New Years Day");

		lh.addStaticHoliday ("21-APR-2025", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2025", "Labour Day");

		lh.addStaticHoliday ("29-MAY-2025", "Ascension Day");

		lh.addStaticHoliday ("30-MAY-2025", "Bank Holiday");

		lh.addStaticHoliday ("09-JUN-2025", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2025", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2025", "Assumption Day");

		lh.addStaticHoliday ("03-NOV-2025", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2025", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2025", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2025", "Bridging Day");

		lh.addStaticHoliday ("01-JAN-2026", "New Years Day");

		lh.addStaticHoliday ("06-APR-2026", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2026", "Labour Day");

		lh.addStaticHoliday ("14-MAY-2026", "Ascension Day");

		lh.addStaticHoliday ("15-MAY-2026", "Bank Holiday");

		lh.addStaticHoliday ("25-MAY-2026", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2026", "National Holiday");

		lh.addStaticHoliday ("17-AUG-2026", "Bridging Day");

		lh.addStaticHoliday ("02-NOV-2026", "Bridging Day");

		lh.addStaticHoliday ("11-NOV-2026", "Armistice Day");

		lh.addStaticHoliday ("25-DEC-2026", "Christmas Day");

		lh.addStaticHoliday ("01-JAN-2027", "New Years Day");

		lh.addStaticHoliday ("29-MAR-2027", "Easter Monday");

		lh.addStaticHoliday ("03-MAY-2027", "Bridging Day");

		lh.addStaticHoliday ("06-MAY-2027", "Ascension Day");

		lh.addStaticHoliday ("07-MAY-2027", "Bank Holiday");

		lh.addStaticHoliday ("17-MAY-2027", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2027", "National Holiday");

		lh.addStaticHoliday ("16-AUG-2027", "Bridging Day");

		lh.addStaticHoliday ("01-NOV-2027", "All Saints Day");

		lh.addStaticHoliday ("11-NOV-2027", "Armistice Day");

		lh.addStaticHoliday ("27-DEC-2027", "Bridging Day");

		lh.addStaticHoliday ("03-JAN-2028", "Bridging Day");

		lh.addStaticHoliday ("17-APR-2028", "Easter Monday");

		lh.addStaticHoliday ("01-MAY-2028", "Labour Day");

		lh.addStaticHoliday ("25-MAY-2028", "Ascension Day");

		lh.addStaticHoliday ("26-MAY-2028", "Bank Holiday");

		lh.addStaticHoliday ("05-JUN-2028", "Whit Monday");

		lh.addStaticHoliday ("21-JUL-2028", "National Holiday");

		lh.addStaticHoliday ("15-AUG-2028", "Assumption Day");

		lh.addStaticHoliday ("01-NOV-2028", "All Saints Day");

		lh.addStaticHoliday ("13-NOV-2028", "Bridging Day");

		lh.addStaticHoliday ("25-DEC-2028", "Christmas Day");

		lh.addStaticHoliday ("26-DEC-2028", "Bridging Day");

		lh.addStandardWeekend();

		return lh;
	}
}


text:
export default {
  /**
   * Stores the given value in a local storage container using the given name for that container.
   *
   * @param {String} name the name of the container for the value.
   * @param {*} value the value to store.
   */
  set: function set (name, value) {
    const proximo = getProximoStore();

    proximo[name] = value;

    window.localStorage.proximo = JSON.stringify(proximo);
  },

  /**
   * Gets the value stored in the storage container.
   *
   * @param {String} name the name of the container that is storing the value.
   * @return {*} Returns the value stored in the container or Undefined.
   */
  get: function get (name) {
    const proximo = getProximoStore();

    return proximo[name];
  }
};

/**
 * Returns the local storage container for Proximo.
 *
 * @return {Object}
 */
function getProximoStore () {
  try {
    return JSON.parse(window.localStorage.proximo);
  } catch (error) {
    return {};
  }
}


text:
// <copyright file="BuildProviderView.xaml.cs" company="Logikfabrik">
//   Copyright (c) 2016-2018 anton(at)logikfabrik.se. Licensed under the MIT license.
// </copyright>

namespace Logikfabrik.Overseer.WPF.Provider.TeamCity.Views.Views
{
    /// <summary>
    /// The <see cref="BuildProviderView" /> class.
    /// </summary>
    // ReSharper disable once InheritdocConsiderUsage
    public partial class BuildProviderView
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="BuildProviderView" /> class.
        /// </summary>
        // ReSharper disable once InheritdocConsiderUsage
        public BuildProviderView()
        {
            InitializeComponent();
        }
    }
}


text:
package com.lab.epam.command.page.delete;

import com.lab.epam.command.controller.Command;
import com.lab.epam.entity.User;
import com.lab.epam.helper.ClassName;
import com.lab.epam.service.PlaceResponseService;
import com.lab.epam.service.UserService;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 * Created by Admin on 11.07.2015.
 */
public class DeletePlaceResponseCommand implements Command {

    private static final Logger loger = LogManager.getLogger(ClassName.getCurrentClassName());

    public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        String place_idString = request.getParameter("place_id");
        Integer place_id = 0;
        System.out.println(" place_id " + place_idString);
        String response_idString = request.getParameter("response_id");
        System.out.println(" response_id " + response_idString);
        Integer response_id = 0;

        PlaceResponseService placeResponseService = new PlaceResponseService();
        UserService userService = new UserService();

        if (place_idString != null){
            place_id = Integer.parseInt(place_idString);
        }

        if (response_idString != null){
            response_id = Integer.parseInt(response_idString);
        }

        if (response_id != 0){
            placeResponseService.deleteResponseByUserIdPlaceId(response_id);
        }
        loger.info("Command DeletePlaceResponseCommand");

        response.sendRedirect("/portal?command=placeInformation&place_id=" + place_id);

    }
}