text:
//
// This code was auto-generated by AFNOR StoredProcedureSystem, version 1.0
//

using System.Runtime.Serialization;
using System;

namespace AnnuaireCertifies.Domaine
{
    public partial class PageStatiqueDto
    {

        [DataMember]
        public long ID { get; set; }

        [DataMember]
        public string Url { get; set; }

        [DataMember]
        public string Code { get; set; }

        [DataMember]
        public string Libelle { get; set; }

        [DataMember]
        public long LangueID { get; set; }

        [DataMember]
        public long TypePageStatiqueID { get; set; }

        [DataMember]
        public string TitrePresentation { get; set; }

        [DataMember]
        public string Accroche { get; set; }

        [DataMember]
        public Nullable<long> RessourceID { get; set; }

        [DataMember]
        public string MetaDescription { get; set; }

        [DataMember]
        public string TitrePage { get; set; }

        [DataMember]
        public bool Statique { get; set; }
    }
}


text:
package main

import (
	"encoding/json"
	"io/ioutil"
	"os"

	"github.com/miquella/vaulted/lib"
)

type Load struct {
	VaultName string
}

func (l Load) Run(store vaulted.Store) error {
	jvault, err := ioutil.ReadAll(os.Stdin)
	if err != nil {
		return err
	}

	vault := &vaulted.Vault{}
	err = json.Unmarshal(jvault, vault)
	if err != nil {
		return err
	}

	err = store.SealVault(vault, l.VaultName)
	if err != nil {
		return err
	}

	return nil
}

redpajama_set_name: RedPajamaGithub


text:
package org.apache.directory.api.ldap.model.schema.registries;

import java.io.IOException;
import java.util.Collection;
import java.util.List;

import org.apache.directory.api.ldap.model.entry.Entry;
import org.apache.directory.api.ldap.model.exception.LdapException;

/**
 * Loads schemas into registries.
 *
 * @author Apache Directory Project
 */
public interface SchemaLoader
{
    /**
     * Gets a schema object based on it's name.
     *
     * @param schemaName the name of the schema to load
     * @return the Schema object associated with the name
     */
    Schema getSchema( String schemaName );

    /**
     * Build a list of AttributeTypes read from the underlying storage for
     * a list of specified schema
     *
     * @param schemas the schemas from which AttributeTypes are loaded
     * @throws Exception if there are failures accessing AttributeType information
     */
    List<Entry> loadAttributeTypes( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of AttributeTypes read from the underlying storage for
     * a list of specific schema, using their name
     *
     * @param schemaNames the schema names from which AttributeTypes are loaded
     * @throws Exception if there are failures accessing AttributeType information
     */
    List<Entry> loadAttributeTypes( String... schemaNames ) throws Exception;

    /**
     * Build a list of Comparators read from the underlying storage for
     * a list of specific schema.
     *
     * @param schemas the schemas from which Comparators are loaded
     * @throws Exception if there are failures accessing Comparator information
     */
    List<Entry> loadComparators( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of Comparators read from the underlying storage for
     * a list of specific schema, using their name
     *
     * @param schemaNames the schema names from which Comparators are loaded
     * @throws Exception if there are failures accessing Comparator information
     */
    List<Entry> loadComparators( String... schemaNames ) throws Exception;

    /**
     * Build a list of DitContentRules read from the underlying storage for
     * a list of specific schema.
     *
     * @param schemas the schemas from which DitContentRules are loaded
     * @throws Exception if there are failures accessing DitContentRule information
     */
    List<Entry> loadDitContentRules( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of DitContentRules read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which DitContentRules are loaded
     * @throws Exception if there are failures accessing DitContentRule information
     */
    List<Entry> loadDitContentRules( String... schemaNames ) throws Exception;

    /**
     * Build a list of DitStructureRules read from the underlying storage for
     * a list of specific schema.
     *
     * @param schemas the schemas from which DitStructureRules are loaded
     * @throws Exception if there are failures accessing DitStructureRule information
     */
    List<Entry> loadDitStructureRules( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of DitStructureRules read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which DitStructureRules are loaded
     * @throws Exception if there are failures accessing DitStructureRule information
     */
    List<Entry> loadDitStructureRules( String... schemaNames ) throws Exception;

    /**
     * Build a list of MatchingRules read from the underlying storage for
     * a list of specific schema
     *
     * @param schemas the schemas from which MatchingRules are loaded
     * @throws Exception if there are failures accessing MatchingRule information
     */
    List<Entry> loadMatchingRules( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of MatchingRules read from the underlying storage for
     * a list of specific schema, using their name
     *
     * @param schemaNames the schema names from which MatchingRules are loaded
     * @throws Exception if there are failures accessing MatchingRule information
     */
    List<Entry> loadMatchingRules( String... schemaNames ) throws Exception;

    /**
     * Build a list of MatchingRuleUses read from the underlying storage for
     * a list of specific schema.
     *
     * @param schemas the schemas from which MatchingRuleUses are loaded
     * @throws Exception if there are failures accessing MatchingRuleUse information
     */
    List<Entry> loadMatchingRuleUses( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of MatchingRuleUses read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which MatchingRuleUses are loaded
     * @throws Exception if there are failures accessing MatchingRuleUses information
     */
    List<Entry> loadMatchingRuleUses( String... schemaNames ) throws Exception;

    /**
     * Build a list of NameForms read from the underlying storage for
     * a list of specific schema.
     *
     * @param schemas the schemas from which NameForms are loaded
     * @throws Exception if there are failures accessing NameForm information
     */
    List<Entry> loadNameForms( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of NameForms read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which NameForms are loaded
     * @throws Exception if there are failures accessing NameForms information
     */
    List<Entry> loadNameForms( String... schemaNames ) throws Exception;

    /**
     * Build a list of Normalizers read from the underlying storage for
     * a list of specified schema
     *
     * @param schemas the schemas from which Normalizers are loaded
     * @throws Exception if there are failures accessing Normalizer information
     */
    List<Entry> loadNormalizers( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of Normalizers read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which Normalizers are loaded
     * @throws Exception if there are failures accessing Normalizer information
     */
    List<Entry> loadNormalizers( String... schemaNames ) throws Exception;

    /**
     * Build a list of ObjectClasses read from the underlying storage for
     * a list of specific schema.
     *
     * @param schemas the schemas from which ObjectClasses are loaded
     * @throws Exception if there are failures accessing ObjectClass information
     */
    List<Entry> loadObjectClasses( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of ObjectClasses read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which ObjectClasses are loaded
     * @throws Exception if there are failures accessing ObjectClasses information
     */
    List<Entry> loadObjectClasses( String... schemaNames ) throws Exception;

    /**
     * Build a list of Syntaxes read from the underlying storage for
     * a list of specified schema
     *
     * @param schemas the schemas from which Syntaxes are loaded
     * @throws Exception if there are failures accessing Syntax information
     */
    List<Entry> loadSyntaxes( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of Syntaxes read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which Syntaxes are loaded
     * @throws Exception if there are failures accessing Syntax information
     */
    List<Entry> loadSyntaxes( String... schemaNames ) throws Exception;

    /**
     * Build a list of SyntaxCheckers read from the underlying storage for
     * a list of specified schema
     *
     * @param schemas the schemas from which SyntaxCheckers are loaded
     * @throws Exception if there are failures accessing SyntaxChecker information
     */
    List<Entry> loadSyntaxCheckers( Schema... schemas ) throws LdapException, IOException;

    /**
     * Build a list of SyntaxCheckers read from the underlying storage for
     * a list of specified schema names
     *
     * @param schemaNames the schema names from which SyntaxCheckers are loaded
     * @throws Exception if there are failures accessing SyntaxChecker information
     */
    List<Entry> loadSyntaxCheckers( String... schemaNames ) throws Exception;

    /**
     * @return the list of enabled schemas
     * @throws Exception TODO
     */
    Collection<Schema> getAllEnabled() throws Exception;

    /**
     * @return the list of all schemas
     * @throws Exception TODO
     */
    Collection<Schema> getAllSchemas() throws Exception;

    /**
     * Add a new schema to the schema's list
     */
    void addSchema( Schema schema );

    /**
     * Remove a schema from the schema's list
     */
    void removeSchema( Schema schema );
}


text:
import { ReflectiveInjector } from '@ts-stack/di';

/**
 * Used as DI token for extensions.
 */
export abstract class InjectorPerApp extends ReflectiveInjector {}


text:
include $(ERL_TOP)/make/target.mk
include $(ERL_TOP)/make/$(TARGET)/otp.mk

# ----------------------------------------------------
# Application version
# ----------------------------------------------------
include ../vsn.mk
VSN=$(TOOLS_VSN)

# ----------------------------------------------------
# Release directory specification
# ----------------------------------------------------
RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(VSN)

# ----------------------------------------------------
# Common macros
# ----------------------------------------------------
EXAMPLE_FILES = xref_examples.erl

# ----------------------------------------------------
# Targets
# ----------------------------------------------------

debug opt:

clean:

docs:

# ----------------------------------------------------
# Release Target
# ----------------------------------------------------
include $(ERL_TOP)/make/otp_release_targets.mk

release_spec: opt
	$(INSTALL_DIR) $(RELSYSDIR)/examples
	$(INSTALL_DATA) $(EXAMPLE_FILES) $(RELSYSDIR)/examples

release_docs_spec:


text:
  <canvas id="canvas" width="400px" height="400px" style="background: #EEE;"></canvas>

    <form>
      SIZE
      <input type="range" id="object-size" name="object-size" onchange="updateScale(this)" min ="1" max="100" step ="1">
      <output for="object-size" class="object-size-output"></output>
</form>

    <form>
      RSCALE
      <input type="range" id="radius-scale" name="radius-scale" onchange="updateScale(this)" min ="0.5" max="5" step ="0.05">
      <output for="radius-scale" class="radius-scale-output"></output>
    </form>

    <form>
      DATA COUNT
      <input type="range" id="count" name="count" onchange="updateScale(this)" min ="10" max="500" step ="1">
      <output for="count" class="count-output"></output>
    </form>

    <form>
      INPUT MODE
      <input type="checkbox" id="mode-toggle" name="mode" onchange="updateScale(this)" >
      <output for="mode" id="mode-output"></output>
    </form>

    <form>
      K COUNT
      <input type="number" id="k-count" name="k-count" onchange="updateScale(this)" min = "2">
      <output for="k-count" class="k-count-output"></output>
    </form>

0.0

0.0

    <button id="step">Step</button>
    <button id="reset">Reset</button>


text:
<?php

return array(

    'service_manager' => array(
        'abstract_factories' => array(
            'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
            'Zend\Log\LoggerAbstractServiceFactory',
        ),
        'aliases' => array(
            'translator' => 'MvcTranslator',
        ),

    ),

);


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
   Copyright 2004, 2005 The Apache Software Foundation

   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.
-->

<module
	id="gaderian.test.services"
	version="1.0.0">
	<service-point id="Primitive" interface="java.lang.Runnable">
		<invoke-factory service-id="gaderian.BuilderFactory" model="primitive">
		  <construct class="gaderian.test.services.impl.RunnableImpl" log-property="log">
		  	<set property="type" value="Primitive"/>
		  	<event-listener service-id="gaderian.ShutdownCoordinator"/>
		  </construct>
		</invoke-factory>
	</service-point>

	<service-point id="Singleton" interface="java.lang.Runnable">
		<invoke-factory>
		  <construct class="gaderian.test.services.impl.RunnableImpl" log-property="log">
		  	<set property="type" value="Singleton"/>
		  	<event-listener service-id="gaderian.ShutdownCoordinator"/>
		  </construct>
		</invoke-factory>
	</service-point>
</module>


text:
require "helper"

describe Google::Cloud::Bigtable::Table, :check_and_mutate_row, :mock_bigtable do
  let(:instance_id) { "test-instance" }
  let(:table_id) { "test-table" }

  it "check and mutate row" do
    mock = Minitest::Mock.new
    bigtable.service.mocked_client = mock
    table = bigtable.table(instance_id, table_id)

    row_key = "user-1"
    predicate_filter = Google::Cloud::Bigtable::V2::RowFilter.new(row_key_regex_filter: "user-1*")
    true_mutations = [
      Google::Cloud::Bigtable::V2::Mutation.new(
        delete_from_column: { family_name: "cf", column_qualifier: "field1" }
      )
    ]
    false_mutations = [
      Google::Cloud::Bigtable::V2::Mutation.new(delete_from_row: {})
    ]

    res = Google::Cloud::Bigtable::V2::CheckAndMutateRowResponse.new(predicate_matched: true)
    mock.expect :check_and_mutate_row, res,
      table_name: table_path(instance_id, table_id),
      row_key: row_key,
      predicate_filter: predicate_filter,
      true_mutations: true_mutations,
      false_mutations: false_mutations

    result = table.check_and_mutate_row(
      row_key,
      Google::Cloud::Bigtable::RowFilter.key("user-1*"),
      on_match: Google::Cloud::Bigtable::MutationEntry.new.delete_cells("cf", "field1"),
      otherwise: Google::Cloud::Bigtable::MutationEntry.new.delete_from_row
    )
    _(result).must_equal true
    mock.verify
  end

  it "check and mutate row" do
    stub = Object.new
    def stub.check_and_mutate_row *args
      raise Google::Cloud::InvalidArgumentError.new("Invalid id for collection columnFamilies")
    end
    bigtable.service.mocked_client = stub
    table = bigtable.table(instance_id, table_id)

    row_key = "user-1"
    assert_raises Google::Cloud::InvalidArgumentError do
       table.check_and_mutate_row(
        row_key,
        Google::Cloud::Bigtable::RowFilter.key("user-1*"),
        on_match: Google::Cloud::Bigtable::MutationEntry.new.delete_cells("cf-BAD ", "field1"),
        otherwise: Google::Cloud::Bigtable::MutationEntry.new.delete_from_row
      )
    end
  end
end


text:
'use strict'

var hasOwnProperty = require('../util/properties').hasOwn
var stringifySync = require('../util/safe-json').stringifySync

module.exports = function initialize(agent, redis, moduleName, shim) {
  var proto = redis && redis.RedisClient && redis.RedisClient.prototype
  if (!proto) {
    return false
  }

  shim.setDatastore(shim.REDIS)
  if (proto.internal_send_command) {
    shim.recordOperation(
      proto,
      'internal_send_command',
      function wrapInternalSendCommand(shim, internal_send_command, name, args) {
        var commandObject = args[0]
        var keys = commandObject.args
        var parameters = getInstanceParameters(this)

        if (keys && keys.length > 0) {
          parameters.key = stringifySync(keys[0], 'unknown')
        }

        return {
          name: commandObject.command || 'other',
          parameters: parameters,
          callback: function bindCallback(shim, _f, _n, segment) {
            if (shim.isFunction(commandObject.callback)) {
              shim.bindCallbackSegment(commandObject, 'callback', segment)
            } else {
              var self = this
              commandObject.callback = shim.bindSegment(function __NR_redisCallback(err) {
                if (err && self.emit instanceof Function) {
                  self.emit('error', err)
                }
              }, segment, true)
            }
          }
        }
      }
    )
  } else {
    // For redis versions <2.6.1
    shim.recordOperation(
      proto,
      'send_command',
      function wrapSendCommand(shim, send_command, name, args) {
        var keys = args[1]
        var parameters = getInstanceParameters(this)

        if (keys && !shim.isFunction(keys)) {
          parameters.key = stringifySync(keys[0], 'unknown')
        }

        return {
          name: args[0] || 'other',
          parameters: parameters,
          callback: function bindCallback(shim, _f, _n, segment) {
            var last = args[args.length - 1]
            if (shim.isFunction(last)) {
              shim.bindCallbackSegment(args, shim.LAST, segment)
            } else if (shim.isArray(last) && shim.isFunction(last[last.length - 1])) {
              shim.bindCallbackSegment(last, shim.LAST, segment)
            }
          }
        }
      }
    )
  }

  function getInstanceParameters(client) {
    if (hasOwnProperty(client, 'port') && hasOwnProperty(client, 'host')) {
      // for redis <=0.11
      return doCapture(client)
    } else if (hasOwnProperty(client, 'connection_options')) {
      // for redis 2.4.0 - 2.6.2
      return doCapture(client.connection_options)
    } else if (hasOwnProperty(client, 'connectionOption')) {
      // for redis 0.12 - 2.2.5
      return doCapture(client.connectionOption)
    } else if (hasOwnProperty(client, 'options')) {
      // for redis 2.3.0 - 2.3.1
      return doCapture(client.options)
    }

    shim.logger.debug('Could not access instance attributes on connection.')
    return {
      host: null,
      port_path_or_id: null,
      database_name: null
    }

    function doCapture(opts) {
      var db = (hasOwnProperty(client, 'selected_db') ? client.selected_db : opts.db) || 0

      return {
        host: opts.host || 'localhost',
        port_path_or_id: opts.path || opts.port || '6379',
        database_name: db
      }
    }
  }
}


text:
typedef enum {
    STBasementViewControllerEdgeNone,
    STBasementViewControllerEdgeLeft,
    STBasementViewControllerEdgeRight,
    STBasementViewControllerEdgeTop,
    STBasementViewControllerEdgeBottom
} STBasementViewControllerEdge;

@interface STBasementViewController : UIViewController

@property (nonatomic, strong) IBOutlet UIViewController *topViewController;
@property (nonatomic, strong) UIViewController *bottomViewController;
@property (nonatomic, assign, readonly) BOOL basementIsVisible;

// Presentation
- (void)presentBottomViewController:(UIViewController *)inViewController fromEdge:(STBasementViewControllerEdge)inEdge;
- (void)presentBottomViewController:(UIViewController *)inViewController fromEdge:(STBasementViewControllerEdge)inEdge animationDuration:(NSTimeInterval)inAnimationDuration;

- (void)hideBottomViewWithAnimationDuration:(NSTimeInterval)inAnimationDuration;
- (void)hideBottomView;

@end

@interface DQBasementDimmerView : UIView

@end