text:
package jp.azuki.web.constant;

import java.util.Properties;

import jp.azuki.core.util.StringUtility;

/**
 * このクラスは、Web定数を保持するクラスです。
 *
 * @since 1.0.0
 * @version 1.0.0 2012/10/18
 * @author Kawakicchi
 */
public final class WebConstant {

	/** host name */
	private static String hostName;

	/** host port */
	private static String hostPort;

	/** protocol */
	private static String protocol;

	/** web application */
	private static String webApp;

	/**
	 * コンストラクタ
	 * <p>
	 * インスタンス生成を禁止する。
	 * </p>
	 */
	private WebConstant() {
		;
	}

	/**
	 * ロードします。
	 *
	 * @param p プロパティ
	 */
	public static void load(final Properties p) {
		protocol = p.getProperty("host.protocol", "http");
		hostName = p.getProperty("host.name", StringUtility.EMPTY);
		hostPort = p.getProperty("host.port", StringUtility.EMPTY);
		webApp = p.getProperty("webApp", StringUtility.EMPTY);
	}

	/**
	 * ホスト名を取得する。
	 *
	 * @return ホスト名
	 */
	public static String getHostName() {
		return hostName;
	}

	/**
	 * ポート番号を取得する。
	 *
	 * @return ポート番号
	 */
	public static String getHostPort() {
		return hostPort;
	}

	/**
	 * Webアプリケーション名を取得する。
	 *
	 * @return Webアプリケーション名
	 */
	public static String getWebApp() {
		return webApp;
	}

	/**
	 * プロトコルを取得する。
	 *
	 * @return プロトコル
	 */
	public static String getProtocol() {
		return protocol;
	}

	/**
	 * URLを取得する。
	 *
	 * @param aAlias エイリアス
	 * @return URL
	 */
	public static String getUrl(final String aAlias) {
		return getUrl(aAlias, false);
	}

	/**
	 * URLを取得する。
	 *
	 * @param aAlias エイリアス
	 * @param aAbsolute 絶対URL
	 * @return URL
	 */
	public static String getUrl(final String aAlias, final boolean aAbsolute) {
		StringBuffer s = new StringBuffer();
		if (aAbsolute) {
			s.append(getProtocol()).append("://").append(getHostName());
			if (StringUtility.isNotEmpty(getHostPort())) {
				s.append(":").append(getHostPort());
			}
			if (StringUtility.isNotEmpty(getWebApp())) {
				s.append("/").append(getWebApp());
			}
			if (StringUtility.isNotEmpty(aAlias)) {
				if (!aAlias.startsWith("/")) {
					s.append("/");
				}
				s.append(aAlias);
			} else {
				s.append("/");
			}
		} else {
			if (aAlias.startsWith("/")) {
				if (StringUtility.isNotEmpty(getWebApp())) {
					s.append("/").append(getWebApp());
				}
			}
			s.append(aAlias);
		}
		return s.toString();
	}
}


text:
package com.dwarfartisan.parsec;

import java.io.EOFException;
import java.util.Set;
import static java.util.stream.Collectors.joining;

/**
 * Created by Mars Liu on 2016-01-03.
 * OneOf 即 one of ,给定项中任何一个匹配成功即视为成功,否则抛出错误.
 */
public class OneOf<E, Status, Tran> implements Parsec<E, E, Status, Tran> {
    private Set<E> items;

    @Override
    public E parse(State<E, Status, Tran> s)
            throws EOFException, ParsecException {
        E data = s.next();
        if(items.contains(data)) {
            return data;
        }

        String message = String.format("Expect %s in [%s]", data,
                this.items.stream().map(x->x.toString()).collect(joining(", ")));
        throw s.trap(message);
    }

    public OneOf(Set<E> items){
        this.items = items;
    }
}

redpajama_set_name: RedPajamaGithub


text:
/*
   This is the specification of the |getline| library.

   Last modified 24 January 2006 by Arthur O'Dwyer.
   Public domain.
*/

#ifndef H_GETLINE
 #define H_GETLINE

#include <stdio.h>  /* for the |FILE| type */

/*
   Call as "rc = getline_113(&line);"
   These two functions trim off the trailing newline (and any other
   trailing whitespace) for you, so if the user types <space>-H-E-L-
   L-O-<space>-<enter>, all you see is <space>-H-E-L-L-O.
*/
char *getline_113(char **p);
char *fgetline_113(char **p, FILE *stream);

/*
   Same as above, but these two don't trim newlines or whitespace.
   If the user types <space>-H-E-L-L-O-<space>-<enter>, the resulting
   string will contain <space>-H-E-L-L-O-<space>-<newline>.
*/
char *getline_notrim(char **p);
char *fgetline_notrim(char **p, FILE *stream);

/*
   This function is provided for your convenience.
   "getline_113(&p)" behaves as if "trim_113" were called on the
   resulting string before returning from the function.
*/
char *trim_113(char *line);

#endif


text:
package com.tle.core.db

import java.util.Locale

import com.tle.beans.Institution
import com.tle.common.i18n.CurrentLocale
import com.tle.common.institution.CurrentInstitution
import com.tle.common.usermanagement.user.{CurrentUser, UserState}
import com.tle.core.hibernate.CurrentDataSource
import javax.sql.DataSource

case class UserContext(inst: Institution, user: UserState, ds: DataSource, locale: Locale)

object UserContext {

  def fromThreadLocals(): UserContext = {
    UserContext(
      CurrentInstitution.get(),
      CurrentUser.getUserState,
      CurrentDataSource.get().getDataSource,
      CurrentLocale.getLocale
    )
  }

}


text:
module Assembla
  class Client::Portfolio < API
    require_all 'assembla_api/client/portfolio',
      'tasks',
      'users',
      'tickets',
      'spaces',
      'ticket_reports',
      'standup_reports',
      'invitations'

    namespace :tasks
    namespace :users
    namespace :tickets
    namespace :ticket_reports
    namespace :standup_reports
    namespace :invitations
  end
end


text:
package org.hightides.annotations;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.opentides.bean.SystemCodes;

/**
 * Generates a select dropdown field.

 * Sample Usage:

 *    @DropDown (label = "dropdownFieldLabel", requiredField = "true")

 * @author allanctan
 */
@Retention(RUNTIME)
@Target(FIELD)
@Documented
public @interface DropDown {
	/**
	 * Refers to the name identifier of the field; default value is null.
	 */
	String label() default "";

	/**
	 * Refers to the SystemCodes values used to populate the list with; default value is null.

	 * The category element takes precedence over the options element when both are present.
	 * @see SystemCodes
	 */
	String category() default "";

	/**
	 * Refers to the hardcoded values used to populate the list with; default value is null. Values are enclosed in { } and separated by commas.

	 * The category element takes precedence over the options element when both are present.

	 * Example:

	 *    @DropDown (options = {"apple", "banana", "cherry"})
	 */
	String[] options() default "";

	/**
	 * Refers to the parameters to be added; default value is null.
	 */
	String[] springParams() default "";

	/**
	 * Determines if the field is included as a search criteria; default value is false.
	 */
	boolean searchable() default false;

	/**
	 * Determines if the field is included in audit logs; default value is false.
	 */
	boolean auditable() default false;

	/**
	 * Determines if the field is the unique identifier or primary key; default value is false.
	 */
	boolean titleField() default false;

	/**
	 * Determines if the field is required and cannot be null; default value is false. This is used as reference when deleting an entry.
	 */
	boolean requiredField() default false;

	/**
	 * Determines if the field is included in the table view; default value is false.
	 */
	boolean listed() default false;

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <artifactId>originals-parent</artifactId>
    <groupId>io.github.davidwhitlock.cs410J</groupId>
    <version>2022.1.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>io.github.davidwhitlock.cs410J.original</groupId>
  <artifactId>apptbook-web</artifactId>

  <properties>
    <jetty.http.port>8080</jetty.http.port>
  </properties>

  <packaging>war</packaging>
  <version>2022.1.0</version>
  <name>Appointment Book Web/REST Project</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>io.github.davidwhitlock.cs410J</groupId>
      <artifactId>projects</artifactId>
      <version>2022.2.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>io.github.davidwhitlock.cs410J</groupId>
      <artifactId>examples</artifactId>
      <version>2022.1.0</version>
    </dependency>
    <dependency>
      <groupId>io.github.davidwhitlock.cs410J</groupId>
      <artifactId>projects</artifactId>
      <version>2022.2.0-SNAPSHOT</version>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <version>4.0.1</version>
    </dependency>
  </dependencies>
  <build>
    <finalName>apptbook</finalName>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>${surefire.version}</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>${build-helper-maven-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>${jetty-maven-plugin.version}</version>
        <configuration>
          <httpConnector>
            <port>${jetty.http.port}</port>
          </httpConnector>
          <stopKey>stop-key</stopKey>
          <stopPort>9999</stopPort>
          <webApp>
            <contextPath>/${project.build.finalName}</contextPath>
          </webApp>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>1.6.7</version>
        <executions>
          <execution>
            <id>start-container</id>
            <phase>pre-integration-test</phase>
            <goals>
              <goal>start</goal>
            </goals>
          </execution>
          <execution>
            <id>stop-container</id>
            <phase>post-integration-test</phase>
            <goals>
              <goal>stop</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <container>
            <containerId>jetty9x</containerId>
            <type>embedded</type>
            <systemProperties>
              <org.apache.commons.logging.Log>org.apache.commons.logging.impl.SimpleLog</org.apache.commons.logging.Log>
            </systemProperties>
          </container>
          <configuration>
            <properties>
              <cargo.servlet.port>${jetty.http.port}</cargo.servlet.port>
            </properties>
          </configuration>
          <deployables>
            <deployable>
              <location>${project.build.directory}/${project.build.finalName}.${project.packaging}</location>
              <pingURL>http://localhost:${jetty.http.port}/${project.build.finalName}/index.html</pingURL>
              <pingTimeout>20000</pingTimeout>
            </deployable>
          </deployables>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>${maven-jar-plugin.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>client</classifier>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
              <classpathLayoutType>repository</classpathLayoutType>
              <classpathPrefix>file:///${localRepositoryWithEscapedSpaces}</classpathPrefix>
              <mainClass>edu.pdx.cs410J.apptbookweb.Project4</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${jacoco-maven-plugin.version}</version>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>grader</id>
      <activation>
        <activeByDefault>${grader}</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>${maven-javadoc-plugin.version}</version>
            <configuration>
              <doclet>edu.pdx.cs410J.grader.APIDocumentationDoclet</doclet>
              <docletArtifact>
                <groupId>io.github.davidwhitlock.cs410J</groupId>
                <artifactId>grader</artifactId>
                <version>${student.version}</version>
              </docletArtifact>
              <useStandardDocletOptions>false</useStandardDocletOptions>
              <show>private</show>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <version>${jacoco-maven-plugin.version}</version>
            <executions>
              <execution>
                <id>default-check</id>
                <goals>
                  <goal>check</goal>
                </goals>
                <configuration>
                  <haltOnFailure>${haltOnFailingCoverage}</haltOnFailure>
                  <rules>
                    <rule>
                      <element>BUNDLE</element>
                      <limits>
                        <limit>
                          <counter>INSTRUCTION</counter>
                          <value>COVEREDRATIO</value>
                          <minimum>${jacoco.min.instruction.covered.ratio}</minimum>
                        </limit>
                        <limit>
                          <counter>CLASS</counter>
                          <value>MISSEDCOUNT</value>
                          <maximum>${jacoco.max.missed.classes}</maximum>
                        </limit>
                      </limits>
                    </rule>
                  </rules>
                  <dataFile>${project.build.directory}/jacoco-merged.exec</dataFile>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>


text:
extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace net
      {
        namespace loader
        {
            class Resource;
            class URLLoader;
            class URLStreamHandlerCache;
        }
      }
    }
  }
  namespace java
  {
    namespace net
    {
        class URL;
        class URLClassLoader;
        class URLStreamHandlerFactory;
    }
    namespace security
    {
        class CodeSource;
    }
  }
}

class gnu::java::net::loader::URLLoader : public ::java::lang::Object
{

public:
  URLLoader(::java::net::URLClassLoader *, ::gnu::java::net::loader::URLStreamHandlerCache *, ::java::net::URLStreamHandlerFactory *, ::java::net::URL *);
  URLLoader(::java::net::URLClassLoader *, ::gnu::java::net::loader::URLStreamHandlerCache *, ::java::net::URLStreamHandlerFactory *, ::java::net::URL *, ::java::net::URL *);
  virtual ::java::net::URL * getBaseURL();
  virtual ::java::lang::Class * getClass(::java::lang::String *);
  virtual ::gnu::java::net::loader::Resource * getResource(::java::lang::String *) = 0;
  virtual ::java::util::jar::Manifest * getManifest();
  virtual ::java::util::ArrayList * getClassPath();
public: // actually package-private
  ::java::net::URLClassLoader * __attribute__((aligned(__alignof__( ::java::lang::Object)))) classloader;
  ::java::net::URL * baseURL;
  ::java::net::URLStreamHandlerFactory * factory;
  ::gnu::java::net::loader::URLStreamHandlerCache * cache;
  ::java::security::CodeSource * noCertCodeSource;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_net_loader_URLLoader__


text:
<!doctype html>

	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link href="bootstrap3/css/bootstrap.css" rel="stylesheet" />
    <link href="bootstrap3/css/font-awesome.css" rel="stylesheet" />

	<link href="assets/css/get-shit-done.css" rel="stylesheet" />
    <link href="assets/css/demo.css" rel="stylesheet" />

    <link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Grand+Hotel' rel='stylesheet' type='text/css'>

                Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

              Thought Continuum

                      Publications

Catch me if you can...

Mama Reloaded

The land of myth and naught

Press

Press

"...skilled and original..."

"...a creative unusual book that is raw, honest and sometimes disturbing..."

- Balboa Press

"A diverting space oddity that flies against the tailwinds of UFO-tabloid literature"

- Kirkus Reviews


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluidFlow.Activities;
using FluidFlow.Serialization;

namespace FluidFlow.Sample1
{
    public class TaskStore : ITaskStateStore
    {
        public async Task Save(IActivity task)
        {
            await Task.Delay(250);
        }

        public Task<T> Get<T>(Guid id) where T : IActivity
        {
            return null;
        }
    }

    public class ServiceQueue : IServiceQueue
    {
        public void AddTask(IDelayedActivity task)
        {

        }
    }
}


text:
#ifndef __VOM_DHCP_CLIENT_H__
#define __VOM_DHCP_CLIENT_H__

#include "vom/hw.hpp"
#include "vom/inspect.hpp"
#include "vom/interface.hpp"
#include "vom/object_base.hpp"
#include "vom/om.hpp"
#include "vom/prefix.hpp"
#include "vom/singular_db.hpp"

namespace VOM {
namespace dhcp_client_cmds {
class events_cmd;
};
/**
 * A representation of DHCP client on an interface
 */
class dhcp_client : public object_base
{
public:
  /**
   * typedef for the DHCP client key type
   */
  typedef interface::key_t key_t;

  struct state_t : enum_base<state_t>
  {
    const static state_t DISCOVER;
    const static state_t REQUEST;
    const static state_t BOUND;

    static const state_t& from_vpp(int i);

  private:
    /**
     * Private constructor taking the value and the string name
     */
    state_t(int v, const std::string& s);
  };

  /**
   * A DHCP lease data
   */
  struct lease_t
  {
    lease_t();
    lease_t(const state_t& state,
            std::shared_ptr<interface> itf,
            const boost::asio::ip::address& router_address,
            const route::prefix_t& host_prefix,
            const std::string& hostname,
            const mac_address_t& mac);

    std::string to_string() const;

    const state_t& state;
    std::shared_ptr<interface> itf;
    boost::asio::ip::address router_address;
    route::prefix_t host_prefix;
    std::string hostname;
    mac_address_t mac;
  };

  /**
   * A class that listens to DHCP Events
   */
  class event_listener
  {
  public:
    /**
     * Constructor
     */
    event_listener();

    /**
     * listener's virtual function invoked when a DHCP event is
     * available to read
     */
    virtual void handle_dhcp_event(std::shared_ptr<lease_t> e) = 0;

    /**
     * Return the HW::item associated with this command
     */
    HW::item<bool>& status();

  protected:
    /**
     * The HW::item associated with this command
     */
    HW::item<bool> m_status;
  };

  /**
   * Construct a new object matching the desried state
   */
  dhcp_client(const interface& itf,
              const std::string& hostname,
              bool set_broadcast_flag = true,
              const ip_dscp_t& dscp = ip_dscp_t::DSCP_CS0,
              event_listener* ev = nullptr);

  /**
   * Construct a new object matching the desried state
   */
  dhcp_client(const interface& itf,
              const std::string& hostname,
              const l2_address_t& client_id,
              bool set_broadcast_flag = true,
              const ip_dscp_t& dscp = ip_dscp_t::DSCP_CS0,
              event_listener* ev = nullptr);

  /**
   * Copy Constructor
   */
  dhcp_client(const dhcp_client& o);

  /**
   * Destructor
   */
  ~dhcp_client();

  /**
   * Comparison operator - for UT
   */
  bool operator==(const dhcp_client& d) const;

  /**
   * Return the object's key
   */
  const key_t& key() const;

  /**
   * Return the 'singular' of the DHCP client that matches this object
   */
  std::shared_ptr<dhcp_client> singular() const;

  /**
   * convert to string format for debug purposes
   */
  std::string to_string() const;

  /**
   * Dump all DHCP clients into the stream provided
   */
  static void dump(std::ostream& os);

  /**
   * Find a DHCP client from its key
   */
  static std::shared_ptr<dhcp_client> find(const key_t& k);

  /**
   * return the current lease data
   */
  const std::shared_ptr<lease_t> lease() const;

private:
  /**
   * Class definition for listeners to OM events
   */
  class event_handler : public OM::listener, public inspect::command_handler
  {
  public:
    event_handler();
    virtual ~event_handler() = default;

    /**
     * Handle a populate event
     */
    void handle_populate(const client_db::key_t& key);

    /**
     * Handle a replay event
     */
    void handle_replay();

    /**
     * Show the object in the Singular DB
     */
    void show(std::ostream& os);

    /**
     * Get the sortable Id of the listener
     */
    dependency_t order() const;
  };

  /**
   * event_handler to register with OM
   */
  static event_handler m_evh;

  /**
   * Enquue commonds to the VPP command Q for the update
   */
  void update(const dhcp_client& obj);

  /**
   * Find or add DHCP client to the OM
   */
  static std::shared_ptr<dhcp_client> find_or_add(const dhcp_client& temp);

  /*
   * It's the OM class that calls singular()
   */
  friend class OM;

  /**
   * It's the singular_db class that calls replay()
   */
  friend class singular_db<key_t, dhcp_client>;

  /**
   * Sweep/reap the object if still stale
   */
  void sweep(void);

  /**
   * replay the object to create it in hardware
   */
  void replay(void);

  void lease(std::shared_ptr<lease_t> l);

  /**
   * A reference counting pointer to the interface on which DHCP client
   * resides. By holding the reference here, we can guarantee that
   * this object will outlive the interface
   */
  const std::shared_ptr<interface> m_itf;

  /**
   * The hostname in the DHCP client
   */
  const std::string m_hostname;

  /**
   * The option-61 client_id in the DHCP client
   */
  const l2_address_t m_client_id;

  /**
   * Flag to control the setting the of DHCP discover's broadcast flag
   */
  const bool m_set_broadcast_flag;

  /**
   * DSCP setting for generated IP packets
   */
  const ip_dscp_t m_dscp;

  /**
   * HW configuration for the binding. The bool representing the
   * do/don't bind.
   */
  HW::item<bool> m_binding;

  /**
   * A pointer to an event listener for client events
   */
  event_listener* m_evl;

  /**
   * Current lease state for this client
   */
  std::shared_ptr<lease_t> m_lease;

  std::shared_ptr<dhcp_client_cmds::events_cmd> m_event_cmd;

  void handle_dhcp_event(std::shared_ptr<lease_t> e);

  /**
   * A map of all Dhcp clients keyed against the interface.
   */
  static singular_db<key_t, dhcp_client> m_db;

  static std::weak_ptr<dhcp_client_cmds::events_cmd> m_s_event_cmd;
  static std::shared_ptr<dhcp_client_cmds::events_cmd> get_event_cmd();

  class dhcp_client_listener : public event_listener
  {
  public:
    /**
     * listener's virtual function invoked when a DHCP event is
     * available to read
     */
    void handle_dhcp_event(std::shared_ptr<lease_t> e);
  };
  static dhcp_client_listener m_listener;
};
};

/*
 * fd.io coding-style-patch-verification: OFF
 *
 * Local Variables:
 * eval: (c-set-style "mozilla")
 * End:
 */

#endif


text:
<?php

namespace Backend\Modules\FormBuilder\Actions;

use Backend\Core\Engine\Base\ActionEdit as BackendBaseActionEdit;
use Backend\Core\Engine\Model as BackendModel;
use Backend\Core\Engine\Form as BackendForm;
use Backend\Core\Language\Language as BL;
use Frontend\Core\Language\Language as FL;
use Backend\Modules\FormBuilder\Engine\Model as BackendFormBuilderModel;
use Backend\Modules\FormBuilder\Engine\Helper as FormBuilderHelper;

/**
 * This is the edit-action, it will display a form to edit an existing item
 */
class Edit extends BackendBaseActionEdit
{
    /**
     * Execute the action
     */
    public function execute()
    {
        $this->id = $this->getParameter('id', 'int');

        // does the item exist
        if ($this->id !== null && BackendFormBuilderModel::exists($this->id)) {
            parent::execute();
            $this->getData();
            $this->loadForm();
            $this->validateForm();
            $this->parse();
            $this->display();
        } else {
            // no item found, throw an exceptions, because somebody is fucking with our url
            $this->redirect(BackendModel::createURLForAction('Index') . '&error=non-existing');
        }
    }

    /**
     * Get the data
     */
    private function getData()
    {
        $this->record = BackendFormBuilderModel::get($this->id);
    }

    /**
     * Load the form
     */
    private function loadForm()
    {
        $this->frm = new BackendForm('edit');
        $this->frm->addText('name', $this->record['name']);
        $this->frm->addDropdown(
            'method',
            array(
                'database' => BL::getLabel('MethodDatabase'),
                'database_email' => BL::getLabel('MethodDatabaseEmail'),
            ),
            $this->record['method']
        );
        $this->frm->addText('email', implode(',', (array) $this->record['email']));
        $this->frm->addText('identifier', $this->record['identifier']);
        $this->frm->addEditor('success_message', $this->record['success_message']);

        // textfield dialog
        $this->frm->addText('textbox_label');
        $this->frm->addText('textbox_value');
        $this->frm->addText('textbox_placeholder');
        $this->frm->addText('textbox_classname');
        $this->frm->addCheckbox('textbox_required');
        $this->frm->addCheckbox('textbox_reply_to');
        $this->frm->addText('textbox_required_error_message');
        $this->frm->addDropdown(
            'textbox_validation',
            array(
                '' => '',
                'email' => BL::getLabel('Email'),
                'numeric' => BL::getLabel('Numeric'),
            )
        );
        $this->frm->addText('textbox_validation_parameter');
        $this->frm->addText('textbox_error_message');

        // textarea dialog
        $this->frm->addText('textarea_label');
        $this->frm->addTextarea('textarea_value');
        $this->frm->getField('textarea_value')->setAttribute('cols', 30);
        $this->frm->addText('textarea_placeholder');
        $this->frm->addText('textarea_classname');
        $this->frm->addCheckbox('textarea_required');
        $this->frm->addText('textarea_required_error_message');
        $this->frm->addDropdown('textarea_validation', array('' => ''));
        $this->frm->addText('textarea_validation_parameter');
        $this->frm->addText('textarea_error_message');

        // datetime dialog
        $this->frm->addText('datetime_label');
        $this->frm->addDropdown(
            'datetime_value_amount',
            array(
                '' => '',
                '1' => '+1',
                '2' => '+2',
                '3' => '+3',
                '4' => '+4',
                '5' => '+5',
            )
        );
        $this->frm->addDropdown(
            'datetime_value_type',
            array(
                '' => '',
                'today' => BL::getLabel('Today'),
                'day' => BL::getLabel('Day'),
                'week' => BL::getLabel('Week'),
                'month' => BL::getLabel('Month'),
                'year' => BL::getLabel('Year'),
            )
        );
        $this->frm->addDropdown(
            'datetime_type',
            array(
                'date' => BL::getLabel('Date'),
                'time' => BL::getLabel('Time'),
            )
        );
        $this->frm->addCheckbox('datetime_required');
        $this->frm->addText('datetime_required_error_message');
        $this->frm->addDropdown(
            'datetime_type',
            array(
                'date' => BL::getLabel('Date'),
                'time' => BL::getLabel('Time'),
            )
        );
        $this->frm->addDropdown(
            'datetime_validation',
            array(
                '' => '',
                'time' => BL::getLabel('Time'),
            )
        );
        $this->frm->addText('datetime_classname');
        $this->frm->addText('datetime_error_message');

        // dropdown dialog
        $this->frm->addText('dropdown_label');
        $this->frm->addText('dropdown_values');
        $this->frm->addDropdown('dropdown_default_value', array('' => ''))->setAttribute('rel', 'dropDownValues');
        $this->frm->addCheckbox('dropdown_required');
        $this->frm->addText('dropdown_required_error_message');
        $this->frm->addText('dropdown_classname');

        // radiobutton dialog
        $this->frm->addText('radiobutton_label');
        $this->frm->addText('radiobutton_values');
        $this->frm->addDropdown('radiobutton_default_value', array('' => ''))->setAttribute('rel', 'radioButtonValues');
        $this->frm->addCheckbox('radiobutton_required');
        $this->frm->addText('radiobutton_required_error_message');
        $this->frm->addText('radiobutton_classname');

        // checkbox dialog
        $this->frm->addText('checkbox_label');
        $this->frm->addText('checkbox_values');
        $this->frm->addDropdown('checkbox_default_value', array('' => ''))->setAttribute('rel', 'checkBoxValues');
        $this->frm->addCheckbox('checkbox_required');
        $this->frm->addText('checkbox_required_error_message');
        $this->frm->addText('checkbox_classname');

        // heading dialog
        $this->frm->addText('heading');

        // paragraph dialog
        $this->frm->addEditor('paragraph');
        $this->frm->getField('paragraph')->setAttribute('cols', 30);

        // submit dialog
        $this->frm->addText('submit');
    }

    /**
     * Parse the form
     */
    protected function parse()
    {
        $this->parseFields();

        parent::parse();

        $this->tpl->assign('id', $this->record['id']);
        $this->tpl->assign('name', $this->record['name']);

        // parse error messages
        $this->parseErrorMessages();
    }

    /**
     * Parse the default error messages
     */
    private function parseErrorMessages()
    {
        // set frontend locale
        FL::setLocale(BL::getWorkingLanguage(), true);

        // assign error messages
        $this->tpl->assign('errors', BackendFormBuilderModel::getErrors());
    }

    /**
     * Parse the fields
     */
    private function parseFields()
    {
        $fieldsHTML = array();

        // get fields
        $fields = BackendFormBuilderModel::getFields($this->id);

        // loop fields
        foreach ($fields as $field) {
            // submit button
            if ($field['type'] == 'submit') {
                // assign
                $this->tpl->assign('submitId', $field['id']);

                // add field
                $btn = $this->frm->addButton(
                    'submit_field',
                    \SpoonFilter::htmlspecialcharsDecode($field['settings']['values']),
                    'button',
                    'btn btn-default'
                );
                $btn->setAttribute('disabled', 'disabled');

                // skip
                continue;
            }

            // parse field to html
            $fieldsHTML[]['field'] = FormBuilderHelper::parseField($field);
        }

        // assign iteration
        $this->tpl->assign('fields', $fieldsHTML);
    }

    /**
     * Validate the form
     */
    private function validateForm()
    {
        if ($this->frm->isSubmitted()) {
            $this->frm->cleanupFields();

            // shorten the fields
            $txtName = $this->frm->getField('name');
            $txtEmail = $this->frm->getField('email');
            $ddmMethod = $this->frm->getField('method');
            $txtSuccessMessage = $this->frm->getField('success_message');
            $txtIdentifier = $this->frm->getField('identifier');

            $emailAddresses = (array) explode(',', $txtEmail->getValue());

            // validate fields
            $txtName->isFilled(BL::getError('NameIsRequired'));
            $txtSuccessMessage->isFilled(BL::getError('SuccessMessageIsRequired'));
            if ($ddmMethod->isFilled(BL::getError('NameIsRequired')) && $ddmMethod->getValue() == 'database_email') {
                $error = false;

                // check the addresses
                foreach ($emailAddresses as $address) {
                    $address = trim($address);

                    if (!\SpoonFilter::isEmail($address)) {
                        $error = true;
                        break;
                    }
                }

                // add error
                if ($error) {
                    $txtEmail->addError(BL::getError('EmailIsInvalid'));
                }
            }

            // identifier
            if ($txtIdentifier->isFilled()) {
                // invalid characters
                if (!\SpoonFilter::isValidAgainstRegexp('/^[a-zA-Z0-9\.\_\-]+$/', $txtIdentifier->getValue())) {
                    $txtIdentifier->setError(BL::getError('InvalidIdentifier'));
                } elseif (BackendFormBuilderModel::existsIdentifier($txtIdentifier->getValue(), $this->id)) {
                    $txtIdentifier->setError(BL::getError('UniqueIdentifier'));
                }
            }

            if ($this->frm->isCorrect()) {
                // build array
                $values['name'] = $txtName->getValue();
                $values['method'] = $ddmMethod->getValue();
                $values['email'] = ($ddmMethod->getValue() == 'database_email') ? serialize($emailAddresses) : null;
                $values['success_message'] = $txtSuccessMessage->getValue(true);
                $values['identifier'] = ($txtIdentifier->isFilled() ?
                    $txtIdentifier->getValue() :
                    BackendFormBuilderModel::createIdentifier()
                );
                $values['edited_on'] = BackendModel::getUTCDate();

                // insert the item
                $id = (int) BackendFormBuilderModel::update($this->id, $values);

                // trigger event
                BackendModel::triggerEvent($this->getModule(), 'after_edit', array('item' => $values));

                // everything is saved, so redirect to the overview
                $this->redirect(
                    BackendModel::createURLForAction('Index') . '&report=edited&var=' .
                    rawurlencode($values['name']) . '&highlight=row-' . $id
                );
            }
        }
    }
}


text:
require 'ruby_kml'

module EagleTree
  module Log

    # Represents an individual recording session.
    class Session

      # @return [Fixnum] this sessions number in the data file
      attr_reader :number

      # @return [Array<Fixnum>] range of entries timestamps for this session
      attr_reader :range

      # @return [Array] rows of raw data from session
      attr_reader :rows

      def initialize(number, range)
        @number = number
        @range = range
      end

      def rows=(rows)
        @rows = rows
      end

      # Gets the duration of the session, in seconds.
      #
      # @return [Float] duration of the session, in seconds
      def duration
        @duration ||= (range[1] - range[0]) / 1000.0
      end

      def milliseconds
        @milliseconds ||= int_fields('Milliseconds')
      end

      def milliseconds?
        nonzero?(milliseconds)
      end

      def altitudes
        @altitudes ||= int_fields('Altitude')
      end

      def altitudes?
        nonzero?(altitudes)
      end

      # Gets the air speed (Pitot), in the desired unit.
      #
      # @param unit one of :knots, :mph, :kph to define desired unit
      # @return [Float] speed in the desired unit
      def airspeeds(unit = :mph)
        @airspeeds ||= float_fields('Airspeed')
      end

      def airspeeds?
        nonzero?(airspeeds)
      end

      def servo_currents
        @servo_currents ||= float_fields('ServoCurrent*100').map { |val| val / 100.0 }
      end

      def servo_currents?
        nonzero?(servo_currents)
      end

      def throttles
        @throttles ||= int_fields('Throttle')
      end

      def throttles?
        nonzero?(throttles)
      end

      def pack_voltages
        @pack_voltages ||= float_fields('PackVolt*100').map { |val| val / 100.0 }
      end

      def pack_voltages?
        nonzero?(pack_voltages)
      end

      def amps
        @amps ||= float_fields('Amps*100').map { |val| val / 100.0 }
      end

      def amps?
        nonzero?(amps)
      end

      def temps1
        @temps1 ||= float_fields('Temp1*10').map { |val| val / 10.0 }
      end

      def temps1?
        nonzero?(temps1)
      end

      def temps2
        @temps2 ||= float_fields('Temp2*10').map { |val| val / 10.0 }
      end

      def temps2?
        nonzero?(temps2)
      end

      def temps3
        @temps3 ||= float_fields('Temp3*10').map { |val| val / 10.0 }
      end

      def temps3?
        nonzero?(temps3)
      end

      def rpms
        @rpms ||= int_fields('RPM')
      end

      def rpms?
        nonzero?(rpms)
      end

      def rpms2
        @rpms2 ||= int_fields('RPM2')
      end

      def rpms2?
        nonzero?(rpms2)
      end

      def latitudes
        @latitudes ||= float_fields('GPSLat')
      end

      def latitudes?
        nonzero?(latitudes)
      end

      def longitudes
        @longitudes ||= float_fields('GPSLon')
      end

      def longitudes?
        nonzero?(longitudes)
      end

      def gps_altitudes
        @gps_altitudes ||= float_fields('GPSAlt')
      end

      def gps_altitudes?
        nonzero?(gps_altitudes)
      end

      # Gets the ground speed (GPS), in the desired unit.
      #
      # @param unit one of :knots, :mph, :kph to define desired unit
      # @return [Float] speed in the desired unit
      def gps_speeds(unit = :mph)
        @gps_speeds ||= float_fields('GPSSpeed')
      end

      def gps_speeds?
        nonzero?(gps_speeds)
      end

      def gps_courses
        @gps_courses ||= float_fields('GPSCourse')
      end

      def gps_courses?
        nonzero?(gps_courses)
      end

      def gps_satellites
        @gps_satellites ||= int_fields('NumSats')
      end

      def gps_satellites?
        nonzero?(gps_satellites)
      end

      def coords
        @coords ||= longitudes.zip(latitudes, gps_altitudes, gps_courses)
      end

      def coords?
        longitudes? || latitudes? || gps_altitudes? || gps_courses?
      end

      # Determines if KML methods can be called for this session.
      #
      # @return [Boolean] true if KML can be generated for this session, false otherwise
      def to_kml?
        coords?
      end

      # Converts the session into a KML document containing a placemark.
      #
      # @param file_options [Hash] hash containing options for file
      # @param placemark_options [Hash] hash containing options for placemark
      # @return [String] KML document for the session
      # @see #to_kml_file file options
      # @see #to_kml_placemark placemark options
      def to_kml(file_options = {}, placemark_options = {})
        raise RuntimeError, 'No coordinates available for KML generation' unless to_kml?
        to_kml_file(file_options, placemark_options).render
      end

      # Converts the session into a KMLFile containing a placemark.
      #
      # @param file_options [Hash] hash containing options for file
      # @option file_options [String] :name name option of KML::Document
      # @option file_options [String] :description name option of KML::Document
      # @option file_options [String] :style_id id option of KML::Style
      # @param placemark_options [Hash] hash containing options for placemark
      # @return [KMLFile] file for the session
      # @see #to_kml_placemark placemark options
      def to_kml_file(file_options = {}, placemark_options = {})
        raise RuntimeError, 'No coordinates available for KML generation' unless to_kml?
        options = apply_default_file_options(file_options)

        kml = KMLFile.new
        kml.objects << KML::Document.new(
          :name => options[:name],
          :description => options[:description],
          :styles => [
            KML::Style.new(
              :id => options[:style_id],
              :line_style => KML::LineStyle.new(:color => '7F00FFFF', :width => 4),
              :poly_style => KML::PolyStyle.new(:color => '7F00FF00')
            )
          ],
          :features => [ to_kml_placemark(placemark_options) ]
        )
        kml
      end

      # Converts the session into a KML::Placemark containing GPS coordinates.
      #
      # @param options [Hash] hash containing options for placemark
      # @option options [String] :altitude_mode altitude_mode option of KML::LineString
      # @option options [Boolean] :extrude extrude option of KML::LineString
      # @option options [String] :name name option of KML::Placemark
      # @option options [String] :style_url style_url option of KML::Placemark
      # @option options [Boolean] :tessellate tessellate option of KML::LineString
      # @return [KML::Placemark] placemark for the session
      def to_kml_placemark(options = {})
        raise RuntimeError, 'No coordinates available for KML generation' unless to_kml?
        options = apply_default_placemark_options(options)

        KML::Placemark.new(
          :name => options[:name],
          :style_url => options[:style_url],
          :geometry => KML::LineString.new(
            :altitude_mode => options[:altitude_mode],
            :extrude => options[:extrude],
            :tessellate => options[:tessellate],
            :coordinates => coords.map { |c| c.join(',') }.join(' ')
          )
        )
      end

      private

      def apply_default_file_options(options)
        options = { :name => 'Eagle Tree GPS Path' }.merge(options)
        options = { :description => 'Session paths for GPS log data' }.merge(options)
        options = { :style_id => 'default-poly-style' }.merge(options)
        options
      end

      def apply_default_placemark_options(options)
        options = { :altitude_mode => 'absolute' }.merge(options)
        options = { :extrude => true }.merge(options)
        options = { :name => "Session (#{duration.round(1)}s)" }.merge(options)
        options = { :style_url => '#default-poly-style' }.merge(options)
        options = { :tessellate => true }.merge(options)
        options
      end

      def nonzero?(array)
        !array.all?(&:zero?)
      end

      def int_fields(name)
        fields(name).map(&:to_i)
      end

      def float_fields(name)
        fields(name).map(&:to_f)
      end

      def fields(name)
        @rows.each_with_object(name).map(&:[])
      end

    end

  end
end


text:
package com.planet_ink.coffee_mud.Commands;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

@SuppressWarnings("rawtypes")
public class Config extends StdCommand
{
	public Config(){}

	private final String[] access=I(new String[]{"CONFIG","AUTO"});
	@Override public String[] getAccessWords(){return access;}
	@Override
	public boolean execute(MOB mob, Vector commands, int metaFlags)
		throws java.io.IOException
	{
		final StringBuffer msg=new StringBuffer(L("^HYour configuration flags:^?\n\r"));
		for(MOB.Attrib a : MOB.Attrib.values())
		{
			if((a==MOB.Attrib.SYSOPMSGS)&&(!(CMSecurity.isAllowed(mob,mob.location(),CMSecurity.SecFlag.SYSMSGS))))
				continue;
			if((a==MOB.Attrib.AUTOMAP)&&(CMProps.getIntVar(CMProps.Int.AWARERANGE)<=0))
				continue;

			msg.append(CMStrings.padRight(a.getName(),15)+": ");
			boolean set=mob.isAttribute(a);
			if(a.isAutoReversed())
				set=!set;
			msg.append(set?L("ON"):L("OFF"));
			msg.append("\n\r");
		}
		if(mob.playerStats()!=null)
		{
			final String wrap=(mob.playerStats().getWrap()!=0)?(""+mob.playerStats().getWrap()):"Disabled";
			msg.append(CMStrings.padRight(L("LINEWRAP"),15)+": "+wrap);
			msg.append("\n\r");
			final String pageBreak=(mob.playerStats().getPageBreak()!=0)?(""+mob.playerStats().getPageBreak()):"Disabled";
			msg.append(CMStrings.padRight(L("PAGEBREAK"),15)+": "+pageBreak);
			msg.append("\n\r");
		}
		mob.tell(msg.toString());
		return false;
	}

	@Override public boolean canBeOrdered(){return true;}

}


text:
.class public Landroid/database/sqlite/SQLiteException;
.super Landroid/database/SQLException;
.source "SQLiteException.java"

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

    .prologue
    .line 25
    invoke-direct {p0}, Landroid/database/SQLException;-><init>()V

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .locals 0
    .param p1, "error"    # Ljava/lang/String;

    .prologue
    .line 29
    invoke-direct {p0, p1}, Landroid/database/SQLException;-><init>(Ljava/lang/String;)V

    .line 28
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/Throwable;)V
    .locals 0
    .param p1, "error"    # Ljava/lang/String;
    .param p2, "cause"    # Ljava/lang/Throwable;

    .prologue
    .line 33
    invoke-direct {p0, p1, p2}, Landroid/database/SQLException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 32
    return-void
.end method


text:
<?xml version='1.0' encoding='UTF-8'?>
<response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://metabase.moreover.com/schema/articles10.xsd">
    <status>SUCCESS</status>
    <messageCode></messageCode>
    <userMessage></userMessage>
    <developerMessage></developerMessage>
    <articles>
        <article>
            <sequenceId>444200930169</sequenceId>
            <id>20989276812</id>
            <language>English</language>
            <title>Professional networking site LinkedIn to acquire Lynda.com for $1.5 bn</title>
            <content>Britain News.Net Thursday 9th April, 2015

                NEW YORK - LinkedIn Corp, a leading professional social network operator, entered into an agreement to acquire privately held online education company Lynda.com in a cash-and-stock deal valued at about $1.5 billion.

                Under the terms of the deal, LinkedIn will pay approximately 52 percent of the transaction value in cash and remaining 48 percent in stock. Subject to regulatory clearances, the acquisition is expected to close during the second quarter of 2015, LinkedIn announced Thursday.

                Founded in 1995 by Lynda Weinman and Bruce Heavin,Lynda.com offers a range of courses both for individuals and for corporate.

                For individuals on subscription fees ranging between $250 and $375 per year, Lynda.com offers a number of courses in English, German, French, Spanish, and Japanese aimed at improving business, technology and creative skills.

                For corporate, government and educational organizations, Lynda.com through its specialized courses like LyndaEnterprise, LyndaPro, LyndaCampus, LyndaLibrary and LyndaKiosk offers a massive library of high-quality courses.

                "The mission of LinkedIn and the mission of Lynda.com are highly aligned. Both companies seek to help professionals be better at what they do," said Jeff Weiner, CEO of LinkedIn.

                "Lynda.com's extensive library of premium video content helps empower people to develop the skills needed to accelerate their careers. When integrated with the hundreds of millions of members and millions of jobs on LinkedIn, Lynda.com can change the way in which people connect to opportunity."

                LinkedIn, which helps companies hire, market and sell, feels the acquisition will help it offer guidance to users who want to know what skills are needed for the available jobs in their desired city, Ryan Roslansky, LinkedIn's head of content, wrote in a blog.

                The deal will bolster LinkedIn's hiring business, which has clocked revenue growth of nearly 50 percent in each of the last three quarters, helped by rapid expansion in international markets including China.

                "In LinkedIn, we have found an incredible partner who shares our vision and passion for empowering people around the world to make real change in their lives through access to information, learning and professional development," said Eric Robison, CEO of lynda.com.</content>
            <tags/>
            <publishedDate>2015-04-10T02:18:50Z</publishedDate>
            <harvestDate>2015-04-10T04:17:33Z</harvestDate>
            <embargoDate></embargoDate>
            <licenseEndDate></licenseEndDate>
            <url>http://ct.moreover.com/?a=20989276812&p=1d0&v=1&x=RUTmIGDopbl4SaxW8b5vKA</url>
            <commentsUrl></commentsUrl>
            <outboundUrls/>
            <dataFormat>text</dataFormat>
            <copyright></copyright>
            <loginStatus></loginStatus>
            <duplicateGroupId>20988984761</duplicateGroupId>
            <media/>
            <publishingPlatform>
                <itemId></itemId>
                <statusId></statusId>
                <itemType></itemType>
                <inReplyToUserId></inReplyToUserId>
                <inReplyToStatusId></inReplyToStatusId>
                <userMentions/>
                <totalViews></totalViews>
            </publishingPlatform>
            <adultLanguage>false</adultLanguage>
            <topics/>
            <companies>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>LKI</symbol>
                    <exchange>MUN</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>LKI</symbol>
                    <exchange>FRA</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>LKI</symbol>
                    <exchange>BER</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>LNKD</symbol>
                    <exchange>MEX</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>LNKD</symbol>
                    <exchange>SWX</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>LNKD</symbol>
                    <exchange>SGO</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>LNKD</symbol>
                    <exchange>NYS</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>LinkedIn Corp</name>
                    <symbol>0QZJ</symbol>
                    <exchange>LTS</exchange>
                    <isin>US53578A1088</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
                <company>
                    <name>People Co., Ltd.</name>
                    <symbol>7865</symbol>
                    <exchange>TKS</exchange>
                    <isin>JP3801560008</isin>
                    <titleCount>0</titleCount>
                    <contentCount>1</contentCount>
                    <primary>true</primary>
                </company>
            </companies>
            <semantics>
                <events/>
                <entities/>
            </semantics>
            <sentiment>
                <score>0.3977014</score>
                <entities>
                    <entity>
                        <type>Company</type>
                        <value>LinkedIn Corp</value>
                        <mentions>8</mentions>
                        <score>5.16333</score>
                        <evidence>7</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Company</type>
                        <value>Lynda.com</value>
                        <mentions>6</mentions>
                        <score>3.345</score>
                        <evidence>7</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Person</type>
                        <value>Lynda Weinman</value>
                        <mentions>1</mentions>
                        <score>0.0</score>
                        <evidence>1</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Person</type>
                        <value>Bruce Heavin</value>
                        <mentions>1</mentions>
                        <score>0.0</score>
                        <evidence>1</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Product</type>
                        <value>LyndaLibrary</value>
                        <mentions>1</mentions>
                        <score>1.04325</score>
                        <evidence>5</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Product</type>
                        <value>LyndaKiosk</value>
                        <mentions>1</mentions>
                        <score>1.04325</score>
                        <evidence>5</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Person</type>
                        <value>Jeff Weiner</value>
                        <mentions>1</mentions>
                        <score>0.399667</score>
                        <evidence>5</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Person</type>
                        <value>Ryan Roslansky</value>
                        <mentions>1</mentions>
                        <score>2.18284</score>
                        <evidence>5</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Location</type>
                        <value>China</value>
                        <mentions>2</mentions>
                        <score>2.45932</score>
                        <evidence>7</evidence>
                        <confident>true</confident>
                    </entity>
                    <entity>
                        <type>Person</type>
                        <value>Eric Robison</value>
                        <mentions>1</mentions>
                        <score>1.80835</score>
                        <evidence>4</evidence>
                        <confident>true</confident>
                    </entity>
                </entities>
            </sentiment>
            <author>
                <name></name>
                <homeUrl></homeUrl>
                <email></email>
                <description></description>
                <dateLastActive></dateLastActive>
                <publishingPlatform>
                    <userName></userName>
                    <userId></userId>
                    <statusesCount></statusesCount>
                    <totalViews></totalViews>
                    <followingCount></followingCount>
                    <followersCount></followersCount>
                    <kloutScore></kloutScore>
                </publishingPlatform>
            </author>
            <source>
                <name>Britain News.Net</name>
                <homeUrl>http://www.britainnews.net</homeUrl>
                <publisher></publisher>
                <primaryLanguage></primaryLanguage>
                <primaryMediaType></primaryMediaType>
                <category>National</category>
                <editorialRank>5</editorialRank>
                <location>
                    <country>United Kingdom</country>
                    <countryCode>GB</countryCode>
                    <region>Europe</region>
                    <subregion>Northern Europe</subregion>
                    <state></state>
                    <zipArea></zipArea>
                    <zipCode></zipCode>
                </location>
                <feed>
                    <id>169658989</id>
                    <name>Britain News.Net</name>
                    <mediaType>News</mediaType>
                    <publishingPlatform></publishingPlatform>
                    <idFromPublisher></idFromPublisher>
                    <generator></generator>
                    <description></description>
                    <tags/>
                    <imageUrl></imageUrl>
                    <copyright></copyright>
                    <language>Unassigned</language>
                    <dataFormat>text</dataFormat>
                    <rank>
                        <autoRank></autoRank>
                        <autoRankOrder></autoRankOrder>
                        <inboundLinkCount>0</inboundLinkCount>
                    </rank>
                    <inWhiteList>true</inWhiteList>
                    <autoTopics/>
                    <editorialTopics>
                        <editorialTopic>Standard</editorialTopic>
                        <editorialTopic>News</editorialTopic>
                    </editorialTopics>
                    <genre>General</genre>
                </feed>
            </source>
        </article>
    </articles>
</response>


text:
.. _schemaregistry_changelog:

Changelog
=========

Version 2.0.1
-------------

Schema Registry
~~~~~~~~~~~~~~~

* `PR-286 <https://github.com/confluentinc/schema-registry/pull/286>`_ - Update Kafka version to 0.9.0.1-cp1.

Version 2.0.0
-------------

Schema Registry
~~~~~~~~~~~~~~~

* `PR-141 <https://github.com/confluentinc/schema-registry/pull/141>`_ - Incorrect path to log4j.properties file for simple zip file layout
* `PR-143 <https://github.com/confluentinc/schema-registry/pull/143>`_ - schema-registry-start does not work with -daemon argument
* `PR-152 <https://github.com/confluentinc/schema-registry/pull/152>`_ - Added point about Google code style to Readme.
* `PR-163 <https://github.com/confluentinc/schema-registry/pull/163>`_ - Expose more information when registry fails to start
* `PR-165 <https://github.com/confluentinc/schema-registry/pull/165>`_ - Add compatibility support for SchemaRegistryClient
* `PR-167 <https://github.com/confluentinc/schema-registry/pull/167>`_ - Update the versionCache with a new schemaVersionMap for a subject
* `PR-169 <https://github.com/confluentinc/schema-registry/pull/169>`_ - Use correct URL to update compatibility setting of a subject
* `PR-180 <https://github.com/confluentinc/schema-registry/pull/180>`_ - GH-177: Remove unneeded content-type headers for GET ops in quickstart and README
* `PR-184 <https://github.com/confluentinc/schema-registry/pull/184>`_ - Support multiple registry urls in client
* `PR-186 <https://github.com/confluentinc/schema-registry/pull/186>`_ - Rename LocalSchemaRegistryClient to make it clear it is only intended to be used as a mock in tests. Fixes #185.
* `PR-187 <https://github.com/confluentinc/schema-registry/pull/187>`_ - Correct example response for POST /subjects/(string: subject)/versions
* `PR-188 <https://github.com/confluentinc/schema-registry/pull/188>`_ - Address GH-168; enable unit testing of CachedSchemaRegistryClient
* `PR-195 <https://github.com/confluentinc/schema-registry/pull/195>`_ - Fixed typo in Exception message
* `PR-196 <https://github.com/confluentinc/schema-registry/pull/196>`_ - Require Java 7
* `PR-197 <https://github.com/confluentinc/schema-registry/pull/197>`_ - Enable test code sharing
* `PR-198 <https://github.com/confluentinc/schema-registry/pull/198>`_ - Update jersey, jackson and junit versions to match rest-utils
* `PR-202 <https://github.com/confluentinc/schema-registry/pull/202>`_ - Correct minor docs error in example response
* `PR-203 <https://github.com/confluentinc/schema-registry/pull/203>`_ - Issue 194 rename main
* `PR-207 <https://github.com/confluentinc/schema-registry/pull/207>`_ - Issue #170: PUT /config/(string: subject) should return 4xx for unknown subjects
* `PR-210 <https://github.com/confluentinc/schema-registry/pull/210>`_ - Issue #208: Several RestApiTest test cases don't test proper exception behavior
* `PR-219 <https://github.com/confluentinc/schema-registry/pull/219>`_ - Update Kafka version to 0.8.3-SNAPSHOT so we can start developing using upcoming 0.8.3 features.
* `PR-237 <https://github.com/confluentinc/schema-registry/pull/237>`_ - Update uses of ZkUtils to match changes made in KAFKA-2639.
* `PR-240 <https://github.com/confluentinc/schema-registry/pull/240>`_ - Fixes Typo in the docs. 'actsas' -> 'acts as'
* `PR-242 <https://github.com/confluentinc/schema-registry/pull/242>`_ - Fixed schema registry build against kafka trunk
* `PR-243 <https://github.com/confluentinc/schema-registry/pull/243>`_ - Use x.y.z versioning scheme (i.e. 2.0.0-SNAPSHOT)
* `PR-245 <https://github.com/confluentinc/schema-registry/pull/245>`_ - Fix mvn assembly setup
* `PR-252 <https://github.com/confluentinc/schema-registry/pull/252>`_ - Use Kafka compiled with Scala 2.11
* `PR-257 <https://github.com/confluentinc/schema-registry/pull/257>`_ - Updated classpath in schema-registry-run-class to reflect changes in pom.xml
* `PR-258 <https://github.com/confluentinc/schema-registry/pull/258>`_ - CC-53: Add worker configs for Avro Kafka Connect that integrates with schema registry.

Serializers, Formatters, and Converters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* `PR-146 <https://github.com/confluentinc/schema-registry/pull/146>`_ - Added decoder to return a specific Avro record from bytes.
* `PR-162 <https://github.com/confluentinc/schema-registry/pull/162>`_ - Add implementation of new Deserializer interface.
* `PR-192 <https://github.com/confluentinc/schema-registry/pull/192>`_ - Add new module for Kafka JSON serialization stuff
* `PR-193 <https://github.com/confluentinc/schema-registry/pull/193>`_ - Add more JSON codec support
* `PR-200 <https://github.com/confluentinc/schema-registry/pull/200>`_ - Switch serializer config classes to use AbstractConfig from confluent-common instead of from Kafka.
* `PR-222 <https://github.com/confluentinc/schema-registry/pull/222>`_ - Add AvroConverter in new copycat-avro-converter jar to convert Copycat and Avro data.
* `PR-234 <https://github.com/confluentinc/schema-registry/pull/234>`_ - Add AvroConverter support for Decimal, Date, Time, and Timestamp logical types.
* `PR-235 <https://github.com/confluentinc/schema-registry/pull/235>`_ - Add caching of schema conversions in AvroData and AvroConverter.
* `PR-247 <https://github.com/confluentinc/schema-registry/pull/247>`_ - Update for Copycat -> Kafka Connect renaming.
* `PR-251 <https://github.com/confluentinc/schema-registry/pull/251>`_ - Add tests of conversion of null values from Kafka Connect and fix handling of null for int8 and int16 types.
* `PR-254 <https://github.com/confluentinc/schema-registry/pull/254>`_ - Ensure AvroConverter passes through null values without adding schemas and that deserialized null values are converted to SchemaAndValue.NULL.
* `PR-255 <https://github.com/confluentinc/schema-registry/pull/255>`_ - CC-44: Include version when deserializing Kafka Connect data.
* `PR-256 <https://github.com/confluentinc/schema-registry/pull/256>`_ - Encode null values for schemaless array entries and map keys and values as an Anything record.


text:
import Component from '@ember/component';
import layout from '../templates/components/slds-modal-header';

export default Component.extend({
  layout,
  classNames: 'slds-modal__header',

  actions: {
    modalClosed(closedAction) {
      if (closedAction) {
        closedAction();
      }
    }
  }
});


text:
package com.twosigma.beakerx.autocomplete;

import org.assertj.core.api.Assertions;
import org.junit.Test;

public class ClasspathScannerTest {

  @Test
  public void createClasspathScanner_hasPackagesAndClasses(){
    //when
    AutocompleteClasspathScanner cps = new AutocompleteClasspathScanner();
    //then
    Assertions.assertThat(cps.getPackages()).isNotEmpty();
    Assertions.assertThat(cps.getClasses("java.lang")).isNotEmpty();
  }

}


text:
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({
  adapter: new Adapter(),
  disableLifecycleMethods: true,
});


text:
using namespace zbar;
#endif

typedef enum {
    // default interface provided by UIImagePickerController - user manually
    // captures an image by pressing a button
    ZBarReaderControllerCameraModeDefault = 0,

    // automatically scan by taking screenshots with UIGetScreenImage().
    // resolution is limited by the screen, so this is inappropriate for
    // longer codes
    ZBarReaderControllerCameraModeSampling,

    // automatically scan by rapidly taking pictures with takePicture.
    // tradeoff resolution with frame rate by adjusting the crop, and size
    // properties of the reader along with the density configs of the image
    // scanner
    ZBarReaderControllerCameraModeSequence,

} ZBarReaderControllerCameraMode;

@class ZBarReaderController;

@protocol ZBarReaderDelegate <UIImagePickerControllerDelegate>
@optional

// called when no barcode is found in an image selected by the user.
// if retry is NO, the delegate *must* dismiss the controller
- (void) readerControllerDidFailToRead: (ZBarReaderController*) reader
                             withRetry: (BOOL) retry;

@end

@interface ZBarReaderController
    : UIImagePickerController
    < UINavigationControllerDelegate,
      UIImagePickerControllerDelegate >
{
    ZBarImageScanner *scanner;
    UIView *overlay, *boxView;
    CALayer *boxLayer;

    UIToolbar *toolbar;
    UIBarButtonItem *cancelBtn, *scanBtn, *space[3];
    UIButton *infoBtn;

    id <ZBarReaderDelegate> readerDelegate;
    BOOL showsZBarControls, showsHelpOnFail, takesPicture, enableCache;
    ZBarReaderControllerCameraMode cameraMode;
    CGRect scanCrop;
    NSInteger maxScanDimension;

    BOOL hasOverlay, sampling;
    uint64_t t_frame;
    double dt_frame;

    ZBarSymbol *symbol;
}

// access to configure image scanner
@property (readonly, nonatomic) ZBarImageScanner *scanner;

// barcode result recipient (NB don't use delegate)
@property (nonatomic, assign) id <ZBarReaderDelegate> readerDelegate;

// whether to use alternate control set
@property (nonatomic) BOOL showsZBarControls;

// whether to display helpful information when decoding fails
@property (nonatomic) BOOL showsHelpOnFail;

// how to use the camera (when sourceType == Camera)
@property (nonatomic) ZBarReaderControllerCameraMode cameraMode;

// whether to outline symbols with the green tracking box.
@property (nonatomic) BOOL tracksSymbols;

// whether to automatically take a full picture when a barcode is detected
// (when cameraMode == Sampling)
@property (nonatomic) BOOL takesPicture;

// whether to use the "cache" for realtime modes (default YES).  this can be
// used to safely disable the inter-frame consistency and duplicate checks,
// speeding up recognition, iff:
//     1. the controller is dismissed when a barcode is read and
//     2. unreliable symbologies are disabled (all EAN/UPC variants and I2/5)
@property (nonatomic) BOOL enableCache;

// crop images for scanning.  the original image will be cropped to this
// rectangle before scanning.  the rectangle is normalized to the image size
// and aspect ratio; useful values will place the rectangle between 0 and 1
// on each axis, where the x-axis corresponds to the image major axis.
// defaults to the full image (0, 0, 1, 1).
@property (nonatomic) CGRect scanCrop;

// scale image to scan.  after cropping, the image will be scaled if
// necessary, such that neither of its dimensions exceed this value.
// defaults to 640.
@property (nonatomic) NSInteger maxScanDimension;

// display the built-in help browser.  for use with custom overlays if
// you don't also want to create your own help view.  only send this
// message when the reader is displayed.  the argument will be passed
// to the onZBarHelp() javascript function.
- (void) showHelpWithReason: (NSString*) reason;

// direct scanner interface - scan UIImage and return something enumerable
- (id <NSFastEnumeration>) scanImage: (CGImageRef) image;

@end

extern NSString* const ZBarReaderControllerResults;


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.digitaltwins.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Properties related to ServiceBus. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "endpointType")
@JsonTypeName("ServiceBus")
@Fluent
public final class ServiceBus extends DigitalTwinsEndpointResourceProperties {
    /*
     * PrimaryConnectionString of the endpoint for key-based authentication.
     * Will be obfuscated during read.
     */
    @JsonProperty(value = "primaryConnectionString")
    private String primaryConnectionString;

    /*
     * SecondaryConnectionString of the endpoint for key-based authentication.
     * Will be obfuscated during read.
     */
    @JsonProperty(value = "secondaryConnectionString")
    private String secondaryConnectionString;

    /*
     * The URL of the ServiceBus namespace for identity-based authentication.
     * It must include the protocol 'sb://'.
     */
    @JsonProperty(value = "endpointUri")
    private String endpointUri;

    /*
     * The ServiceBus Topic name for identity-based authentication.
     */
    @JsonProperty(value = "entityPath")
    private String entityPath;

    /**
     * Get the primaryConnectionString property: PrimaryConnectionString of the endpoint for key-based authentication.
     * Will be obfuscated during read.
     *
     * @return the primaryConnectionString value.
     */
    public String primaryConnectionString() {
        return this.primaryConnectionString;
    }

    /**
     * Set the primaryConnectionString property: PrimaryConnectionString of the endpoint for key-based authentication.
     * Will be obfuscated during read.
     *
     * @param primaryConnectionString the primaryConnectionString value to set.
     * @return the ServiceBus object itself.
     */
    public ServiceBus withPrimaryConnectionString(String primaryConnectionString) {
        this.primaryConnectionString = primaryConnectionString;
        return this;
    }

    /**
     * Get the secondaryConnectionString property: SecondaryConnectionString of the endpoint for key-based
     * authentication. Will be obfuscated during read.
     *
     * @return the secondaryConnectionString value.
     */
    public String secondaryConnectionString() {
        return this.secondaryConnectionString;
    }

    /**
     * Set the secondaryConnectionString property: SecondaryConnectionString of the endpoint for key-based
     * authentication. Will be obfuscated during read.
     *
     * @param secondaryConnectionString the secondaryConnectionString value to set.
     * @return the ServiceBus object itself.
     */
    public ServiceBus withSecondaryConnectionString(String secondaryConnectionString) {
        this.secondaryConnectionString = secondaryConnectionString;
        return this;
    }

    /**
     * Get the endpointUri property: The URL of the ServiceBus namespace for identity-based authentication. It must
     * include the protocol 'sb://'.
     *
     * @return the endpointUri value.
     */
    public String endpointUri() {
        return this.endpointUri;
    }

    /**
     * Set the endpointUri property: The URL of the ServiceBus namespace for identity-based authentication. It must
     * include the protocol 'sb://'.
     *
     * @param endpointUri the endpointUri value to set.
     * @return the ServiceBus object itself.
     */
    public ServiceBus withEndpointUri(String endpointUri) {
        this.endpointUri = endpointUri;
        return this;
    }

    /**
     * Get the entityPath property: The ServiceBus Topic name for identity-based authentication.
     *
     * @return the entityPath value.
     */
    public String entityPath() {
        return this.entityPath;
    }

    /**
     * Set the entityPath property: The ServiceBus Topic name for identity-based authentication.
     *
     * @param entityPath the entityPath value to set.
     * @return the ServiceBus object itself.
     */
    public ServiceBus withEntityPath(String entityPath) {
        this.entityPath = entityPath;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ServiceBus withAuthenticationType(AuthenticationType authenticationType) {
        super.withAuthenticationType(authenticationType);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ServiceBus withDeadLetterSecret(String deadLetterSecret) {
        super.withDeadLetterSecret(deadLetterSecret);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ServiceBus withDeadLetterUri(String deadLetterUri) {
        super.withDeadLetterUri(deadLetterUri);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}