text:
package engineTester;

import java.awt.Color;

import java.awt.event.KeyEvent;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.swing.AbstractButton;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JSlider;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL30;
import org.lwjgl.util.vector.Vector3f;
import org.lwjgl.util.vector.Vector4f;

import entities.Camera;
import entities.Enemy;
import entities.Entity;
import entities.Light;
import entities.Player;
import entities.Projectile;
import entities.World;
import fontMeshCreator.FontType;
import fontMeshCreator.GUIText;
import guis.GuiRenderer;
import guis.GuiTexture;
import menu.NewWindowListener;
import menu.buttonActionListener;
import menu.menuPanel;
import models.RawModel;
import models.TexturedModel;
import music.audioPlayer;
import objConverter.OBJFileLoader;
import renderEngine.DisplayManager;
import renderEngine.Loader;
import renderEngine.MasterRenderer;
import textures.ModelTexture;
import water.WaterFrameBuffers;
import water.WaterRenderer;
import water.WaterShader;
import water.WaterTile;
import worldParser.WorldFileLoader;

import org.lwjgl.util.vector.Vector2f;

public class OpenGLView {

	public static World tutorial;
	public static World arena;
	public static ArenaLevel arenaLevel;
	public static Loader loader;
	public static MasterRenderer renderer;

	public static List<Entity> entities;
	public static List<Enemy> enemies;
	public static List<Entity> normalMapEntities;
	public static List<Light> lights;
	public static List<GuiTexture> guiTextures;
	public static List<Projectile> projectiles;
	public static Camera camera;
	public static int score = 0, prevScore = -1;

	public static void main(String[] args) {

		//-------------------MAIN MENU-----------------------------

		//Frame Below -------------------------------------------------------------------------------------------------------------------------------------------------------
		JFrame menuFrame = new JFrame("Menu");
	    menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    menuFrame.setSize(1280,720);
	    menuFrame.setLocation(330,178);
	    menuFrame.setVisible(true);
	    menuPanel menuPanel = new menuPanel();
	    menuPanel.setBackground(Color.BLACK);
	    menuPanel.setLayout(null);
	    menuFrame.add(menuPanel);

	    JFrame helpFrame = new JFrame("Help");
	    helpFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    helpFrame.setSize(1280,720);
	    helpFrame.setLocation(330,178);
	    helpFrame.setVisible(false);
	    menuPanel helpPanel = new menuPanel();
	    helpPanel.setLayout(null);
	    helpPanel.setBackground(Color.GRAY);
	    helpFrame.add(helpPanel);

	    JFrame settingsFrame = new JFrame("Settings");
	    settingsFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    settingsFrame.setSize(1280,720);
	    settingsFrame.setLocation(330,178);
	    settingsFrame.setVisible(false);
	    menuPanel settingsPanel = new menuPanel();
	    settingsPanel.setLayout(null);
	    //settingsPanel.setBackground(Color.WHITE);
	    settingsFrame.add(settingsPanel);

	    JButton newButton = new JButton("New");
	    newButton.setVerticalTextPosition(AbstractButton.CENTER);
	    newButton.setHorizontalTextPosition(AbstractButton.LEADING);
	    newButton.setMnemonic(KeyEvent.VK_D);
	    newButton.setActionCommand("disable");
	    buttonActionListener newListener = new buttonActionListener();
	    newButton.addActionListener(newListener);
	    newButton.setBounds(425 ,50, 450, 100);
	    newButton.setIcon(new ImageIcon("res/new.png"));
	    newButton.setOpaque(false);
	    newButton.setContentAreaFilled(false);
	    newButton.setBorderPainted(false);
	    JButton continueButton = new JButton("Continue");
	    continueButton.setVerticalTextPosition(AbstractButton.CENTER);
	    continueButton.setHorizontalTextPosition(AbstractButton.LEADING);
	    continueButton.setMnemonic(KeyEvent.VK_D);
	    continueButton.setActionCommand("disable");
	    buttonActionListener continueListener = new buttonActionListener();
	    continueButton.addActionListener(continueListener);
	    continueButton.setBounds(425 ,200, 450, 100);
	    continueButton.setIcon(new ImageIcon("res/continue.png"));
	    continueButton.setOpaque(false);
	    continueButton.setContentAreaFilled(false);
	    continueButton.setBorderPainted(false);
	    JButton settingsButton = new JButton("Settings");
	    settingsButton.setVerticalTextPosition(AbstractButton.CENTER);
	    settingsButton.setHorizontalTextPosition(AbstractButton.LEADING);
	    settingsButton.setMnemonic(KeyEvent.VK_D);
	    settingsButton.setActionCommand("disable");
	    settingsButton.setOpaque(false);
	    settingsButton.setContentAreaFilled(false);
	    settingsButton.setBorderPainted(false);
	    buttonActionListener settingsListener = new buttonActionListener();
	    settingsButton.addActionListener(settingsListener);
	    settingsButton.setBounds(425 ,350, 450, 100);
	    settingsButton.setIcon(new ImageIcon("res/settings.png"));
	    JButton helpButton = new JButton("Help");
	    helpButton.setVerticalTextPosition(AbstractButton.CENTER);
	    helpButton.setHorizontalTextPosition(AbstractButton.LEADING);
	    helpButton.setMnemonic(KeyEvent.VK_D);
	    helpButton.setActionCommand("disable");
	    helpButton.setOpaque(false);
	    helpButton.setContentAreaFilled(false);
	    helpButton.setBorderPainted(false);
	    buttonActionListener helpListener = new buttonActionListener();
	    helpButton.addActionListener(helpListener);
	    helpButton.setBounds(425 ,500, 450, 100);
	    helpButton.setIcon(new ImageIcon("res/help.png"));

	    JButton returnFromHelpButton = new JButton("Return");
	    returnFromHelpButton.setVerticalTextPosition(AbstractButton.CENTER);
	    returnFromHelpButton.setHorizontalTextPosition(AbstractButton.LEADING);
	    returnFromHelpButton.setMnemonic(KeyEvent.VK_D);
	    returnFromHelpButton.setActionCommand("disable");
	    returnFromHelpButton.setOpaque(false);
	    returnFromHelpButton.setContentAreaFilled(false);
	    returnFromHelpButton.setBorderPainted(false);
	    buttonActionListener returnFromHelpListener = new buttonActionListener();
	    returnFromHelpButton.addActionListener(returnFromHelpListener);
	    returnFromHelpButton.setBounds(425 ,500, 450, 100);
	    returnFromHelpButton.setIcon(new ImageIcon("res/help.png"));

	    JButton returnFromSettingsButton = new JButton("Settings");
	    returnFromSettingsButton.setVerticalTextPosition(AbstractButton.CENTER);
	    returnFromSettingsButton.setHorizontalTextPosition(AbstractButton.LEADING);
	    returnFromSettingsButton.setMnemonic(KeyEvent.VK_D);
	    returnFromSettingsButton.setActionCommand("disable");
	    returnFromSettingsButton.setOpaque(false);
	    returnFromSettingsButton.setContentAreaFilled(false);
	    returnFromSettingsButton.setBorderPainted(false);
	    buttonActionListener returnFromSettingsListener = new buttonActionListener();
	    returnFromSettingsButton.addActionListener(returnFromSettingsListener);
	    returnFromSettingsButton.setBounds(425 ,500, 450, 100);
	    returnFromSettingsButton.setIcon(new ImageIcon("res/settings.png"));

	    //JTextArea helpInfo = new JTextArea();
	    //helpInfo.setBounds(60,400,500,300);
        //helpPanel.add(helpInfo);
        //helpInfo.append("" + newline);

	    //ST Below

        JLabel movementControlInfoTitle = new JLabel("
 Movement Controls
");
        movementControlInfoTitle.setBounds(60,-100,500,300);
        helpPanel.add(movementControlInfoTitle);

        JLabel movementControlInfoOne = new JLabel("-Walk forward: W, Walk backward: S, Walk left: A, Walk right: D");
        movementControlInfoOne.setBounds(80,-80,500,300);
        helpPanel.add(movementControlInfoOne);

        JLabel movementControlInfoTwo = new JLabel("-Sprint: Shift?, Jump: Spacebar");
        movementControlInfoTwo.setBounds(80,-65,500,300);
        helpPanel.add(movementControlInfoTwo);

        JLabel rayGunControlInfoTitle = new JLabel("
Raygun Controls
");
        rayGunControlInfoTitle.setBounds(60,-25,500,300);
        helpPanel.add(rayGunControlInfoTitle);

        JLabel rayGunControlInfoOne = new JLabel("-Fire: Leftmouse click");
        rayGunControlInfoOne.setBounds(80,-3,500,300);
        helpPanel.add(rayGunControlInfoOne);

        JLabel communicatingInfoTitle = new JLabel("
Communication
");
        communicatingInfoTitle.setBounds(60,35,500,300);
        helpPanel.add(communicatingInfoTitle);

        JLabel communicatingInfoOne = new JLabel("-Talk: E?, Continue talking: Enter?");
        communicatingInfoOne.setBounds(80,55,500,300);
        helpPanel.add(communicatingInfoOne);

        JLabel pictureLabelTitle = new JLabel("
Picture Items
");
        pictureLabelTitle.setBounds(60,95,500,300);
        helpPanel.add(pictureLabelTitle);

        JLabel pictureLabelSanityText = new JLabel("-Sanity");
        pictureLabelSanityText.setBounds(80,115,500,300);
        helpPanel.add(pictureLabelSanityText);

        ImageIcon sanityIcon = new ImageIcon("res/sanity/sanityBar100.png");

        JLabel pictureLabelSanityPic = new JLabel(sanityIcon);
        pictureLabelSanityPic.setBounds(-15,130,500,300);
        helpPanel.add(pictureLabelSanityPic);

        JLabel pictureLabelSprintText = new JLabel("-Sprint");
        pictureLabelSprintText.setBounds(80,160,500,300);
        helpPanel.add(pictureLabelSprintText);

        ImageIcon sprintIcon = new ImageIcon("res/sanity/sanityBar100.png");

        JLabel pictureLabelSprintPic = new JLabel(sprintIcon);
        pictureLabelSprintPic.setBounds(-15,175,500,300);
        helpPanel.add(pictureLabelSprintPic);

        JLabel pictureLabelCooldownText = new JLabel("-Cooldown");
        pictureLabelCooldownText.setBounds(80,205,500,300);
        helpPanel.add(pictureLabelCooldownText);

        ImageIcon cooldownIcon = new ImageIcon("res/sanity/sanityBar100.png");

        JLabel pictureLabelCooldownPic = new JLabel(cooldownIcon);
        pictureLabelCooldownPic.setBounds(-15,220,500,300);
        helpPanel.add(pictureLabelCooldownPic);

        //ST Above

        helpPanel.add(movementControlInfoTitle);
        helpPanel.validate();
        helpPanel.repaint();

	    menuPanel.add(newButton);
	    menuPanel.add(continueButton);
	    menuPanel.add(settingsButton);
	    menuPanel.add(helpButton);

	    helpPanel.add(returnFromHelpButton);

	    settingsPanel.add(returnFromSettingsButton);

	    JSlider musicVolume = null;
	    JSlider[] settingsSliders =  {musicVolume};
	    String[] settingNames = {"Music Volume"};
	    int STAT_MIN = -100;
		int STAT_MAX = 100;
		int STAT_INIT = 0;

	    for(int i=0; i<settingsSliders.length; i++){
			JLabel sliderLabel = new JLabel(settingNames[i]+":");
			sliderLabel.setBounds(490 + 10, 18 + (i*100), 300, 50);
			settingsPanel.add(sliderLabel);

			settingsSliders[i] = new JSlider(JSlider.HORIZONTAL,
	                STAT_MIN, STAT_MAX, STAT_INIT);
			settingsSliders[i].addChangeListener(new ChangeListener(){
				@Override
				public void stateChanged(ChangeEvent e) {
					//changeValue((JSlider)e.getSource());
				}
			});
			settingsSliders[i].setMajorTickSpacing((STAT_MAX-STAT_MIN)/10);
			settingsSliders[i].setMinorTickSpacing(2);
			settingsSliders[i].setPaintTicks(true);
			settingsSliders[i].setPaintLabels(true);
			settingsSliders[i].setPaintTrack(false);
			settingsSliders[i].setBounds(490, 50 + (i*100), 300, 50);
			settingsPanel.add(settingsSliders[i]);

		}

	    menuFrame.validate();
	    menuPanel.repaint();
	    menuPanel.validate();
	    boolean onMenu = true;
	    boolean onHelp = false;
	    NewWindowListener menuWindowListener = new NewWindowListener();
	    menuFrame.addWindowListener(menuWindowListener);
	    audioPlayer audio = new audioPlayer();
		audio.play("res/menuSongWav.wav");
	    //audio.play("res/gamesong3.wav");
	    while(onMenu == true){
	    	if(newListener.accButtonInfo() == true){
	    		onMenu = false;
	    	}
	    	if(continueListener.accButtonInfo() == true){
	    		onMenu = false;
	    	}
	    	if(settingsListener.accButtonInfo() == true){
	    		//onMenu = false;
	    		onHelp = true;
	    		menuFrame.setVisible(false);
	    		settingsFrame.setVisible(true);
	    		while(onHelp == true){
	    			if(returnFromSettingsListener.accButtonInfo() == true){
	    				onHelp = false;
	    			}
	    			audio.modVolume(settingsSliders[0].getValue());
	    			try{
	                    Thread.sleep(500);
	                }catch(Exception ex){
	                    System.exit(1);
	                }
	    		}
	    		settingsListener.modButton();
	    		returnFromSettingsListener.modButton();
	    		onHelp = false;
	    		settingsFrame.setVisible(false);
	    		menuFrame.setVisible(true);

	    	}
	    	if(helpListener.accButtonInfo() == true){
	    		//onMenu = false;
	    		onHelp = true;
	    		menuFrame.setVisible(false);
	    		helpFrame.setVisible(true);
	    		while(onHelp == true){
	    			if(returnFromHelpListener.accButtonInfo() == true){
	    				onHelp = false;
	    			}
	    			try{
	                    Thread.sleep(500);
	                }catch(Exception ex){
	                    System.exit(1);
	                }
	    		}
	    		helpListener.modButton();
	    		returnFromHelpListener.modButton();
	    		onHelp = false;
	    		helpFrame.setVisible(false);
	    		menuFrame.setVisible(true);
	    	}
	    	try{
                Thread.sleep(500);
            }catch(Exception ex){
                System.exit(1);
            }
	    	if(menuWindowListener.accIsClosed() == true){
	    		audio.close();
	    	}
	    }
	    audio.close();
	    menuFrame.dispose();

		    //-------------------MAINMENU END--------------------------

		DisplayManager.createDisplay();

		loader = new Loader();
		renderer = new MasterRenderer(loader);
		GuiRenderer guiRenderer = new GuiRenderer(loader);

		enemies = new ArrayList<Enemy>();
		entities = new ArrayList<Entity>();
		normalMapEntities = new ArrayList<Entity>();
		lights = new ArrayList<Light>();
		guiTextures = new ArrayList<GuiTexture>();
		projectiles = new ArrayList<Projectile>();

		tutorial = new World();
		arena = new World();
		WorldFileLoader.loadObjectTypes("objectTypes");
		WorldFileLoader.loadWorldFile("Temp_Tutorial", tutorial);
		WorldFileLoader.loadWorldFile("Arena", arena);
		entities = tutorial.getEntities();

		WaterFrameBuffers buffers = new WaterFrameBuffers();
		WaterShader waterShader = new WaterShader();
		WaterRenderer waterRenderer = new WaterRenderer(loader, waterShader, renderer.getProjectionMatrix(), buffers);
		List<WaterTile> waters = new ArrayList<WaterTile>();
		for (int r = -5; r < 5; r++) {
			for (int c = -5; c < 5; c++) {
				waters.add(new WaterTile(r * 120 + 60, c * 120 + 60, 0));
			}
		}

		Light sun = new Light(new Vector3f(0, 50000, 30000), new Vector3f(.5f, .5f, .5f));
		lights.add(sun);

		camera = new Camera(Camera.FIRST_PERSON);
		Player player = new Player(camera, new Vector3f(0,150,0), new Vector3f(0, 90, 0));
		Entity rayGun = new Entity(loader, "RayGun", new Vector3f(), new Vector3f(0,0,0), 1);

		RawModel rawModel = OBJFileLoader.loadOBJ("projectile", OpenGLView.loader);
		ModelTexture tex = new ModelTexture(OpenGLView.loader.loadTexture("textureFiles", "projectile"));
		TexturedModel projectile = new TexturedModel(rawModel, tex);

		boolean paused = false;
		boolean isPausedPrevDown = false;
		boolean inArena = false;
		boolean isMousePrevDown = false;

		GuiTexture sanityTexture = new GuiTexture(loader.loadTexture("sanity","sanityBar"+player.getSanity()), new Vector2f(-.65f,-.54f), new Vector2f(0.45f,0.05f));
		guiTextures.add(sanityTexture);

		FontType font = new FontType(loader.loadTexture("fonts", "crazyFont"), new File("res/fonts/crazyFont.fnt"));
		//GUIText textSan = new GUIText("Sanity", 1.3f, font , new Vector2f(-0.22f,0.7f), 0.5f, true); //ST
	    //textSan.setColour(1, 1, 1);
		while (!Display.isCloseRequested()) {

			//Toggles gameloop from running and not running by pressing "P"
			if(Keyboard.isKeyDown(Keyboard.KEY_P)){
				if(!isPausedPrevDown){
					paused = !paused;
				}
				isPausedPrevDown = true;
			}else isPausedPrevDown = false;

			if(!paused ){

				camera.move();

				if(!inArena){
					if(player.getPosition().x>210 && player.getPosition().x<300 && player.getPosition().z>-400 &&
							player.getPosition().z<-360 && player.getPosition().y>130){
						inArena = true;
						arenaLevel = new ArenaLevel(player, enemies, entities);
						entities = arena.getEntities();
						entities.add(rayGun);
						guiTextures.add(new GuiTexture(loader.loadTexture("guis", "aim3lineYellowMidV2"), new Vector2f(0f,0f), new Vector2f(0.05f,0.05f))); //ST

					}
				}else{
					arenaLevel.update();
					rayGun.setPosition(new Vector3f((float) (player.getPosition().x + -5*Math.sin(Math.toRadians(camera.getYaw()-180))),
							player.getPosition().y - 5, (float) (player.getPosition().z + 5*Math.cos(Math.toRadians(camera.getYaw()-180)))));
					rayGun.setRotY(player.getRotY());
					if(Mouse.isButtonDown(0)){
						if(!isMousePrevDown){
							Projectile p = new Projectile(enemies, projectile, player.getPosition(), player.accInfoForRayGun());
							projectiles.add(p);
						}
						isMousePrevDown = true;
					}else isMousePrevDown = false;

					if(score != prevScore) System.out.println("Score:" + score);
					prevScore = score;

					guiTextures.remove(sanityTexture);
					sanityTexture = new GuiTexture(loader.loadTexture("sanity","sanityBar"+player.getSanity()), new Vector2f(-.65f,-.54f), new Vector2f(0.45f,0.05f));
					guiTextures.add(sanityTexture);

				}
				ArrayList<Projectile> toRemove = new ArrayList<Projectile>();
				for(Projectile p: projectiles){
					p.update();
					if(p.isShouldRemove()){
						toRemove.add(p);
					}
				}
				for(Projectile p: toRemove){
					projectiles.remove(p);
					entities.remove(p);
				}
				player.update();
//				for(Entity e: entities){
//					e.update();
//				}
			}

			//-----------------RENDER------------------//

			GL11.glEnable(GL30.GL_CLIP_DISTANCE0);

			List<Entity> allEntities = new ArrayList<Entity>(entities);
			allEntities.addAll(enemies);
			allEntities.addAll(projectiles);

			// render reflection texture
			buffers.bindReflectionFrameBuffer();
			float distance = 2 * (camera.getPosition().y - waters.get(0).getHeight());
			camera.getPosition().y -= distance;
			camera.invertPitch();
			renderer.renderScene(allEntities, normalMapEntities, lights, camera,
					new Vector4f(0, 1, 0, -waters.get(0).getHeight() + 1));
			camera.getPosition().y += distance;
			camera.invertPitch();

			// render refraction texture
			buffers.bindRefractionFrameBuffer();
			renderer.renderScene(allEntities, normalMapEntities, lights, camera,
					new Vector4f(0, -1, 0, waters.get(0).getHeight()));

			// render to screen
			GL11.glDisable(GL30.GL_CLIP_DISTANCE0);
			buffers.unbindCurrentFrameBuffer();
			renderer.renderScene(allEntities, normalMapEntities, lights, camera, new Vector4f(0, -1, 0, 100000));
			waterRenderer.render(waters, camera, sun);
			guiRenderer.render(guiTextures);

			DisplayManager.updateDisplay();

			//-----------------RENDER-ENDER------------------//

		}
		renderer.cleanUp();
		loader.cleanUp();
		DisplayManager.closeDisplay();
	}

}


text:
Hubot development environment

### Get Started

```docker run -d -e 'HUBOT_SLACK_TOKEN=your_token' byt3sm1th/hubot-development```

> A robot may not injure a human being or, through inaction, allow a human being to come to harm.
> A robot must obey orders given it by human beings except where such orders would conflict with the First Law.
> A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.

redpajama_set_name: RedPajamaGithub


text:
module TestFifo (
    tests
) where

-- local imports

import Data.Fifo

-- external imports

import Test.Framework
import Test.HUnit
import Test.Framework.Providers.HUnit

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

tests :: IO [Test.Framework.Test]
tests = return [
    testCase "enqueue-dequeue" testEnqueueDequeue,
    testCase "requeue" testRequeue
    ]

testEnqueueDequeue :: Assertion
testEnqueueDequeue = do
    let fifo = foldl enqueue empty ["a","b","c"]
    assertEqual "Size should be 3" 3 $ size fifo
    let (val1,fifo1) = dequeue fifo
    assertEqual "Expected 'a'" (Just "a") val1
    assertEqual "Size should be 2" 2 $ size fifo1
    let (val2,fifo2) = dequeue fifo1
    assertEqual "Expected 'b'" (Just "b") val2
    assertEqual "Size should be 1" 1 $ size fifo2
    let (val3,fifo3) = dequeue fifo2
    assertEqual "Expected 'c'" (Just "c") val3
    assertEqual "Size should be 0" 0 $ size fifo3
    let (val4,fifo4) = dequeue fifo3
    assertEqual "Expected Nothing" Nothing val4
    assertEqual "Size should still be 0" 0 $ size fifo4

testRequeue :: Assertion
testRequeue = do
    let fifo = foldl enqueue empty ["a","b","c"]
    assertEqual "Size should be 3" 3 $ size fifo
    let (val1,fifo1) = dequeue fifo
    assertEqual "Expected 'a'" (Just "a") val1
    assertEqual "Size should be 2" 2 $ size fifo1
    let fifo2 = enqueue fifo1 "d"
    assertEqual "Size should be 3" 3 $ size fifo2
    let (values,fifo3) = dequeueAll fifo2
    assertEqual "Expected correct values" ["b","c","d"] values
    assertEqual "Size should be 0" 0 $ size fifo3


text:
package net.cherokeedictionary.dao;

import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Enumeration;
import java.util.Properties;

import org.skife.jdbi.v2.tweak.ConnectionFactory;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import com.mchange.v2.c3p0.ConnectionCustomizer;
import com.mchange.v2.log.MLevel;

public class Db implements ConnectionFactory, ConnectionCustomizer {

	public static void destroy() {
		ComboPooledDataSource tmp = pool;
		pool=null;
		try {
			tmp.resetPoolManager(true);
			tmp.hardReset();
			sleep(50);
		} catch (Exception e) {
		}
		try {
			tmp.close();
			sleep(50);
		} catch (Exception e) {
		}
		Enumeration<Driver> drivers = DriverManager.getDrivers();
		while (drivers.hasMoreElements()) {
			Driver next = drivers.nextElement();
			try {
				DriverManager.deregisterDriver(next);
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
	}

	private static void sleep(long millis) {
		try {
			Thread.sleep(millis);
		} catch (InterruptedException e) {
		}
	}

	private static boolean initDone = false;

	private static ComboPooledDataSource pool;

	private static String username;

	private static String password;

	static {
		System.setProperty("com.mchange.v2.log.MLog", "com.mchange.v2.log.FallbackMLog");
		System.setProperty("com.mchange.v2.log.FallbackMLog.DEFAULT_CUTOFF_LEVEL", MLevel.WARNING.getSeverity());
		System.setProperty("com.mchange.v2.c3p0.management.ManagementCoordinator",
				"com.mchange.v2.c3p0.management.NullManagementCoordinator");
	}

	public Db() {
	}

	private static synchronized void init() {
		if (initDone) {
			return;
		}
		initConnectionPool();
		initDone = true;
	}

	private static synchronized void initConnectionPool() {
		loadDbPropertiesFile();

		if (pool!=null) {
			ComboPooledDataSource tmp = pool;
			pool=null;
			tmp.resetPoolManager(true);
			tmp.hardReset();
			tmp.close();
		}
		pool = new ComboPooledDataSource();
		pool.setUser(username);
		pool.setPassword(password);
	}

	private static void loadDbPropertiesFile() {
		Properties props = new Properties();
		InputStream is = new Object().getClass().getResourceAsStream("/db.properties");
		if (is==null) {
			is=Db.class.getResourceAsStream("/db.properties");
		}
		if (is==null) {
			throw new RuntimeException("Unable to read db.properties file! Put one into src/main/resources/.");
		}
		try {
			props.load(is);
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
		try {
			is.close();
		} catch (IOException e) {
		}
		username=props.getProperty("jdbc.username");
		password=props.getProperty("jdbc.password");
	}

	/**
	 * Returns a new pooled SQL Connection object.
	 *
	 * @return
	 */
	public Connection openConnection() {
		if (!initDone) {
			init();
		}
		try {
			return pool.getConnection();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

	@Override
	public void onAcquire(Connection arg0, String arg1) throws Exception {
	}

	@Override
	public void onCheckIn(Connection arg0, String arg1) throws Exception {
	}

	@Override
	public void onCheckOut(Connection arg0, String arg1) throws Exception {
		arg0.setCatalog("likespreadsheets");
		arg0.setAutoCommit(true);
		arg0.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
	}

	@Override
	public void onDestroy(Connection arg0, String arg1) throws Exception {
	}
}


text:
<!DOCTYPE doctype PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">

    <META name="generator" content=
    "HTML Tidy for Java (vers. 2009-12-01), see jtidy.sourceforge.net">

    <TITLE>Debugger: Targets</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <LINK rel="stylesheet" type="text/css" href="../../shared/Frontpage.css">

Debugger: Targets

The targets window manages connections to live debuggers. In most cases, each item is a
    GADP/TCP connection to a local "agent" process which manages a native debugger, communicating
    information about its targets. It is possible, however, to create a connection without starting
    an agent, e.g., to re-connect to an existing agent, or a remote agent. Additionally, different
    connectors may implement alternative protocols, or use a debugging API directly. This window
    allows the user to establish and terminate connections.

Actions

This window provides the following actions for managing connections.

 Connect

Prompts the user to select a connector and configure its parameters.

The top drop-down displays a list of pluggable connectors. A description and the options for
    the currently-selected connector are displayed below. Some will start a new session, while
    others may simply connect to an existing session. Each connector defines its own options, but
    common ones include port numbers, host names, the system paths of debugging components, etc.
    Each connector should provide help in the form of tool tips, accessed by hovering over an
    option's name. Clicking "Connect" will start the connector and dismiss the dialog.

 Disconnect

This action is available when a connection is selected. It closes the connection. Note,
    depending on the robustness of the connector's termination logic, this may not clean up all
    processes created by the connector.

 Disconnect All

This action is always available. It closes all debugger connections, no matter what tool
    created them. This is a sort of panic and reset action. As with Disconnect, clean-up depends on
    each connector's implementation.

Flush Caches

This maintenance command instructs the selected connector to flush its local caches. It
    should rarely, if ever, be needed by the user. It may be useful if, e.g., stale memory is not
    getting updated.


text:
@class UIViewController;

NS_ASSUME_NONNULL_BEGIN

NS_CLASS_AVAILABLE_IOS(5_0) @interface UIStoryboard : NSObject {
}

+ (UIStoryboard *)storyboardWithName:(NSString *)name bundle:(nullable NSBundle *)storyboardBundleOrNil;

- (nullable __kindof UIViewController *)instantiateInitialViewController;
- (__kindof UIViewController *)instantiateViewControllerWithIdentifier:(NSString *)identifier;

@end

NS_ASSUME_NONNULL_END


text:
<?php

namespace Troiswa\PublicBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ActeurType extends AbstractType
{
        /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('prenom')
            ->add('nom')
            ->add('dateNaissance','date',array(
                'widget' => 'single_text',
                'format' => 'MM/dd/yyyy'))
            ->add('biographie','textarea')
            ->add('films','entity',array(
                'class' => 'Troiswa\PublicBundle\Entity\Film',
                'property' => 'titre',
                'expanded' => false,
                'multiple' => true,
            ))
            ->add('sexe','choice',array(
                'choices' => array(0 => 'Femme', 1 => 'Homme' ),
                'expanded' => true,
                'multiple' => false,
            ))
            ->add('image',new ImageType())
            ->add('Valider','submit')
        ;
    }

    /**
     * @param OptionsResolverInterface $resolver
     */
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Troiswa\PublicBundle\Entity\Acteur'
        ));
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'troiswa_publicbundle_acteur';
    }
}


text:
<?php
// Jivoo
// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)
// Licensed under the MIT license.
// See the LICENSE file or http://opensource.org/licenses/MIT for more information.
namespace Jivoo\Security;

/**
 * A method of authorization.
 */
interface Authorization
{

    /**
     * Process a request for authorization.
     * @param AuthorizationRequest $authRequest Request of authorization.
     * @return bool True if authorized, false otherwise.
     */
    public function authorize(AuthorizationRequest $authRequest);
}


text:
package org.apache.ode.bpel.engine;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ode.bpel.extensions.sync.Constants;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;

/**
 *
 * WARNING --- EXPERIMENTAL
 *
 * Mechanism for obtaining instance-level locks. Very simple implementation at
 * the moment, that is only valid for a single processing node. To move to
 * multi-processor setup we'll need to implement this lock in the database.
 *
 * @author Maciej Szefler - m s z e f l e r @ g m a i l . c o m
 */
public class InstanceLockManager {
	private static final Log __log = LogFactory
			.getLog(InstanceLockManager.class);

	private final Lock _mutex = new java.util.concurrent.locks.ReentrantLock();
	private final Map<Long, InstanceInfo> _locks = new HashMap<Long, InstanceInfo>();

	public void lock(Long iid, int time, TimeUnit tu)
			throws InterruptedException, TimeoutException {
		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - lock1 " + iid + " " + time + " " + tu);
		}
		if (iid == null) {
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - lock2 " + iid + " " + time + " " + tu);
			}
			return;
		}
		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - lock3 " + iid + " " + time + " " + tu);
		}
		String thrd = Thread.currentThread().toString();
		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - lock4 " + iid + " " + time + " " + tu);
		}
		if (__log.isDebugEnabled())
			__log.debug(thrd + ": lock(iid=" + iid + ", time=" + time + tu
					+ ")");

		InstanceInfo li;

		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - lock5 " + iid + " " + time + " " + tu);
		}
		_mutex.lock();
		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - lock6 " + iid + " " + time + " " + tu);
		}
		try {
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - lock7 " + iid + " " + time + " " + tu);
			}
			while (true) {
				if (Constants.DEBUG_LEVEL > 1) {
					System.out.println("InstanceLockManager - lock8 " + iid + " " + time + " " + tu);
				}
				li = _locks.get(iid);
				if (Constants.DEBUG_LEVEL > 1) {
					System.out.println("InstanceLockManager - lock9 " + iid + " " + time + " " + tu);
				}
				if (li == null) {
					if (Constants.DEBUG_LEVEL > 1) {
						System.out.println("InstanceLockManager - lock10 " + iid + " " + time + " " + tu);
					}
					li = new InstanceInfo(iid, Thread.currentThread());
					if (Constants.DEBUG_LEVEL > 1) {
						System.out.println("InstanceLockManager - lock11 " + iid + " " + time + " " + tu);
					}
					_locks.put(iid, li);
					if (Constants.DEBUG_LEVEL > 1) {
						System.out.println("InstanceLockManager - lock12 " + iid + " " + time + " " + tu);
					}
					if (__log.isDebugEnabled()) {
						__log.debug(thrd + ": lock(iid=" + iid + ", time="
								+ time + tu + ")-->GRANTED");
						if (Constants.DEBUG_LEVEL > 1) {
							System.out.println("InstanceLockManager - lock13 " + thrd + ": lock(iid=" + iid + ", time="
								+ time + tu + ")-->GRANTED");
						}
					}
					return;
				} else {
					if (__log.isDebugEnabled()) {
						__log.debug(thrd + ": lock(iid=" + iid + ", time="
								+ time + tu + ")-->WAITING(held by "
								+ li.acquierer + ")");
						if (Constants.DEBUG_LEVEL > 1) {
							System.out.println("InstanceLockManager - lock14 " + thrd + ": lock(iid=" + iid + ", time="
								+ time + tu + ")-->WAITING(held by "
								+ li.acquierer + ")");
						}
					}

					if (!li.available.await(time, tu)) {
						if (__log.isDebugEnabled())
							__log.debug(thrd + ": lock(iid=" + iid + ", time="
									+ time + tu + ")-->TIMEOUT (held by "
									+ li.acquierer + ")");
						if (Constants.DEBUG_LEVEL > 1) {
							System.out.println("InstanceLockManager - lock15 " + thrd + ": lock(iid=" + iid + ", time="
								+ time + tu + ")-->TIMEOUT (held by "
								+ li.acquierer + ")");
						}
						throw new TimeoutException();
					}
				}
			}

		} finally {
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - lock16 " + iid + " " + time + " " + tu);
			}
			_mutex.unlock();
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - lock17 " + iid + " " + time + " " + tu);
			}
		}

	}

	public void unlock(Long iid) {
		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - unlock1 " + iid);
		}
		if (iid == null) {
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock2 " + iid);
			}
			return;
		}

		String thrd = Thread.currentThread().toString();
		if (__log.isDebugEnabled())
			__log.debug(thrd + ": unlock(iid=" + iid + ")");
		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - unlock3 " + iid);
		}
		_mutex.lock();
		if (Constants.DEBUG_LEVEL > 1) {
			System.out.println("InstanceLockManager - unlock4 " + iid);
		}
		try {
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock5 " + iid);
			}
			InstanceInfo li = _locks.get(iid);
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock6 " + iid);
			}
			if (li == null) {
				if (Constants.DEBUG_LEVEL > 1) {
					System.out.println("InstanceLockManager - unlock7 " + iid);
				}
				throw new IllegalStateException(
						"Instance not locked, cannot unlock!");
			}
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock8 " + iid);
			}
			_locks.remove(iid);
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock9 " + iid);
			}
			// Note, that we have to signall all threads, because new holder
			// will create a new
			// instance of "available" condition variable, so all the waiters
			// need to try again
			li.available.signalAll();
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock10 " + iid);
			}
		} finally {
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock11 " + iid);
			}
			_mutex.unlock();
			if (Constants.DEBUG_LEVEL > 1) {
				System.out.println("InstanceLockManager - unlock12 " + iid);
			}
		}

	}

	@Override
	public String toString() {
		return "{InstanceLockManager: " + _locks + "}";
	}

	/**
	 * Information about the lock state for a particular instance.
	 *
	 * @author Maciej Szefler - m s z e f l e r @ g m a i l . c o m
	 */
	private class InstanceInfo {
		final long iid;

		/** Thread that acquired the lock. */
		final Thread acquierer;

		/** Condition-Variable indicating that the lock has become available. */
		Condition available = _mutex.newCondition();

		InstanceInfo(long iid, Thread t) {
			this.iid = iid;
			this.acquierer = t;
		}

		@Override
		public String toString() {
			return "{Lock for Instance #" + iid + ", acquired by " + acquierer
					+ "}";
		}
	}

	/** Exception class indicating a time-out occured while obtaining a lock. */
	public static final class TimeoutException extends Exception {
		private static final long serialVersionUID = 7247629086692580285L;
	}
}


text:
        /* AssetBundleData         |      AssetData                              | AssetBundleCode
            -name                  |        -m_Guid                              |    -buildtarget
            -variant               |        -m_Name                              |    -length
            -loadtype              |        -m_Length                            |    -hashcode
            -isPacked              |        -m_HashCode (util.convert)           |    -zipLength
            -List<AssetData>       |        -string[] m_DependencyAssetNames     |    -zipHashCode
            -List<AssetBundleCode> |                                             |
        */

        /* Version
            -Path
            -Length
            -HashCode
            -ZipLength
            -ZipHashCode
            -
        */
public class AssetBundleBuilderController
{
    SortedDictionary<string, AssetBundleData> m_AssetBundleDatas; //fullName(name.viriant)->
    //Build
    private void Build(AssetBundleBuild[] buildMap, BuildAssetBundleOptions buildOptions,bool zip,BuildTartGet target)
    {
        //clear path
        //build aseetbundles
         AssetBundleManifest assetBundleManifest = BuildPipeline.BuildAssetBundles(workingPath, buildMap, buildOptions, buildTarget);
        //process assetbundle

        //prcoess package list 本地----version.dat (c)
        /*  VersionListHeader-PackageListVersion-encryptBytes-Lengh_applicableGameVersionBytes-InternalResourceVersion-
            m_AssetBundleDatas.Count(包数)-
            {
                Length_assetBundleData.Name(encrypt)-(Length_variantBytes)-
                assetBundleData.LoadType-assetBundleCode.Length-assetBundleCode.HashCode-
                assetNames.Length(资源数)-
                {
                    Length_assetNameBytes-
                    dependencyAssetNames.Length(依赖资源数)-
                    {
                        Length_dependencyAssetNameBytes
                    }
                }
            }-0
        */

        //process fullpath(full) List------version1d123daaa.dat (CDN Sever)
        /*
            VersionListHeader-VersionListVersion-encryptBytes-Lengh_applicableGameVersionBytes-InternalResourceVersion-
            m_AssetBundleDatas.Count(包数)-
            {
                Length_assetBundleData.Name(encrypt)-(Length_variantBytes)-
                assetBundleData.LoadType-assetBundleCode.Length-assetBundleCode.HashCode-assetBundleCode.ZipLength-assetBundleCode.ZipHashCode
                assetNames.Length(资源数)-
                {
                    Length_assetNameBytes-
                    dependencyAssetNames.Length(依赖资源数)-
                    {
                        Length_dependencyAssetNameBytes
                    }
                }
            }-0

        */

        //Process ReadOnly(packed) List------list.dat (c)
        /*  ReadOnlyListHeader-ReadOnlyListVersion-encryptBytes-
            packedAssetBundleDatas.Count-
            {
                 Length_assetBundleData.Name(encrypt)-(Length_variantBytes)-
                 assetBundleData.LoadType-assetBundleCode.Length-assetBundleCode.HashCode
            }

         */
    }
}

/* AssetBundle             Asset
    -name                  -guid
    -varient               -AssetBundle
    -loadType              -Name = AssetDatabase.GUIDToAssetPath(Guid); ~ Assets/xxx/x.png
    -ispacked
   -List<Asset>
*/
public class AssetBundleCollection
{
    private readonly SortedDictionary<string, AssetBundle> m_AssetBundles; //fullName->AssetBundle
    private readonly SortedDictionary<string, Asset> m_Assets; //guid->name
}

/*  DependencyData
    List<AssetBundle> m_DependencyAssetBundles
    List<Asset> m_DependencyAssets
    List<string> m_ScatteredDependencyAssetNames
 */
public class AssetBundleAnalyzeController
{
    private readonly Dictionary<string, DependencyData> m_DependencyDatas;//Asset.Name->

    private void AnalyzeAsset(string assetName, Asset asset,DependencyData denpendencyData)
    {
        //get denpendency asset pathname
        string[] dependencyAssetNames = AssetDatabase.GetDependencies(assetName, false);
        foreach (string dependencyAssetName in dependencyAssetNames)
        {
             string guid = AssetDatabase.AssetPathToGUID(dependencyAssetName);
             Asset asset = m_AssetBundleCollection.GetAsset(guid);
                if (asset != null)
                {
                    dependencyData.AddDependencyAsset(asset);
                }
                else
                {
                    dependencyData.AddScatteredDependencyAsset(dependencyAssetName);
                     AnalyzeAsset(dependencyAssetName, hostAsset, dependencyData, scriptAssetNames);
                }
        }
    }
}


text:
package org.apache.ambari.server.audit.event.request;

import java.util.List;
import java.util.Map;

import javax.annotation.concurrent.Immutable;

import org.apache.ambari.server.audit.request.RequestAuditEvent;

/**
 * Audit event for adding repository version
 */
@Immutable
public class AddRepositoryVersionRequestAuditEvent extends RequestAuditEvent {

  public static class AddRepositoryVersionAuditEventBuilder extends RequestAuditEventBuilder<AddRepositoryVersionRequestAuditEvent, AddRepositoryVersionAuditEventBuilder> {

    /**
     * Stack name
     */
    private String stackName;

    /**
     * Display name
     */
    private String displayName;

    /**
     * Stack version
     */
    private String stackVersion;

    /**
     * Repository version
     */
    private String repoVersion;

    /**
     * Details of the repositories
     * os type -> list of repositories, where a repository is a key-value map of the properties (repo_id, repo_name, base_url)
     */
    private Map<String, List<Map<String, String>>> repos;

    public AddRepositoryVersionAuditEventBuilder() {
      super(AddRepositoryVersionAuditEventBuilder.class);
      super.withOperation("Repository version addition");
    }

    @Override
    protected AddRepositoryVersionRequestAuditEvent newAuditEvent() {
      return new AddRepositoryVersionRequestAuditEvent(this);
    }

    /**
     * Appends to the event the details of the incoming request.
     *
     * @param builder builder for the audit event details.
     */
    @Override
    protected void buildAuditMessage(StringBuilder builder) {
      super.buildAuditMessage(builder);

      builder.append(", Stack(")
        .append(stackName)
        .append("), Stack version(")
        .append(stackVersion)
        .append("), Display name(")
        .append(displayName)
        .append("), Repo version(")
        .append(repoVersion)
        .append("), Repositories(");

      if (!repos.isEmpty()) {
        builder.append(System.lineSeparator());
      }

      for (Map.Entry<String, List<Map<String, String>>> repo : repos.entrySet()) {
        builder.append("Operating system: ").append(repo.getKey());
        builder.append(System.lineSeparator());
        for (Map<String, String> properties : repo.getValue()) {
          builder.append("    Repository ID(").append(properties.get("repo_id"));
          builder.append("), Repository name(").append(properties.get("repo_name"));
          builder.append("), Base url(").append(properties.get("base_url")).append(")");
          builder.append(System.lineSeparator());
        }
      }

      builder.append(")");
    }

    public AddRepositoryVersionAuditEventBuilder withStackName(String stackName) {
      this.stackName = stackName;
      return this;
    }

    public AddRepositoryVersionAuditEventBuilder withDisplayName(String displayName) {
      this.displayName = displayName;
      return this;
    }

    public AddRepositoryVersionAuditEventBuilder withStackVersion(String stackVersion) {
      this.stackVersion = stackVersion;
      return this;
    }

    public AddRepositoryVersionAuditEventBuilder withRepoVersion(String repoVersion) {
      this.repoVersion = repoVersion;
      return this;
    }

    public AddRepositoryVersionAuditEventBuilder withRepos(Map<String, List<Map<String, String>>> repos) {
      this.repos = repos;
      return this;
    }
  }

  protected AddRepositoryVersionRequestAuditEvent() {
  }

  /**
   * {@inheritDoc}
   */
  protected AddRepositoryVersionRequestAuditEvent(AddRepositoryVersionAuditEventBuilder builder) {
    super(builder);
  }

  /**
   * Returns an builder for {@link AddRepositoryVersionRequestAuditEvent}
   *
   * @return a builder instance
   */
  public static AddRepositoryVersionAuditEventBuilder builder() {
    return new AddRepositoryVersionAuditEventBuilder();
  }

}


text:
<!doctype html>

  <title>topeka-quiz-fill-blank</title>

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-capable" content="yes">

  <link rel="import" href="../../font-roboto/roboto.html">
  <link rel="import" href="../../paper-button/paper-button.html">
  <link rel="import" href="../templates/topeka-quiz-fill-blank.html">

  <topeka-quiz-fill-blank></topeka-quiz-fill-blank>

  <paper-button raisedButton label="verify" onclick="verify()"></paper-button>


text:
#ifndef BackForwardController_h
#define BackForwardController_h

#include <wtf/Noncopyable.h>
#include <wtf/Forward.h>
#include <wtf/RefPtr.h>

namespace WebCore {

class BackForwardClient;
class HistoryItem;
class Page;

// FIXME: Why does this class exist? It seems to delegate almost entirely to Page, and perhaps should be part of Page's implementation.
class BackForwardController {
    WTF_MAKE_NONCOPYABLE(BackForwardController); WTF_MAKE_FAST_ALLOCATED;
public:
    ~BackForwardController();

    static PassOwnPtr<BackForwardController> create(Page*, BackForwardClient*);

    BackForwardClient* client() const { return m_client; }

    void goBackOrForward(int distance);

    bool goBack();
    bool goForward();

    void addItem(PassRefPtr<HistoryItem>);
    void setCurrentItem(HistoryItem*);

    int count() const;
    int backCount() const;
    int forwardCount() const;

    HistoryItem* itemAtIndex(int);

    bool isActive();

    void close();

    HistoryItem* backItem() { return itemAtIndex(-1); }
    HistoryItem* currentItem() { return itemAtIndex(0); }
    HistoryItem* forwardItem() { return itemAtIndex(1); }

private:
    BackForwardController(Page*, BackForwardClient*);

    Page* m_page;
    BackForwardClient* m_client;
};

} // namespace WebCore

#endif // BackForwardController_h


text:
using System.Reflection;

[assembly: AssemblyProduct ("MonoDevelop")]
[assembly: AssemblyTitle ("GDB support for Mono.Debugging")]
[assembly: AssemblyDescription ("GNU Debugger support for Mono.Debugging")]
[assembly: AssemblyVersion ("2.6")]
[assembly: AssemblyCopyright ("MIT X11")]


text:
Products

Values

Blog

Contact


text:
//
//  IASKSettingsReader.h
//  http://www.inappsettingskit.com
//
//  Copyright (c) 2009:
//  Luc Vandal, Edovia Inc., http://www.edovia.com
//  Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
//  All rights reserved.
//
//  It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
//  as the original authors of this code. You can give credit in a blog post, a tweet or on
//  a info page of your app. Also, the original authors appreciate letting them know if you use this code.
//
//  This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define kIASKPreferenceSpecifiers             @"PreferenceSpecifiers"
#define kIASKCellImage                        @"IASKCellImage"

#define kIASKType                             @"Type"
#define kIASKTitle                            @"Title"
#define kIASKFooterText                       @"FooterText"
#define kIASKKey                              @"Key"
#define kIASKFile                             @"File"
#define kIASKDefaultValue                     @"DefaultValue"
#define kIASKMinimumValue                     @"MinimumValue"
#define kIASKMaximumValue                     @"MaximumValue"
#define kIASKTrueValue                        @"TrueValue"
#define kIASKFalseValue                       @"FalseValue"
#define kIASKIsSecure                         @"IsSecure"
#define KIASKKeyboardType                     @"KeyboardType"
#define kIASKAutocapitalizationType           @"AutocapitalizationType"
#define kIASKAutoCorrectionType               @"AutocorrectionType"
#define kIASKValues                           @"Values"
#define kIASKTitles                           @"Titles"
#define kIASKViewControllerClass              @"IASKViewControllerClass"
#define kIASKViewControllerSelector           @"IASKViewControllerSelector"
#define kIASKButtonClass                      @"IASKButtonClass"
#define kIASKButtonAction                     @"IASKButtonAction"
#define kIASKMailComposeToRecipents           @"IASKMailComposeToRecipents"
#define kIASKMailComposeCcRecipents           @"IASKMailComposeCcRecipents"
#define kIASKMailComposeBccRecipents          @"IASKMailComposeBccRecipents"
#define kIASKMailComposeSubject               @"IASKMailComposeSubject"
#define kIASKMailComposeBody                  @"IASKMailComposeBody"
#define kIASKMailComposeBodyIsHTML            @"IASKMailComposeBodyIsHTML"
#define kIASKKeyboardAlphabet                 @"Alphabet"
#define kIASKKeyboardNumbersAndPunctuation    @"NumbersAndPunctuation"
#define kIASKKeyboardNumberPad                @"NumberPad"
#define kIASKKeyboardDecimalPad               @"DecimalPad"
#define kIASKKeyboardPhonePad                 @"PhonePad"
#define kIASKKeyboardNamePhonePad             @"NamePhonePad"
#define kIASKKeyboardASCIICapable             @"AsciiCapable"

#define KIASKKeyboardURL                      @"URL"
#define kIASKKeyboardEmailAddress             @"EmailAddress"
#define kIASKAutoCapNone                      @"None"
#define kIASKAutoCapSentences                 @"Sentences"
#define kIASKAutoCapWords                     @"Words"
#define kIASKAutoCapAllCharacters             @"AllCharacters"
#define kIASKAutoCorrDefault                  @"Default"
#define kIASKAutoCorrNo                       @"No"
#define kIASKAutoCorrYes                      @"Yes"
#define kIASKMinimumValueImage                @"MinimumValueImage"
#define kIASKMaximumValueImage                @"MaximumValueImage"
#define kIASKAdjustsFontSizeToFitWidth        @"IASKAdjustsFontSizeToFitWidth"
#define kIASKTextLabelAlignment               @"IASKTextAlignment"
#define kIASKTextLabelAlignmentLeft           @"IASKUITextAlignmentLeft"
#define kIASKTextLabelAlignmentCenter         @"IASKUITextAlignmentCenter"
#define kIASKTextLabelAlignmentRight          @"IASKUITextAlignmentRight"

#define kIASKPSGroupSpecifier                 @"PSGroupSpecifier"
#define kIASKPSToggleSwitchSpecifier          @"PSToggleSwitchSpecifier"
#define kIASKPSMultiValueSpecifier            @"PSMultiValueSpecifier"
#define kIASKPSSliderSpecifier                @"PSSliderSpecifier"
#define kIASKPSTitleValueSpecifier            @"PSTitleValueSpecifier"
#define kIASKPSTextFieldSpecifier             @"PSTextFieldSpecifier"
#define kIASKPSChildPaneSpecifier             @"PSChildPaneSpecifier"
#define kIASKOpenURLSpecifier                 @"IASKOpenURLSpecifier"
#define kIASKButtonSpecifier                  @"IASKButtonSpecifier"
#define kIASKMailComposeSpecifier             @"IASKMailComposeSpecifier"
#define kIASKCustomViewSpecifier              @"IASKCustomViewSpecifier"

#define kIASKAppSettingChanged                @"kAppSettingChanged"

#define kIASKSectionHeaderIndex               0

#define kIASKSliderNoImagesPadding            11
#define kIASKSliderImagesPadding              43

#define kIASKSpacing                          5
#define kIASKMinLabelWidth                    97
#define kIASKMaxLabelWidth                    240
#define kIASKMinValueWidth                    35
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
#define kIASKPaddingLeft                      (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1 ? 14 : 9)
#else
#define kIASKPaddingLeft                      9
#endif
#define kIASKPaddingRight                     10
#define kIASKHorizontalPaddingGroupTitles     19
#define kIASKVerticalPaddingGroupTitles       15

#define kIASKLabelFontSize                    17
#define kIASKgrayBlueColor                    [UIColor colorWithRed:0.318f green:0.4f blue:0.569f alpha:1.f]

#define kIASKMinimumFontSize                  12.0f

#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_0
#define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32
#endif

#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_1
#define kCFCoreFoundationVersionNumber_iPhoneOS_4_1 550.38
#endif

#define IASK_IF_IOS4_OR_GREATER(...) \
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iPhoneOS_4_0) \
{ \
__VA_ARGS__ \
}

@class IASKSpecifier;

/** settings reader transform iOS's settings plist files
 to the IASKSpecifier model objects.
 Besides that, it also hides the complexity of finding
 the 'proper' Settings.bundle
 */
@interface IASKSettingsReader : NSObject

/** designated initializer
 searches for a settings bundle that contains
 a plist with the specified fileName that must
 be contained in the given bundle

 calls initWithFile where applicationBundle is
 set to [NSBundle mainBundle]
 */
- (id) initWithSettingsFileNamed:(NSString*) fileName
               applicationBundle:(NSBundle*) bundle;

- (id) initWithFile:(NSString*)file;

- (NSInteger)numberOfSections;
- (NSInteger)numberOfRowsForSection:(NSInteger)section;
- (IASKSpecifier*)specifierForIndexPath:(NSIndexPath*)indexPath;
- (NSIndexPath*)indexPathForKey:(NSString*)key;
- (IASKSpecifier*)specifierForKey:(NSString*)key;
- (NSString*)titleForSection:(NSInteger)section;
- (NSString*)keyForSection:(NSInteger)section;
- (NSString*)footerTextForSection:(NSInteger)section;
- (NSString*)titleForStringId:(NSString*)stringId;
- (NSString*)pathForImageNamed:(NSString*)image;

///the main application bundle. most often [NSBundle mainBundle]
@property (nonatomic, readonly) NSBundle      *applicationBundle;

///the actual settings bundle
@property (nonatomic, readonly) NSBundle    *settingsBundle;

///the actual settings plist, parsed into a dictionary
@property (nonatomic, readonly) NSDictionary  *settingsDictionary;

@property (nonatomic, retain) NSString      *localizationTable;
@property (nonatomic, retain) NSArray       *dataSource;
@property (nonatomic, retain) NSSet         *hiddenKeys;

#pragma mark - internal use. public only for testing
- (NSString *)file:(NSString *)file
        withBundle:(NSString *)bundle
            suffix:(NSString *)suffix
         extension:(NSString *)extension;
- (NSString *)locateSettingsFile:(NSString *)file;

- (NSString *)platformSuffixForInterfaceIdiom:(UIUserInterfaceIdiom) interfaceIdiom;
@end


text:
package gov.cap.nhwg.useradmin;

public class Main {
	public static void main(String args[]) {
	}
}


text:
Set-Location -Path C:\

$Node = Read-Host "Enter node's FQDN [default: localhost]"

Configuration ELKStackDSC
{

    param (
        [string[]]$ComputerName = 'localhost'
    )

   Import-DscResource -ModuleName cChoco

   Node $ComputerName
   {
      LocalConfigurationManager
      {
        DebugMode = 'ForceModuleImport'
      }
      cChocoInstaller installChoco
      {
        InstallDir = "c:\choco"
      }
      cChocoPackageInstaller installNSSM
      {
        Name = "nssm"
        DependsOn = "[cChocoInstaller]installChoco"
      }
      cChocoPackageInstaller installJava
      {
        Name = "jdk8"
        DependsOn = "[cChocoInstaller]installChoco"
      }
      cChocoPackageInstaller installElasticsearch
      {
        Name = "elasticsearch"
        DependsOn = "[cChocoPackageInstaller]installJava"
      }
      cChocoPackageInstaller installLogstash
      {
        Name = "logstash"
        DependsOn = "[cChocoPackageInstaller]installElasticsearch"
      }

      cChocoPackageInstaller installKibana
      {
        Name = "kibana"
        DependsOn = "[cChocoPackageInstaller]installElasticsearch"
      }

    }
}

ELKStackDSC -ComputerName $Node

# Use the following for adding the configuration to the pull server:

<#

$guid = [guid]::NewGuid()
$srcDir = "c:\ELKStackDSC\"
$srcMOF = "$Node.mof"
$destDir = "$env:ProgramFiles\windowspowershell\dscservice\configuration\"
$destMOF = "$guid.mof"
copy $srcDir+$srcMOF $destDir+$destMOF
New-DscChecksum $destDir+$destMOF
#>

Start-DscConfiguration -ComputerName $Node -Wait -Verbose -Path ELKStackDSC\ -Force


text:
<?php
namespace Echosign\RequestBuilders\Agreement;

use Echosign\Interfaces\RequestBuilder;

/**
 * Class VaultingInfo
 * @package Echosign\RequestBuilders\Agreement
 */
class VaultingInfo implements RequestBuilder
{

    /**
     * @var bool
     */
    public $enabled;

    /**
     * @return array
     */
    public function toArray()
    {
        return [
            'enabled' => (bool) $this->enabled,
        ];
    }

}


text:
var support = require('./support'),
    fk = require('../');

support.login(function (err, result) {

    if (err) {
        return console.log('err:\n' + err);
    }

    fk.executeAnonymous({
        path: 'test.apex'
    }, function (err, resp) {
        if (err) {
            return console.log(err);
        }
        console.log(resp);
    });
});


text:
TOP        = ../..
SWIG       = $(TOP)/../preinst-swig
SRCS       = example.c
TARGET     = my-guile
INTERFACE  = example.i

check: build
	$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' TARGET='$(TARGET)' guile_augmented_run

build:
	$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' SRCS='$(SRCS)' SWIG='$(SWIG)' \
	TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' guile_augmented

clean:
	$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' TARGET='$(TARGET)' guile_clean
	rm -f test.out


text:
NetVis.prototype.parse = function(srcJSON) {
	// jsonAdapter loads JSON in NetVis format

	if (typeof(srcJSON) !== 'object') {
		return 'srcJSON needs to be a JSON object';
	}

	for (var i=0; i< srcJSON.length; i++) {
		if (typeof(srcJSON[i]) !== 'object') {
			console.log("failing to parse event:",srcJSON[i]);
			continue;
		}

		switch (srcJSON[i].event) {
			case "nodeEntered":
				this._parseNodeEntered(srcJSON[i]);
				break;
			case "nodeExited":
					this._parseNodeExited(srcJSON[i]);
					break;
			case "messageSent":
				this._parseMessageSent(srcJSON[i]);
				break;
			case "messageReceived":
				this._parseMessageReceived(srcJSON[i]);
				break;
			case "nodeConnected":
				this._parseNodeConnected(srcJSON[i]);
				break;
			default:
				console.log("Event type ",srcJSON[i].event, " not supported");
		}

	}

	this.updateAll();
};


text:
class CreatePlaces < ActiveRecord::Migration
  def up
  	create_table :places do |t|
  		t.string :name
  		t.string :type #restaurant or store?
  		t.string :address
  		t.string :city
  		t.string :state
      t.integer :zipcode
	end
  end

  def down
  	drop_table :places
  end
end


text:
package com.amazonaws.services.elasticmapreduce.model.transform;

import java.util.Map;
import java.util.Map.Entry;
import java.math.*;
import java.nio.ByteBuffer;

import com.amazonaws.services.elasticmapreduce.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;

import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;

/**
 * TerminateJobFlowsResult JSON Unmarshaller
 */
public class TerminateJobFlowsResultJsonUnmarshaller implements
        Unmarshaller<TerminateJobFlowsResult, JsonUnmarshallerContext> {

    public TerminateJobFlowsResult unmarshall(JsonUnmarshallerContext context)
            throws Exception {
        TerminateJobFlowsResult terminateJobFlowsResult = new TerminateJobFlowsResult();

        return terminateJobFlowsResult;
    }

    private static TerminateJobFlowsResultJsonUnmarshaller instance;

    public static TerminateJobFlowsResultJsonUnmarshaller getInstance() {
        if (instance == null)
            instance = new TerminateJobFlowsResultJsonUnmarshaller();
        return instance;
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<out font-size="14pt" color="black" text-decoration="none"/>


text:
package org.usfirst.frc.team3335.robot.commands;

import org.usfirst.frc.team3335.robot.Robot;

import edu.wpi.first.wpilibj.command.Command;

public class ShootBalls extends Command {

	private final boolean finished;
	private final double speed;

	public ShootBalls(boolean isFinished, double speed) {
		requires(Robot.ballShooter);
		finished=isFinished;
		this.speed = speed;
	}

	@Override
    protected void initialize() {
        Robot.ballShooter.set(speed);
    }

	@Override
	protected void end() {
		Robot.ballShooter.set(0);
	}

	@Override
	protected boolean isFinished() {
		// TODO Auto-generated method stub
		return finished;
	}

}


text:
using namespace Geometry;
using namespace Math;

TEST_CASE("Ray intersection test with sphere", "[Sphere]")
{
  Sphere sphere(Vec3f(0, 0, 0), 1);
  Ray ray(Vec3f(0, 0, 5), Vec3f(0, 0, -1));

  float t;
  REQUIRE(sphere.Intersect(ray, t));
}


text:
  Buzzword Bingo

      Dashboard

      Wordbanks

  <alert></alert>
  <router-outlet></router-outlet>


text:
package org.unitedid.yhsm.internal;

public class YubiHSMCommandFailedException extends Exception {
    public YubiHSMCommandFailedException() {}

    public YubiHSMCommandFailedException(String message) {
        super(message);
    }

    public YubiHSMCommandFailedException(Throwable cause) {
        super(cause);
    }

    public YubiHSMCommandFailedException(String message, Throwable cause) {
        super(message, cause);
   }
}


text:
<?php

namespace Doctrine\ORM;

use Doctrine\ORM\Query\Expr;

/**
 * This class is responsible for building DQL query strings via an object oriented
 * PHP interface.
 *
 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
 * @link    www.doctrine-project.org
 * @since   2.0
 * @version $Revision$
 * @author  Guilherme Blanco <guilhermeblanco@hotmail.com>
 * @author  Jonathan Wage <jonwage@gmail.com>
 * @author  Roman Borschel <roman@code-factory.org>
 */
class QueryBuilder
{
    const SELECT = 0;
    const DELETE = 1;
    const UPDATE = 2;

    const STATE_DIRTY = 0;
    const STATE_CLEAN = 1;

    /**
     * @var EntityManager $em The EntityManager used by this QueryBuilder.
     */
    private $_em;

    /**
     * @var array $dqlParts The array of DQL parts collected.
     */
    private $_dqlParts = array(
        'select'  => array(),
        'from'    => array(),
        'join'    => array(),
        'set'     => array(),
        'where'   => null,
        'groupBy' => array(),
        'having'  => null,
        'orderBy' => array()
    );

    /**
     * @var integer The type of query this is. Can be select, update or delete.
     */
    private $_type = self::SELECT;

    /**
     * @var integer The state of the query object. Can be dirty or clean.
     */
    private $_state = self::STATE_CLEAN;

    /**
     * @var string The complete DQL string for this query.
     */
    private $_dql;

    /**
     * @var array The query parameters.
     */
    private $_params = array();

    /**
     * @var integer The index of the first result to retrieve.
     */
    private $_firstResult = null;

    /**
     * @var integer The maximum number of results to retrieve.
     */
    private $_maxResults = null;

    /**
     * Initializes a new <tt>QueryBuilder</tt> that uses the given <tt>EntityManager</tt>.
     *
     * @param EntityManager $em The EntityManager to use.
     */
    public function __construct(EntityManager $em)
    {
        $this->_em = $em;
    }

    /**
     * Gets an ExpressionBuilder used for object-oriented construction of query expressions.
     * Intended for convenient inline usage. Example:
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->where($qb->expr()->eq('u.id', 1));
     *
     * @return Expr
     */
    public function expr()
    {
        return $this->_em->getExpressionBuilder();
    }

    /**
     * Get the type of the currently built query.
     *
     * @return integer
     */
    public function getType()
    {
        return $this->_type;
    }

    /**
     * Get the associated EntityManager for this query builder.
     *
     * @return EntityManager
     */
    public function getEntityManager()
    {
        return $this->_em;
    }

    /**
     * Get the state of this query builder instance
     *
     *     [php]
     *     if ($qb->getState() == QueryBuilder::STATE_DIRTY) {
     *         echo 'Query builder is dirty';
     *     } else {
     *         echo 'Query builder is clean';
     *     }
     *
     * @return integer
     */
    public function getState()
    {
        return $this->_state;
    }

    /**
     * Get the complete DQL string for this query builder instance
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *     echo $qb->getDql(); // SELECT u FROM User u
     *
     * @return string The DQL string
     */
    public function getDQL()
    {
        if ($this->_dql !== null && $this->_state === self::STATE_CLEAN) {
            return $this->_dql;
        }

        $dql = '';

        switch ($this->_type) {
            case self::DELETE:
                $dql = $this->_getDQLForDelete();
                break;

            case self::UPDATE:
                $dql = $this->_getDQLForUpdate();
                break;

            case self::SELECT:
            default:
                $dql = $this->_getDQLForSelect();
                break;
        }

        $this->_state = self::STATE_CLEAN;
        $this->_dql = $dql;

        return $dql;
    }

    /**
     * Constructs a Query instance from the current configuration of the builder.
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u');
     *     $q = $qb->getQuery();
     *     $results = $q->execute();
     *
     * @return Query
     */
    public function getQuery()
    {
        return $this->_em->createQuery($this->getDQL())
                ->setParameters($this->_params)
                ->setFirstResult($this->_firstResult)
                ->setMaxResults($this->_maxResults);
    }

    /**
     * Get the root alias for the query. This is the first entity alias involved
     * in the construction of the query
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u');
     *
     *     echo $qb->getRootAlias(); // u
     *
     * @return string $rootAlias
     */
    public function getRootAlias()
    {
        return $this->_dqlParts['from'][0]->getAlias();
    }

    /**
     * Sets a query parameter.
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->where('u.id = :user_id')
     *         ->setParameter(':user_id', 1);
     *
     * @param string|integer $key The parameter position or name.
     * @param mixed $value The parameter value.
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function setParameter($key, $value)
    {
        $this->_params[$key] = $value;
        return $this;
    }

    /**
     * Sets a collection of query parameters.
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->where('u.id = :user_id1 OR u.id = :user_id2')
     *         ->setParameters(array(
     *             ':user_id1' => 1,
     *             ':user_id2' => 2
     *         ));
     *
     * @param array $params
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function setParameters(array $params)
    {
        $this->_params = $params;
        return $this;
    }

    /**
     * Get all defined parameters
     *
     * @return array Defined parameters
     */
    public function getParameters($params = array())
    {
        return $this->_params;
    }

    /**
     * Gets a query parameter.
     *
     * @param mixed $key The key (index or name) of the bound parameter.
     * @return mixed The value of the bound parameter.
     */
    public function getParameter($key)
    {
        return isset($this->_params[$key]) ? $this->_params[$key] : null;
    }

    /**
     * Sets the position of the first result to retrieve (the "offset").
     *
     * @param integer $firstResult The first result to return.
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function setFirstResult($firstResult)
    {
        $this->_firstResult = $firstResult;
        return $this;
    }

    /**
     * Gets the position of the first result the query object was set to retrieve (the "offset").
     * Returns NULL if {@link setFirstResult} was not applied to this query builder.
     *
     * @return integer The position of the first result.
     */
    public function getFirstResult()
    {
        return $this->_firstResult;
    }

    /**
     * Sets the maximum number of results to retrieve (the "limit").
     *
     * @param integer $maxResults
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function setMaxResults($maxResults)
    {
        $this->_maxResults = $maxResults;
        return $this;
    }

    /**
     * Gets the maximum number of results the query object was set to retrieve (the "limit").
     * Returns NULL if {@link setMaxResults} was not applied to this query builder.
     *
     * @return integer Maximum number of results.
     */
    public function getMaxResults()
    {
        return $this->_maxResults;
    }

    /**
     * Add a single DQL query part to the array of parts
     *
     * @param string $dqlPartName
     * @param string $dqlPart
     * @param string $append
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function add($dqlPartName, $dqlPart, $append = false)
    {
        $isMultiple = is_array($this->_dqlParts[$dqlPartName]);

        if ($append && $isMultiple) {
            $this->_dqlParts[$dqlPartName][] = $dqlPart;
        } else {
            $this->_dqlParts[$dqlPartName] = ($isMultiple) ? array($dqlPart) : $dqlPart;
        }

        $this->_state = self::STATE_DIRTY;

        return $this;
    }

    /**
     * Set the SELECT statement
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u', 'p')
     *         ->from('User', 'u')
     *         ->leftJoin('u.Phonenumbers', 'p');
     *
     * @param mixed $select  String SELECT statement or SELECT Expr instance
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function select($select = null)
    {
        $this->_type = self::SELECT;

        if (empty($select)) {
            return $this;
        }

        $selects = is_array($select) ? $select : func_get_args();

        return $this->add('select', new Expr\Select($selects), false);
    }

    /**
     * Add to the SELECT statement
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->addSelect('p')
     *         ->from('User', 'u')
     *         ->leftJoin('u.Phonenumbers', 'p');
     *
     * @param mixed $select  String SELECT statement or SELECT Expr instance
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function addSelect($select = null)
    {
        $this->_type = self::SELECT;

        if (empty($select)) {
            return $this;
        }

        $selects = is_array($select) ? $select : func_get_args();

        return $this->add('select', new Expr\Select($selects), true);
    }

    /**
     * Construct a DQL DELETE query
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->delete('User', 'u')
     *         ->where('u.id = :user_id');
     *         ->setParameter(':user_id', 1);
     *
     * @param string $delete    The model to delete
     * @param string $alias     The alias of the model
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function delete($delete = null, $alias = null)
    {
        $this->_type = self::DELETE;

        if ( ! $delete) {
            return $this;
        }

        return $this->add('from', new Expr\From($delete, $alias));
    }

    /**
     * Construct a DQL UPDATE query
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->update('User', 'u')
     *         ->set('u.password', md5('password'))
     *         ->where('u.id = ?');
     *
     * @param string $update   The model to update
     * @param string $alias    The alias of the model
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function update($update = null, $alias = null)
    {
        $this->_type = self::UPDATE;

        if ( ! $update) {
            return $this;
        }

        return $this->add('from', new Expr\From($update, $alias));
    }

    /**
     * Specify the FROM part when constructing a SELECT DQL query
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *
     * @param string $from   The class name.
     * @param string $alias  The alias of the class.
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function from($from, $alias)
    {
        return $this->add('from', new Expr\From($from, $alias), true);
    }

    /**
     * Add a INNER JOIN to an associated class.
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->innerJoin('u.Phonenumbers', 'p', Expr\Join::WITH, 'p.is_primary = 1');
     *
     * @param string $join           The relationship to join
     * @param string $alias          The alias of the join
     * @param string $conditionType  The condition type constant. Either ON or WITH.
     * @param string $condition      The condition for the join
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function join($join, $alias, $conditionType = null, $condition = null)
    {
        return $this->innerJoin($join, $alias, $conditionType, $condition);
    }

    /**
     * Add an INNER JOIN to an associated class.
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->innerJoin('u.Phonenumbers', 'p', Expr\Join::WITH, 'p.is_primary = 1');
     *
     * @param string $join           The relationship to join
     * @param string $alias          The alias of the join
     * @param string $conditionType  The condition type constant. Either ON or WITH.
     * @param string $condition      The condition for the join
     * @return QueryBuilder This QueryBuilder instance.
     */
    public function innerJoin($join, $alias, $conditionType = null, $condition = null)
    {
        return $this->add('join', new Expr\Join(
            Expr\Join::INNER_JOIN, $join, $alias, $conditionType, $condition
        ), true);
    }

    /**
     * Add a LEFT JOIN
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->leftJoin('u.Phonenumbers', 'p', Expr\Join::WITH, 'p.is_primary = 1');
     *
     * @param string $join           The relationship to join
     * @param string $alias          The alias of the join
     * @param string $conditionType  The condition type constant. Either ON or WITH.
     * @param string $condition      The condition for the join
     * @return QueryBuilder $qb
     */
    public function leftJoin($join, $alias, $conditionType = null, $condition = null)
    {
        return $this->add('join', new Expr\Join(
            Expr\Join::LEFT_JOIN, $join, $alias, $conditionType, $condition
        ), true);
    }

    /**
     * Add a SET statement for a DQL UPDATE query
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->update('User', 'u')
     *         ->set('u.password', md5('password'))
     *         ->where('u.id = ?');
     *
     * @param string $key     The key/field to set
     * @param string $value   The value, expression, placeholder, etc. to use in the SET
     * @return QueryBuilder $qb
     */
    public function set($key, $value)
    {
        return $this->add('set', new Expr\Comparison($key, Expr\Comparison::EQ, $value), true);
    }

    /**
     * Set and override any existing WHERE statements
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->where('u.id = ?');
     *
     *     // You can optionally programatically build and/or expressions
     *     $qb = $em->createQueryBuilder();
     *
     *     $or = $qb->expr()->orx();
     *     $or->add($qb->expr()->eq('u.id', 1));
     *     $or->add($qb->expr()->eq('u.id', 2));
     *
     *     $qb->update('User', 'u')
     *         ->set('u.password', md5('password'))
     *         ->where($or);
     *
     * @param mixed $predicates The predicates.
     * @return QueryBuilder
     */
    public function where($predicates)
    {
        if ( ! (func_num_args() == 1 && ($predicates instanceof Expr\Andx || $predicates instanceof Expr\Orx))) {
            $predicates = new Expr\Andx(func_get_args());
        }

        return $this->add('where', $predicates);
    }

    /**
     * Add a new WHERE statement with an AND
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->where('u.username LIKE ?')
     *         ->andWhere('u.is_active = 1');
     *
     * @param mixed $where The WHERE statement
     * @return QueryBuilder $qb
     * @see where()
     */
    public function andWhere($where)
    {
        $where = $this->getDQLPart('where');
        $args = func_get_args();

        if ($where instanceof Expr\Andx) {
            $where->addMultiple($args);
        } else {
            array_unshift($args, $where);
            $where = new Expr\Andx($args);
        }

        return $this->add('where', $where, true);
    }

    /**
     * Add a new WHERE statement with an OR
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->where('u.id = 1')
     *         ->orWhere('u.id = 2');
     *
     * @param mixed $where The WHERE statement
     * @return QueryBuilder $qb
     * @see where()
     */
    public function orWhere($where)
    {
        $where = $this->getDqlPart('where');
        $args = func_get_args();

        if ($where instanceof Expr\Orx) {
            $where->addMultiple($args);
        } else {
            array_unshift($args, $where);
            $where = new Expr\Orx($args);
        }

        return $this->add('where', $where, true);
    }

    /**
     * Set the GROUP BY clause
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->groupBy('u.id');
     *
     * @param string $groupBy  The GROUP BY clause
     * @return QueryBuilder $qb
     */
    public function groupBy($groupBy)
    {
        return $this->add('groupBy', new Expr\GroupBy(func_get_args()));
    }

    /**
     * Add to the existing GROUP BY clause
     *
     *     [php]
     *     $qb = $em->createQueryBuilder()
     *         ->select('u')
     *         ->from('User', 'u')
     *         ->groupBy('u.last_login');
     *         ->addGroupBy('u.created_at')
     *
     * @param string $groupBy  The GROUP BY clause
     * @return QueryBuilder $qb
     */
    public function addGroupBy($groupBy)
    {
        return $this->add('groupBy', new Expr\GroupBy(func_get_args()), true);
    }

    /**
     * Set the HAVING clause
     *
     * @param mixed $having
     * @return QueryBuilder $qb
     */
    public function having($having)
    {
        if ( ! (func_num_args() == 1 && ($having instanceof Expr\Andx || $having instanceof Expr\Orx))) {
            $having = new Expr\Andx(func_get_args());
        }

        return $this->add('having', $having);
    }

    /**
     * Add to the existing HAVING clause with an AND
     *
     * @param mixed $having
     * @return QueryBuilder $qb
     */
    public function andHaving($having)
    {
        $having = $this->getDqlPart('having');
        $args = func_get_args();

        if ($having instanceof Expr\Andx) {
            $having->addMultiple($args);
        } else {
            array_unshift($args, $having);
            $having = new Expr\Andx($args);
        }

        return $this->add('having', $having);
    }

    /**
     * Add to the existing HAVING clause with an OR
     *
     * @param mixed $having
     * @return QueryBuilder $qb
     */
    public function orHaving($having)
    {
        $having = $this->getDqlPart('having');
        $args = func_get_args();

        if ($having instanceof Expr\Orx) {
            $having->addMultiple($args);
        } else {
            array_unshift($args, $having);
            $having = new Expr\Orx($args);
        }

        return $this->add('having', $having);
    }

    /**
     * Set the ORDER BY clause
     *
     * @param string $sort    What to sort on
     * @param string $order   Optional: The order to sort the results.
     * @return QueryBuilder $qb
     */
    public function orderBy($sort, $order = null)
    {
        return $this->add('orderBy',  $sort instanceof Expr\OrderBy ? $sort
                : new Expr\OrderBy($sort, $order));
    }

    /**
     * Add to the existing ORDER BY clause
     *
     * @param string $sort    What to sort on
     * @param string $order   Optional: The order to sort the results.
     * @return QueryBuilder $qb
     */
    public function addOrderBy($sort, $order = null)
    {
        return $this->add('orderBy', new Expr\OrderBy($sort, $order), true);
    }

    /**
     * Get a DQL part or parts by the part name
     *
     * @param string $queryPartName
     * @return mixed $queryPart
     */
    public function getDQLPart($queryPartName)
    {
        return $this->_dqlParts[$queryPartName];
    }

    /**
     * Get the full DQL parts array
     *
     * @return array $dqlParts
     */
    public function getDQLParts()
    {
        return $this->_dqlParts;
    }

    private function _getDQLForDelete()
    {
         return 'DELETE'
              . $this->_getReducedDQLQueryPart('from', array('pre' => ' ', 'separator' => ', '))
              . $this->_getReducedDQLQueryPart('where', array('pre' => ' WHERE '))
              . $this->_getReducedDQLQueryPart('orderBy', array('pre' => ' ORDER BY ', 'separator' => ', '));
    }

    private function _getDQLForUpdate()
    {
         return 'UPDATE'
              . $this->_getReducedDQLQueryPart('from', array('pre' => ' ', 'separator' => ', '))
              . $this->_getReducedDQLQueryPart('set', array('pre' => ' SET ', 'separator' => ', '))
              . $this->_getReducedDQLQueryPart('where', array('pre' => ' WHERE '))
              . $this->_getReducedDQLQueryPart('orderBy', array('pre' => ' ORDER BY ', 'separator' => ', '));
    }

    private function _getDQLForSelect()
    {
         return 'SELECT'
              . $this->_getReducedDQLQueryPart('select', array('pre' => ' ', 'separator' => ', '))
              . $this->_getReducedDQLQueryPart('from', array('pre' => ' FROM ', 'separator' => ', '))
              . $this->_getReducedDQLQueryPart('join', array('pre' => ' ', 'separator' => ' '))
              . $this->_getReducedDQLQueryPart('where', array('pre' => ' WHERE '))
              . $this->_getReducedDQLQueryPart('groupBy', array('pre' => ' GROUP BY ', 'separator' => ', '))
              . $this->_getReducedDQLQueryPart('having', array('pre' => ' HAVING '))
              . $this->_getReducedDQLQueryPart('orderBy', array('pre' => ' ORDER BY ', 'separator' => ', '));
    }

    private function _getReducedDQLQueryPart($queryPartName, $options = array())
    {
        $queryPart = $this->getDQLPart($queryPartName);

        if (empty($queryPart)) {
            return (isset($options['empty']) ? $options['empty'] : '');
        }

        return (isset($options['pre']) ? $options['pre'] : '')
             . (is_array($queryPart) ? implode($options['separator'], $queryPart) : $queryPart)
             . (isset($options['post']) ? $options['post'] : '');
    }

    public function __toString()
    {
        return $this->getDQL();
    }
}


text:
package de.lessvoid.nifty.sound.paulssoundsystem;

public class SupportedCodec {
  private String extension;
  private Class<?> codecClass;

  public SupportedCodec(final String extension, final Class<?> codecClass) {
    this.extension = extension;
    this.codecClass = codecClass;
  }

  public String getExtension() {
    return extension;
  }

  public Class<?> getCodecClass() {
    return codecClass;
  }
}


text:
@interface GRMustachePrivateAPITest : GRMustacheTestBase
@end


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSharpIniFileSerializer.IniAttributes
{
    [System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Struct | System.AttributeTargets.Class | System.AttributeTargets.Property)]
    public class IniSectionName : System.Attribute
    {
        public string section;

        public IniSectionName(string section)
        {
            this.section = section;
        }
    }
}


text:
package be.cegeka.batchers.taxcalculator.batch.config.remotepartitioning;

import be.cegeka.batchers.taxcalculator.batch.api.events.JobProgressEvent;
import com.hazelcast.config.*;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.ITopic;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.messaging.Message;

import java.net.*;
import java.util.*;
import java.util.concurrent.BlockingQueue;
import java.util.stream.Collectors;

@Configuration
@Profile(value = {"remotePartitioningMaster", "remotePartitioningSlave", "testRemotePartitioning"})
public class ClusterConfig {

    private static final Logger LOG = LoggerFactory.getLogger(ClusterConfig.class);

    private static final String NET_INTERFACE_VBOX_PREFIX = "192.168.50";
    public static final String NET_INTERFACE_DOCKER_PREFIX = "172.17.0";
    public static final String NET_INTERFACE_INTERNAL_LAN_PREFIX = "10.162.128";

    public int getClusterSize() {
        return hazelcastInstance().getCluster().getMembers().size();
    }

    @Bean
    public BlockingQueue<Message<?>> requests() {
        return hazelcastInstance().getQueue("requests");
    }

    @Bean
    public BlockingQueue<Message<?>> results() {
        return hazelcastInstance().getQueue("results");
    }

    @Bean
    public ITopic<JobProgressEvent> jobProgressEventsTopic() {
        return hazelcastInstance().getTopic("jobProgress");
    }

    private static String getBatchersmasterIpIfPresent() {
        String hostAddress = null;
        try {
            InetAddress address = InetAddress.getByName("batchersmaster");
            hostAddress = address.getHostAddress();
        } catch (UnknownHostException e) {
            LOG.warn("Did not find an Ip for batchersmaster");
        }
        return hostAddress;
    }

    @Bean
    public HazelcastInstance hazelcastInstance() {
        Config cfg = new Config();
        //if batchersmaster in /etc/hosts points to a IP, try to add it to the cluster
        //if it does not, the cluster will just broadcast on UDP
        buildBatchersmasterTCPConfigIfNeeded(cfg);
        HazelcastInstance hz = Hazelcast.newHazelcastInstance(cfg);
        return hz;
    }

    private void buildBatchersmasterTCPConfigIfNeeded(Config cfg) {
        String batchersmasterIpIfPresent = getBatchersmasterIpIfPresent();
        LOG.info("Batchers master Ip is " + batchersmasterIpIfPresent);
        if (batchersmasterIpIfPresent != null && !batchersmasterIpIfPresent.equals("127.0.0.1")) {
            NetworkConfig network = cfg.getNetworkConfig();

            List<String> interfacesToAdd = getInterfacesToAdd();

            InterfacesConfig interfacesConfig = network.getInterfaces().setEnabled(true);
            interfacesToAdd.stream().forEach(inter -> {
                LOG.info("Added interface: " + inter);
                interfacesConfig.addInterface(inter);
            });

            JoinConfig join = network.getJoin();
            join.getMulticastConfig().setEnabled(true);

            LOG.info("Added batchersmaster IP to the cluster " + batchersmasterIpIfPresent);
            join.getTcpIpConfig()
                    .addMember(batchersmasterIpIfPresent)
                    .setRequiredMember(null).setEnabled(true);
        }
    }

    public static void main(String... args) throws UnknownHostException {
        new ClusterConfig().hazelcastInstance();
    }

    private static List<String> getInterfacesToAdd() {
        List<String> interfacesToAdd = new ArrayList<>();

        List<String> listNetworkINterfacesIps = listNetworkINterfacesIps();
        String batchersmasterInterfacePrefix = getBatchersmasterInterfacePrefix();
        LOG.info("BatchersmasterInterfacePrefix is " + batchersmasterInterfacePrefix);

        if (batchersmasterInterfacePrefix != null) {
            for (String existingNetworkInterface:listNetworkINterfacesIps){
                boolean existsInterfaceForMasterIp = existingNetworkInterface.startsWith(batchersmasterInterfacePrefix);
                if (existsInterfaceForMasterIp){
                    interfacesToAdd.add(existingNetworkInterface);
                }
            }
        }

        boolean hasInterfaceForMasterIp = interfacesToAdd.size() == 1;
        if (hasInterfaceForMasterIp) {
            return interfacesToAdd;
        } else {
            List<String> interestingINterfacesPrefixes = new ArrayList<>();
            interestingINterfacesPrefixes.add(NET_INTERFACE_INTERNAL_LAN_PREFIX);
            interestingINterfacesPrefixes.add(NET_INTERFACE_VBOX_PREFIX);
            interestingINterfacesPrefixes.add(NET_INTERFACE_DOCKER_PREFIX);

            List<String> wellKnownInterfaces = listNetworkINterfacesIps
                    .stream()
                    .filter(existingInterface ->
                                    interestingINterfacesPrefixes.stream()
                                            .filter(interestingINterfacePrefix ->
                                                    existingInterface.startsWith(interestingINterfacePrefix)).count() > 0
                    )
                    .distinct().collect(Collectors.toList());
            interfacesToAdd.addAll(wellKnownInterfaces);
            return interfacesToAdd;
        }
    }

    public static List<String> listNetworkINterfacesIps() {
        List<String> ipList = new ArrayList<>();
        try {
            Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();
            for (NetworkInterface netint : Collections.list(nets)) {
                Enumeration<InetAddress> inetAddresses = netint.getInetAddresses();
                for (InetAddress inetAddress : Collections.list(inetAddresses)) {
                    if (inetAddress instanceof Inet4Address && !inetAddress.isLoopbackAddress()) {
                        String ip = inetAddress.getHostAddress();
                        ipList.add(ip);
                    }
                }
            }
        } catch (Exception e) {
            LOG.error("Failed getting the list of interfaces", e);
        }
        return ipList;
    }

    public static String getBatchersmasterInterfacePrefix() {
        String batchersmasterIpIfPresent = getBatchersmasterIpIfPresent();
        if (batchersmasterIpIfPresent != null) {
            String[] ipParts = batchersmasterIpIfPresent.split("\\.");
            if (ipParts.length == 4) {
                //return only the first 3 parts of the IP for example 192.168.1.
                return ipParts[0] + "." + ipParts[1]  + "." + ipParts[2] + ".";
            }
        }
        return null;
    }

}


text:
<!DOCTYPE html>

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="icon" href="../icons/confirmation.png">

        <title>^Insert Dean^</title>

        <link href="../Bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
        <link href="../Bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet">
        <link href="../CSS/General.css" rel="stylesheet">
        <link href="../CSS/JQueryUI.css" rel="stylesheet">
        <link href="../CSS/font-awesome/css/font-awesome.css" rel="stylesheet" >
        <link href="../Bootstrap/dist/css/bootstrap-select.css" rel="stylesheet">
        <link href="../Bootstrap/dist/css/bootstrap-select.min.css" rel="stylesheet">

        |NavBar|

^Insert New Dean^

                                        ^Name^*

                                        <input type="text" class="form-control" placeholder="^characters^" id="nameDean" onkeyup="inputNames('nameDean');" onclick="normalData('deanInsertion.php')">

                    |SaveButton|
                    |CancelButton|
                    |ReturnButton|

                    Notarius Ad Omnes, ^Check Our Notice Of Privacy^.


text:
class Types::RepositoryType < Types::BaseObject
  implements GraphQL::Types::Relay::Node

  global_id_field :id

  field :owner, String, null: false
  field :name, String, null: false

  field :created_at, GraphQL::Types::ISO8601DateTime, null: false
  field :updated_at, GraphQL::Types::ISO8601DateTime, null: false

  field :pull_requests, Types::PullRequestType.connection_type, null: true, connection: true do
    description "This reapository's Pull Requests"
    argument :status, String, required: false
  end

  def pull_requests(**args)
    @object.pull_requests.order("created_at DESC")
  end

  field :pull_request, Types::PullRequestType, null: true do
    description "Find a PullRequest by number"
    argument :number, String, required: true
  end

  def pull_request(**args)
    @object.pull_requests.find_by(number: args[:number])
  end

  field :review_rules, Types::ReviewRuleType.connection_type, null: true, connection: true do
    description "This repository's review rules"
  end

  def review_rules
    @object.review_rules
  end

  field :review_rule, Types::ReviewRuleType, null: true do
    description "Find a Review Rule by code"
    argument :short_code, String, required: true
  end

  def review_rule(**args)
    @object.review_rules.find_by(short_code: args[:short_code])
  end
end