text:
package y2013;

/**
 *
 */
import java.util.*;
import java.io.*;

/**
 * @author Powell Hazzard
 * HP
 *
 */
public class prob17 {

	/**
	 * @param args
	 */
	static HashMap<String, ArrayList<String>> dict = new
			HashMap<String, ArrayList<String>>();

	public static String removeVowels(String word) {
		String retKey = "";
		for (int i=0; i< word.length(); i++) {
			char checkChar = word.charAt(i);
			switch (checkChar) {
				case 'E':
				case 'I':
				case 'O':
				case 'U':
				case 'A': continue;

				default: retKey += checkChar;
			}

		}
		return retKey;

	}
	public static String getVowels(String word) {
		String retKey = "";
		for (int i=0; i< word.length(); i++) {
			char checkChar = word.charAt(i);
			switch (checkChar) {
				case 'e':
				case 'i':
				case 'o':
				case 'u':
				case 'a': retKey += checkChar;
					continue;

				default:  continue;
			}

		}
		return retKey;

	}
	public static boolean matchFound(String in){

			return dict.containsKey(removeVowels(in));

	}

	public static ArrayList<String> getDictList(String key) {

		return dict.get(key);

	}

	public static void storeWord (String in) {

		String key = removeVowels(in);
		ArrayList<String> list ;
// System.out.println(key);
		if (matchFound(in)) {
			// dup found add
			list = getDictList(key);
		} else {
			// first time
			list = new ArrayList<String>();
			dict.put(key, list);
		}
		list.add(in);
	}

	public static void parseWordList(String in) throws IOException {
		BufferedReader br = new BufferedReader (new FileReader(in));

		String strLine;

		while ((strLine = br.readLine()) != null) {
// System.out.println(strLine.toUpperCase());
			storeWord(strLine.toUpperCase());
		}
		br.close();
	}
	public static boolean checkVowelMatch(String word, String vowelList) {

		for (int i=0; i< vowelList.length(); i++) {
			if (word.indexOf(""+vowelList.charAt(i)) == -1)
				return false;
		}
		return true;

	}

	public static void main(String[] args) throws Exception {
		// TODO Auto-generated method stub

		parseWordList("wordlist.txt");

		BufferedReader inbr = new BufferedReader (new FileReader("prob17.in"));
		String inLine;

		while ((inLine = inbr.readLine()) != null) {
			if (inLine.startsWith(">>>>>"))
				break; // end of input file

			String[] words = inLine.split(" ");
			boolean beginLine = true;

			for (int i=0; i< words.length; i++) {
				if (!matchFound(words[i])) {
					System.out.print("?CODE?");
					beginLine = false;
				} else {
					ArrayList<String> list = getDictList(removeVowels(words[i]));
					int count = 0;
		//			boolean many = (list.size() > 1) ? true : false;
					String outStr = "";

					for (String temp: list) {
						if (count >0 )
							outStr +="/";
						if (!checkVowelMatch(temp,getVowels(temp)))
							continue;
						outStr += temp;
						count++;

					}
					if (!beginLine)
						System.out.print(" ");

					if (count > 1)
						System.out.print("?"+outStr+"?");
					else
						System.out.print(outStr);
					if (count==0)
						System.out.print("?CODE?");  // safety check
					beginLine = false;
				}

			}
			System.out.println();

		}
		inbr.close();

	}

}


text:
import json
from twisted.trial import unittest
from twisted.internet import defer
from twisted.application import service
from ..servers.relay import RelayServer
from ..twisted.transcribe import SymmetricWormhole, UsageError
from ..twisted.util import allocate_ports
from .. import __version__
#from twisted.python import log
#import sys
#log.startLogging(sys.stdout)

class Basic(unittest.TestCase):
    def setUp(self):
        self.sp = service.MultiService()
        self.sp.startService()
        d = allocate_ports()
        def _got_ports(ports):
            relayport, transitport = ports
            s = RelayServer("tcp:%d:interface=127.0.0.1" % relayport,
                            "tcp:%s:interface=127.0.0.1" % transitport,
                            __version__)
            s.setServiceParent(self.sp)
            self.relayurl = "http://127.0.0.1:%d/wormhole-relay/" % relayport
            self.transit = "tcp:127.0.0.1:%d" % transitport
        d.addCallback(_got_ports)
        return d

    def tearDown(self):
        return self.sp.stopService()

    def test_basic(self):
        appid = "appid"
        w1 = SymmetricWormhole(appid, self.relayurl)
        w2 = SymmetricWormhole(appid, self.relayurl)
        d = w1.get_code()
        def _got_code(code):
            w2.set_code(code)
            d1 = w1.get_data("data1")
            d2 = w2.get_data("data2")
            return defer.DeferredList([d1,d2], fireOnOneErrback=False)
        d.addCallback(_got_code)
        def _done(dl):
            ((success1, dataX), (success2, dataY)) = dl
            r1,r2 = dl
            self.assertTrue(success1)
            self.assertTrue(success2)
            self.assertEqual(dataX, "data2")
            self.assertEqual(dataY, "data1")
        d.addCallback(_done)
        return d

    def test_fixed_code(self):
        appid = "appid"
        w1 = SymmetricWormhole(appid, self.relayurl)
        w2 = SymmetricWormhole(appid, self.relayurl)
        w1.set_code("123-purple-elephant")
        w2.set_code("123-purple-elephant")
        d1 = w1.get_data("data1")
        d2 = w2.get_data("data2")
        d = defer.DeferredList([d1,d2], fireOnOneErrback=False)
        def _done(dl):
            ((success1, dataX), (success2, dataY)) = dl
            r1,r2 = dl
            self.assertTrue(success1)
            self.assertTrue(success2)
            self.assertEqual(dataX, "data2")
            self.assertEqual(dataY, "data1")
        d.addCallback(_done)
        return d

    def test_errors(self):
        appid = "appid"
        w1 = SymmetricWormhole(appid, self.relayurl)
        self.assertRaises(UsageError, w1.get_verifier)
        self.assertRaises(UsageError, w1.get_data, "data")
        w1.set_code("123-purple-elephant")
        self.assertRaises(UsageError, w1.set_code, "123-nope")
        self.assertRaises(UsageError, w1.get_code)
        w2 = SymmetricWormhole(appid, self.relayurl)
        d = w2.get_code()
        self.assertRaises(UsageError, w2.get_code)
        return d

    def test_serialize(self):
        appid = "appid"
        w1 = SymmetricWormhole(appid, self.relayurl)
        self.assertRaises(UsageError, w1.serialize) # too early
        w2 = SymmetricWormhole(appid, self.relayurl)
        d = w1.get_code()
        def _got_code(code):
            self.assertRaises(UsageError, w2.serialize) # too early
            w2.set_code(code)
            w2.serialize() # ok
            s = w1.serialize()
            self.assertEqual(type(s), type(""))
            unpacked = json.loads(s) # this is supposed to be JSON
            self.assertEqual(type(unpacked), dict)
            new_w1 = SymmetricWormhole.from_serialized(s)
            d1 = new_w1.get_data("data1")
            d2 = w2.get_data("data2")
            return defer.DeferredList([d1,d2], fireOnOneErrback=False)
        d.addCallback(_got_code)
        def _done(dl):
            ((success1, dataX), (success2, dataY)) = dl
            r1,r2 = dl
            self.assertTrue(success1)
            self.assertTrue(success2)
            self.assertEqual(dataX, "data2")
            self.assertEqual(dataY, "data1")
            self.assertRaises(UsageError, w2.serialize) # too late
        d.addCallback(_done)
        return d

redpajama_set_name: RedPajamaGithub


text:
using System.Collections.Generic;

namespace Umbraco.Core.Events
{
    public class SaveEventArgs<TEntity> : CancellableEnumerableObjectEventArgs<TEntity>
    {
        /// <summary>
        /// Constructor accepting multiple entities that are used in the saving operation
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="canCancel"></param>
        /// <param name="messages"></param>
        /// <param name="additionalData"></param>
        public SaveEventArgs(IEnumerable<TEntity> eventObject, bool canCancel, EventMessages messages, IDictionary<string, object> additionalData)
            : base(eventObject, canCancel, messages, additionalData)
        {
        }

        /// <summary>
        /// Constructor accepting multiple entities that are used in the saving operation
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="canCancel"></param>
        /// <param name="eventMessages"></param>
        public SaveEventArgs(IEnumerable<TEntity> eventObject, bool canCancel, EventMessages eventMessages)
            : base(eventObject, canCancel, eventMessages)
        {
        }

        /// <summary>
        /// Constructor accepting multiple entities that are used in the saving operation
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="eventMessages"></param>
        public SaveEventArgs(IEnumerable<TEntity> eventObject, EventMessages eventMessages)
            : base(eventObject, eventMessages)
        {
        }

        /// <summary>
        /// Constructor accepting a single entity instance
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="canCancel"></param>
        /// <param name="messages"></param>
        /// <param name="additionalData"></param>
        public SaveEventArgs(TEntity eventObject, bool canCancel, EventMessages messages, IDictionary<string, object> additionalData)
            : base(new List<TEntity> { eventObject }, canCancel, messages, additionalData)
        {
        }

        /// <summary>
        /// Constructor accepting a single entity instance
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="eventMessages"></param>
        public SaveEventArgs(TEntity eventObject, EventMessages eventMessages)
            : base(new List<TEntity> { eventObject }, eventMessages)
        {
        }

        /// <summary>
        /// Constructor accepting a single entity instance
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="canCancel"></param>
        /// <param name="eventMessages"></param>
        public SaveEventArgs(TEntity eventObject, bool canCancel, EventMessages eventMessages)
            : base(new List<TEntity> { eventObject }, canCancel, eventMessages)
        {
        }

        /// <summary>
        /// Constructor accepting multiple entities that are used in the saving operation
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="canCancel"></param>
        public SaveEventArgs(IEnumerable<TEntity> eventObject, bool canCancel)
            : base(eventObject, canCancel)
        {
        }

        /// <summary>
        /// Constructor accepting multiple entities that are used in the saving operation
        /// </summary>
        /// <param name="eventObject"></param>
        public SaveEventArgs(IEnumerable<TEntity> eventObject)
            : base(eventObject)
        {
        }

        /// <summary>
        /// Constructor accepting a single entity instance
        /// </summary>
        /// <param name="eventObject"></param>
        public SaveEventArgs(TEntity eventObject)
            : base(new List<TEntity> { eventObject })
        {
        }

        /// <summary>
        /// Constructor accepting a single entity instance
        /// </summary>
        /// <param name="eventObject"></param>
        /// <param name="canCancel"></param>
        public SaveEventArgs(TEntity eventObject, bool canCancel)
            : base(new List<TEntity> { eventObject }, canCancel)
        {
        }

        /// <summary>
        /// Returns all entities that were saved during the operation
        /// </summary>
        public IEnumerable<TEntity> SavedEntities => EventObject;
    }
}


text:
module Fastlane
  module Actions
    class SetupCircleCiAction < Action
      def self.run(params)
        unless should_run?(params)
          UI.message("Not running on CI, skipping `setup_circle_ci`")
          return
        end

        setup_keychain
        setup_output_paths(params)
      end

      def self.setup_output_paths(params)
        unless ENV["FL_OUTPUT_DIR"]
          UI.message("Skipping Log Path setup as FL_OUTPUT_DIR is unset")
          return
        end

        root = Pathname.new(ENV["FL_OUTPUT_DIR"])
        ENV["SCAN_OUTPUT_DIRECTORY"] = (root + "scan").to_s
        ENV["GYM_OUTPUT_DIRECTORY"] = (root + "gym").to_s
        ENV["FL_BUILDLOG_PATH"] = (root + "buildlogs").to_s
        ENV["SCAN_INCLUDE_SIMULATOR_LOGS"] = true.to_s
      end

      def self.setup_keychain
        unless ENV["MATCH_KEYCHAIN_NAME"].nil?
          UI.message("Skipping Keychain setup as a keychain was already specified")
          return
        end

        keychain_name = "fastlane_tmp_keychain"
        ENV["MATCH_KEYCHAIN_NAME"] = keychain_name
        ENV["MATCH_KEYCHAIN_PASSWORD"] = ""

        UI.message("Creating temporary keychain: \"#{keychain_name}\".")
        Actions::CreateKeychainAction.run(
          name: keychain_name,
          default_keychain: true,
          unlock: true,
          timeout: 3600,
          lock_when_sleeps: true,
          password: ""
        )

        UI.message("Enabling match readonly mode.")
        ENV["MATCH_READONLY"] = true.to_s
      end

      def self.should_run?(params)
        Helper.is_ci? || params[:force]
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Setup the keychain and match to work with CircleCI"
      end

      def self.details
        [
          "- Creates a new temporary keychain for use with match",
          "- Switches match to `readonly` mode to not create new profiles/cert on CI",
          "- Sets up log and test result paths to be easily collectible",
          "",
          "This action helps with CircleCI integration, add this to the top of your Fastfile if you use CircleCI"
        ].join("\n")
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :force,
                                       env_name: "FL_SETUP_CIRCLECI_FORCE",
                                       description: "Force setup, even if not executed by CircleCI",
                                       is_string: false,
                                       default_value: false)
        ]
      end

      def self.authors
        ["dantoml"]
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?(platform)
      end

      def self.example_code
        [
          'setup_circle_ci'
        ]
      end

      def self.category
        :misc
      end
    end
  end
end


text:
package org.takes.misc;

import java.text.SimpleDateFormat;
import java.util.Locale;
import java.util.TimeZone;

/**
 * Expiration date in GMT.
 *
 * @since 2.0
 */
public interface Expires {

    /**
     * String representation of expiration time.
     * @return Representation of expirate time.
     */
    String print();

    /**
     * Never expires.
     *
     * @since 2.0
     */
    final class Never implements Expires {

        /**
         * Original time.
         */
        private final Expires origin;

        /**
         * Constructor.
         */
        Never() {
            this.origin = new Date(0L);
        }

        @Override
        public String print() {
            return this.origin.print();
        }
    }

    /**
     * Already expired. Returns "0" according to RFC7234.
     *
     * @since 2.0
     */
    final class Expired implements Expires {
        @Override
        public String print() {
            return "Expires=0";
        }
    }

    /**
     * Expires in one hour of the given time.
     *
     * @since 2.0
     */
    final class Hour implements Expires {

        /**
         * Original time.
         */
        private final Expires origin;

        /**
         * Constructor.
         * @param origin Original time
         */
        Hour(final Expires origin) {
            this.origin = origin;
        }

        @Override
        public String print() {
            return this.origin.print();
        }
    }

    /**
     * Expiration date in GMT.
     *
     * @since 2.0
     */
    final class Date implements Expires {

        /**
         * DateFormat for expiration.
         */
        private final ThreadLocal<SimpleDateFormat> format;

        /**
         * Expires date.
         */
        private final java.util.Date expires;

        /**
         * Ctor.
         *
         *
Will create instance with default format pattern.

         * @param expiration Expiration in millis
         */
        public Date(final long expiration) {
            this("'Expires='EEE, dd MMM yyyy HH:mm:ss z", expiration);
        }

        /**
         * Ctor.
         * @param ptn Date format pattern
         * @param expiration Expiration in millis
         */
        public Date(final String ptn, final long expiration) {
            this(ptn, Locale.ENGLISH, expiration);
        }

        /**
         * Ctor.
         * @param ptn Date format pattern
         * @param locale Locale
         * @param expiration Expiration in millis
         */
        public Date(final String ptn, final Locale locale,
            final long expiration) {
            this(ptn, locale, new java.util.Date(expiration));
        }

        /**
         * Ctor.
         * @param ptn Date format pattern
         * @param locale Locale
         * @param expires Date when expires
         */
        public Date(final String ptn, final Locale locale,
            final java.util.Date expires) {
            this.format = ThreadLocal.withInitial(
                () -> new SimpleDateFormat(ptn, locale)
            );
            this.expires = new java.util.Date(expires.getTime());
        }

        @Override
        public String print() {
            final SimpleDateFormat fmt = this.format.get();
            fmt.setTimeZone(TimeZone.getTimeZone("GMT"));
            return fmt.format(this.expires);
        }
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Sydowia 15: 215 (1961)

#### Original name
Phyllosticta tragii Bubák

### Remarks
null


text: SELECT func1_sql_setint_stb(func2_sql_int_vol(5)) FROM foo order by 1;


text:
using System;
using System.IO;
using System.Reflection;
using NUnit.Core;
using NUnit.Util;

namespace NUnit.ConsoleRunner
{
	/// <summary>
	/// Summary description for Runner.
	/// </summary>
	public class Runner
	{
		static Logger log = InternalTrace.GetLogger(typeof(Runner));

		[STAThread]
		public static int Main(string[] args)
		{
			ConsoleOptions options = new ConsoleOptions(args);

            // Create SettingsService early so we know the trace level right at the start
            SettingsService settingsService = new SettingsService();
            InternalTraceLevel level = (InternalTraceLevel)settingsService.GetSetting("Options.InternalTraceLevel", InternalTraceLevel.Default);
            if (options.trace != InternalTraceLevel.Default)
                level = options.trace;

            InternalTrace.Initialize("nunit-console_%p.log", level);

            log.Info("NUnit-console.exe starting");

			if(!options.nologo)
				WriteCopyright();

			if(options.help)
			{
				options.Help();
				return ConsoleUi.OK;
			}

            if (options.cleanup)
            {
                log.Info("Performing cleanup of shadow copy cache");
                DomainManager.DeleteShadowCopyPath();
                Console.WriteLine("Shadow copy cache emptied");
                return ConsoleUi.OK;
            }

            if (options.NoArgs)
			{
				Console.Error.WriteLine("fatal error: no inputs specified");
				options.Help();
				return ConsoleUi.OK;
			}

			if(!options.Validate())
			{
				foreach( string arg in options.InvalidArguments )
					Console.Error.WriteLine("fatal error: invalid argument: {0}", arg );
				options.Help();
				return ConsoleUi.INVALID_ARG;
			}

			// Add Standard Services to ServiceManager
			ServiceManager.Services.AddService( settingsService );
			ServiceManager.Services.AddService( new DomainManager() );
			//ServiceManager.Services.AddService( new RecentFilesService() );
			ServiceManager.Services.AddService( new ProjectService() );
			//ServiceManager.Services.AddService( new TestLoader() );
			ServiceManager.Services.AddService( new AddinRegistry() );
			ServiceManager.Services.AddService( new AddinManager() );
            ServiceManager.Services.AddService( new TestAgency() );

			// Initialize Services
			ServiceManager.Services.InitializeServices();

            foreach (string parm in options.Parameters)
            {
                if (!Services.ProjectService.CanLoadProject(parm) && !PathUtils.IsAssemblyFileType(parm))
                {
                    Console.WriteLine("File type not known: {0}", parm);
                    return ConsoleUi.INVALID_ARG;
                }
            }

			try
			{
				ConsoleUi consoleUi = new ConsoleUi();
				return consoleUi.Execute( options );
			}
			catch( FileNotFoundException ex )
			{
				Console.WriteLine( ex.Message );
				return ConsoleUi.FILE_NOT_FOUND;
			}
			catch( Exception ex )
			{
				Console.WriteLine( "Unhandled Exception:\n{0}", ex.ToString() );
				return ConsoleUi.UNEXPECTED_ERROR;
			}
			finally
			{
				if(options.wait)
				{
					Console.Out.WriteLine("\nHit <enter> key to continue");
					Console.ReadLine();
				}

				log.Info( "NUnit-console.exe terminating" );
			}

		}

		private static void WriteCopyright()
		{
			Assembly executingAssembly = Assembly.GetExecutingAssembly();
			string versionText = executingAssembly.GetName().Version.ToString();

#if CLR_1_0
            string productName = "NUnit-Console (.NET 1.0)";
#elif CLR_1_1
            string productName = "NUnit-Console (.NET 1.1)";
#else
            string productName = "NUnit-Console";
#endif
            string copyrightText = "Copyright (C) 2002-2012 Charlie Poole.\r\nCopyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.\r\nCopyright (C) 2000-2002 Philip Craig.\r\nAll Rights Reserved.";

            //object[] objectAttrs = executingAssembly.GetCustomAttributes(typeof(AssemblyProductAttribute), false);
            //if ( objectAttrs.Length > 0 )
            //    productName = ((AssemblyProductAttribute)objectAttrs[0]).Product;

			object[] objectAttrs = executingAssembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
			if ( objectAttrs.Length > 0 )
				copyrightText = ((AssemblyCopyrightAttribute)objectAttrs[0]).Copyright;

			objectAttrs = executingAssembly.GetCustomAttributes(typeof(AssemblyConfigurationAttribute), false);
            if (objectAttrs.Length > 0)
            {
                string configText = ((AssemblyConfigurationAttribute)objectAttrs[0]).Configuration;
                if (configText != "")
                    versionText += string.Format(" ({0})", configText);
            }

			Console.WriteLine(String.Format("{0} version {1}", productName, versionText));
			Console.WriteLine(copyrightText);
			Console.WriteLine();

			Console.WriteLine( "Runtime Environment - " );
			RuntimeFramework framework = RuntimeFramework.CurrentFramework;
			Console.WriteLine( string.Format("   OS Version: {0}", Environment.OSVersion ) );
			Console.WriteLine( string.Format("  CLR Version: {0} ( {1} )",
				Environment.Version,  framework.DisplayName ) );

			Console.WriteLine();
		}
	}
}


text:
package us.koller.cameraroll.adapter.album.viewHolder;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.DataSource;
import com.bumptech.glide.load.engine.GlideException;
import com.bumptech.glide.load.resource.gif.GifDrawable;
import com.bumptech.glide.request.RequestListener;
import com.bumptech.glide.request.RequestOptions;
import com.bumptech.glide.request.target.Target;

import us.koller.cameraroll.R;
import us.koller.cameraroll.data.models.AlbumItem;

public class GifViewHolder extends AlbumItemHolder {

    public GifViewHolder(View itemView) {
        super(itemView);
    }

    @Override
    int getIndicatorDrawableResource() {
        return R.drawable.gif_indicator;
    }

    @Override
    public void loadImage(final ImageView imageView, final AlbumItem albumItem) {
        //super.loadImage(imageView, albumItem);

        RequestOptions options = new RequestOptions()
                .error(R.drawable.error_placeholder)
                .signature(albumItem.getGlideSignature());

        Glide.with(imageView.getContext())
                .asGif()
                .load(albumItem.getPath())
                .listener(new RequestListener<GifDrawable>() {
                    @Override
                    public boolean onLoadFailed(@Nullable GlideException e, Object model,
                                                Target<GifDrawable> target, boolean isFirstResource) {
                        return false;
                    }

                    @Override
                    public boolean onResourceReady(GifDrawable resource, Object model, Target<GifDrawable> target,
                                                   DataSource dataSource, boolean isFirstResource) {
                        if (!albumItem.hasFadedIn) {
                            fadeIn();
                        } else {
                            imageView.clearColorFilter();
                        }
                        resource.start();
                        return false;
                    }
                })
                .apply(options)
                .into(imageView);
    }
}


text:
<!--
  ~ Copyright (c) 2015. 2Lines Software,Inc
  ~
  ~   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.
  -->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.TutorialActivity">

     <android.support.v4.view.ViewPager
        android:id="@+id/view_pager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="?android:attr/listPreferredItemHeightLarge"
        android:layout_marginBottom="@dimen/content_margins_half"
        android:layout_alignParentBottom="true">

        <Button
            android:id="@+id/button_skip"
            android:layout_gravity="center"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:padding="@dimen/content_margins_half"
            android:background="@android:color/transparent"
            android:text="@string/tutorial_skip" />

        <com.viewpagerindicator.CirclePageIndicator
            android:id="@+id/viewpager_indicator"
            android:layout_height="wrap_content"
            android:layout_width="0dp"
            android:layout_gravity="center"
            android:layout_weight="1"
            />

        <Button
            android:id="@+id/button_next"
            android:layout_gravity="center"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:padding="@dimen/content_margins_half"
            android:background="@android:color/transparent"
            android:text="@string/tutorial_nextdone" />

    </LinearLayout>

</RelativeLayout>


text:
package com.sqe.shop.util;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.util.Assert;

public class SpringContextUtil implements ApplicationContextAware {

	private static ApplicationContext applicationContext;

	/**
	 * 实现ApplicationContextAware接口的context注入函数, 将其存入静态变量.
	 */

	public void setApplicationContext(ApplicationContext applicationContext)
			throws BeansException {
		SpringContextUtil.applicationContext = applicationContext;
	}

	/**
	 * 取得存储在静态变量中的ApplicationContext.
	 */
	public static ApplicationContext getContext() {
		checkApplicationContext();
		return applicationContext;
	}

	/**
	 * 从静态变量ApplicationContext中取得Bean, 自动转型为所赋值对象的类型.
	 */
	@SuppressWarnings("unchecked")
	public static <T> T getBean(String name) {
		checkApplicationContext();
		return (T) applicationContext.getBean(name);
	}

	/**
	 * 从静态变量ApplicationContext中取得Bean, 自动转型为所赋值对象的类型.
	 */
	@SuppressWarnings("unchecked")
	public static <T> T getBean(Class<T> clazz) {
		checkApplicationContext();
		return (T) applicationContext.getBeansOfType(clazz);
	}

	private static void checkApplicationContext() {
		Assert.notNull(applicationContext,
				"applicaitonContext未注入,请在applicationContext.xml中定义SpringContextUtil");
	}
}


text:
<?php

// referrer check
$referrerHost = parse_url($_SERVER["HTTP_REFERER"], PHP_URL_HOST);
if($_SERVER["HTTP_HOST"] != $referrerHost) {
    die("Permission denied");
}

// this file doesn't boot the pimcore core for performance reasons
ini_set("display_errors", "Off");
include_once("../../../../lib/geoip2.phar");

use GeoIp2\Database\Reader;

$geoDbFile = realpath("../../../../../website/var/config/GeoLite2-City.mmdb");
$exception = "";
$record = null;

if(file_exists($geoDbFile)) {
    try {
        $reader = new Reader($geoDbFile);

        if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
            $ip = $_SERVER['HTTP_CLIENT_IP'];
        } else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
            $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
        } else {
            $ip = $_SERVER['REMOTE_ADDR'];
        }
        $record = $reader->city($ip);
    } catch (\Exception $e) {
        $exception = $e->getMessage();
    }

}

header("Content-Type: text/javascript");

$lifetime = 86400 * 365 * 2; // 2 years lifetime
header("Cache-Control: public, max-age=" . $lifetime);
header("Expires: ". date("D, d M Y H:i:s T", time()+$lifetime));

?>

var pimcore = pimcore || {};
pimcore["location"] = {
<?php if($record) { ?>
    ip: "<?= $ip ?>",
    latitude: <?= $record->location->latitude ?>,
    longitude: <?= $record->location->longitude ?>,
    country: {
        code: "<?= $record->country->isoCode ?>",
        name: "<?= $record->country->name ?>",
        names: <?= json_encode($record->country->names) ?>,
        subDivision: "<?= $record->mostSpecificSubdivision->name ?>"
    },
    address: {
        postalCode: "<?= $record->postal->code ?>",
        city: "<?= $record->city->name ?>"
    }
<?php } else { ?>
    error: "<?= $exception ?>"
<?php } ?>
};


text:
@implementation Validate

// 邮箱
+ (BOOL)validateEmail:(NSString *)email
{
    NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
    NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
    return [emailTest evaluateWithObject:email];
}

// 手机号码验证
+ (BOOL)validateMobile:(NSString *)str
{
    // NSString *regex = @"^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$";
    NSString *regex = @"^[0-9]{11}";
    NSPredicate *pred = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
    return [pred evaluateWithObject:str];
}

// 用户名
+ (BOOL)validateUserName:(NSString *)name
{
    NSString *userNameRegex = @"^[A-Za-z0-9]{2,20}+$";
    NSPredicate *userNamePredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",userNameRegex];
    return [userNamePredicate evaluateWithObject:name];
}

// 密码
+ (BOOL)validatePassword:(NSString *)passWord
{
    NSString *passWordRegex = @"^[a-zA-Z0-9]{6,20}+$";
    NSPredicate *passWordPredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",passWordRegex];
    return [passWordPredicate evaluateWithObject:passWord];
}

// 昵称
+ (BOOL)validateNickname:(NSString *)nickname
{
    NSString *nicknameRegex = @"^[a-zA-Z0-9\u4e00-\u9fa5]{2,8}$";
    NSPredicate *passWordPredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",nicknameRegex];
    return [passWordPredicate evaluateWithObject:nickname];
}

// 纯数字
+ (BOOL)validateNumber:(NSString *)numberString
{
    NSString *numberRegex = @"^[0-9]+$";
    NSPredicate *numberPre = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",numberRegex];
    return [numberPre evaluateWithObject:numberString];
}

// 纯英文
+ (BOOL)validateEnglish:(NSString *)english
{
    NSString *englishRegex = @"^[A-Za-z]+$";
    NSPredicate *userNamePredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",englishRegex];
    return [userNamePredicate evaluateWithObject:english];
}

/// 座机号码
+ (BOOL)validatePhoneNumber:(NSString *)string
{
    NSString *number = @"^(\\d{3,4}-)\\d{7,8}$";
    NSPredicate *numberPre = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",number];
    return [numberPre evaluateWithObject:string];
}

/// 整数或小数
+ (BOOL)validateIntOrDouble:(NSString *)string
{
    NSString *number = @"^[0-9]+([.]{0,1}[0-9]+){0,1}$";
    NSPredicate *numberPre = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",number];
    return [numberPre evaluateWithObject:string];
}

// 验证是否填写
+ (BOOL)validateInfoWrite:(NSString *)string
{
    if ([[string stringByReplacingOccurrencesOfString:@" " withString:@""] length] == 0) {
        return NO;
    }
    return YES;
}

@end


text:
.class final Lcom/zte/fingerprint/RectParcelable$1;
.super Ljava/lang/Object;
.source "RectParcelable.java"

# interfaces
.implements Landroid/os/Parcelable$Creator;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/zte/fingerprint/RectParcelable;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/os/Parcelable$Creator",
        "<",
        "Lcom/zte/fingerprint/RectParcelable;",
        ">;"
    }
.end annotation

# direct methods
.method constructor <init>()V
    .locals 0

    .prologue
    .line 42
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

# virtual methods
.method public createFromParcel(Landroid/os/Parcel;)Lcom/zte/fingerprint/RectParcelable;
    .locals 2
    .param p1, "in"    # Landroid/os/Parcel;

    .prologue
    .line 46
    new-instance v0, Lcom/zte/fingerprint/RectParcelable;

    const/4 v1, 0x0

    invoke-direct {v0, p1, v1}, Lcom/zte/fingerprint/RectParcelable;-><init>(Landroid/os/Parcel;Lcom/zte/fingerprint/RectParcelable$1;)V

    return-object v0
.end method

.method public bridge synthetic createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
    .locals 1

    .prologue
    .line 42
    invoke-virtual {p0, p1}, Lcom/zte/fingerprint/RectParcelable$1;->createFromParcel(Landroid/os/Parcel;)Lcom/zte/fingerprint/RectParcelable;

    move-result-object v0

    return-object v0
.end method

.method public newArray(I)[Lcom/zte/fingerprint/RectParcelable;
    .locals 1
    .param p1, "size"    # I

    .prologue
    .line 52
    new-array v0, p1, [Lcom/zte/fingerprint/RectParcelable;

    return-object v0
.end method

.method public bridge synthetic newArray(I)[Ljava/lang/Object;
    .locals 1

    .prologue
    .line 42
    invoke-virtual {p0, p1}, Lcom/zte/fingerprint/RectParcelable$1;->newArray(I)[Lcom/zte/fingerprint/RectParcelable;

    move-result-object v0

    return-object v0
.end method


text:
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.3.6-4-436
description: >
    ES5 Attributes - fail to update [[Set]] attribute of accessor
    property ([[Get]] is undefined, [[Set]] is undefined,
    [[Enumerable]] is true, [[Configurable]] is false) to different
    value
---*/

        var obj = {};
        var verifySetFunc = "data";
        var setFunc = function (value) {
            verifySetFunc = value;
        };

        Object.defineProperty(obj, "prop", {
            get: undefined,
            set: undefined,
            enumerable: true,
            configurable: false
        });

        var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
            Object.defineProperty(obj, "prop", {
                set: setFunc
            });
});
            var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set');
assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set');


text:
package me.raino.commons;

import java.util.logging.Level;
import java.util.logging.Logger;

import org.apache.commons.lang.exception.ExceptionUtils;
import org.bukkit.plugin.Plugin;

public final class Log {

    private static Logger log;

    private static boolean debug = false;

    public static void log(Level level, String message, Object... arguments) {
        Validate.notNull(level, "level cannot be null");
        Validate.notNull(message, "message cannot be null");
        log.log(level, Txt.parse(message, arguments));
    }

    public static void exception(Exception e) {
        Validate.notNull(e, "e cannot be null");
        warning(ExceptionUtils.getFullStackTrace(e));
    }

    public static void info(String message, Object... arguments) {
        log(Level.INFO, message, arguments);
    }

    public static void warning(String message, Object... arguments) {
        log(Level.WARNING, message, arguments);
    }

    public static void severe(String message, Object... arguments) {
        log(Level.SEVERE, message, arguments);
    }

    public static void debug(String message, Object... arguments) {
        if (debug)
            info("[DEBUG] " + message, arguments);
    }

    public static void debug(boolean debug) {
        Validate.notNull(debug, "debug");
        Log.debug = debug;
    }

    public static void init(Plugin plugin) {
        Validate.notNull(plugin, "plugin");
        Log.log = plugin.getLogger();
    }

    public static void init(Plugin plugin, boolean debug) {
        debug(debug);
    }

    private Log() {}

}


text:
package progen.kernel.functions;

import org.junit.Before;
import org.junit.Test;
import progen.kernel.functions.BitMult;
import progen.kernel.functions.IntM;
import progen.kernel.functions.IntN;
import progen.kernel.functions.NonTerminal;
import progen.kernel.grammar.GrammarNonTerminalSymbol;
import progen.kernel.grammar.GrammarTerminalSymbol;
import progen.kernel.tree.Node;
import progen.userprogram.UserProgram;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
 * @author jirsis
 * @since 2.0
 */
public class BitMultTest {

  private BitMult mult;

  @Before
  public void setUp() {
    mult = new BitMult();
  }

  @Test
  public void andTest() {
    assertTrue(mult instanceof NonTerminal);
    assertEquals(2, mult.getArity());
    assertEquals("int", mult.getReturnType());
    assertEquals("int$$int$$int", mult.getSignature());
    assertEquals("*", mult.getSymbol());

  }

  @Test
  public void evaluateTest() {
    List<Node> arguments = new ArrayList<Node>();
    UserProgram userProgram = null;
    HashMap<String, Object> returnAddr = null;

    Node a = new Node(new GrammarNonTerminalSymbol("Ax", mult.getReturnType().toString()));
    Node b = new Node(new GrammarNonTerminalSymbol("Ax", mult.getReturnType().toString()));

    IntN x = new IntN();
    x.setValue(0x12);
    GrammarTerminalSymbol x12 = new GrammarTerminalSymbol(x);
    IntM y = new IntM();
    y.setValue(0x11);
    GrammarTerminalSymbol x11 = new GrammarTerminalSymbol(y);
    IntM z = new IntM();
    z.setValue(0x0);
    GrammarTerminalSymbol x0 = new GrammarTerminalSymbol(z);

    arguments.add(a);
    arguments.add(b);

    //0x11 * 0x12
    a.setFunction(x11);
    b.setFunction(x12);
    assertEquals(0x11 * 0x12, (Integer) mult.evaluate(arguments, userProgram, returnAddr), 0);

    //0x12 * 0x11
    a.setFunction(x12);
    b.setFunction(x11);
    assertEquals(0x12 * 0x11, (Integer) mult.evaluate(arguments, userProgram, returnAddr), 0);

    //0x11 * 0x11
    a.setFunction(x11);
    b.setFunction(x11);
    assertEquals(0x11 * 0x11, (Integer) mult.evaluate(arguments, userProgram, returnAddr), 0);

    //0x12 * 0x12
    a.setFunction(x12);
    b.setFunction(x12);
    assertEquals(0x12 * 0x12, (Integer) mult.evaluate(arguments, userProgram, returnAddr), 0);

    //0x12 * 0x0
    a.setFunction(x12);
    b.setFunction(x0);
    assertEquals(0x12 * 0x0, (Integer) mult.evaluate(arguments, userProgram, returnAddr), 0);

    //0x12 * 0x1
    a.setFunction(x12);
    z.setValue(0x1);
    assertEquals(0x12 * 0x1, (Integer) mult.evaluate(arguments, userProgram, returnAddr), 0);

  }

}


text:
class GetterSetter
{
    private _name:string;

    get name():string { return this._name; }
    set name(value:string) { this._name = value; }

    get readOnlyName():string { return this._name; }

    set writeOnlyName(value:string) { this._name = value; }
}


text:
using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;

namespace Firehose.Web.Authors
{
    public class DanRigby : IWorkAtXamarinOrMicrosoft
    {
        public string FirstName => "Dan";
        public string LastName => "Rigby";
        public string ShortBioOrTagLine => "is a Xamarin Technical Solutions Professional";
        public string StateOrRegion => "Raleigh, North Carolina";
        public string EmailAddress => "Dan.Rigby@Xamarin.com";
        public string TwitterHandle => "DanRigby";
        public string GitHubHandle => "DanRigby";
        public string GravatarHash => "f025f772418fbcfd3a1e15a74bf0f8a4";
        public GeoPosition Position => new GeoPosition(35.7795900,-78.6381790);
        public Uri WebSite => new Uri("http://danrigby.com/");

        public IEnumerable<Uri> FeedUris
        {
            get { yield return new Uri("https://feeds.feedburner.com/DanRigby"); }
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="@string/appbar_scrolling_view_behavior">

        <View
            android:id="@+id/centerBottom"
            android:layout_width="@dimen/margin_large"
            android:layout_height="10dp"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true" />

        <Button
            android:id="@+id/capture"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_margin="@dimen/margin_small"
            android:layout_toEndOf="@id/centerBottom"
            android:layout_toRightOf="@id/centerBottom"
            android:text="@string/take_picture" />

        <Button
            android:id="@+id/cancel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_margin="@dimen/margin_small"
            android:layout_toLeftOf="@id/centerBottom"
            android:layout_toStartOf="@id/centerBottom"
            android:text="@string/cancelbutton" />

        <Button
            android:id="@+id/accept"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_margin="@dimen/margin_small"
            android:layout_toEndOf="@id/centerBottom"
            android:layout_toRightOf="@id/centerBottom"
            android:text="@string/use_picture" />

        <Button
            android:id="@+id/retry"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_margin="@dimen/margin_small"
            android:layout_toLeftOf="@id/centerBottom"
            android:layout_toStartOf="@id/centerBottom"
            android:text="@string/retry" />

        <com.flurgle.camerakit.CameraView
            android:id="@+id/camera"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@id/capture"
            android:layout_alignParentTop="true"
            app:ckCropOutput="true"
            app:ckFacing="front"
            app:ckFlash="auto"
            app:ckFocus="continuous"
            app:ckMethod="still" />

        <android.support.v4.view.ViewPager
            android:id="@+id/overlayPager"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@id/capture"
            android:layout_alignParentTop="true" />

        <ImageView
            android:id="@+id/preview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@id/capture"
            android:layout_alignParentTop="true"
            android:background="@color/pageBackground"
            android:contentDescription="@string/cd_preview" />

    </RelativeLayout>

    <android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <include
            android:id="@+id/toolbar"
            layout="@layout/toolbar" />
    </android.support.design.widget.AppBarLayout>

</android.support.design.widget.CoordinatorLayout>


text:
#include <pdal/pdal_config.hpp>

#include <sstream>
#include <iomanip>

#include <pdal/pdal_defines.h>
#include <pdal/gitsha.h>

#ifdef PDAL_HAVE_LIBGEOTIFF
#include <geotiff.h>
#endif

#ifdef PDAL_COMPILER_CLANG
#  pragma clang diagnostic push
#  pragma clang diagnostic ignored "-Wfloat-equal"
#endif
#include <gdal.h>
#ifdef PDAL_COMPILER_CLANG
#  pragma clang diagnostic pop
#endif

#ifdef PDAL_HAVE_LASZIP
#include <laszip/laszip.hpp>
#endif

#ifdef PDAL_HAVE_GEOS
#include <geos/version.h>
#endif

#ifdef PDAL_HAVE_HEXER
#include <hexer/hexer.hpp>
#endif

#ifdef PDAL_HAVE_LIBXML2
#include <libxml/xmlversion.h>
#endif

#include <pdal/util/Utils.hpp>

namespace pdal
{

/// Check if GeoTIFF support has been built in to PDAL
bool IsLibGeoTIFFEnabled()
{
#ifdef PDAL_HAVE_LIBGEOTIFF
    return true;
#else
    return false;
#endif
}

/// Check if LasZip compression support has been built in to PDAL
bool IsLasZipEnabled()
{
#ifdef PDAL_HAVE_LASZIP
    return true;
#else
    return false;
#endif
}

int GetVersionMajor()
{
    return PDAL_VERSION_MAJOR;
}

int GetVersionMinor()
{
    return PDAL_VERSION_MINOR;
}

int GetVersionPatch()
{
    return PDAL_VERSION_PATCH;
}

std::string GetVersionString()
{
    return std::string(PDAL_VERSION_STRING);
}

int GetVersionInteger()
{
    return PDAL_VERSION_INTEGER;
}

std::string GetSHA1()
{
	return g_GIT_SHA1;
}

/// Tell the user a bit about PDAL's compilation
std::string GetFullVersionString()
{
    std::ostringstream os;

    os << "PDAL " << PDAL_VERSION_STRING << " (" <<
        GetSHA1().substr(0, 6) << ")";

    return os.str();
}

std::string getPDALDebugInformation()
{
    Utils::screenWidth();
    std::string headline(Utils::screenWidth(), '-');

    std::ostringstream os;

    os << headline << std::endl;
    os << "PDAL debug information" << std::endl ;
    os << headline << std::endl << std::endl;

    os << "Version information" << std::endl;
    os << headline << std::endl;
    os << "(" << pdal::GetFullVersionString() << ")" << std::endl;
    os << std::endl;

    os << "Debug build status" << std::endl;
    os << headline << std::endl;
    os << PDAL_BUILD_TYPE << std::endl << std::endl;

    os << "Enabled libraries" << std::endl;
    os << headline << std::endl << std::endl;

#ifdef PDAL_HAVE_GEOS
    os << "GEOS (" << GEOS_VERSION << ") - " <<
        "http://trac.osgeo.org/geos" << std::endl;
#endif

    os << "GDAL (" << GDALVersionInfo("RELEASE_NAME") << ") - " <<
        "http://www.gdal.org" << std::endl;

#ifdef PDAL_HAVE_HEXER
    os << "Hexer (" << HEXER_VERSION_MAJOR << '.' << HEXER_VERSION_MINOR <<
        '.' << HEXER_VERSION_PATCH << ") - " <<
        "http://github.com/hobu/hexer" << std::endl;
#endif

#ifdef PDAL_HAVE_LASZIP
    os << "LASzip (" << LASZIP_VERSION_MAJOR << "." << LASZIP_VERSION_MINOR <<
        "." << LASZIP_VERSION_REVISION << ") - " <<
        "http://laszip.org" << std::endl;
#endif

#ifdef PDAL_HAVE_LIBXML2
    os << "libxml (" << LIBXML_DOTTED_VERSION << ") - " <<
              "http://www.xmlsoft.org/" << std::endl;
#endif

#ifdef PDAL_HAVE_LIBGEOTIFF
    os << "libgeotiff (" << LIBGEOTIFF_VERSION << ") - " <<
        "http://trac.osgeo.org/geotiff" << std::endl;
#endif

#ifdef PDAL_HAVE_MRSID
    os << "MrSID - " << "http://www.lizardtech.com" << std::endl;
#endif

#ifdef PDAL_HAVE_NITRO
    os << "Nitro - " << "http://github.com/hobu/nitro" << std::endl;
#endif

#ifdef PDAL_HAVE_ORACLE
    os << "Oracle - " << "http://www.oracle.com" << std::endl;
#endif

#ifdef PDAL_HAVE_P2G
    os << "Points2grid = " <<
        "http://github.com/CRREL/points2grid" << std::endl;
#endif

#ifdef PDAL_HAVE_PYTHON
    os << "Python - " << "http://www.python.org" << std::endl;
#endif

#ifdef PDAL_HAVE_SQLITE
    os << "SQLite - " << "http://www.sqlite.org" << std::endl;
#endif

#ifdef PDAL_HAVE_POSTGRESQL
    os << "PostgreSQL - " <<
        "http://github.com/pramsey/pointcloud" << std::endl;
#endif

    return os.str();
}

} // namespace pdal


text:
=begin
Rails-specific stuff

Mimics ActiveModell::conversions
=end
module  Conversions

=begin
  Returns an Array of all key attributes if any is set, regardless if the object is persisted or not. Returns nil if there are no key attributes.
=end
   def to_key
           key = respond_to?(:rid) && rid
	         key ? [key] : nil
   end

 # Returns a +string+ representing the object's key suitable for use in URLs,
 #     # or +nil+ if <tt>persisted?</tt> is +false+.
  def to_param
          (persisted? && key = to_key) ? key.join('-') : nil
  end

 # Returns a +string+ identifying the path associated with the object.
 #     # ActionPack uses this to find a suitable partial to represent the object.
 def to_partial_path
         self.class._to_partial_path
 end

# module ClassMethods #:nodoc:
   # Provide a class level cache for #to_partial_path. This is an
   # internal method and should not be accessed directly.

#   def self._to_partial_path #:nodoc:
#     @_to_partial_path ||= begin
#	element = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.demodulize(name))
#	collection = ActiveSupport::Inflector.tableize(name)
#	"#{collection}/#{element}".freeze
#      end
#   end
 #end
end


text:
<?php

namespace App\Repositories;

use App\Models\Role;

class RoleRepository {

    private $role;

    public function __construct(Role $role)
    {
        $this->role = $role;
    }

    /**
     * 获取所有用户
     * @return static
     */
    public function allRoles()
    {
        return $this->role->all()->sortBy('asc');
    }

}


text:
<?php
/* de/order_detail.php */

/* mobile order detail */
$lang['mobile_orderDetail_myAccount'] = 'Mein Konto';
$lang['mobile_orderDetail_myOrders'] = 'Meine Bestellungen';
$lang['mobile_orderDetail_orderId'] = 'Bestell-Nr';
$lang['mobile_orderDetail_total'] = 'Bestellsumme';
$lang['mobile_orderDetail_date'] = 'Datum';
$lang['mobile_orderDetail_status'] = 'Status';
$lang['mobile_orderDetail_shippingMethod'] = 'Versandart';
$lang['mobile_orderDetail_trackingNumber'] = 'Tracking-number';
$lang['mobile_orderDetail_shippingInsurance'] = 'Versandversicherung';
$lang['mobile_orderDetail_separatePackage'] = 'Erst liefbare Artikel senden.';
$lang['mobile_orderDetail_shipAddress'] = 'Lieferadresse';
$lang['mobile_orderDetail_mobile'] = 'Handy';
$lang['mobile_orderDetail_paymentMethod'] = 'Zahlungsmethode';
$lang['mobile_orderDetail_holder'] = 'Kontodaten';
$lang['mobile_orderDetail_number'] = 'Kontonummer';
$lang['mobile_orderDetail_sortCode'] = 'BLZ';
$lang['mobile_orderDetail_swift_code'] = 'SWIFT-Code';
$lang['mobile_orderDetail_bankName'] = 'Name der Bank';
$lang['mobile_orderDetail_bank_code'] = 'Bankleitzahl';
$lang['mobile_orderDetail_iban'] = 'IBAN';
$lang['mobile_orderDetail_bic'] = 'BIC';
$lang['mobile_orderDetail_completeYourPayment'] = 'Füllen Sie Ihre Zahlung';

$lang['mobile_orderDetail_cartSummary'] = 'Gesamt im Warenkorb';
$lang['mobile_orderDetail_price'] = 'Preis';
$lang['mobile_orderDetail_subtotal'] = 'Zwischensumme';
$lang['mobile_orderDetail_shippingChargesAndInsurance'] = 'Versandkosten';
$lang['mobile_orderDetail_discount'] = 'Rabatt';
$lang['mobile_orderDetail_points'] = 'Punkte erhalten';
$lang['mobile_orderDetail_grandTotal'] = 'Gesamtsumme';
$lang['mobile_orderDetail_grandTotalToBeCharged'] = 'In Rechnung gestellte Gesamtsumme';
$lang['mobile_orderDetail_priceHasChanged'] = 'Preis wurde geändert';
$lang['mobile_orderDetail_items'] = 'Artikel';
$lang['order_detailDetail_orderAgain'] = 'Preis geändert, fügen Sie <span class="re_orders"> oder wieder </span> zu';


text:
#ifndef ACTOR_H
#define ACTOR_H

#include <stdbool.h>

#define ACTOR_MAX 128 /* probably won't take too much memory */

#include "vector.h"

struct level;

struct actor {
    unsigned int ai; /* Index of ai_list element */
    struct vector pos;
    short max_hp;
    short hp;
    const char c;
};

void act_move(struct level *, struct actor *, const int);

#endif /* ACTOR_H */


text:
This example shows how to use Camel in the Java Container using CDI to connect to an ActiveMQ broker hosted in Kubernetes.

This example is implemented using Java code with CDI injected resources.
The source code uses the CDI Annotation `@ServiceName` to lookup the ActiveMQ broker Service name.

The broker service name can be changed [here](https://github.com/fabric8io/ipaas-quickstarts/blob/master/quickstart/cdi/camel-mq/src/main/java/io/fabric8/quickstarts/camelcdi/MyRoutes.java#L33) and defaults to `@ServiceName("fabric8mq")`

This example will connect to the broker and send messages to a queue TEST.FOO

### Building

The example can be built with

    mvn clean install

### Running the example in fabric8

It is assumed a running Kubernetes platform is already running. If not you can find details how to [get started](http://fabric8.io/guide/getStarted/index.html).

The example can be built and deployed using a single goal:

    mvn -Pf8-local-deploy

When the example runs in fabric8, you can use the OpenShift client tool to inspect the status

To list all the running pods:

    oc get pods

Then find the name of the pod that runs this quickstart, and output the logs from the running pods with:

    oc logs <name of pod>

You can also use the fabric8 [web console](http://fabric8.io/guide/console.html) to manage the
running pods, and view logs and much more.

### More details

You can find more details about running this [quickstart](http://fabric8.io/guide/quickstarts/running.html) on the website. This also includes instructions how to change the Docker image user and registry.


text:
package com.cipherthinkers.analogcountdownview;

import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by avin on 05/06/16.
 */
public class AnalogCountdownView extends View {

    /////////////////////////////////////////
    //Fields
    /////////////////////////////////////////
    private TimerConfig mTimerConfig;
    private Paint mPaint;
    private Timer mTimer;
    private TimerTask mTimerTask;
    public final int DEFAULT_COLOR = Color.BLUE;
    private AnalogTimerUpdateListener mAnalogTimerUpdateListener;

    /////////////////////////////////////////
    //Constructors
    /////////////////////////////////////////
    public AnalogCountdownView(Context context) {
        super(context);
        init(null);
    }

    public AnalogCountdownView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(attrs);
    }

    public AnalogCountdownView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(attrs);
    }

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public AnalogCountdownView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        init(attrs);
    }

    /*
    * Initializes the TimerConfig object used for all the calculations and initializing the fields
    * */
    private void init(AttributeSet attributeSet) {
        mTimerConfig = new TimerConfig();

        if(attributeSet == null){
            return;
        }

        TypedArray array = getContext().obtainStyledAttributes(attributeSet, R.styleable.AnalogCountdownView);

        for (int i = 0; i < array.length(); i++) {
            int type = array.getIndex(i);

            if (type == R.styleable.AnalogCountdownView_start_angle) {
                int start_angle = array.getInt(R.styleable.AnalogCountdownView_start_angle, 270);
                mTimerConfig.setmStartAngle(start_angle);
            }

            if (type == R.styleable.AnalogCountdownView_total_value) {
                int total_value = array.getInt(R.styleable.AnalogCountdownView_total_value, 100);
                mTimerConfig.setmTotalValue(total_value);
            }

            if (type == R.styleable.AnalogCountdownView_initial_value) {
                int initial_value = array.getInt(R.styleable.AnalogCountdownView_initial_value, 0);
                mTimerConfig.setmInitialValue(initial_value);
            }

            if (type == R.styleable.AnalogCountdownView_increment) {
                boolean isIncreasing = array.getBoolean(R.styleable.AnalogCountdownView_increment, true);
                mTimerConfig.setIncreasing(isIncreasing);
            }

            if (type == R.styleable.AnalogCountdownView_interval_ms) {
                int interval = array.getInt(R.styleable.AnalogCountdownView_interval_ms, 1000);
                mTimerConfig.setmIntervalInMilliseconds(interval);
            }

            if (type == R.styleable.AnalogCountdownView_timer_icon) {
                int drawable_id = array.getResourceId(R.styleable.AnalogCountdownView_timer_icon, -1);
                mTimerConfig.setmDrawableId(drawable_id);
                if(mTimerConfig.getmIconWidthInPx() == 0){
                    mTimerConfig.setmIconWidthInPx(TimerConfig.DEFAULT_ICON_WIDTH_IN_PX);
                }
            }

            if (type == R.styleable.AnalogCountdownView_icon_size) {
                Float drawable_size = array.getDimension(R.styleable.AnalogCountdownView_icon_size, 140);
                mTimerConfig.setmIconWidthInPx(drawable_size.intValue());
            }

            if (type == R.styleable.AnalogCountdownView_progress_width) {
                Float progress_width = array.getDimension(R.styleable.AnalogCountdownView_progress_width, 3);
                mTimerConfig.setmProgressWidthInPx(progress_width.intValue());
            }

            if (type == R.styleable.AnalogCountdownView_start_delay_ms) {
                int start_delay = array.getInt(R.styleable.AnalogCountdownView_start_delay_ms, 0);
                mTimerConfig.setmStartDelay(start_delay);
            }

            if (type == R.styleable.AnalogCountdownView_progress_color) {
                int color = array.getColor(R.styleable.AnalogCountdownView_progress_color, DEFAULT_COLOR);
                mTimerConfig.setmProgressColor(color);
                setPaintColor(color);
            }
        }

        array.recycle();
    }

    private Paint getPaint(){
        if(mPaint == null){
            mPaint = new Paint();
            mPaint.setColor(mTimerConfig.getmProgressColor());
            mPaint.setStrokeWidth(mTimerConfig.getmProgressWidthInPx());
            mPaint.setAntiAlias(true);
            mPaint.setStrokeCap(Paint.Cap.SQUARE);
            mPaint.setStyle(Paint.Style.STROKE);
        }

        return mPaint;
    }

    private void setPaintColor(int color){
        if(mPaint != null){
            mPaint.setColor(color);
        }
    }

    @Override
    protected void onDraw(Canvas canvas) {
        if (isInEditMode()) {
            return;
        }
        if (canvas == null) {
            canvas = new Canvas();
        }
        super.onDraw(canvas);
        canvas.drawArc(mTimerConfig.getmRectF(), mTimerConfig.getmStartAngle(), mTimerConfig.getSweepAngle(),
                false, getPaint());
        Bitmap bitmap = mTimerConfig.getmBitmap();
        if(bitmap != null) {
            canvas.drawBitmap(bitmap, null, mTimerConfig.getmIconRectF(), null);
        }
    }

    /**
     * Resets the current value based on which the timer is running
     * Note : It doesn't stops the timer
     *
     * If you want to stop/start the timer as well you can call #resetAndStop or #resetAndStart respectively
     * */
    public void reset(){
        mTimerConfig.reset();
    }

    /**
     * Resets the current value based on which the timer is running
     * And stops the timer
     * */
    public void resetAndStop(){
        mAnalogTimerUpdateListener = null;
        mTimerConfig.reset();
        stop();
        invalidate();
    }

    /**
     * Resets the current value based on which the timer is running
     * And restarts the timer
     * */
    public void resetAndStart(){
        resetAndStop();
        start();
    }

    /**
     * Resets the current value based on which the timer is running
     * And restarts the timer
     *
     * @param analogTimerUpdateListener - Listener to be associated with the view to get updates from the view
     * */
    public void resetAndStart(AnalogTimerUpdateListener analogTimerUpdateListener){
        resetAndStop();
        start(analogTimerUpdateListener);
    }

    /**
     * Starts the timer
     *
     * @param analogTimerUpdateListener - Listener to be associated with the view to get updates from the view
     * */
    public void start(AnalogTimerUpdateListener analogTimerUpdateListener){
        mAnalogTimerUpdateListener = null;
        stop();
        mAnalogTimerUpdateListener = analogTimerUpdateListener;
        if(mTimer == null){
            mTimer = new Timer();
        }

        if(mTimerTask == null){
            mTimerTask = new TimerTask() {
                @Override
                public void run() {
                    mTimerConfig.moveToNextValue();
                    AnalogCountdownView.this.postInvalidate();
                    if(mTimerConfig.isExpired()){
                        mTimer.cancel();
                        if(mAnalogTimerUpdateListener != null){
                            AnalogCountdownView.this.post(new Runnable() {
                                @Override
                                public void run() {
                                    mAnalogTimerUpdateListener.onTimerExpired();
                                }
                            });
                        }
                        return;
                    }
                    if(mAnalogTimerUpdateListener != null){
                        AnalogCountdownView.this.post(new Runnable() {
                            @Override
                            public void run() {
                                mAnalogTimerUpdateListener.onTimerUpdated(mTimerConfig.getmCurrentValue(),
                                        mTimerConfig.getmTotalValue());
                            }
                        });
                    }
                }
            };
        }
        if(mAnalogTimerUpdateListener != null){
            AnalogCountdownView.this.post(new Runnable() {
                @Override
                public void run() {
                    mAnalogTimerUpdateListener.onTimerStarted();
                }
            });
        }
        mTimer.schedule(mTimerTask, mTimerConfig.getmStartDelay(), mTimerConfig.getmIntervalInMilliseconds());
    }

    /**
     * Starts the timer
     * */
    public void start(){
        start(null);
    }

    /**
     * Stops the timer
     * */
    public void stop(){
        if(mTimer != null){
            mTimer.cancel();
            mTimer = null;
        }

        if(mTimerTask != null){
            mTimerTask = null;
        }
    }

    private class TimerConfig{
        public static final int DEFAULT_ICON_WIDTH_IN_PX = 140;
        private int mStartAngle = 270;
        private int mSweepAngle = 0;
        private int mTotalValue = 100;
        private int mCurrentValue = 0;
        private int mProgressWidthInDp = 3;
        private int mProgressWidthInPx = 0;
        private int mViewWidthInPx = 0;
        private Paint mPaint;
        private RectF mRectF, mIconRectF;
        private int mDrawableId = -1;
        private Bitmap mBitmap;
        private int mIconX, mIconY;
        private int mIconWidthInPx = 0;
        private int mInitialValue = 0;
        private boolean isIncreasing = true;
        private long mIntervalInMilliseconds = 1000;
        private long mStartDelay = 0;
        private int mProgressColor = DEFAULT_COLOR;

        public int getmProgressColor() {
            return mProgressColor;
        }

        public void setmProgressColor(int mProgressColor) {
            this.mProgressColor = mProgressColor;
        }

        public int getmStartAngle() {
            return mStartAngle;
        }

        public void setmStartAngle(int mStartAngle) {
            this.mStartAngle = mStartAngle;
        }

        public int getmSweepAngle() {
            return mSweepAngle;
        }

        public void setmSweepAngle(int mSweepAngle) {
            this.mSweepAngle = mSweepAngle;
        }

        public int getmTotalValue() {
            return mTotalValue;
        }

        public void setmTotalValue(int mTotalValue) {
            this.mTotalValue = mTotalValue;
        }

        public int getmCurrentValue() {
            return mCurrentValue;
        }

        public void setmCurrentValue(int mCurrentValue) {
            this.mCurrentValue = mCurrentValue;
        }

        public int getmProgressWidthInDp() {
            return mProgressWidthInDp;
        }

        public void setmProgressWidthInDp(int mProgressWidthInDp) {
            this.mProgressWidthInDp = mProgressWidthInDp;
        }

        public int getmProgressWidthInPx() {
            if(mProgressWidthInPx == 0){
                mProgressWidthInPx = (int) ((mProgressWidthInDp * Resources.getSystem().getDisplayMetrics().density) + 0.5f);
            }

            return mProgressWidthInPx;
        }

        public void setmProgressWidthInPx(int mProgressWidthInPx) {
            this.mProgressWidthInPx = mProgressWidthInPx;
        }

        public int getmViewWidthInPx() {
            if(mViewWidthInPx == 0){
                mViewWidthInPx = getRight() - getLeft();
            }

            return mViewWidthInPx;
        }

        public void setmViewWidthInPx(int mViewWidthInPx) {
            this.mViewWidthInPx = mViewWidthInPx;
        }

        public Paint getmPaint() {
            return mPaint;
        }

        public void setmPaint(Paint mPaint) {
            this.mPaint = mPaint;
        }

        public RectF getmRectF() {
            if(mRectF == null){
                mRectF = new RectF();

                int curveWidthInPx = getmProgressWidthInPx();

                int widthInPx = getmViewWidthInPx();
                mRectF.set(curveWidthInPx / 2 + mIconWidthInPx/4, // left
                        curveWidthInPx / 2 + mIconWidthInPx/4, // top
                        widthInPx - curveWidthInPx/2 - mIconWidthInPx/4, // right
                        widthInPx - curveWidthInPx/2 - mIconWidthInPx/4); // bottom
            }

            return mRectF;
        }

        public void setmRectF(RectF mRectF) {
            this.mRectF = mRectF;
        }

        public RectF getmIconRectF() {
            if(mIconRectF == null){
                mIconRectF = new RectF();
            }
            calculateX();
            calculateY();
            mIconRectF.set(mIconX - mIconWidthInPx/2, //Left
                    mIconY - mIconWidthInPx/2, //Top
                    mIconX + mIconWidthInPx/2, //Right
                    mIconY + mIconWidthInPx/2); // Bottom
            return mIconRectF;
        }

        public void setmIconRectF(RectF mIconRectF) {
            this.mIconRectF = mIconRectF;
        }

        public int getmDrawableId() {
            return mDrawableId;
        }

        public void setmDrawableId(int mDrawableId) {
            this.mDrawableId = mDrawableId;
        }

        public Bitmap getmBitmap() {
            if(mBitmap == null && mDrawableId != -1) {
                mBitmap = BitmapFactory.decodeResource(getContext().getResources(), mDrawableId);
            }

            return mBitmap;
        }

        public void setmBitmap(Bitmap mBitmap) {
            this.mBitmap = mBitmap;
        }

        public int getmIconX() {
            return mIconX;
        }

        public void setmIconX(int mIconX) {
            this.mIconX = mIconX;
        }

        public int getmIconY() {
            return mIconY;
        }

        public void setmIconY(int mIconY) {
            this.mIconY = mIconY;
        }

        public int getmIconWidthInPx() {
            return mIconWidthInPx;
        }

        public void setmIconWidthInPx(int mIconWidthInPx) {
            this.mIconWidthInPx = mIconWidthInPx;
        }

        public int getmInitialValue() {
            return mInitialValue;
        }

        public void setmInitialValue(int mInitialValue) {
            this.mInitialValue = mInitialValue;
            this.mCurrentValue = mInitialValue;
        }

        public boolean isIncreasing() {
            return isIncreasing;
        }

        public void setIncreasing(boolean increasing) {
            isIncreasing = increasing;
        }

        public long getmIntervalInMilliseconds() {
            return mIntervalInMilliseconds;
        }

        public void setmIntervalInMilliseconds(long mIntervalInMilliseconds) {
            this.mIntervalInMilliseconds = mIntervalInMilliseconds;
        }

        private int adjustAngleForStartAngle(){
            int adjustAngle = 0;
            if(mStartAngle > 270){
                adjustAngle = mStartAngle - 270;
            }else if(mStartAngle < 270){
                adjustAngle = 90 + mStartAngle;
            }

            return adjustAngle;
        }

        private int calculateX(){
            int sweepAngle = getSweepAngle() + adjustAngleForStartAngle();
            int radius = (mViewWidthInPx/2) - mIconWidthInPx/4;
            mIconX = (int) (mIconWidthInPx/4 + radius * (1 + Math.sin(Math.toRadians(sweepAngle))));

            return mIconX;
        }

        private int calculateY(){
            int sweepAngle = getSweepAngle() + adjustAngleForStartAngle();
            int radius = (mViewWidthInPx/2) - mIconWidthInPx/4;
            mIconY = (int) (mIconWidthInPx/4 + radius * (1 - Math.cos(Math.toRadians(sweepAngle))));

            return mIconY;
        }

        private int getSweepAngle(){
            mSweepAngle = 360*mCurrentValue/mTotalValue;
            return mSweepAngle;
        }

        public void reset(){
            mCurrentValue = mInitialValue;
        }

        private void moveToNextValue(){
            mCurrentValue = mCurrentValue + ((isIncreasing)?1:(-1));
        }

        private boolean isExpired(){
            return (isIncreasing && mCurrentValue == mTotalValue) ||
                    (!isIncreasing && mCurrentValue == 0);
        }

        public long getmStartDelay() {
            return mStartDelay;
        }

        public void setmStartDelay(long mStartDelay) {
            this.mStartDelay = mStartDelay;
        }
    }

    /**
     * A listenr that can be used to get callbacks for the following three scenarios:
     * 1. Timer started
     * 2. Timer updated
     * 3. Timer stopped
     * */
    public interface AnalogTimerUpdateListener{
        void onTimerUpdated(int currentValue, int totalValue);
        void onTimerStarted();
        void onTimerExpired();
    }

}


text:
/**
 * angular-strap
 * @version v2.2.1 - 2015-11-27
 * @link http://mgcrea.github.io/angular-strap
 * @author Olivier Louvignes (olivier@mg-crea.com)
 * @license MIT License, http://www.opensource.org/licenses/MIT
 */
"use strict";angular.module("mgcrea.ngStrap.typeahead").run(["$templateCache",function(e){e.put("typeahead/typeahead.tpl.html",'

')}]);


text:
/**
 */
package org.afplib.afplib;

import org.afplib.base.SF;
import org.afplib.base.Triplet;

import org.eclipse.emf.common.util.EList;

/**
 *
 * A representation of the model object 'EPG'.
 *
 *
 *

 * The following features are supported:
 *

 *

 *
{@link org.afplib.afplib.EPG#getPageName Page Name}

 *
{@link org.afplib.afplib.EPG#getTriplets Triplets}

 *

 *
 * @see org.afplib.afplib.AfplibPackage#getEPG()
 * @model
 * @generated
 */
public interface EPG extends SF {
	/**
	 * Returns the value of the 'Page Name' attribute.
	 *
	 *
	 *
	 *
optional
fixed length

	 *
	 * @return the value of the 'Page Name' attribute.
	 * @see #setPageName(String)
	 * @see org.afplib.afplib.AfplibPackage#getEPG_PageName()
	 * @model dataType="org.afplib.base.ModcaString8"
	 * @generated
	 */
	String getPageName();

	/**
	 * Sets the value of the '{@link org.afplib.afplib.EPG#getPageName Page Name}' attribute.
	 *
	 *
	 * @param value the new value of the 'Page Name' attribute.
	 * @see #getPageName()
	 * @generated
	 */
	void setPageName(String value);

	/**
	 * Returns the value of the 'Triplets' containment reference list.
	 * The list contents are of type {@link org.afplib.base.Triplet}.
	 *
	 *
	 *
	 *
optional
variable length

	 *
	 * @return the value of the 'Triplets' containment reference list.
	 * @see org.afplib.afplib.AfplibPackage#getEPG_Triplets()
	 * @model containment="true" resolveProxies="true"
	 * @generated
	 */
	EList<Triplet> getTriplets();

} // EPG


text:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
	namespace="com.lachesis.mnisqm.module.profSkillDoc.dao.NurseHirarchicalRegistrationMapper">

	<!-- 逻辑添加 -->
	<insert id="insert"
		parameterType="NurseHirarchicalRegistration">
		insert into PTF_NURSE_HIERARCHICAL_REGISTRATION
		(USER_CODE, USER_NAME, WARD_CODE,
		BEGIN_TIME, END_TIME, HIERARCHY,
		STATUS, AUDITOR,
		REMARK, CREATE_TIME, CREATE_PERSON,
		UPDATE_TIME, UPDATE_PERSON)
		values
		(#{userCode},#{userName},
		#{wardCode},#{beginTime},
		#{endTime},#{hierarchy},
		'01',#{auditor},
		#{remark},GETDATE(),
		#{createPerson},GETDATE(),
		#{updatePerson})
	</insert>
	<!-- 逻辑删除 -->
	<update id="deleteByPrimaryKey"
		parameterType="NurseHirarchicalRegistration">
		update
		PTF_NURSE_HIERARCHICAL_REGISTRATION
		set
		STATUS=#{status},
		UPDATE_TIME=GETDATE(),
		UPDATE_PERSON=#{updatePerson}
		where
		SEQ_ID=#{seqId}
	</update>
	<!-- 逻辑修改 -->
	<update id="update"
		parameterType="NurseHirarchicalRegistration">
		update
		PTF_NURSE_HIERARCHICAL_REGISTRATION
		set
		USER_CODE=#{userCode},
		USER_NAME=#{userName},
		WARD_CODE=#{wardCode},
		BEGIN_TIME=#{beginTime},
		END_TIME=#{endTime},
		HIERARCHY=#{hierarchy},
		AUDITOR=#{auditor},
		REMARK=#{remark},
		UPDATE_TIME=GETDATE(),
		UPDATE_PERSON=#{updatePerson}
		where
		SEQ_ID=#{seqId}
	</update>
	<!-- 逻辑查找 -->
	<select id="select"
		parameterType="NurseHirarchicalRegistration"
		resultType="NurseHirarchicalRegistration">
		select
		SEQ_ID			as seqId,
		USER_CODE		as userCode,
		USER_NAME		as userName,
		WARD_CODE		as wardCode,
		BEGIN_TIME		as beginTime,
		END_TIME		as endTime,
		HIERARCHY		as hierarchy,
		STATUS			as status,
		AUDITOR			as auditor,
		REMARK			as remark
		from
		PTF_NURSE_HIERARCHICAL_REGISTRATION
		where STATUS='01'
		<if test="userCode != null">
			and USER_CODE=#{userCode}
		</if>
		<if test="userName != null">
			and USER_NAME like #{userName}
		</if>
		<if test="wardCode != null">
			and WARD_CODE = #{wardCode}
		</if>
		<if test="beginTime != null">
			and BEGIN_TIME >= #{beginTime}
		</if>
		<if test="endTime != null">
			and #{endTime} >= END_TIME
		</if>
		<if test="hierarchy != null">
			and HIERARCHY = #{hierarchy}
		</if>
		<if test="auditor != null">
			and AUDITOR like #{auditor}
		</if>
	</select>
</mapper>


text:
-- phpMyAdmin SQL Dump
-- version 4.0.10.14
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Aug 31, 2016 at 02:22 PM
-- Server version: 5.5.49-cll-lve
-- PHP Version: 5.6.20

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `freets3v2`
--

-- --------------------------------------------------------

--
-- Table structure for table `registerTokens`
--

CREATE TABLE IF NOT EXISTS `registerTokens` (
  `token` varchar(40) NOT NULL COMMENT 'The Unique Token Generated',
  `uid` int(11) NOT NULL COMMENT 'The User Id',
  `requested` varchar(20) NOT NULL COMMENT 'The Date when token was created'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `resettokens`
--

CREATE TABLE IF NOT EXISTS `resettokens` (
  `token` varchar(40) NOT NULL COMMENT 'The Unique Token Generated',
  `uid` int(11) NOT NULL COMMENT 'The User Id',
  `requested` varchar(20) NOT NULL COMMENT 'The Date when token was created'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `servers`
--

CREATE TABLE IF NOT EXISTS `servers` (
  `location` text NOT NULL,
  `ip` varchar(50) NOT NULL,
  `query` varchar(500) NOT NULL,
  `user` varchar(500) NOT NULL,
  `password` varchar(500) NOT NULL,
  `maxServers` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(10) NOT NULL,
  `email` tinytext NOT NULL,
  `password` varchar(64) NOT NULL,
  `password_salt` varchar(20) NOT NULL,
  `name` varchar(30) NOT NULL,
  `created` datetime NOT NULL,
  `attempt` varchar(15) NOT NULL DEFAULT '0',
  `ipaddress` varchar(500) NOT NULL,
  `confirmed` int(1) NOT NULL COMMENT 'Confirmed email address',
  `servermade` int(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

-- --------------------------------------------------------

--
-- Table structure for table `userservers`
--

CREATE TABLE IF NOT EXISTS `userservers` (
  `user_id` int(50) NOT NULL,
  `ip` varchar(50) NOT NULL,
  `port` int(255) NOT NULL,
  `snapshot` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `user_devices`
--

CREATE TABLE IF NOT EXISTS `user_devices` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL COMMENT 'The user''s ID',
  `token` varchar(15) NOT NULL COMMENT 'A unique token for the user''s device',
  `last_access` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


text:
<!DOCTYPE html>
<!--https://github.com/alignedleft/d3-book/blob/master/chapter_14/01_paths.html-->
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>D3: Loading GeoJSON data and generating SVG paths</title>
		<script type="text/javascript" src="../d3.js"></script>
		<script src="https://d3js.org/d3-color.v1.min.js"></script>
		<script src="https://d3js.org/d3-interpolate.v1.min.js"></script>
		<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
		<style type="text/css">
			/* No style rules here yet */
		</style>
	</head>
	<body>
		<script type="text/javascript">

			//Width and height
			var w = 500;
			var h = 300;

			var projection = d3.geoAlbersUsa()
							   .translate([w/2, h/2])
							   .scale([500]);

			var path = d3.geoPath()
				 		 .projection(projection);

			var color = d3.scaleQuantize().range(d3.schemeBlues[5]);

			//Create SVG element
			var svg = d3.select("body")
						.append("svg")
						.attr("width", w)
						.attr("height", h);

			d3.csv("data/states-unemployment-income.csv", function (data) {
				color.domain([ d3.min(data, function (d) { return d.unemployment; }), d3.max(data, function (d) { return d.unemployment; })]);
				//Load in GeoJSON data
				d3.json("data/us-states.json", function (json) {
					// merge ag data and geo json
					for (var i = 0; i < data.length; i++) {
						var dataState = data[i].state;
						var dataValue = parseFloat(data[i].unemployment);

						for (var j = 0; j < json.features.length; j++) {
							var jsonState = json.features[j].properties.name;

							if (dataState == jsonState) {
								//Copy the data unemployment into the JSON
								json.features[j].properties.unemployment = dataValue;

								//Stop looking through the JSON
								break;
							}

						};
					};
					//Bind data and create one path per GeoJSON feature
					svg.selectAll("path")
					   .data(json.features)
					   .enter()
					   .append("path")
					   .attr("d", path)
					   .style("fill", function (d) {
					   		var unemployment = d.properties.unemployment;
					   		if (unemployment) {
					   			return color(unemployment);
					   		} else {
					   			return "#ccc";
					   		}
					   });

				});
			});

		</script>
	</body>
</html>


text:
struct zwp_primary_selection_device_v1;

namespace ui {

class WaylandConnection;

// This class provides access to primary selection clipboard
class ZwpPrimarySelectionDevice : public WaylandDataDeviceBase {
 public:
  ZwpPrimarySelectionDevice(WaylandConnection* connection,
                            zwp_primary_selection_device_v1* data_device);

  ZwpPrimarySelectionDevice(const ZwpPrimarySelectionDevice&) = delete;
  ZwpPrimarySelectionDevice& operator=(const ZwpPrimarySelectionDevice&) =
      delete;

  ~ZwpPrimarySelectionDevice() override;

  zwp_primary_selection_device_v1* data_device() const {
    return data_device_.get();
  }

  void SetSelectionSource(ZwpPrimarySelectionSource* source, uint32_t serial);

 private:
  // primary_selection_device_listener callbacks
  static void OnDataOffer(void* data,
                          zwp_primary_selection_device_v1* data_device,
                          zwp_primary_selection_offer_v1* offer);
  static void OnSelection(void* data,
                          zwp_primary_selection_device_v1* data_device,
                          zwp_primary_selection_offer_v1* offer);

  // The Wayland object wrapped by this instance.
  wl::Object<zwp_primary_selection_device_v1> data_device_;
};

}  // namespace ui

#endif  // UI_OZONE_PLATFORM_WAYLAND_HOST_ZWP_PRIMARY_SELECTION_DEVICE_H_


text:
. ${IMPALA_HOME}/bin/set-classpath.sh
java -cp $CLASSPATH com.cloudera.impala.testutil.ImpalaJdbcClient "$@"