text:
module CapybaraExt

  def flash_success!(msg)
    within("#flash_success") do
      page.should have_content msg
    end
  end

  def flash_warning!(msg)
    within("#flash_warning") do
      page.should have_content msg
    end
  end

  # Just shorter to type.
  def page!
    save_and_open_page
  end

  def selector_for(identifier)
    case identifier
    when :first_post
      ".posts #post_1"
    when :second_post
      ".posts #post_2"
    else
      pending "no selector defined yet for #{identifier} - define one in support/capybara_ext.rb"
    end
  end

  #shorter way to write it
  def assert_seen!(str, opts={})
    if opts[:within].present?
      within(opts[:within]) do
        page.should have_content str
      end
    else
      page.should have_content str
    end
  end

  def meta_description_present!(description)
    page.should have_css %Q{meta[content="#{description}"]}, :visible => false
  end
end

RSpec.configure do |config|
  config.include CapybaraExt, :type => :feature
end


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:background="#fff"
    android:layout_height="match_parent">
<LinearLayout
    android:layout_width="match_parent"
    android:orientation="vertical"
    android:layout_height="@dimen/fragment_read_title_hieght">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="@dimen/fragment_read_title_hieght"
        android:text="读物"
        android:textSize="20dp"
        android:textStyle="bold"
        android:gravity="center"
        android:background="#fff"
        android:layout_gravity="center"/>
</LinearLayout>
    <android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/fragment_read_refresh"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <ListView
            android:backgroundTintMode="multiply"
            android:id="@+id/fragment_read_listview"
            android:layout_width="match_parent"
            android:background="#eee"
            android:layout_height="match_parent"></ListView>
    </android.support.v4.widget.SwipeRefreshLayout>

</LinearLayout>

redpajama_set_name: RedPajamaGithub


text:
Reference guide to what is happening under the hood with Maali.

## list of maali functions
### function maali_build
   starts on line 74
   this is the core function for configuring, compiling,   software
### function maali_cmake_build
   starts on line 88
   this th
### function maali_download
### function maali_genpkgconfig
### function maali_git_download
### function maali_load_module
### function maali_makedir
### function maali_module
### function maali_python_build
### function maali_run
### function maali_r_build
### function maali_unpack
### function maali_wiki
### function log
### function removedir
### function removefile

## what is happening when maali is installing itself

MAALI_TOOL_NAME=
MAALI_TOOL_VERSION=
MAALI_PYTHON_VERSION=
DEBUG=
MAALI_CONFIG=
MAALI_REBUILD=
MAALI_REBUILD_COMPILER=
MAALI_REMODULE=0
MAALI_BUILDONLY=
MAALI_SYSTEM_BUILD=NO
MAALI_CMAKE_PATH=".."
MAALI_MAKE_VERSION_DEFAULT=0
MAALI_FORCE_DOWNLOAD_FROM_GITHUB=0
MAALI_UNINSTALL_HIDE=0
MAALI_UNINSTALL_REMOVE=0
MAALI_SYSTEM_CYGNET_FILE=0
MAALI_CUDA_BUILD=0
MAALI_CUDA_SUPPORT=0

# for auto-building module files
MAALI_MODULE_SET_PATH=
MAALI_MODULE_SET_LD_LIBRARY_PATH=
MAALI_MODULE_SET_CPATH=
MAALI_MODULE_SET_FPATH=
MAALI_MODULE_SET_FCPATH=
MAALI_MODULE_SET_INCLUDE_PATH=
MAALI_MODULE_SET_PKG_CONFIG_PATH=
MAALI_MODULE_SET_MANPATH=
MAALI_MODULE_SET_PERLLIB=

# for auto-building module files for Cray
MAALI_MODULE_SET_CRAY_LD_LIBRARY_PATH=
MAALI_MODULE_PE_PKGCONFIG_NAME=
MAALI_MODULE_PE_PKGCONFIG_CFLAGS=
MAALI_MODULE_PE_PKGCONFIG_LMAALI=

##  Maali configuration for nectar

```
MAALI_OS=ubuntu14
MAALI_SYSTEM=nectar
MAALI_ROOT="/$MAALI_SYSTEM/$MAALI_OS"
MAALI_BUILD_DIR="$MAALI_ROOT/build"
MAALI_MODULE_DIR="$MAALI_ROOT/modulefiles"
MAALI_SRC="$MAALI_ROOT/src"
MAALI_SYSTEM_BUILD="YES"
MAALI_DEFAULT_COMPILERS="gnu/4.9.1"
#MAALI_DEFAULT_PYTHON=""
#MAALI_DEFAULT_MPI="openmpi/1.7.5"
```

### maali sequence

check if /tmp exists

define
MAALI_BUILD_DIR
MAALI_MODULE_DIR
MAALI_SRC

Source modules.sh if we are on a SLES
  Check if we are on a CRAY
   if not
     source /etc/profile.d/modules.sh
   else
     we are on a cray need to see if we are on an internal loging

define
MAALI_LOADEDMODULES
MAALI_IS_LOADED=0

loop through MAALI_LOADEDMOUELS
  check to see if maali is loaded
  set MAALI_IS_LOADED=1

check if MAALI_IS_LOADED not loaded
    check to if $Maali_version is "tip" (or latest)
    module load maali/$maali_version

check to see if MAALI_TOOL_NAME string length is not zero
  calls usage function!
  exits scripts when done

Check to see if MAALI_TOOL_NAME does not have 'system-' in it and
MAALI_TOOL_VERSION string length is not zero line 1174
  calls usage function
  exit scripts when done

line 1180 not sure if these will every be true??
check to see if MAALI_TOOL_NAME does not have system- in it
and $MAALI_TOOL_VERSION is not a string of length zero

test $MAALI_TOOL_NAME has system- in it?

Define - need a test to see if MAALI_TOOL_VERSION IS defined
MAALI_TOOL_MAJOR_VERSION
MAALI_TOOL_MAJOR_MINOR_VERSION

Check to see if we are on a cluster
 looks for SLURM or PBS
 Defaults MAALI_CORES=1  safe for login nodes
 if on a compute node
  use N cores

Define
MAALI_CMDLINE=$*
note caputures the command line??

Define
MAALI_TOOL_NAME_ORIG
reset MAALI_TOOL_NAME all lower case
MAALI_TOOL_NAME_UPPERCASE

define
MAALI_PYTHON_FIRSTLETTER

check if MAALI_CONFIG is set via usage function
  check if maali is installed
  else copies maali from pwd to $HOEM/.maali
  error test exit

check MAALI_SYSTEM_BUILD true
  check MAALI_BUILDER_UID is not length zero
  create maali wiki directory in HOME/.maali/MAALI_OS/wiki
  define
  MAALI_BUILDER_BUILD_CN
  MAALI_BUILDER_BUILD_MAIL
  check MAALI_BUILDER_BUILD_CN and MAALI_BUILDER_BUILD_MAIL
  check MAALI_USER_MAP
   source MAALI_USER_MAP
  error test  exit

check if default CRAY program environment

check MAALI_DEFAULT COMPILERS is not zero length
  set MAALI_DEFAULT GCC, intel, CCE compilers
  missing pgi??

check MAALI DEFAULT PYTHON
  set MAALI_DEFAULT_26_PYTHON or MAALI_DEFAULT_27_PYTHON

see if this is rebuild  line 1355
check MAALI_REBUILD true
  define MAALI_REBUILD_COMPILER_LOG
  define MAALI_LOG_PREFIX

create list of loaded modules in
Define MAALI_LOADEDMODULES
  unload all modules except maali  line 1367

load all modules as specified in MAALI_REQUIRED_SYSTEM_MODULES line 1378

make directory MAALI_SRC
make directory MAALI_BUILD_DIR
make directory MAALI_LOG_DIR

set MAALI_FOUND_**CYGENT?**=0 note CYGNET is mispelled

Check to see if we are downloading CYGNET FILES
  by Checking if MAALI_FORCE_DOWNLOAD_FROM_GITHUB is 0

  loop through list of MAALI_FILE_DIR
    is this a DEBUG this is set in usage function

  check MAALI_SYSTEM is not length of ZERO

check if MAALI_FOUND_CYGENT is 0 then
  try to download cygnet file from github
  check to see if $HOME/.maali/MAALI_OS/MAALI_CYGNET_DIR_NAME exists
    if not create it.
  DEFINE
  MAALI_CYGNET_FILEPATH
  MAALI_FILES_PATH
  call the **maali_git_download** function
  SET MAALI_FOUND_CYGNET =1

Source MAALI_CYGNET_FILEPATH

Check to see if MAALI_CUDA_BUILD is 1
  Check MAALI_CUDA_SUPPORT is 0
else MAALI_CUDA_BUILD is 0
  Set MAALI_TOOL_CUDA_COMPILERS="na"

loop over the list of MAALI_TOOL_PATCHES
  check to see if this is DEBUB install
  check to see if patch file exists
    if not found
      is this is a debug
      call the **maali_git_download** function
  else found patch file

loop of er MAALI_SYSTEM_PACKAGES_PREREQ
  NOTE not sure if this works for ubuntu needs testing
  set MAALI_SYSTEM_PACKAGES_VERSION using rpmquery
  if missing prereq package.
    error out and exit

if MAALI_REBUILD is true
   set MAALI_TOOL_COMPILERS=$MAALI_REBUILD_COMPILER

if MAALI_TOOL_COMPILERS is an empty string ""
   error out and exit

check to see if build is using python line 1527
loop over MAALI_TOOL_COMPILERS
  Define
  MAALI_COMPILER_NAME
  if MAALI_COMPILER_NAME is python
    set MAALI_PYTHON_TOOL to 1
    if MAALI_TOOL_TYPE is of length zero
       define MAALI_TOOL_TYPE is **python**
    if MAALI_MODULE_SET_PYTHONPATH is and empty string ""
       set MAALI_MODULE_SET_PYTHONPATH 1

### How are environment modules are created in MAALI?

Line 2048 creating module using  $MAALI_TOOL_MODULE_DIR


text:
<!DOCTYPE html>
{{ $baseUrl := .Site.BaseURL }}

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
		<link rel="icon" href="{{ $baseUrl }}/favicon.ico">
        <title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
        {{ with .Site.Params.themeColor }}
        <meta name="theme-color" content="{{ . }}" />
        {{ end }}

		<link rel="stylesheet" href="{{ $baseUrl }}/css/highlight/{{ with .Site.Params.highlightStyle }}{{ . }}{{ else }}default{{ end }}.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap.min.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap-theme.min.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/theme.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/bootie-docs.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/font-awesome.min.css">
		<link rel="stylesheet" href="{{ $baseUrl }}/css/site.css">

				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
					Toggle navigation

				</button>
				{{ .Site.Title }}

Home

			{{ $url := .URL }}
			{{ with .Site.Menus.main }}
				{{ range $menu := . }}

{{ .Name }}

				{{ end }}
			{{ end }}
				{{ if not .Site.Params.noCategoryLink }}

						Categories

						{{ range $name, $taxonomy := .Site.Taxonomies.categories }}

{{ title $name }}

						{{ end }}

				{{ end }}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

namespace Podcasts
{
    internal class IgnoreDataMemberContractResolver : DefaultContractResolver
    {
        protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
        {
            JsonProperty property = base.CreateProperty(member, memberSerialization);
            property.Ignored = false;
            return property;
        }
    }
}


text:
package servicecatalog

import (
	"context"
	"fmt"
	"math"
	"time"

	"github.com/kubernetes-sigs/service-catalog/pkg/apis/servicecatalog/v1beta1"
	"github.com/pkg/errors"
	apierrors "k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/apimachinery/pkg/util/sets"
	"k8s.io/apimachinery/pkg/util/wait"
)

// RetrieveInstances lists all instances in a namespace.
func (sdk *SDK) RetrieveInstances(ns, classFilter, planFilter string) (*v1beta1.ServiceInstanceList, error) {
	instances, err := sdk.ServiceCatalog().ServiceInstances(ns).List(context.Background(), v1.ListOptions{})
	if err != nil {
		return nil, errors.Wrapf(err, "unable to list instances in %s", ns)
	}

	if classFilter == "" && planFilter == "" {
		return instances, nil
	}

	filtered := v1beta1.ServiceInstanceList{
		Items: []v1beta1.ServiceInstance{},
	}

	for _, instance := range instances.Items {
		if classFilter != "" && instance.Spec.GetSpecifiedClusterServiceClass() != classFilter {
			continue
		}

		if planFilter != "" && instance.Spec.GetSpecifiedClusterServicePlan() != planFilter {
			continue
		}

		filtered.Items = append(filtered.Items, instance)
	}

	return &filtered, nil
}

// RetrieveInstance gets an instance by its name.
func (sdk *SDK) RetrieveInstance(ns, name string) (*v1beta1.ServiceInstance, error) {
	instance, err := sdk.ServiceCatalog().ServiceInstances(ns).Get(context.Background(), name, v1.GetOptions{})
	if err != nil {
		return nil, fmt.Errorf("unable to get instance '%s.%s' (%s)", ns, name, err)
	}
	return instance, nil
}

// RetrieveInstanceByBinding retrieves the parent instance for a binding.
func (sdk *SDK) RetrieveInstanceByBinding(b *v1beta1.ServiceBinding,
) (*v1beta1.ServiceInstance, error) {
	ns := b.Namespace
	instName := b.Spec.InstanceRef.Name
	inst, err := sdk.ServiceCatalog().ServiceInstances(ns).Get(context.Background(), instName, v1.GetOptions{})
	if err != nil {
		return nil, err
	}
	return inst, nil
}

// RetrieveInstancesByPlan retrieves all instances of a plan.
func (sdk *SDK) RetrieveInstancesByPlan(plan Plan) ([]v1beta1.ServiceInstance, error) {
	planOpts := v1.ListOptions{
		LabelSelector: labels.SelectorFromSet(labels.Set{
			v1beta1.GroupName + "/" + v1beta1.FilterSpecClusterServicePlanRefName: plan.GetName(),
		}).String(),
	}
	instances, err := sdk.ServiceCatalog().ServiceInstances("").List(context.Background(), planOpts)
	if err != nil {
		return nil, fmt.Errorf("unable to list instances (%s)", err)
	}

	return instances.Items, nil
}

// InstanceParentHierarchy retrieves all ancestor resources of an instance.
func (sdk *SDK) InstanceParentHierarchy(instance *v1beta1.ServiceInstance,
) (*v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, *v1beta1.ClusterServiceBroker, error) {
	class, plan, err := sdk.InstanceToServiceClassAndPlan(instance)
	if err != nil {
		return nil, nil, nil, err
	}

	broker, err := sdk.RetrieveBrokerByClass(class)
	if err != nil {
		return nil, nil, nil, err
	}

	return class, plan, broker, nil
}

// InstanceToServiceClassAndPlan retrieves the parent class and plan for an instance.
func (sdk *SDK) InstanceToServiceClassAndPlan(instance *v1beta1.ServiceInstance,
) (*v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, error) {
	classID := instance.Spec.ClusterServiceClassRef.Name
	classCh := make(chan *v1beta1.ClusterServiceClass)
	classErrCh := make(chan error)
	go func() {
		class, err := sdk.ServiceCatalog().ClusterServiceClasses().Get(context.Background(), classID, v1.GetOptions{})
		if err != nil {
			classErrCh <- err
			return
		}
		classCh <- class
	}()

	planID := instance.Spec.ClusterServicePlanRef.Name
	planCh := make(chan *v1beta1.ClusterServicePlan)
	planErrCh := make(chan error)
	go func() {
		plan, err := sdk.ServiceCatalog().ClusterServicePlans().Get(context.Background(), planID, v1.GetOptions{})
		if err != nil {
			planErrCh <- err
			return
		}
		planCh <- plan
	}()

	var class *v1beta1.ClusterServiceClass
	var plan *v1beta1.ClusterServicePlan
	for {
		select {
		case cl := <-classCh:
			class = cl
			if class != nil && plan != nil {
				return class, plan, nil
			}
		case err := <-classErrCh:
			return nil, nil, err
		case pl := <-planCh:
			plan = pl
			if class != nil && plan != nil {
				return class, plan, nil
			}
		case err := <-planErrCh:
			return nil, nil, err

		}
	}
}

// Provision creates an instance of a specific service class and plan specified
// by their k8s names. Depending on provisionClusterInstance, it will create either
// an instance of a cluster class/plan or a namespaced class/plan
func (sdk *SDK) Provision(instanceName, classKubeName, planKubeName string, provisionClusterInstance bool, opts *ProvisionOptions) (*v1beta1.ServiceInstance, error) {
	var request *v1beta1.ServiceInstance
	if provisionClusterInstance {
		request = &v1beta1.ServiceInstance{
			ObjectMeta: v1.ObjectMeta{
				Name:      instanceName,
				Namespace: opts.Namespace,
			},
			Spec: v1beta1.ServiceInstanceSpec{
				ExternalID: opts.ExternalID,
				PlanReference: v1beta1.PlanReference{
					ClusterServiceClassName: classKubeName,
					ClusterServicePlanName:  planKubeName,
				},
				Parameters:     BuildParameters(opts.Params),
				ParametersFrom: BuildParametersFrom(opts.Secrets),
			},
		}
	} else {
		request = &v1beta1.ServiceInstance{
			ObjectMeta: v1.ObjectMeta{
				Name:      instanceName,
				Namespace: opts.Namespace,
			},
			Spec: v1beta1.ServiceInstanceSpec{
				ExternalID: opts.ExternalID,
				PlanReference: v1beta1.PlanReference{
					ServiceClassName: classKubeName,
					ServicePlanName:  planKubeName,
				},
				Parameters:     BuildParameters(opts.Params),
				ParametersFrom: BuildParametersFrom(opts.Secrets),
			},
		}
	}
	result, err := sdk.ServiceCatalog().ServiceInstances(opts.Namespace).Create(context.Background(), request, v1.CreateOptions{})
	if err != nil {
		return nil, fmt.Errorf("provision request failed (%s)", err)
	}
	return result, nil
}

// Deprovision deletes an instance.
func (sdk *SDK) Deprovision(namespace, instanceName string) error {
	err := sdk.ServiceCatalog().ServiceInstances(namespace).Delete(context.Background(), instanceName, v1.DeleteOptions{})
	if err != nil {
		return fmt.Errorf("deprovision request failed (%s)", err)
	}
	return nil
}

// TouchInstance increments the updateRequests field on an instance to make
// service process it again (might be an update, delete, or noop)
func (sdk *SDK) TouchInstance(ns, name string, retries int) error {
	for j := 0; j < retries; j++ {
		inst, err := sdk.RetrieveInstance(ns, name)
		if err != nil {
			return err
		}

		inst.Spec.UpdateRequests = inst.Spec.UpdateRequests + 1

		_, err = sdk.ServiceCatalog().ServiceInstances(ns).Update(context.Background(), inst, v1.UpdateOptions{})
		if err == nil {
			return nil
		}
		// if we didn't get a conflict, no idea what happened
		if !apierrors.IsConflict(err) {
			return fmt.Errorf("could not touch instance (%s)", err)
		}
	}

	// conflict after `retries` tries
	return fmt.Errorf("could not sync service broker after %d tries", retries)
}

// WaitForInstanceToNotExist waits for the specified instance to no longer exist.
func (sdk *SDK) WaitForInstanceToNotExist(ns, name string, interval time.Duration, timeout *time.Duration) (instance *v1beta1.ServiceInstance, err error) {
	if timeout == nil {
		notimeout := time.Duration(math.MaxInt64)
		timeout = &notimeout
	}

	err = wait.PollImmediate(interval, *timeout,
		func() (bool, error) {
			instance, err = sdk.ServiceCatalog().ServiceInstances(ns).Get(context.Background(), name, v1.GetOptions{})
			if err != nil {
				if apierrors.IsNotFound(err) {
					err = nil
				}
				return true, err
			}
			return false, err
		})
	return instance, err
}

// WaitForInstance waits for the instance to complete the current operation (or fail).
func (sdk *SDK) WaitForInstance(ns, name string, interval time.Duration, timeout *time.Duration) (instance *v1beta1.ServiceInstance, err error) {
	if timeout == nil {
		notimeout := time.Duration(math.MaxInt64)
		timeout = &notimeout
	}

	err = wait.PollImmediate(interval, *timeout,
		func() (bool, error) {
			instance, err = sdk.RetrieveInstance(ns, name)
			if nil != err {
				return false, err
			}

			if len(instance.Status.Conditions) == 0 {
				return false, nil
			}

			isDone := (sdk.IsInstanceReady(instance) || sdk.IsInstanceFailed(instance)) && !instance.Status.AsyncOpInProgress
			return isDone, nil
		},
	)

	return instance, err
}

// IsInstanceReady returns if the instance is in the Ready status.
func (sdk *SDK) IsInstanceReady(instance *v1beta1.ServiceInstance) bool {
	return sdk.InstanceHasStatus(instance, v1beta1.ServiceInstanceConditionReady)
}

// IsInstanceFailed returns if the instance is in the Failed status.
func (sdk *SDK) IsInstanceFailed(instance *v1beta1.ServiceInstance) bool {
	return sdk.InstanceHasStatus(instance, v1beta1.ServiceInstanceConditionFailed)
}

// InstanceHasStatus returns if the instance is in the specified status.
func (sdk *SDK) InstanceHasStatus(instance *v1beta1.ServiceInstance, status v1beta1.ServiceInstanceConditionType) bool {
	for _, cond := range instance.Status.Conditions {
		if cond.Type == status &&
			cond.Status == v1beta1.ConditionTrue {
			return true
		}
	}

	return false
}

// RemoveFinalizerForInstance removes v1beta1.FinalizerServiceCatalog from the specified instance.
func (sdk *SDK) RemoveFinalizerForInstance(ns, name string) error {
	instance, err := sdk.RetrieveInstance(ns, name)
	if err != nil {
		return err
	}

	finalizers := sets.NewString(instance.Finalizers...)
	finalizers.Delete(v1beta1.FinalizerServiceCatalog)
	instance.Finalizers = finalizers.List()
	_, err = sdk.ServiceCatalog().ServiceInstances(instance.Namespace).Update(context.Background(), instance, v1.UpdateOptions{})
	if err != nil {
		return err
	}
	return nil
}


text:
import React from 'react'

export default class SesionUser extends React.Component {
	constructor(props){
		super(props)
	}

	render(){
		return

                      <button type="button" className="close" data-dismiss="modal" aria-label="Close">×</button>

Iniciar Sesion

                                <input type="email" id="userf" className="form-control" placeholder="Email" aria-describedby="basic-addon1"/>

                                <input type="password" id="passf" className="form-control" placeholder="Password" aria-describedby="basic-addon1"/>

Olvide mi Contraseña?

                      <button type="button" className="btn btn-default" data-dismiss="modal">Cerrar</button>
                      <button type="button" id="initbtn" className="btn btn-primary">Iniciar</button>

	}

}


text:
/**
 * WaveXmd.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.sforce.soap._2006._04.metadata;

public class WaveXmd  extends com.sforce.soap._2006._04.metadata.Metadata  implements java.io.Serializable {
    private java.lang.String dataset;

    private java.lang.String datasetConnector;

    private java.lang.String datasetFullyQualifiedName;

    private com.sforce.soap._2006._04.metadata.WaveXmdDate[] dates;

    private com.sforce.soap._2006._04.metadata.WaveXmdDimension[] dimensions;

    private com.sforce.soap._2006._04.metadata.WaveXmdMeasure[] measures;

    private com.sforce.soap._2006._04.metadata.WaveXmdOrganization[] organizations;

    private java.lang.String origin;

    public WaveXmd() {
    }

    public WaveXmd(
           java.lang.String fullName,
           java.lang.String dataset,
           java.lang.String datasetConnector,
           java.lang.String datasetFullyQualifiedName,
           com.sforce.soap._2006._04.metadata.WaveXmdDate[] dates,
           com.sforce.soap._2006._04.metadata.WaveXmdDimension[] dimensions,
           com.sforce.soap._2006._04.metadata.WaveXmdMeasure[] measures,
           com.sforce.soap._2006._04.metadata.WaveXmdOrganization[] organizations,
           java.lang.String origin) {
        super(
            fullName);
        this.dataset = dataset;
        this.datasetConnector = datasetConnector;
        this.datasetFullyQualifiedName = datasetFullyQualifiedName;
        this.dates = dates;
        this.dimensions = dimensions;
        this.measures = measures;
        this.organizations = organizations;
        this.origin = origin;
    }

    /**
     * Gets the dataset value for this WaveXmd.
     *
     * @return dataset
     */
    public java.lang.String getDataset() {
        return dataset;
    }

    /**
     * Sets the dataset value for this WaveXmd.
     *
     * @param dataset
     */
    public void setDataset(java.lang.String dataset) {
        this.dataset = dataset;
    }

    /**
     * Gets the datasetConnector value for this WaveXmd.
     *
     * @return datasetConnector
     */
    public java.lang.String getDatasetConnector() {
        return datasetConnector;
    }

    /**
     * Sets the datasetConnector value for this WaveXmd.
     *
     * @param datasetConnector
     */
    public void setDatasetConnector(java.lang.String datasetConnector) {
        this.datasetConnector = datasetConnector;
    }

    /**
     * Gets the datasetFullyQualifiedName value for this WaveXmd.
     *
     * @return datasetFullyQualifiedName
     */
    public java.lang.String getDatasetFullyQualifiedName() {
        return datasetFullyQualifiedName;
    }

    /**
     * Sets the datasetFullyQualifiedName value for this WaveXmd.
     *
     * @param datasetFullyQualifiedName
     */
    public void setDatasetFullyQualifiedName(java.lang.String datasetFullyQualifiedName) {
        this.datasetFullyQualifiedName = datasetFullyQualifiedName;
    }

    /**
     * Gets the dates value for this WaveXmd.
     *
     * @return dates
     */
    public com.sforce.soap._2006._04.metadata.WaveXmdDate[] getDates() {
        return dates;
    }

    /**
     * Sets the dates value for this WaveXmd.
     *
     * @param dates
     */
    public void setDates(com.sforce.soap._2006._04.metadata.WaveXmdDate[] dates) {
        this.dates = dates;
    }

    public com.sforce.soap._2006._04.metadata.WaveXmdDate getDates(int i) {
        return this.dates[i];
    }

    public void setDates(int i, com.sforce.soap._2006._04.metadata.WaveXmdDate _value) {
        this.dates[i] = _value;
    }

    /**
     * Gets the dimensions value for this WaveXmd.
     *
     * @return dimensions
     */
    public com.sforce.soap._2006._04.metadata.WaveXmdDimension[] getDimensions() {
        return dimensions;
    }

    /**
     * Sets the dimensions value for this WaveXmd.
     *
     * @param dimensions
     */
    public void setDimensions(com.sforce.soap._2006._04.metadata.WaveXmdDimension[] dimensions) {
        this.dimensions = dimensions;
    }

    public com.sforce.soap._2006._04.metadata.WaveXmdDimension getDimensions(int i) {
        return this.dimensions[i];
    }

    public void setDimensions(int i, com.sforce.soap._2006._04.metadata.WaveXmdDimension _value) {
        this.dimensions[i] = _value;
    }

    /**
     * Gets the measures value for this WaveXmd.
     *
     * @return measures
     */
    public com.sforce.soap._2006._04.metadata.WaveXmdMeasure[] getMeasures() {
        return measures;
    }

    /**
     * Sets the measures value for this WaveXmd.
     *
     * @param measures
     */
    public void setMeasures(com.sforce.soap._2006._04.metadata.WaveXmdMeasure[] measures) {
        this.measures = measures;
    }

    public com.sforce.soap._2006._04.metadata.WaveXmdMeasure getMeasures(int i) {
        return this.measures[i];
    }

    public void setMeasures(int i, com.sforce.soap._2006._04.metadata.WaveXmdMeasure _value) {
        this.measures[i] = _value;
    }

    /**
     * Gets the organizations value for this WaveXmd.
     *
     * @return organizations
     */
    public com.sforce.soap._2006._04.metadata.WaveXmdOrganization[] getOrganizations() {
        return organizations;
    }

    /**
     * Sets the organizations value for this WaveXmd.
     *
     * @param organizations
     */
    public void setOrganizations(com.sforce.soap._2006._04.metadata.WaveXmdOrganization[] organizations) {
        this.organizations = organizations;
    }

    public com.sforce.soap._2006._04.metadata.WaveXmdOrganization getOrganizations(int i) {
        return this.organizations[i];
    }

    public void setOrganizations(int i, com.sforce.soap._2006._04.metadata.WaveXmdOrganization _value) {
        this.organizations[i] = _value;
    }

    /**
     * Gets the origin value for this WaveXmd.
     *
     * @return origin
     */
    public java.lang.String getOrigin() {
        return origin;
    }

    /**
     * Sets the origin value for this WaveXmd.
     *
     * @param origin
     */
    public void setOrigin(java.lang.String origin) {
        this.origin = origin;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof WaveXmd)) return false;
        WaveXmd other = (WaveXmd) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = super.equals(obj) &&
            ((this.dataset==null && other.getDataset()==null) ||
             (this.dataset!=null &&
              this.dataset.equals(other.getDataset()))) &&
            ((this.datasetConnector==null && other.getDatasetConnector()==null) ||
             (this.datasetConnector!=null &&
              this.datasetConnector.equals(other.getDatasetConnector()))) &&
            ((this.datasetFullyQualifiedName==null && other.getDatasetFullyQualifiedName()==null) ||
             (this.datasetFullyQualifiedName!=null &&
              this.datasetFullyQualifiedName.equals(other.getDatasetFullyQualifiedName()))) &&
            ((this.dates==null && other.getDates()==null) ||
             (this.dates!=null &&
              java.util.Arrays.equals(this.dates, other.getDates()))) &&
            ((this.dimensions==null && other.getDimensions()==null) ||
             (this.dimensions!=null &&
              java.util.Arrays.equals(this.dimensions, other.getDimensions()))) &&
            ((this.measures==null && other.getMeasures()==null) ||
             (this.measures!=null &&
              java.util.Arrays.equals(this.measures, other.getMeasures()))) &&
            ((this.organizations==null && other.getOrganizations()==null) ||
             (this.organizations!=null &&
              java.util.Arrays.equals(this.organizations, other.getOrganizations()))) &&
            ((this.origin==null && other.getOrigin()==null) ||
             (this.origin!=null &&
              this.origin.equals(other.getOrigin())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = super.hashCode();
        if (getDataset() != null) {
            _hashCode += getDataset().hashCode();
        }
        if (getDatasetConnector() != null) {
            _hashCode += getDatasetConnector().hashCode();
        }
        if (getDatasetFullyQualifiedName() != null) {
            _hashCode += getDatasetFullyQualifiedName().hashCode();
        }
        if (getDates() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getDates());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getDates(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getDimensions() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getDimensions());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getDimensions(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getMeasures() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getMeasures());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getMeasures(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getOrganizations() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getOrganizations());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getOrganizations(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getOrigin() != null) {
            _hashCode += getOrigin().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(WaveXmd.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "WaveXmd"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dataset");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "dataset"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("datasetConnector");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "datasetConnector"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("datasetFullyQualifiedName");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "datasetFullyQualifiedName"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dates");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "dates"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "WaveXmdDate"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dimensions");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "dimensions"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "WaveXmdDimension"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("measures");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "measures"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "WaveXmdMeasure"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("organizations");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "organizations"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "WaveXmdOrganization"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("origin");
        elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "origin"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType,
           java.lang.Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType,
           java.lang.Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}


text:
package cloud_test

import (
	"io/ioutil"

	"cloud.google.com/go/datastore"
	"golang.org/x/net/context"
	"golang.org/x/oauth2/google"
	"google.golang.org/api/option"
)

func Example_applicationDefaultCredentials() {
	ctx := context.Background()
	// Use Google Application Default Credentials to authorize and authenticate the client.
	// More information about Application Default Credentials and how to enable is at
	// https://developers.google.com/identity/protocols/application-default-credentials.
	//
	// This is the recommended way of authorizing and authenticating.
	//
	// Note: The example uses the datastore client, but the same steps apply to
	// the other client libraries underneath this package.
	client, err := datastore.NewClient(ctx, "project-id")
	if err != nil {
		// TODO: handle error.
	}
	// Use the client.
	_ = client
}

func Example_serviceAccount() {
	// Warning: The better way to use service accounts is to set GOOGLE_APPLICATION_CREDENTIALS
	// and use the Application Default Credentials.
	ctx := context.Background()
	// Use a JSON key file associated with a Google service account to
	// authenticate and authorize.
	// Go to https://console.developers.google.com/permissions/serviceaccounts to create
	// and download a service account key for your project.
	//
	// Note: The example uses the datastore client, but the same steps apply to
	// the other client libraries underneath this package.
	key, err := ioutil.ReadFile("/path/to/service-account-key.json")
	if err != nil {
		// TODO: handle error.
	}
	cfg, err := google.JWTConfigFromJSON(key, datastore.ScopeDatastore)
	if err != nil {
		// TODO: handle error.
	}
	client, err := datastore.NewClient(
		ctx, "project-id", option.WithTokenSource(cfg.TokenSource(ctx)))
	if err != nil {
		// TODO: handle error.
	}
	// Use the client.
	_ = client
}


text:
package io.reflectoring.coderadar.analyzer.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public class AnalyzeFileDto {
  private final long id;
  private final String path;
}


text:
[![Poggit Release](https://poggit.pmmp.io/shield.approved/AntiSpamPro)](https://poggit.pmmp.io/p/AntiSpamPro)

Antispam plugin with configurable delay, profanity filter (block swear words), automatic actions (kick, ban) and commands to change settings on the fly in console or in game.

Also detects command spam.

### Commands

`/asp` - display the current AntiSpamPro settings

`/asp kick` - kick spammers

`/asp ban` - ban spammers

`/asp banip` - banip and ban spammers

`/asp bancid` - ban, banip and bancid spammers (if available)

`asp set {1, 2 or 3}` - change the allowed delay between chat to 1, 2 or 3 seconds

### Permissions
You need the permission `asp` to use any of the commands. There is no spam bypass permission.
The delay setting in config.yml can be set freely.

### API
To configure other plugins to use the AntiSpamPro profanity filter, use this is onEnable():

```
$this->antispampro = $this>getServer()->getPluginManager()->getPlugin("AntiSpamPro");
  if (!$this->antispampro) {
     $this->getLogger()->info("Unable to find AntiSpamPro");
}
```

then use this to check for swear words:

```
if ($this->antispampro && $this->antispampro->getProfanityFilter()->hasProfanity($wordtocheck)) {...Do THIS....}
```

### Credits

Kudos and thanks to:

https://github.com/mofodojodino/ProfanityFilter

and

https://github.com/fastwebmedia/Profanity-Filter


text:
'use strict';

/**
 * Paged Issue Attachment list representation.
 */
class IssueAttachmentCollection extends Array {
  /**
   * Create a IssueAttachmentCollection.
   * @property {string} [nextLink] Next page link if any.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of IssueAttachmentCollection
   *
   * @returns {object} metadata of IssueAttachmentCollection
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'IssueAttachmentCollection',
      type: {
        name: 'Composite',
        className: 'IssueAttachmentCollection',
        modelProperties: {
          value: {
            required: false,
            readOnly: true,
            serializedName: '',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'IssueAttachmentContractElementType',
                  type: {
                    name: 'Composite',
                    className: 'IssueAttachmentContract'
                  }
              }
            }
          },
          nextLink: {
            required: false,
            readOnly: true,
            serializedName: 'nextLink',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = IssueAttachmentCollection;


text:
using System;

using NUnit.Framework;

namespace Google.Maps.Elevation
{
	[TestFixture]
	public class ElevationServiceTests
	{
		GoogleSigned TestingApiKey;

		ElevationService CreateService()
		{
			var svc = new ElevationService(TestingApiKey);
			return svc;
		}

		[OneTimeSetUp]
		public void OneTimeSetUp()
		{
			TestingApiKey = SigningHelper.GetApiKey();
		}

		[Test]
		[Category("ValueTesting")]
		public void SHOULD_NOT_RUN()
		{
			Console.WriteLine("SHOULD NOT RUN!!!");
		}

		[Test]
		[Category("ValueTesting")]
		public void GetElevationForOneLocation()
		{
			// expectations
			var expectedStatus = ServiceResponseStatus.Ok;
			var expectedResultCount = 1;
			var expectedElevation = 1608.6m;
			var expectedLocation = new LatLng(39.739153, -104.984703);

			// test
			var request = new ElevationRequest();

			request.AddLocations(expectedLocation);
			var response = CreateService().GetResponse(request);

			if(response.Status == ServiceResponseStatus.OverQueryLimit)
			{
				Assert.Ignore("OverQueryLimit");
			}

			// asserts
			Assert.AreEqual(expectedStatus, response.Status);
			Assert.AreEqual(expectedResultCount, response.Results.Length);

			Assert.That(expectedElevation, Is.EqualTo(response.Results[0].Elevation).Within(0.1));

			Assert.That(expectedLocation, Is.EqualTo(response.Results[0].Location));
		}

		[Test]
		[Category("ValueTesting")]
		public void GetElevationForTwoLocations()
		{
			// expectations
			var expectedStatus = ServiceResponseStatus.Ok;
			var expectedResultCount = 2;

			var expectedElevation1 = 1608.6m;
			var expectedLocation1 = new LatLng(39.739153, -104.984703);
			var expectedElevation2 = -50.789m;
			var expectedLocation2 = new LatLng(36.4555560, -116.8666670);

			// test
			var request = new ElevationRequest();

			request.AddLocations(expectedLocation1, expectedLocation2);
			var response = CreateService().GetResponse(request);

			if(response.Status == ServiceResponseStatus.OverQueryLimit)
			{
				Assert.Ignore("OverQueryLimit");
			}

			// asserts
			Assert.AreEqual(expectedStatus, response.Status);

			Assert.AreEqual(expectedResultCount, response.Results.Length);

			Assert.That(expectedElevation1, Is.EqualTo(response.Results[0].Elevation).Within(0.1));
			Assert.That(expectedLocation1, Is.EqualTo(response.Results[0].Location));

			Assert.That(expectedElevation2, Is.EqualTo(response.Results[1].Elevation).Within(0.1));
			Assert.That(expectedLocation2, Is.EqualTo(response.Results[1].Location));
		}
	}
}


text:
package com.rumblesan.scalaexperiments.forcomprehension

object ForComprehension {

  object OptionExample {

    def maybeValue(value: Int): Option[Int] = {
      if (value == 4) None
      else Some(value)
    }

    def maybeMult(value: Int, mult: Int): Option[Int] = {
      if (mult == 5) None
      else Some(value * mult)
    }

    def maybePlus(v1: Int, v2: Int): Option[Int] = {
      if (v1 == v2) None
      else Some(v1 + v2)
    }

  }

  object ListExample {

    def oneUpAndDown(value: Int): List[Int] = {
      List(value - 1, value, value + 1)
    }

    def doubleIt(value: Int): List[Int] = {
      List(value, value)
    }

  }

}


text:
<?php

class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative extends Google_Collection
{
  protected $collection_key = 'words';
  public $confidence;
  public $transcript;
  protected $wordsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1WordInfo';
  protected $wordsDataType = 'array';

  public function setConfidence($confidence)
  {
    $this->confidence = $confidence;
  }
  public function getConfidence()
  {
    return $this->confidence;
  }
  public function setTranscript($transcript)
  {
    $this->transcript = $transcript;
  }
  public function getTranscript()
  {
    return $this->transcript;
  }
  /**
   * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1WordInfo
   */
  public function setWords($words)
  {
    $this->words = $words;
  }
  /**
   * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1WordInfo
   */
  public function getWords()
  {
    return $this->words;
  }
}


text:
#ifndef CPPUNIT_PLUGIN_TESTPLUGINADAPTER
#define CPPUNIT_PLUGIN_TESTPLUGINADAPTER

#include <cppunit/Portability.h>

#if !defined(CPPUNIT_NO_TESTPLUGIN)

#include <cppunit/plugin/TestPlugIn.h>

#if CPPUNIT_NEED_DLL_DECL
#pragma warning( push )
#pragma warning( disable: 4251 4660 )  // X needs to have dll-interface to be used by clients of class Z
#endif

CPPUNIT_NS_BEGIN

class TestSuite;

/*! \brief Default implementation of test plug-in interface.
 * \ingroup WritingTestPlugIn
 *
 * Override getSuiteName() to specify the suite name. Default is "All Tests".
 *
 * CppUnitTestPlugIn::getTestSuite() returns a suite that contains
 * all the test registered to the default test factory registry
 * ( TestFactoryRegistry::getRegistry() ).
 *
 */
class CPPUNIT_API TestPlugInDefaultImpl : public CppUnitTestPlugIn
{
public:
  TestPlugInDefaultImpl();

  virtual ~TestPlugInDefaultImpl();

  void initialize( TestFactoryRegistry *registry,
                   const PlugInParameters &parameters );

  void addListener( TestResult *eventManager );

  void removeListener( TestResult *eventManager );

  void addXmlOutputterHooks( XmlOutputter *outputter );

  void removeXmlOutputterHooks();

  void uninitialize( TestFactoryRegistry *registry );
};

CPPUNIT_NS_END

#if CPPUNIT_NEED_DLL_DECL
#pragma warning( pop )
#endif

#endif // !defined(CPPUNIT_NO_TESTPLUGIN)

#endif // CPPUNIT_PLUGIN_TESTPLUGINADAPTER


text:
<?php
    require_once 'connection.php';
    require_once 'library.php';

    if(chkLogin()){
        header("Location: home.php");
    }

   if(isset($_POST['reg'])){

        $fname = $_POST['fname'];
        $email = $_POST['email'];
        $phone = $_POST['phone'];
        $temp  = $_POST['pass'];
        $value_role=$_POST['Role'];
        $options = array('cost' => 10);
        $pass = password_hash($temp, PASSWORD_BCRYPT, $options);

        $arrays = array(

            "FirstName"    => $fname,
            "PhoneNumber"  => $phone,
            "EmailAddress" => $email,
            "Password"      => $pass,
            "Role"          => $value_role
        );

        $query = chkemail($email);

        if($query){
            register($arrays);
            session_start();
            session_regenerate_id();
             $arre = array(
                          "Email"     => $email,
                          "SessionID" => session_id()
                        );

                         $db = $m->helfis;
                        //echo "Databse loginreg selected";
                        $collection = $db->login;
                        //echo "Collection userdata Selected Successfully";
                        $collection->insert($arre);
                       // echo "Document inserted successfully";

            if($value_role==1)
                header("Location: ../admin/index.php");
            elseif($value_role==2)
                header('Location:../company_admin/index.php');
            elseif($value_role==3)
                header("Location:../indexfinal1.php");
            else{
                session_destroy();
                header("Location:login.php");
            }
        }
       else{
        echo "Email already registered!";
           echo"
";
        echo "Please Register with another email ID";
       }
    }
 ?>


text:
layout: default
title: Welcome !
---
{% assign offsetPosts = paginator.page | minus:1 | times:paginator.per_page %}
{% for post in site.posts offset:offsetPosts limit:paginator.per_page %}

{{ post.title }}

{{ post.type }}

by {{ post.author }}

{{ post.date | date: '%B %d, %Y' }}

{{ post.description }}

          Read the article

{% endfor %}

{% if paginator.page != paginator.total_pages %}

1

2

3

4

5

{% endif %}


text:
/* This is the main file used to produce the basic* objects that are
   used for the dsymutil tests.

   These are compiled in a couple of different ways (always on a
   Darwin system):
   Basic compilation:
      for FILE in basic1.c basic2.c basic3.c; do
         clang -g -c $FILE -o ${FILE%.c}.macho.x86_64.o
      done
      clang basic1.macho.x86_64.o basic2.macho.x86_64.o basic3.macho.x86_64.o -o basic.macho.x86_64 -Wl,-dead_strip

   LTO compilation:
      for FILE in basic1.c basic2.c basic3.c; do
         clang -g -c -flto $FILE -o ${FILE%.c}-lto.o
      done
      clang basic1-lto.o basic2-lto.o basic3-lto.o -o basic-lto.macho.x86_64 -Wl,-object_path_lto,$PWD/basic-lto.macho.x86_64.o -Wl,-dead_strip
      rm basic1-lto.o basic2-lto.o basic3-lto.o

   Archive compilation (after basic compilation):
      ar -q libbasic.a basic2.macho.x86_64.o basic3.macho.x86_64.o
      clang basic1.macho.x86_64.o -lbasic -o basic-archive.macho.x86_64 -Wl,-dead_strip -L.
*/

int foo(int);

int main(int argc, const char *argv[]) {
  return foo(argc);
}


text:
import * as webpack from 'webpack';
import * as FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';

const compiler = webpack({
    plugins: [
        new FriendlyErrorsPlugin(),
    ],
});


text:
package wdl.draft2.model.types

import wdl.draft2.model.WdlExpression
import wom.types.WomType

case object WdlExpressionType extends WomType {
  override def stableName: String = "Expression"

  override protected def coercion = {
    case s: String if s.startsWith("%expr:") => WdlExpression.fromString(s.replace("%expr:", ""))
  }
}


text:
+++
Title = "Elazar Leibovich"
Twitter = ""
image = "elazar-leibovich.png"
type = "speaker"
linktitle = "elazar-leibovich"

+++

Developer @Lightbits, previously hypervisors developer at Ravello. Linux Kernel, Distributed Systems.


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

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_horizontal">

    <RelativeLayout
        android:id="@+id/square_background"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:background="@drawable/custom_selector">
        <TextView
            android:id="@+id/circle_letter"
            android:layout_width="40dp"
            android:layout_height="wrap_content"
            android:textColor="@android:color/white"
            android:gravity="center"
            android:layout_centerVertical="true"
            android:textSize="30sp"
            android:background="@drawable/circle_view"
            android:padding="0dp"
            android:text="U"/>

        <TextView
            android:id="@+id/name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Unnamed"
            android:maxLines="1"
            android:maxLength="15"
            android:ellipsize="end"
            android:layout_marginTop="10dp"
            android:layout_marginLeft="5dp"
            android:gravity="center"
            android:textAlignment="center"
            android:layout_toRightOf="@id/circle_letter"
            android:textColor="@android:color/black"
            android:textSize="15sp"/>
        <TextView
            android:id="@+id/cross"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="x"
            android:layout_marginTop="5dp"
            android:gravity="center"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="10dp"
            android:layout_toRightOf="@id/name"
            android:textColor="@android:color/black"
            android:textSize="20sp"/>
    </RelativeLayout>
</RelativeLayout>


text:
using Rotativa.MVC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Serialization;
using TietoCRM.Extensions;
using TietoCRM.Models;

namespace TietoCRM.Controllers.Reports
{
    public class WhitespotReportController : Controller
    {
        // GET: WhitespotReport
        public ActionResult Index()
        {
            ViewData.Add("Users", view_User.getAllUsers());
            ViewData.Add("Title", "Whitespot Report");

            return View();
        }

        public ActionResult Pdf()
        {
            List<Dictionary<String, object>> contracts = this.GenerateValidContracts();

            String sortDirection = Request["sort"];
            String sortKey = Request["prop"];

            ViewData.Add("Contracts", (new SortedByColumnCollection(contracts, sortDirection, sortKey)).Collection);

            this.ViewData["Title"] = "Whitespot Report";

            ViewAsPdf pdf = new ViewAsPdf("Pdf");
            pdf.RotativaOptions.CustomSwitches = "--print-media-type --header-right \"" + DateTime.Now.ToString("yyyy-MM-dd") + "\" --header-left \"\"";
            pdf.RotativaOptions.CustomSwitches += " --header-center \"Valid Contracts Report\"";

            return pdf;
        }

        public String Contracts()
        {
            return "{\"data\":" + (new JavaScriptSerializer()).Serialize(this.GenerateValidContracts()) + "}";
        }

        public List<Dictionary<String, object>> GenerateValidContracts()
        {
            view_User user = System.Web.HttpContext.Current.GetUser();
            List<view_Customer> customers;
            if (user.User_level > 1)
                customers = view_Customer.getAllCustomers(user.Sign);
            else
                customers = view_Customer.getAllCustomers();

            SelectOptions<view_Customer> selectOptions = new SelectOptions<view_Customer>();
            List<Dictionary<String, object>> rows = new List<Dictionary<String, object>>();
            foreach (view_Customer customer in customers)
            {
                Dictionary<String, object> dict = new Dictionary<String, object>();
                int amountValidContracts = 0;
                List<view_Contract> contracts = view_Contract.GetContracts(customer.Customer);
                bool noValidContract = true;
                foreach (view_Contract contract in contracts)
                {
                    if (contract.Status == "Giltigt" || contract.Status == "Sänt" && user.IfSameArea(contract.Area))
                    {
                        noValidContract = false;
                    }
                }

                if (noValidContract)
                {
                    dict.Add("customer", customer.Customer);
                    dict.Add("customer_type", customer.Customer_type);
                    dict.Add("county", customer.GetCounty(selectOptions).ToString());
                    dict.Add("address", customer.Address);
                    dict.Add("zip_code", customer.Zip_code);
                    dict.Add("city", customer.City);
                    dict.Add("it_manager", customer.IT_manager);
                    dict.Add("it_manager_email", customer.IT_manager_email);
                    rows.Add(dict);
                }
            }
            return rows;
        }
    }
}


text:
"""GYP backend that generates Eclipse CDT settings files.

This backend DOES NOT generate Eclipse CDT projects. Instead, it generates XML
files that can be imported into an Eclipse CDT project. The XML file contains a
list of include paths and symbols (i.e. defines).

Because a full .cproject definition is not created by this generator, it's not
possible to properly define the include dirs and symbols for each file
individually.  Instead, one set of includes/symbols is generated for the entire
project.  This works fairly well (and is a vast improvement in general), but may
still result in a few indexer issues here and there.

This generator has no automated tests, so expect it to be broken.
"""

from xml.sax.saxutils import escape
import os.path
import subprocess
import gyp
import gyp.common
import gyp.msvs_emulation
import shlex
import xml.etree.cElementTree as ET

generator_wants_static_library_dependencies_adjusted = False

generator_default_variables = {}

for dirname in ["INTERMEDIATE_DIR", "PRODUCT_DIR", "LIB_DIR", "SHARED_LIB_DIR"]:
    # Some gyp steps fail if these are empty(!), so we convert them to variables
    generator_default_variables[dirname] = "$" + dirname

for unused in [
    "RULE_INPUT_PATH",
    "RULE_INPUT_ROOT",
    "RULE_INPUT_NAME",
    "RULE_INPUT_DIRNAME",
    "RULE_INPUT_EXT",
    "EXECUTABLE_PREFIX",
    "EXECUTABLE_SUFFIX",
    "STATIC_LIB_PREFIX",
    "STATIC_LIB_SUFFIX",
    "SHARED_LIB_PREFIX",
    "SHARED_LIB_SUFFIX",
    "CONFIGURATION_NAME",
]:
    generator_default_variables[unused] = ""

# Include dirs will occasionally use the SHARED_INTERMEDIATE_DIR variable as
# part of the path when dealing with generated headers.  This value will be
# replaced dynamically for each configuration.
generator_default_variables["SHARED_INTERMEDIATE_DIR"] = "$SHARED_INTERMEDIATE_DIR"

def CalculateVariables(default_variables, params):
    generator_flags = params.get("generator_flags", {})
    for key, val in generator_flags.items():
        default_variables.setdefault(key, val)
    flavor = gyp.common.GetFlavor(params)
    default_variables.setdefault("OS", flavor)
    if flavor == "win":
        gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)

def CalculateGeneratorInputInfo(params):
    """Calculate the generator specific info that gets fed to input (called by
  gyp)."""
    generator_flags = params.get("generator_flags", {})
    if generator_flags.get("adjust_static_libraries", False):
        global generator_wants_static_library_dependencies_adjusted
        generator_wants_static_library_dependencies_adjusted = True

def GetAllIncludeDirectories(
    target_list,
    target_dicts,
    shared_intermediate_dirs,
    config_name,
    params,
    compiler_path,
):
    """Calculate the set of include directories to be used.

  Returns:
    A list including all the include_dir's specified for every target followed
    by any include directories that were added as cflag compiler options.
  """

    gyp_includes_set = set()
    compiler_includes_list = []

    # Find compiler's default include dirs.
    if compiler_path:
        command = shlex.split(compiler_path)
        command.extend(["-E", "-xc++", "-v", "-"])
        proc = subprocess.Popen(
            args=command,
            stdin=subprocess.PIPE,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
        )
        output = proc.communicate()[1].decode("utf-8")
        # Extract the list of include dirs from the output, which has this format:
        #   ...
        #   #include "..." search starts here:
        #   #include <...> search starts here:
        #    /usr/include/c++/4.6
        #    /usr/local/include
        #   End of search list.
        #   ...
        in_include_list = False
        for line in output.splitlines():
            if line.startswith("#include"):
                in_include_list = True
                continue
            if line.startswith("End of search list."):
                break
            if in_include_list:
                include_dir = line.strip()
                if include_dir not in compiler_includes_list:
                    compiler_includes_list.append(include_dir)

    flavor = gyp.common.GetFlavor(params)
    if flavor == "win":
        generator_flags = params.get("generator_flags", {})
    for target_name in target_list:
        target = target_dicts[target_name]
        if config_name in target["configurations"]:
            config = target["configurations"][config_name]

            # Look for any include dirs that were explicitly added via cflags. This
            # may be done in gyp files to force certain includes to come at the end.
            # TODO(jgreenwald): Change the gyp files to not abuse cflags for this, and
            # remove this.
            if flavor == "win":
                msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags)
                cflags = msvs_settings.GetCflags(config_name)
            else:
                cflags = config["cflags"]
            for cflag in cflags:
                if cflag.startswith("-I"):
                    include_dir = cflag[2:]
                    if include_dir not in compiler_includes_list:
                        compiler_includes_list.append(include_dir)

            # Find standard gyp include dirs.
            if "include_dirs" in config:
                include_dirs = config["include_dirs"]
                for shared_intermediate_dir in shared_intermediate_dirs:
                    for include_dir in include_dirs:
                        include_dir = include_dir.replace(
                            "$SHARED_INTERMEDIATE_DIR", shared_intermediate_dir
                        )
                        if not os.path.isabs(include_dir):
                            base_dir = os.path.dirname(target_name)

                            include_dir = base_dir + "/" + include_dir
                            include_dir = os.path.abspath(include_dir)

                        gyp_includes_set.add(include_dir)

    # Generate a list that has all the include dirs.
    all_includes_list = list(gyp_includes_set)
    all_includes_list.sort()
    for compiler_include in compiler_includes_list:
        if compiler_include not in gyp_includes_set:
            all_includes_list.append(compiler_include)

    # All done.
    return all_includes_list

def GetCompilerPath(target_list, data, options):
    """Determine a command that can be used to invoke the compiler.

  Returns:
    If this is a gyp project that has explicit make settings, try to determine
    the compiler from that.  Otherwise, see if a compiler was specified via the
    CC_target environment variable.
  """
    # First, see if the compiler is configured in make's settings.
    build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
    make_global_settings_dict = data[build_file].get("make_global_settings", {})
    for key, value in make_global_settings_dict:
        if key in ["CC", "CXX"]:
            return os.path.join(options.toplevel_dir, value)

    # Check to see if the compiler was specified as an environment variable.
    for key in ["CC_target", "CC", "CXX"]:
        compiler = os.environ.get(key)
        if compiler:
            return compiler

    return "gcc"

def GetAllDefines(target_list, target_dicts, data, config_name, params, compiler_path):
    """Calculate the defines for a project.

  Returns:
    A dict that includes explicit defines declared in gyp files along with all
    of the default defines that the compiler uses.
  """

    # Get defines declared in the gyp files.
    all_defines = {}
    flavor = gyp.common.GetFlavor(params)
    if flavor == "win":
        generator_flags = params.get("generator_flags", {})
    for target_name in target_list:
        target = target_dicts[target_name]

        if flavor == "win":
            msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags)
            extra_defines = msvs_settings.GetComputedDefines(config_name)
        else:
            extra_defines = []
        if config_name in target["configurations"]:
            config = target["configurations"][config_name]
            target_defines = config["defines"]
        else:
            target_defines = []
        for define in target_defines + extra_defines:
            split_define = define.split("=", 1)
            if len(split_define) == 1:
                split_define.append("1")
            if split_define[0].strip() in all_defines:
                # Already defined
                continue
            all_defines[split_define[0].strip()] = split_define[1].strip()
    # Get default compiler defines (if possible).
    if flavor == "win":
        return all_defines  # Default defines already processed in the loop above.
    if compiler_path:
        command = shlex.split(compiler_path)
        command.extend(["-E", "-dM", "-"])
        cpp_proc = subprocess.Popen(
            args=command, cwd=".", stdin=subprocess.PIPE, stdout=subprocess.PIPE
        )
        cpp_output = cpp_proc.communicate()[0].decode("utf-8")
        cpp_lines = cpp_output.split("\n")
        for cpp_line in cpp_lines:
            if not cpp_line.strip():
                continue
            cpp_line_parts = cpp_line.split(" ", 2)
            key = cpp_line_parts[1]
            if len(cpp_line_parts) >= 3:
                val = cpp_line_parts[2]
            else:
                val = "1"
            all_defines[key] = val

    return all_defines

def WriteIncludePaths(out, eclipse_langs, include_dirs):
    """Write the includes section of a CDT settings export file."""

    out.write(
        '
\n'
    )
    out.write('    <language name="holder for library settings"></language>\n')
    for lang in eclipse_langs:
        out.write('    <language name="%s">\n' % lang)
        for include_dir in include_dirs:
            out.write(
                '      <includepath workspace_path="false">%s</includepath>\n'
                % include_dir
            )
        out.write("    </language>\n")
    out.write("
\n")

def WriteMacros(out, eclipse_langs, defines):
    """Write the macros section of a CDT settings export file."""

    out.write(
        '
\n'
    )
    out.write('    <language name="holder for library settings"></language>\n')
    for lang in eclipse_langs:
        out.write('    <language name="%s">\n' % lang)
        for key in sorted(defines):
            out.write(
                "      <macro><name>%s</name><value>%s</value></macro>\n"
                % (escape(key), escape(defines[key]))
            )
        out.write("    </language>\n")
    out.write("
\n")

def GenerateOutputForConfig(target_list, target_dicts, data, params, config_name):
    options = params["options"]
    generator_flags = params.get("generator_flags", {})

    # build_dir: relative path from source root to our output files.
    # e.g. "out/Debug"
    build_dir = os.path.join(generator_flags.get("output_dir", "out"), config_name)

    toplevel_build = os.path.join(options.toplevel_dir, build_dir)
    # Ninja uses out/Debug/gen while make uses out/Debug/obj/gen as the
    # SHARED_INTERMEDIATE_DIR. Include both possible locations.
    shared_intermediate_dirs = [
        os.path.join(toplevel_build, "obj", "gen"),
        os.path.join(toplevel_build, "gen"),
    ]

    GenerateCdtSettingsFile(
        target_list,
        target_dicts,
        data,
        params,
        config_name,
        os.path.join(toplevel_build, "eclipse-cdt-settings.xml"),
        options,
        shared_intermediate_dirs,
    )
    GenerateClasspathFile(
        target_list,
        target_dicts,
        options.toplevel_dir,
        toplevel_build,
        os.path.join(toplevel_build, "eclipse-classpath.xml"),
    )

def GenerateCdtSettingsFile(
    target_list,
    target_dicts,
    data,
    params,
    config_name,
    out_name,
    options,
    shared_intermediate_dirs,
):
    gyp.common.EnsureDirExists(out_name)
    with open(out_name, "w") as out:
        out.write('<?xml version="1.0" encoding="UTF-8"?>\n')
        out.write("<cdtprojectproperties>\n")

        eclipse_langs = [
            "C++ Source File",
            "C Source File",
            "Assembly Source File",
            "GNU C++",
            "GNU C",
            "Assembly",
        ]
        compiler_path = GetCompilerPath(target_list, data, options)
        include_dirs = GetAllIncludeDirectories(
            target_list,
            target_dicts,
            shared_intermediate_dirs,
            config_name,
            params,
            compiler_path,
        )
        WriteIncludePaths(out, eclipse_langs, include_dirs)
        defines = GetAllDefines(
            target_list, target_dicts, data, config_name, params, compiler_path
        )
        WriteMacros(out, eclipse_langs, defines)

        out.write("</cdtprojectproperties>\n")

def GenerateClasspathFile(
    target_list, target_dicts, toplevel_dir, toplevel_build, out_name
):
    """Generates a classpath file suitable for symbol navigation and code
  completion of Java code (such as in Android projects) by finding all
  .java and .jar files used as action inputs."""
    gyp.common.EnsureDirExists(out_name)
    result = ET.Element("classpath")

    def AddElements(kind, paths):
        # First, we need to normalize the paths so they are all relative to the
        # toplevel dir.
        rel_paths = set()
        for path in paths:
            if os.path.isabs(path):
                rel_paths.add(os.path.relpath(path, toplevel_dir))
            else:
                rel_paths.add(path)

        for path in sorted(rel_paths):
            entry_element = ET.SubElement(result, "classpathentry")
            entry_element.set("kind", kind)
            entry_element.set("path", path)

    AddElements("lib", GetJavaJars(target_list, target_dicts, toplevel_dir))
    AddElements("src", GetJavaSourceDirs(target_list, target_dicts, toplevel_dir))
    # Include the standard JRE container and a dummy out folder
    AddElements("con", ["org.eclipse.jdt.launching.JRE_CONTAINER"])
    # Include a dummy out folder so that Eclipse doesn't use the default /bin
    # folder in the root of the project.
    AddElements("output", [os.path.join(toplevel_build, ".eclipse-java-build")])

    ET.ElementTree(result).write(out_name)

def GetJavaJars(target_list, target_dicts, toplevel_dir):
    """Generates a sequence of all .jars used as inputs."""
    for target_name in target_list:
        target = target_dicts[target_name]
        for action in target.get("actions", []):
            for input_ in action["inputs"]:
                if os.path.splitext(input_)[1] == ".jar" and not input_.startswith("$"):
                    if os.path.isabs(input_):
                        yield input_
                    else:
                        yield os.path.join(os.path.dirname(target_name), input_)

def GetJavaSourceDirs(target_list, target_dicts, toplevel_dir):
    """Generates a sequence of all likely java package root directories."""
    for target_name in target_list:
        target = target_dicts[target_name]
        for action in target.get("actions", []):
            for input_ in action["inputs"]:
                if os.path.splitext(input_)[1] == ".java" and not input_.startswith(
                    "$"
                ):
                    dir_ = os.path.dirname(
                        os.path.join(os.path.dirname(target_name), input_)
                    )
                    # If there is a parent 'src' or 'java' folder, navigate up to it -
                    # these are canonical package root names in Chromium.  This will
                    # break if 'src' or 'java' exists in the package structure. This
                    # could be further improved by inspecting the java file for the
                    # package name if this proves to be too fragile in practice.
                    parent_search = dir_
                    while os.path.basename(parent_search) not in ["src", "java"]:
                        parent_search, _ = os.path.split(parent_search)
                        if not parent_search or parent_search == toplevel_dir:
                            # Didn't find a known root, just return the original path
                            yield dir_
                            break
                    else:
                        yield parent_search

def GenerateOutput(target_list, target_dicts, data, params):
    """Generate an XML settings file that can be imported into a CDT project."""

    if params["options"].generator_output:
        raise NotImplementedError("--generator_output not implemented for eclipse")

    user_config = params.get("generator_flags", {}).get("config", None)
    if user_config:
        GenerateOutputForConfig(target_list, target_dicts, data, params, user_config)
    else:
        config_names = target_dicts[target_list[0]]["configurations"]
        for config_name in config_names:
            GenerateOutputForConfig(
                target_list, target_dicts, data, params, config_name
            )


text:
package org.apache.ambari.server.controller;

import org.apache.ambari.server.controller.internal.UserResourceProvider;

import io.swagger.annotations.ApiModelProperty;

/**
 * Interface to help correct Swagger documentation generation
 */
public interface UserRequestUpdateUserSwagger extends ApiModel {

  @ApiModelProperty(name = UserResourceProvider.USER_RESOURCE_CATEGORY)
  UpdateUserInfo getUpdateUserRequest();

  interface UpdateUserInfo {
    @ApiModelProperty(name = UserResourceProvider.OLD_PASSWORD_PROPERTY_ID)
    String getOldPassword();

    @ApiModelProperty(name = UserResourceProvider.PASSWORD_PROPERTY_ID)
    String getPassword();

    @ApiModelProperty(name = UserResourceProvider.ACTIVE_PROPERTY_ID)
    Boolean isActive();

    @ApiModelProperty(name = UserResourceProvider.ADMIN_PROPERTY_ID)
    Boolean isAdmin();

    @ApiModelProperty(name = UserResourceProvider.DISPLAY_NAME_PROPERTY_ID)
    String getDisplayName();

    @ApiModelProperty(name = UserResourceProvider.LOCAL_USERNAME_PROPERTY_ID)
    String getLocalUserName();
  }
}


text:
CREATE SCHEMA trafodion.persnl ;
SET SCHEMA trafodion.persnl ;


text:
namespace llvm {

class PassInfo;
struct PassRegistrationListener;

/// PassRegistry - This class manages the registration and intitialization of
/// the pass subsystem as application startup, and assists the PassManager
/// in resolving pass dependencies.
/// NOTE: PassRegistry is NOT thread-safe.  If you want to use LLVM on multiple
/// threads simultaneously, you will need to use a separate PassRegistry on
/// each thread.
class PassRegistry {
  mutable void *pImpl;
  void *getImpl() const;

public:
  PassRegistry() : pImpl(0) { }
  ~PassRegistry();

  /// getPassRegistry - Access the global registry object, which is
  /// automatically initialized at application launch and destroyed by
  /// llvm_shutdown.
  static PassRegistry *getPassRegistry();

  /// getPassInfo - Look up a pass' corresponding PassInfo, indexed by the pass'
  /// type identifier (&MyPass::ID).
  const PassInfo *getPassInfo(const void *TI) const;

  /// getPassInfo - Look up a pass' corresponding PassInfo, indexed by the pass'
  /// argument string.
  const PassInfo *getPassInfo(StringRef Arg) const;

  /// registerPass - Register a pass (by means of its PassInfo) with the
  /// registry.  Required in order to use the pass with a PassManager.
  void registerPass(const PassInfo &PI, bool ShouldFree = false);

  /// registerPass - Unregister a pass (by means of its PassInfo) with the
  /// registry.
  void unregisterPass(const PassInfo &PI);

  /// registerAnalysisGroup - Register an analysis group (or a pass implementing
  // an analysis group) with the registry.  Like registerPass, this is required
  // in order for a PassManager to be able to use this group/pass.
  void registerAnalysisGroup(const void *InterfaceID, const void *PassID,
                             PassInfo& Registeree, bool isDefault,
                             bool ShouldFree = false);

  /// enumerateWith - Enumerate the registered passes, calling the provided
  /// PassRegistrationListener's passEnumerate() callback on each of them.
  void enumerateWith(PassRegistrationListener *L);

  /// addRegistrationListener - Register the given PassRegistrationListener
  /// to receive passRegistered() callbacks whenever a new pass is registered.
  void addRegistrationListener(PassRegistrationListener *L);

  /// removeRegistrationListener - Unregister a PassRegistrationListener so that
  /// it no longer receives passRegistered() callbacks.
  void removeRegistrationListener(PassRegistrationListener *L);
};

// Create wrappers for C Binding types (see CBindingWrapping.h).
DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef)

}

#endif


text: require 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'


text:
using System;
using System.Collections.Generic;
using AsmResolver.PE.DotNet.Metadata;
using AsmResolver.PE.DotNet.Metadata.Blob;
using AsmResolver.PE.DotNet.Metadata.Strings;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;

namespace AsmResolver.DotNet.Serialized
{
    /// <summary>
    /// Represents a lazily initialized implementation of <see cref="AssemblyReference"/>  that is read from a
    /// .NET metadata image.
    /// </summary>
    public class SerializedAssemblyReference : AssemblyReference
    {
        private readonly ModuleReaderContext _context;
        private readonly AssemblyReferenceRow _row;

        /// <summary>
        /// Creates an assembly reference from an assembly reference metadata row.
        /// </summary>
        /// <param name="context">The reader context.</param>
        /// <param name="token">The token to initialize the reference for.</param>
        /// <param name="row">The metadata table row to base the assembly reference on.</param>
        public SerializedAssemblyReference(ModuleReaderContext context, MetadataToken token, in AssemblyReferenceRow row)
            : base(token)
        {
            _context = context ?? throw new ArgumentNullException(nameof(context));
            _row = row;

            Attributes = row.Attributes;
            Version = new Version(row.MajorVersion, row.MinorVersion, row.BuildNumber, row.RevisionNumber);
        }

        /// <inheritdoc />
        protected override Utf8String? GetName() => _context.StringsStream?.GetStringByIndex(_row.Name);

        /// <inheritdoc />
        protected override Utf8String? GetCulture() => _context.StringsStream?.GetStringByIndex(_row.Culture);

        /// <inheritdoc />
        protected override byte[]? GetPublicKeyOrToken() => _context.BlobStream?.GetBlobByIndex(_row.PublicKeyOrToken);

        /// <inheritdoc />
        protected override IList<CustomAttribute> GetCustomAttributes() =>
            _context.ParentModule.GetCustomAttributeCollection(this);
    }
}


text:
@echo off
setlocal EnableDelayedExpansion

set __ProjectDir=%~dp0
set __DotNet=%__ProjectDir%\Tools\dotnetcli\dotnet.exe
set __MSBuild=%__ProjectDir%\Tools\MSBuild.exe

:: Initialize the MSBuild Tools
call "%__ProjectDir%\init-tools.cmd"

:: Restore dependencies mainly to obtain runtime.json
pushd "%__ProjectDir%\deps"
"%__DotNet%" restore --configfile "%__ProjectDir%\..\NuGet.Config" --packages "%__ProjectDir%\packages"
popd

:: Clean up existing nupkgs
if exist "%__ProjectDir%\bin" (rmdir /s /q "%__ProjectDir%\bin")

"%__DotNet%" "%__MSBuild%" "%__ProjectDir%\tasks\core-setup.tasks.builds" /verbosity:minimal /flp:logfile=tools.log;v=diag
if not ERRORLEVEL 0 goto :Error

:: Package the assets using Tools
"%__DotNet%" "%__MSBuild%" "%__ProjectDir%\projects\packages.builds" /p:TargetsWindows=true /verbosity:minimal

if not ERRORLEVEL 0 goto :Error
exit /b 0

:Error
echo An error occurred during packing.
exit /b 1


text:
<!doctype html>
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
  <meta charset="utf-8">
  <title>$i18n{title}</title>
  <link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
  <link rel="stylesheet" href="chrome://resources/css/md_colors.css">
  <style>
    html {
      background: var(--md-background-color);
    }

    html,
    body {
      height: 100%;
    }

    body {
      display: flex;
      margin: 0;
    }
  </style>
</head>
<body>
  <downloads-manager></downloads-manager>
  <command id="clear-all-command" shortcut="Alt-U+0043"><!-- Alt+C -->
<if expr="is_macosx">
  <command id="undo-command" shortcut="Meta-U+005A"><!-- Command+Z -->
  <command id="find-command" shortcut="Meta-U+0046"><!-- Command+F -->
</if>
<if expr="not is_macosx">
  <command id="undo-command" shortcut="Ctrl-U+005A"><!-- Ctrl+Z -->
  <command id="find-command" shortcut="Ctrl-U+0046"><!-- Ctrl+F -->
</if>
  <link rel="import" href="chrome://resources/html/polymer.html">
  <link rel="import" href="chrome://downloads/i18n_setup.html">
  <link rel="import" href="chrome://downloads/manager.html">
  <script src="chrome://downloads/downloads.js"></script>
</body>
</html>


text:
: ${TCGAFMP_ROOT_DIR:?" environment variable must be set and non-empty; defines the path to the TCGA FMP scripts directory"}
source ${TCGAFMP_ROOT_DIR}/../../gidget/util/env.sh

## this script should be called with the following parameters:
##	date, eg '29jan13'
##	snapshot, either 'dcc-snapshot' (most recent) or, eg, 'dcc-snapshot-29jan13;
##	one or more tumor types, eg: 'prad,thca,skcm,stad'
##	config, eg 'parse_tcga.config', relative to $TCGAFMP_ROOT_DIR/config

WRONGARGS=1
if [[ $# != 6 ]] && [[ $# != 6 ]]
    then
        echo " Usage   : `basename $0` <gene> <chrName> <start> <stop> <runID> <cancer1,cancer2,...> "
        echo " Example : `basename $0` KRAS chr12 25357723 25403870 20140818_public  brca,kirc,luad,ov,lusc,ucec,gbm "
        echo " "
        exit $WRONGARGS
fi

## these parameters identify the 'favorite' gene and it's genomic coordinates
geneSymbol=$1
chrName=$2
startPos=$3
stopPos=$4

## these paramters identify the TSV files that will be looked at
runID=$5
tumors=$(echo $6 | tr "," "\n")

echo " "
echo " "
echo " *******************"
echo `date`
echo " * gene symbol ...... " $geneSymbol
echo " * coordinates ...... " $chrName $startPos $stopPos
echo " * run id ........... " $runID
echo " * tumor ............ " $tumors
echo " *******************"

cd /local/sreynold/scratch/myFavGene

args=("$@")
for tumor in $tumors
    do

        echo " TUMOR " $tumor
        rm -fr $geneSymbol.$tumor.t*
        rm -fr $geneSymbol.$tumor.log

        python $TCGAFMP_ROOT_DIR/main/findFeatList.py \
            $TCGAFMP_DATA_DIR/$tumor/$runID/$tumor.all.$runID.tsv \
            $geneSymbol $chrName $startPos $stopPos >& $geneSymbol.$tumor.t1

        featNames=`grep -v "^##" $geneSymbol.$tumor.t1`
        ii=0
        for aName in $featNames
            do
                echo "     RUNNING PAIRWISE "$ii $aName
                python $TCGAFMP_ROOT_DIR/main/run-pairwise-v2.py \
                    --pvalue 2. --one $aName \
                    --tsvFile $TCGAFMP_DATA_DIR/$tumor/$runID/$tumor.all.$runID.tsv \
                    --outFile /local/sreynold/scratch/myFavGene/$geneSymbol.$tumor.scratch.$ii >> $geneSymbol.$tumor.log
                ((ii++))
            done

        cat $geneSymbol.$tumor.scratch.* | sort | uniq | sort -grk 5 >& $geneSymbol.$tumor.pw.all.sort
        rm -fr $geneSymbol.$tumor.scratch.*

    done

echo " "
echo " runMyFavGene script is FINISHED !!! "
echo `date`
echo " "


text:
import json
import re
from collections import Counter
from .lang import *

lang_features = ('variables', 'constants', 'comments', 'java_doc', 'types')

class MethodFeatureVector:
    """ A method object represents Java Methods parsed via the featureExtractor.jar
        This class should implement the bare bones needed for a baseline.
    """

    def __init__(self, jsonString):
        """ Always initialize from JSON strings like {key1 : value1, key2: value2..}"""
        jsonObj = json.loads(jsonString.strip(), strict=False)
        self.name = jsonObj['name']
        if 'className' in jsonObj:
            self.class_name = jsonObj['className']
        self.is_empty = jsonObj['isEmpty']

        # pure text form of the method
        self.raw_text = jsonObj['text']

        # extracted features
        self.features = {}

        # String or numeric features
        self.features['return'] = str(jsonObj['returnType'])
        # self.features['modifier'] = int(jsonObj['modifier'])
        if 'javaDoc' in jsonObj:
            self.features['java_doc'] = str(jsonObj['javaDoc'])
        if 'comments' in jsonObj:
            self.features['comments'] = str(jsonObj['comments'])

        self.features['modifier'] = int(jsonObj['modifier'])
        # List features
        self.features['params'] = MethodFeatureVector.parse_generics(list(jsonObj['paramTypes']))

        # set features, where we consider only if present or absent
        self.features['exceptions'] = set(jsonObj['exceptions'])
        self.features['annotations'] = set(jsonObj['annotations'])
        self.features['concepts'] = set(jsonObj['concepts'])
        self.features['methods_called'] = set(jsonObj['methodCalls'])

        # Where counts matter, we use counter objects
        self.features['variables'] = Counter(jsonObj['variables'])
        self.features['constants'] = Counter(jsonObj['constants'])
        self.features['expressions'] = Counter(jsonObj['expressions'])
        self.features['statements'] = Counter(jsonObj['statements'])
        self.features['types'] = Counter(jsonObj['types'])

        self.tokens = text_pre_process(meaningful_tokens_camelCase(self.raw_text))
        self.nl_tokens = text_pre_process(self.extract_lang_tokens())

    @staticmethod
    def parse_generics(string_iterable):
        """This is to deal with generics. If we have 'List<String>', split as List and String"""
        parsed_set = list()
        for element in string_iterable:
            found = re.search(r'(\w+)<(\w+)>',element)
            if found is not None:
                # we found use of generics, so let's split
                parsed_set.append(found.group(1))
                parsed_set.append(found.group(2))
            else:
                parsed_set.append(element)
        return parsed_set

    def extract_lang_tokens(self):
        """ Get only those tokens which one would consider to be natural language tokens
            E.g.: Comments, variable names, tokens, etc """
        # while we are using Tf-IDF
        tokens = []

        # Name and parameters
        tokens.extend(meaningful_tokens_camelCase(self.name))

        for key in lang_features & self.features.keys():
            if isinstance(self.features[key], str):
                if key == 'java_doc':
                    # javadocs have syntax keywords like param and return
                    # these are not natural language terms
                    javadoc = re.sub(r"\b(return|param|see)\b","",self.features[key])
                    tokens.extend(meaningful_tokens_camelCase(javadoc))
                else:
                    tokens.extend(meaningful_tokens_camelCase(self.features[key]))
            elif isinstance(self.features[key], set):
                for value in self.features[key]:
                    tokens.extend(meaningful_tokens_camelCase(value))
            elif isinstance(self.features[key], Counter):
                # case of counters
                tokens.extend(meaningful_tokens_camelCase(' '.join(self.features[key].elements())))
            elif isinstance(self.features[key], list):
                tokens.extend(meaningful_tokens_camelCase(' '.join(self.features[key])))
            else:
                print("unknown type for:",key)

        return list(set(tokens))

    def __str__(self):
        return self.raw_text


text:
package br.com.caelum.vraptor.musicjungle.acceptance;

import static br.com.caelum.vraptor.musicjungle.enums.MusicType.CLASSICAL;
import static org.hamcrest.Matchers.containsString;
import static org.junit.Assert.assertThat;

import org.junit.Before;
import org.junit.Test;

import br.com.caelum.vraptor.musicjungle.acceptance.builder.MusicBuilder;
import br.com.caelum.vraptor.musicjungle.acceptance.infra.AcceptanceTestCase;
import br.com.caelum.vraptor.musicjungle.acceptance.pages.HomePage;
import br.com.caelum.vraptor.musicjungle.acceptance.pages.ServiceResultPage;
import br.com.caelum.vraptor.musicjungle.model.Music;

/**
 * Some tests for {@code Results} class, such as json(), xml() and html().
 *
 * @author Rodrigo Turini
 */
public class ResultSerializationTest extends AcceptanceTestCase{

	private ServiceResultPage serviceResultPage;
	private Music mozart;
	private Music beethoven;

	@Before
	public void setUpBeforeClass() {
		loginPage().loginAsUser("vraptor");
		HomePage page = homePage();
		this.mozart = new MusicBuilder(1, "Mozart - Symphony #40", "Mozart", CLASSICAL).create();
		this.beethoven = new MusicBuilder(2, "Moonlight Sonata", "Beethoven", CLASSICAL).create();
		page.addMusic(mozart);
		page.addMusic(beethoven);
		loginPage().logout();
	}

	@Test
	public void shouldSerializeAMusicListAsJsonXmlAndHTTP() throws Exception {
		accessURLAndAssertContent("/musics/list/json", getExpectedJson());
		accessURLAndAssertContent("/musics/list/xml", getExpectedXml());
		accessURLAndAssertContent("/musics/list/http", getExpectedHTTP());
		accessFormURLSelectItemAndAssertContent("xml", getExpectedXml());
		accessFormURLSelectItemAndAssertContent("json", getExpectedJson());
	}

	private void accessURLAndAssertContent(String url, String expected) {
		this.serviceResultPage = accessFullUrl(url);
		assertThat(pageSource(), containsString(expected));
	}

	private void accessFormURLSelectItemAndAssertContent(String value, String v) {
		loginPage();
		accessMusicsExport().select(value);
		assertThat(pageSource(), containsString(v));
	}

	private String getExpectedJson() {
		return "{\"list\":[" + JSON(mozart) + "," + JSON(beethoven) + "]}";
	}

	private String JSON(Music music) {
		return String.format("{\"id\":%s,\"title\":\"%s\",\"description\":\"%s\",\"type\":\"%s\"}",
				music.getId(),
				music.getTitle(),
				music.getDescription(),
				music.getType().toString());
	}

	private String getExpectedXml() {
		return "<list>"+
				"<music>"+
				"<id>1</id>"+
				"<title>"+ mozart.getTitle() +"</title>"+
				"<description>"+ mozart.getDescription() +"</description>"+
				"<type>"+ mozart.getType().toString() +"</type>"+
				"</music>"+
				"<music>"+
				"<id>2</id>"+
				"<title>"+ beethoven.getTitle() +"</title>"+
				"<description>"+ beethoven.getDescription() +"</description>"+
				"<type>"+ beethoven.getType().toString() +"</type>"+
				"</music>"+
				"</list>";
	}

	private String getExpectedHTTP() {
		return "[" + mozart.toString() + ", " + beethoven.toString() + "]";
	}

	private String pageSource() {
		return this.serviceResultPage.pageSource();
	}
}


text:
// Type definitions for Google Apps Script 2020-01-02
// Project: https://developers.google.com/apps-script/
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza>
//                 motemen <https://github.com/motemen/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="google-apps-script.types.d.ts" />
/// <reference path="google-apps-script.base.d.ts" />

declare namespace GoogleAppsScript {
  namespace HTML {
    /**
     * An HtmlOutput object that can be served from a script. Due to security considerations,
     * scripts cannot directly return HTML to a browser. Instead, they must sanitize it so that it
     * cannot perform malicious actions. You can return sanitized HTML like this:
     *
     *     function doGet() {
     *       return HtmlService.createHtmlOutput('Hello, world!');
     *     }
     *
     * HtmlOutput
     * iframe
     * sandboxing
     * guide to restrictions in HTML service
     */
    interface HtmlOutput {
      addMetaTag(name: string, content: string): HtmlOutput;
      append(addedContent: string): HtmlOutput;
      appendUntrusted(addedContent: string): HtmlOutput;
      asTemplate(): HtmlTemplate;
      clear(): HtmlOutput;
      getAs(contentType: string): Base.Blob;
      getBlob(): Base.Blob;
      getContent(): string;
      getFaviconUrl(): string;
      getHeight(): Integer;
      getMetaTags(): HtmlOutputMetaTag[];
      getTitle(): string;
      getWidth(): Integer;
      setContent(content: string): HtmlOutput;
      setFaviconUrl(iconUrl: string): HtmlOutput;
      setHeight(height: Integer): HtmlOutput;
      setSandboxMode(mode: SandboxMode): HtmlOutput;
      setTitle(title: string): HtmlOutput;
      setWidth(width: Integer): HtmlOutput;
      setXFrameOptionsMode(mode: XFrameOptionsMode): HtmlOutput;
    }
    /**
     * An object that represents a meta tag added to the page by calling HtmlOutput.addMetaTag(name, content).
     *
     *     var output = HtmlService.createHtmlOutput('Hello, world!');
     *     output.addMetaTag('viewport', 'width=device-width, initial-scale=1');
     *
     *     var tags = output.getMetaTags();
     *     Logger.log('<meta name="%s" content="%s"/>', tags[0].getName(), tags[0].getContent());
     */
    interface HtmlOutputMetaTag {
      getContent(): string;
      getName(): string;
    }
    /**
     * Service for returning HTML and other text content from a script.
     *
     * Due to security considerations, scripts cannot directly return content to a browser. Instead,
     * they must sanitize the HTML so that it cannot perform malicious actions. See the description of
     * HtmlOutput for what limitations this implies on what can be returned.
     */
    interface HtmlService {
      SandboxMode: typeof SandboxMode;
      XFrameOptionsMode: typeof XFrameOptionsMode;
      createHtmlOutput(): HtmlOutput;
      createHtmlOutput(blob: Base.BlobSource): HtmlOutput;
      createHtmlOutput(html: string): HtmlOutput;
      createHtmlOutputFromFile(filename: string): HtmlOutput;
      createTemplate(blob: Base.BlobSource): HtmlTemplate;
      createTemplate(html: string): HtmlTemplate;
      createTemplateFromFile(filename: string): HtmlTemplate;
      getUserAgent(): string;
    }
    /**
     * A template object for dynamically constructing HTML. For more information, see the guide to templates.
     */
    interface HtmlTemplate {
      evaluate(): HtmlOutput;
      getCode(): string;
      getCodeWithComments(): string;
      getRawContent(): string;
      [propName: string]: any;
    }
    /**
     * An enum representing the sandbox modes that can be used for client-side HtmlService
     * scripts. These values can be accessed from HtmlService.SandboxMode, and set by calling
     * HtmlOutput.setSandboxMode(mode).
     *
     * The NATIVE and EMULATED modes were deprecated on October 13, 2015 and both are now sunset. Only
     * IFRAME mode is now supported.
     *
     * To protect users from being served malicious HTML or JavaScript, client-side code served from
     * HTML service executes in a security sandbox that imposes restrictions on the code. The method
     * HtmlOutput.setSandboxMode(mode) previously allowed script authors to choose
     * between different versions of the sandbox, but now has no effect. For more information, see the
     * guide to restrictions in HTML service.
     *
     * The IFRAME mode imposes many fewer restrictions than the other sandbox modes and runs
     * fastest, but does not work at all in certain older browsers, including Internet Explorer 9. The
     * sandbox mode can also be read in a client-side script by inspecting google.script.sandbox.mode. Note that this property returns the actual mode on the client, which
     * may differ from the mode requested on the server if the requested mode is not supported in the
     * user's browser.
     *
     *
     *
     */
    enum SandboxMode { EMULATED, IFRAME, NATIVE }
    /**
     * An enum representing the X-Frame-Options modes that can be used for client-side HtmlService scripts. These values can be accessed from HtmlService.XFrameOptionsMode,
     * and set by calling HtmlOutput.setXFrameOptionsMode(mode).
     *
     * Setting XFrameOptionsMode.ALLOWALL will let any site iframe the page, so the developer
     * should implement their own protection against clickjacking.
     *
     * If a script does not set an X-Frame-Options mode, Apps Script uses DEFAULT
     * mode as the default.
     *
     *     // Serve HTML with no X-Frame-Options header (in Apps Script server-side code).
     *     var output = HtmlService.createHtmlOutput('Hello, world!');
     *     output.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
     */
    enum XFrameOptionsMode { ALLOWALL, DEFAULT }
  }
}

declare var HtmlService: GoogleAppsScript.HTML.HtmlService;


text:
package org.springframework.cloud.client.actuator;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author Spencer Gibb
 */
public class HasFeatures {

	private final List<Class<?>> abstractFeatures = new ArrayList<>();

	private final List<NamedFeature> namedFeatures = new ArrayList<>();

	public HasFeatures(List<Class<?>> abstractFeatures, List<NamedFeature> namedFeatures) {
		this.abstractFeatures.addAll(abstractFeatures);
		this.namedFeatures.addAll(namedFeatures);
	}

	public static HasFeatures abstractFeatures(Class<?>... abstractFeatures) {
		return new HasFeatures(Arrays.asList(abstractFeatures), Collections.emptyList());
	}

	public static HasFeatures namedFeatures(NamedFeature... namedFeatures) {
		return new HasFeatures(Collections.emptyList(), Arrays.asList(namedFeatures));
	}

	public static HasFeatures namedFeature(String name, Class<?> type) {
		return namedFeatures(new NamedFeature(name, type));
	}

	public static HasFeatures namedFeatures(String name1, Class<?> type1, String name2, Class<?> type2) {
		return namedFeatures(new NamedFeature(name1, type1), new NamedFeature(name2, type2));
	}

	public List<Class<?>> getAbstractFeatures() {
		return this.abstractFeatures;
	}

	public List<NamedFeature> getNamedFeatures() {
		return this.namedFeatures;
	}

}