text:
//=================================================================================================

//=================================================================================================

#ifndef _BLAZE_MATH_FUNCTIONS_H_
#define _BLAZE_MATH_FUNCTIONS_H_

//*************************************************************************************************
// Includes
//*************************************************************************************************

#include <cmath>
#include <blaze/math/traits/MathTrait.h>
#include <blaze/system/Inline.h>
#include <blaze/util/constraints/Builtin.h>
#include <blaze/util/constraints/FloatingPoint.h>
#include <blaze/util/constraints/Integral.h>
#include <blaze/util/StaticAssert.h>
#include <blaze/util/Types.h>
#include <blaze/util/typetraits/IsFloatingPoint.h>
#include <blaze/util/typetraits/IsSigned.h>

namespace blaze {

//=================================================================================================
//
//  MATHEMATICAL UTILITY FUNCTIONS
//
//=================================================================================================

//*************************************************************************************************
/*!\name Mathematical utility functions */
//@{
template< typename T >
inline int sign( T a );

template< typename T >
inline size_t digits( T a );

template< typename T1, typename T2 >
BLAZE_ALWAYS_INLINE const typename MathTrait<T1,T2>::HighType
   min( const T1& a, const T2& b );

template< typename T1, typename T2, typename T3 >
BLAZE_ALWAYS_INLINE const typename MathTrait< typename MathTrait<T1,T2>::HighType, T3 >::HighType
   min( const T1& a, const T2& b, const T3& c );

template< typename T1, typename T2 >
BLAZE_ALWAYS_INLINE const typename MathTrait<T1,T2>::HighType
   max( const T1& a, const T2& b );

template< typename T1, typename T2, typename T3 >
BLAZE_ALWAYS_INLINE const typename MathTrait< typename MathTrait<T1,T2>::HighType, T3 >::HighType
   max( const T1& a, const T2& b, const T3& c );

template< typename T >
BLAZE_ALWAYS_INLINE T round( T a );

template< typename T1, typename T2 >
BLAZE_ALWAYS_INLINE bool lessThan( T1 a, T2 b );
//@}
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Sign function.
// \ingroup math
//
// \param a The given value.
// \return 1 if the value is greater than zero, 0 if it is zero, and -1 if it is smaller than zero.
//
// The sign function only works for built-in data types. The attempt to use any user-defined class
// type will result in a compile time error.
*/
template< typename T >
inline int sign( T a )
{
   BLAZE_CONSTRAINT_MUST_BE_BUILTIN_TYPE( T );

   if( IsSigned<T>::value || IsFloatingPoint<T>::value )
      return ( T(0) < a ) - ( a < T(0) );
   else
      return ( T(0) < a );
}
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Returns the number of valid digits of an integral value.
// \ingroup math
//
// \param a The integral value.
// \return The number of valid digits.
//
// This function counts the number of valid digits in the given integral value.

   \code
   digits( 100   );  // Returns 3
   digits( 12345 );  // Returns 5
   digits( 0     );  // Returns 0
   \endcode

// The digits function only works for integral built-in data types. The attempt to use any
// other type will result in a compile time error.
*/
template< typename T >
inline size_t digits( T a )
{
   BLAZE_CONSTRAINT_MUST_BE_INTEGRAL_TYPE( T );

   size_t count( 0 );

   while( a != 0 ) {
      a /= 10;
      ++count;
   }

   return count;
}
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Minimum function for two arguments.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \return The minimum of the two values.
//
// This function returns the minimum of the two given data values. The return type of the
// function is determined by the data types of the given arguments (for further detail see
// the MathTrait class description).
*/
template< typename T1, typename T2 >
BLAZE_ALWAYS_INLINE const typename MathTrait<T1,T2>::HighType min( const T1& a, const T2& b )
{
   // The return type of the function is only a copy of the one of the arguments for two reasons:
   //  - in case the data types T1 and T2 are equal, a reference return type could result in a
   //    bug if combined with literals
   //  - in case the two data types are unequal, the result of the comparison could be converted
   //    to the more significant data type, which results in a local temporary value
   // The copy operation might cause a performance decrease for class types, which is probably
   // avoided if the function is inlined.
   return ( a < b )?( a ):( b );
}
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Minimum function for three arguments.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \param c Third value
// \return The minimum of the three values.
//
// This function returns the minimum of the three given data values. The return type of the
// function is determined by the data types of the given arguments (for further detail see
// the MathTrait class description).
*/
template< typename T1, typename T2, typename T3 >
BLAZE_ALWAYS_INLINE const typename MathTrait< typename MathTrait<T1,T2>::HighType, T3 >::HighType
   min( const T1& a, const T2& b, const T3& c )
{
   // The return type of the function is only a copy of the one of the arguments for two reasons:
   //  - in case the data types T1, T2, and T3 are equal, a reference return type could result in
   //    a bug if combined with literals
   //  - in case the three data types are unequal, the result of the comparison could be converted
   //    to the more significant data type, which results in a local temporary value
   // The copy operation might cause a performance decrease for class types, which is probably
   // avoided if the function is inlined.
   return ( a < b )?( ( a < c )?( a ):( c ) ):( ( b < c )?( b ):( c ) );
}
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Maximum function for two arguments.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \return The maximum of the two values.
//
// This function returns the maximum of the two given data values. The return type of the
// function is determined by the data types of the given arguments (for further detail see
// the MathTrait class description).
*/
template< typename T1, typename T2 >
BLAZE_ALWAYS_INLINE const typename MathTrait<T1,T2>::HighType max( const T1& a, const T2& b )
{
   // The return type of the function is only a copy of the one of the arguments for two reasons:
   //  - in case the data types T1 and T2 are equal, a reference return type could result in a
   //    bug if combined with literals
   //  - in case the two data types are unequal, the result of the comparison could be converted
   //    to the more significant data type, which results in a local temporary value
   // The copy operation might cause a performance decrease for class types, which is probably
   // avoided if the function is inlined.
   return ( a < b )?( b ):( a );
}
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Maximum function for three arguments.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \param c Third value.
// \return The maximum of the three values.
//
// This function returns the maximum of the three given data values. The return type of the
// function is determined by the data types of the given arguments (for further detail see
// the MathTrait class description).
*/
template< typename T1, typename T2, typename T3 >
BLAZE_ALWAYS_INLINE const typename MathTrait< typename MathTrait<T1,T2>::HighType, T3 >::HighType
   max( const T1& a, const T2& b, const T3& c )
{
   // The return type of the function is only a copy of the one of the arguments for two reasons:
   //  - in case the data types T1, T2, and T3 are equal, a reference return type could result in
   //    a bug if combined with literals
   //  - in case the three data types are unequal, the result of the comparison could be converted
   //    to the more significant data type, which results in a local temporary value
   // The copy operation might cause a performance decrease for class types, which is probably
   // avoided if the function is inlined.
   return ( a < b )?( ( b < c )?( c ):( b ) ):( ( a < c )?( c ):( a ) );
}
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Rounds the given input value.
// \ingroup math
//
// \param a Value to be rounded.
// \return The rounded value.
//
// This function rounds the given input value. In case the first digit after the comma
// is smaller than five the value is rounded down. Otherwise it is rounded up. Note that
// this function only works for integral and floating point types. The attempt to use the
// function for any other type will result in a compile time error.
*/
template< typename T >
BLAZE_ALWAYS_INLINE T round( T a )
{
   BLAZE_CONSTRAINT_MUST_BE_INTEGRAL_TYPE( T );
   return a;
}
//*************************************************************************************************

//*************************************************************************************************
/*! \cond BLAZE_INTERNAL */
/*!\brief Rounds the given single precision floating point value.
// \ingroup math
//
// \param a Value to be rounded.
// \return The rounded value.
//
// This function rounds the given single precision floating point value. In case the first
// digit after the comma is smaller than five the value is rounded down. Otherwise it is
// rounded up.
*/
template<>
BLAZE_ALWAYS_INLINE float round( float a )
{
   return std::floor( a + 0.5F );
}
/*! \endcond */
//*************************************************************************************************

//*************************************************************************************************
/*! \cond BLAZE_INTERNAL */
/*!\brief Rounds the given double precision floating point value.
// \ingroup math
//
// \param a Value to be rounded.
// \return The rounded value.
//
// This function rounds the given double precision floating point value. In case the first
// digit after the comma is smaller than five the value is rounded down. Otherwise it is
// rounded up.
*/
template<>
BLAZE_ALWAYS_INLINE double round<double>( double a )
{
   return std::floor( a + 0.5 );
}
/*! \endcond */
//*************************************************************************************************

//*************************************************************************************************
/*! \cond BLAZE_INTERNAL */
/*!\brief Rounds the given long double precision floating point value.
// \ingroup math
//
// \param a Value to be rounded.
// \return The rounded value.
//
// This function rounds the given long double precision floating point value. In case the
// first digit after the comma is smaller than five the value is rounded down. Otherwise
// it is rounded up.
*/
template<>
BLAZE_ALWAYS_INLINE long double round<long double>( long double a )
{
   return std::floor( a + 0.5L );
}
/*! \endcond */
//*************************************************************************************************

//*************************************************************************************************
/*! \cond BLAZE_INTERNAL */
/*!\brief Less-than comparison for integral data types.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \return \a true if the first value is smaller than the second, \a false if not.
//
// Less-than function for the comparison of two integral values.
*/
template< typename T >
BLAZE_ALWAYS_INLINE bool lessThan_backend( T a, T b )
{
   return a < b;
}
/*! \endcond */
//*************************************************************************************************

//*************************************************************************************************
/*! \cond BLAZE_INTERNAL */
/*!\brief Less-than comparison for single precision floating point values.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \return \a true if the first value is smaller than the second, \a false if not.
//
// Less-than function for the comparison of two single precision floating point numbers. Due
// to the limited machine accuracy, a direct comparison of two floating point numbers should
// be avoided. This functions offers the possibility to compare two floating-point values with
// a certain accuracy margin.
*/
template<>
BLAZE_ALWAYS_INLINE bool lessThan_backend<float>( float a, float b )
{
   return ( b - a ) > 1E-8F;
}
/*! \endcond */
//*************************************************************************************************

//*************************************************************************************************
/*! \cond BLAZE_INTERNAL */
/*!\brief Less-than comparison for double precision floating point values.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \return \a true if the first value is smaller than the second, \a false if not.
//
// Less-than function for the comparison of two double precision floating point numbers. Due
// to the limited machine accuracy, a direct comparison of two floating point numbers should
// be avoided. This functions offers the possibility to compare two floating-point values with
// a certain accuracy margin.
*/
template<>
BLAZE_ALWAYS_INLINE bool lessThan_backend<double>( double a, double b )
{
   return ( b - a ) > 1E-8;
}
/*! \endcond */
//*************************************************************************************************

//*************************************************************************************************
/*! \cond BLAZE_INTERNAL */
/*!\brief Less-than comparison for long double precision floating point values.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \return \a true if the first value is smaller than the second, \a false if not.
//
// Less-than function for the comparison of two long double precision floating point numbers. Due
// to the limited machine accuracy, a direct comparison of two floating point numbers should be
// avoided. This functions offers the possibility to compare two floating-point values with a
// certain accuracy margin.
*/
template<>
BLAZE_ALWAYS_INLINE bool lessThan_backend<long double>( long double a, long double b )
{
   return ( b - a ) > 1E-10;
}
/*! \endcond */
//*************************************************************************************************

//*************************************************************************************************
/*!\brief Generic less-than comparison.
// \ingroup math
//
// \param a First value.
// \param b Second value.
// \return \a true if the first value is smaller than the second, \a false if not.
//
// Generic less-than comparison between to numeric values. Depending on the types of the
// two arguments, a special comparison for floating point values is selected that takes
// the limited machine accuracy into account.
*/
template< typename T1, typename T2 >
BLAZE_ALWAYS_INLINE bool lessThan( T1 a, T2 b )
{
   typedef typename MathTrait<T1,T2>::HighType  High;
   return lessThan_backend<High>( a, b );
}
//*************************************************************************************************

} // namespace blaze

#endif


text:
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">

{%- include head.html -%}

<body>

    {%- include header.html -%}

    <main class="page-content"
          aria-label="Content">
        <div class="wrapper">
            {{ content }}
        </div>
    </main>

    {%- include footer.html -%}

    <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)']],
    processEscapes: true
  }
});
</script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
            type="text/javascript"></script>

</body>

</html>

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
class Version20160629123733 extends AbstractMigration
{
    /**
     * @param Schema $schema
     */
    public function up(Schema $schema)
    {
        $this->addSql('ALTER TABLE campaignchain_location_google_analytics ADD propertyId VARCHAR(55) DEFAULT NULL');
    }

    /**
     * @param Schema $schema
     */
    public function down(Schema $schema)
    {
        // this down() migration is auto-generated, please modify it to your needs

    }
}


text:
package org.apache.camel.impl;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.RouteNode;
import org.apache.camel.model.AggregateDefinition;
import org.apache.camel.model.ProcessorDefinition;

/**
 * @version
 */
public class AggregateRouteNode implements RouteNode {

    private AggregateDefinition aggregateDefinition;

    public AggregateRouteNode(AggregateDefinition aggregateDefinition) {
        this.aggregateDefinition = aggregateDefinition;
    }

    public Processor getProcessor() {
        return null;
    }

    public ProcessorDefinition<?> getProcessorDefinition() {
        return null;
    }

    public String getLabel(Exchange exchange) {
        String expressionString = (aggregateDefinition.getExpression() != null) ? aggregateDefinition.getExpression().getLabel() : "";
        return "aggregate[" + expressionString + "]";
    }

    public boolean isAbstract() {
        return true;
    }

    @Override
    public String toString() {
        return "AggregateRouteNode";
    }
}


text:
package org.apache.lucene.util;

import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.channels.Channels;
import java.nio.channels.SeekableByteChannel;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CodingErrorAction;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.zip.GZIPInputStream;

import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.FieldType;
import org.apache.lucene.document.IntField;
import org.apache.lucene.document.NumericDocValuesField;
import org.apache.lucene.document.SortedDocValuesField;
import org.apache.lucene.document.StringField;
import org.apache.lucene.document.TextField;
import org.apache.lucene.index.IndexOptions;

/** Minimal port of benchmark's LneDocSource +
 * DocMaker, so tests can enum docs from a line file created
 * by benchmark's WriteLineDoc task */
public class LineFileDocs implements Closeable {

  private BufferedReader reader;
  private final static int BUFFER_SIZE = 1 << 16;     // 64K
  private final AtomicInteger id = new AtomicInteger();
  private final String path;
  private final boolean useDocValues;

  /** If forever is true, we rewind the file at EOF (repeat
   * the docs over and over) */
  public LineFileDocs(Random random, String path, boolean useDocValues) throws IOException {
    this.path = path;
    this.useDocValues = useDocValues;
    open(random);
  }

  public LineFileDocs(Random random) throws IOException {
    this(random, LuceneTestCase.TEST_LINE_DOCS_FILE, true);
  }

  public LineFileDocs(Random random, boolean useDocValues) throws IOException {
    this(random, LuceneTestCase.TEST_LINE_DOCS_FILE, useDocValues);
  }

  @Override
  public synchronized void close() throws IOException {
    IOUtils.close(reader, threadDocs);
    reader = null;
  }

  private long randomSeekPos(Random random, long size) {
    if (random == null || size <= 3L)
      return 0L;
    return (random.nextLong()&Long.MAX_VALUE) % (size/3);
  }

  private synchronized void open(Random random) throws IOException {
    InputStream is = getClass().getResourceAsStream(path);
    boolean needSkip = true;
    long size = 0L, seekTo = 0L;
    if (is == null) {
      // if it's not in classpath, we load it as absolute filesystem path (e.g. Hudson's home dir)
      Path file = Paths.get(path);
      size = Files.size(file);
      if (path.endsWith(".gz")) {
        // if it is a gzip file, we need to use InputStream and slowly skipTo:
        is = Files.newInputStream(file);
      } else {
        // optimized seek using SeekableByteChannel
        seekTo = randomSeekPos(random, size);
        final SeekableByteChannel channel = Files.newByteChannel(file);
        if (LuceneTestCase.VERBOSE) {
          System.out.println("TEST: LineFileDocs: file seek to fp=" + seekTo + " on open");
        }
        channel.position(seekTo);
        is = Channels.newInputStream(channel);
        needSkip = false;
      }
    } else {
      // if the file comes from Classpath:
      size = is.available();
    }

    if (path.endsWith(".gz")) {
      is = new GZIPInputStream(is);
      // guestimate:
      size *= 2.8;
    }

    // If we only have an InputStream, we need to seek now,
    // but this seek is a scan, so very inefficient!!!
    if (needSkip) {
      seekTo = randomSeekPos(random, size);
      if (LuceneTestCase.VERBOSE) {
        System.out.println("TEST: LineFileDocs: stream skip to fp=" + seekTo + " on open");
      }
      is.skip(seekTo);
    }

    // if we seeked somewhere, read until newline char
    if (seekTo > 0L) {
      int b;
      do {
        b = is.read();
      } while (b >= 0 && b != 13 && b != 10);
    }

    CharsetDecoder decoder = StandardCharsets.UTF_8.newDecoder()
        .onMalformedInput(CodingErrorAction.REPORT)
        .onUnmappableCharacter(CodingErrorAction.REPORT);
    reader = new BufferedReader(new InputStreamReader(is, decoder), BUFFER_SIZE);

    if (seekTo > 0L) {
      // read one more line, to make sure we are not inside a Windows linebreak (\r\n):
      reader.readLine();
    }
  }

  public synchronized void reset(Random random) throws IOException {
    reader.close();
    reader = null;
    open(random);
    id.set(0);
  }

  private final static char SEP = '\t';

  private static final class DocState {
    final Document doc;
    final Field titleTokenized;
    final Field title;
    final Field titleDV;
    final Field body;
    final Field id;
    final Field idNum;
    final Field idNumDV;
    final Field date;

    public DocState(boolean useDocValues) {
      doc = new Document();

      title = new StringField("title", "", Field.Store.NO);
      doc.add(title);

      FieldType ft = new FieldType(TextField.TYPE_STORED);
      ft.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS);
      ft.setStoreTermVectors(true);
      ft.setStoreTermVectorOffsets(true);
      ft.setStoreTermVectorPositions(true);

      titleTokenized = new Field("titleTokenized", "", ft);
      doc.add(titleTokenized);

      body = new Field("body", "", ft);
      doc.add(body);

      id = new StringField("docid", "", Field.Store.YES);
      doc.add(id);

      idNum = new IntField("docid_int", 0, Field.Store.NO);
      doc.add(idNum);

      date = new StringField("date", "", Field.Store.YES);
      doc.add(date);

      if (useDocValues) {
        titleDV = new SortedDocValuesField("titleDV", new BytesRef());
        idNumDV = new NumericDocValuesField("docid_intDV", 0);
        doc.add(titleDV);
        doc.add(idNumDV);
      } else {
        titleDV = null;
        idNumDV = null;
      }
    }
  }

  private final CloseableThreadLocal<DocState> threadDocs = new CloseableThreadLocal<>();

  /** Note: Document instance is re-used per-thread */
  public Document nextDoc() throws IOException {
    String line;
    synchronized(this) {
      line = reader.readLine();
      if (line == null) {
        // Always rewind at end:
        if (LuceneTestCase.VERBOSE) {
          System.out.println("TEST: LineFileDocs: now rewind file...");
        }
        reader.close();
        reader = null;
        open(null);
        line = reader.readLine();
      }
    }

    DocState docState = threadDocs.get();
    if (docState == null) {
      docState = new DocState(useDocValues);
      threadDocs.set(docState);
    }

    int spot = line.indexOf(SEP);
    if (spot == -1) {
      throw new RuntimeException("line: [" + line + "] is in an invalid format !");
    }
    int spot2 = line.indexOf(SEP, 1 + spot);
    if (spot2 == -1) {
      throw new RuntimeException("line: [" + line + "] is in an invalid format !");
    }

    docState.body.setStringValue(line.substring(1+spot2, line.length()));
    final String title = line.substring(0, spot);
    docState.title.setStringValue(title);
    if (docState.titleDV != null) {
      docState.titleDV.setBytesValue(new BytesRef(title));
    }
    docState.titleTokenized.setStringValue(title);
    docState.date.setStringValue(line.substring(1+spot, spot2));
    final int i = id.getAndIncrement();
    docState.id.setStringValue(Integer.toString(i));
    docState.idNum.setIntValue(i);
    if (docState.idNumDV != null) {
      docState.idNumDV.setLongValue(i);
    }
    return docState.doc;
  }
}


text:
<?php

namespace Admin;

use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
// Add these import statements:
use Smeagol\Model\Node;
use Smeagol\Model\NodeTable;
use Smeagol\Model\User;
use Smeagol\Model\UserTable;
use Smeagol\Model\Menu;
use Smeagol\Model\MenuTable;

use Admin\Model\Page;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;

class Module implements AutoloaderProviderInterface, ConfigProviderInterface {

    public function getAutoloaderConfig() {
        return array(
            'Zend\Loader\ClassMapAutoloader' => array(
                __DIR__ . '/autoload_classmap.php',
            ),
            'Zend\Loader\StandardAutoloader' => array(
                'namespaces' => array(
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                    "Smeagol" => __DIR__ . '/../../model/src/Smeagol',
                ),
            ),
        );
    }

    public function getConfig() {
        return include __DIR__ . '/config/module.config.php';
    }

    public function getServiceConfig() {
        return array(
            'factories' => array(
                'Smeagol\Model\NodeTable' => function($sm) {
            $tableGateway = $sm->get('NodeTableGateway');
            $table = new NodeTable($tableGateway);
            return $table;
        },
                'NodeTableGateway' => function ($sm) {
            $dbAdapter = $sm->get('Zend\Db\Adapter\Adapter');
            $resultSetPrototype = new ResultSet();
            $resultSetPrototype->setArrayObjectPrototype(new Node());
            return new TableGateway('node', $dbAdapter, null, $resultSetPrototype);
        },
                //....  Agregar en el Método getServiceConfig()
             'Smeagol\Model\MenuTable' => function($sm) {
            $tableGateway = $sm->get('MenuTableGateway');
            $table = new MenuTable($tableGateway);
            return $table;
        },
                'MenuTableGateway' => function ($sm) {
            $dbAdapter = $sm->get('Zend\Db\Adapter\Adapter');
            $resultSetPrototype = new ResultSet();
            $resultSetPrototype->setArrayObjectPrototype(new Menu());
            return new TableGateway('menu', $dbAdapter, null, $resultSetPrototype);
        },
                'Admin\Model\Page' => function($sm) {
            $tableGateway = $sm->get('NodeTableGateway');
            $table = new Page($tableGateway);
            return $table;
        },
            ),
        );
    }

}


text:
<TITLE>Learn How To Learn or Master Modern English and Any Other Subject 10 Times Faster</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">

<meta http-equiv="Content-Language" content="en">

<meta name="abstract" content="Learn, Improve or Master English and Any Other Subject Ten Times Faster with SupremeLearning courses">

<meta name="robots" content="FOLLOW,INDEX">

<meta name="revisit-after" content="1 day">

<meta name="description" content="Improve or master your English and Learn How To Learn Any Subject Ten Times Faster with SupremeLearning courses. Learn, improve, or master spoken or written foreign languages, pronunciation, phonetics, accent, spelling, grammar, listening, comprehension, memory -- even typing or speed-reading.">

<meta name="keywords" content="superlearning,supremelearning,accelerated-learning,learn,how,rapid,ESL,English,languages,Berlitz,phonetics,courses,pronunciation,teaching,Mavis,accelerated,Beacon,learning,English,ESL,American,faster,superlearning,suggestopedia,neuro-linguistics,foreigners,programming,beginners,advanced,adult,learners,improvement,accelerated,English,American,superlearning,supremelearning,intonation,accent,reduction,speech,super,learning,American,accelerated-learning,ESL,relaxed-learning,relaxed,TOEFL,languages,Lozanov,memory,mega,accelerative,USA,intensive,grammar,comprehension,listening,reading,writing,spoken,spelling,mp3,typing,audio,video,books,software,second,speed,techniques,methods,subliminal,message,suggestive,vocabulary,phonics,kevin,training,verbal,advantage,self,skills,immersion,NLP,lazy,easier,mnemonics,suggestive-accelerative,studies,speed-reading">

<LINK href="images/home.css" type="text/css" rel="stylesheet">

ESPANOL

  | CHINESE |

  RUSSIAN

  | UKRAINIAN

  | FRENCH | GERMAN

Home page

Seminar

excerpts

Limited

time SupremeLearning™ English self-study course $pecial

Course

ordering via Wayward Ventures Publishing stores

Course

ordering via Amazon.com

Course

& auditory

seminar information

Principal

author

Book

excerpts

Transcript excerpts

Business cooperation & joint venture posibilities

How to become a licensed instructor of SupremeTeaching™

Contact us

English links

  ENGLISH LINKS

If

  it walks like an educator,

  And talks like an educator,

  You can bet it's

  NOT  an

  educator.

"[This]

  is really extraordinary."

-- Norris McWhirter, founding editor and author of the

  Guinness Book of World Records [Read more...]

Learn, Improve or Master

  English up to Ten Times Faster & More Effectively with Universal SupremeLearning™

  English Self-

  Study Courses or

 Learn How To Learn

  or Teach

  English & Any Other Subject Fast and Effectively with LearnHowToLearn™

  and SupremeTeaching™ Auditory

  Courses & Seminars in New York

 Questions? Call 24/7 Toll Free (in US & Canada): 1-800-557-7763
                            or Direct:  1-917-208-7434 & 1-917-208-9964

Courses

  and seminars were developed by industry experts of Wayward Ventures Publishing

  in cooperation with World-Renowned Educator, Bestselling Author, Investigative

  Journalist & Consumer Advocate in the Field of Education, "The Learning

  Annex" Lecturer,  Mr. Michael

  Shestov

It may seem unbelievable, but international educators tend

  to not even know how to learn or improve English or other skills in themselves.

  [Read more...]

 Michael Shestov:

 <justify> "When the

language instructors of even such great countries as US and UK can hardly even

dream of effectively improving any level of language skills of the 'old' and 'new'

Americans and Britons, who is left to help the foreign authors of modern English

self-study manuals and courses, master pronunciation and teach themselves

to speak and write standard English fluently?" [Read

more...] </justify>

11 Rules of Grammar

A Base for ESL Games -

Esl games, books and online resources. Kids and esl games, activities, songs,

lessons and resources.

A Grand List of

ESL Bookmarks - Contains a grand list of ESL BOOKMARKS, separated into

categories, dictionaries, online newspapers, magazines, educational sites, word

games, and puzzles.

A.Word.A.Day -

Exploring Strange New Words...

Aardvark's EFL Resources -

Interactive English language exercises, links, and other resources students and

teachers of English.

About.com's ESL

Guide - About.com's one stop guide to ESL Software Reviews.

ACCESS International English

Language Centre - Learn English in Toronto, Canada with ACCESS' exciting

STUDY-TOUR program. Live with a Canadian family and experience real Canadian

culture!

Advanced English with eViews - Produces

a weekly interview to listen to, then bundles it with a glossary and a

comprehension exercise. Subscription free for students. Also provides lesson

plans with paid subscription.

Aloud - Practice your

English conversation with ESL teachers on-line for free.

alt.usage.english

FAQ

American English Programs of New

England - American English Program offers four week international TEFL

Certificate courses in Teaching English as a Foreign Language overseas: teach

abroad with AEP, the most affordable program in the U.S.

American Literacy Council (ALC) -

Provides resources and assistance to persons and organizations involved in the

"literacy crisis in America". About ALC, literacy figures, membership, free

software, spelling lists #1 and #2, sample lists, spelling matters, ALC mission

and Board. Spell-Well trademarked teaching aid.

An Etymological

Dictionary of Classical Mythology - English words with origins in Greek and

Roman mythology.

Anotek.com - Learn

English CDROM. Teaches reading, spelling, pronunciation, phonetics, vocabulary

and handwriting. Multimedia interactive CDROM with custom-made pictures. Over

10000 academic exercises.

ASC Netlanguages -

Teacher-supported language courses online. 5 levels with 120-150 hours each.

Austin English

Academy - Austin English Academy is a ESL school that offers small classes

and high quality teaching. Multiple levels and a variety of classes are offered.

BenJX:

Learning English - For Students - Make no mistake, learning any language to

proficiency takes thousands of hours, but learning enough to be able to

communicate reasonably well is not so difficult. This BenJX Web site has plenty

of hints about how to improve your communication skills in the English (or any

other) language. You'll also find some detailed suggestions on how to read and

understand more.

bernieh's english language teaching

& learning resources - Here you'll find links to valuable resources for

teachers and students of English language.

Bilingual Teacher Training -

Virtual Learning Systems - Bilingual (ESL, ELD, LEP, ELL, LEP) teacher

training and staff development videos and other teaching aids for district

staff, teacher, and administrators.

British National Corpus - Searchable

database of British English usage.

BTRSPL - Program that

converts whole documents in minutes to and from a rational spelling system. Free

program developed on George Lahey's notations.

California, Santa Barbara: University of

California, Santa Barbara International Programs - Offers foreign language,

TESL, and international business courses year-round.

CALL Help

Page - Lists dozens of links to sites that provide software appropriate for

English language learners; includes both shareware sites and commercial demos.

Cambridge

School of ESL English Learning - Interactive ESL English language study

lessons for students to learn and improve their English language speaking,

English conversation, and English understanding.

Clear Speech Works - Improve

your accent in English. Guaranteed. Interactive, multimedia CD-ROM developed by

university professors. Designed for speakers of 45 languages. Includes video

instruction, human facial close-ups & real male/female model voices. Over

5000 examples. Easy to use, fun and proven effective.

Correct

Pronunciation: A Prescriptive Dictionary [in Fanetiks] - Standard

pronunciation for world English by L. Craig Schoonmaker, the inventor of

Fanetiks.

Creative English

Workshop - Private English lessons, using audio and video "live"

conferencing.

Creative Languages -

Language learning from Geneva. Efl resources for students and teachers.

CultureGlobe - an ezine about

cultures around the world. - Global cultures, folk tales, customs and

superstitions - all topics for articles with hyperlinks to definitions for

difficult vocabulary - ideal for ESL readers.

Dales English Language Training

Associates - Online tuition and consultancy in English and linguistics for:

TEFL training; grammar and use of English for all examinations including (UCLES)

CEELT, IELTS; academic speech and language studies. Copy-checking for

academic/commercial texts in English.

Discovery Educational

Software - Educational software for learners of English, games involving the

use of English, on CD-Rom, Help given in four languages. Download free trial.

DynEd International - ESL Software.

Award-winning, multimedia software for learning English, Spanish, and Japanese.

Network solutions for schools and corporate programs.

Educational Software Library -

Computer programs for English as a Second Language. Form of tests similar to

TOEFL. Useful for ESL students and teachers. Sample programs available for

downloading.

Edutainment EFL and ESL

Lessons Games, Songs - Teach language with fun and games.

EFI Home Page - Free online instruction

by volunteer teachers to students from all over the world to facilitate the

learning of English by Internet.

EFL Club - English as a

foreign language for speakers of other languages.

Electronic English Club - FREE online

English courses, tests, quizzes, discussion forums, an idiom of the day, online

events and more!

ELICOS: An Australian Site for EFL/ESL

Students - This site is our department home page but it also offers links to

English Language Activities for students, English language resources for

teachers and some local activities you might be interested in. Play the Brisbane

Adventure or the Golden Eagle Quest, add your opinions to the discussion pages

and the movie reviews or even learn how to MOO

Encomium Publications - Interactive

software helps students meet U.S. university requirements and gain working

knowledge of business English.

English as Another Language -

Provides resources, activities, projectss and research for teachers and learners

of English.

English Book Centre Online

Bookstore - One of the largest ELT/EFL materials catalogues available on the

Internet. Features monthly special offers, articles written by ELT authors,

advice, and mailing list.

English courses by Aspera -

Aspera offers English as a second language courses with highly qualified

teachers online 24 hours a day.

English Exercises Online -

Publicity-free site with lots of interactive exercises for learners of English

as a second language. For teachers there's an interesting collection of

ready-to-use handouts.

English

Express - English may be learned starting at your present level using

interactive multimedia language courses from English Express

English Listening Lounge -

For learners, recordings (Real Audio format) of English speakers.

English Online Net Homepage -

This site offers you a collection of links related to English on the Internet

(e.g. online dictionaries, translation, language structure and grammar,

penpals).

English Robin Internet English

School - Internet English School using new technology! Audio/Video

streaming, Video conferencing calls Learn English while having fun!

English Simplified Spelling

by Dr. C. George Boeree - English spelling proposals by Dr. Boeree.

Introduction, vowels, consonants, samples from Abraham Lincoln's "Gettysburg

Address" and Hamlet's Solioquy / "Inglish Simplifid Speling: Introduxion,

vowelz, consonants". Note that Dr. Boeree is also the inventor of "Lingua Franca

Nova", an International Auxiliary Language.

English Through the

Internet - Teacher trainees meet with students of English through the

Internet and learn the tools of the Internet together, and at the same time the

teacher trainees help the EFL pupils to improve their reading and writing

skills.

English Today -

Multimedia CD-ROM software. Learn and improve your English language conversation

skills. Listen to thousands of spoken English words. For beginner to advanced.

English Word Games with

Japanese - English word games with Japanese translations, hangman, puzzles

and word search. Teaching resources and basic Japanese.

English, baby! - Learn English,

make friends and have fun at English, baby! We use American culture to teach

real English, including movies, music, slang words and conversations. Join

today!

english-net.com - Free online

English lessons, free IELTS classes, study guides for Britain, the USA,

Australia and more.

English-Russian Lexical

Associations - 5,000 English words Russians know even without the study of

English.

English-Zone.Com - This is a fun site

for students who are learning English as a second language, or studying English

in general. Learn some idioms, practice English verbs, test your grammar, check

out the fun stuff page, write a silly story, or visit links to other English

sites.

http://www.english-at-home.com/ -

Learning tips and advice and free newsletter ideal for learning or improving

English.

EnglishLive - The world´s largest

internet English school, where you can learn with native speakers right from

your home or office

EnglishOnline.net - Online

writing courses, conversation and grammer lessons, newsletter, other resources.

EnglishSpace - Free, online,

collaborative and self-study English language lessons for English as a second,

additional or foreign language learners and their teachers. EnglishSpace is a

complete and interactive language course open to all.

ENGLISHTOGETHER

english help by email - General, business, education, vocation, profession,

occupation, technical, special, style, register - whatever your need, we can

provide grammar support, text correction, context vocabulary, tailor-made or

structured courses, situation simulations.

ESHP - English Studies Home

Page - Resources and links for students and teachers of English as a foreign

or second language.

ESL Credit

Courses Online - Levels 1-4 - ESL grammar/culture courses offered online for

levels 1-4. Courses incorporate listening, speaking, reading and writing skills.

Registration and materials ordered online.

ESL Forums Network - A

resource and community for ESL teachers and students.

ESL Materials - Offers flash

cards, question cards, role play books, and so forth.

ESL Online Resources -

ESL/TESL resources for ESL games, songs, chat, lesson plans and activities and

books. For both students and teachers.

ESL PartyLand - Fun site with

over 75 interactive quizzes, 15 discussion forums and topic-based learning pages

for students. On the teachers side, loads of lessons and printable materials to

use in class.

ESL

PartyLand--Quiz Center - Online exercises help students review business

English, grammar, idioms, slang, and other useful phrases.

ESL Software - DynEd International -

Award-winning, multimedia language learning software (ESL, EFL, ELT, Spanish,

Japanese) for schools, universities, and corporations. Network solutions

available.

ESL Software from DynEd

International - Award-winning, multimedia software for learning English

(ESL, LEP, EFL, ELT).

ESL SuperStore - A world of ESL product

information at your fingertips! Quick and easy access to over 30 ESL publishers.

EslGames.com - Home page of

Edutainment, a photocopy-free book on the subject of teaching with games. Site

provides free samples, as well as an essay on why pop music shoud be integrated

into the English curriculum.

ESLnotes - The English Learer Movie

Guides - Each guide reviews one popular movie, and includes a plot summary,

list of major characters, and glossary of vocabulary and cultural references.

ESLonline - Resources and

information Center for ESL/EFL. Browse links, discuss topics in forums, or just

take a look around.

Expertenglish.com - College

Rankings, Free English Lessons, Application Consulting - Free site that will

make your English perfect! Grammar! Vocab! American Slang! Also a section on MBA

and undergraduate rankings as well as university application consulting.

Fanetiks: Reformed (Phonetic)

English Spelling - Fanetiks a spelling reform scheme put forward by L. Craig

Schoonmaker. Used successfully as a teaching tool.

Formavision - The

ELLIS system: a multimedia course in English as a foreign language. Actively

involves the student in reading, writing, listening, speaking, and testing.

Free English Course from

Eloquence - English From Scratch is a free English course aimed at absolute

beginners. No prior knowledge of English is required.

Free ESL Games

Online - Free online ESL games and other resources. Kids and ESL games,

activities, songs, lessons, books and videos.

freeENGLISH - Provides free ESL

instruction through a free, downloadable, interactive internet-based program

called English Pro Web Edition. Also has fun and challenging games, puzzles,

quizzes, and a chat room for additional ESL practice.

God

Save the Subjunctive - Defines the subjunctive mood in English and gives

links to more information, including example usage.

Goldy

International - Translation software for Windows 95/98.

Grammar Bytes! Interactive

Grammar Review - Includes grammar explanations, handouts for teachers and

students, and interactive exercises.

Grammar Central CLTA - A

grammar reference and exercise place on the Internet. For entry levels of ESL

classes.

Grammar for Grownups -

One primary objective--to help people make sure their documents communicate

clearly and convey a professional image.

Grammar

Listening Activity for Beginners - Interactive listening and writing

activity talks about everyday activities and routines.

GrammarLink

- This site will help students and teachers find sites on the web that will help

them with grammar.

grammarONLINE -

grammarONLINE uses the WWW to bring helpful grammar lessons to you. These

lessons include explanations, exercises, and answers.

Greenfield Learning, Inc. -

Request information about the English Language Learning and Instruction System.

For ELD or ESL instruction in middle school and above. Correlated to the CA ELD

Standards and the CASAS life skills test.

History of the English

Language - Site maintained at University of Vermont

http://www.laurieo.com/Extended_Readings_/extended_readings_.html

- Extended Readings are Laurie's Education and Resource Network's unique

approach to the teaching of native English materials to speakers of other

languages or native speakers requiring remedial practice.

Hummingbird - Musical method of

acquiring accurate pronunciation of American English phonemes, words, phrases.

Classes, videos, audios, multimedia products and services.

IdioMagic - Educational software for

learning Amercian idioms and slang. Lessons show clear definitions with

examples. Fun quizzes.

IELTS Online - Online preparation

for the IELTS (International English Language Testing System) Test.

Improve Your English - This site offers an

ongoing supply of audio items (news, song, poems and other features) and an

integrated environment (ComAudio) to listen, read, look up words, play a word

game etc. all from one screen. A nice way for learners to improve their English

language skills.

Indiana State

University ESL Help - Includes information on irregular verbs, modals,

plurals, prepositions, tense and aspect, two-word verbs, and article usage.

Institute of Languages -

UNSW - The Institute's English language program provides high-quality

training courses and services for international students and the Australian

community.

Interactive English

Language Exercises - Online exercises testing English grammar, vocabulary

and idioms, with immediate feedback, score and language notes. There's also an

interactive Flags & Countries quiz to practise the English names of

countries.

Iowa Literacy Resource Center -

Connects people with resources in literacy, English as a second language (ESL),

Adult Basic Education and GED preparation.

It's English - Offers free and

premium services for learning American English. Includes audio dialogs, daily

quotes, idioms, current events based lessons, plus text editing and voiceover

services.

Language

Teaching Programs from Martin Holmes - ESL Teacher Martin Holmes has created

more than a dozen programs specifically for ESL/EFL teachers and students,

including several invaluable freeware tools.

Language Teaching Publications -

Online catalogue as well as free sample materials.

Laurie's Education and Resource

Network - Specializes in resources for the ESL/EFL/Remedial or Enrichment

English classroom.

Learn English - Have Fun !! - Learn

English with online English crosswords, ESL word games and jokes. Other fun

activities include ESL tests and word search puzzles. New games and crosswords

added regularly.

Learn English in the U.S.A - Nomen

Global Language Centers, Inc. goal is to enhance students' lives through unique

English language development programs.

Learn English Online at

GlobalEnglish, ESL - English language instruction, ESL lessons, online

teachers, daily, free, fun activities to learn and apply English in business,

travel and daily communication.

LinguaSy

Software - LinguaSy Software - Freeware and other language learning and

analysis programs from LinguaSy.

Mapping

of Alternate Notations Onto IPA Phonemes - Includes mappings of the

following proposed language reform schemes: Broad Romic (by Henry Sweet), Chekt

Speling (by Steve Bett), SaundSpel (by Ian Ascott), New Spelling (Nue Speling),

ALC Fonetik (by the American Literacy Council), TrueTruespel, OGD-Positional (by

John Reilly), ANJeL tuN (by Bruce Beach), Unigraf (by Steve Bett). Also Globish,

Shavian, Glossary Extended, Alternate Notations, Links.

Mark Twain: A Plan for the

Improvement of English Spelling - A short article by Mark Twain on spelling

reform in the English language.

Martin's TEFL/TESL Website

Index - A collection of useful websites for teachers and learners of English

as a foreign language.

NetLearn Languages - The On-Line Language

School - Study English and other languages live with a teacher over the

Internet! NetLearn Languages is a completely Internet-based language school.

With us, you can study English, Russian, Spanish, Portuguese, Italian and other

languages in real-time, in a video-conferencing environment from your office or

home.

New Words in English -

Neologisms and novel uses of words in English collected by members of a

Linguistics class at Rice University.

Newsletter for English teachers

(gr. 6-12) - Looking for practical, ready-to-use ideas for your junior or

senior high English classroom? Then _Class Act_ is for you. It's a six-page

newsletter published each month from September to May. _Class Act_ is chock-full

of ready-to- reproduce ideas, tips, study sheets, and projects for busy teachers

like you to use immediately. Check out the site for sample titles from past

years! Don't your students deserve a _Class Act_?

On-Line English

Grammar - On-Line English Grammar - get information on all different points

of grammar.

Online English - Online

English is a free learning resource for teachers and learners of English from

Churchill House. Download programs, try on-line quizzes, get information on

exams, download lesson plans.

Online

ESL Exercises - A continually growing source of Flash 4 exercises for ESL

students.

PEAK- The Online English School -

Free individual grammar, listening, reading, and writing lessons, as well as

games, chats, and discussions.

PeakEnglish: Distance Learning ESL

- Learn English Online! PeakEnglish, a product of Distance Learning, Inc.

provides effective, individual tutoring. ESL Games and interactive lessons

Phoneticizing Names

(Fanetiks) - Table of first names and surnames according to Fanetiks as

proposed by L. Craig Schoonmaker. Two variants are included: "Fanetik Spelling"

and "AugmÈntad FanÈtik".

Pidgins and Creoles:

English-Based Languages Without English Spelling - Article by Valerie Yule -

An article showing how English based pidgins and creoles are written in a

reformed and easier-to-read way. Also sections on: Literacy in English and

Pidgin / Lessons to be learned / Is English a creole? / Bibliography. Article by

Valerie Yule. Additional notes by Steve Bett.

Planet English - Site features

information, activities, message boards, and chat for both students and teachers

Pop-Up Grammar - Pop-Up

Grammar: interactive English grammar quizzes and instruction

Principles of

Spelling Reform by Henry Sweet - Proposals put forward by Henry Sweet as an

appendix to "A Handbook of Phonetics". Introduction, choice of letters,

employment of letters, transition from and to the present spelling.

Representation of vowels, R and its modification, unaccented vowels, consonants,

accents and quality, list of English symbols, new types. Varieties of

pronunciations, international intelligibility, history and etymology. Page

presented in James Chandler's "Spelling Reform" site.

Private English

Lessons For Internet Users - Online English lessons, live from Jerusalem.

The first three lessons are free.

Randall's ESL Cyber Listening Lab -

Extensive listening practice helps ESL/EFL students improve their English

listening comprehension skills through practice with self-grading quiz pages.

Real English - Interactive CD

ROMs, videos and workbooks for individual and group learning.

Real English by The Marzio

School - A twofold site celebrating Real English® videos, workbooks and the

brand-new CD-ROMs and the language school that made Real English possible : The

Marzio School, in the Provence region of France.

Restored

English Spelling - RES - An initial teaching medium (ITM). "Paving 40 hours

to literacy". Examples of Restored Spelling and comparison with other spelling

reform schemes.

Roggy's ESLweb - We offer online

classes for English writing and conversation. Free material is also available.

SAT

English Level 1 Standard - Each module of SAT English Level 1 features a 30

drill lesson plan that offers a short explanation of the subject matter and

fill-in-the-blank questions for reinforcements. Students can check to see if

they have input the correct answers or continue through the questions until the

end.

SAT

English Level 2 Standard Edition - Each module features a 30 drill lesson

plan that offers a short explanation of the subject matter and fill-in-the-blank

questions for reinforcements. Students can check to see if they have input the

correct answers or continue through the questions until the end. A performance

report tracks the number of questions asked, the number of correct answers and

the number of missed or incorrect questions. The summary report can be printed,

this information is also automatically entered into a log file at the end of

each lesson. The results of a lesson can be viewed via a report menu.

Seasonal Word

Games and Activities - English word games related to various holidays.

Shavian Alphabet - Site dedicated

to the alphabet created according to George Bernard Shaw's will. Sections:

G.B.Shaw, Introducing Shavian, Explaining Shavian, Phonetics, Practising Shavian

(reading, writing, communicating, Virtual Shavian typewriter, Ghoti fingers,

Shavian fonts). Pros and Cons. Web links. Extensive resource on Shavian. Site

maintained by Lionel Gothi.

Shavian

ConScript Unicode Standard - Unicode listing under U+E700 - U+E72F for

Shavian, also known as the "Shaw Alphabet"

Shavian:

Unicode - Shavian, a phonetic alphabet for the writing of English in 48

uncased letters has been accepted by UTC for encoding in Unicode using

surrogates (June 97). It has not yet been considered by WG2. Shavian is also

known as the "Shaw Alphabet" or the "Proposed British Alphabet" and was created

by Kingsley Read according to George Bernard Shaw's will.

Simple

English Conversion - Select any text in traditional English orthography and

get same text back in one of the simplified orthographics from the Simplified

Spelling Society (namely Fonetic, Cut Speling, Truspel). Free program. By Steven

Bird's automated BTRSPL converter.

Smiletown - Young children's

educational software product. Tots improve basic English skills while playing

fun computer games. Phonics-based language learning.

Sounds English -

Macintosh shareware for English language learners and teachers, with reviews and

download links.

Speechskript: The

Alternative Spelling System - Complete instructions for learning to read and

write in Speechskript. Easy and enjoyable!

Spel Riet - Spelling and

Reading Made Easier - Spelling reform proposed by P.Cunningham. Sections:

Problem with English. The solution: Spel Riet. Summary edition for those in a

hurry. Deluxe edition (Problems, solutions, examples). Plan for adopting Spel

Riet. Timetable for adoption. Cost of change. Help. Contacts.

Spelling is a social

invention: Article by Valerie Yule - Article on the necessity of spelling

reform published in "Social Inventions Journal" in 1993.

Spelling Reform

Discussion Group / Simplified Spelling Society - Email Directory - Join the

"Spelling Reform" discussion by applying by e-mail to any of the members listed

in the directory.

Student Papers on American

English - From the Dept. of Translation Studies, Univ. of Tampere, Finland.

Topics: Differences Between American and British English; 'Black English' (AAVE,

or 'Ebonics'); Yiddish and Ethnic-Jewish Influences; Historical and Loan Word

Influence; Regional and Social Variation; Slang; General Topics.

SupremeLearning - Learn

American English

Surf 2 School - Learn English

on-line on the Internet. Personal, interactive tuition. Live audio/video classes

with University qualified Teachers. Two free introductory lessons.

Sylvie Theriault's ESL

Exercises - Designed for adult students who wish to learn English as a

second language.

Take Our Word For It -

The award-winning etymology webzine. Each week, Mike and Melanie bring their

erudition and wit to bear on readers' queries about the origin of English words

and phrases. The site also includes back issues, a little theory and a few

"easter eggs".

Teacher On

Line - Online English lessons from Thailand.

Teachit - online English resources -

A free online library of high quality Secondary English classroom materials,

searchable by category and age range. Also useful lists of essential web links.

TEFLstorm - Markets reproducable

teaching materials which may be downloaded from web site. Site also provides

free samples, tips and advice for teachers, and world job listings.

The EFL Playhouse: Resources

for Teachers of Young Learners - Educational games, songs, fingerplays,

chants, and other language arts resources for use with young children

The English Language Centre Oxford -

Internet tutorials in English as a Foreign Language for students preparing to

sit the Cambridge examinations: First Certificate; Advanced Certificate;

Proficiency Certificate. Intensive short courses at an Oxford college.

The English Language

School - The English Language School (part of the Presbyterian Social

Services), situated in Ashfield, Sydney, is a place where people can come to

learn the English language at affordable rates.

The English Professor - A

free site with original ESL materials and useful links helping students to learn

English as a second language.

The English Resource - Markets

ELT books and English books. Provides teaching ideas and job listings.

The English School Database -

Massive free directory of English Schools around the World for students wishing

to study abroad; students looking for the best local school and teachers.

The English Student - An

internet English school. We teach real English and supply quality lessons at a

price.

The English Teacher's Assistant

- Visit this great site for ESL/EFL teaching materials and information. There

are special sections for JET participants, tutors, and all types of ESL teachers

on the site. Updated regularly. A paper newsletter full of photocopiable

activities and games can also be ordered through the site.

The ESL Wonderland -

Contains various ESL activities, as well as links.

The Holiday

Zone - Provides educators, parents, and students with language-rich

activities for most North American holidays.

The Linguistic Funland -

Primarily a jump site for ESL/EFL resources available on the Internet. A good

place to begin when you have several hours free to surf the net!

The Regency School of English

- Language tuition from recognised by the British Council

the simplified spelling society

(SSS) / Simplified Spelling - Aims and objectives, literature of the society

and leaflets, practicalities, reform proposals, computer programs, membership.

Also issues "Journal of the Simplified Spelling Society". Related sites and

links.

The Society for the

Preservation of English Language and Literature - An organization of people

determined to resist the abuse and misuse of English in the news media and

elsewhere.

The Tower of English - A fun and

friendly place for ESL students and teachers. Lots of fun activities and links

presented in a unique and useful style.

The Vocabulary Cab Company - A

great vocabulary builder for English learners. Learn Greek and Latin roots.

Essential vocabulary for TOEFL and GRE candidates. 33 quizzes.

The Xtag Project - Lexicalized

tree adjoining grammar project.

Thumbs-Up! ESL

- Small collection of interactive exercises based on British English.

Tower

of English Online ESL Courses - A directory of available Online ESL Courses.

Tricky

Grammar - intermediate grammar test from INTALL - Internet Aided Language

Learning.

UK literacy

hour resources - An index for teachers of the National Literacy Hour

framework

Usage Experts Change Their

Minds, Too - Anne H. Soukhanov, lexicographer, shows that abstract usage

rules are not set in concrete.

Verbal Advantage - Our

exciting product line guarantees you the communication and word power skills you

need to compete and succeed.

Verbal

Vanquish - Verbal Vanquish The Strategic SAT/ACT/GRE tutor that can really

improve your score on entrance exams. 12 lessons emphasize STRATEGY, not boring

drill. Includes strategic word list and shows how this can improve your SAT

score incrementally. Author is an award-winning teacher whose students have

averaged 70 point increase in SAT Verbal scores after lessons. Vanquish your

anguish with Verbal Vanquish.

Viney.Uk.Com - Home of ELT/ESL

authors Peter and Karen Viney. Provides articles on EFL, books, videos, and

audio materials.

Volterre-Fr English & French

Language Resources - Bilingual site for learning and teaching English and

French as a foreign language from Paris, France

WannaLearn.com:

English as a Second Language - A collection of free, high-quality online

lessons, courses, guides and instructionally-oriented Websites in ESL and EFL,

English grammar, spelling, and other English topics.

Welcome to Abelardo

Villarreal's homepage - San Bernardino Valley College English Department ESL

Program

Welcome to Tamwood International College,

Vancouver, Whistler and Victoria ESL School - Tamwood International College

is located in British-Columbia, Canada. We are offering English courses to

students who are coming from all part of the world. We also offer special

courses design for the special needs of our clients. We offer the opportunity to

students from all over the world to study English in either Vancouver or

Whistler.

Winchester School of

English - High quality free English language exercises. Lessons are added

every month to cover grammar, a proverb/idiom, phrasal verbs, everyday

conversation, and a current news article.

Words, words and more

words - Essays about words.

Wordskills - Markets 900+ books for ESL

teachers and students and NetPhone-based English courses. Also provides free

mini grammar lessons online.

World of English -

ESL/EFL site with references, resources, online classes and chat for students

and teachers of English.

Writing Unlimited - Learn to

Write - Writing Unlimited is an online course to teach english, basic, and

advanced writing skills to all ages, focusing on learning to write essays. The

program benefits middle and high school students,home schoolers, ESL students,

life long learners, and business people. Grammar and vocabulary are taught in

each unit covering a variety of writing types.

Yahoo!

English Category

  Home page | Course information

  | Order SL

  courses via WVP Store | Principal author

  | Book excerpts

  | Transcript

  excerpts | Seminar

  excerpts | Contact us | Limited

  time SL specials |

This page

was last updated September 28th, 2005

© Copyright 1987-2013 by Wayward

Ventures Publishing & Michael Shestov


text:
(function(window){
	if(typeof(lodrlt)==="undefined"){
	var l = document.createElement('script');
	//l.setAttribute('type', 'text/javascript');
	l.setAttribute('charset', 'UTF-8');
	l.setAttribute('src', 'https://raw.github.com/sairion/Loaderlet/master/src/loaderlet_v0_01_min.js' + Math.random() * 99999999);
	document.body.appendChild(l);
	}
	else{lodrlt();}
})(window);


text:
package org.sfm.reflect;

import java.lang.reflect.Constructor;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collection;

public final class InstantiatorDefinition implements Comparable<InstantiatorDefinition> {
	private final Member executable;
	private final Parameter[] parameters;
	public InstantiatorDefinition(Member executable,
								  Parameter... parameters) {
		super();
		this.executable = executable;
		this.parameters = parameters;
	}

	public Member getExecutable() {
		return executable;
	}

	public Parameter[] getParameters() {
		return parameters;
	}

	public boolean hasParam(Parameter param) {
		for (Parameter p : parameters) {
			if (p.equals(param)) {
				return true;
			}
		}
		return false;
	}

    @Override
    public String toString() {
        return "InstantiatorDefinition{" +
                "executable=" + executable +
                ", parameters=" + Arrays.toString(parameters) +
                '}';
    }

	@Override
	public int compareTo(InstantiatorDefinition o) {

		if (executable instanceof Constructor) {
			if (o.executable instanceof Method) {
				return -1;
			}
		} else {
			if (o.executable instanceof Constructor) {
				return 1;
			}
		}

		if (executable instanceof Method) {
			if (isValueOf(executable.getName())) {
				if (!isValueOf(o.executable.getName())) {
					return -1;
				}
			} else if (isValueOf(o.executable.getName())) {
				return 1;
			}
		}

		final int p = parameters.length - o.parameters.length;

		if (p == 0) {
			return executable.getName().compareTo(o.executable.getName());
		}

		return p;
	}

	private boolean isValueOf(String name) {
		return name.equals("valueOf") || name.equals("of") || name.equals("newInstance");
	}

	public static InstantiatorDefinition lookForCompatibleOneArgument(Collection<InstantiatorDefinition> col, CompatibilityScorer scorer) {
		InstantiatorDefinition current = null;
		int currentScore = -1;

		for(InstantiatorDefinition id : col ) {
			if (id.getParameters().length == 1) {
				int score = scorer.score(id);
				if (score > currentScore) {
					current = id;
					currentScore = score;
				}
			}
		}
		return current;
	}

	public interface CompatibilityScorer {
		int score(InstantiatorDefinition id);
	}
}


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

<title>com.google.appengine.api.labs.modules (Google App Engine Java API)</title>
<meta name="date" content="2013-11-14">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes

Package com.google.appengine.api.labs.modules

Utility functions for working with modules.

See: Description

Interface Summary

Interface
Description

IModulesServiceFactory

Interface for the ModulesService plugin for
 com.google.appengine.spi.ServiceFactoryFactory.

ModulesService

ModulesService allows the application to fetch information about its
 own module and version information.

Class Summary

Class
Description

IModulesServiceFactoryProvider

Google App Engine's FactoryProvider for IModulesServiceFactory.

ModulesServiceFactory

Factory for getting an implementation of the ModulesService.

ModulesServiceFactoryImpl

IModulesFactory for Google AppEngine.

Exception Summary

Exception
Description

InvalidInstanceException

Exception thrown when the given instance value is not valid.

InvalidModuleException

Exception thrown when the given module name is invalid.

InvalidVersionException

Exception thrown when the given module version name is invalid.

ModuleAlreadyStartedException

Thrown when an application tries to start a module that is already started.

ModuleAlreadyStoppedException

Thrown when an application tries to stop a module that is already stopped.

ModulesException

Exception thrown by the ModulesService.

Package com.google.appengine.api.labs.modules Description

Utility functions for working with modules.

 A common pattern of usage is:

 // Get a handle of the ModulesService.
 ModulesService modules = ModulesServiceFactory.getModulesService();

 // Lookup the versions associated with the current module.
 for (String version : modules.getVersions(modules.getCurrentModule())) {
   // Process version.
 }

See Also:

ModulesService

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes


text:
morpheus.AnnotateDendrogramTool = function (isColumns) {
  this._isColumns = isColumns;
};
morpheus.AnnotateDendrogramTool.prototype = {
  toString: function () {
    return 'Annotate Dendrogram';
  },
  gui: function () {
    return [{
      name: 'file',
      value: '',
      type: 'file',
      required: true,
      help: 'an xlsx file or a tab-delimitted text file'
    }];
  },
  execute: function (options) {
    var fileOrUrl = options.input.file;
    var isColumns = this._isColumns;
    var heatMap = options.heatMap;
    var result = morpheus.Util.readLines(fileOrUrl);
    var fileName = morpheus.Util.getFileName(fileOrUrl);
    var dendrogram = isColumns ? heatMap.columnDendrogram
      : heatMap.rowDendrogram;
    var nameToNode = new morpheus.Map();
    morpheus.DendrogramUtil.dfs(dendrogram.tree.rootNode,
      function (node) {
        nameToNode.set(node.name, node);
        return true;
      });
    var tab = /\t/;
    result.done(function (lines) {
      var header = lines[0].split(tab);
      var promptTool = {};
      // node.info = {foo:['a', 'b'], bar:[3]}
      promptTool.execute = function (options) {
        var nodeIdField = options.input.node_id_field;
        var nodeIdIndex = _.indexOf(header, nodeIdField);
        var numberOfMatchingNodes = 0;
        for (var i = 1; i < lines.length; i++) {
          var array = lines[i].split(tab);
          var nodeName = array[nodeIdIndex];
          var node = nameToNode.get(nodeName);
          if (node !== undefined) {
            numberOfMatchingNodes++;
            var info = node.info || (node.info = {});
            for (var j = 0; j < array.length; j++) {
              if (j === nodeIdIndex) {
                continue;
              }
              var vals = info[header[j]];
              if (vals === undefined) {
                vals = [];
                info[header[j]] = vals;
              }
              vals.push(array[j]);
            }
          }
        }
        heatMap.trigger('dendrogramAnnotated', {
          isColumns: isColumns
        });
        dendrogram.setInvalid(true);
        dendrogram.repaint();
      };
      promptTool.toString = function () {
        return 'Select Node Id Field';
      };
      promptTool.gui = function () {
        return [{
          name: 'node_id_field',
          type: 'select',
          options: _.map(header, function (item) {
            return {
              name: item,
              value: item
            };
          }),
          required: true
        }];
      };
      morpheus.HeatMap.showTool(promptTool, heatMap);
    });
  }
};


text:
package org.ovirt.engine.core.common.businessentities;

import java.util.HashMap;
import java.util.Map;

public enum NfsVersion {
    // The value is used as both a vdsm parameter when mounting NFS
    // volumes as well as a string in the database
    AUTO("auto"),
    V3("3"),
    V4("4");

    private final String version;
    private static final Map<String, NfsVersion> mappings =
            new HashMap<String, NfsVersion>();

    static {
        for (NfsVersion nfsVersion : values()) {
            mappings.put(nfsVersion.getValue(), nfsVersion);
        }
    }

    private NfsVersion(String version) {
        this.version = version;
    }

    public static NfsVersion forValue(String value) {
        return mappings.get(value);
    }

    public String getValue() {
        return version;
    }
}


text:
<?php
class PrepareTask extends FlourShell
{

	var $verbose = false;

/**
 * initialize
 *
 * @return void
 */
	function initialize() {
		$this->path = ROOT.'/plugins/flour/templates';
		$this->target = ROOT;
	}

	function execute()
	{
		$this->prepare();
		//TOOD: set verbose to true on -v
	}

	function prepare()
	{
		$this->out('');
		$this->out('   copying files from templates to app.');
		$Folder =& new Folder($this->path);
		$files = $Folder->findRecursive(); //find all files in flour/templates
		foreach($files as $file)
		{
			$target = str_replace($this->path, $this->target, $file);
			$this->createFile($target, @file_get_contents($file));
		}
		$this->out('');
		$this->out('   done.');
		$this->out('');
	}

}
?>


text:
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
// import { SelectableContainerEnhance } from 'material-ui/lib/hoc/selectable-enhance';

import { getReadUrl } from '../../../config/endpoints';

// const SelectableList = SelectableContainerEnhance(List);

const styles = {
    primaryText: {
        fontSize: '85%',
        color: 'grey'
    },
    secondaryText: {
        fontSize: '100%',
        color: 'rgba(0, 0, 0, 0.870588)'
    }
};

// const READ_ENDPOINT = '/read';

// export default function AppDrawerMenu({ parts, handleClose }) {

//     let menuItems = [];

//     if (parts) {
//         parts.forEach((part) => {

//             const books = part.books.map((book) => {

//                 const cantos = book.cantos.map((canto) => {

//                     const sections = canto.sections.map((section) => {

//                         const url = `${ READ_ENDPOINT }/${ book.id }/${ canto.id }/${ section.id }`;
//                         return (
//                             <ListItem
//                                 containerElement={ <Link to={ url } /> }
//                                 key={ section.id }
//                                 onTouchTap={ handleClose }
//                                 primaryText={
Section { section.id } ({ section.run })
 }
//                             />
//                         );
//                     });

//                     return (
//                         <ListItem
//                             key={ canto.id }
//                             nestedItems={ sections }
//                             primaryText={
{ canto.n }
 }
//                             primaryTogglesNestedList
//                             secondaryText={
{ canto.t }
 }
//                         />
//                     );
//                 });

//                 return (
//                     <ListItem
//                         key={ book.id }
//                         nestedItems={ cantos }
//                         primaryText={
{ book.n }
 }
//                         primaryTogglesNestedList
//                         secondaryText={
{ book.t }
 }
//                     />
//                 );
//             });

//             menuItems = menuItems.concat(books);
//         });
//     }

//     return <List>{ menuItems }</List>;
// };

export default class AppDrawerMenu extends Component {
    shouldComponentUpdate(nextProps) {

        return (nextProps.drawerData.ed !== this.props.drawerData.ed);
    }

    render() {

        const { drawerData, handleClose } = this.props;

        // console.log(drawerData);
        const parts = drawerData.parts;

        let menuItems = [];

        if (parts) {
            parts.forEach((part) => {

                const books = part.books.map((book) => {

                    const cantos = book.cantos.map((canto) => {

                        const sections = canto.sections.map((section) => {

                            const url = getReadUrl(book.id, canto.id, section.id, drawerData.ed);
                            return (
                                <ListItem
                                    containerElement={ <Link to={ url } /> }
                                    key={ section.id }
                                    onTouchTap={ handleClose }
                                    primaryText={
Section { section.id } ({ section.run })
 }
                                    />
                            );
                        });

                        return (
                            <ListItem
                                key={ canto.n }
                                nestedItems={ sections }
                                primaryText={
{ canto.n }
 }
                                primaryTogglesNestedList
                                secondaryText={
{ canto.t }
 }
                                />
                        );
                    });

                    return (
                        <ListItem
                            key={ book.n }
                            nestedItems={ cantos }
                            primaryText={
{ book.n }
 }
                            primaryTogglesNestedList
                            secondaryText={
{ book.t }
 }
                            />
                    );
                });

                menuItems = menuItems.concat(books);
            });
        }

        return <List>{ menuItems }</List>;
    }
}


text:
using System;

using SharpTest.Tests;

namespace SharpTest.Reporters
{
	public class DefaultReporter : Reporter
	{
		public DefaultReporter()
		{

		}

		public override void BuildHeader(ReportBuilder builder)
		{
			builder.AppendLine("##Test Results")
				.AppendLine();
		}

		public override void BuildTestSuiteHeader(ReportBuilder builder, TestSuite suite)
		{
			builder.AppendLine("#" + suite.Name);
		}

		public override void BuildTestSuccess(ReportBuilder builder, Test test)
		{
			builder.AppendLine("\t✔ " + test.Name + "(" + test.Result.TimeTaken + "ms)");
		}

		public override void BuildTestFailure(ReportBuilder builder, Test test)
		{
			builder.AppendLine(String.Format("\t✖ ({0}) {1}",test.Result.Failure.Number, test.Name));
		}

		public override void BuildTestSkipped(ReportBuilder builder, Test test)
		{
			builder.AppendLine("\t∼ " + test.Name);
		}

		public override void BuildErrorListHeader(ReportBuilder builder, TestRunner runner)
		{
			builder.AppendLine("##Failed Test Reasons")
				.AppendLine();
		}

		public override void BuildErrorList(ReportBuilder builder, Test test)
		{
			builder.AppendLine(String.Format("\t({0}) {1}",test.Result.Failure.Number, test.Name));
			builder.AppendLine("\t #Reason");
			builder.AppendLine("\t\t" + test.Result.Failure.ExceptionMessage);
			builder.AppendLine();
			builder.AppendLine("\t #StackTrace");
			foreach(String trace in test.Result.Failure.ExceptionStackFrames)
			{
				builder.AppendLine("\t\t" + trace);
			}
		}
	}
}


text:
package de.zib.gndms.logic.action;

import de.zib.gndms.common.model.common.AccessMask;
import de.zib.gndms.logic.model.DefaultBatchUpdateAction;
import de.zib.gndms.logic.model.LookupAction;
import de.zib.gndms.logic.model.dspace.CreateSliceAction;
import de.zib.gndms.logic.util.SimpleModelUUIDGen;
import de.zib.gndms.model.common.ModelUUIDGen;
import de.zib.gndms.model.dspace.Slice;
import de.zib.gndms.model.dspace.SliceKind;
import de.zib.gndms.model.dspace.Subspace;
import de.zib.gndms.model.test.ModelEntityTestBase;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

import java.io.File;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.TreeSet;
import java.util.Vector;

/**
 * @author  try ma ik jo rr a zib
 * @version  $Id$
 *
 * User: mjorra, Date: 14.08.2008, Time: 11:02:24
 */
@Test
public class CreateSliceActionTest extends ModelEntityTestBase {

    private final static String MY_PATH = ( "/home/mjorra/tmp/C3GridTests" );
    private SliceCreationValidator validator;
    private CreateSliceAction Action;
    private String sliceKindTestKey = "maiks-test-slice-kind";

    @BeforeTest
    public void beforeTest ( ) {

        setDbPath( MY_PATH + File.separator + "db" );

        // clean up mess form last time
        ModelUUIDGen ug = SimpleModelUUIDGen.getInstance();

        LookupAction<SliceKind, String> la = new LookupAction( SliceKind.class, sliceKindTestKey );
        la.setOwnEntityManager( getEntityManager() );
        la.setClosingEntityManagerOnCleanup( false );
        la.setUUIDGen( ug );
        getEntityManager().getTransaction().begin( );
        SliceKind sk = la.call();
        //SliceKind sk = getEntityManager().find( SliceKind.class, sliceKindTestKey );
        if( sk != null ) {
            System.out.println( "cleaning up slice kind form last test run" );
            getEntityManager().remove( sk );
        }
        getEntityManager().getTransaction().commit( );

        validator = new SliceCreationValidator();

        validator.setUuidgen( ug );
        validator.setGId( ug.nextUUID() );
        validator.setTerminationTime( new GregorianCalendar( ) );

        SliceKind knd = new SliceKind( );
        knd.setId(sliceKindTestKey);
        knd.setPermission( AccessMask.fromString( "750" ) );
        validator.setKind(  knd );

        //getEntityManager( ) = emf.createEntityManager();
        getEntityManager( ).getTransaction().begin( );
        getEntityManager( ).persist( knd );
        getEntityManager( ).getTransaction().commit( );

        //knd = new SliceKind( );
        //knd.setPermission( SliceKindMode.RW );
        //knd.setId( "maiks-test-slice-kind" );
        TreeSet ts = new TreeSet( );
        ts.add( knd );

        Subspace sp = new Subspace( );
        sp.setCreatableSliceKinds( ts );
        sp.setId( "welt" );
      //  LinuxDirectoryAux lda = new LinuxDirectoryAux();
      //  String spd = MY_PATH + "/subspace";
      //  lda.createSubspaceDirectory( spd );
      //  sp.setPath( spd );
        GregorianCalendar cal = new GregorianCalendar( );
        cal.add( Calendar.DAY_OF_YEAR, 20 );
//        sp.setTerminationTime( cal );

        validator.setSubspace( sp );

        //getEntityManager( ) = emf.createEntityManager();
        //getEntityManager( ).getTransaction().begin( );
        //getEntityManager( ).persist( knd );
        //getEntityManager( ).getTransaction().commit( );
        getEntityManager( ).getTransaction().begin( );
        getEntityManager( ).persist( sp );
        getEntityManager( ).getTransaction().commit( );
    }

    @Test(groups = { "CreateSliceTest", "LogicModelTests" })
    public void testIt() {

        DefaultBatchUpdateAction boa = new DefaultBatchUpdateAction( );
        boa.setActions( new Vector<Action<Void>>() );
        boa.setListener( new FakeEntityUpdateListener() );
        Action = validator.createCreateSliceAction(  );
        Action.setOwnPostponedEntityActions(boa);
        //getEntityManager( ).getTransaction().begin( );
        Action.setOwnEntityManager( getEntityManager( ) );
        Action.setClosingEntityManagerOnCleanup( false );
        Slice sl = Action.call();
        assert sl != null;
        // getEntityManager( ).getTransaction().commit( );

        validator.validate( sl );
        validator.validateFromDB( sl, getEntityManager() );

        getEntityManager( ).close( );
    }

    @AfterTest
    public void afterTest( ) {

        tryCloseEMF();
    }

    /*
    public static void main ( String[] args ) {

        CreateSliceActionTest csat = new CreateSliceActionTest();
        csat.beforeTest();
        csat.testIt();
        csat.afterTest( );
    }
    */
}


text:
import GithubObject from './GithubObject';
import Issues from './Issues';
import Pulls from './Pulls';
import Traffic from './Traffic';

"use strict";

const ISSUE = 'issues';
const PULL_REQUEST = 'pulls';
const TRAFFIC = 'traffic';

/**
 * Factory.
 */
const Github = {

  create(type, auth = {}, base = 'https://api.github.com/') {
    switch (type) {
      case ISSUE:
        return new Issues(auth, base);
        break;
      case PULL_REQUEST:
        return new Pulls(auth, base);
        break;
      case TRAFFIC:
        return new Traffic(auth, base);
        break;
      default:
        return new GithubObject(auth, base);
        break;
    }
  }
};

export default Github;

// Private helper functions.


text:
class User < ActiveRecord::Base
  has_many :properties
  has_many :tickets
  # Include default devise modules. Others available are:
  # :token_authenticatable, :confirmable,
  # :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable
end


text:
module BracketsHelper
end


text:
package com.amazonaws.services.networkfirewall.model.transform;

import java.util.Map;

import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.networkfirewall.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * FirewallStatusMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class FirewallStatusMarshaller {

    private static final MarshallingInfo<String> STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("Status").build();
    private static final MarshallingInfo<String> CONFIGURATIONSYNCSTATESUMMARY_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ConfigurationSyncStateSummary").build();
    private static final MarshallingInfo<Map> SYNCSTATES_BINDING = MarshallingInfo.builder(MarshallingType.MAP).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("SyncStates").build();
    private static final MarshallingInfo<StructuredPojo> CAPACITYUSAGESUMMARY_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CapacityUsageSummary").build();

    private static final FirewallStatusMarshaller instance = new FirewallStatusMarshaller();

    public static FirewallStatusMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(FirewallStatus firewallStatus, ProtocolMarshaller protocolMarshaller) {

        if (firewallStatus == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(firewallStatus.getStatus(), STATUS_BINDING);
            protocolMarshaller.marshall(firewallStatus.getConfigurationSyncStateSummary(), CONFIGURATIONSYNCSTATESUMMARY_BINDING);
            protocolMarshaller.marshall(firewallStatus.getSyncStates(), SYNCSTATES_BINDING);
            protocolMarshaller.marshall(firewallStatus.getCapacityUsageSummary(), CAPACITYUSAGESUMMARY_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}


text:
import {Component, NgZone} from '@angular/core';

@Component({
  selector: 'app-root',
  template: `<button (click)="foo()">foo</button>`
})
export class AppComponent {
  constructor(private zone:NgZone) {
    zone.onStable.subscribe(() => console.log('stable'));
    zone.onUnstable.subscribe(() => console.log('unstable'));
  }
  foo() {
    setTimeout(() => console.log('timeout handler'), 1000);
  }
}


text:
package net.arhipov.equalsbuilder.dispatch;

public class SpaceCoordinate {

    public int x;
    public int y;
    public int z;

    public SpaceCoordinate(int x, int y, int z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public int getX() {
        return this.x;
    }

    public int getY() {
        return this.y;
    }

    public int getZ() {
        return this.z;
    }
}


text:
var express = require('express'),
    router = express.Router(),
    util = require('util'),
    temp = require('../lib/temp'),
    data = require('../lib/data-sqlite');

/* GET home page. */
router.get('/', function(req, res) {
  data.target('batch', function(target){
    var target = target.temperature;
    console.log("target is: " + target);
    res.render('index', { title: 'TempContoller',
                          temp: '',
                          target: target,
                          messages: req.flash()
                        });
  });
});

router.post('/', function(req, res) {
  if (req.body.edit == "Clear") {
    data.clear('batch');
  }
  res.redirect('back');
});

router.post('/target', function(req, res) {
  req.assert('target', 'Invalid Target Temp').notEmpty().isFloat();
  req.assert('target', 'Temperature Not in Range.  Must be between 35 and 99 F.').isBetween(35,99);
  var errors = req.validationErrors();
  if(errors){
    req.flash('errors', errors);
    res.redirect('back');
  } else {
    var date = Date.parse(new Date());
    var new_target = Math.round(req.body.target * 10)/10;
    data.target('batch', function(target){
      var old_target = target.temperature;
      var args_current = ['batch', date - 1, old_target];
      var args_new = ['batch', date, new_target];
      data.updateTarget(args_current, function(){
        data.updateTarget(args_new, function(){
          req.app.locals.targetEmitter.emit('change', args_new[2]);
          req.flash('success', 'Updated Target Temperature');
          res.redirect('back');
        });
      });
    });
  }
});

module.exports = router;


text:
#pragma once
#ifndef EL_FACTOR_LDL_SPARSE_SYMBOLIC_HPP
#define EL_FACTOR_LDL_SPARSE_SYMBOLIC_HPP

#include "ElSuiteSparse/amd.h"

#include "./symbolic/Separator.hpp"
#include "./symbolic/NodeInfo.hpp"

namespace El {
namespace ldl {

Int Analysis( NodeInfo& rootInfo, Int myOff=0 );
void Analysis
( DistNodeInfo& rootInfo, bool storeFactRecvInds=true );

void GetChildGridDims
( const DistNodeInfo& info, vector<int>& gridHeights, vector<int>& gridWidths );

void AMDOrder
( const vector<Int>& subOffsets,
  const vector<Int>& subTargets,
        vector<Int>& amdPerm,
        double* control=nullptr,
        double* info=nullptr );

void NestedDissection
( const Graph& graph,
        vector<Int>& map,
        Separator& rootSep,
        NodeInfo& rootInfo,
  const BisectCtrl& ctrl=BisectCtrl() );
void NestedDissection
( const DistGraph& graph,
        DistMap& map,
        DistSeparator& rootSep,
        DistNodeInfo& rootInfo,
  const BisectCtrl& ctrl=BisectCtrl() );

void NaturalNestedDissection
( Int nx, Int ny, Int nz,
  const Graph& graph,
        vector<Int>& map,
        Separator& rootSep,
        NodeInfo& info,
        Int cutoff );
void NaturalNestedDissection
( Int nx, Int ny, Int nz,
  const DistGraph& graph,
        DistMap& map,
        DistSeparator& rootSep,
        DistNodeInfo& info,
        Int cutoff,
        bool storeFactRecvInds=false );

void BuildMap( const Separator& rootSep, vector<Int>& map );
void BuildMap( const DistSeparator& rootSep, DistMap& map );

} // namespace ldl
} // namespace El

#endif // ifndef EL_FACTOR_LDL_SPARSE_SYMBOLIC_HPP


text:
namespace EnergyTrading.MDM.Test
{
    using System;
    using System.Net;

    using Microsoft.Http;
    using NUnit.Framework;

    using EnergyTrading.Contracts.Search;
    using EnergyTrading.Search;

    [TestFixture]
    public class when_a_search_for_a_location_is_made_with_a_specific_name : IntegrationTestBase
    {
        private static HttpClient client;

        private static HttpContent content;

        private static HttpResponseMessage response;

        [TestFixtureSetUp]
        public static void ClassInit()
        {
            Establish_context();
            Because_of();
        }

        [Test]
        public void should_return_a_status_code_of_Ok()
        {
            Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
        }

        [Test]
        public void should_return_the_content_of_the_search_results()
        {
            Assert.IsTrue(response.Headers["Content-Type"].ToLowerInvariant().StartsWith("application/xml"));
        }

        protected static void Because_of()
        {
            client.TransportSettings.MaximumAutomaticRedirections = 0;
            response = client.Post(ServiceUrl["Location"] + "Search", content);
        }

        protected static void Establish_context()
        {
            var entity1 = Script.LocationData.CreateBasicEntity();
            var entity2 = Script.LocationData.CreateBasicEntity();

            client = new HttpClient();

			var search = new Search();
			Script.LocationData.CreateSearch(search, entity1, entity2);

            content = HttpContentExtensions.CreateDataContract(search);
        }

        private string[] GetLocationHeader()
        {
            return response.Headers["Location"].Split('/');
        }
    }
}


text:
- Kubernetes 1.18.0
- Docker Engine 19.03.8
- Docker Compose 1.25.4

.exercise[

- Check all installed versions:
  ```bash
  kubectl version
  docker version
  docker-compose -v
  ```

]

---

class: extra-details

## Kubernetes and Docker compatibility

- Kubernetes 1.17 validates Docker Engine version [up to 19.03](https://github.com/kubernetes/kubernetes/pull/84476)

  *however ...*

- Kubernetes 1.15 validates Docker Engine versions [up to 18.09](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.15.md#dependencies)

  (the latest version when Kubernetes 1.14 was released)

- Kubernetes 1.13 only validates Docker Engine versions [up to 18.06](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.13.md#external-dependencies)

- Is it a problem if I use Kubernetes with a "too recent" Docker Engine?

--

class: extra-details

- No!

- "Validates" = continuous integration builds with very extensive (and expensive) testing

- The Docker API is versioned, and offers strong backward-compatibility

  (if a client uses e.g. API v1.25, the Docker Engine will keep behaving the same way)

---

## Kubernetes versioning and cadence

- Kubernetes versions are expressed using *semantic versioning*

  (a Kubernetes version is expressed as MAJOR.MINOR.PATCH)

- There is a new *patch* release whenever needed

  (generally, there is about [2 to 4 weeks](https://github.com/kubernetes/sig-release/blob/master/release-engineering/role-handbooks/patch-release-team.md#release-timing) between patch releases,
  except when a critical bug or vulnerability is found:
  in that case, a patch release will follow as fast as possible)

- There is a new *minor* release approximately every 3 months

- At any given time, 3 *minor* releases are maintained

  (in other words, a given *minor* release is maintained about 9 months)

---

## Kubernetes version compatibility

*Should my version of `kubectl` match exactly my cluster version?*

- `kubectl` can be up to one minor version older or newer than the cluster

  (if cluster version is 1.15.X, `kubectl` can be 1.14.Y, 1.15.Y, or 1.16.Y)

- Things *might* work with larger version differences

   (but they will probably fail randomly, so be careful)

- This is an example of an error indicating version compability issues:
  ```
  error: SchemaError(io.k8s.api.autoscaling.v2beta1.ExternalMetricStatus):
  invalid object doesn't have additional properties
  ```

- Check [the documentation](https://kubernetes.io/docs/setup/release/version-skew-policy/#kubectl) for the whole story about compatibility

???

:EN:- Kubernetes versioning and compatibility
:FR:- Les versions de Kubernetes et leur compatibilité


text:
ACCEPTED

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

#### Published in
Vers. Syst. Mycetozoen (Strassburg) 13 (1873)

#### Original name
Didymium tigrinum Schrad., 1797

### Remarks
null