text:
import { Injectable } from '@angular/core';

import { GatewayService } from './gateway.service';
import { UserModel } from './type/app-model';
import { Callbackable } from './type/callbackable';
import { AppComponent } from './app.component';

/**
 * App's authentication service
 */
const STORE_UID = 'finMan.uid';
const STORE_EMAIL = 'finMan.email';
const STORE_FNAME = 'finMan.fname';
const STORE_LNAME = 'finMan.lname';

@Injectable()
export class AuthenticationService implements Callbackable{

  private appComponent: AppComponent;

  constructor(private httpGateway: GatewayService) { }

   /**
    * Logout user and removes user from the store
    */
   public logout() {
     sessionStorage.removeItem(STORE_EMAIL);
     sessionStorage.removeItem(STORE_FNAME);
     sessionStorage.removeItem(STORE_LNAME);
     sessionStorage.removeItem(STORE_UID);
   }

   /**
    * Perform login and store the logged in user ID in the store
    * @param email
    */
   public login(email: string): string {
     let redirectTo: string = null;
     if (null !== email || undefined !== email) {
      sessionStorage.setItem(STORE_EMAIL, email);
      redirectTo = '/home';
      this.loadUserDetails(email);
     } else {
      redirectTo = '/login';
     }
     return redirectTo;
   }

   private loadUserDetails(email: string) {
     this.httpGateway.getUser(this, email);
   }

   private isAlreadyLoggedIn(): boolean {
     if (null !== sessionStorage.getItem(STORE_EMAIL) && undefined !== sessionStorage.getItem(STORE_EMAIL)) {
       return true;
     } else {
      return false;
     }
   }

   /**
    * Gets logged in user details from the store
    */
   public getLoggedInUser(): string {
     const returnVal: string = sessionStorage.getItem(STORE_EMAIL);
     return returnVal;
   }

   /**
    * Check if use active login exist
    */
   public checkLogin(): boolean {
     const alreadyLoggedIn: boolean = this.isAlreadyLoggedIn();
     if (alreadyLoggedIn) {
      this.appComponent.toggleNavbarLinks(false);
      this.appComponent.fname = sessionStorage.getItem(STORE_FNAME);
      this.appComponent.lname = sessionStorage.getItem(STORE_LNAME);
      this.appComponent.email = sessionStorage.getItem(STORE_EMAIL);
     }
     return alreadyLoggedIn;
   }

   setupValue(result: UserModel) {
    sessionStorage.setItem(STORE_UID, result.getUid().toString());
    sessionStorage.setItem(STORE_FNAME, result.getFirstName());
    sessionStorage.setItem(STORE_LNAME, result.getLastName());
    this.appComponent.toggleNavbarLinks(false);
    this.appComponent.fname = result.getFirstName();
    this.appComponent.lname = result.getLastName();
    this.appComponent.email = result.getEmail();
  }

  getAppModel(jsonResult: any): UserModel {
    const userModel: UserModel = new UserModel();
    userModel.setUid(jsonResult.userModel.uid);
    userModel.setEmail(jsonResult.userModel.email);
    userModel.setFirstName(jsonResult.userModel.firstName);
    userModel.setLastName(jsonResult.userModel.lastName);
    return userModel;
  }

  public setAppComponent(appComponent: AppComponent) {
    this.appComponent = appComponent;
  }
}


text:
import React from 'react';
import styled from 'styled-components';
import { useFlags } from 'launchdarkly-react-client-sdk';

const Root = styled.div`
  color: #001b44;
`;
const Heading = styled.h1`
  color: #00449e;
`;
const theme = {
  blue: {
    default: "#3f51b5",
    hover: "#283593"
  }
};

const Button = styled.button`
    background-color: ${(props) => theme[props.theme].default};
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    outline: 0;
    text-transform: uppercase;
    margin: 10px 0px;
    cursor: pointer;
    box-shadow: 0px 2px 2px lightgray;
    transition: ease background-color 250ms;
    &:hover {
      background-color: ${(props) => theme[props.theme].hover};
    }
    &:disabled {
      cursor: default;
      opacity: 0.7;
    }
  `;

const clickMe = () => {
  alert("A new shiny feature pops up!");
};

const HooksDemo = () => {
  const { testGreetingFromCypress, showShinyNewFeature } = useFlags();

  return (
    <Root>
      <Heading>{testGreetingFromCypress}, World !!</Heading>

      This is the equivalent LaunchDarkly React example project using hooks. The message above changes the greeting,
      based on the current feature flag variation.

    {showShinyNewFeature ?
      <Button id='shiny-button' theme='blue' onClick={clickMe}>Shiny New Feature</Button>: ''}

      {showShinyNewFeature ? 'This button will show new shiny feature in UI on clicking it.': ''}

    </Root>
  );
};

export default HooksDemo;

redpajama_set_name: RedPajamaGithub


text:
default_target: all
.PHONY : default_target

#=============================================================================
# Special targets provided by cmake.

# Disable implicit rules so canonical targets will work.
.SUFFIXES:

# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =

.SUFFIXES: .hpux_make_needs_suffix_list

# Suppress display of executed commands.
$(VERBOSE).SILENT:

# A target that is always out of date.
cmake_force:
.PHONY : cmake_force

#=============================================================================
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake

# The command to remove a file.
RM = /usr/bin/cmake -E remove -f

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/yashc/fuerte_workspace/sandbox/git/hrl_autobed_dev/gazebo_pressuremat_plugin

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/yashc/fuerte_workspace/sandbox/git/hrl_autobed_dev/gazebo_pressuremat_plugin/build

#=============================================================================
# Targets provided globally by CMake.

# Special rule for the target edit_cache
edit_cache:
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..."
	/usr/bin/cmake -i .
.PHONY : edit_cache

# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast

# Special rule for the target install
install: preinstall
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
	/usr/bin/cmake -P cmake_install.cmake
.PHONY : install

# Special rule for the target install
install/fast: preinstall/fast
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
	/usr/bin/cmake -P cmake_install.cmake
.PHONY : install/fast

# Special rule for the target install/local
install/local: preinstall
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
	/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local

# Special rule for the target install/local
install/local/fast: install/local
.PHONY : install/local/fast

# Special rule for the target install/strip
install/strip: preinstall
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
	/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
.PHONY : install/strip

# Special rule for the target install/strip
install/strip/fast: install/strip
.PHONY : install/strip/fast

# Special rule for the target list_install_components
list_install_components:
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
.PHONY : list_install_components

# Special rule for the target list_install_components
list_install_components/fast: list_install_components
.PHONY : list_install_components/fast

# Special rule for the target rebuild_cache
rebuild_cache:
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
	/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache

# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast

# The main all target
all: cmake_check_build_system
	$(CMAKE_COMMAND) -E cmake_progress_start /home/yashc/fuerte_workspace/sandbox/git/hrl_autobed_dev/gazebo_pressuremat_plugin/build/CMakeFiles /home/yashc/fuerte_workspace/sandbox/git/hrl_autobed_dev/gazebo_pressuremat_plugin/build/CMakeFiles/progress.marks
	$(MAKE) -f CMakeFiles/Makefile2 all
	$(CMAKE_COMMAND) -E cmake_progress_start /home/yashc/fuerte_workspace/sandbox/git/hrl_autobed_dev/gazebo_pressuremat_plugin/build/CMakeFiles 0
.PHONY : all

# The main clean target
clean:
	$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean

# The main clean target
clean/fast: clean
.PHONY : clean/fast

# Prepare targets for installation.
preinstall: all
	$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall

# Prepare targets for installation.
preinstall/fast:
	$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast

# clear depends
depend:
	$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend

#=============================================================================
# Target rules for targets named ros_pressuremat_plugin

# Build rule for target.
ros_pressuremat_plugin: cmake_check_build_system
	$(MAKE) -f CMakeFiles/Makefile2 ros_pressuremat_plugin
.PHONY : ros_pressuremat_plugin

# fast build rule for target.
ros_pressuremat_plugin/fast:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/build
.PHONY : ros_pressuremat_plugin/fast

ros_pressuremat_plugin.o: ros_pressuremat_plugin.cc.o
.PHONY : ros_pressuremat_plugin.o

# target to build an object file
ros_pressuremat_plugin.cc.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/ros_pressuremat_plugin.cc.o
.PHONY : ros_pressuremat_plugin.cc.o

ros_pressuremat_plugin.i: ros_pressuremat_plugin.cc.i
.PHONY : ros_pressuremat_plugin.i

# target to preprocess a source file
ros_pressuremat_plugin.cc.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/ros_pressuremat_plugin.cc.i
.PHONY : ros_pressuremat_plugin.cc.i

ros_pressuremat_plugin.s: ros_pressuremat_plugin.cc.s
.PHONY : ros_pressuremat_plugin.s

# target to generate assembly for a file
ros_pressuremat_plugin.cc.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/ros_pressuremat_plugin.cc.s
.PHONY : ros_pressuremat_plugin.cc.s

src/KCtree.o: src/KCtree.cpp.o
.PHONY : src/KCtree.o

# target to build an object file
src/KCtree.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KCtree.cpp.o
.PHONY : src/KCtree.cpp.o

src/KCtree.i: src/KCtree.cpp.i
.PHONY : src/KCtree.i

# target to preprocess a source file
src/KCtree.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KCtree.cpp.i
.PHONY : src/KCtree.cpp.i

src/KCtree.s: src/KCtree.cpp.s
.PHONY : src/KCtree.s

# target to generate assembly for a file
src/KCtree.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KCtree.cpp.s
.PHONY : src/KCtree.cpp.s

src/KCutil.o: src/KCutil.cpp.o
.PHONY : src/KCutil.o

# target to build an object file
src/KCutil.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KCutil.cpp.o
.PHONY : src/KCutil.cpp.o

src/KCutil.i: src/KCutil.cpp.i
.PHONY : src/KCutil.i

# target to preprocess a source file
src/KCutil.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KCutil.cpp.i
.PHONY : src/KCutil.cpp.i

src/KCutil.s: src/KCutil.cpp.s
.PHONY : src/KCutil.s

# target to generate assembly for a file
src/KCutil.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KCutil.cpp.s
.PHONY : src/KCutil.cpp.s

src/KM_ANN.o: src/KM_ANN.cpp.o
.PHONY : src/KM_ANN.o

# target to build an object file
src/KM_ANN.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KM_ANN.cpp.o
.PHONY : src/KM_ANN.cpp.o

src/KM_ANN.i: src/KM_ANN.cpp.i
.PHONY : src/KM_ANN.i

# target to preprocess a source file
src/KM_ANN.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KM_ANN.cpp.i
.PHONY : src/KM_ANN.cpp.i

src/KM_ANN.s: src/KM_ANN.cpp.s
.PHONY : src/KM_ANN.s

# target to generate assembly for a file
src/KM_ANN.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KM_ANN.cpp.s
.PHONY : src/KM_ANN.cpp.s

src/KMcenters.o: src/KMcenters.cpp.o
.PHONY : src/KMcenters.o

# target to build an object file
src/KMcenters.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMcenters.cpp.o
.PHONY : src/KMcenters.cpp.o

src/KMcenters.i: src/KMcenters.cpp.i
.PHONY : src/KMcenters.i

# target to preprocess a source file
src/KMcenters.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMcenters.cpp.i
.PHONY : src/KMcenters.cpp.i

src/KMcenters.s: src/KMcenters.cpp.s
.PHONY : src/KMcenters.s

# target to generate assembly for a file
src/KMcenters.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMcenters.cpp.s
.PHONY : src/KMcenters.cpp.s

src/KMdata.o: src/KMdata.cpp.o
.PHONY : src/KMdata.o

# target to build an object file
src/KMdata.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMdata.cpp.o
.PHONY : src/KMdata.cpp.o

src/KMdata.i: src/KMdata.cpp.i
.PHONY : src/KMdata.i

# target to preprocess a source file
src/KMdata.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMdata.cpp.i
.PHONY : src/KMdata.cpp.i

src/KMdata.s: src/KMdata.cpp.s
.PHONY : src/KMdata.s

# target to generate assembly for a file
src/KMdata.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMdata.cpp.s
.PHONY : src/KMdata.cpp.s

src/KMeans.o: src/KMeans.cpp.o
.PHONY : src/KMeans.o

# target to build an object file
src/KMeans.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMeans.cpp.o
.PHONY : src/KMeans.cpp.o

src/KMeans.i: src/KMeans.cpp.i
.PHONY : src/KMeans.i

# target to preprocess a source file
src/KMeans.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMeans.cpp.i
.PHONY : src/KMeans.cpp.i

src/KMeans.s: src/KMeans.cpp.s
.PHONY : src/KMeans.s

# target to generate assembly for a file
src/KMeans.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMeans.cpp.s
.PHONY : src/KMeans.cpp.s

src/KMfilterCenters.o: src/KMfilterCenters.cpp.o
.PHONY : src/KMfilterCenters.o

# target to build an object file
src/KMfilterCenters.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMfilterCenters.cpp.o
.PHONY : src/KMfilterCenters.cpp.o

src/KMfilterCenters.i: src/KMfilterCenters.cpp.i
.PHONY : src/KMfilterCenters.i

# target to preprocess a source file
src/KMfilterCenters.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMfilterCenters.cpp.i
.PHONY : src/KMfilterCenters.cpp.i

src/KMfilterCenters.s: src/KMfilterCenters.cpp.s
.PHONY : src/KMfilterCenters.s

# target to generate assembly for a file
src/KMfilterCenters.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMfilterCenters.cpp.s
.PHONY : src/KMfilterCenters.cpp.s

src/KMlocal.o: src/KMlocal.cpp.o
.PHONY : src/KMlocal.o

# target to build an object file
src/KMlocal.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMlocal.cpp.o
.PHONY : src/KMlocal.cpp.o

src/KMlocal.i: src/KMlocal.cpp.i
.PHONY : src/KMlocal.i

# target to preprocess a source file
src/KMlocal.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMlocal.cpp.i
.PHONY : src/KMlocal.cpp.i

src/KMlocal.s: src/KMlocal.cpp.s
.PHONY : src/KMlocal.s

# target to generate assembly for a file
src/KMlocal.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMlocal.cpp.s
.PHONY : src/KMlocal.cpp.s

src/KMrand.o: src/KMrand.cpp.o
.PHONY : src/KMrand.o

# target to build an object file
src/KMrand.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMrand.cpp.o
.PHONY : src/KMrand.cpp.o

src/KMrand.i: src/KMrand.cpp.i
.PHONY : src/KMrand.i

# target to preprocess a source file
src/KMrand.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMrand.cpp.i
.PHONY : src/KMrand.cpp.i

src/KMrand.s: src/KMrand.cpp.s
.PHONY : src/KMrand.s

# target to generate assembly for a file
src/KMrand.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMrand.cpp.s
.PHONY : src/KMrand.cpp.s

src/KMterm.o: src/KMterm.cpp.o
.PHONY : src/KMterm.o

# target to build an object file
src/KMterm.cpp.o:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMterm.cpp.o
.PHONY : src/KMterm.cpp.o

src/KMterm.i: src/KMterm.cpp.i
.PHONY : src/KMterm.i

# target to preprocess a source file
src/KMterm.cpp.i:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMterm.cpp.i
.PHONY : src/KMterm.cpp.i

src/KMterm.s: src/KMterm.cpp.s
.PHONY : src/KMterm.s

# target to generate assembly for a file
src/KMterm.cpp.s:
	$(MAKE) -f CMakeFiles/ros_pressuremat_plugin.dir/build.make CMakeFiles/ros_pressuremat_plugin.dir/src/KMterm.cpp.s
.PHONY : src/KMterm.cpp.s

# Help Target
help:
	@echo "The following are some of the valid targets for this Makefile:"
	@echo "... all (the default if no target is provided)"
	@echo "... clean"
	@echo "... depend"
	@echo "... edit_cache"
	@echo "... install"
	@echo "... install/local"
	@echo "... install/strip"
	@echo "... list_install_components"
	@echo "... rebuild_cache"
	@echo "... ros_pressuremat_plugin"
	@echo "... ros_pressuremat_plugin.o"
	@echo "... ros_pressuremat_plugin.i"
	@echo "... ros_pressuremat_plugin.s"
	@echo "... src/KCtree.o"
	@echo "... src/KCtree.i"
	@echo "... src/KCtree.s"
	@echo "... src/KCutil.o"
	@echo "... src/KCutil.i"
	@echo "... src/KCutil.s"
	@echo "... src/KM_ANN.o"
	@echo "... src/KM_ANN.i"
	@echo "... src/KM_ANN.s"
	@echo "... src/KMcenters.o"
	@echo "... src/KMcenters.i"
	@echo "... src/KMcenters.s"
	@echo "... src/KMdata.o"
	@echo "... src/KMdata.i"
	@echo "... src/KMdata.s"
	@echo "... src/KMeans.o"
	@echo "... src/KMeans.i"
	@echo "... src/KMeans.s"
	@echo "... src/KMfilterCenters.o"
	@echo "... src/KMfilterCenters.i"
	@echo "... src/KMfilterCenters.s"
	@echo "... src/KMlocal.o"
	@echo "... src/KMlocal.i"
	@echo "... src/KMlocal.s"
	@echo "... src/KMrand.o"
	@echo "... src/KMrand.i"
	@echo "... src/KMrand.s"
	@echo "... src/KMterm.o"
	@echo "... src/KMterm.i"
	@echo "... src/KMterm.s"
.PHONY : help

#=============================================================================
# Special targets to cleanup operation of make.

# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
	$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system


text:
namespace swganh
{
namespace tre
{
	template <class T> T ObjectVisitor::attribute(const std::string& key)
	{
		std::map<std::string, std::shared_ptr<boost::any>>::const_iterator it = attributes_.find(key);
		if(it != attributes_.cend())
		{
			return boost::any_cast<T>(*it->second);
		}
		throw std::runtime_error("Invalid type requested for attribute");
	}
}
}


text:
using System.Collections.Generic;
using Xunit;

namespace System.Globalization.Tests
{
    public class DateTimeFormatInfoGetAbbreviatedDayName
    {
        public static IEnumerable<object[]> GetAbbreviatedDayName_TestData()
        {
            string[] englishAbbreviatedDayNames = new string[] { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
            yield return new object[] { DateTimeFormatInfo.InvariantInfo, englishAbbreviatedDayNames };
            yield return new object[] { new CultureInfo("en-US").DateTimeFormat, englishAbbreviatedDayNames };
            yield return new object[] { new DateTimeFormatInfo(), englishAbbreviatedDayNames };

            if (!PlatformDetection.IsUbuntu || PlatformDetection.IsUbuntu1404)
            {
                yield return new object[] { new CultureInfo("fr-FR").DateTimeFormat, DateTimeFormatInfoData.FrFRAbbreviatedDayNames() };
            }
        }

        [Theory]
        [MemberData(nameof(GetAbbreviatedDayName_TestData))]
        public void GetAbbreviatedDayName_Invoke_ReturnsExpected(DateTimeFormatInfo info, string[] expected)
        {
            DayOfWeek[] values = new DayOfWeek[]
            {
                DayOfWeek.Sunday,
                DayOfWeek.Monday,
                DayOfWeek.Tuesday,
                DayOfWeek.Wednesday,
                DayOfWeek.Thursday,
                DayOfWeek.Friday,
                DayOfWeek.Saturday
            };

            for (int i = 0; i < values.Length; ++i)
            {
                Assert.Equal(expected[i], info.GetAbbreviatedDayName(values[i]));
            }
        }

        [Theory]
        [InlineData(DayOfWeek.Sunday - 1)]
        [InlineData(DayOfWeek.Saturday + 1)]
        public void GetAbbreviatedDayName_Invalid_ThrowsArgumentOutOfRangeException(DayOfWeek dayofweek)
        {
            var format = new DateTimeFormatInfo();
            AssertExtensions.Throws<ArgumentOutOfRangeException>("dayofweek", () => format.GetAbbreviatedDayName(dayofweek));
        }
    }
}


text:
import BaseParser from './../BaseParser';

export default class extends BaseParser {
	constructor() {
		super();
		this.baseURL = 'https://pr0gramm.com/api/items/get?flags=1&promoted=1';
		this.lastKey = '';
		this.parserName = 'pr0gramm API';
		this.isRunning = false;
	}

	getVideosFromIndex() {
		const url = !this.lastKey ? this.baseURL : `https://pr0gramm.com/api/items/get?older=${this.lastKey}&flags=1&promoted=1`;
		if (this.isRunning) return;
		this.isRunning = true;
		return this.ajax(url).then(rawJsonIndex => {
			this.isRunning = false;
			const stream = JSON.parse(rawJsonIndex);
			this.videos = [
				...this.videos,
				...stream.items
					.filter(item  => /\.mp4$/.test(item.image))
					.map(item => ({
						id: `https://vid.pr0gramm.com/${item.image}`,
						mp4: `https://vid.pr0gramm.com/${item.image}`,
					})),
			];
			this.lastKey = !this.lastKey ? stream.items[stream.items.length - 1].promoted : stream.cache.replace('stream:top:1:o', '');
		});
	}
}


text:
class CreateEvents < ActiveRecord::Migration
  def change
    create_table :events do |t|
      t.string :date
      t.text :text

      t.timestamps null: false
    end
  end
end


text:
package lintcode.bst;

import fundamentals.tree.TreeNode;

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

/**
 */
public class MyBst {

    // 85-Insert Node in a Binary Search Tree
    public TreeNode insertNode(TreeNode root, TreeNode node) {
        if (root == null) return node;
        if (node.val < root.val) {
            root.left = insertNode(root.left, node);
        } else {
            root.right = insertNode(root.right, node);
        }
        return root;
    }

    public TreeNode insertNode_iterative(TreeNode root, TreeNode node) {
        TreeNode cur = root, par = null;
        while (cur != null) {
            par = cur;
            cur = (node.val < cur.val) ? cur.left : cur.right;
        }
        if (par == null) { // root is empty
            root = node;
        } else if (node.val < par.val) {
            par.left = node;
        } else {
            par.right = node;
        }
        return root;
    }

    // Leetcode-285 Inorder Successor in BST
    // "To find a successor, you just need to find the smallest one that is larger than the given value.
    // Since there are no duplicate values in a BST. It just like the binary search in a sorted list."
    public TreeNode inorderSuccessor(TreeNode root, TreeNode x) {
        TreeNode p = root, pre = null;
        while (p != null) { // Find lowest ancestor whose left child is ancestor of x too
            if (x.val < p.val) {
                pre = p;
                p = p.left;
            } else
                p = p.right;
        }
        return pre;
    }

    // Leetcode-450 Delete Node in BST
    // O(height) time.
    public TreeNode deleteNode(TreeNode root, int key) {
        if (root == null) return null;
        if (root.val > key) {
            root.left = deleteNode(root.left, key);
        } else if (root.val < key) {
            root.right = deleteNode(root.right, key);
        } else {
            if (root.left == null) return root.right;
            if (root.right == null) return root.left;

            // Find root's successor (leftmost node of right subtree)
            TreeNode suc = null;
            for (TreeNode p = root.right; p != null; p = p.left) {
                suc = p;
            }
            root.val = suc.val;                           // cannot be null since both left and right are not
            root.right = deleteNode(root.right, suc.val); // nice trick! because we don't know suc's parent
        }
        return root;
    }

    // 11-Search Range in Binary Search Tree
    public List<Integer> searchRange(TreeNode root, int k1, int k2) {
        List<Integer> ret = new ArrayList<>();
        dfs(ret, root, k1, k2);
        return ret;
    }

    private void dfs(List<Integer> ret, TreeNode root, int k1, int k2) {
        if (root == null) return;
        if (k1 < root.val) dfs(ret, root.left, k1, k2);
        if (k1 <= root.val && root.val <= k2) ret.add(root.val);
        if (root.val < k2) dfs(ret, root.right, k1, k2);
    }

    // minimum, maximum, delete min, floor, ceiling, delete, rank, select refer to <Algorithm 4e>

}


text:
set -o errexit
set -o nounset
set -o pipefail

KUBE_ROOT=${KUBE_ROOT:-$(dirname "${BASH_SOURCE}")/..}

# Detect the OS name/arch so that we can find our binary
case "$(uname -s)" in
  Darwin)
    host_os=darwin
    ;;
  Linux)
    host_os=linux
    ;;
  *)
    echo "Unsupported host OS.  Must be Linux or Mac OS X." >&2
    exit 1
    ;;
esac

case "$(uname -m)" in
  x86_64*)
    host_arch=amd64
    ;;
  i?86_64*)
    host_arch=amd64
    ;;
  amd64*)
    host_arch=amd64
    ;;
  arm*)
    host_arch=arm
    ;;
  aarch64*)
    host_arch=arm64
    ;;
  i?86*)
    host_arch=386
    ;;
  s390x*)
    host_arch=s390x
    ;;
  ppc64le*)
    host_arch=ppc64le
    ;;
  *)
    echo "Unsupported host arch. Must be x86_64, 386, arm, s390x or ppc64le." >&2
    exit 1
    ;;
esac

# Get the absolute path of the directory component of a file, i.e. the
# absolute path of the dirname of $1.
get_absolute_dirname() {
  echo "$(cd "$(dirname "$1")" && pwd)"
}

function get_bin() {
  bin="${1:-}"
  srcdir="${2:-}"
  if [[ "${bin}" == "" ]]; then
    echo "Binary name is required"
    exit 1
  fi
  if [[ "${srcdir}" == "" ]]; then
    echo "Source directory path is required"
    exit 1
  fi

  locations=(
    "${KUBE_ROOT}/_output/bin/${bin}"
    "${KUBE_ROOT}/_output/dockerized/bin/${host_os}/${host_arch}/${bin}"
    "${KUBE_ROOT}/_output/local/bin/${host_os}/${host_arch}/${bin}"
    "${KUBE_ROOT}/platforms/${host_os}/${host_arch}/${bin}"
  )
  # Also search for binary in bazel build tree.
  # The bazel go rules place binaries in subtrees like
  # "bazel-bin/source/path/linux_amd64_pure_stripped/binaryname", so make sure
  # the platform name is matched in the path.
  locations+=($(find "${KUBE_ROOT}/bazel-bin/${srcdir}" -type f -executable \
    -path "*/${host_os}_${host_arch}*/${bin}" 2>/dev/null || true) )
  echo $( (ls -t "${locations[@]}" 2>/dev/null || true) | head -1 )
}

function print_error() {
  {
    echo "It looks as if you don't have a compiled ${1:-} binary"
    echo
    echo "If you are running from a clone of the git repo, please run"
    echo "'./build/run.sh make cross'. Note that this requires having"
    echo "Docker installed."
    echo
    echo "If you are running from a binary release tarball, something is wrong. "
    echo "Look at http://kubernetes.io/ for information on how to contact the "
    echo "development team for help."
  } >&2
}


text: from pyxb_114.bundles.opengis.raw._ogc import *


text:
Article 1386-2
----
Les dispositions du présent titre s'appliquent à la réparation du dommage qui
résulte d'une atteinte à la personne.

Elles s'appliquent également à la réparation du dommage supérieur à un montant
déterminé par décret, qui résulte d'une atteinte à un bien autre que le produit
défectueux lui-même.


text:
"use strict";

var wsEndpoint = "/compute/spectrogram/";
var wsPort = 8080;
var ws = new ReconnectingWebSocket(getwsUrl(wsPort));
ws.binaryType = "arraybuffer";
var spectrogramRequestCount = 0;

var OVERLAP = 0.5;

function getwsUrl(wsPort) {
    var loc = window.location,
        newUri;
    if (loc.protocol === "https:") {
        newUri = "wss:";
    } else {
        newUri = "ws:";
    }
    newUri += "//" + loc.hostname + ":" + wsPort;
    newUri += wsEndpoint;
    return newUri;
}

/* return an object containing the URL parameters */
function getURLParameters() {
    var params = {};
    if (location.search) {
        var parts = location.search.substring(1).split("&");
        for (var i = 0; i < parts.length; i++) {
            var pair = parts[i].split("=");
            if (!pair[0]) {
                continue;
            }
            params[pair[0]] = pair[1] || "";
        }
    }
    return params;
}

/*
 *  Send a message.
 *
 *  Arguments:
 *  type      the message type as string.
 *  content   the message content as json-serializable data.
*/
function sendMessage(type, content, visgoth_content) {
  ws.send(JSON.stringify({
      "type": type,
      "content": content,
      "visgoth_content": visgoth_content,
  }));
}

/*
 * Parses a message.
 *
 *  Each message must contain the message type, the message content,
 *  and an optional binary payload. The decoded message will be
 *  forwarded to different functions based on the message type.
 *
 *  Arguments:
 *  event     the message, either as string or ArrayBuffer.
*/
ws.onmessage = function(event) {
    var header, headerLen;
    if (event.data.constructor.name === "ArrayBuffer") {
        headerLen = new Int32Array(event.data, 0, 1)[0];
        header = String.fromCharCode.apply(null, new Uint8Array(event.data, 4, headerLen));
    } else {
        header = event.data;
    }
    var msg;
    try {
        msg = JSON.parse(header);
    } catch (e) {
        console.error("Message", e.message, "is not a valid JSON object");
        return;
    }

    var type = msg.type;
    var content = msg.content;
    var serverExtent = content.extent;
    var serverProfile = msg.serverProfile;

    for (var stat in serverProfile) {
      visgoth.dumpProfileValue(spectrogramRequestCount, stat,
                               serverProfile[stat]);
    }
    visgoth.dumpProfileValue(spectrogramRequestCount, 'extent', serverExtent);

    var canvasId = content.canvasId || IDS[0];
    var spectrogram = SPECTROGRAMS[canvasId];
    if (type === "spectrogram") {
        setTime("specStartTime", content.startTime);
        setTime("specEndTime", content.endTime);
        spectrogram.updateStartLoadTime();
        if (content.nblocks === 0) {
          if (spectrogram.id === "LL") {
            Materialize.toast("Invalid MRN", 5000);
          }
          spectrogram.render(new Float32Array(1), 1, 1, 200, 0, 1);
        } else {
          spectrogram.render(new Float32Array(event.data, headerLen + 4),
            content.nblocks, content.nfreqs, content.fs,
            content.startTime, content.endTime, spectrogramRequestCount);
        }

        spectrogram.logBufferLoadEnd(spectrogramRequestCount);
        spectrogram.logNetworkEnd(spectrogramRequestCount);

        spectrogramRequestCount++;
        spectrogram.updateProgressBar(1);
    } else {
        console.log(type, content);
    }
};

/* log some info about the GL, then display spectrogram */
ws.onopen = function() {
    for (var i in SPECTROGRAMS) {
        var spectrogram = SPECTROGRAMS[i];
        spectrogram.logGLInfo();
    }
    reloadSpectrograms();
};


text:
int tun_create      (char *, size_t, const char *);
int tun_read        (int, void *, size_t);
int tun_write       (int, const void *, size_t);
int tun_set_persist (int, int);


text:
package net.canadensys.dataportal.occurrence.map;

/**
 * Map related utility functions.
 * It is living in the occurrence package since some assumptions are made.
 *
 * @author cgendreau
 *
 */
public class MapUtils {

	/**
	 * Check whether or not a bounding box is crossing the International Date Line (IDL).
	 * Assumptions:
	 * -bbox can't do a wraparound
	 * -bounding box coordinates are provided as NE and SW
	 * - 0,0 0,0 will return false
	 *
	 * @param neLng
	 *            East longitude
	 * @param swLng
	 *            West longitude
	 * @return
	 */
	public static boolean isBBoxCrossingIDL(double neLng, double swLng) {
		if (swLng > 0 && neLng < 0) {
			return true;
		}
		return false;
	}

}


text:
namespace _10.StudentGroups
{
    using System;

    public class Student
    {
        public Student(string name, string email, DateTime date)
        {
            this.Name = name;
            this.Email = email;
            this.RegistrationDate = date;
        }

        public string Name { get; set; }

        public string Email { get; set; }

        public DateTime RegistrationDate { get; set; }
    }
}


text:
(function() {
    'use strict';

    angular
        .module('<%=angularAppName%>')
        .controller('<%= entityAngularJSName %>DialogController', <%= entityAngularJSName %>DialogController);

    <%= entityAngularJSName %>DialogController.$inject = ['$timeout', '$scope', '$stateParams', '$uibModalInstance'<% if (fieldsContainOwnerOneToOne) { %>, '$q'<% } %><% if (fieldsContainBlob) { %>, 'DataUtils'<% } %>, 'entity', '<%= entityClass %>'<% for (idx in differentTypes) { if (differentTypes[idx] != entityClass) {%>, '<%= differentTypes[idx] %>'<% } } %>];

    function <%= entityAngularJSName %>DialogController ($timeout, $scope, $stateParams, $uibModalInstance<% if (fieldsContainOwnerOneToOne) { %>, $q<% } %><% if (fieldsContainBlob) { %>, DataUtils<% } %>, entity, <%= entityClass %><% for (idx in differentTypes) { if (differentTypes[idx] != entityClass) {%>, <%= differentTypes[idx] %><% } } %>) {
        var vm = this;
        vm.<%= entityInstance %> = entity;<%
            var queries = [];
            for (idx in relationships) {
                var query;
                if (relationships[idx].relationshipType == 'one-to-one' && relationships[idx].ownerSide == true && relationships[idx].otherEntityName != 'user') {
                    query = 'vm.' + relationships[idx].relationshipFieldName.toLowerCase() + 's = ' + relationships[idx].otherEntityNameCapitalized + ".query({filter: '" + relationships[idx].otherEntityRelationshipName.toLowerCase() + "-is-null'});"
                + "\n        $q.all([vm." + entityInstance + ".$promise, vm." + relationships[idx].relationshipFieldName.toLowerCase() + "s.$promise]).then(function() {";
                    if (dto == "no"){
                        query += "\n            if (!vm." + entityInstance + "." + relationships[idx].relationshipFieldName + " || !vm." + entityInstance + "." + relationships[idx].relationshipFieldName + ".id) {"
                    } else {
                        query += "\n            if (!vm." + entityInstance + "." + relationships[idx].relationshipFieldName + "Id) {"
                    }
                    query += "\n                return $q.reject();"
                + "\n            }"
                + "\n            return " + relationships[idx].otherEntityNameCapitalized + ".get({id : vm." + entityInstance + "." + relationships[idx].relationshipFieldName + (dto == 'no' ? ".id" : "Id") + "}).$promise;"
                + "\n        }).then(function(" + relationships[idx].relationshipFieldName + ") {"
                + "\n            vm." + relationships[idx].relationshipFieldNamePlural.toLowerCase() + ".push(" + relationships[idx].relationshipFieldName + ");"
                + "\n        });";
                } else {
                    query = 'vm.' + relationships[idx].otherEntityNameCapitalizedPlural.toLowerCase() + ' = ' + relationships[idx].otherEntityNameCapitalized + '.query();';
                }
                if (!contains(queries, query)) {
                    queries.push(query);
                }
            } %><% for (idx in queries) { %>
        <%- queries[idx] %><% } %>

        $timeout(function (){
            angular.element('.form-group:eq(1)>input').focus();
        });

        var onSaveSuccess = function (result) {
            $scope.$emit('<%=angularAppName%>:<%= entityInstance %>Update', result);
            $uibModalInstance.close(result);
            vm.isSaving = false;
        };

        var onSaveError = function () {
            vm.isSaving = false;
        };

        vm.save = function () {
            vm.isSaving = true;
            if (vm.<%= entityInstance %>.id !== null) {
                <%= entityClass %>.update(vm.<%= entityInstance %>, onSaveSuccess, onSaveError);
            } else {
                <%= entityClass %>.save(vm.<%= entityInstance %>, onSaveSuccess, onSaveError);
            }
        };

        vm.clear = function() {
            $uibModalInstance.dismiss('cancel');
        };
        <%_ if (fieldsContainZonedDateTime || fieldsContainLocalDate || fieldsContainDate) { _%>

        vm.datePickerOpenStatus = {};
        <%_ } _%>
        <%_ for (idx in fields) {
            if (fields[idx].fieldType === 'LocalDate' || fields[idx].fieldType === 'ZonedDateTime') { _%>
        vm.datePickerOpenStatus.<%= fields[idx].fieldName %> = false;
        <%_ } else if ((fields[idx].fieldType === 'byte[]' || fields[idx].fieldType === 'ByteBuffer') && fields[idx].fieldTypeBlobContent !== 'text') { _%>

        vm.set<%= fields[idx].fieldNameCapitalized %> = function ($file, <%= entityInstance %>) {
            <%_ if (fields[idx].fieldTypeBlobContent === 'image') { _%>
            if ($file && $file.$error === 'pattern') {
                return;
            }
            <%_ } _%>
            if ($file) {
                DataUtils.toBase64($file, function(base64Data) {
                    $scope.$apply(function() {
                        <%= entityInstance %>.<%= fields[idx].fieldName %> = base64Data;
                        <%= entityInstance %>.<%= fields[idx].fieldName %>ContentType = $file.type;
                    });
                });
            }
        };
        <%_ } } _%>
        <%_ if (fieldsContainBlob) { _%>

        vm.openFile = DataUtils.openFile;
        vm.byteSize = DataUtils.byteSize;
        <%_ } _%>
        <%_ if (fieldsContainZonedDateTime || fieldsContainLocalDate || fieldsContainDate) { _%>

        vm.openCalendar = function(date) {
            vm.datePickerOpenStatus[date] = true;
        };
        <%_ } _%>
    }
})();


text:
<?php

declare(strict_types=1);

namespace FSi\Bundle\AdminBundle\Behat\Context;

use Behat\Gherkin\Node\PyStringNode;
use FSi\Bundle\AdminBundle\Behat\Element\Messages;

class MessageContext extends AbstractContext
{
    /**
     * @Then I should see an error message saying:
     */
    public function iShouldSeeErrorMessageSaying(PyStringNode $message): void
    {
        $notifications = $this->getMessagesElement();

        expect($notifications->getMessageText('danger'))->toBe($message->getRaw());
    }

    /**
     * @Then I should see a warning message saying:
     */
    public function iShouldSeeWarningMessageSaying(PyStringNode $message): void
    {
        $notifications = $this->getMessagesElement();

        expect($notifications->getMessageText('warning'))->toBe($message->getRaw());
    }

    /**
     * @Then I should see an informational message saying:
     */
    public function iShouldSeeInformationalMessageSaying(PyStringNode $message): void
    {
        $notifications = $this->getMessagesElement();

        expect($notifications->getMessageText('info'))->toBe($message->getRaw());
    }

    /**
     * @Then I should see a success message saying:
     */
    public function iShouldSeeSuccessMessageSaying(PyStringNode $message): void
    {
        $notifications = $this->getMessagesElement();

        expect($notifications->getMessageText('success'))->toBe($message->getRaw());
    }

    private function getMessagesElement(): Messages
    {
        return $this->getElement(Messages::class);
    }
}


text:
<!DOCTYPE html>
<!--
Copyright 2011 Google Inc. All Rights Reserved.

Use of this source code is governed by a BSD-type license.
See the COPYING file for details.
-->

<style type="text/excss">
  .foo {
    @mixin shape(100px, red);
  }
  @trait shape(size, color) {
    @mixin square($size) colors($color);
  }
  @trait square(size) {
    width: $size;
    height: $size;
  }
  @trait colors(color) {
    @mixin fg($color) bg($color);
  }
  @trait fg(fg) {
    color: $fg;
  }
  @trait bg(bg) {
    background-color: $bg;
  }
</style>

<div class="foo" expect="width: 100px; height: 100px; color: red; background-color: red">
  Foo
</div>

<script src="../../excss.js"></script>
<script src="../tests.js"></script>


text:
package org.apache.felix.feature.impl;

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

import org.osgi.service.feature.FeatureArtifact;
import org.osgi.service.feature.FeatureExtension;
import org.osgi.service.feature.FeatureExtension.Kind;
import org.osgi.service.feature.FeatureExtension.Type;
import org.osgi.service.feature.FeatureExtensionBuilder;

class ExtensionBuilderImpl implements FeatureExtensionBuilder {
    private final String name;
    private final Type type;
    private final Kind kind;

    private final List<String> content = new ArrayList<>();
    private final List<FeatureArtifact> artifacts = new ArrayList<>();

    ExtensionBuilderImpl(String name, Type type, Kind kind) {
        this.name = name;
        this.type = type;
        this.kind = kind;
    }

    @Override
    public FeatureExtensionBuilder addText(String text) {
        if (type != Type.TEXT)
            throw new IllegalStateException("Cannot add text to extension of type " + type);

        content.add(text);
        return this;
    }

    @Override
    public FeatureExtensionBuilder setJSON(String json) {
        if (type != Type.JSON)
            throw new IllegalStateException("Cannot add text to extension of type " + type);

        content.clear(); // Clear any previous value
        content.add(json);
        return this;
    }

    @Override
    public FeatureExtensionBuilder addArtifact(FeatureArtifact art) {
        if (type != Type.ARTIFACTS)
            throw new IllegalStateException("Cannot add artifacts to extension of type " + type);

        artifacts.add(art);
        return this;
    }

    @Override
    public FeatureExtension build() {
        return new ExtensionImpl(name, type, kind, content, artifacts);
    }

    private static class ExtensionImpl implements FeatureExtension {
        private final String name;
        private final Type type;
        private final Kind kind;
        private final List<String> content;
        private final List<FeatureArtifact> artifacts;

        private ExtensionImpl(String name, Type type, Kind kind, List<String> content, List<FeatureArtifact> artifacts) {
            this.name = name;
            this.type = type;
            this.kind = kind;
            this.content = Collections.unmodifiableList(content);
            this.artifacts = Collections.unmodifiableList(artifacts);
        }

        public String getName() {
            return name;
        }

        public Type getType() {
            return type;
        }

        public Kind getKind() {
            return kind;
        }

        public String getJSON() {
            if (type != Type.JSON)
                throw new IllegalStateException("Extension is not of type JSON " + type);

            if (content.isEmpty())
                return null;

            return content.get(0);
        }

        public List<String> getText() {
            if (type != Type.TEXT)
                throw new IllegalStateException("Extension is not of type Text " + type);

            return content;
        }

        public List<FeatureArtifact> getArtifacts() {
            if (type != Type.ARTIFACTS)
                throw new IllegalStateException("Extension is not of type Text " + type);

            return artifacts;
        }

        @Override
		public int hashCode() {
			return Objects.hash(artifacts, content, kind, name, type);
		}

        @Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			ExtensionImpl other = (ExtensionImpl) obj;
			return Objects.equals(artifacts, other.artifacts) && Objects.equals(content, other.content)
					&& kind == other.kind && Objects.equals(name, other.name) && type == other.type;
		}

		@Override
        public String toString() {
            return "ExtensionImpl [name=" + name + ", type=" + type + "]";
        }
    }
}


text:
package br.gov.siscomex.portalunico.due.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;

@XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "PaisDto", propOrder =
    { "codigo", "nome", "nomeResumido"
})

@XmlRootElement(name="PaisDto")
public class PaisDto  {

  @XmlElement(name="codigo")
  @ApiModelProperty(value = "Código
Formato: Inteiro, com até 3 digitos")
 /**
   * Código
Formato: Inteiro, com até 3 digitos
  **/
  private Long codigo = null;

  @XmlElement(name="nome")
  @ApiModelProperty(value = "Nome
Tamanho mínimo: 1
Tamanho máximo: 50")
 /**
   * Nome
Tamanho mínimo: 1
Tamanho máximo: 50
  **/
  private String nome = null;

  @XmlElement(name="nomeResumido")
  @ApiModelProperty(example = "BRA", value = "Nome
Tamanho: 3")
 /**
   * Nome
Tamanho: 3
  **/
  private String nomeResumido = null;
 /**
   * Código<br />Formato: Inteiro, com até 3 digitos
   * @return codigo
  **/
  @JsonProperty("codigo")
  public Long getCodigo() {
    return codigo;
  }

  public void setCodigo(Long codigo) {
    this.codigo = codigo;
  }

  public PaisDto codigo(Long codigo) {
    this.codigo = codigo;
    return this;
  }

 /**
   * Nome<br />Tamanho mínimo: 1<br />Tamanho máximo: 50
   * @return nome
  **/
  @JsonProperty("nome")
  public String getNome() {
    return nome;
  }

  public void setNome(String nome) {
    this.nome = nome;
  }

  public PaisDto nome(String nome) {
    this.nome = nome;
    return this;
  }

 /**
   * Nome<br />Tamanho: 3
   * @return nomeResumido
  **/
  @JsonProperty("nomeResumido")
  public String getNomeResumido() {
    return nomeResumido;
  }

  public void setNomeResumido(String nomeResumido) {
    this.nomeResumido = nomeResumido;
  }

  public PaisDto nomeResumido(String nomeResumido) {
    this.nomeResumido = nomeResumido;
    return this;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaisDto {\n");

    sb.append("    codigo: ").append(toIndentedString(codigo)).append("\n");
    sb.append("    nome: ").append(toIndentedString(nome)).append("\n");
    sb.append("    nomeResumido: ").append(toIndentedString(nomeResumido)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private static String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}


text:
package org.motechproject.nms.flwUpdate.service;

import org.motechproject.nms.flw.exception.FlwExistingRecordException;
import org.motechproject.nms.flw.exception.GfStatusInactiveException;
import org.motechproject.nms.kilkari.contract.AnmAshaRecord;
import org.motechproject.nms.kilkari.contract.RchAnmAshaRecord;
import org.motechproject.nms.kilkari.domain.SubscriptionOrigin;
import org.motechproject.nms.region.domain.State;
import org.motechproject.nms.region.exception.InvalidLocationException;

import java.io.IOException;
import java.io.Reader;
import java.util.Map;

public interface FrontLineWorkerImportService {

    void importData(Reader reader, SubscriptionOrigin importOrigin) throws IOException, GfStatusInactiveException;

    void importMctsFrontLineWorker(Map<String, Object> record, State state) throws InvalidLocationException, FlwExistingRecordException;

    void importRchFrontLineWorker(Map<String, Object> record, State state) throws InvalidLocationException, FlwExistingRecordException, GfStatusInactiveException;
    /**
     * Used to create or update an FLW from mcts or other sync services
     * @param flwRecord key-value pair of properties for flw
     */
    boolean createUpdate(Map<String, Object> flwRecord, SubscriptionOrigin importOrigin);

    boolean updateLoc(Map<String, Object> flwRecord);

    RchAnmAshaRecord convertMapToRchAsha(Map<String, Object> record);

    AnmAshaRecord convertMapToAsha(Map<String, Object> record);
}


text:
"""cryptomath module

This module has basic math/crypto code."""

import os
import math
import base64
import binascii
import sha

from compat import *

# **************************************************************************
# Load Optional Modules
# **************************************************************************

# Try to load M2Crypto/OpenSSL
try:
    from M2Crypto import m2
    m2cryptoLoaded = True

except ImportError:
    m2cryptoLoaded = False

# Try to load cryptlib
try:
    import cryptlib_py
    try:
        cryptlib_py.cryptInit()
    except cryptlib_py.CryptException, e:
        #If tlslite and cryptoIDlib are both present,
        #they might each try to re-initialize this,
        #so we're tolerant of that.
        if e[0] != cryptlib_py.CRYPT_ERROR_INITED:
            raise
    cryptlibpyLoaded = True

except ImportError:
    cryptlibpyLoaded = False

#Try to load GMPY
try:
    import gmpy
    gmpyLoaded = True
except ImportError:
    gmpyLoaded = False

#Try to load pycrypto
try:
    import Crypto.Cipher.AES
    pycryptoLoaded = True
except ImportError:
    pycryptoLoaded = False

# **************************************************************************
# PRNG Functions
# **************************************************************************

# Get os.urandom PRNG
try:
    os.urandom(1)
    def getRandomBytes(howMany):
        return stringToBytes(os.urandom(howMany))
    prngName = "os.urandom"

except:
    # Else get cryptlib PRNG
    if cryptlibpyLoaded:
        def getRandomBytes(howMany):
            randomKey = cryptlib_py.cryptCreateContext(cryptlib_py.CRYPT_UNUSED,
                                                       cryptlib_py.CRYPT_ALGO_AES)
            cryptlib_py.cryptSetAttribute(randomKey,
                                          cryptlib_py.CRYPT_CTXINFO_MODE,
                                          cryptlib_py.CRYPT_MODE_OFB)
            cryptlib_py.cryptGenerateKey(randomKey)
            bytes = createByteArrayZeros(howMany)
            cryptlib_py.cryptEncrypt(randomKey, bytes)
            return bytes
        prngName = "cryptlib"

    else:
        #Else get UNIX /dev/urandom PRNG
        try:
            devRandomFile = open("/dev/urandom", "rb")
            def getRandomBytes(howMany):
                return stringToBytes(devRandomFile.read(howMany))
            prngName = "/dev/urandom"
        except IOError:
            #Else get Win32 CryptoAPI PRNG
            try:
                import win32prng
                def getRandomBytes(howMany):
                    s = win32prng.getRandomBytes(howMany)
                    if len(s) != howMany:
                        raise AssertionError()
                    return stringToBytes(s)
                prngName ="CryptoAPI"
            except ImportError:
                #Else no PRNG :-(
                def getRandomBytes(howMany):
                    raise NotImplementedError("No Random Number Generator "\
                                              "available.")
            prngName = "None"

# **************************************************************************
# Converter Functions
# **************************************************************************

def bytesToNumber(bytes):
    total = 0L
    multiplier = 1L
    for count in range(len(bytes)-1, -1, -1):
        byte = bytes[count]
        total += multiplier * byte
        multiplier *= 256
    return total

def numberToBytes(n):
    howManyBytes = numBytes(n)
    bytes = createByteArrayZeros(howManyBytes)
    for count in range(howManyBytes-1, -1, -1):
        bytes[count] = int(n % 256)
        n >>= 8
    return bytes

def bytesToBase64(bytes):
    s = bytesToString(bytes)
    return stringToBase64(s)

def base64ToBytes(s):
    s = base64ToString(s)
    return stringToBytes(s)

def numberToBase64(n):
    bytes = numberToBytes(n)
    return bytesToBase64(bytes)

def base64ToNumber(s):
    bytes = base64ToBytes(s)
    return bytesToNumber(bytes)

def stringToNumber(s):
    bytes = stringToBytes(s)
    return bytesToNumber(bytes)

def numberToString(s):
    bytes = numberToBytes(s)
    return bytesToString(bytes)

def base64ToString(s):
    try:
        return base64.decodestring(s)
    except binascii.Error, e:
        raise SyntaxError(e)
    except binascii.Incomplete, e:
        raise SyntaxError(e)

def stringToBase64(s):
    return base64.encodestring(s).replace("\n", "")

def mpiToNumber(mpi): #mpi is an openssl-format bignum string
    if (ord(mpi[4]) & 0x80) !=0: #Make sure this is a positive number
        raise AssertionError()
    bytes = stringToBytes(mpi[4:])
    return bytesToNumber(bytes)

def numberToMPI(n):
    bytes = numberToBytes(n)
    ext = 0
    #If the high-order bit is going to be set,
    #add an extra byte of zeros
    if (numBits(n) & 0x7)==0:
        ext = 1
    length = numBytes(n) + ext
    bytes = concatArrays(createByteArrayZeros(4+ext), bytes)
    bytes[0] = (length >> 24) & 0xFF
    bytes[1] = (length >> 16) & 0xFF
    bytes[2] = (length >> 8) & 0xFF
    bytes[3] = length & 0xFF
    return bytesToString(bytes)

# **************************************************************************
# Misc. Utility Functions
# **************************************************************************

def numBytes(n):
    if n==0:
        return 0
    bits = numBits(n)
    return int(math.ceil(bits / 8.0))

def hashAndBase64(s):
    return stringToBase64(sha.sha(s).digest())

def getBase64Nonce(numChars=22): #defaults to an 132 bit nonce
    bytes = getRandomBytes(numChars)
    bytesStr = "".join([chr(b) for b in bytes])
    return stringToBase64(bytesStr)[:numChars]

# **************************************************************************
# Big Number Math
# **************************************************************************

def getRandomNumber(low, high):
    if low >= high:
        raise AssertionError()
    howManyBits = numBits(high)
    howManyBytes = numBytes(high)
    lastBits = howManyBits % 8
    while 1:
        bytes = getRandomBytes(howManyBytes)
        if lastBits:
            bytes[0] = bytes[0] % (1 << lastBits)
        n = bytesToNumber(bytes)
        if n >= low and n < high:
            return n

def gcd(a,b):
    a, b = max(a,b), min(a,b)
    while b:
        a, b = b, a % b
    return a

def lcm(a, b):
    #This will break when python division changes, but we can't use // cause
    #of Jython
    return (a * b) / gcd(a, b)

#Returns inverse of a mod b, zero if none
#Uses Extended Euclidean Algorithm
def invMod(a, b):
    c, d = a, b
    uc, ud = 1, 0
    while c != 0:
        #This will break when python division changes, but we can't use //
        #cause of Jython
        q = d / c
        c, d = d-(q*c), c
        uc, ud = ud - (q * uc), uc
    if d == 1:
        return ud % b
    return 0

if gmpyLoaded:
    def powMod(base, power, modulus):
        base = gmpy.mpz(base)
        power = gmpy.mpz(power)
        modulus = gmpy.mpz(modulus)
        result = pow(base, power, modulus)
        return long(result)

else:
    #Copied from Bryan G. Olson's post to comp.lang.python
    #Does left-to-right instead of pow()'s right-to-left,
    #thus about 30% faster than the python built-in with small bases
    def powMod(base, power, modulus):
        nBitScan = 5

        """ Return base**power mod modulus, using multi bit scanning
        with nBitScan bits at a time."""

        #TREV - Added support for negative exponents
        negativeResult = False
        if (power < 0):
            power *= -1
            negativeResult = True

        exp2 = 2**nBitScan
        mask = exp2 - 1

        # Break power into a list of digits of nBitScan bits.
        # The list is recursive so easy to read in reverse direction.
        nibbles = None
        while power:
            nibbles = int(power & mask), nibbles
            power = power >> nBitScan

        # Make a table of powers of base up to 2**nBitScan - 1
        lowPowers = [1]
        for i in xrange(1, exp2):
            lowPowers.append((lowPowers[i-1] * base) % modulus)

        # To exponentiate by the first nibble, look it up in the table
        nib, nibbles = nibbles
        prod = lowPowers[nib]

        # For the rest, square nBitScan times, then multiply by
        # base^nibble
        while nibbles:
            nib, nibbles = nibbles
            for i in xrange(nBitScan):
                prod = (prod * prod) % modulus
            if nib: prod = (prod * lowPowers[nib]) % modulus

        #TREV - Added support for negative exponents
        if negativeResult:
            prodInv = invMod(prod, modulus)
            #Check to make sure the inverse is correct
            if (prod * prodInv) % modulus != 1:
                raise AssertionError()
            return prodInv
        return prod

#Pre-calculate a sieve of the ~100 primes < 1000:
def makeSieve(n):
    sieve = range(n)
    for count in range(2, int(math.sqrt(n))):
        if sieve[count] == 0:
            continue
        x = sieve[count] * 2
        while x < len(sieve):
            sieve[x] = 0
            x += sieve[count]
    sieve = [x for x in sieve[2:] if x]
    return sieve

sieve = makeSieve(1000)

def isPrime(n, iterations=5, display=False):
    #Trial division with sieve
    for x in sieve:
        if x >= n: return True
        if n % x == 0: return False
    #Passed trial division, proceed to Rabin-Miller
    #Rabin-Miller implemented per Ferguson & Schneier
    #Compute s, t for Rabin-Miller
    if display: print "*",
    s, t = n-1, 0
    while s % 2 == 0:
        s, t = s/2, t+1
    #Repeat Rabin-Miller x times
    a = 2 #Use 2 as a base for first iteration speedup, per HAC
    for count in range(iterations):
        v = powMod(a, s, n)
        if v==1:
            continue
        i = 0
        while v != n-1:
            if i == t-1:
                return False
            else:
                v, i = powMod(v, 2, n), i+1
        a = getRandomNumber(2, n)
    return True

def getRandomPrime(bits, display=False):
    if bits < 10:
        raise AssertionError()
    #The 1.5 ensures the 2 MSBs are set
    #Thus, when used for p,q in RSA, n will have its MSB set
    #
    #Since 30 is lcm(2,3,5), we'll set our test numbers to
    #29 % 30 and keep them there
    low = (2L ** (bits-1)) * 3/2
    high = 2L ** bits - 30
    p = getRandomNumber(low, high)
    p += 29 - (p % 30)
    while 1:
        if display: print ".",
        p += 30
        if p >= high:
            p = getRandomNumber(low, high)
            p += 29 - (p % 30)
        if isPrime(p, display=display):
            return p

#Unused at the moment...
def getRandomSafePrime(bits, display=False):
    if bits < 10:
        raise AssertionError()
    #The 1.5 ensures the 2 MSBs are set
    #Thus, when used for p,q in RSA, n will have its MSB set
    #
    #Since 30 is lcm(2,3,5), we'll set our test numbers to
    #29 % 30 and keep them there
    low = (2 ** (bits-2)) * 3/2
    high = (2 ** (bits-1)) - 30
    q = getRandomNumber(low, high)
    q += 29 - (q % 30)
    while 1:
        if display: print ".",
        q += 30
        if (q >= high):
            q = getRandomNumber(low, high)
            q += 29 - (q % 30)
        #Ideas from Tom Wu's SRP code
        #Do trial division on p and q before Rabin-Miller
        if isPrime(q, 0, display=display):
            p = (2 * q) + 1
            if isPrime(p, display=display):
                if isPrime(q, display=display):
                    return p


text:
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
    <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
    <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
        <group>
            <file>file:/C:/Users/Nathan%20Smith/Documents/RealWorld_Pearson_Coding/RealWorld/src/GUIs/StudentAssignmentPanel.java</file>
            <file>file:/C:/Users/Nathan%20Smith/Documents/RealWorld_Pearson_Coding/RealWorld/src/firebase/FullAssignmentData.java</file>
            <file>file:/C:/Users/Nathan%20Smith/Documents/RealWorld_Pearson_Coding/RealWorld/src/GUIs/MainScreenAssets/FillAssignmentPanel.java</file>
            <file>file:/C:/Users/Nathan%20Smith/Documents/RealWorld_Pearson_Coding/RealWorld/src/GUIs/MainScreenAssets/FillClassesPanel.java</file>
            <file>file:/C:/Users/Nathan%20Smith/Documents/RealWorld_Pearson_Coding/RealWorld/src/firebase/StudentAnswers.java</file>
            <file>file:/C:/Users/Nathan%20Smith/Documents/RealWorld_Pearson_Coding/RealWorld/src/realworld/MainLoginPanel.java</file>
        </group>
    </open-files>
</project-private>


text:
package com.amazonaws.services.identitymanagement.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 *
 */
public class UpdateAccountPasswordPolicyRequest extends AmazonWebServiceRequest
        implements Serializable, Cloneable {

    /**
     *

     * The minimum number of characters allowed in an IAM user password.
     *

     *

     * Default value: 6
     *

     */
    private Integer minimumPasswordLength;
    /**
     *

     * Specifies whether IAM user passwords must contain at least one of the
     * following non-alphanumeric characters:
     *

     *

     * ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     * Default value: false
     *

     */
    private Boolean requireSymbols;
    /**
     *

     * Specifies whether IAM user passwords must contain at least one numeric
     * character (0 to 9).
     *

     *

     * Default value: false
     *

     */
    private Boolean requireNumbers;
    /**
     *

     * Specifies whether IAM user passwords must contain at least one uppercase
     * character from the ISO basic Latin alphabet (A to Z).
     *

     *

     * Default value: false
     *

     */
    private Boolean requireUppercaseCharacters;
    /**
     *

     * Specifies whether IAM user passwords must contain at least one lowercase
     * character from the ISO basic Latin alphabet (a to z).
     *

     *

     * Default value: false
     *

     */
    private Boolean requireLowercaseCharacters;
    /**
     *

     * Allows all IAM users in your account to use the AWS Management Console to
     * change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User
     * Guide.
     *

     *

     * Default value: false
     *

     */
    private Boolean allowUsersToChangePassword;
    /**
     *

     * The number of days that an IAM user password is valid. The default value
     * of 0 means IAM user passwords never expire.
     *

     *

     * Default value: 0
     *

     */
    private Integer maxPasswordAge;
    /**
     *

     * Specifies the number of previous passwords that IAM users are prevented
     * from reusing. The default value of 0 means IAM users are not prevented
     * from reusing previous passwords.
     *

     *

     * Default value: 0
     *

     */
    private Integer passwordReusePrevention;
    /**
     *

     * Prevents IAM users from setting a new password after their password has
     * expired.
     *

     *

     * Default value: false
     *

     */
    private Boolean hardExpiry;

    /**
     *

     * The minimum number of characters allowed in an IAM user password.
     *

     *

     * Default value: 6
     *

     *
     * @param minimumPasswordLength
     *        The minimum number of characters allowed in an IAM user
     *        password.

     *

     *        Default value: 6
     */

    public void setMinimumPasswordLength(Integer minimumPasswordLength) {
        this.minimumPasswordLength = minimumPasswordLength;
    }

    /**
     *

     * The minimum number of characters allowed in an IAM user password.
     *

     *

     * Default value: 6
     *

     *
     * @return The minimum number of characters allowed in an IAM user
     *         password.

     *

     *         Default value: 6
     */

    public Integer getMinimumPasswordLength() {
        return this.minimumPasswordLength;
    }

    /**
     *

     * The minimum number of characters allowed in an IAM user password.
     *

     *

     * Default value: 6
     *

     *
     * @param minimumPasswordLength
     *        The minimum number of characters allowed in an IAM user
     *        password.

     *

     *        Default value: 6
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withMinimumPasswordLength(
            Integer minimumPasswordLength) {
        setMinimumPasswordLength(minimumPasswordLength);
        return this;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one of the
     * following non-alphanumeric characters:
     *

     *

     * ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     * Default value: false
     *

     *
     * @param requireSymbols
     *        Specifies whether IAM user passwords must contain at least one of
     *        the following non-alphanumeric characters:

     *

     *        ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     *        Default value: false
     */

    public void setRequireSymbols(Boolean requireSymbols) {
        this.requireSymbols = requireSymbols;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one of the
     * following non-alphanumeric characters:
     *

     *

     * ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one of
     *         the following non-alphanumeric characters:

     *

     *         ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     *         Default value: false
     */

    public Boolean getRequireSymbols() {
        return this.requireSymbols;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one of the
     * following non-alphanumeric characters:
     *

     *

     * ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     * Default value: false
     *

     *
     * @param requireSymbols
     *        Specifies whether IAM user passwords must contain at least one of
     *        the following non-alphanumeric characters:

     *

     *        ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     *        Default value: false
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withRequireSymbols(
            Boolean requireSymbols) {
        setRequireSymbols(requireSymbols);
        return this;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one of the
     * following non-alphanumeric characters:
     *

     *

     * ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one of
     *         the following non-alphanumeric characters:

     *

     *         ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '
     *

     *

     *         Default value: false
     */

    public Boolean isRequireSymbols() {
        return this.requireSymbols;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one numeric
     * character (0 to 9).
     *

     *

     * Default value: false
     *

     *
     * @param requireNumbers
     *        Specifies whether IAM user passwords must contain at least one
     *        numeric character (0 to 9).

     *

     *        Default value: false
     */

    public void setRequireNumbers(Boolean requireNumbers) {
        this.requireNumbers = requireNumbers;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one numeric
     * character (0 to 9).
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one
     *         numeric character (0 to 9).

     *

     *         Default value: false
     */

    public Boolean getRequireNumbers() {
        return this.requireNumbers;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one numeric
     * character (0 to 9).
     *

     *

     * Default value: false
     *

     *
     * @param requireNumbers
     *        Specifies whether IAM user passwords must contain at least one
     *        numeric character (0 to 9).

     *

     *        Default value: false
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withRequireNumbers(
            Boolean requireNumbers) {
        setRequireNumbers(requireNumbers);
        return this;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one numeric
     * character (0 to 9).
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one
     *         numeric character (0 to 9).

     *

     *         Default value: false
     */

    public Boolean isRequireNumbers() {
        return this.requireNumbers;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one uppercase
     * character from the ISO basic Latin alphabet (A to Z).
     *

     *

     * Default value: false
     *

     *
     * @param requireUppercaseCharacters
     *        Specifies whether IAM user passwords must contain at least one
     *        uppercase character from the ISO basic Latin alphabet (A to
     *        Z).

     *

     *        Default value: false
     */

    public void setRequireUppercaseCharacters(Boolean requireUppercaseCharacters) {
        this.requireUppercaseCharacters = requireUppercaseCharacters;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one uppercase
     * character from the ISO basic Latin alphabet (A to Z).
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one
     *         uppercase character from the ISO basic Latin alphabet (A to
     *         Z).

     *

     *         Default value: false
     */

    public Boolean getRequireUppercaseCharacters() {
        return this.requireUppercaseCharacters;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one uppercase
     * character from the ISO basic Latin alphabet (A to Z).
     *

     *

     * Default value: false
     *

     *
     * @param requireUppercaseCharacters
     *        Specifies whether IAM user passwords must contain at least one
     *        uppercase character from the ISO basic Latin alphabet (A to
     *        Z).

     *

     *        Default value: false
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withRequireUppercaseCharacters(
            Boolean requireUppercaseCharacters) {
        setRequireUppercaseCharacters(requireUppercaseCharacters);
        return this;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one uppercase
     * character from the ISO basic Latin alphabet (A to Z).
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one
     *         uppercase character from the ISO basic Latin alphabet (A to
     *         Z).

     *

     *         Default value: false
     */

    public Boolean isRequireUppercaseCharacters() {
        return this.requireUppercaseCharacters;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one lowercase
     * character from the ISO basic Latin alphabet (a to z).
     *

     *

     * Default value: false
     *

     *
     * @param requireLowercaseCharacters
     *        Specifies whether IAM user passwords must contain at least one
     *        lowercase character from the ISO basic Latin alphabet (a to
     *        z).

     *

     *        Default value: false
     */

    public void setRequireLowercaseCharacters(Boolean requireLowercaseCharacters) {
        this.requireLowercaseCharacters = requireLowercaseCharacters;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one lowercase
     * character from the ISO basic Latin alphabet (a to z).
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one
     *         lowercase character from the ISO basic Latin alphabet (a to
     *         z).

     *

     *         Default value: false
     */

    public Boolean getRequireLowercaseCharacters() {
        return this.requireLowercaseCharacters;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one lowercase
     * character from the ISO basic Latin alphabet (a to z).
     *

     *

     * Default value: false
     *

     *
     * @param requireLowercaseCharacters
     *        Specifies whether IAM user passwords must contain at least one
     *        lowercase character from the ISO basic Latin alphabet (a to
     *        z).

     *

     *        Default value: false
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withRequireLowercaseCharacters(
            Boolean requireLowercaseCharacters) {
        setRequireLowercaseCharacters(requireLowercaseCharacters);
        return this;
    }

    /**
     *

     * Specifies whether IAM user passwords must contain at least one lowercase
     * character from the ISO basic Latin alphabet (a to z).
     *

     *

     * Default value: false
     *

     *
     * @return Specifies whether IAM user passwords must contain at least one
     *         lowercase character from the ISO basic Latin alphabet (a to
     *         z).

     *

     *         Default value: false
     */

    public Boolean isRequireLowercaseCharacters() {
        return this.requireLowercaseCharacters;
    }

    /**
     *

     * Allows all IAM users in your account to use the AWS Management Console to
     * change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User
     * Guide.
     *

     *

     * Default value: false
     *

     *
     * @param allowUsersToChangePassword
     *        Allows all IAM users in your account to use the AWS Management
     *        Console to change their own passwords. For more information, see
     *        Letting IAM Users Change Their Own Passwords in the IAM
     *        User Guide.

     *

     *        Default value: false
     */

    public void setAllowUsersToChangePassword(Boolean allowUsersToChangePassword) {
        this.allowUsersToChangePassword = allowUsersToChangePassword;
    }

    /**
     *

     * Allows all IAM users in your account to use the AWS Management Console to
     * change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User
     * Guide.
     *

     *

     * Default value: false
     *

     *
     * @return Allows all IAM users in your account to use the AWS Management
     *         Console to change their own passwords. For more information, see
     *         Letting IAM Users Change Their Own Passwords in the IAM
     *         User Guide.

     *

     *         Default value: false
     */

    public Boolean getAllowUsersToChangePassword() {
        return this.allowUsersToChangePassword;
    }

    /**
     *

     * Allows all IAM users in your account to use the AWS Management Console to
     * change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User
     * Guide.
     *

     *

     * Default value: false
     *

     *
     * @param allowUsersToChangePassword
     *        Allows all IAM users in your account to use the AWS Management
     *        Console to change their own passwords. For more information, see
     *        Letting IAM Users Change Their Own Passwords in the IAM
     *        User Guide.

     *

     *        Default value: false
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withAllowUsersToChangePassword(
            Boolean allowUsersToChangePassword) {
        setAllowUsersToChangePassword(allowUsersToChangePassword);
        return this;
    }

    /**
     *

     * Allows all IAM users in your account to use the AWS Management Console to
     * change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User
     * Guide.
     *

     *

     * Default value: false
     *

     *
     * @return Allows all IAM users in your account to use the AWS Management
     *         Console to change their own passwords. For more information, see
     *         Letting IAM Users Change Their Own Passwords in the IAM
     *         User Guide.

     *

     *         Default value: false
     */

    public Boolean isAllowUsersToChangePassword() {
        return this.allowUsersToChangePassword;
    }

    /**
     *

     * The number of days that an IAM user password is valid. The default value
     * of 0 means IAM user passwords never expire.
     *

     *

     * Default value: 0
     *

     *
     * @param maxPasswordAge
     *        The number of days that an IAM user password is valid. The default
     *        value of 0 means IAM user passwords never expire.

     *

     *        Default value: 0
     */

    public void setMaxPasswordAge(Integer maxPasswordAge) {
        this.maxPasswordAge = maxPasswordAge;
    }

    /**
     *

     * The number of days that an IAM user password is valid. The default value
     * of 0 means IAM user passwords never expire.
     *

     *

     * Default value: 0
     *

     *
     * @return The number of days that an IAM user password is valid. The
     *         default value of 0 means IAM user passwords never expire.

     *

     *         Default value: 0
     */

    public Integer getMaxPasswordAge() {
        return this.maxPasswordAge;
    }

    /**
     *

     * The number of days that an IAM user password is valid. The default value
     * of 0 means IAM user passwords never expire.
     *

     *

     * Default value: 0
     *

     *
     * @param maxPasswordAge
     *        The number of days that an IAM user password is valid. The default
     *        value of 0 means IAM user passwords never expire.

     *

     *        Default value: 0
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withMaxPasswordAge(
            Integer maxPasswordAge) {
        setMaxPasswordAge(maxPasswordAge);
        return this;
    }

    /**
     *

     * Specifies the number of previous passwords that IAM users are prevented
     * from reusing. The default value of 0 means IAM users are not prevented
     * from reusing previous passwords.
     *

     *

     * Default value: 0
     *

     *
     * @param passwordReusePrevention
     *        Specifies the number of previous passwords that IAM users are
     *        prevented from reusing. The default value of 0 means IAM users are
     *        not prevented from reusing previous passwords.

     *

     *        Default value: 0
     */

    public void setPasswordReusePrevention(Integer passwordReusePrevention) {
        this.passwordReusePrevention = passwordReusePrevention;
    }

    /**
     *

     * Specifies the number of previous passwords that IAM users are prevented
     * from reusing. The default value of 0 means IAM users are not prevented
     * from reusing previous passwords.
     *

     *

     * Default value: 0
     *

     *
     * @return Specifies the number of previous passwords that IAM users are
     *         prevented from reusing. The default value of 0 means IAM users
     *         are not prevented from reusing previous passwords.

     *

     *         Default value: 0
     */

    public Integer getPasswordReusePrevention() {
        return this.passwordReusePrevention;
    }

    /**
     *

     * Specifies the number of previous passwords that IAM users are prevented
     * from reusing. The default value of 0 means IAM users are not prevented
     * from reusing previous passwords.
     *

     *

     * Default value: 0
     *

     *
     * @param passwordReusePrevention
     *        Specifies the number of previous passwords that IAM users are
     *        prevented from reusing. The default value of 0 means IAM users are
     *        not prevented from reusing previous passwords.

     *

     *        Default value: 0
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withPasswordReusePrevention(
            Integer passwordReusePrevention) {
        setPasswordReusePrevention(passwordReusePrevention);
        return this;
    }

    /**
     *

     * Prevents IAM users from setting a new password after their password has
     * expired.
     *

     *

     * Default value: false
     *

     *
     * @param hardExpiry
     *        Prevents IAM users from setting a new password after their
     *        password has expired.

     *

     *        Default value: false
     */

    public void setHardExpiry(Boolean hardExpiry) {
        this.hardExpiry = hardExpiry;
    }

    /**
     *

     * Prevents IAM users from setting a new password after their password has
     * expired.
     *

     *

     * Default value: false
     *

     *
     * @return Prevents IAM users from setting a new password after their
     *         password has expired.

     *

     *         Default value: false
     */

    public Boolean getHardExpiry() {
        return this.hardExpiry;
    }

    /**
     *

     * Prevents IAM users from setting a new password after their password has
     * expired.
     *

     *

     * Default value: false
     *

     *
     * @param hardExpiry
     *        Prevents IAM users from setting a new password after their
     *        password has expired.

     *

     *        Default value: false
     * @return Returns a reference to this object so that method calls can be
     *         chained together.
     */

    public UpdateAccountPasswordPolicyRequest withHardExpiry(Boolean hardExpiry) {
        setHardExpiry(hardExpiry);
        return this;
    }

    /**
     *

     * Prevents IAM users from setting a new password after their password has
     * expired.
     *

     *

     * Default value: false
     *

     *
     * @return Prevents IAM users from setting a new password after their
     *         password has expired.

     *

     *         Default value: false
     */

    public Boolean isHardExpiry() {
        return this.hardExpiry;
    }

    /**
     * Returns a string representation of this object; useful for testing and
     * debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getMinimumPasswordLength() != null)
            sb.append("MinimumPasswordLength: " + getMinimumPasswordLength()
                    + ",");
        if (getRequireSymbols() != null)
            sb.append("RequireSymbols: " + getRequireSymbols() + ",");
        if (getRequireNumbers() != null)
            sb.append("RequireNumbers: " + getRequireNumbers() + ",");
        if (getRequireUppercaseCharacters() != null)
            sb.append("RequireUppercaseCharacters: "
                    + getRequireUppercaseCharacters() + ",");
        if (getRequireLowercaseCharacters() != null)
            sb.append("RequireLowercaseCharacters: "
                    + getRequireLowercaseCharacters() + ",");
        if (getAllowUsersToChangePassword() != null)
            sb.append("AllowUsersToChangePassword: "
                    + getAllowUsersToChangePassword() + ",");
        if (getMaxPasswordAge() != null)
            sb.append("MaxPasswordAge: " + getMaxPasswordAge() + ",");
        if (getPasswordReusePrevention() != null)
            sb.append("PasswordReusePrevention: "
                    + getPasswordReusePrevention() + ",");
        if (getHardExpiry() != null)
            sb.append("HardExpiry: " + getHardExpiry());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof UpdateAccountPasswordPolicyRequest == false)
            return false;
        UpdateAccountPasswordPolicyRequest other = (UpdateAccountPasswordPolicyRequest) obj;
        if (other.getMinimumPasswordLength() == null
                ^ this.getMinimumPasswordLength() == null)
            return false;
        if (other.getMinimumPasswordLength() != null
                && other.getMinimumPasswordLength().equals(
                        this.getMinimumPasswordLength()) == false)
            return false;
        if (other.getRequireSymbols() == null
                ^ this.getRequireSymbols() == null)
            return false;
        if (other.getRequireSymbols() != null
                && other.getRequireSymbols().equals(this.getRequireSymbols()) == false)
            return false;
        if (other.getRequireNumbers() == null
                ^ this.getRequireNumbers() == null)
            return false;
        if (other.getRequireNumbers() != null
                && other.getRequireNumbers().equals(this.getRequireNumbers()) == false)
            return false;
        if (other.getRequireUppercaseCharacters() == null
                ^ this.getRequireUppercaseCharacters() == null)
            return false;
        if (other.getRequireUppercaseCharacters() != null
                && other.getRequireUppercaseCharacters().equals(
                        this.getRequireUppercaseCharacters()) == false)
            return false;
        if (other.getRequireLowercaseCharacters() == null
                ^ this.getRequireLowercaseCharacters() == null)
            return false;
        if (other.getRequireLowercaseCharacters() != null
                && other.getRequireLowercaseCharacters().equals(
                        this.getRequireLowercaseCharacters()) == false)
            return false;
        if (other.getAllowUsersToChangePassword() == null
                ^ this.getAllowUsersToChangePassword() == null)
            return false;
        if (other.getAllowUsersToChangePassword() != null
                && other.getAllowUsersToChangePassword().equals(
                        this.getAllowUsersToChangePassword()) == false)
            return false;
        if (other.getMaxPasswordAge() == null
                ^ this.getMaxPasswordAge() == null)
            return false;
        if (other.getMaxPasswordAge() != null
                && other.getMaxPasswordAge().equals(this.getMaxPasswordAge()) == false)
            return false;
        if (other.getPasswordReusePrevention() == null
                ^ this.getPasswordReusePrevention() == null)
            return false;
        if (other.getPasswordReusePrevention() != null
                && other.getPasswordReusePrevention().equals(
                        this.getPasswordReusePrevention()) == false)
            return false;
        if (other.getHardExpiry() == null ^ this.getHardExpiry() == null)
            return false;
        if (other.getHardExpiry() != null
                && other.getHardExpiry().equals(this.getHardExpiry()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime
                * hashCode
                + ((getMinimumPasswordLength() == null) ? 0
                        : getMinimumPasswordLength().hashCode());
        hashCode = prime
                * hashCode
                + ((getRequireSymbols() == null) ? 0 : getRequireSymbols()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getRequireNumbers() == null) ? 0 : getRequireNumbers()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getRequireUppercaseCharacters() == null) ? 0
                        : getRequireUppercaseCharacters().hashCode());
        hashCode = prime
                * hashCode
                + ((getRequireLowercaseCharacters() == null) ? 0
                        : getRequireLowercaseCharacters().hashCode());
        hashCode = prime
                * hashCode
                + ((getAllowUsersToChangePassword() == null) ? 0
                        : getAllowUsersToChangePassword().hashCode());
        hashCode = prime
                * hashCode
                + ((getMaxPasswordAge() == null) ? 0 : getMaxPasswordAge()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getPasswordReusePrevention() == null) ? 0
                        : getPasswordReusePrevention().hashCode());
        hashCode = prime * hashCode
                + ((getHardExpiry() == null) ? 0 : getHardExpiry().hashCode());
        return hashCode;
    }

    @Override
    public UpdateAccountPasswordPolicyRequest clone() {
        return (UpdateAccountPasswordPolicyRequest) super.clone();
    }
}


text:
/**
 * Start configuration for the monitor (Java configuration read by Python)
 */
{
	/*
	 * OSGi stuffs
	 */
	"import-files" : [ "java-osgi.js", "java-common.js",
	                   "composer/java-isolate.js"],

	/*
	 * Framework properties
	 */
	"properties" : {
		// Remote shell port
		"osgi.shell.telnet.port" : 0,
		// HTTP port
		"org.osgi.service.http.port" : 0
	},

	/*
	 * Framework informations
	 */
	"osgi_name" : "org.apache.felix.framework"
}


text:
<?php namespace App\Console\Commands;

use App\Console\Commands\BaseCommand;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;

class Generic extends BaseCommand {

	/**
	 * The console command name.
	 *
	 * @var string
	 */
	protected $name = 'generic';

	/**
	 * The console command description.
	 *
	 * @var string
	 */
	protected $description = 'Helper for running a Model\s method from an artisan command.';

	/**
	 * Create a new command instance.
	 */
	public function __construct()
	{
		parent::__construct();
	}

	/**
	 * Execute the console command.
	 *
	 * @return mixed
	 */
	public function fire()
	{
		$data = \App::make($this->argument('model'))->{$this->argument('method')}($this->argument('arguments'));
		$output = (is_array($data) ? implode("\n", $data) : $data);

		$this->output($output, false);
	}

	/**
	 * Get the console command arguments.
	 *
	 * @return array
	 */
	protected function getArguments()
	{
		return [
			['model', InputArgument::REQUIRED, 'model name, with namespaces escaped (e.g. App\\\\LaravelRestCms\\\\SomeFolder\\\\SomeClass)'],
			['method', InputArgument::REQUIRED, 'method name'],
			['arguments'],
		];
	}

	/**
	 * Get the console command options.
	 *
	 * @return array
	 */
	protected function getOptions()
	{
		return [
		];
	}

}


text:
<?php

Sencha_RequestHandler::handleRequest();


text:
#pragma once

#include "Shader.h"
#include <vector>

namespace tdogl {

    /**
     Represents an OpenGL program made by linking shaders.
     */
    class Program {
    public:
        /**
         Creates a program by linking a list of tdogl::Shader objects

         @param shaders  The shaders to link together to make the program

         @throws std::exception if an error occurs.

         @see tdogl::Shader
         */
        Program(const std::vector<Shader>& shaders);
        ~Program();

        /**
         @result The program's object id, as returned from glCreateProgram
         */
        GLuint object() const;

        /**
         @result The attribute index for the given name, as returned from glGetAttribLocation.
         */
        GLint attrib(const GLchar* attribName) const;

        /**
         @result The uniform index for the given name, as returned from glGetUniformLocation.
         */
        GLint uniform(const GLchar* uniformName) const;

    private:
        GLuint _object;

        //copying disabled
        Program(const Program&);
        const Program& operator=(const Program&);
    };

}