text:
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2008-2016, Massachusetts Institute of Technology (MIT)
    All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this
    list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

    3. Neither the name of the copyright holder nor the names of its contributors
    may be used to endorse or promote products derived from this software without
    specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<!-- Maven artifact details -->
	<groupId>edu.mit.ll.nics.db</groupId>
	<artifactId>nics-db</artifactId>
	<version>6.3</version>
	<packaging>pom</packaging>

	<!-- Project information -->
	<name>NICS database schemas and scripts</name>
	<description>SQL schema and data creation scripts</description>

	<properties>
		<license.plugin.version>1.9.0</license.plugin.version>
	</properties>

	<!-- Build configuration for this project -->
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
                    <!-- This plugin formats source files by checking and adding a copyright
                        header if it's missing. -->
                    <groupId>com.mycila.maven-license-plugin</groupId>
                    <artifactId>maven-license-plugin</artifactId>
                    <version>${license.plugin.version}</version>
                    <configuration>
                        <aggregate>true</aggregate>
                        <header>${basedir}/copyright.txt</header>
                        <strictCheck>true</strictCheck>
                        <properties>
                            <year>2016</year>
                        </properties>
                        <useDefaultExcludes>false</useDefaultExcludes>

                        <!-- Additional file-to-comment-style mappings -->
                        <mapping>
                            <xslt>XML_STYLE</xslt>
                        </mapping>

                        <includes>
                            <include>**/*.xml</include>
                            <include>**/*.sh</include>
                        </includes>
                    </configuration>
                    <inherited>false</inherited>
                    <executions>
                        <execution>
                            <id>update-copyright</id>
                            <phase>generate-sources</phase>
                            <goals>
                                <goal>format</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>verify-copyright</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
			</plugins>
		</pluginManagement>
		<!-- Plugins specific to this project -->
		<plugins>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.3</version>
				<dependencies>
					<dependency>
						<groupId>edu.mit.ll.nics.assembly</groupId>
						<artifactId>archive-assembly</artifactId>
						<version>${project.version}</version>
					</dependency>
					<dependency>
						<groupId>edu.mit.ll.nics.assembly</groupId>
						<artifactId>spring-deploy-assembly</artifactId>
						<version>${project.version}</version>
					</dependency>
				</dependencies>
				<configuration>
					<descriptorRefs>
						<descriptorRef>archive-assembly</descriptorRef>
					</descriptorRefs>
					<finalName>nics-db-${project.version}</finalName>
				</configuration>
				<executions>
					<execution>
						<id>make-assembly</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
	        	<groupId>com.mycila.maven-license-plugin</groupId>
                <artifactId>maven-license-plugin</artifactId>
        	</plugin>
		</plugins>
	</build>
</project>


text:
<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CodePen - Part one</title>

Basics of the Web & HTML

How the web works... Roughly

A person (client) sits at a terminal, most often a computer, smart phone, tablet (all computers) but which could also be a robotic surgery arm or a car and sends HTTP requests to and via the internet to servers which are remotely located computers that host requested information (or generate requested information come to think of it) and send the information (mostly HTML documents) back to the client at which point the browser interprets and displays it as a web page.
HTML documents currently constitute the vast majority of information available through the internet.

HTML or Hypertext Markup Language

HTML is the standard markup language used to create internet documents and stands for Hypertext Markup Language

Markup Language is a way of annotating a text that is distinguishable from the main text itself; for example a teacher writing a correction in the margin is a markup, or using a different color pen to provide editing suggestions in between lines.
Hypertext is text with references to other text (hyperlinks or just links for short): on the web HTML documents are interconnected with hyperlinks.

HTML documents are made of the following:

-text

-markup HTML markup gives the document its structure; it creates the document architecture

-references to other documents such as media (videos, images etc)

-links to other HTML documents and hypertext

HTML markup

Using tags, HTML markup creates elements within an HTML document giving it structure.

A tag is constituted as follows

<tt>< tag ></tt>

An element is made of an opening tag, content (which can be made of nested elements) and a closing tag (note use of "/" in closing tag notation) as follows

<tt>< tag > content < /tag ></tt>

Tags can contain details about their execution called attributes and are written as follows

<tt>< tag attribute=value ></tt>

Here is a useful link to some common text editing tags.

Finally, tags come in two types: inline and block:

inline refers to tags that modify the surrounding document part (eg image, bold, break, anchor, span)

block refers to tags that create a separate space ("block") within the document.

whitespace refers to all text editing (such as multiple spaces or new line) not created by tags which simply won't show in the final HTML document

eg <tt>text written       like
  this  without
         tags</tt>

 will display as follows:

<tt>text written       like
  this  without
         tags</tt>

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Zend\View\Assets;

use Zend\Loader\AutoloaderFactory;
use Zend\Loader\StandardAutoloader;
use Zend\Stdlib\ArrayUtils;

class Module
{
    public function getAutoloaderConfig()
    {
        return array(
            AutoloaderFactory::STANDARD_AUTOLOADER => array(
                StandardAutoloader::LOAD_NS => array(
                    __NAMESPACE__ => __DIR__,
                ),
            ),
        );
    }

    public function getConfig()
    {
        $provider = new ConfigProvider();
        return [
            'service_manager' => $provider->getDependencyConfig(),
            'view_helpers'    => $provider->getViewHelperConfig(),
            'assets_manager'  => $provider->getAssetsManagerConfig(),
            'filters'         => $provider->getFiltersConfig(),
        ];
    }
}


text:
<?php

namespace Igorw\Silex;

class JsonConfigDriver implements ConfigDriver
{
    public function load($filename)
    {
        $config = $this->parseJson($filename);

        if (JSON_ERROR_NONE !== json_last_error()) {
            $jsonError = $this->getJsonError(json_last_error());
            throw new \RuntimeException(
                sprintf('Invalid JSON provided "%s" in "%s"', $jsonError, $filename));
        }

        return $config ?: array();
    }

    public function supports($filename)
    {
        return (bool) preg_match('#\.json(\.dist)?$#', $filename);
    }

    private function parseJson($filename)
    {
        $json = file_get_contents($filename);
        return json_decode($json, true);
    }

    private function getJsonError($code)
    {
        $errorMessages = array(
            JSON_ERROR_DEPTH            => 'The maximum stack depth has been exceeded',
            JSON_ERROR_STATE_MISMATCH   => 'Invalid or malformed JSON',
            JSON_ERROR_CTRL_CHAR        => 'Control character error, possibly incorrectly encoded',
            JSON_ERROR_SYNTAX           => 'Syntax error',
            JSON_ERROR_UTF8             => 'Malformed UTF-8 characters, possibly incorrectly encoded',
        );

        return isset($errorMessages[$code]) ? $errorMessages[$code] : 'Unknown';
    }
}


text:
require 'core_ext/hash/deep_merge'
require 'core_ext/hash/deep_symbolize_keys'
require 'core_ext/object/false'
require 'erb'
require 'rbconfig'

require 'travis/build/addons'
require 'travis/build/appliances'
require 'travis/build/git'
require 'travis/build/helpers'
require 'travis/build/stages'

require 'travis/build/script/android'
require 'travis/build/script/c'
require 'travis/build/script/clojure'
require 'travis/build/script/cpp'
require 'travis/build/script/crystal'
require 'travis/build/script/csharp'
require 'travis/build/script/d'
require 'travis/build/script/dart'
require 'travis/build/script/erlang'
require 'travis/build/script/elixir'
require 'travis/build/script/go'
require 'travis/build/script/groovy'
require 'travis/build/script/generic'
require 'travis/build/script/haskell'
require 'travis/build/script/haxe'
require 'travis/build/script/julia'
require 'travis/build/script/nix'
require 'travis/build/script/node_js'
require 'travis/build/script/objective_c'
require 'travis/build/script/perl'
require 'travis/build/script/perl6'
require 'travis/build/script/php'
require 'travis/build/script/pure_java'
require 'travis/build/script/python'
require 'travis/build/script/r'
require 'travis/build/script/ruby'
require 'travis/build/script/rust'
require 'travis/build/script/scala'
require 'travis/build/script/smalltalk'
require 'travis/build/script/shared/directory_cache'

module Travis
  module Build
    class Script
      TEMPLATES_PATH = File.expand_path('../templates', __FILE__)
      DEFAULTS = {}

      class << self
        def defaults
          Git::DEFAULTS.merge(self::DEFAULTS)
        end
      end

      include Module.new { Stages::STAGES.map(&:name).flatten.each { |stage| define_method(stage) {} } }
      include Appliances, DirectoryCache, Deprecation, Template

      attr_reader :sh, :data, :options, :validator, :addons, :stages
      attr_accessor :setup_cache_has_run_for

      def initialize(data)
        @data = Data.new({ config: self.class.defaults }.deep_merge(data.deep_symbolize_keys))
        @options = {}

        @sh = Shell::Builder.new
        @addons = Addons.new(self, sh, self.data, config)
        @stages = Stages.new(self, sh, config)
        @setup_cache_has_run_for = {}
      end

      def compile(ignore_taint = false)
        Shell.generate(sexp, ignore_taint)
      end

      def sexp
        run
        sh.to_sexp
      end

      def cache_slug_keys
        plain_env_vars = Array((config[:env] || []).dup).delete_if {|env| env.start_with? 'SECURE '}

        [
          'cache',
          config[:os],
          config[:dist],
          config[:osx_image],
          OpenSSL::Digest::SHA256.hexdigest(plain_env_vars.sort.join('='))
        ]
      end

      def cache_slug
        cache_slug_keys.compact.join('-')
      end

      def archive_url_for(bucket, version, lang = self.class.name.split('::').last.downcase, ext = 'bz2')
        sh.if "$(uname) = 'Linux'" do
          sh.raw "travis_host_os=$(lsb_release -is | tr 'A-Z' 'a-z')"
          sh.raw "travis_rel_version=$(lsb_release -rs)"
        end
        sh.elif "$(uname) = 'Darwin'" do
          sh.raw "travis_host_os=osx"
          sh.raw "travis_rel=$(sw_vers -productVersion)"
          sh.raw "travis_rel_version=${travis_rel%*.*}"
        end
        "archive_url=https://s3.amazonaws.com/#{bucket}/binaries/${travis_host_os}/${travis_rel_version}/$(uname -m)/#{lang}-#{version}.tar.#{ext}"
      end

      def debug_build_via_api?
        ! data.debug_options.empty?
      end

      private

        def config
          data.config
        end

        def debug
          if debug_build_via_api?
            sh.echo "Debug build initiated by #{data.debug_options[:created_by]}", ansi: :yellow
            if debug_quiet?
              sh.raw "travis_debug --quiet"
            else
              sh.raw "travis_debug"
            end

            sh.echo
            sh.echo "All remaining steps, including caching and deploy, will be skipped.", ansi: :yellow
          end
        end

        def run
          stages.run if apply :validate
          sh.raw template('footer.sh')
          # apply :deprecations
        end

        def header
          sh.raw(
            template(
              'header.sh',
              build_dir: BUILD_DIR,
              internal_ruby_regex: Travis::Build.config.internal_ruby_regex.untaint,
              root: '/',
              home: HOME_DIR
            ), pos: 0
          )
        end

        def configure
          apply :show_system_info
          apply :fix_rwky_redis
          apply :update_glibc
          apply :clean_up_path
          apply :fix_resolv_conf
          apply :fix_etc_hosts
          apply :no_ipv6_localhost
          apply :fix_etc_mavenrc
          apply :etc_hosts_pinning
          apply :fix_wwdr_certificate
          apply :put_localhost_first
          apply :home_paths
          apply :disable_initramfs
          apply :disable_ssh_roaming
          apply :debug_tools
          apply :npm_registry
          apply :rvm_use
          apply :rm_oraclejdk8_symlink
          apply :enable_i386
        end

        def checkout
          apply :checkout
        end

        def export
          apply :env
        end

        def prepare
          apply :services
          apply :fix_ps4 # TODO if this is to fix an rvm issue (as the specs say) then should this go to Rvm instead?
        end

        def disable_sudo
          apply :disable_sudo
        end

        def reset_state
          if debug_build_via_api?
            raise "Debug payload does not contain 'previous_state' value." unless previous_state = data.debug_options[:previous_state]

            sh.echo
            sh.echo "This is a debug build. The build result is reset to its previous value, \\\"#{previous_state}\\\".", ansi: :yellow

            case previous_state
            when "passed"
              sh.export 'TRAVIS_TEST_RESULT', '0', echo: false
            when "failed"
              sh.export 'TRAVIS_TEST_RESULT', '1', echo: false
            when "errored"
              sh.raw 'travis_terminate 2'
            end
          end
        end

        def config_env_vars
          @config_env_vars ||= Build::Env::Config.new(data, config)
          Array(@config_env_vars.data[:env])
        end

        def host_os
          case RbConfig::CONFIG["host_os"]
          when /^(?i:linux)/
            '$(lsb_release -is | tr "A-Z" "a-z")'
          when /^(?i:darwin)/
            'osx'
          end
        end

        def rel_version
          case RbConfig::CONFIG["host_os"]
          when /^(?i:linux)/
            '$(lsb_release -rs)'
          when /^(?i:darwin)/
            '${$(sw_vers -productVersion)%*.*}'
          end
        end

        def debug_quiet?
          debug_build_via_api? && data.debug_options[:quiet]
        end

        def debug_enabled?
          Travis::Build.config.enable_debug_tools == '1'
        end

        def app_host
          @app_host ||= Travis::Build.config.app_host.to_s.strip.untaint
        end
    end
  end
end


text:
package com.pwawrzyniak.tlog.backend.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PastOrPresent;
import javax.validation.constraints.Pattern;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import static com.pwawrzyniak.tlog.backend.validation.ValidationConstants.COST_PATTERN;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class BillDto {

  private Long id;
  @NotNull
  @PastOrPresent
  private LocalDate date;
  @Valid
  @NotEmpty
  private List<BillItemDto> billItems;
  @Pattern(regexp = COST_PATTERN)
  private String totalCost;
  private LocalDateTime createdAt;
  private String createdBy;
  private LocalDateTime lastModifiedAt;
  private String lastModifiedBy;
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <title>jQuery Hello World</title>

This was demo of jQuery in Action


text:
List of strings; optional; nonconfigurable

  A list of distribution-method strings to be used for this particular build rule.

This is part of a deprecated licensing API that Bazel no longer uses. Don't
use this.