text:
/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package com.google.ytd;

public final class R {
    public static final class attr {
    }
    public static final class color {
        public static final int black=0x7f050003;
        public static final int blue=0x7f050004;
        public static final int dark_blue=0x7f050005;
        public static final int dark_gray=0x7f050002;
        public static final int light_blue=0x7f050006;
        public static final int light_gray=0x7f050001;
        public static final int white=0x7f050000;
    }
    public static final class drawable {
        public static final int icon=0x7f020000;
    }
    public static final class id {
        public static final int agree=0x7f08000e;
        public static final int assignmentCreated=0x7f080007;
        public static final int assignmentDescription=0x7f080006;
        public static final int assignmentList=0x7f080010;
        public static final int assignmentUpdated=0x7f080008;
        public static final int cancelButton=0x7f080023;
        public static final int captureButton=0x7f080009;
        public static final int dateCaptured=0x7f080018;
        public static final int description=0x7f080002;
        public static final int descriptionLabel=0x7f08001e;
        public static final int detailsTop=0x7f080005;
        public static final int domainHeader=0x7f080004;
        public static final int domainSource=0x7f080015;
        public static final int dummy=0x7f08001b;
        public static final int galleryButton=0x7f08000a;
        public static final int heading_title=0x7f080000;
        public static final int introMsg=0x7f080014;
        public static final int layout_root=0x7f08000d;
        public static final int legal=0x7f08000c;
        public static final int legal_root=0x7f08000b;
        public static final int listHeader=0x7f080003;
        public static final int locationLabel=0x7f080019;
        public static final int notagree=0x7f08000f;
        public static final int refresh=0x7f080012;
        public static final int setting=0x7f080013;
        public static final int settingDoneButton=0x7f080017;
        public static final int specialReportButton=0x7f080011;
        public static final int submitButton=0x7f080022;
        public static final int submitDescription=0x7f08001f;
        public static final int submitTags=0x7f080021;
        public static final int submitTitle=0x7f08001d;
        public static final int tagsLabel=0x7f080020;
        public static final int thumbnail=0x7f08001a;
        public static final int time=0x7f080001;
        public static final int titleLabel=0x7f08001c;
        public static final int ytAccount=0x7f080016;
    }
    public static final class layout {
        public static final int assignment_list_heading=0x7f030000;
        public static final int assignment_list_item=0x7f030001;
        public static final int common_header=0x7f030002;
        public static final int details=0x7f030003;
        public static final int domain_list_item=0x7f030004;
        public static final int domain_source_spinner_item=0x7f030005;
        public static final int legal=0x7f030006;
        public static final int main=0x7f030007;
        public static final int menu=0x7f030008;
        public static final int mystory=0x7f030009;
        public static final int setting=0x7f03000a;
        public static final int submit=0x7f03000b;
    }
    public static final class raw {
        public static final int gdata=0x7f040000;
        public static final int gdata_geo=0x7f040001;
        public static final int legal=0x7f040002;
    }
    public static final class string {
        public static final int app_name=0x7f060001;
        public static final int client_id=0x7f060005;
        public static final int default_ytd_domain=0x7f060006;
        public static final int default_ytd_domain_name=0x7f060007;
        public static final int dev_key=0x7f060004;
        public static final int domain_prompt=0x7f060002;
        public static final int intro_msg=0x7f060000;
        public static final int yt_account_prompt=0x7f060003;
    }
    public static final class style {
        public static final int YtdTheme=0x7f070000;
    }
}


text:
<!doctype html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>FluxCapacitor | @storefront/flux-capacitor</title>
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">

						Search
						<input id="tsd-search-field" type="text" />

Preparing search index...

The search index is not available

					@storefront/flux-capacitor

						Options

								All

Public

Public/Protected

All

							<input type="checkbox" id="tsd-filter-inherited" checked />
							Inherited
							<input type="checkbox" id="tsd-filter-externals" checked />
							Externals
							<input type="checkbox" id="tsd-filter-only-exported" />
							Only exported

					Menu

					Globals

					FluxCapacitor

Class FluxCapacitor<EventTypes>

Type parameters

EventTypes: string | symbol

Hierarchy

						EventEmitter

								FluxCapacitor

Index

Modules

Event<wbr>Emitter

Constructors

constructor

Properties

___config

actions

clients

selectors

store

prefixed

Accessors

config

Methods

add<wbr>Listener

autocomplete

count<wbr>Records

details<wbr>With<wbr>Routing

display<wbr>Sayt<wbr>Past<wbr>Purchases

emit

event<wbr>Names

listener<wbr>Count

listeners

more<wbr>Products

more<wbr>Refinements

off

on

once

past<wbr>Purchase<wbr>Products

products

refine

remove<wbr>All<wbr>Listeners

remove<wbr>Listener

replace<wbr>State

reset

resize

save<wbr>State

sayt<wbr>Past<wbr>Purchases

sayt<wbr>Products

sayt<wbr>Suggestions

search

sort

switch<wbr>Collection

switch<wbr>Page

unrefine

create<wbr>Bridge

create<wbr>Clients

create<wbr>Sayt

Constructors

constructor

new <wbr>Flux<wbr>Capacitor(___config: Configuration): FluxCapacitor

Defined in flux-capacitor.ts:48

Parameters

___config: Configuration

Returns FluxCapacitor

Properties

___config

___config: Configuration

Defined in flux-capacitor.ts:51

actions

actions: ActionCreators = ActionCreators

Defined in flux-capacitor.ts:30

actions for modifying contents of the store

clients

clients: Clients = FluxCapacitor.createClients(this)

Defined in flux-capacitor.ts:38

instances of all microservice clients

selectors

selectors: Selectors = Selectors

Defined in flux-capacitor.ts:34

selector functions for extracting data from the store

store

store: ReduxStore<State> = Store.create(this, Observer.listener(this))

Defined in flux-capacitor.ts:42

instance of the state store

Static prefixed

prefixed: string | boolean

Inherited from EventEmitter.prefixed

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:6

Accessors

config

get config(): Configuration

Defined in flux-capacitor.ts:46

storefront config

Returns Configuration

Methods

add<wbr>Listener

add<wbr>Listener(event: EventTypes, fn: ListenerFn, context?: any): this

Inherited from EventEmitter.addListener

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:33

Parameters

event: EventTypes

fn: ListenerFn

Optional context: any

Returns this

autocomplete

autocomplete(query: string): void

Defined in flux-capacitor.ts:118

Parameters

query: string

Returns void

count<wbr>Records

count<wbr>Records(collection: string): void

Defined in flux-capacitor.ts:114

Parameters

collection: string

Returns void

details<wbr>With<wbr>Routing

details<wbr>With<wbr>Routing(product: Product | Record): void

Defined in flux-capacitor.ts:102

Parameters

product: Product | Record

Returns void

display<wbr>Sayt<wbr>Past<wbr>Purchases

display<wbr>Sayt<wbr>Past<wbr>Purchases(): void

Defined in flux-capacitor.ts:138

Returns void

emit

emit(event: EventTypes, ...args: Array<any>): boolean

Inherited from EventEmitter.emit

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:27

Calls each of the listeners registered for a given event.

Parameters

event: EventTypes

Rest ...args: Array<any>

Returns boolean

event<wbr>Names

event<wbr>Names(): Array<EventTypes>

Inherited from EventEmitter.eventNames

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:12

Return an array listing the events for which the emitter has registered
									listeners.

Returns Array<EventTypes>

listener<wbr>Count

listener<wbr>Count(event: EventTypes): number

Inherited from EventEmitter.listenerCount

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:22

Return the number of listeners listening to a given event.

Parameters

event: EventTypes

Returns number

listeners

listeners(event: EventTypes): Array<ListenerFn>

Inherited from EventEmitter.listeners

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:17

Return the listeners registered for a given event.

Parameters

event: EventTypes

Returns Array<ListenerFn>

more<wbr>Products

more<wbr>Products(amount: number): void

Defined in flux-capacitor.ts:78

Parameters

amount: number

Returns void

more<wbr>Refinements

more<wbr>Refinements(navigationName: string): void

Defined in flux-capacitor.ts:74

Parameters

navigationName: string

Returns void

off

off(event: EventTypes, fn?: ListenerFn, context?: any, once?: boolean): this

Inherited from EventEmitter.off

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:44

Parameters

event: EventTypes

Optional fn: ListenerFn

Optional context: any

Optional once: boolean

Returns this

on

on(event: EventTypes, fn: ListenerFn, context?: any): this

Inherited from EventEmitter.on

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:32

Add a listener for a given event.

Parameters

event: EventTypes

fn: ListenerFn

Optional context: any

Returns this

once

once(event: EventTypes, fn: ListenerFn, context?: any): this

Inherited from EventEmitter.once

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:38

Add a one-time listener for a given event.

Parameters

event: EventTypes

fn: ListenerFn

Optional context: any

Returns this

past<wbr>Purchase<wbr>Products

past<wbr>Purchase<wbr>Products(): void

Defined in flux-capacitor.ts:134

Returns void

products

products(): void

Defined in flux-capacitor.ts:70

Returns void

refine

refine(navigationName: string, index: number): void

Defined in flux-capacitor.ts:94

Parameters

navigationName: string

index: number

Returns void

remove<wbr>All<wbr>Listeners

remove<wbr>All<wbr>Listeners(event?: EventTypes): this

Inherited from EventEmitter.removeAllListeners

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:49

Remove all listeners, or those of the specified event.

Parameters

Optional event: EventTypes

Returns this

remove<wbr>Listener

remove<wbr>Listener(event: EventTypes, fn?: ListenerFn, context?: any, once?: boolean): this

Inherited from EventEmitter.removeListener

Defined in /home/johann/workspace/tickets/SF-1201/flux-capacitor/node_modules/eventemitter3/index.d.ts:43

Remove the listeners of a given event.

Parameters

event: EventTypes

Optional fn: ListenerFn

Optional context: any

Optional once: boolean

Returns this

replace<wbr>State

replace<wbr>State(route: string): void

Defined in flux-capacitor.ts:60

Parameters

route: string

Returns void

reset

reset(query?: string, refinement?: object): void

Defined in flux-capacitor.ts:82

Parameters

Optional query: string

Optional refinement: object

field: string

index: number

Returns void

resize

resize(pageSize: number): void

Defined in flux-capacitor.ts:86

Parameters

pageSize: number

Returns void

save<wbr>State

save<wbr>State(route: string): void

Defined in flux-capacitor.ts:56

Parameters

route: string

Returns void

sayt<wbr>Past<wbr>Purchases

sayt<wbr>Past<wbr>Purchases(query: string): void

Defined in flux-capacitor.ts:130

Parameters

query: string

Returns void

sayt<wbr>Products

sayt<wbr>Products(query: string, refinements?: Refinement[]): void

Defined in flux-capacitor.ts:126

Parameters

query: string

Default value refinements: Refinement[] = []

Returns void

sayt<wbr>Suggestions

sayt<wbr>Suggestions(query: string): void

Defined in flux-capacitor.ts:122

Parameters

query: string

Returns void

search

search(query?: string): void

Defined in flux-capacitor.ts:66

Parameters

Optional query: string

Returns void

sort

sort(index: number): void

Defined in flux-capacitor.ts:90

Parameters

index: number

Returns void

switch<wbr>Collection

switch<wbr>Collection(collection: string): void

Defined in flux-capacitor.ts:106

Parameters

collection: string

Returns void

switch<wbr>Page

switch<wbr>Page(page: number): void

Defined in flux-capacitor.ts:110

Parameters

page: number

Returns void

unrefine

unrefine(navigationName: string, index: number): void

Defined in flux-capacitor.ts:98

Parameters

navigationName: string

index: number

Returns void

Static create<wbr>Bridge

create<wbr>Bridge(config: Configuration, errorHandler: function): BrowserBridge

Defined in flux-capacitor.ts:164

create instance of Searchandiser API client

Parameters

config: Configuration

errorHandler: function

(err: Error): void

Parameters

err: Error

Returns void

Returns BrowserBridge

Static create<wbr>Clients

create<wbr>Clients(flux: FluxCapacitor): object

Defined in flux-capacitor.ts:147

create instances of all clients used to contact microservices

Parameters

flux: FluxCapacitor

Returns object

bridge: BrowserBridge

sayt: Sayt

Static create<wbr>Sayt

create<wbr>Sayt(config: Configuration): Sayt

Defined in flux-capacitor.ts:184

create instance of SAYT API client

Parameters

config: Configuration

Returns Sayt

						Globals

						Flux<wbr>Capacitor

								constructor

								___config

								actions

								clients

								selectors

								store

								prefixed

								config

								add<wbr>Listener

								autocomplete

								count<wbr>Records

								details<wbr>With<wbr>Routing

								display<wbr>Sayt<wbr>Past<wbr>Purchases

								emit

								event<wbr>Names

								listener<wbr>Count

								listeners

								more<wbr>Products

								more<wbr>Refinements

								off

								on

								once

								past<wbr>Purchase<wbr>Products

								products

								refine

								remove<wbr>All<wbr>Listeners

								remove<wbr>Listener

								replace<wbr>State

								reset

								resize

								save<wbr>State

								sayt<wbr>Past<wbr>Purchases

								sayt<wbr>Products

								sayt<wbr>Suggestions

								search

								sort

								switch<wbr>Collection

								switch<wbr>Page

								unrefine

								create<wbr>Bridge

								create<wbr>Clients

								create<wbr>Sayt

Legend

Module

Object literal

Variable

Function

Function with type parameter

Index signature

Type alias

Enumeration

Enumeration member

Property

Method

Interface

Interface with type parameter

Constructor

Property

Method

Index signature

Class

Class with type parameter

Constructor

Property

Method

Accessor

Index signature

Inherited constructor

Inherited property

Inherited method

Inherited accessor

Protected property

Protected method

Protected accessor

Private property

Private method

Private accessor

Static property

Static method

Generated using TypeDoc

redpajama_set_name: RedPajamaGithub


text:
<?php
  if (post_password_required()) {
    return;
  }
?>

  <?php if (have_comments()) : ?>

<?php printf(_n('One Response to “%2$s”', '%1$s Responses to “%2$s”', get_comments_number(), 'thecei'), number_format_i18n(get_comments_number()), get_the_title()); ?>

      <?php wp_list_comments(array('walker' => new thecei_Walker_Comment)); ?>

    <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>

          <?php if (get_previous_comments_link()) : ?>

<?php previous_comments_link(__('← Older comments', 'thecei')); ?>

          <?php endif; ?>
          <?php if (get_next_comments_link()) : ?>

<?php next_comments_link(__('Newer comments →', 'thecei')); ?>

          <?php endif; ?>

    <?php endif; ?>

    <?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>

        <?php _e('Comments are closed.', 'thecei'); ?>

    <?php endif; ?>
  <?php elseif(!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>

      <?php _e('Comments are closed.', 'thecei'); ?>

  <?php endif; ?>

  <?php if (comments_open()) : ?>

<?php comment_form_title(__('Leave a Reply', 'thecei'), __('Leave a Reply to %s', 'thecei')); ?>

<?php cancel_comment_reply_link(); ?>

    <?php if (get_option('comment_registration') && !is_user_logged_in()) : ?>

<?php printf(__('You must be logged in to post a comment.', 'thecei'), wp_login_url(get_permalink())); ?>

    <?php else : ?>
      <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
        <?php if (is_user_logged_in()) : ?>

            <?php printf(__('Logged in as %s.', 'thecei'), get_option('siteurl'), $user_identity); ?>
            <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'thecei'); ?>"><?php _e('Log out »', 'thecei'); ?>

        <?php else : ?>

            <?php _e('Name', 'thecei'); if ($req) _e(' (required)', 'thecei'); ?>
            <input type="text" class="form-control" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" <?php if ($req) echo 'aria-required="true"'; ?>>

            <?php _e('Email (will not be published)', 'thecei'); if ($req) _e(' (required)', 'thecei'); ?>
            <input type="email" class="form-control" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" <?php if ($req) echo 'aria-required="true"'; ?>>

            <?php _e('Website', 'thecei'); ?>
            <input type="url" class="form-control" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22">

        <?php endif; ?>

          <?php _e('Comment', 'thecei'); ?>
          <textarea name="comment" id="comment" class="form-control" rows="5" aria-required="true"></textarea>

<input name="submit" class="btn btn-primary" type="submit" id="submit" value="<?php _e('Submit Comment', 'thecei'); ?>">

        <?php comment_id_fields(); ?>
        <?php do_action('comment_form', $post->ID); ?>
      </form>
    <?php endif; ?>
  <?php endif; ?>


text:
package egovframework.com.cmm.util;

import java.util.Map;
import java.util.UUID;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

/**
 * Utility class  to support to double submit preventer
 * @author Vincent Han
 * @since 2014.08.07
 * @version 1.0
 * @see
 *
 * <pre>
 * << 개정이력(Modification Information) >>
 *
 *   수정일        수정자       수정내용
 *  -------       --------    ---------------------------
 *   2014.08.07	표준프레임워크센터	최초 생성
 *
 * </pre>
 */
public class EgovDoubleSubmitHelper {
	private static final Logger LOGGER = LoggerFactory.getLogger(EgovDoubleSubmitHelper.class);

	public final static String SESSION_TOKEN_KEY = "egovframework.double.submit.preventer.session.key";

	public final static String PARAMETER_NAME = "egovframework.double.submit.preventer.parameter.name";

	public final static String DEFAULT_TOKEN_KEY = "DEFAULT";

	public static String getNewUUID() {
		return UUID.randomUUID().toString().toUpperCase();
	}

	public static boolean checkAndSaveToken() {
		return checkAndSaveToken(DEFAULT_TOKEN_KEY);
	}

	public static boolean checkAndSaveToken(String tokenKey) {

		HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
		HttpSession session = request.getSession();

		// check session...
		if (session.getAttribute(EgovDoubleSubmitHelper.SESSION_TOKEN_KEY) == null) {
			throw new RuntimeException("Double Submit Preventer TagLig isn't set. Check JSP.");
		}

		String parameter = request.getParameter(EgovDoubleSubmitHelper.PARAMETER_NAME);

		// check parameter
		if (parameter == null) {
			throw new RuntimeException("Double Submit Preventer parameter isn't set. Check JSP.");
		}

		@SuppressWarnings("unchecked")
		Map<String, String> map = (Map<String, String>) session.getAttribute(EgovDoubleSubmitHelper.SESSION_TOKEN_KEY);

		if (parameter.equals(map.get(tokenKey))) {

			LOGGER.debug("[Double Submit] session token ({}) equals to parameter token.", tokenKey);

			map.put(tokenKey, getNewUUID());

			return true;
		}

		LOGGER.debug("[Double Submit] session token ({}) isn't equal to parameter token.", tokenKey);

		return false;
	}
}


text:
require 'active_support/core_ext/numeric/time'
require 'active_support/dependencies'

module WaitAMinute
  # The interval for looking back
  mattr_accessor :lookback_interval
  @@lookback_interval = 2.minutes

  # The maximum allowed requests in lookback_interval
  mattr_accessor :maximum_requests
  @@maximum_requests = 12		# that means a request every 10 seconds on average, that's pretty high from a human behind the IP

  # Debug mode (puts some info in Rails log)
  mattr_accessor :debug
  @@debug = false		# that means a request every 10 seconds on average, that's pretty high from a human behind the IP

  # The desired layout for the 503 error page
  mattr_accessor :layout
  @@layout = nil		# serving a simple page by default

  # Array of strings containing IP addresses that are allowed to pass through
  mattr_accessor :allowed_ips
  @@allowed_ips = []

  autoload :WaitAMinuteRequestLog, File.dirname(__FILE__) + '/wait_a_minute/wait_a_minute_request_log.rb'

  require "rails"

  class Engine < Rails::Engine
    # we have a view
  end

  def self.cleanup
    WaitAMinuteRequestLog.cleanup
  end

  # WaitAMinute::ControllerHelpers
  module ControllerHelpers #:nodoc
    # this will be called as a before filter
    def prevent_dos
      render_dos unless WaitAMinuteRequestLog.allow_request?(request)
    end

    # this will be called if IP exceeds allowed calls
    def render_dos
      respond_to do |type|
        type.html { render :template => "wait_a_minute/wait_a_minute", :status => 503, :layout => WaitAMinute.layout }
        type.all  { render :nothing => true, :status => 503 }
      end
      true
    end

  end   # WaitAMinute::ControllerHelpers

end   # WaitAMinute

# include view helpers in your actions
ActionController::Base.module_eval do
  include WaitAMinute::ControllerHelpers
  before_filter :prevent_dos
end


text:
## The name `InitializeComponent' does not exist in the current context (CS0103)

### Error: No embeddedresources found for <PageName>

### Error:

	Xamarin.Forms.Xaml.XamlParseException: No embeddedresources found for PlatformSpecific.DependencyService.PageMain
	  at at Xamarin.Forms.Xaml.XamlLoader.Load (Xamarin.Forms.BindableObject,System.Type) <IL 0x0002a, 0x00103>
	  at at Xamarin.Forms.Xaml.Extensions.LoadFromXaml<PlatformSpecific.DependencyService.PageMain> (PlatformSpecific.DependencyService.PageMain,System.Type) <0x0002f>
	  at PlatformSpecific.DependencyService.PageMain.InitializeComponent () [0x0000c] in /Users/moljac/Projects/Samples/Samples.Xamarin.Forms/tutorial-samples/PlatformSpecific/DependencyService/Sample/PlatformSpecific.DependencyService/obj/Debug/PageMain.xaml.g.cs:28
	  at PlatformSpecific.DependencyService.PageMain..ctor () [0x00008] in /Users/moljac/Projects/Samples/Samples.Xamarin.Forms/tutorial-samples/PlatformSpecific/DependencyService/Sample/PlatformSpecific.DependencyService/PageMain.xaml.cs:15
	  at PlatformSpecific.DependencyService.App..ctor () [0x00008] in /Users/moljac/Projects/Samples/Samples.Xamarin.Forms/tutorial-samples/PlatformSpecific/DependencyService/Sample/PlatformSpecific.DependencyService/App.cs:17
	  at PlatformSpecific.DependencyService.Droid.MainActivity.OnCreate (Android.OS.Bundle) [0x00010] in /Users/moljac/Projects/Samples/Samples.Xamarin.Forms/tutorial-samples/PlatformSpecific/DependencyService/Sample/PlatformSpecific.DependencyService.Android/MainActivity.cs:29
	  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.App.Activity.cs:2179
	  at at (wrapper dynamic-method) object.8033be6d-1a0c-43cb-a348-3a3923e99b14 (intptr,intptr,intptr) <IL 0x00017, 0x0001f>

##### Analysis

This error occurs when renaming classnames or namespaces in Xaml.

##### [Re]Solution/Workaround

Delete/remove bin and obj/ folders in projects both

*	portable
*	platform specific

After solving this error user might find out further errors in Xaml.

### Error

	PageAudioRecorder.xaml.cs(4,4):
		Error CS0103:
		The name `InitializeComponent' does not exist in the current context (CS0103)
		(PlatformSpecific.DependencyService)

### Cause[s]:

#### Case 01

##### Analysis

Look for xaml in csproj:

Cause:

	<ItemGroup>
		<None Include="FeaturesCapabilities\MultiMedia\Audio\PageAudioRecorder.xaml" />
	</ItemGroup>

	<!-- ..... -->

	<Compile Include="FeaturesCapabilities\MultiMedia\Audio\PageAudioRecorder.xaml.cs" />

Sometimes:

Cause:

  <EmbeddedResource Include="$(MSBuildThisFileDirectory)Pages\myWorkingForm.xaml">
    <SubType>Designer</SubType>
    <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
  </EmbeddedResource>
  <Page Include="$(MSBuildThisFileDirectory)Pages\TestForm.xaml">
    <SubType>Designer</SubType>
    <Generator>MSBuild:Compile</Generator>
  </Page>

##### [Re]Solution/Workaround

*	XAML file
	*	Build Action = EmbeddedResource
		not Page
	*	XAML code behind
		*	BUildAction = Compile
		*	DependentUpon node: XAML file name

    <EmbeddedResource Include="FeaturesCapabilities\MultiMedia\Audio\PageAudioRecorder.xaml">
      <Generator>MSBuild:Compile</Generator>
    </EmbeddedResource>
	<Compile Include="FeaturesCapabilities\MultiMedia\Audio\PageAudioRecorder.xaml.cs">
		<DependentUpon>PageAudioRecorder.xaml</DependentUpon>
	</Compile>


text:
use crate::flowgraph::{BasicBlock, ControlFlowGraph};
use crate::ir::entities::AnyEntity;
use crate::ir::{ExpandedProgramPoint, Function, Inst, ProgramOrder, ProgramPoint, Value};
use crate::isa::TargetIsa;
use crate::regalloc::liveness::Liveness;
use crate::regalloc::liverange::LiveRange;
use crate::timing;
use crate::verifier::{VerifierErrors, VerifierStepResult};
use core::cmp::Ordering;

/// Verify liveness information for `func`.
///
/// The provided control flow graph is assumed to be sound.
///
/// - All values in the program must have a live range.
/// - The live range def point must match where the value is defined.
/// - The live range must reach all uses.
/// - When a live range is live-in to an EBB, it must be live at all the predecessors.
/// - The live range affinity must be compatible with encoding constraints.
///
/// We don't verify that live ranges are minimal. This would require recomputing live ranges for
/// all values.
pub fn verify_liveness(
    isa: &TargetIsa,
    func: &Function,
    cfg: &ControlFlowGraph,
    liveness: &Liveness,
    errors: &mut VerifierErrors,
) -> VerifierStepResult<()> {
    let _tt = timing::verify_liveness();
    let verifier = LivenessVerifier {
        isa,
        func,
        cfg,
        liveness,
    };
    verifier.check_ebbs(errors)?;
    verifier.check_insts(errors)?;
    Ok(())
}

struct LivenessVerifier<'a> {
    isa: &'a TargetIsa,
    func: &'a Function,
    cfg: &'a ControlFlowGraph,
    liveness: &'a Liveness,
}

impl<'a> LivenessVerifier<'a> {
    /// Check all EBB arguments.
    fn check_ebbs(&self, errors: &mut VerifierErrors) -> VerifierStepResult<()> {
        for ebb in self.func.layout.ebbs() {
            for &val in self.func.dfg.ebb_params(ebb) {
                let lr = match self.liveness.get(val) {
                    Some(lr) => lr,
                    None => return fatal!(errors, ebb, "EBB arg {} has no live range", val),
                };
                self.check_lr(ebb.into(), val, lr, errors)?;
            }
        }
        Ok(())
    }

    /// Check all instructions.
    fn check_insts(&self, errors: &mut VerifierErrors) -> VerifierStepResult<()> {
        for ebb in self.func.layout.ebbs() {
            for inst in self.func.layout.ebb_insts(ebb) {
                let encoding = self.func.encodings[inst];

                // Check the defs.
                for &val in self.func.dfg.inst_results(inst) {
                    let lr = match self.liveness.get(val) {
                        Some(lr) => lr,
                        None => return fatal!(errors, inst, "{} has no live range", val),
                    };
                    self.check_lr(inst.into(), val, lr, errors)?;

                    if encoding.is_legal() {
                        // A legal instruction is not allowed to define ghost values.
                        if lr.affinity.is_unassigned() {
                            return fatal!(
                                errors,
                                inst,
                                "{} is a ghost value defined by a real [{}] instruction",
                                val,
                                self.isa.encoding_info().display(encoding)
                            );
                        }
                    } else if !lr.affinity.is_unassigned() {
                        // A non-encoded instruction can only define ghost values.
                        return fatal!(
                            errors,
                            inst,
                            "{} is a real {} value defined by a ghost instruction",
                            val,
                            lr.affinity.display(&self.isa.register_info())
                        );
                    }
                }

                // Check the uses.
                for &val in self.func.dfg.inst_args(inst) {
                    let lr = match self.liveness.get(val) {
                        Some(lr) => lr,
                        None => return fatal!(errors, inst, "{} has no live range", val),
                    };
                    if !self.live_at_use(lr, inst) {
                        return fatal!(errors, inst, "{} is not live at this use", val);
                    }

                    // A legal instruction is not allowed to depend on ghost values.
                    if encoding.is_legal() && lr.affinity.is_unassigned() {
                        return fatal!(
                            errors,
                            inst,
                            "{} is a ghost value used by a real [{}] instruction",
                            val,
                            self.isa.encoding_info().display(encoding)
                        );
                    }
                }
            }
        }
        Ok(())
    }

    /// Is `lr` live at the use `inst`?
    fn live_at_use(&self, lr: &LiveRange, inst: Inst) -> bool {
        let ctx = self.liveness.context(&self.func.layout);

        // Check if `inst` is in the def range, not including the def itself.
        if ctx.order.cmp(lr.def(), inst) == Ordering::Less
            && ctx.order.cmp(inst, lr.def_local_end()) != Ordering::Greater
        {
            return true;
        }

        // Otherwise see if `inst` is in one of the live-in ranges.
        match lr.livein_local_end(ctx.order.inst_ebb(inst).unwrap(), ctx) {
            Some(end) => ctx.order.cmp(inst, end) != Ordering::Greater,
            None => false,
        }
    }

    /// Check the integrity of the live range `lr`.
    fn check_lr(
        &self,
        def: ProgramPoint,
        val: Value,
        lr: &LiveRange,
        errors: &mut VerifierErrors,
    ) -> VerifierStepResult<()> {
        let l = &self.func.layout;

        let loc: AnyEntity = match def.into() {
            ExpandedProgramPoint::Ebb(e) => e.into(),
            ExpandedProgramPoint::Inst(i) => i.into(),
        };
        if lr.def() != def {
            return fatal!(
                errors,
                loc,
                "Wrong live range def ({}) for {}",
                lr.def(),
                val
            );
        }
        if lr.is_dead() {
            if !lr.is_local() {
                return fatal!(errors, loc, "Dead live range {} should be local", val);
            } else {
                return Ok(());
            }
        }
        let def_ebb = match def.into() {
            ExpandedProgramPoint::Ebb(e) => e,
            ExpandedProgramPoint::Inst(i) => l.inst_ebb(i).unwrap(),
        };
        match lr.def_local_end().into() {
            ExpandedProgramPoint::Ebb(e) => {
                return fatal!(
                    errors,
                    loc,
                    "Def local range for {} can't end at {}",
                    val,
                    e
                );
            }
            ExpandedProgramPoint::Inst(i) => {
                if self.func.layout.inst_ebb(i) != Some(def_ebb) {
                    return fatal!(errors, loc, "Def local end for {} in wrong ebb", val);
                }
            }
        }

        // Now check the live-in intervals against the CFG.
        for (mut ebb, end) in lr.liveins(self.liveness.context(l)) {
            if !l.is_ebb_inserted(ebb) {
                return fatal!(
                    errors,
                    loc,
                    "{} livein at {} which is not in the layout",
                    val,
                    ebb
                );
            }
            let end_ebb = match l.inst_ebb(end) {
                Some(e) => e,
                None => {
                    return fatal!(
                        errors,
                        loc,
                        "{} livein for {} ends at {} which is not in the layout",
                        val,
                        ebb,
                        end
                    );
                }
            };

            // Check all the EBBs in the interval independently.
            loop {
                // If `val` is live-in at `ebb`, it must be live at all the predecessors.
                for BasicBlock { inst: pred, .. } in self.cfg.pred_iter(ebb) {
                    if !self.live_at_use(lr, pred) {
                        return fatal!(
                            errors,
                            pred,
                            "{} is live in to {} but not live at predecessor",
                            val,
                            ebb
                        );
                    }
                }

                if ebb == end_ebb {
                    break;
                }
                ebb = match l.next_ebb(ebb) {
                    Some(e) => e,
                    None => {
                        return fatal!(
                            errors,
                            loc,
                            "end of {} livein ({}) never reached",
                            val,
                            end_ebb
                        );
                    }
                };
            }
        }

        Ok(())
    }
}


text:
@class IOSByteArray;
@class JavaIoInputStream;

#include "J2ObjC_header.h"
#include "java/io/FilterInputStream.h"

@interface JavaIoLineNumberInputStream : JavaIoFilterInputStream {
}

- (instancetype)initWithJavaIoInputStream:(JavaIoInputStream *)inArg;

- (jint)available;

- (jint)getLineNumber;

- (void)markWithInt:(jint)readlimit;

- (jint)read;

- (jint)readWithByteArray:(IOSByteArray *)buffer
                  withInt:(jint)byteOffset
                  withInt:(jint)byteCount;

- (void)reset;

- (void)setLineNumberWithInt:(jint)lineNumber;

- (jlong)skipWithLong:(jlong)byteCount;

@end

J2OBJC_EMPTY_STATIC_INIT(JavaIoLineNumberInputStream)

CF_EXTERN_C_BEGIN
CF_EXTERN_C_END

J2OBJC_TYPE_LITERAL_HEADER(JavaIoLineNumberInputStream)

#endif // _JavaIoLineNumberInputStream_H_


text:
package au.csiro.ontology.importer.rf2;

/**
 * Represents a row in an RF2 descriptions file.
 *
 * @author Alejandro Metke
 *
 */
public class DescriptionRow implements Comparable<DescriptionRow>{

    private final String id;
    private final String effectiveTime;
    private final String active;
    private final String moduleId;
    private final String conceptId;
    private final String languageCode;
    private final String typeId;
    private final String term;
    private final String caseSignificanceId;

    /**
     * Creates a new DescriptionRow.
     *
     * @param id
     * @param effectiveTime
     * @param active
     * @param moduleId
     * @param conceptId
     * @param languageCode
     * @param typeId
     * @param term
     * @param caseSignificanceId
     */
    public DescriptionRow(String id, String effectiveTime, String active,
            String moduleId, String conceptId, String languageCode,
            String typeId, String term, String caseSignificanceId) {
        super();
        this.id = id;
        this.effectiveTime = effectiveTime;
        this.active = active;
        this.moduleId = moduleId;
        this.conceptId = conceptId;
        this.languageCode = languageCode;
        this.typeId = typeId;
        this.term = term;
        this.caseSignificanceId = caseSignificanceId;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @return the effectiveTime
     */
    public String getEffectiveTime() {
        return effectiveTime;
    }

    /**
     * @return the active
     */
    public String getActive() {
        return active;
    }

    /**
     * @return the moduleId
     */
    public String getModuleId() {
        return moduleId;
    }

    /**
     * @return the conceptId
     */
    public String getConceptId() {
        return conceptId;
    }

    /**
     * @return the languageCode
     */
    public String getLanguageCode() {
        return languageCode;
    }

    /**
     * @return the typeId
     */
    public String getTypeId() {
        return typeId;
    }

    /**
     * @return the term
     */
    public String getTerm() {
        return term;
    }

    /**
     * @return the caseSignificanceId
     */
    public String getCaseSignificanceId() {
        return caseSignificanceId;
    }

    @Override
    public String toString() {
        return id + ", " + effectiveTime + ", " + active + ", " + moduleId +
                ", " + conceptId + ", " + languageCode + ", " + typeId + ", " +
                term + ", " + caseSignificanceId;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((active == null) ? 0 : active.hashCode());
        result = prime
                * result
                + ((caseSignificanceId == null) ? 0 : caseSignificanceId
                        .hashCode());
        result = prime * result
                + ((conceptId == null) ? 0 : conceptId.hashCode());
        result = prime * result
                + ((effectiveTime == null) ? 0 : effectiveTime.hashCode());
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result
                + ((languageCode == null) ? 0 : languageCode.hashCode());
        result = prime * result
                + ((moduleId == null) ? 0 : moduleId.hashCode());
        result = prime * result + ((term == null) ? 0 : term.hashCode());
        result = prime * result + ((typeId == null) ? 0 : typeId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        DescriptionRow other = (DescriptionRow) obj;
        if (active == null) {
            if (other.active != null)
                return false;
        } else if (!active.equals(other.active))
            return false;
        if (caseSignificanceId == null) {
            if (other.caseSignificanceId != null)
                return false;
        } else if (!caseSignificanceId.equals(other.caseSignificanceId))
            return false;
        if (conceptId == null) {
            if (other.conceptId != null)
                return false;
        } else if (!conceptId.equals(other.conceptId))
            return false;
        if (effectiveTime == null) {
            if (other.effectiveTime != null)
                return false;
        } else if (!effectiveTime.equals(other.effectiveTime))
            return false;
        if (id == null) {
            if (other.id != null)
                return false;
        } else if (!id.equals(other.id))
            return false;
        if (languageCode == null) {
            if (other.languageCode != null)
                return false;
        } else if (!languageCode.equals(other.languageCode))
            return false;
        if (moduleId == null) {
            if (other.moduleId != null)
                return false;
        } else if (!moduleId.equals(other.moduleId))
            return false;
        if (term == null) {
            if (other.term != null)
                return false;
        } else if (!term.equals(other.term))
            return false;
        if (typeId == null) {
            if (other.typeId != null)
                return false;
        } else if (!typeId.equals(other.typeId))
            return false;
        return true;
    }

    public int compareTo(DescriptionRow other) {
        if(this.equals(other))
            return 0;
        else {
            int res = effectiveTime.compareTo(other.effectiveTime);
            if(res != 0) return res;
            res = moduleId.compareTo(other.moduleId);
            if(res != 0) return res;
            res = id.compareTo(other.id);
            if(res != 0) return res;
            res = active.compareTo(other.active);
            if(res != 0) return res;
            res = conceptId.compareTo(other.conceptId);
            if(res != 0) return res;
            res = languageCode.compareTo(other.languageCode);
            if(res != 0) return res;
            res = typeId.compareTo(other.typeId);
            if(res != 0) return res;
            res = term.compareTo(other.term);
            if(res != 0) return res;
            res = caseSignificanceId.compareTo(other.caseSignificanceId);
            assert(res != 0);
            return res;
        }
    }

}


text:
package com.aviras.mrassistant.ui;

import android.view.View;

/**
 * {@link android.support.v4.app.Fragment}s shown in {@link android.support.v4.view.ViewPager} will
 * implement it for providing fab clicked function.
 * <p/>
 * Created by ashish on 14/6/16.
 */
public interface FabActionProvider {
    void onFabClicked(View v);
}


text:
import * as React from 'react';
import { Label } from 'office-ui-fabric-react/lib/Label';
import {
  Pivot,
  PivotItem,
  PivotLinkFormat
} from 'office-ui-fabric-react/lib/Pivot';

export class PivotTabsExample extends React.Component<any, any> {
  public render() {
    return (

        <Pivot linkFormat={ PivotLinkFormat.tabs }>
          <PivotItem linkText='Foo'>
            Pivot #1
          </PivotItem>
          <PivotItem linkText='Bar'>
            Pivot #2
          </PivotItem>
          <PivotItem linkText='Bas'>
            Pivot #3
          </PivotItem>
          <PivotItem linkText='Biz'>
            Pivot #4
          </PivotItem>
        </Pivot>

    );
  }

}


text: export default "b";


text:
import maybe

class Valid:
    a = None
    def __init__(self, a):
        self.a = a
    def __eq__(self, other):
        return (isinstance(other, self.__class__)
            and self.a == other.a)
    def __ne__(self, other):
        return not self.__eq__(other)
    def __str__(self):
        return 'Valid(%s)' % self.a
    def is_valid(self):
        return True
    def map(self, f):
        return Valid(f(self.a))
    def flat_map(self, f):
        return f(self.a)
    def ap(self, v):
        if v.is_valid():
            return Valid(self.a(v.a))
        else:
            return v
    def to_maybe(self):
        return maybe.Just(self.a)

class Invalid:
    es = None
    def __init__(self, es):
        self.es = es
    def __eq__(self, other):
        return (isinstance(other, self.__class__)
            and self.es == other.es)
    def __ne__(self, other):
        return not self.__eq__(other)
    def __str__(self):
        return 'Invalid(%s)' % self.es
    def is_valid(self):
        return False
    def map(self, f):
        return self
    def flat_map(self, f):
        return self
    def ap(self, v):
        if v.is_valid():
            return self
        else:
            return Invalid(self.es + v.es)
    def to_maybe(self):
        return maybe.Nothing()

def get_required_env(name):
    from os import getenv
    value = getenv(name)
    if value is None:
        return Invalid(['env var ' + name + ' required'])
    else:
        return Valid(value)

def lift_aN(arity, f):
    def curry(arity, f, acc = []):
        if arity == 1:
            def g(x):
                args = []
                args.extend(acc)
                args.append(x)
                return f(*args)
            return g
        else:
            def g(x):
                args = []
                args.extend(acc)
                args.append(x)
                return curry(arity - 1, f, args)
            return g
    if arity >= 1:
        return Valid(curry(arity, f))
    else:
        return Invalid(["n must be positive in lift_aN(n, f)"])

def lift_a(f):
    return lift_aN(1, f)

def lift_a2(f):
    return lift_aN(2, f)

def lift_a3(f):
    return lift_aN(3, f)


text:
"use strict";

import React from 'react';
import ClientStore from '../stores/ClientStore';

import { ListGroup } from 'react-bootstrap';
import { ListGroupItem } from 'react-bootstrap';
import { Row } from 'react-bootstrap';
import { Col } from 'react-bootstrap';

import TransferRate from './TransferRate.react';
import Throttle from './Throttle.react';

function getStateFromStores() {
  return {
    clientData: ClientStore.getData()
  };
}

export default class ClientSection extends React.Component {
  constructor() {
    super();
    this.state = getStateFromStores();
    this._onChange = this._onChange.bind(this);
    ClientStore.addChangeListener(this._onChange);
  }
  componentWillUnmount () {
    ClientStore.removeChangeListener(this._onChange);
  }
  _onChange () {
    this.setState(getStateFromStores());
  }
  render () {
    return (
      <ListGroup>
        <ListGroupItem active>
          <Row>
            <Col md={3}>
              <TransferRate
                uploadSpeed   = {this.state.clientData.uploadSpeed}
                downloadSpeed = {this.state.clientData.downloadSpeed}
              />
            </Col>
            <Col md={3}>
              <Throttle
                uploadThrottle = {this.state.clientData.uploadThrottle}
                downloadThrottle = {this.state.clientData.downloadThrottle}
              />
            </Col>
          </Row>
        </ListGroupItem>
      </ListGroup>
    );
  }
};


text:
<?php

if( !class_exists( 'umSupportProModel' ) ) :
class umSupportProModel {

    function generateLoginForm( $formName ){
        global $userMeta;

        if( is_user_logged_in() )
            return $this->loginResponse();

        $loginSettings  = $userMeta->getSettings( 'login' );
        $methodName     = 'Login';

        $output = null;

        if( ! empty( $formName ) ){
            $form   = $userMeta->getFormData( $formName );
            if( is_wp_error( $form ) )
                return $userMeta->ShowError( $form );

            $form['form_class'] = 'um_login_form ' . !empty( $form['form_class'] ) ? $form['form_class'] : null;
            if( empty( $form['disable_ajax'] ) )
                $form['onsubmit']   = "umLogin(this);";

            $output .= $userMeta->renderPro( 'generateForm', array(
                'form'          => $form,
                'actionType'    => 'login',
                'methodName'    => $methodName,
            ) );

        }else{
            $title  = $userMeta->loginByArray();
            if( isset( $userMeta->um_post_method_status->$methodName ) )
                $output .= $userMeta->um_post_method_status->$methodName;

            $config = apply_filters( 'user_meta_default_login_form', array() );

            $output .= $userMeta->renderPro( 'loginForm', array(
                'config'            => $config,
                'loginTitle'        => @$title[ $loginSettings[ 'login_by' ] ],
                'disableAjax'       => !empty( $loginSettings['disable_ajax'] ) ? true : false,
                'methodName'        => $methodName,
            ), 'login' );
        }

        if( empty( $loginSettings['disable_lostpassword'] ) ){
            $output .= $userMeta->lostPasswordForm();
        }

        return $output;
    }

    // Sleep from 1.1.3rc3
    function lgoinForm(){
        global $userMeta;

        if( is_user_logged_in() )
            return $this->loginResponse();

        $login = $userMeta->getSettings( 'login' );
        $title  = $userMeta->loginByArray();

        return $userMeta->renderPro( 'loginForm', array(
            'loginBy'           => @$login[ 'login_by' ] ,
            'loginTitle'        => @$title[ $login[ 'login_by' ] ],
            'disableAjax'       => @$login[ 'disable_ajax' ],
        ), 'login' );
    }

    /**
     * Handle resetPassword request, key validation, password reset
     */
    function lostPasswordForm( $config=array() ){
        global $userMeta;

        $methodName = "Lostpassword";

        //if( is_user_logged_in() ) return;

        if( empty( $config ) )
            $config = $userMeta->getExecutionPageConfig( 'lostpassword' );

        $login = $userMeta->getSettings( 'login' );

        if( !empty( $login['disable_lostpassword'] ) )
            return $userMeta->showError( __( 'Retrieve password is currently not allowed.', $userMeta->name ) );

        //$html = null;
        //if( !@$_REQUEST['is_ajax'] && @$_REQUEST['method_name'] == 'lostpassword' )
            //$html .= $userMeta->ajaxLostpassword();

        $html = $userMeta->renderPro( 'lostPasswordForm', array(
            'config'        => $config,
            'disableAjax'   => !empty( $login['disable_ajax'] ) ? true : false,
            'methodName'    => $methodName,
        ), 'login' );

        return $html;
    }

    /**
     * LoggedIn Profile.
     *
     * @uses    generateLoginForm()
     * @since   1.1.2
     * @param   string : shortcode, widget, template.
     * @return  string containing the form
     */
    function loginResponse( $user = null ){
        global $userMeta;

        if( empty( $user ) )
            $user = wp_get_current_user();

        $role = $userMeta->getUserRole( $user->ID );
        $login = $userMeta->getSettings( 'login' );

        return $userMeta->convertUserContent( $user, @$login[ 'loggedin_profile' ][ $role ]  );
    }

    function resetPassword( $config=array() ){
        global $userMeta;

        if( empty( $config ) )
            $config = $userMeta->getExecutionPageConfig( 'resetpass' );

        $html = null;
        $user = $userMeta->check_password_reset_key( rawurldecode( @$_GET['key'] ) , rawurldecode( @$_GET['login'] )  );
    	if ( !is_wp_error($user) ){
            if( isset( $_POST['pass1'] ) && isset( $_POST['pass2'] ) ){
                if ( isset($_POST['pass1']) && $_POST['pass1'] != $_POST['pass2'] )
                    $errors = new WP_Error('password_reset_mismatch', $userMeta->getMsg( 'password_reset_mismatch' ) );
                elseif ( isset($_POST['pass1']) && !empty($_POST['pass1']) ){
                    $userMeta->reset_password($user, $_POST['pass1']);
                    do_action( 'user_meta_after_reset_password', $user );
                    $html .= $userMeta->showMessage( $userMeta->getMsg( 'password_reseted' ) );
                    if( !empty( $config['redirect'] ) )
                        $html .= $userMeta->jsRedirect( $config['redirect'], 5 );
                    return $html;
                }
            }
    	}else
            return $userMeta->showError( $user->get_error_message(), false );

        return $userMeta->renderPro( 'resetPasswordForm', array(
            'config'    => $config,
            'error'     => isset( $errors ) ? $errors : false,
        ), 'login' );
    }

    function emailVerification( $config=array() ){
        global $userMeta;

        if( empty( $config ) )
            $config = $userMeta->getExecutionPageConfig( 'email_verification' );

        $email  = isset( $_REQUEST['email'] ) ? rawurldecode( $_REQUEST['email'] ) : '';
        $key    = isset( $_REQUEST['key'] ) ? rawurldecode( $_REQUEST['key'] ) : '';

        if( !$email || !$key )
            return $userMeta->showError(  $userMeta->getMsg( 'invalid_parameter' )  );

        $user = get_user_by( 'email', $email );
        if( !$user )
            return $userMeta->showError(  $userMeta->getMsg( 'email_not_found' )  );

        $status = get_user_meta( $user->ID, $userMeta->prefixLong . 'user_status', true );

        if( $status == 'active' )
            return $userMeta->showMessage( $userMeta->getMsg( 'user_already_activated' ) );

        $preSavedKey = get_user_meta( $user->ID, $userMeta->prefixLong . 'email_verification_code', true );

        if( empty( $preSavedKey ) && $status == 'pending' )
            return $userMeta->showMessage( $userMeta->getMsg( 'email_verified_pending_admin' ), 'info' );

        $html = null;
        if( $preSavedKey == $key){
            $registration       = $userMeta->getSettings( 'registration' );
            $user_activation    = $registration[ 'user_activation' ];

            if( $user_activation == 'email_verification' )
                $status = 'active';

            update_user_meta( $user->ID, $userMeta->prefixLong . 'user_status', $status );
            update_user_meta( $user->ID, $userMeta->prefixLong . 'email_verification_code', '' );
            do_action( 'user_meta_email_verified', $user->ID );

            $html .= $userMeta->showMessage( $userMeta->getMsg(  $status == 'active' ? 'email_verified' : 'email_verified_pending_admin', esc_url(wp_login_url()) ) );
            if( !empty( $config['redirect'] ) )
                $html .= $userMeta->jsRedirect( $config['redirect'], 5 );
            return $html;
        }else
            return $userMeta->showError( $userMeta->getMsg( 'invalid_key' ) );
    }

    /**
     * Do login if user not logged on.
     * @return onSuccess : redirect_url | onFailed : WP_Error or false
     */
    function doLogin( $creds=array() ){
        global $userMeta;

        if( is_user_logged_in() )
            return false;

        $loginSettings	= $userMeta->getSettings('login');

        if( empty( $creds['user_login'] ) ){
            $user = self::findUserForLogin( $loginSettings );
            if( is_wp_error( $user ) )
                return $user;
            $userName = $user->user_login;
        }else
            $userName = $creds['user_login'];

        $userPass   = ! empty( $creds['user_pass'] ) ? $creds['user_pass'] : @$_REQUEST['user_pass'];
        $remember   = ! empty( $creds['remember'] ) ? $creds['remember'] : @$_REQUEST['remember'];

        $user   = wp_authenticate( $userName, $userPass );

        if( is_wp_error( $user ) )
            return $user;

        // if Prevent user login for non-member of blog is set.
        if( is_multisite() ){
            global $blog_id;
            if( !empty( $loginSettings['blog_member_only'] ) ){
                $userID		= username_exists( sanitize_user($userName, true) );
                if( $userID ){
                    if( !is_user_member_of_blog($userID) )
                        return new WP_Error( 'not_member_of_blog', $userMeta->getMsg( 'not_member_of_blog' ) );
                }
            }
        }

        $secure_cookie = '';

        if( force_ssl_admin() )
            $secure_cookie = true;

        // If the user wants ssl but the session is not ssl, force a secure cookie.
        if( !force_ssl_admin() ){
            if ( $user = get_user_by('login', sanitize_user($userName) ) ) {
                if ( get_user_option('use_ssl', $user->ID) ) {
                    $secure_cookie = true;
                    force_ssl_admin(true);
                }
            }
        }

	//if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
		//$secure_cookie = false;

        $user = wp_signon( array(
            'user_login'    => $userName,
            'user_password' => $userPass,
            'remember'      => $remember ? true : false,
        ), $secure_cookie );

        if( is_wp_error( $user ) )
            return $user;

        $role = $userMeta->getUserRole( $user->ID );
        $redirect_to = $role == 'administrator' ? admin_url() : home_url();
        $redirect_to = $userMeta->getRedirectionUrl( $redirect_to, 'login', $role );

        if( $userMeta->isFilterEnable( 'login_redirect' ) )
            $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);

        $user->redirect_to = $redirect_to;

        return $user;
    }

    /**
     * fined user_login form user_login or user_email
     */
    function findUserForLogin( $loginSettings ){
        global $userMeta;

        $loginBy    = @$loginSettings[ 'login_by' ];
        $userLogin  = @$_REQUEST[ 'user_login' ];

        if( $loginBy == 'user_login_or_email' ){
            $user = get_user_by( 'email', $userLogin );
            if( $user === false )
                $user = get_user_by( 'login', $userLogin );
        }elseif( $loginBy == 'user_email' )
            $user = get_user_by( 'email', $userLogin );
        else
            $user = get_user_by( 'login', $userLogin );

        if( $user === false ){
            $title  = $userMeta->loginByArray();
            return new WP_Error( 'invalid_login', $userMeta->getMsg( 'invalid_login', @$title[ $loginBy ] ) );
        }

        return $user;
    }

    //sleep from version 1.1.3rc2
    /**
     * Determine, is it login request. Useed with http post request
     */
    function isLoginRequest(){
        if( !is_user_logged_in() && @$_POST['action'] == 'um_login' && @$_POST['action_type'] == 'login' && @$_REQUEST['pf_nonce'] && isset( $_POST['user_login'] ) && isset( $_POST['user_pass'] ) )
            return true;
        return false;
    }

    function disableAdminRow( $id ){
        if( in_array( $id, array( 'heading_0', 'heading_1', 'heading_2', 'heading_3' ) ) ){
            ?>

            <?php
        }else{
            ?>

            <?php
        }
    }

    function isResetPasswordRequest(){
        $action = @$_GET[ 'action' ];
        if( in_array( $action, array( 'lostpassword', 'retrievepassword', 'resetpass', 'rp' ) ) )
            return true;
        return false;

    }

    function registerUser( $userData, $fileCache=null ){
        global $userMeta;

        /// $userData: array.
        $userData = apply_filters( 'user_meta_pre_user_register', $userData );
        if( is_wp_error( $userData ) )
            return $userMeta->showError( $userData );

        if( is_multisite() && wp_verify_nonce( @$_POST['um_newblog'], 'blogname' ) && !empty( $_POST['blogname'] ) ){
            $blogData = wpmu_validate_blog_signup($_POST['blogname'], $_POST['blog_title']);
            if( $blogData['errors']->get_error_code() )
                return $userMeta->showError( $blogData['errors'] );
        }

        // If add_user_to_blog set true in UserMeta settings panel
        $userID = null;
        if( is_multisite() ){
            $registrationSettings = $userMeta->getSettings('registration');
            if( !empty( $registrationSettings['add_user_to_blog'] ) ){
                global $blog_id;
                $user_login = sanitize_user($userData['user_login'], true);
                $userID		= username_exists($user_login);
                if( $userID ){
                    if( !is_user_member_of_blog($userID) )
                        add_user_to_blog( $blog_id, $userID, get_option('default_role','subscriber') );
                    else
                        $userID	= null;
                }
            }
        }

        $response = $userMeta->insertUser( $userData, $userID );
        if( is_wp_error( $response ) )
            return $userMeta->showError( $response );

        if( isset($blogData) ){
            $responseBlog = $this->registerBlog( $blogData, $userData );
            if( is_wp_error( $responseBlog ) )
                return $userMeta->showError( $responseBlog );
        }

        /// Allow to populate form data based on DB instead of $_REQUEST
        $userMeta->showDataFromDB = true;

        $registrationSettings = $userMeta->getSettings( 'registration' );
        $activation = $registrationSettings[ 'user_activation' ];
        if( $activation == 'auto_active' )
            $msg    = $userMeta->getMsg( 'registration_completed' );
        elseif( $activation == 'email_verification' )
            $msg    = $userMeta->getMsg( 'sent_verification_link' );
        elseif( $activation == 'admin_approval' )
            $msg    = $userMeta->getMsg( 'wait_for_admin_approval' );
        elseif( $activation == 'both_email_admin' )
            $msg    = $userMeta->getMsg( 'sent_link_wait_for_admin' );

        if( $fileCache )
            $userMeta->removeCache( 'image_cache', $fileCache, false );

        if( $activation == 'auto_active' ){
            if( !empty( $registrationSettings['auto_login'] ) )
                self::doLogin( $response );
        }

        do_action( 'user_meta_after_user_register', (object) $response );

        $html = $userMeta->showMessage( $msg );

        if( isset($responseBlog) )
                $html .= $userMeta->showMessage( $responseBlog );

        $role = $userMeta->getUserRole( $response[ 'ID' ] );
        $redirect_to = $userMeta->getRedirectionUrl( null, 'registration', $role );

        if( $userMeta->isFilterEnable( 'registration_redirect' ) )
            $redirect_to = apply_filters( 'registration_redirect', $redirect_to, $response[ 'ID' ] );

        if( $redirect_to ){
            if( empty( $_REQUEST['is_ajax'] ) ){
                wp_redirect( $redirect_to );
                exit();
            }

            $timeout = $activation == 'auto_active' ? 3 : 5;
            $html .= $userMeta->jsRedirect( $redirect_to, $timeout );
        }

        $html = "
" . $html . "
";
        return $userMeta->printAjaxOutput( $html );
    }

	function registerBlog( $blogData, $userData ){
		global $userMeta;
		extract($blogData);

		$active_signup = get_site_option( 'registration' );
		if ( !$active_signup )
			$active_signup = 'all';

		$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"
		if ( ! ( $active_signup == 'all' || $active_signup == 'blog' ) )
			return false;

		if ( $errors->get_error_code() )
			return $errors;

		//$public = (int) $_POST['blog_public'];
		//$meta = array ('lang_id' => 1, 'public' => $public);
		//$meta = apply_filters( 'add_signup_meta', $meta );

		if( empty( $userData['user_login'] ) || empty( $userData['user_email'] ) )
			return new WP_Error( 'login_email_required', $userMeta->getMsg( 'login_email_required' ) );

		$meta = '';

		wpmu_signup_blog($domain, $path, $blog_title, $userData['user_login'], $userData['user_email'], $meta);

		$msg = null;
		$msg .= sprintf( __( 'Congratulations! Your new site, %s, is almost ready.', $userMeta->name ), "{$blog_title}" );
		$msg .= __( 'But, before you can start using your site, you must activate it.', $userMeta->name );
		$msg .= sprintf( __( 'Check your inbox at %s and click the link given.', $userMeta->name ),  $userData['user_email']);
		$msg .= __( 'If you do not activate your site within two days, you will have to sign up again.', $userMeta->name );

		$msg = apply_filters( 'user_meta_blog_signup_msg', $msg, "{$blog_title}", $userData['user_email'] );

                do_action( 'signup_finished' );
		return $msg;
	}

    function isInvalidateCaptcha(){
         global $userMeta;

         // Checking existance of captcha field
         if( !isset($_POST["recaptcha_challenge_field"]) )
            return false;

        // If key are not set then no validation
        $general    = $userMeta->getSettings( 'general' );
        if( ( !@$general['recaptcha_public_key'] ) || ( !@$general['recaptcha_private_key'] ) )
            return false;

        //if( ! function_exists( 'recaptcha_check_answer' ) )
            require_once( $userMeta->pluginPath . '/framework/helper/recaptchalib.php');

        $privateKey = null;
        if( isset( $general['recaptcha_private_key'] ) )
            $privateKey = $general['recaptcha_private_key'];

        $resp = recaptcha_check_answer ($privateKey,
                                    $_SERVER["REMOTE_ADDR"],
                                    $_POST["recaptcha_challenge_field"],
                                    $_POST["recaptcha_response_field"]);
        if (!$resp->is_valid){
            $error = $resp->error;
            if( $error == 'incorrect-captcha-sol' )
                $error = $userMeta->getMsg( 'incorrect_captcha' );
            return $error;
        }

        return false;
    }

    // TODO: referer
    /**
     * Get redirection url from settings.
     * @param $redirect_to: get $redirect_to from filter.
     * @param $action: login, logout or registration
     * @param $role: role name
     * @return $redirect_to: url
     */
    function getRedirectionUrl( $redirect_to, $action, $role=null ){
        global $userMeta, $user_ID;

        if( !$role )
            $role = $userMeta->getUserRole( $user_ID );

        $redirection       = $userMeta->getSettings( 'redirection' );

        if( @$redirection[ 'disable' ] )
            return $redirect_to;

        $redirectionType = @$redirection[ $action ][ $role ];

        $scheme = is_ssl() ? 'https://' : 'http://';

        if( $redirectionType == 'same_url' ){
            if( ! empty( $_REQUEST[ '_wp_http_referer' ] ) )
                $redirect_to = $scheme . esc_attr( $_SERVER[ 'HTTP_HOST' ] ) . esc_attr( $_REQUEST[ '_wp_http_referer' ] );
            elseif( ! empty( $_SERVER[ 'REQUEST_URI' ] ) )
                $redirect_to = $scheme . esc_attr( $_SERVER[ 'HTTP_HOST' ] ) . esc_attr( $_SERVER[ 'REQUEST_URI' ] );
        }elseif( $redirectionType == 'referer' ){
            if( !empty( $_REQUEST['redirect_to'] ) )
                $redirect_to = esc_attr( $_REQUEST['redirect_to'] );
            elseif( ! empty( $_REQUEST[ 'pf_http_referer' ] ) )
                $redirect_to = esc_attr( $_REQUEST['pf_http_referer'] );
            elseif( ! empty( $_REQUEST[ '_wp_http_referer' ] ) )
                $redirect_to = $scheme . esc_attr( $_SERVER[ 'HTTP_HOST' ] ) . esc_attr( $_REQUEST[ '_wp_http_referer' ] );
            elseif( ! empty( $_SERVER[ 'HTTP_REFERER' ] ) )
                $redirect_to = esc_attr( $_SERVER[ 'HTTP_REFERER' ] );
            elseif( ! empty( $_SERVER[ 'REQUEST_URI' ] ) )
                $redirect_to = $scheme . esc_attr( $_SERVER[ 'HTTP_HOST' ] ) . esc_attr( $_SERVER[ 'REQUEST_URI' ] );

        }elseif( $redirectionType == 'home' )
            $redirect_to = home_url();
        elseif( $redirectionType == 'profile' )
            $redirect_to = $userMeta->getProfileLink();
        elseif( $redirectionType == 'dashboard' )
            $redirect_to = admin_url();
        elseif( $redirectionType == 'login_page' )
            $redirect_to = wp_login_url();
        elseif( $redirectionType == 'custom_url' ){
            if( isset( $redirection[ $action . '_url' ][ $role ] ) )
                $redirect_to = $redirection[ $action . '_url' ][ $role ];
        }

        return $redirect_to;
    }

    /**
     * Generate activation/deactivation link with or without nonce.
     */
    function userActivationUrl( $action, $userID, $addNonce = true ){
        $url    = admin_url( 'users.php' );
        $url    = add_query_arg( array(
			'action'	=>	$action,
			'user'		=>	$userID
		), $url);

        if( $addNonce )
		  $url  =	wp_nonce_url( $url, 'um_activation' );

        return $url;
    }

    /**
     * Generate activation/deactivation link with or without nonce.
     */
    function emailVerificationUrl( $user ){
        global $userMeta;

        $pageID = $userMeta->getExecutionPage( 'page_id' );

        $hash   = get_user_meta( $user->ID, $userMeta->prefixLong . 'email_verification_code', true );
        if( !$hash ){
            $hash   = wp_generate_password(30, false);
            update_user_meta( $user->ID, $userMeta->prefixLong . 'email_verification_code', $hash );
        }

        $url    = get_permalink( $pageID );
        $url    = add_query_arg( array(
            'email'     => rawurlencode( $user->user_email ),
            'key'		=> rawurlencode( $hash ),
            'action'	=> 'ev',
	), $url);

        return htmlspecialchars_decode( $url );
    }

    /**
     * Generate role based email template
     * @param $slugs : array containing two value without keys. e.g array( 'registration', 'user_email' )
     * @param $data  : array containing data to populate
     * @return html
     */
    function buildRolesEmailTabs( $slugs=array(), $data=array() ){
        global $userMeta;
        $roles  = $userMeta->getRoleList();

        foreach( $roles as $key => $val ){
            $forms[ $key ] = $userMeta->renderPro( 'singleEmailForm', array(
                'slug'      => "{$slugs[0]}[{$slugs[1]}][$key]",
                'from_email'=> @$data[ $slugs[0] ][ $slugs[1] ][ $key ][ 'from_email' ],
                'from_name' => @$data[ $slugs[0] ][ $slugs[1] ][ $key ][ 'from_name' ],
                'format'    => @$data[ $slugs[0] ][ $slugs[1] ][ $key ][ 'format' ],
                'subject'   => @$data[ $slugs[0] ][ $slugs[1] ][ $key ][ 'subject' ],
                'body'      => @$data[ $slugs[0] ][ $slugs[1] ][ $key ][ 'body' ],
                /*'after_form'=> $userMeta->createInput( null, 'checkbox', array(
                                    'label'         => __( 'Copy this form data to all others role', $userMeta->name ),
                                    'enclose'       => 'p',
                                    'onclick'       => 'copyFormData(this)',
                                    'class'         => 'asdf',
                                ) ),  */
            ), 'email' );
        }

        $html = $userMeta->jQueryRolesTab( "{$slugs[0]}-{$slugs[1]}", $roles, $forms );
        $html .= $userMeta->createInput( "{$slugs[0]}[{$slugs[1]}][um_disable]", 'checkbox', array(
            'label'         => __( 'Disable this notification', $userMeta->name ),
            'id'            => "um_{$slugs[0]}_{$slugs[1]}_um_disable",
            'value'         => @$data[ $slugs[0] ][ $slugs[1] ][ 'um_disable' ] ? true : false,
            'enclose'       => 'p',
        ) );

        return $html;
    }

    /**
     * Callback hook for "pre_user_query". Filter users by registration date
     */
    function filterRegistrationDate( $query ){
            global $wpdb;

            if ( ! empty( $_REQUEST['start_date'] ) )
                $query->query_where = $query->query_where . $wpdb->prepare( " AND $wpdb->users.user_registered >= %s", $_REQUEST['start_date'] );

            if ( ! empty( $_REQUEST['end_date'] ) )
                $query->query_where = $query->query_where . $wpdb->prepare( " AND $wpdb->users.user_registered <= %s", $_REQUEST['end_date'] );

            return $query;
    }

    /**
     * Determine execution page name and id
     * @param $target : page_name | page_id
     */
    function getExecutionPage( $target ){
        global $userMeta;

        if( empty( $userMeta->execution_page_name ) ){
            $pageName = apply_filters( 'user_meta_front_execution_page', 'resetpass' );
            $userMeta->execution_page_name = ! empty( $pageName ) ? $pageName : 'resetpass';
        }

        if( $target == 'page_name' )
            return $userMeta->execution_page_name;

        if( $target == 'page_id' ){
            if( empty( $userMeta->execution_page_id ) ){
                $pageID = $userMeta->postIDbyPostName( $userMeta->execution_page_name );
                if( empty( $pageID ) ){
                    $pageID = wp_insert_post( array(
                        'post_title'    => 'Lost password',
                        'post_content'  => 'This page will be use for lost password, reset password and email verification purpose',
                        'post_status'   => 'publish',
                        'post_name'     => $userMeta->execution_page_name,
                        'post_type'     => 'page',
                    ) );
                }
                $userMeta->execution_page_id = $pageID;
            }
            return $userMeta->execution_page_id;
        }
    }

    function loadEncDirectory( $dir ){
        if (!file_exists($dir)) return;
        foreach (scandir($dir) as $item) {
            if( preg_match( "/Encrypted.php$/i" , $item ) ) {
                //$codes = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5(__CLASS__), base64_decode( file_get_contents( $dir . $item ) ), MCRYPT_MODE_CBC, md5(__CLASS__));
                eval( base64_decode( file_get_contents( $dir . $item ) ) );
                $className = str_replace( "Encrypted.php", "", $item );
                if( class_exists( $className ) )
                    $classes[] = new $className;
            }
        }
        return isset( $classes ) ? $classes : false;
    }

}
endif;


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License. See accompanying LICENSE file.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0                       http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.apache.ambari</groupId>
    <artifactId>ambari</artifactId>
    <version>2.5.1.0.0</version>
  </parent>
  <groupId>org.apache.ambari</groupId>
  <artifactId>ambari-project</artifactId>
  <version>2.5.1.0.0</version>
  <description>Apache Ambari Project POM</description>
  <name>Apache Ambari Project POM</name>
  <packaging>pom</packaging>
  <properties>
    <ambari.dir>${project.parent.basedir}</ambari.dir>
    <powermock.version>1.6.3</powermock.version>
    <jetty.version>8.1.19.v20160209</jetty.version>
    <checkstyle.version>6.19</checkstyle.version> <!-- last version that does not require Java 8 -->
    <checkstyle.skip>false</checkstyle.skip>
    <forkCount>4</forkCount>
    <reuseForks>false</reuseForks>
  </properties>
  <profiles>
    <profile>
      <id>dist</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>module-javadocs</id>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <destDir>${project.build.directory}</destDir>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>ambari-java-sources</id>
                <phase>package</phase>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.1</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-csv</artifactId>
        <version>1.1</version>
      </dependency>
      <dependency>
        <groupId>com.google.inject.extensions</groupId>
        <artifactId>guice-servlet</artifactId>
        <version>3.0</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.jettison</groupId>
        <artifactId>jettison</artifactId>
        <version>1.1</version>
      </dependency>
      <dependency>
        <groupId>com.google.inject</groupId>
        <artifactId>guice</artifactId>
        <version>3.0</version>
      </dependency>
      <dependency>
        <groupId>com.google.inject.extensions</groupId>
        <artifactId>guice-assistedinject</artifactId>
        <version>3.0</version>
      </dependency>
      <dependency>
        <groupId>com.google.inject.extensions</groupId>
        <artifactId>guice-persist</artifactId>
        <version>3.0</version>
      </dependency>
      <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.2.2</version>
      </dependency>
      <dependency>
        <groupId>org.apache.derby</groupId>
        <artifactId>derby</artifactId>
        <version>10.12.1.1</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-core</artifactId>
        <version>3.1.2.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-config</artifactId>
        <version>3.1.2.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-web</artifactId>
        <version>3.1.2.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.security.kerberos</groupId>
        <artifactId>spring-security-kerberos-web</artifactId>
        <version>1.0.1.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-mock</artifactId>
        <version>2.0.8</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-ldap</artifactId>
        <version>4.0.4.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.ldap</groupId>
        <artifactId>spring-ldap-core</artifactId>
        <version>2.0.4.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>apacheds-server-annotations</artifactId>
        <version>2.0.0-M19</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>apacheds-core-integ</artifactId>
        <version>2.0.0-M19</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>apacheds-server-integ</artifactId>
        <version>2.0.0-M19</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>apacheds-jdbm</artifactId>
        <version>2.0.0-M5</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>apacheds-kerberos-codec</artifactId>
        <version>2.0.0-M19</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>apacheds-core</artifactId>
        <version>2.0.0-M19</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>kerberos-client</artifactId>
        <version>2.0.0-M19</version>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.server</groupId>
        <artifactId>apacheds-protocol-ldap</artifactId>
        <version>2.0.0-M19</version>
        <exclusions>
          <exclusion>
            <groupId>org.apache.directory.jdbm</groupId>
            <artifactId>apacheds-jdbm1</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.apache.directory.shared</groupId>
        <artifactId>shared-ldap</artifactId>
        <version>0.9.17</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.7.2</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.7.2</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.persistence</groupId>
        <artifactId>eclipselink</artifactId>
        <version>2.6.2</version>
      </dependency>
      <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>9.3-1101-jdbc4</version>
      </dependency>
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>16.0</version>
      </dependency>
      <dependency>
        <groupId>com.google.code.findbugs</groupId>
        <artifactId>jsr305</artifactId>
        <version>1.3.9</version>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>1.10.19</version>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-module-junit4</artifactId>
        <version>${powermock.version}</version>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-api-easymock</artifactId>
        <version>${powermock.version}</version>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-core</artifactId>
        <version>${powermock.version}</version>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-reflect</artifactId>
        <version>${powermock.version}</version>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-api-mockito</artifactId>
        <version>${powermock.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-server</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-security</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-servlet</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-servlets</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-webapp</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jsp-api-2.1-glassfish</artifactId>
        <version>2.1.v20100127</version>
      </dependency>
      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jsp-2.1-glassfish</artifactId>
        <version>2.1.v20100127</version>
      </dependency>
      <dependency>
        <groupId>org.apache.ant</groupId>
        <artifactId>ant</artifactId>
        <version>1.7.1</version>
      </dependency>
      <dependency>
        <groupId>org.apache.ant</groupId>
        <artifactId>ant-launcher</artifactId>
        <version>1.7.1</version>
      </dependency>

      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
      </dependency>
      <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.8</version>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.5</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>3.1.0</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-core</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-grizzly</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-core-asl</artifactId>
        <version>1.9.9</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-jaxrs</artifactId>
        <version>1.9.9</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-xc</artifactId>
        <version>1.9.9</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-mappper</artifactId>
        <version>1.9.9</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-mapper-asl</artifactId>
        <version>1.9.13</version>
      </dependency>
      <dependency>
        <groupId>com.sun.grizzly</groupId>
        <artifactId>grizzly-comet-org.apache.ambari.server.controller.utilities.webserver</artifactId>
        <version>1.9.36</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-bundle</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-json</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-server</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-client</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey.contribs</groupId>
        <artifactId>jersey-multipart</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey.jersey-test-framework</groupId>
        <artifactId>jersey-test-framework-core</artifactId>
        <version>1.19</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey.jersey-test-framework</groupId>
        <artifactId>jersey-test-framework-grizzly2</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>com.sun.jersey.contribs</groupId>
        <artifactId>jersey-guice</artifactId>
        <version>1.19</version>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
        <exclusions>
          <exclusion>
            <groupId>com.sun.jdmk</groupId>
            <artifactId>jmxtools</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.sun.jmx</groupId>
            <artifactId>jmxri</artifactId>
          </exclusion>
          <exclusion>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
          </exclusion>
          <exclusion>
            <groupId>javax.jms</groupId>
            <artifactId>jmx</artifactId>
          </exclusion>
          <exclusion>
            <groupId>javax.jms</groupId>
            <artifactId>jms</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>apache-log4j-extras</artifactId>
        <version>1.2.17</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.10</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.shell</groupId>
        <artifactId>spring-shell</artifactId>
        <version>1.1.0.RC3</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
        <version>1.0.2.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <version>1.0.2.RELEASE</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>2.1.8</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.groovy.modules.http-builder</groupId>
        <artifactId>http-builder</artifactId>
        <version>0.7.1</version>
      </dependency>
      <dependency>
        <groupId>jline</groupId>
        <artifactId>jline</artifactId>
        <version>2.11</version>
      </dependency>
      <dependency>
        <groupId>com.puppycrawl.tools</groupId>
        <artifactId>checkstyle</artifactId>
        <version>${checkstyle.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>2.17</version>
          <configuration>
            <configLocation>${project.basedir}/checkstyle.xml</configLocation>
            <encoding>UTF-8</encoding>
            <consoleOutput>true</consoleOutput>
            <failsOnError>true</failsOnError>
            <linkXRef>false</linkXRef>
            <skip>${checkstyle.skip}</skip>
          </configuration>
          <executions>
            <execution>
              <id>checkstyle</id>
              <phase>test</phase>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
          <dependencies>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>${checkstyle.version}</version>
            </dependency>
            <dependency>
              <groupId>utility</groupId>
              <artifactId>utility</artifactId>
              <version>1.0.0.0-SNAPSHOT</version>
            </dependency>
          </dependencies>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.0</version>
      </plugin>
      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <configuration combine.self="override"/>
        <executions>
          <execution>
            <phase>test</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <reuseForks>${reuseForks}</reuseForks>
          <forkCount>${forkCount}</forkCount>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
          <forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.vafer</groupId>
        <artifactId>jdeb</artifactId>
        <version>1.0.1</version>
        <executions>
          <execution>
            <phase>none</phase>
            <goals>
              <goal>jdeb</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <controlDir>${basedir}/src/main/package/deb/control</controlDir>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>


text:
Core Widgets
============

Some/many of these widgets have restrictions which may restrict the type of page where they may appear or may require login

* clock - displays the current time
    * args: military (1 or 0) - use 24 hour time as opposed to AM/PM

* profile - displays a profile sidebar on pages which load profiles (pages with nickname in the URL)

* tagcloud - display a tagcloud of webpage items

    * args: count - number of items to return (default 24)

* collections - collection selector for the current logged in channel

    * args: mode - one of "conversation", "group", "abook" depending on module

* suggestions - friend suggestions for the current logged on channel

* follow - presents a text box for following another channel

* notes - private notes area for the current logged in channel if private_notes feature is enabled

* savedsearch - network/matrix search with save - must be logged in and savedsearch feature enabled

* filer - select filed items from network/matrix stream - must be logged in

* archive - date range selector for network and channel pages
    * args: 'wall' - 1 or 0, limit to wall posts or network/matrix posts (default)

* fullprofile - same as profile currently

* categories - categories filter (channel page)

* tagcloud_wall - tagcloud for channel page only
    * args: 'limit' - number of tags to return (default 50)

* catcloud_wall - tagcloud for channel page categories
    * args: 'limit' - number of categories to return (default 50)

* affinity - affinity slider for network page - must be logged in

* settings_menu - sidebar menu for settings page, must be logged in

* mailmenu - sidebar menu for private message page - must be logged in

* design_tools - design tools menu for webpage building pages, must be logged in

* findpeople - tools to find other channels

* photo_albums - list photo albums of the current page owner with a selector menu

* vcard - mini profile sidebar for the person of interest (page owner, whatever)

* dirsafemode - directory selection tool - only on directory pages

* dirsort - directory selection tool - only on directory pages

* dirtags - directory tool - only on directory pages

* menu_preview - preview a menu - only on menu edit pages

* chatroom_list - list of chatrooms for the page owner

* bookmarkedchats - list of bookmarked chatrooms collected on this site for the current observer

* suggestedchats - "interesting" chatrooms chosen for the current observer

* item - displays a single webpage item by mid
    * args: mid - message_id of webpage to display

* photo - display a single photo
    * args:
    * url - URL of photo, must be http or https
    * zrl - use zid authenticated link
    * style - CSS style string

* photo_rand - display a random photo from one of your photo albums. Photo permissions are honoured
    * args:
    * album - album name (very strongly recommended if you have lots of photos)
    * scale - typically 0 (original size), 1 (640px), or 2 (320px)
    * style - CSS style string
	* channel_id - if not your own

* random_block - display a random block element from your webpage design tools collection. Permissions are honoured.
    * args:
    * contains - only return blocks which include the contains string in the block name
    * channel_id - if not your own

Creating New Widgets
====================

If you want a widget named 'slugfish', create widget/slugfish.php containing

    <?php

    function widget_slugfish($args) {

    .. widget code goes here

    }

#include doc/macros/main_footer.bb;


text:
import React from 'react'
import { renderToString } from 'react-dom/server'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import counterReducer from './reducer'

import Counter from './counter'
import styleCollector from '../../style-loader/style-collector'

let initState = {
	cnt: 3
}
let store = createStore(counterReducer, initState)
let initialState = store.getState()
console.dir('initialState', initialState)

let CounterEle = (
	<Provider store={store}>
		<Counter />
	</Provider>
)

let wholePage = (scriptPath) => {

  let style = styleCollector.collect()
  console.log('[page]', style)
  let html = renderToString( CounterEle )

//使用es6模板字符串,将参数代入html
  return (
  `

        <title>React Server Side</title>

${html}

    `
  )
}

module.exports = wholePage


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Ber. naturw. Augsburg 4: 122 (1885)

#### Original name
Cortinarius fraudulosus Britzelm.

### Remarks
null