Input:
    public void startElement(final String uri, final String localName, final String qName, final Attributes atts) throws SAXException {
        switch (this.stage) {
        case 0:
            if (qName.equals("div") && "content_box post_content_box story_content_box".equals(atts.getValue("class"))) {
                this.startStory();
                this.getCurrentBuilder().id(Integer.parseInt(atts.getValue("id").substring(6)));
                this.stage = 1;
            }
            break;
        case 1:
            String src = atts.getValue("src");
            this.author = User.builder();
            if (src != null && !src.equals("//www.fimfiction-static.net/images/avatars/none_64.png")) {
                try {
                    this.author.profileImageUrl(new URL("http:" + src));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
            }
            this.stage = 2;
            break;
        case 2:
            if (qName.equals("div") && "right".equals(atts.getValue("class"))) {
                this.stage = 3;
            }
            break;
        case 3:
            this.stage = "track_container".equals(atts.getValue("class")) ? 4 : 6;
            break;
        case 4:
            if (qName.equals("a")) {
                this.favorited = atts.getValue("class").contains("favourite_button_selected");
                this.stage = 5;
            }
            break;
        case 5:
            if (qName.equals("input")) {
                final boolean email = atts.getValue("checked") != null;
                this.getCurrentBuilder().favorited(this.favorited ? email ? FavoriteState.FAVORITED_EMAIL : FavoriteState.FAVORITED : FavoriteState.NOT_FAVORITED);
                this.stage = 6;
            }
            break;
        case 6:
            if (qName.equals("a")) {
                final String onClick = atts.getValue("onclick");
                if (onClick != null && onClick.startsWith("Ra")) {
                    this.getCurrentBuilder().ratingToken(onClick.substring(onClick.indexOf('\'') + 1, onClick.lastIndexOf('\'')));
                }
                this.stage = 7;
            }
            break;
        case 8:
            if (qName.equals("a")) {
                this.stage = 9;
            }
            break;
        case 10:
            if (qName.equals("b")) {
                this.stage = 300;
            }
            break;
        case 301:
            if (qName.equals("span")) {
                final String title = atts.getValue("title");
                if (title != null) {
                    this.getCurrentBuilder().totalViewCount(toIntLiberal(title));
                    this.stage = 11;
                }
            }
            break;
        case 12:
            if (qName.equals("a")) {
                this.getCurrentBuilder().readLater(atts.getValue("class").contains("read_it_later_selected"));
            }
            this.stage = 14;
            break;
        case 14:
            if (qName.equals("a")) {
                try {
                    this.getCurrentBuilder().url(new URL("http://www.fimfiction.net" + atts.getValue("href")));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
                this.title = new StringBuilder();
                this.stage = 15;
            }
            break;
        case 16:
            if (qName.equals("a")) {
                this.authorName = new StringBuilder();
                this.stage = 17;
            }
            break;
        case 18:
            if (qName.equals("img") && atts.getValue("src").equals("//www.fimfiction-static.net/images/icons/views.png")) {
                this.stage = 19;
            }
            break;
        case 20:
            if (qName.equals("div") && "description".equals(atts.getValue("class"))) {
                this.stage = 21;
            }
            break;
        case 21:
            this.stage = "story_image".equals(atts.getValue("class")) ? 22 : 25;
            break;
        case 22:
            try {
                this.getCurrentBuilder().imageUrl(new URL("http:" + atts.getValue("href")));
            } catch (final MalformedURLException e) {
                throw new SAXException(e);
            }
            this.stage = 23;
            break;
        case 23:
            try {
                this.getCurrentBuilder().thumbnailUrl(new URL("http:" + atts.getValue("src")));
            } catch (final MalformedURLException e) {
                throw new SAXException(e);
            }
            this.stage = 24;
            break;
        case 24:
            if (qName.equals("a")) {
                this.stage = 25;
            } else {
                if (this.categories != null) {
                    this.getCurrentBuilder().categories(Collections.unmodifiableSet(this.categories));
                    this.categories = null;
                }
                this.description = new StringBuilder();
                this.stage = 26;
            }
            break;
        case 27:
            this.description.append('<');
            this.description.append(qName);
            for (int i = 0; i < atts.getLength(); i++) {
                this.description.append(' ');
                this.description.append(atts.getQName(i));
                this.description.append("=\"");
                this.description.append(atts.getValue(i).replace("\"", "\\\""));
                this.description.append('"');
            }
            this.description.append('>');
            break;
        case 28:
            if (qName.equals("ul")) {
                this.chapters = new ArrayList<Chapter>();
                this.stage = 29;
            }
            break;
        case 29:
            if (qName.equals("div")) {
                final String clazz = atts.getValue("class");
                if (clazz != null && clazz.contains("chapter_container")) {
                    if (!clazz.contains("chapter_expander")) {
                        this.stage = 100;
                    }
                }
            }
            if (qName.equals("li") && "save_ordering".equals(atts.getValue("class"))) {
                this.getCurrentBuilder().chapters(Collections.unmodifiableList(this.chapters));
                this.getCurrentBuilder().chapterCount(this.chapters.size());
                this.chapters = null;
                this.stage = 38;
            }
            break;
        case 100:
            this.stage = 101;
            break;
        case 101:
            this.stage = 30;
            break;
        case 30:
            this.chapter = Chapter.builder();
            if (qName.equals("img")) {
                this.chapter.unread("//www.fimfiction-static.net/images/icons/new.png".equals(atts.getValue("src")));
                this.stage = 31;
            } else if (qName.equals("a")) {
                try {
                    this.chapter.url(new URL("http://www.fimfiction.net" + atts.getValue("href")));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
                this.chapterTitle = new StringBuilder();
                this.stage = 32;
            }
            break;
        case 31:
            if (qName.equals("a")) {
                try {
                    this.chapter.url(new URL("http://www.fimfiction.net" + atts.getValue("href")));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
                this.chapterTitle = new StringBuilder();
                this.stage = 32;
            }
            break;
        case 35:
            this.stage = 36;
            break;
        case 37:
            if (qName.equals("a")) {
                this.chapter.id(toIntLiberal(atts.getValue("href")));
                this.chapters.add(this.chapter.build());
                this.chapter = null;
                this.stage = 29;
            }
            break;
        case 203:
            if (qName.equals("div")) {
                this.stage = 204;
            }
            break;
        case 205:
            if (qName.equals("br")) {
                this.stage = 39;
            }
            break;
        case 39:
            if (qName.equals("span")) {
                this.stage = 40;
            }
            break;
        case 41:
            if (qName.equals("br")) {
                this.stage = 42;
            }
            if (qName.equals("a")) {
                this.stage = 43;
            }
            break;
        case 42:
            if (qName.equals("span")) {
                this.stage = 43;
            }
            break;
        case 43:
        case 44:
            if (qName.equals("img")) {
                src = atts.getValue("src");
                final int i = src.lastIndexOf('.');
                if (i > 46) {
                    final String id = src.substring(46, i);
                    for (final Character character : Character.values()) {
                        if (id.equals(getImageId(character))) {
                            this.characters.add(character);
                            break;
                        }
                    }
                }
            }
            if (qName.equals("i")) {
                this.getCurrentBuilder().characters(Collections.unmodifiableSet(this.characters));
                this.characters = null;
                this.endStory();
                this.stage = 0;
            }
            ;
            break;
        }
    }

Output:
    public void startElement(final String uri, final String localName, final String qName, final Attributes atts) throws SAXException {
        switch (this.stage) {
        case 0:
            if (qName.equals("div") && "content_box post_content_box story_content_box".equals(atts.getValue("class"))) {
                this.startStory();
                this.getCurrentBuilder().id(Integer.parseInt(atts.getValue("id").substring(6)));
                this.stage = 1;
            }
            break;
        case 1:
            String src = atts.getValue("src");
            this.author = User.builder();
            if (src != null && !src.equals("//www.fimfiction-static.net/images/avatars/none_64.png")) {
                try {
                    this.author.profileImageUrl(new URL("http:" + src));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
            }
            this.stage = 2;
            break;
        case 2:
            if (qName.equals("div") && "right".equals(atts.getValue("class"))) {
                this.stage = 3;
            }
            break;
        case 3:
            this.stage = "track_container".equals(atts.getValue("class")) ? 4 : 6;
            break;
        case 4:
            if (qName.equals("a")) {
                this.favorited = atts.getValue("class").contains("favourite_button_selected");
                this.stage = 5;
            }
            break;
        case 5:
            if (qName.equals("input")) {
                final boolean email = atts.getValue("checked") != null;
                this.getCurrentBuilder().favorited(this.favorited ? email ? FavoriteState.FAVORITED_EMAIL : FavoriteState.FAVORITED : FavoriteState.NOT_FAVORITED);
                this.stage = 6;
            }
            break;
        case 6:
            if (qName.equals("a")) {
                final String onClick = atts.getValue("onclick");
                if (onClick != null && onClick.startsWith("Ra")) {
                    this.getCurrentBuilder().ratingToken(onClick.substring(onClick.indexOf('\'') + 1, onClick.lastIndexOf('\'')));
                }
                this.stage = 7;
            }
            break;
        case 8:
            if (qName.equals("a")) {
                this.stage = 9;
            }
            break;
        case 10:
            if (qName.equals("b")) {
                this.stage = 300;
            }
            break;
        case 301:
            if (qName.equals("span")) {
                final String title = atts.getValue("title");
                if (title != null) {
                    this.getCurrentBuilder().totalViewCount(toIntLiberal(title));
                    this.stage = 11;
                }
            }
            break;
        case 12:
            if (qName.equals("a")) {
                this.getCurrentBuilder().readLater(atts.getValue("class").contains("read_it_later_selected"));
            }
            this.stage = 14;
            break;
        case 14:
            if (qName.equals("a")) {
                try {
                    this.getCurrentBuilder().url(new URL("http://www.fimfiction.net" + atts.getValue("href")));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
                this.title = new StringBuilder();
                this.stage = 15;
            }
            break;
        case 16:
            if (qName.equals("a")) {
                this.authorName = new StringBuilder();
                this.stage = 17;
            }
            break;
        case 18:
            if (qName.equals("img") && atts.getValue("src").equals("//www.fimfiction-static.net/images/icons/views.png")) {
                this.stage = 19;
            }
            break;
        case 20:
            if (qName.equals("div") && "description".equals(atts.getValue("class"))) {
                this.stage = 21;
            }
            break;
        case 21:
            this.stage = "story_image".equals(atts.getValue("class")) ? 22 : 25;
            break;
        case 22:
            try {
                this.getCurrentBuilder().imageUrl(new URL("http:" + atts.getValue("href")));
            } catch (final MalformedURLException e) {
                throw new SAXException(e);
            }
            this.stage = 23;
            break;
        case 23:
            try {
                this.getCurrentBuilder().thumbnailUrl(new URL("http:" + atts.getValue("src")));
            } catch (final MalformedURLException e) {
                throw new SAXException(e);
            }
            this.stage = 24;
            break;
        case 24:
            if (qName.equals("a")) {
                this.stage = 25;
            } else {
                if (this.categories != null) {
                    this.getCurrentBuilder().categories(Collections.unmodifiableSet(this.categories));
                    this.categories = null;
                }
                this.description = new StringBuilder();
                this.stage = 26;
            }
            break;
        case 27:
            this.description.append('<');
            this.description.append(qName);
            for (int i = 0; i < atts.getLength(); i++) {
                this.description.append(' ');
                this.description.append(atts.getQName(i));
                this.description.append("=\"");
                this.description.append(atts.getValue(i).replace("\"", "\\\""));
                this.description.append('"');
            }
            this.description.append('>');
            break;
        case 28:
            if (qName.equals("ul")) {
                this.chapters = new ArrayList<Chapter>();
                this.stage = 29;
            }
            break;
        case 29:
            if (qName.equals("div")) {
                final String clazz = atts.getValue("class");
                if (clazz != null && clazz.contains("chapter_container")) {
                    if (!clazz.contains("chapter_expander")) {
                        this.stage = 100;
                    }
                }
            }
            if (qName.equals("li") && "save_ordering".equals(atts.getValue("class"))) {
                this.getCurrentBuilder().chapters(Collections.unmodifiableList(this.chapters));
                this.getCurrentBuilder().chapterCount(this.chapters.size());
                this.chapters = null;
                this.stage = 38;
            }
            break;
        case 100:
            this.stage = 101;
            break;
        case 101:
            this.stage = 30;
            break;
        case 30:
            this.chapter = Chapter.builder();
            if (qName.equals("i")) {
                this.chapter.unread(atts.getValue("class").length() == 17);
                this.stage = 31;
            } else if (qName.equals("a")) {
                try {
                    this.chapter.url(new URL("http://www.fimfiction.net" + atts.getValue("href")));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
                this.chapterTitle = new StringBuilder();
                this.stage = 32;
            }
            break;
        case 31:
            if (qName.equals("a")) {
                try {
                    this.chapter.url(new URL("http://www.fimfiction.net" + atts.getValue("href")));
                } catch (final MalformedURLException e) {
                    throw new SAXException(e);
                }
                this.chapterTitle = new StringBuilder();
                this.stage = 32;
            }
            break;
        case 35:
            this.stage = 36;
            break;
        case 37:
            if (qName.equals("a")) {
                this.chapter.id(toIntLiberal(atts.getValue("href")));
                this.chapters.add(this.chapter.build());
                this.chapter = null;
                this.stage = 29;
            }
            break;
        case 203:
            if (qName.equals("div")) {
                this.stage = 204;
            }
            break;
        case 205:
            if (qName.equals("br")) {
                this.stage = 39;
            }
            break;
        case 39:
            if (qName.equals("span")) {
                this.stage = 40;
            }
            break;
        case 41:
            if (qName.equals("br")) {
                this.stage = 42;
            }
            if (qName.equals("a")) {
                this.stage = 43;
            }
            break;
        case 42:
            if (qName.equals("span")) {
                this.stage = 43;
            }
            break;
        case 43:
        case 44:
            if (qName.equals("img")) {
                src = atts.getValue("src");
                final int i = src.lastIndexOf('.');
                if (i > 46) {
                    final String id = src.substring(46, i);
                    for (final Character character : Character.values()) {
                        if (id.equals(getImageId(character))) {
                            this.characters.add(character);
                            break;
                        }
                    }
                }
            }
            if (qName.equals("i")) {
                this.getCurrentBuilder().characters(Collections.unmodifiableSet(this.characters));
                this.characters = null;
                this.endStory();
                this.stage = 0;
            }
            ;
            break;
        }
    }


Input:
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      layoutCover();
      final Button button = (Button)findViewById(R.id.button_identify);
      button.setOnClickListener(new View.OnClickListener() {
          public void onClick(View view) {
              button.setText("");
              ImageView img = (ImageView)findViewById(R.id.mic_animation);
              img.setBackgroundResource(R.drawable.microphone_animation);
              AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();
              frameAnimation.start();
              img.setVisibility(View.VISIBLE);
            Intent intent = new Intent(FingerprintShowActivity.this, CardsActivity.class);
            intent.putExtra("imdb", "http://www.imdb.com/title/tt1777828/");
            startActivity(intent);
          }
      });

Output:
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      layoutCover();
      final Button button = (Button)findViewById(R.id.button_identify);
      button.setOnClickListener(new View.OnClickListener() {
          public void onClick(View view) {
              button.setText("");
              ImageView img = (ImageView)findViewById(R.id.mic_animation);
              img.setBackgroundResource(R.drawable.microphone_animation);
              AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();
              frameAnimation.start();
              img.setVisibility(View.VISIBLE);
              fingerprinter = new FingerprintListener(FingerprintShowActivity.this);
          }
      });


Input:
	public void initEstrategiaElaborada() {
		Vector<EstacionesCompare> estAuxSobrantes = new Vector<EstacionesCompare>();
		Vector<EstacionesCompare> estAuxDemanda = new Vector<EstacionesCompare>();
		for (int i = 0; i < estaciones.getNumStations(); i++) {
			int notMove = estaciones.getStationDoNotMove(i);
			int faltan = estaciones.getDemandNextHour(i) - estaciones.getStationNextState(i);
			if (notMove > 0) {
				if (notMove > 30)
					notMove = 30;
				EstacionesCompare aux = new EstacionesCompare(i, notMove);
				estAuxSobrantes.add(aux);
			}
			if (faltan > 0) {
				EstacionesCompare aux2 = new EstacionesCompare(i, faltan);
				estAuxDemanda.add(aux2);
			}
		}
		ordena(estAuxSobrantes);
		ordena(estAuxDemanda);
		System.out.println("Do not move: ");
		for (int i = 0; i < estAuxSobrantes.size(); i++)
			System.out.print(estAuxSobrantes.elementAt(i).getSobrantes() + ", ");
		System.out.println("Faltan: ");
		for (int i = 0; i < estAuxDemanda.size(); i++)
			System.out.print(estAuxDemanda.elementAt(i).getSobrantes() + ", ");
		System.out.println("Furgonetas: " + numFurgonetas);
		for (int i = 0; (i < numFurgonetas) && (estAuxSobrantes.size() > 0) && (estAuxDemanda.size() > 0); i++) {
			System.out.print("1 ");
			Transporte trans = new Transporte();
			EstacionesCompare estDem0 = estAuxDemanda.elementAt(0);
			EstacionesCompare estSob0 = estAuxSobrantes.elementAt(0);
			trans.setOrigen(estSob0.getOrigen());
			trans.setParadaUno(estDem0.getOrigen());
			int diferencia = estDem0.getSobrantes() - estSob0.getSobrantes();
			if (diferencia > 0) {
				trans.setBcParadaUno(estSob0.getSobrantes());
				trans.setBcOrigen(estSob0.getSobrantes());
				estDem0.setSobrantes(estDem0.getSobrantes() - estSob0.getSobrantes());
				if ((estAuxDemanda.size() > 1) && (estDem0.getSobrantes() < estAuxDemanda.elementAt(1).getSobrantes()))
					ordena(estAuxDemanda);
			}
			else {
				trans.setBcParadaUno(estDem0.getSobrantes());
				estAuxDemanda.remove(0);
				if (estAuxDemanda.size() > 0) {
					EstacionesCompare estDem1 = estAuxDemanda.elementAt(0);
					trans.setParadaDos(estDem1.getOrigen());
					if (estDem1.getSobrantes() + trans.getBcParadaUno() <= 30) {
						trans.setBcParadaDos(estDem1.getSobrantes());
						estAuxDemanda.remove(0);
					} else {
						trans.setBcParadaDos(30 - trans.getBcParadaUno());
						estDem1.setSobrantes(estDem1.getSobrantes() - trans.getBcParadaDos());
						if ((estAuxDemanda.size() > 1) && (estDem1.getSobrantes() < estAuxDemanda.elementAt(1).getSobrantes()))
							ordena(estAuxDemanda);
					}
				}
				trans.setBcOrigen(trans.getBcParadaUno() + trans.getBcParadaDos());
			}
			estAuxSobrantes.remove(0);
			transportes.add(trans);
		}
		System.out.println("");
		printTransportes();
	}

Output:
	public void initEstrategiaElaborada() {
		Vector<EstacionesCompare> estAuxSobrantes = new Vector<EstacionesCompare>();
		Vector<EstacionesCompare> estAuxDemanda = new Vector<EstacionesCompare>();
		for (int i = 0; i < estaciones.getNumStations(); i++) {
			int notMove = estaciones.getStationDoNotMove(i);
			int faltan = estaciones.getDemandNextHour(i) - estaciones.getStationNextState(i);
			if (notMove > 0) {
				if (notMove > 30)
					notMove = 30;
				EstacionesCompare aux = new EstacionesCompare(i, notMove);
				estAuxSobrantes.add(aux);
			}
			if (faltan > 0) {
				EstacionesCompare aux2 = new EstacionesCompare(i, faltan);
				estAuxDemanda.add(aux2);
			}
		}
		ordena(estAuxSobrantes);
		ordena(estAuxDemanda);
		System.out.println("Do not move: ");
		for (int i = 0; i < estAuxSobrantes.size(); i++)
			System.out.print(estAuxSobrantes.elementAt(i).getSobrantes() + ", ");
		System.out.println("Faltan: ");
		for (int i = 0; i < estAuxDemanda.size(); i++)
			System.out.print(estAuxDemanda.elementAt(i).getSobrantes() + ", ");
		System.out.println("Furgonetas: " + numFurgonetas);
		for (int i = 0; (i < numFurgonetas) && (estAuxSobrantes.size() > 0) && (estAuxDemanda.size() > 0); i++) {
			System.out.print("1 ");
			Transporte trans = new Transporte();
			EstacionesCompare estDem0 = estAuxDemanda.elementAt(0);
			EstacionesCompare estSob0 = estAuxSobrantes.elementAt(0);
			trans.setOrigen(estSob0.getOrigen());
			trans.setParadaUno(estDem0.getOrigen());
			int diferencia = estDem0.getSobrantes() - estSob0.getSobrantes();
			if (diferencia > 0) {
				trans.setBcParadaUno(estSob0.getSobrantes());
				trans.setBcOrigen(estSob0.getSobrantes());
				estDem0.setSobrantes(estDem0.getSobrantes() - estSob0.getSobrantes());
				if ((estAuxDemanda.size() > 1) && (estDem0.getSobrantes() < estAuxDemanda.elementAt(1).getSobrantes()))
					ordena(estAuxDemanda);
			}
			else {
				trans.setBcParadaUno(estDem0.getSobrantes());
				estAuxDemanda.remove(0);
				estSob0.setSobrantes(estSob0.getSobrantes() - trans.getBcParadaUno());
				if (estAuxDemanda.size() > 0) {
					EstacionesCompare estDem1 = estAuxDemanda.elementAt(0);
					trans.setParadaDos(estDem1.getOrigen());
					if (estDem1.getSobrantes() > estSob0.getSobrantes()) {
						trans.setBcParadaDos(estSob0.getSobrantes());
						estDem1.setSobrantes(estDem1.getSobrantes() - trans.getBcParadaDos());
						if ((estAuxDemanda.size() > 1) && (estDem1.getSobrantes() < estAuxDemanda.elementAt(1).getSobrantes()))
							ordena(estAuxDemanda);
					} else {
						trans.setBcParadaDos(estDem1.getSobrantes());
						estAuxDemanda.remove(0);
					}
				}
				trans.setBcOrigen(trans.getBcParadaUno() + trans.getBcParadaDos());
			}
			estAuxSobrantes.remove(0);
			transportes.add(trans);
		}
		System.out.println("");
		printTransportes();
	}


Input:
    protected void dispatchDraw(Canvas canvas) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {
            scrollChanged(getFirstVisiblePosition());
        }
        boolean drawStickiedHeader = mStickiedHeader != null
                && mAreHeadersSticky
                && mStickiedHeader.getVisibility() == View.VISIBLE;
        int headerHeight = getHeaderHeight();
        int top = mHeaderBottomPosition - headerHeight;
        if (drawStickiedHeader && mMaskStickyHeaderRegion) {
            mClippingRect.left = getPaddingLeft();
            mClippingRect.right = getWidth() - getPaddingRight();
            mClippingRect.top = mHeaderBottomPosition;
            mClippingRect.bottom = getHeight();
            canvas.save();
            canvas.clipRect(mClippingRect);
        }
        super.dispatchDraw(canvas);
        List<Integer> headerPositions = new ArrayList<Integer>();
        int vi = 0;
        for (int i = getFirstVisiblePosition(); i <= getLastVisiblePosition();) {
            long id = getItemIdAtPosition(i);
            if (id == StickyGridHeadersBaseAdapterWrapper.ID_HEADER) {
                headerPositions.add(vi);
            }
            i += mNumMeasuredColumns;
            vi += mNumMeasuredColumns;
        }
        for (int i = 0; i < headerPositions.size(); i++) {
            ReferenceView frame = (ReferenceView)getChildAt(headerPositions
                    .get(i));
            View header;
            try {
                header = (View)frame.getTag();
            } catch (Exception e) {
                return;
            }
            boolean headerIsStickied = ((HeaderFillerView)frame.getChildAt(0))
                    .getHeaderId() == mCurrentHeaderId
                    && frame.getTop() <= 0
                    && mAreHeadersSticky;
            if (header.getVisibility() != View.VISIBLE || headerIsStickied) {
                continue;
            }
            int widthMeasureSpec = MeasureSpec.makeMeasureSpec(getWidth(),
                    MeasureSpec.EXACTLY - getPaddingLeft() - getPaddingRight());
            int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0,
                    MeasureSpec.UNSPECIFIED);
            header.measure(widthMeasureSpec, heightMeasureSpec);
            header.layout(getLeft() + getPaddingLeft(), 0, getRight()
                    - getPaddingRight(), frame.getHeight());
            mClippingRect.left = getPaddingLeft();
            mClippingRect.right = getWidth() - getPaddingRight();
            mClippingRect.bottom = frame.getBottom();
            mClippingRect.top = frame.getTop();
            canvas.save();
            canvas.clipRect(mClippingRect);
            canvas.translate(getPaddingLeft(), frame.getTop());
            header.draw(canvas);
            canvas.restore();
        }
        if (drawStickiedHeader && mMaskStickyHeaderRegion) {
            canvas.restore();
        } else if (!drawStickiedHeader) {
            return;
        }
        if (mStickiedHeader.getWidth() != getWidth() - getPaddingLeft()
                - getPaddingRight()) {
            int widthMeasureSpec = MeasureSpec.makeMeasureSpec(getWidth(),
                    MeasureSpec.EXACTLY - getPaddingLeft() - getPaddingRight());
            int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0,
                    MeasureSpec.UNSPECIFIED);
            mStickiedHeader.measure(widthMeasureSpec, heightMeasureSpec);
            mStickiedHeader.layout(getLeft() + getPaddingLeft(), 0, getRight()
                    - getPaddingRight(), mStickiedHeader.getHeight());
        }
        mClippingRect.left = getPaddingLeft();
        mClippingRect.right = getWidth() - getPaddingRight();
        mClippingRect.bottom = top + headerHeight;
        if (mClippingToPadding) {
            mClippingRect.top = getPaddingTop();
        } else {
            mClippingRect.top = 0;
        }
        canvas.save();
        canvas.clipRect(mClippingRect);
        canvas.translate(getPaddingLeft(), top);
        canvas.saveLayerAlpha(0, 0, canvas.getWidth(), canvas.getHeight(),
                (int)(0xff * (float)mHeaderBottomPosition / headerHeight),
                Canvas.HAS_ALPHA_LAYER_SAVE_FLAG);
        mStickiedHeader.draw(canvas);
        canvas.restore();
        canvas.restore();
    }

Output:
    protected void dispatchDraw(Canvas canvas) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {
            scrollChanged(getFirstVisiblePosition());
        }
        boolean drawStickiedHeader = mStickiedHeader != null
                && mAreHeadersSticky
                && mStickiedHeader.getVisibility() == View.VISIBLE;
        int headerHeight = getHeaderHeight();
        int top = mHeaderBottomPosition - headerHeight;
        if (drawStickiedHeader && mMaskStickyHeaderRegion) {
            mClippingRect.left = getPaddingLeft();
            mClippingRect.right = getWidth() - getPaddingRight();
            mClippingRect.top = mHeaderBottomPosition;
            mClippingRect.bottom = getHeight();
            canvas.save();
            canvas.clipRect(mClippingRect);
        }
        super.dispatchDraw(canvas);
        List<Integer> headerPositions = new ArrayList<Integer>();
        int vi = 0;
        for (int i = getFirstVisiblePosition(); i <= getLastVisiblePosition();) {
            long id = getItemIdAtPosition(i);
            if (id == StickyGridHeadersBaseAdapterWrapper.ID_HEADER) {
                headerPositions.add(vi);
            }
            i += mNumMeasuredColumns;
            vi += mNumMeasuredColumns;
        }
        for (int i = 0; i < headerPositions.size(); i++) {
            ReferenceView frame = (ReferenceView)getChildAt(headerPositions
                    .get(i));
            View header;
            try {
                header = (View)frame.getTag();
            } catch (Exception e) {
                return;
            }
            boolean headerIsStickied = ((HeaderFillerView)frame.getChildAt(0))
                    .getHeaderId() == mCurrentHeaderId
                    && frame.getTop() < 0
                    && mAreHeadersSticky;
            if (header.getVisibility() != View.VISIBLE || headerIsStickied) {
                continue;
            }
            int widthMeasureSpec = MeasureSpec.makeMeasureSpec(getWidth(),
                    MeasureSpec.EXACTLY - getPaddingLeft() - getPaddingRight());
            int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0,
                    MeasureSpec.UNSPECIFIED);
            header.measure(widthMeasureSpec, heightMeasureSpec);
            header.layout(getLeft() + getPaddingLeft(), 0, getRight()
                    - getPaddingRight(), frame.getHeight());
            mClippingRect.left = getPaddingLeft();
            mClippingRect.right = getWidth() - getPaddingRight();
            mClippingRect.bottom = frame.getBottom();
            mClippingRect.top = frame.getTop();
            canvas.save();
            canvas.clipRect(mClippingRect);
            canvas.translate(getPaddingLeft(), frame.getTop());
            header.draw(canvas);
            canvas.restore();
        }
        if (drawStickiedHeader && mMaskStickyHeaderRegion) {
            canvas.restore();
        } else if (!drawStickiedHeader) {
            return;
        }
        if (mStickiedHeader.getWidth() != getWidth() - getPaddingLeft()
                - getPaddingRight()) {
            int widthMeasureSpec = MeasureSpec.makeMeasureSpec(getWidth(),
                    MeasureSpec.EXACTLY - getPaddingLeft() - getPaddingRight());
            int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0,
                    MeasureSpec.UNSPECIFIED);
            mStickiedHeader.measure(widthMeasureSpec, heightMeasureSpec);
            mStickiedHeader.layout(getLeft() + getPaddingLeft(), 0, getRight()
                    - getPaddingRight(), mStickiedHeader.getHeight());
        }
        mClippingRect.left = getPaddingLeft();
        mClippingRect.right = getWidth() - getPaddingRight();
        mClippingRect.bottom = top + headerHeight;
        if (mClippingToPadding) {
            mClippingRect.top = getPaddingTop();
        } else {
            mClippingRect.top = 0;
        }
        canvas.save();
        canvas.clipRect(mClippingRect);
        canvas.translate(getPaddingLeft(), top);
        canvas.saveLayerAlpha(0, 0, canvas.getWidth(), canvas.getHeight(),
                (int)(0xff * (float)mHeaderBottomPosition / headerHeight),
                Canvas.HAS_ALPHA_LAYER_SAVE_FLAG);
        mStickiedHeader.draw(canvas);
        canvas.restore();
        canvas.restore();
    }


Input:
	public Element exec(Element params, ServiceContext context) throws Exception
	{
		GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
		SearchManager searchMan = gc.getSearchmanager();
		Element elData  = SearchDefaults.getDefaultSearch(context, params);
		String  sRemote = elData.getChildText(Geonet.SearchResult.REMOTE);
		boolean remote  = sRemote != null && sRemote.equals(Geonet.Text.ON);
		UserSession  session     = context.getUserSession();
		MetaSearcher searcher;
		context.info("Creating searchers");
		if (remote)
			searcher = searchMan.newSearcher(SearchManager.Z3950,  Geonet.File.SEARCH_Z3950_CLIENT);
		else
			searcher = searchMan.newSearcher(SearchManager.LUCENE, Geonet.File.SEARCH_LUCENE);
		try {
			String summaryOnly = Util.getParam(params, Geonet.SearchResult.SUMMARY_ONLY, "0");
			String sBuildSummary = params.getChildText(Geonet.SearchResult.BUILD_SUMMARY);
			if (sBuildSummary != null && sBuildSummary.equals("false") && !"0".equals(summaryOnly))
				elData.getChild(Geonet.SearchResult.BUILD_SUMMARY).setText("true");
			searcher.search(context, elData, _config);
			session.setProperty(Geonet.Session.SEARCH_REQUEST, elData);
			if (!"0".equals(summaryOnly)) {
				return searcher.getSummary();
			} else {
				elData.addContent(new Element(Geonet.SearchResult.FAST).setText("true"));
				elData.addContent(new Element("from").setText("1"));
				elData.addContent(new Element("to").setText(searcher.getSize() +""));
				Element result = searcher.present(context, elData, _config);
				SelectionManager.updateMDResult(context.getUserSession(), result);
				return result;
			}
		} finally {
			searcher.close();
		}
	}

Output:
	public Element exec(Element params, ServiceContext context) throws Exception
	{
		GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
		SearchManager searchMan = gc.getSearchmanager();
		Element elData  = SearchDefaults.getDefaultSearch(context, params);
		String  sRemote = elData.getChildText(Geonet.SearchResult.REMOTE);
		boolean remote  = sRemote != null && sRemote.equals(Geonet.Text.ON);
		UserSession  session     = context.getUserSession();
		MetaSearcher searcher;
		context.info("Creating searchers");
		if (remote)
			searcher = searchMan.newSearcher(SearchManager.Z3950,  Geonet.File.SEARCH_Z3950_CLIENT);
		else
			searcher = searchMan.newSearcher(SearchManager.LUCENE, Geonet.File.SEARCH_LUCENE);
		try {
			String summaryOnly = Util.getParam(params, Geonet.SearchResult.SUMMARY_ONLY, "0");
			String sBuildSummary = params.getChildText(Geonet.SearchResult.BUILD_SUMMARY);
			if (sBuildSummary != null && sBuildSummary.equals("false") && !"0".equals(summaryOnly))
				elData.getChild(Geonet.SearchResult.BUILD_SUMMARY).setText("true");
			session.setProperty(Geonet.Session.SEARCH_REQUEST, elData.clone());
			searcher.search(context, elData, _config);
			if (!"0".equals(summaryOnly)) {
				return searcher.getSummary();
			} else {
				elData.addContent(new Element(Geonet.SearchResult.FAST).setText("true"));
				elData.addContent(new Element("from").setText("1"));
				elData.addContent(new Element("to").setText(searcher.getSize() +""));
				Element result = searcher.present(context, elData, _config);
				SelectionManager.updateMDResult(context.getUserSession(), result);
				return result;
			}
		} finally {
			searcher.close();
		}
	}


Input:
private void saveCSV(File folderToSaveIn, File databaseFile) throws Exception {
		Connection c = null;
		Statement statement = null;
		File fileNameToSaveAs = new File(folderToSaveIn, databaseFile.getName() + ".csv");
		BufferedWriter w = null;
		boolean success = false;
		try {
			w = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileNameToSaveAs), "UTF-8"));
			c = getConnection(databaseFile.getAbsolutePath());
			statement = c.createStatement();
			statement
					.execute("select datetime(ZCREATIONDATE + 978307200 ,'unixepoch', 'localtime') as CreationDate, datetime(ZMODIFICATIONDATE + 978307200 ,'unixepoch', 'localtime') as ModificationDate, ZTITLE as Title, (ZCONTENT) as Content,ZNOTE.Z_PK as Z_PK, ZCREATIONDATE, ZMODIFICATIONDATE from ZNOTE, ZNOTEBODY where ZNOTE.ZBODY = ZNOTEBODY.Z_PK order by ZMODIFICATIONDATE");
			ResultSet rs = statement.getResultSet();
			String headerLine = createCsvLine("Z_PK", "ZCREATIONDATE", "ZMODIFICATIONDATE", "CreationDate","ModificationDate","Title","Content");
			w.write(headerLine);
			while (rs.next()) {
				String bodyLine = createCsvLine(rs.getString("CreationDate"),rs.getString("ModificationDate"),rs.getString("Title"),"" + rs.getString("Content") + "", rs.getString("Z_PK"), rs.getString("ZCREATIONDATE"), rs.getString("ZMODIFICATIONDATE"));
				w.write(bodyLine);
			}
			success = true;
		} catch (SQLException e) {
			throw e;
		} finally {
			try {
				if (statement != null) {
					statement.close();
				}
			} catch (Exception e) {
			}
			try {
				if (c != null) {
					c.close();
				}
			} catch (Exception e) {
			}
			try {
				if (w != null) {
					w.flush();
					w.close();
				}
			} catch (Exception e) {
			}
			if (!success) {
				fileNameToSaveAs.delete();
			}
		}
	}

Output:
	private void saveCSV(File folderToSaveIn, File databaseFile) throws Exception {
		Connection c = null;
		Statement statement = null;
		File fileNameToSaveAs = new File(folderToSaveIn, databaseFile.getName() + ".csv");
		BufferedWriter w = null;
		boolean success = false;
		try {
			w = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileNameToSaveAs), "UTF-8"));
			c = getConnection(databaseFile.getAbsolutePath());
			statement = c.createStatement();
			statement
					.execute("select datetime(ZCREATIONDATE + 978307200 ,'unixepoch', 'localtime') as CreationDate, datetime(ZMODIFICATIONDATE + 978307200 ,'unixepoch', 'localtime') as ModificationDate, ZTITLE as Title, (ZCONTENT) as Content,ZNOTE.Z_PK as Z_PK, ZCREATIONDATE, ZMODIFICATIONDATE from ZNOTE, ZNOTEBODY where ZNOTE.ZBODY = ZNOTEBODY.Z_PK order by ZMODIFICATIONDATE");
			ResultSet rs = statement.getResultSet();
			String headerLine = createCsvLine( "CreationDate","ModificationDate","Title","Content", "Z_PK", "ZCREATIONDATE","ZMODIFICATIONDATE");
			w.write(headerLine);
			while (rs.next()) {
				String bodyLine = createCsvLine(rs.getString("CreationDate"),rs.getString("ModificationDate"),rs.getString("Title"),"<html><body>" + rs.getString("Content") + "</body></html>", rs.getString("Z_PK"), rs.getString("ZCREATIONDATE"), rs.getString("ZMODIFICATIONDATE"));
				w.write(bodyLine);
			}
			success = true;
		} catch (SQLException e) {
			throw e;
		} finally {
			try {
				if (statement != null) {
					statement.close();
				}
			} catch (Exception e) {
			}
			try {
				if (c != null) {
					c.close();
				}
			} catch (Exception e) {
			}
			try {
				if (w != null) {
					w.flush();
					w.close();
				}
			} catch (Exception e) {
			}
			if (!success) {
				fileNameToSaveAs.delete();
			}
		}
	}


Input:
    public MachineImageView() {
        this.setSizeFull();
        VerticalLayout verticalLayout = new VerticalLayout();
        verticalLayout.setSizeFull();
        HorizontalLayout actionButtonHeader = new HorizontalLayout();
        actionButtonHeader.setMargin(true);
        actionButtonHeader.setSpacing(true);
        actionButtonHeader.setWidth("100%");
        actionButtonHeader.setHeight("50px");
        this.registerMachineImageButton = new Button("Register Image...");
        this.registerMachineImageButton.setIcon(new ThemeResource("img/add.png"));
        this.registerMachineImageButton.addClickListener(new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
                if (MachineImageView.this.machineImageRegisterWizard.init(MachineImageView.this)) {
                    UI.getCurrent().addWindow(MachineImageView.this.machineImageRegisterWizard);
                }
            }
        });
        actionButtonHeader.addComponent(this.registerMachineImageButton);
        this.deleteMachineImageButton = new Button("Delete");
        this.deleteMachineImageButton.setIcon(new ThemeResource("img/delete.png"));
        this.deleteMachineImageButton.setEnabled(false);
        this.deleteMachineImageButton.addClickListener(new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
                final Set<?> selectedImageIds = (Set<?>) MachineImageView.this.machineImageTable.getValue();
                String name = MachineImageView.this.images.getItem(selectedImageIds.iterator().next()).getBean().getName();
                ConfirmDialog confirmDialog = ConfirmDialog.newConfirmDialogWithOption("Delete Image",
                    "Are you sure you want to delete image " + name + " ?", "delete image on provider",
                    new ConfirmDialog.ConfirmationDialogCallback() {
                        @Override
                        public void response(final boolean ok, final boolean deleteOnProvider) {
                            if (ok) {
                                for (Object id : selectedImageIds) {
                                    try {
                                        if (deleteOnProvider) {
                                            MachineImageView.this.machineImageManager.deleteMachineImage(id.toString());
                                        } else {
                                            MachineImageView.this.machineImageManager.unregisterMachineImage(id.toString());
                                        }
                                    } catch (CloudProviderException e) {
                                        Util.diplayErrorMessageBox("Image delete failure", e);
                                    }
                                }
                                MachineImageView.this.valueChange(null);
                            }
                        }
                    });
                MachineImageView.this.getUI().addWindow(confirmDialog);
            }
        });
        actionButtonHeader.addComponent(this.deleteMachineImageButton);
        Label spacer = new Label();
        spacer.setWidth("100%");
        actionButtonHeader.addComponent(spacer);
        actionButtonHeader.setExpandRatio(spacer, 1.0f);
        Button button = new Button("Refresh", new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
                MachineImageView.this.refresh();
            }
        });
        button.setIcon(new ThemeResource("img/refresh.png"));
        actionButtonHeader.addComponent(button);
        verticalLayout.addComponent(actionButtonHeader);
        verticalLayout.addComponent(this.machineImageTable = this.createMachineImageTable());
        verticalLayout.setExpandRatio(this.machineImageTable, 1.0f);
        this.setFirstComponent(verticalLayout);
        this.setSecondComponent(this.detailView = new MachineImageDetailView(this));
        this.setSplitPosition(60.0f);
    }

Output:
    public MachineImageView() {
        this.setSizeFull();
        VerticalLayout verticalLayout = new VerticalLayout();
        verticalLayout.setSizeFull();
        HorizontalLayout actionButtonHeader = new HorizontalLayout();
        actionButtonHeader.setMargin(true);
        actionButtonHeader.setSpacing(true);
        actionButtonHeader.setWidth("100%");
        actionButtonHeader.setHeight("50px");
        this.registerMachineImageButton = new Button("Register Image...");
        this.registerMachineImageButton.setIcon(new ThemeResource("img/add.png"));
        this.registerMachineImageButton.addClickListener(new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
                if (MachineImageView.this.machineImageRegisterWizard.init(MachineImageView.this)) {
                    UI.getCurrent().addWindow(MachineImageView.this.machineImageRegisterWizard);
                }
            }
        });
        actionButtonHeader.addComponent(this.registerMachineImageButton);
        this.deleteMachineImageButton = new Button("Delete");
        this.deleteMachineImageButton.setIcon(new ThemeResource("img/delete.png"));
        this.deleteMachineImageButton.setEnabled(false);
        this.deleteMachineImageButton.addClickListener(new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
                final Set<?> selectedImageIds = (Set<?>) MachineImageView.this.machineImageTable.getValue();
                StringBuilder sb = new StringBuilder();
                sb.append("Are you sure you want to delete ");
                if (selectedImageIds.size() == 1) {
                    Object id = selectedImageIds.iterator().next();
                    sb.append("image " + MachineImageView.this.images.getItem(id).getBean().getName() + " ?");
                } else {
                    sb.append(" these " + selectedImageIds.size() + " images ?");
                }
                String name = MachineImageView.this.images.getItem(selectedImageIds.iterator().next()).getBean().getName();
                ConfirmDialog confirmDialog = ConfirmDialog.newConfirmDialogWithOption("Delete Image", sb.toString(),
                    "delete image on provider", new ConfirmDialog.ConfirmationDialogCallback() {
                        @Override
                        public void response(final boolean ok, final boolean deleteOnProvider) {
                            if (ok) {
                                for (Object id : selectedImageIds) {
                                    try {
                                        if (deleteOnProvider) {
                                            MachineImageView.this.machineImageManager.deleteMachineImage(id.toString());
                                        } else {
                                            MachineImageView.this.machineImageManager.unregisterMachineImage(id.toString());
                                        }
                                    } catch (CloudProviderException e) {
                                        Util.diplayErrorMessageBox("Image delete failure", e);
                                    }
                                }
                                MachineImageView.this.valueChange(null);
                            }
                        }
                    });
                MachineImageView.this.getUI().addWindow(confirmDialog);
            }
        });
        actionButtonHeader.addComponent(this.deleteMachineImageButton);
        Label spacer = new Label();
        spacer.setWidth("100%");
        actionButtonHeader.addComponent(spacer);
        actionButtonHeader.setExpandRatio(spacer, 1.0f);
        Button button = new Button("Refresh", new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
                MachineImageView.this.refresh();
            }
        });
        button.setIcon(new ThemeResource("img/refresh.png"));
        actionButtonHeader.addComponent(button);
        verticalLayout.addComponent(actionButtonHeader);
        verticalLayout.addComponent(this.machineImageTable = this.createMachineImageTable());
        verticalLayout.setExpandRatio(this.machineImageTable, 1.0f);
        this.setFirstComponent(verticalLayout);
        this.setSecondComponent(this.detailView = new MachineImageDetailView(this));
        this.setSplitPosition(60.0f);
    }


Input:
	public static void initDefaultColors() {
		for (int i = 0; i < blockColors.length; i++) {
			blockColors[i] = null;
		}
		setDefaultColor(0, 0, 0);
		setDefaultColor(1, 0, -9934744);
		setDefaultColor(2, 0, -12096451);
		setDefaultColor(3, 0, -8825542);
		setDefaultColor(4, 0, -6974059);
		setDefaultColor(5, 0, -4417438);
		setDefaultColor(6, 0, 1816358162);
		setDefaultColor(6, 1, 1412577569);
		setDefaultColor(6, 2, 1819645267);
		setDefaultColor(7, 0, -13421773);
		setDefaultColor(8, 0, -1960157441);
		setDefaultColor(9, 0, -1960157441);
		setDefaultColor(10, 0, -2530028);
		setDefaultColor(11, 0, -2530028);
		setDefaultColor(12, 0, -2238560);
		setDefaultColor(13, 0, -7766146);
		setDefaultColor(14, 0, -7304324);
		setDefaultColor(15, 0, -7830913);
		setDefaultColor(16, 0, -9145485);
		setDefaultColor(17, 0, -10006222);
		setDefaultColor(17, 1, -13358823);
		setDefaultColor(17, 2, -3620193);
		setDefaultColor(18, 0, -1708107227);
		setDefaultColor(18, 1, -1522906074);
		setDefaultColor(18, 2, -1707912909);
		setDefaultColor(18, 3, -1707912909);
		setDefaultColor(18, 4, -1708107227);
		setDefaultColor(18, 5, -1522906074);
		setDefaultColor(18, 6, -1707912909);
		setDefaultColor(18, 7, -1707912909);
		setDefaultColor(19, 0, -1710770);
		setDefaultColor(20, 0, 1090519039);
		setDefaultColor(21, 0, -9998201);
		setDefaultColor(22, 0, -14858330);
		setDefaultColor(23, 0, -10987432);
		setDefaultColor(24, 0, -2370913);
		setDefaultColor(25, 0, -10206158);
		setDefaultColor(26, 0, -6339259);
		setDefaultColor(26, 1, -6339259);
		setDefaultColor(26, 2, -6339259);
		setDefaultColor(26, 3, -6339259);
		setDefaultColor(26, 4, -6339259);
		setDefaultColor(26, 5, -6339259);
		setDefaultColor(26, 6, -6339259);
		setDefaultColor(26, 7, -6339259);
		setDefaultColor(26, 8, -6397599);
		setDefaultColor(26, 9, -6397599);
		setDefaultColor(26, 10, -6397599);
		setDefaultColor(26, 11, -6397599);
		setDefaultColor(26, 12, -6397599);
		setDefaultColor(26, 13, -6397599);
		setDefaultColor(26, 14, -6397599);
		setDefaultColor(26, 15, -6397599);
		setDefaultColor(27, 0, -528457632);
		setDefaultColor(27, 1, -528457632);
		setDefaultColor(27, 2, -528457632);
		setDefaultColor(27, 3, -528457632);
		setDefaultColor(27, 4, -528457632);
		setDefaultColor(27, 5, -528457632);
		setDefaultColor(27, 6, -528457632);
		setDefaultColor(27, 7, -528457632);
		setDefaultColor(27, 8, -523214752);
		setDefaultColor(27, 9, -523214752);
		setDefaultColor(27, 10, -523214752);
		setDefaultColor(27, 11, -523214752);
		setDefaultColor(27, 12, -523214752);
		setDefaultColor(27, 13, -523214752);
		setDefaultColor(27, 14, -523214752);
		setDefaultColor(27, 15, -523214752);
		setDefaultColor(28, 0, -8952744);
		setDefaultColor(29, 0, -9605779);
		setDefaultColor(29, 1, -7499421);
		setDefaultColor(29, 2, -9804194);
		setDefaultColor(29, 3, -9804194);
		setDefaultColor(29, 4, -9804194);
		setDefaultColor(29, 5, -9804194);
		setDefaultColor(29, 8, -9605779);
		setDefaultColor(29, 9, -7499421);
		setDefaultColor(29, 10, -9804194);
		setDefaultColor(29, 11, -9804194);
		setDefaultColor(29, 12, -9804194);
		setDefaultColor(29, 13, -9804194);
		setDefaultColor(30, 0, 1775884761);
		setDefaultColor(31, 0, 1383747097);
		setDefaultColor(31, 1, -1571782606);
		setDefaultColor(31, 2, 1330675762);
		setDefaultColor(32, 0, 1383747097);
		setDefaultColor(33, 0, -9605779);
		setDefaultColor(33, 1, -6717094);
		setDefaultColor(33, 2, -9804194);
		setDefaultColor(33, 3, -9804194);
		setDefaultColor(33, 4, -9804194);
		setDefaultColor(33, 5, -9804194);
		setDefaultColor(33, 8, -9605779);
		setDefaultColor(33, 9, -6717094);
		setDefaultColor(33, 10, -9804194);
		setDefaultColor(33, 11, -9804194);
		setDefaultColor(33, 12, -9804194);
		setDefaultColor(33, 13, -9804194);
		setDefaultColor(34, 0, -6717094);
		setDefaultColor(34, 1, -6717094);
		setDefaultColor(34, 2, -2137423526);
		setDefaultColor(34, 3, -2137423526);
		setDefaultColor(34, 4, -2137423526);
		setDefaultColor(34, 5, -2137423526);
		setDefaultColor(34, 8, -6717094);
		setDefaultColor(34, 9, -7499421);
		setDefaultColor(34, 10, -2137423526);
		setDefaultColor(34, 11, -2137423526);
		setDefaultColor(34, 12, -2137423526);
		setDefaultColor(34, 13, -2137423526);
		setDefaultColor(35, 0, -2236963);
		setDefaultColor(35, 1, -1475018);
		setDefaultColor(35, 2, -4370744);
		setDefaultColor(35, 3, -9991469);
		setDefaultColor(35, 4, -4082660);
		setDefaultColor(35, 5, -12928209);
		setDefaultColor(35, 6, -2588006);
		setDefaultColor(35, 7, -12434878);
		setDefaultColor(35, 8, -6445916);
		setDefaultColor(35, 9, -14191468);
		setDefaultColor(35, 10, -8374846);
		setDefaultColor(35, 11, -14273895);
		setDefaultColor(35, 12, -11193573);
		setDefaultColor(35, 13, -13153256);
		setDefaultColor(35, 14, -6083544);
		setDefaultColor(35, 15, -15067369);
		setDefaultColor(37, 0, -1057883902);
		setDefaultColor(38, 0, -1057552625);
		setDefaultColor(39, 0, -1064211115);
		setDefaultColor(40, 0, -1063643364);
		setDefaultColor(41, 0, -66723);
		setDefaultColor(42, 0, -1447447);
		setDefaultColor(43, 0, -5723992);
		setDefaultColor(43, 1, -1712721);
		setDefaultColor(43, 2, -7046838);
		setDefaultColor(43, 3, -8224126);
		setDefaultColor(43, 4, -6591135);
		setDefaultColor(43, 5, -8750470);
		setDefaultColor(44, 0, -5723992);
		setDefaultColor(44, 1, -1712721);
		setDefaultColor(44, 2, -7046838);
		setDefaultColor(44, 3, -8224126);
		setDefaultColor(44, 4, -6591135);
		setDefaultColor(44, 5, -8750470);
		setDefaultColor(45, 0, -6591135);
		setDefaultColor(46, 0, -2407398);
		setDefaultColor(47, 0, -4943782);
		setDefaultColor(48, 0, -14727393);
		setDefaultColor(49, 0, -15527395);
		setDefaultColor(50, 0, 1627379712);
		setDefaultColor(51, 0, -4171263);
		setDefaultColor(52, 0, -14262393);
		setDefaultColor(53, 0, -4417438);
		setDefaultColor(54, 0, -7378659);
		setDefaultColor(55, 0, 1827466476);
		setDefaultColor(56, 0, -8287089);
		setDefaultColor(57, 0, -10428192);
		setDefaultColor(58, 0, -8038091);
		setDefaultColor(59, 0, 302029071);
		setDefaultColor(59, 1, 957524751);
		setDefaultColor(59, 2, 1444710667);
		setDefaultColor(59, 3, -1708815608);
		setDefaultColor(59, 4, -835813369);
		setDefaultColor(59, 5, -532579833);
		setDefaultColor(59, 6, -531663353);
		setDefaultColor(59, 7, -531208953);
		setDefaultColor(60, 0, -9221331);
		setDefaultColor(60, 1, -9550295);
		setDefaultColor(60, 2, -9879003);
		setDefaultColor(60, 3, -10207967);
		setDefaultColor(60, 4, -10536675);
		setDefaultColor(60, 5, -10865383);
		setDefaultColor(60, 6, -11194347);
		setDefaultColor(60, 7, -11523055);
		setDefaultColor(60, 8, -11786226);
		setDefaultColor(61, 0, -9145228);
		setDefaultColor(62, 0, -8355712);
		setDefaultColor(63, 0, -1598779307);
		setDefaultColor(64, 0, -1064934094);
		setDefaultColor(65, 0, -2139595212);
		setDefaultColor(66, 0, -8951211);
		setDefaultColor(67, 0, -6381922);
		setDefaultColor(68, 0, -1598779307);
		setDefaultColor(69, 0, -1603709901);
		setDefaultColor(70, 0, -7368817);
		setDefaultColor(71, 0, -1061043775);
		setDefaultColor(72, 0, -4417438);
		setDefaultColor(73, 0, -6981535);
		setDefaultColor(74, 0, -6981535);
		setDefaultColor(75, 0, -2141709038);
		setDefaultColor(76, 0, -2136923117);
		setDefaultColor(77, 0, -2139851660);
		setDefaultColor(78, 0, -1314833);
		setDefaultColor(79, 0, -1619219203);
		setDefaultColor(80, 0, -986896);
		setDefaultColor(81, 0, -15695840);
		setDefaultColor(82, 0, -6380624);
		setDefaultColor(83, 0, -7094428);
		setDefaultColor(84, 0, -9811658);
		setDefaultColor(85, 0, -4417438);
		setDefaultColor(86, 0, -4229867);
		setDefaultColor(87, 0, -9751501);
		setDefaultColor(88, 0, -11255757);
		setDefaultColor(89, 0, -4157626);
		setDefaultColor(90, 0, -9231226);
		setDefaultColor(91, 0, -3893474);
		setDefaultColor(92, 0, -1848115);
		setDefaultColor(93, 0, -6843501);
		setDefaultColor(94, 0, -4156525);
		setDefaultColor(95, 0, -7378659);
		setDefaultColor(96, 0, -8495827);
		setDefaultColor(96, 1, -8495827);
		setDefaultColor(96, 2, -8495827);
		setDefaultColor(96, 3, -8495827);
		setDefaultColor(96, 4, 545152301);
		setDefaultColor(96, 5, 545152301);
		setDefaultColor(96, 6, 545152301);
		setDefaultColor(96, 7, 545152301);
		setDefaultColor(97, 0, -9934744);
		setDefaultColor(97, 1, -6974059);
		setDefaultColor(97, 2, -8750470);
		setDefaultColor(98, 0, -8750470);
		setDefaultColor(98, 1, -9275542);
		setDefaultColor(98, 2, -9013642);
		setDefaultColor(99, 0, -3495048);
		setDefaultColor(99, 1, -7509421);
		setDefaultColor(99, 2, -7509421);
		setDefaultColor(99, 3, -7509421);
		setDefaultColor(99, 4, -7509421);
		setDefaultColor(99, 5, -7509421);
		setDefaultColor(99, 6, -7509421);
		setDefaultColor(99, 7, -7509421);
		setDefaultColor(99, 8, -7509421);
		setDefaultColor(99, 9, -7509421);
		setDefaultColor(99, 10, -3495048);
		setDefaultColor(100, 0, -3495048);
		setDefaultColor(100, 1, -4840156);
		setDefaultColor(100, 2, -4840156);
		setDefaultColor(100, 3, -4840156);
		setDefaultColor(100, 4, -4840156);
		setDefaultColor(100, 5, -4840156);
		setDefaultColor(100, 6, -4840156);
		setDefaultColor(100, 7, -4840156);
		setDefaultColor(100, 8, -4840156);
		setDefaultColor(100, 9, -4840156);
		setDefaultColor(100, 10, -3495048);
		setDefaultColor(101, 0, -2140312470);
		setDefaultColor(102, 0, 1627389951);
		setDefaultColor(103, 0, -6842076);
		setDefaultColor(104, 0, 1073780992);
		setDefaultColor(104, 1, 1209242626);
		setDefaultColor(104, 2, 1344704516);
		setDefaultColor(104, 3, 1480166151);
		setDefaultColor(104, 4, 1615693321);
		setDefaultColor(104, 5, 1751154956);
		setDefaultColor(104, 6, 1886616590);
		setDefaultColor(104, 7, 2022144016);
		setDefaultColor(105, 0, 1073780992);
		setDefaultColor(105, 1, 1209242626);
		setDefaultColor(105, 2, 1344704516);
		setDefaultColor(105, 3, 1480166151);
		setDefaultColor(105, 4, 1615693321);
		setDefaultColor(105, 5, 1751154956);
		setDefaultColor(105, 6, 1886616590);
		setDefaultColor(105, 7, 2022144016);
		setDefaultColor(106, 0, -2145432054);
		setDefaultColor(107, 0, -1061382046);
		setDefaultColor(108, 0, -6591135);
		setDefaultColor(109, 0, -8750470);
		setDefaultColor(110, 0, 0xAB8790, 0xFF);
		setDefaultColor(111, 0, 0x158003, 0xFF);
		setDefaultColor(112, 0, 0x40002F, 0xFF);
		setDefaultColor(113, 0, 0x40002F, 0xFF);
		setDefaultColor(114, 0, 0x40002F, 0xFF);
		setDefaultColor(115, 0, 0xA30321, 0xFF);
		setDefaultColor(116, 0, 0xF0DDE0, 0xFF);
		setDefaultColor(117, 0, -9934744);
		setDefaultColor(118, 0, -9934744);
		setDefaultColor(119, 0, 0x000000, 0xFF);
		setDefaultColor(120, 0, 0x376319, 0xFF);
		setDefaultColor(121, 0, 0xE4E8B5, 0xFF);
		setDefaultColor(122, 0, 0x24031E, 0xFF);
		setDefaultColor(123, 0, 0x784C10, 0xFF);
		setDefaultColor(124, 0, 0xE3DE54, 0xFF);
	}

Output:
	public static void initDefaultColors() {
		for (int i = 0; i < blockColors.length; i++) {
			blockColors[i] = null;
		}
		setDefaultColor(0, 0, 0);
		setDefaultColor(1, 0, -9934744);
		setDefaultColor(2, 0, -12096451);
		setDefaultColor(3, 0, -8825542);
		setDefaultColor(4, 0, -6974059);
		setDefaultColor(5, 0, -4417438);
		setDefaultColor(6, 0, 1816358162);
		setDefaultColor(6, 1, 1412577569);
		setDefaultColor(6, 2, 1819645267);
		setDefaultColor(7, 0, -13421773);
		setDefaultColor(8, 0, -1960157441);
		setDefaultColor(9, 0, -1960157441);
		setDefaultColor(10, 0, -2530028);
		setDefaultColor(11, 0, -2530028);
		setDefaultColor(12, 0, -2238560);
		setDefaultColor(13, 0, -7766146);
		setDefaultColor(14, 0, -7304324);
		setDefaultColor(15, 0, -7830913);
		setDefaultColor(16, 0, -9145485);
		setDefaultColor(17, 0, -10006222);
		setDefaultColor(17, 1, -13358823);
		setDefaultColor(17, 2, -3620193);
		setDefaultColor(18, 0, -1708107227);
		setDefaultColor(18, 1, -1522906074);
		setDefaultColor(18, 2, -1707912909);
		setDefaultColor(18, 3, -1707912909);
		setDefaultColor(18, 4, -1708107227);
		setDefaultColor(18, 5, -1522906074);
		setDefaultColor(18, 6, -1707912909);
		setDefaultColor(18, 7, -1707912909);
		setDefaultColor(19, 0, -1710770);
		setDefaultColor(20, 0, 1090519039);
		setDefaultColor(21, 0, -9998201);
		setDefaultColor(22, 0, -14858330);
		setDefaultColor(23, 0, -10987432);
		setDefaultColor(24, 0, -2370913);
		setDefaultColor(25, 0, -10206158);
		setDefaultColor(26, 0, -6339259);
		setDefaultColor(26, 1, -6339259);
		setDefaultColor(26, 2, -6339259);
		setDefaultColor(26, 3, -6339259);
		setDefaultColor(26, 4, -6339259);
		setDefaultColor(26, 5, -6339259);
		setDefaultColor(26, 6, -6339259);
		setDefaultColor(26, 7, -6339259);
		setDefaultColor(26, 8, -6397599);
		setDefaultColor(26, 9, -6397599);
		setDefaultColor(26, 10, -6397599);
		setDefaultColor(26, 11, -6397599);
		setDefaultColor(26, 12, -6397599);
		setDefaultColor(26, 13, -6397599);
		setDefaultColor(26, 14, -6397599);
		setDefaultColor(26, 15, -6397599);
		setDefaultColor(27, 0, -528457632);
		setDefaultColor(27, 1, -528457632);
		setDefaultColor(27, 2, -528457632);
		setDefaultColor(27, 3, -528457632);
		setDefaultColor(27, 4, -528457632);
		setDefaultColor(27, 5, -528457632);
		setDefaultColor(27, 6, -528457632);
		setDefaultColor(27, 7, -528457632);
		setDefaultColor(27, 8, -523214752);
		setDefaultColor(27, 9, -523214752);
		setDefaultColor(27, 10, -523214752);
		setDefaultColor(27, 11, -523214752);
		setDefaultColor(27, 12, -523214752);
		setDefaultColor(27, 13, -523214752);
		setDefaultColor(27, 14, -523214752);
		setDefaultColor(27, 15, -523214752);
		setDefaultColor(28, 0, -8952744);
		setDefaultColor(29, 0, -9605779);
		setDefaultColor(29, 1, -7499421);
		setDefaultColor(29, 2, -9804194);
		setDefaultColor(29, 3, -9804194);
		setDefaultColor(29, 4, -9804194);
		setDefaultColor(29, 5, -9804194);
		setDefaultColor(29, 8, -9605779);
		setDefaultColor(29, 9, -7499421);
		setDefaultColor(29, 10, -9804194);
		setDefaultColor(29, 11, -9804194);
		setDefaultColor(29, 12, -9804194);
		setDefaultColor(29, 13, -9804194);
		setDefaultColor(30, 0, 1775884761);
		setDefaultColor(31, 0, 1383747097);
		setDefaultColor(31, 1, -1571782606);
		setDefaultColor(31, 2, 1330675762);
		setDefaultColor(32, 0, 1383747097);
		setDefaultColor(33, 0, -9605779);
		setDefaultColor(33, 1, -6717094);
		setDefaultColor(33, 2, -9804194);
		setDefaultColor(33, 3, -9804194);
		setDefaultColor(33, 4, -9804194);
		setDefaultColor(33, 5, -9804194);
		setDefaultColor(33, 8, -9605779);
		setDefaultColor(33, 9, -6717094);
		setDefaultColor(33, 10, -9804194);
		setDefaultColor(33, 11, -9804194);
		setDefaultColor(33, 12, -9804194);
		setDefaultColor(33, 13, -9804194);
		setDefaultColor(34, 0, -6717094);
		setDefaultColor(34, 1, -6717094);
		setDefaultColor(34, 2, -2137423526);
		setDefaultColor(34, 3, -2137423526);
		setDefaultColor(34, 4, -2137423526);
		setDefaultColor(34, 5, -2137423526);
		setDefaultColor(34, 8, -6717094);
		setDefaultColor(34, 9, -7499421);
		setDefaultColor(34, 10, -2137423526);
		setDefaultColor(34, 11, -2137423526);
		setDefaultColor(34, 12, -2137423526);
		setDefaultColor(34, 13, -2137423526);
		setDefaultColor(35, 0, -2236963);
		setDefaultColor(35, 1, -1475018);
		setDefaultColor(35, 2, -4370744);
		setDefaultColor(35, 3, -9991469);
		setDefaultColor(35, 4, -4082660);
		setDefaultColor(35, 5, -12928209);
		setDefaultColor(35, 6, -2588006);
		setDefaultColor(35, 7, -12434878);
		setDefaultColor(35, 8, -6445916);
		setDefaultColor(35, 9, -14191468);
		setDefaultColor(35, 10, -8374846);
		setDefaultColor(35, 11, -14273895);
		setDefaultColor(35, 12, -11193573);
		setDefaultColor(35, 13, -13153256);
		setDefaultColor(35, 14, -6083544);
		setDefaultColor(35, 15, -15067369);
		setDefaultColor(37, 0, -1057883902);
		setDefaultColor(38, 0, -1057552625);
		setDefaultColor(39, 0, -1064211115);
		setDefaultColor(40, 0, -1063643364);
		setDefaultColor(41, 0, -66723);
		setDefaultColor(42, 0, -1447447);
		setDefaultColor(43, 0, -5723992);
		setDefaultColor(43, 1, -1712721);
		setDefaultColor(43, 2, -7046838);
		setDefaultColor(43, 3, -8224126);
		setDefaultColor(43, 4, -6591135);
		setDefaultColor(43, 5, -8750470);
		setDefaultColor(44, 0, -5723992);
		setDefaultColor(44, 1, -1712721);
		setDefaultColor(44, 2, -7046838);
		setDefaultColor(44, 3, -8224126);
		setDefaultColor(44, 4, -6591135);
		setDefaultColor(44, 5, -8750470);
		setDefaultColor(45, 0, -6591135);
		setDefaultColor(46, 0, -2407398);
		setDefaultColor(47, 0, -4943782);
		setDefaultColor(48, 0, -14727393);
		setDefaultColor(49, 0, -15527395);
		setDefaultColor(50, 0, 1627379712);
		setDefaultColor(51, 0, -4171263);
		setDefaultColor(52, 0, -14262393);
		setDefaultColor(53, 0, -4417438);
		setDefaultColor(54, 0, -7378659);
		setDefaultColor(55, 0, 1827466476);
		setDefaultColor(56, 0, -8287089);
		setDefaultColor(57, 0, -10428192);
		setDefaultColor(58, 0, -8038091);
		setDefaultColor(59, 0, 302029071);
		setDefaultColor(59, 1, 957524751);
		setDefaultColor(59, 2, 1444710667);
		setDefaultColor(59, 3, -1708815608);
		setDefaultColor(59, 4, -835813369);
		setDefaultColor(59, 5, -532579833);
		setDefaultColor(59, 6, -531663353);
		setDefaultColor(59, 7, -531208953);
		setDefaultColor(60, 0, -9221331);
		setDefaultColor(60, 1, -9550295);
		setDefaultColor(60, 2, -9879003);
		setDefaultColor(60, 3, -10207967);
		setDefaultColor(60, 4, -10536675);
		setDefaultColor(60, 5, -10865383);
		setDefaultColor(60, 6, -11194347);
		setDefaultColor(60, 7, -11523055);
		setDefaultColor(60, 8, -11786226);
		setDefaultColor(61, 0, -9145228);
		setDefaultColor(62, 0, -8355712);
		setDefaultColor(63, 0, -1598779307);
		setDefaultColor(64, 0, -1064934094);
		setDefaultColor(65, 0, -2139595212);
		setDefaultColor(66, 0, -8951211);
		setDefaultColor(67, 0, -6381922);
		setDefaultColor(68, 0, -1598779307);
		setDefaultColor(69, 0, -1603709901);
		setDefaultColor(70, 0, -7368817);
		setDefaultColor(71, 0, -1061043775);
		setDefaultColor(72, 0, -4417438);
		setDefaultColor(73, 0, -6981535);
		setDefaultColor(74, 0, -6981535);
		setDefaultColor(75, 0, -2141709038);
		setDefaultColor(76, 0, -2136923117);
		setDefaultColor(77, 0, -2139851660);
		setDefaultColor(78, 0, -1314833);
		setDefaultColor(79, 0, -1619219203);
		setDefaultColor(80, 0, -986896);
		setDefaultColor(81, 0, -15695840);
		setDefaultColor(82, 0, -6380624);
		setDefaultColor(83, 0, -7094428);
		setDefaultColor(84, 0, -9811658);
		setDefaultColor(85, 0, -4417438);
		setDefaultColor(86, 0, -4229867);
		setDefaultColor(87, 0, -9751501);
		setDefaultColor(88, 0, -11255757);
		setDefaultColor(89, 0, -4157626);
		setDefaultColor(90, 0, -9231226);
		setDefaultColor(91, 0, -3893474);
		setDefaultColor(92, 0, -1848115);
		setDefaultColor(93, 0, -6843501);
		setDefaultColor(94, 0, -4156525);
		setDefaultColor(95, 0, -7378659);
		setDefaultColor(96, 0, -8495827);
		setDefaultColor(96, 1, -8495827);
		setDefaultColor(96, 2, -8495827);
		setDefaultColor(96, 3, -8495827);
		setDefaultColor(96, 4, 545152301);
		setDefaultColor(96, 5, 545152301);
		setDefaultColor(96, 6, 545152301);
		setDefaultColor(96, 7, 545152301);
		setDefaultColor(97, 0, -9934744);
		setDefaultColor(97, 1, -6974059);
		setDefaultColor(97, 2, -8750470);
		setDefaultColor(98, 0, -8750470);
		setDefaultColor(98, 1, -9275542);
		setDefaultColor(98, 2, -9013642);
		setDefaultColor(99, 0, -3495048);
		setDefaultColor(99, 1, -7509421);
		setDefaultColor(99, 2, -7509421);
		setDefaultColor(99, 3, -7509421);
		setDefaultColor(99, 4, -7509421);
		setDefaultColor(99, 5, -7509421);
		setDefaultColor(99, 6, -7509421);
		setDefaultColor(99, 7, -7509421);
		setDefaultColor(99, 8, -7509421);
		setDefaultColor(99, 9, -7509421);
		setDefaultColor(99, 10, -3495048);
		setDefaultColor(100, 0, -3495048);
		setDefaultColor(100, 1, -4840156);
		setDefaultColor(100, 2, -4840156);
		setDefaultColor(100, 3, -4840156);
		setDefaultColor(100, 4, -4840156);
		setDefaultColor(100, 5, -4840156);
		setDefaultColor(100, 6, -4840156);
		setDefaultColor(100, 7, -4840156);
		setDefaultColor(100, 8, -4840156);
		setDefaultColor(100, 9, -4840156);
		setDefaultColor(100, 10, -3495048);
		setDefaultColor(101, 0, -2140312470);
		setDefaultColor(102, 0, 1627389951);
		setDefaultColor(103, 0, -6842076);
		setDefaultColor(104, 0, 1073780992);
		setDefaultColor(104, 1, 1209242626);
		setDefaultColor(104, 2, 1344704516);
		setDefaultColor(104, 3, 1480166151);
		setDefaultColor(104, 4, 1615693321);
		setDefaultColor(104, 5, 1751154956);
		setDefaultColor(104, 6, 1886616590);
		setDefaultColor(104, 7, 2022144016);
		setDefaultColor(105, 0, 1073780992);
		setDefaultColor(105, 1, 1209242626);
		setDefaultColor(105, 2, 1344704516);
		setDefaultColor(105, 3, 1480166151);
		setDefaultColor(105, 4, 1615693321);
		setDefaultColor(105, 5, 1751154956);
		setDefaultColor(105, 6, 1886616590);
		setDefaultColor(105, 7, 2022144016);
		setDefaultColor(106, 0, -2145432054);
		setDefaultColor(107, 0, -1061382046);
		setDefaultColor(108, 0, -6591135);
		setDefaultColor(109, 0, -8750470);
		setDefaultColor(110, 0, 0xAB8790, 0xFF);
		setDefaultColor(111, 0, 0x158003, 0xFF);
		setDefaultColor(112, 0, 0x40002F, 0xFF);
		setDefaultColor(113, 0, 0x40002F, 0xFF);
		setDefaultColor(114, 0, 0x40002F, 0xFF);
		setDefaultColor(115, 0, 0xA30321, 0xFF);
		setDefaultColor(116, 0, 0xF0DDE0, 0xFF);
		setDefaultColor(117, 0, -9934744);
		setDefaultColor(118, 0, -9934744);
		setDefaultColor(119, 0, 0x000000, 0xFF);
		setDefaultColor(120, 0, 0x376319, 0xFF);
		setDefaultColor(121, 0, 0xE4E8B5, 0xFF);
		setDefaultColor(122, 0, 0x24031E, 0xFF);
		setDefaultColor(123, 0, 0x784C10, 0xFF);
		setDefaultColor(124, 0, 0xE3DE54, 0xFF);
		setDefaultColor(125, 0, 0x9F824B);
		setDefaultColor(126, 0, 0x9F824B);
		setDefaultColor(127, 0, 0xAE6616);
		setDefaultColor(128, 0, 0xCBC594);
		setDefaultColor(129, 0, 0x46A56A);
		setDefaultColor(130, 0, 0x283A3C);
		setDefaultColor(131, 0, 0xAC8B54);
		setDefaultColor(132, 0, 0xD5D5D5);
		setDefaultColor(133, 0, 0x4CD473);
		setDefaultColor(134, 0, 0x6E512C);
		setDefaultColor(135, 0, 0xC4B87B);
		setDefaultColor(136, 0, 0x986C46);
		setDefaultColor(137, 0, 0xAD9D8F);
		setDefaultColor(138, 0, 0x64A6A2);
		setDefaultColor(139, 0, 0x929292);
		setDefaultColor(140, 0, 0x3A2017);
		setDefaultColor(141, 0, 0xC28600);
		setDefaultColor(142, 0, 0x9C931D);
		setDefaultColor(143, 0, 0xA4864F);
	}


Input:
  public MatrixData data (@PathVariable ("id") String id,
                          @RequestParam (value = "startRow", required = false) Integer startRow,
                          @RequestParam (value = "endRow", required = false) Integer endRow,
                          @RequestParam (value = "startColumn", required = false) Integer startColumn,
                          @RequestParam (value = "endColumn", required = false) Integer endColumn) throws HeatmapNotFoundException {
    return (startRow == null || endRow == null || startColumn == null || endColumn == null)
                                                                                ? heatmaps.get (id)
                                                                                .getData (0,
                                                                                MAX_VALUE,
                                                                                0,
                                                                                MAX_VALUE)
                                                                                : heatmaps.get (id)
                                                                                .getData (startRow,
                                                                                endRow,
                                                                                startColumn,
                                                                                endColumn);
  }

Output:
  public MatrixData data (@PathVariable ("id") String id,
                          @RequestParam (value = "startRow", required = false) Integer startRow,
                          @RequestParam (value = "endRow", required = false) Integer endRow,
                          @RequestParam (value = "startColumn", required = false) Integer startColumn,
                          @RequestParam (value = "endColumn", required = false) Integer endColumn) throws HeatmapNotFoundException {
    if (log.isDebugEnabled ())
      log.debug ("Serving request for data for heatmap "
                 + id + " starting row " + startRow + " ending row " + endRow + " startingColumn " + startColumn
                 + " ending column " + endColumn);
    return (startRow == null || endRow == null || startColumn == null || endColumn == null)
                                                                                ? heatmaps.get (id)
                                                                                .getData (0,
                                                                                MAX_VALUE,
                                                                                0,
                                                                                MAX_VALUE)
                                                                                : heatmaps.get (id)
                                                                                .getData (startRow,
                                                                                endRow,
                                                                                startColumn,
                                                                                endColumn);
  }


Input:
	protected List<PluginApi.ActionInfo> implementedActions(Context context) {
		return Collections.<PluginApi.ActionInfo>singletonList(new PluginApi.MenuActionInfo(
			Uri.parse("http://data.fbreader.org/plugin/tts/speak"),
			context.getText(R.string.speak_menu_item).toString()
		));
	}

Output:
	protected List<PluginApi.ActionInfo> implementedActions(Context context) {
		return Collections.<PluginApi.ActionInfo>singletonList(new PluginApi.MenuActionInfo(
			Uri.parse("http://data.fbreader.org/plugin/tts/speak"),
			context.getText(R.string.speak_menu_item).toString(),
			Integer.MAX_VALUE
		));
	}


Input:
    public List<SampleAcquisition> findMatchingSamples(AbstractAnnotationCriterion criterion, Study study) {
        if (!criterion.getEntityType().equals(EntityTypeEnum.SAMPLE)) {
            return null;
        } else {
            Criteria sampleAcquisitionCrit = getHibernateTemplate().
                                             getSessionFactory().
                                             getCurrentSession().
                                             createCriteria(SampleAcquisition.class);
            Criteria valuesCrit = sampleAcquisitionCrit.createCriteria("annotationCollection");
            valuesCrit.add(AbstractAnnotationCriterionHandler.create(criterion).translate());
            return sampleAcquisitionCrit.list();
        }
    }

Output:
    public List<SampleAcquisition> findMatchingSamples(AbstractAnnotationCriterion criterion, Study study) {
        if (!criterion.getEntityType().equals(EntityTypeEnum.SAMPLE.getValue())) {
            return null;
        } else {
            Criteria sampleAcquisitionCrit = getHibernateTemplate().
                                             getSessionFactory().
                                             getCurrentSession().
                                             createCriteria(SampleAcquisition.class);
            Criteria valuesCrit = sampleAcquisitionCrit.createCriteria("annotationCollection");
            valuesCrit.add(AbstractAnnotationCriterionHandler.create(criterion).translate());
            return sampleAcquisitionCrit.list();
        }
    }


Input:
	public boolean onCommand(CommandSender sender, Command cmnd, String arg2,
			String[] arg3) {
		if (sender instanceof ConsoleCommandSender) {
			MinePermit.log.info("[MinePermit] Sorry, commands cant be sent from console yet.");
			return true;
		}
		Player p = (Player) sender;
		if (arg3.length == 0) {
			return false;
		} else if (arg3[0].equalsIgnoreCase("view")) {
			Miner m = MinerManager.getMiner(p);
			int id;
			try {
				id = Integer.parseInt(arg3[1]);
			} catch (Exception e) {
				String s = "";
				Map<Integer, Long> tmp = m.getPermits();
				if(tmp.isEmpty()){
					p.sendMessage(ChatColor.YELLOW + "You don't own any permits!");
					return true;
				}
				for (int y = 0; y < tmp.size(); y++) {
					int n = (Integer) tmp.keySet().toArray()[y];
					p.sendMessage(ChatColor.DARK_GREEN + "" + n + ": " + m.getRemainingTime(n) + " minutes.");
				}
				return true;
			}
			if (!m.hasPermit(id)) {
				p.sendMessage(ChatColor.DARK_RED
						+ "You do not own a permit for " + id);
			} else {
				p.sendMessage(ChatColor.DARK_GREEN + "You have "
						+ m.getRemainingTime(id) + " minutes left.");
			}
			return true;
		} else if (arg3[0].equalsIgnoreCase("cost")) {
			int id;
			try {
				id = Integer.parseInt(arg3[1]);
			} catch (NumberFormatException e) {
				return false;
			}
			if (!Config.isPermitRequired(id)) {
				p.sendMessage(ChatColor.GRAY
						+ "A permit is not required for this item.");
				return true;
			}
			p.sendMessage(ChatColor.AQUA + "The cost for this item is "
					+ Config.getCost(id) + " dolars");
			return true;
		} else if (arg3[0].equalsIgnoreCase("buy")) {
			int id;
			try {
				id = Integer.parseInt(arg3[1]);
			} catch (NumberFormatException e) {
				return false;
			}
			if (!Config.isPermitRequired(id)) {
				p.sendMessage(ChatColor.GRAY
						+ "A permit is not required for this item.");
				return true;
			}
			if(MinerManager.getMiner(p).hasPermit(id)){
				p.sendMessage(ChatColor.AQUA + "You already have a permit for this!");
				return true;
			}
			if (!p.getInventory().contains(Config.currencyBlockID, Config.getCost(id))) {
				p.sendMessage(ChatColor.DARK_RED
						+ "You dont have enough money!");
				return true;
			}
			int cost = Config.getCost(id);
			while (cost > 0) {
				ItemStack x = p.getInventory().getItem(
						p.getInventory().first(Config.currencyBlockID));
				if (x.getAmount() < cost) {
					cost -= x.getAmount();
					x.setAmount(0);
				} else {
					x.setAmount(x.getAmount() - cost);
					cost = 0;
				}
			}
			MinerManager.getMiner(p).addPermit(id, Config.permitDuration);
			p.sendMessage(ChatColor.DARK_GREEN + "Permit purchased!");
			return true;
		}
		return false;
	}

Output:
	public boolean onCommand(CommandSender sender, Command cmnd, String arg2,
			String[] arg3) {
		if (sender instanceof ConsoleCommandSender) {
			MinePermit.log.info("[MinePermit] Sorry, commands cant be sent from console yet.");
			return true;
		}
		Player p = (Player) sender;
		if (arg3.length == 0) {
			return false;
		} else if (arg3[0].equalsIgnoreCase("view")) {
			Miner m = MinerManager.getMiner(p);
			int id;
			try {
				id = Integer.parseInt(arg3[1]);
			} catch (Exception e) {
				String s = "";
				Map<Integer, Long> tmp = m.getPermits();
				if(tmp.isEmpty()){
					p.sendMessage(ChatColor.YELLOW + "You don't own any permits!");
					return true;
				}
				for (int y = 0; y < tmp.size(); y++) {
					int n = (Integer) tmp.keySet().toArray()[y];
					p.sendMessage(ChatColor.DARK_GREEN + "" + n + ": " + m.getRemainingTime(n) + " minutes.");
				}
				return true;
			}
			if (!m.hasPermit(id)) {
				p.sendMessage(ChatColor.DARK_RED
						+ "You do not own a permit for " + id);
			} else {
				p.sendMessage(ChatColor.DARK_GREEN + "You have "
						+ m.getRemainingTime(id) + " minutes left.");
			}
			return true;
		} else if (arg3[0].equalsIgnoreCase("cost")) {
			int id;
			try {
				id = Integer.parseInt(arg3[1]);
			} catch (ArrayIndexOutOfBoundsException e1){
				return false;
			} catch (NumberFormatException e2) {
				return false;
			}
			if (!Config.isPermitRequired(id)) {
				p.sendMessage(ChatColor.GRAY
						+ "A permit is not required for this item.");
				return true;
			}
			p.sendMessage(ChatColor.AQUA + "The cost for this item is "
					+ Config.getCost(id) + " dolars");
			return true;
		} else if (arg3[0].equalsIgnoreCase("buy")) {
			int id;
			try {
				id = Integer.parseInt(arg3[1]);
			} catch (ArrayIndexOutOfBoundsException e1){
				return false;
			} catch (NumberFormatException e) {
				return false;
			}
			if (!Config.isPermitRequired(id)) {
				p.sendMessage(ChatColor.GRAY
						+ "A permit is not required for this item.");
				return true;
			}
			if(MinerManager.getMiner(p).hasPermit(id)){
				p.sendMessage(ChatColor.AQUA + "You already have a permit for this!");
				return true;
			}
			if (!p.getInventory().contains(Config.currencyBlockID, Config.getCost(id))) {
				p.sendMessage(ChatColor.DARK_RED
						+ "You dont have enough money!");
				return true;
			}
			int cost = Config.getCost(id);
			while (cost > 0) {
				ItemStack x = p.getInventory().getItem(
						p.getInventory().first(Config.currencyBlockID));
				if (x.getAmount() < cost) {
					cost -= x.getAmount();
					x.setAmount(0);
				} else {
					x.setAmount(x.getAmount() - cost);
					cost = 0;
				}
			}
			MinerManager.getMiner(p).addPermit(id, Config.permitDuration);
			p.sendMessage(ChatColor.DARK_GREEN + "Permit purchased!");
			return true;
		}
		return false;
	}


Input:
	public final void performJobUnit(final JobUnitContext context) {
		final BasicNetwork network = (BasicNetwork) context.getJobUnit();
		BufferedMLDataSet buffer = null;
		MLDataSet useTraining = this.training;
		if (this.training instanceof BufferedMLDataSet) {
			buffer = (BufferedMLDataSet) this.training;
			useTraining = buffer.openAdditional();
		}
		double error = Double.POSITIVE_INFINITY;
		for (int z = 0; z < this.weightTries; z++) {
			network.reset();
			final Propagation train = new ResilientPropagation(network,
					useTraining);
			final StopTrainingStrategy strat = new StopTrainingStrategy(0.001,
					5);
			train.addStrategy(strat);
			train.setNumThreads(1);
			for (int i = 0; (i < this.iterations) && !getShouldStop()
					&& !strat.shouldStop(); i++) {
				train.iteration();
			}
			error = Math.min(error, train.getError());
		}
		if (buffer != null) {
			buffer.close();
		}
		if (!getShouldStop()) {
			this.high = Math.max(this.high, error);
			this.low = Math.min(this.low, error);
			if (this.hidden1Size > 0) {
				int networkHidden1Count;
				int networkHidden2Count;
				if (network.getLayerCount() > 3) {
					networkHidden2Count = network.getLayerNeuronCount(1);
					networkHidden1Count = network.getLayerNeuronCount(2);
				} else {
					networkHidden2Count = 0;
					networkHidden1Count = network.getLayerNeuronCount(1);
				}
				int row, col;
				if (this.hidden2Size == 0) {
					row = networkHidden1Count - this.hidden.get(0).getMin();
					col = 0;
				} else {
					row = networkHidden1Count - this.hidden.get(0).getMin();
					col = networkHidden2Count - this.hidden.get(1).getMin();
				}
				if ((row < 0) || (col < 0)) {
					System.out.println("STOP");
				}
				this.results[row][col] = error;
			}
			this.currentTry++;
			updateBest(network, error);
			reportStatus(
					context,
					"Current: "
							+ PruneIncremental.networkToString(network)
							+ "; Best: "
							+ PruneIncremental
									.networkToString(this.bestNetwork));
		}
	}

Output:
	public final void performJobUnit(final JobUnitContext context) {
		final BasicNetwork network = (BasicNetwork) context.getJobUnit();
		BufferedMLDataSet buffer = null;
		MLDataSet useTraining = this.training;
		if (this.training instanceof BufferedMLDataSet) {
			buffer = (BufferedMLDataSet) this.training;
			useTraining = buffer.openAdditional();
		}
		double error = Double.POSITIVE_INFINITY;
		for (int z = 0; z < this.weightTries; z++) {
			network.reset();
			final Propagation train = new ResilientPropagation(network,
					useTraining);
			final StopTrainingStrategy strat = new StopTrainingStrategy(0.001,
					5);
			train.addStrategy(strat);
			train.setNumThreads(1);
			for (int i = 0; (i < this.iterations) && !getShouldStop()
					&& !strat.shouldStop(); i++) {
				train.iteration();
			}
			error = Math.min(error, train.getError());
		}
		if (buffer != null) {
			buffer.close();
		}
		if (!getShouldStop()) {
			this.high = Math.max(this.high, error);
			this.low = Math.min(this.low, error);
			if (this.hidden1Size > 0) {
				int networkHidden1Count;
				int networkHidden2Count;
				if (network.getLayerCount() > 3) {
					networkHidden2Count = network.getLayerNeuronCount(2);
					networkHidden1Count = network.getLayerNeuronCount(1);
				} else {
					networkHidden2Count = 0;
					networkHidden1Count = network.getLayerNeuronCount(1);
				}
				int row, col;
				if (this.hidden2Size == 0) {
					row = networkHidden1Count - this.hidden.get(0).getMin();
					col = 0;
				} else {
					row = networkHidden1Count - this.hidden.get(0).getMin();
					col = networkHidden2Count - this.hidden.get(1).getMin();
				}
				if ((row < 0) || (col < 0)) {
					System.out.println("STOP");
				}
				this.results[row][col] = error;
			}
			this.currentTry++;
			updateBest(network, error);
			reportStatus(
					context,
					"Current: "
							+ PruneIncremental.networkToString(network)
							+ "; Best: "
							+ PruneIncremental
									.networkToString(this.bestNetwork));
		}
	}


Input:
    public String showPart() {
        String part = request.getParameter("part");
        String result = "plain_text";
        String content = "";
        if ("code".equals(part)) {
            content = snippet.getCode();
            result = "code_part";
        } else if ("example".equals(part)) {
            content = snippet.getExample();
        }
        request.setAttribute("content", content);
        return result;
    }

Output:
    public String showPart() {
        String part = request.getParameter("part");
        String result = "plain_text";
        String content = "";
        if (snippet != null) {
            if ("code".equals(part)) {
                content = snippet.getCode();
                result = "code_part";
            } else if ("example".equals(part)) {
                content = snippet.getExample();
            }
        } else {
            content = "Snippet Not Found!";
        }
        request.setAttribute("content", content);
        return result;
    }


Input:
	protected void createData(LeafNode.DataProvider dataProvider)
	{
		data = new vtkPolyData();
		data.SetPoints(Utils.createPoints(dataProvider.getNodes()));
		vtkCellArray cells = Utils.createCells(dataProvider.getNbrOfVertices(),
			dataProvider.getVertices());
		data.SetVerts(cells);
		cells=Utils.createCells(dataProvider.getNbrOfLines(), dataProvider.getLines());
		data.SetLines(cells);
		cells=Utils.createCells(dataProvider.getNbrOfPolys(), dataProvider.getPolys());
		data.SetPolys(cells);
		if(LOGGER.isLoggable(Level.FINEST))
		{
			LOGGER.finest("Number of points : " + data.GetPoints().GetNumberOfPoints());
			LOGGER.finest("Number of vertices : " + data.GetVerts().GetNumberOfCells());
			LOGGER.finest("Number of lines : " + data.GetLines().GetNumberOfCells());
			LOGGER.finest("Number of polys : " + data.GetPolys().GetNumberOfCells());
			LOGGER.finest("vertex coherance : " + Utils.isMeshCoherent(dataProvider.getNodes(), dataProvider.getVertices()));
			LOGGER.finest("line coherance : " + Utils.isMeshCoherent(dataProvider.getNodes(), dataProvider.getLines()));
			LOGGER.finest("polys coherance : " + Utils.isMeshCoherent(dataProvider.getNodes(), dataProvider.getPolys()));
		}
		if(dataProvider.getNormals() == null)
			return;
		vtkPolyDataNormals algoNormals = new vtkPolyDataNormals();
		algoNormals.SetInput(data);
		algoNormals.SplittingOff();
		algoNormals.FlipNormalsOff();
		algoNormals.AutoOrientNormalsOff();
		algoNormals.ComputePointNormalsOn();
		algoNormals.Update();
		data = algoNormals.GetOutput();
		vtkPointData pointData = data.GetPointData();
		vtkFloatArray computedNormals = (vtkFloatArray) pointData.GetNormals();
		float[] javaComputedNormals = computedNormals.GetJavaArray();
		float[] javaNormals = dataProvider.getNormals();
		for(int i = 0 ; i < javaComputedNormals.length / 3 ; i += 3)
		{
			if(javaNormals[i] == 0. && javaNormals[i + 1] == 0. && javaNormals[i + 2] == 0.)
			{
				javaNormals[i] = javaComputedNormals[i];
				javaNormals[i + 1] = javaComputedNormals[i  + 1];
				javaNormals[i + 2] = javaComputedNormals[i + 2];
			}
		}
		vtkFloatArray normals = new vtkFloatArray();
		normals.SetNumberOfComponents(3);
		normals.SetJavaArray(javaNormals);
		pointData.SetNormals(normals);
	}

Output:
	protected void createData(LeafNode.DataProvider dataProvider)
	{
		data = new vtkPolyData();
		data.SetPoints(Utils.createPoints(dataProvider.getNodes()));
		vtkCellArray cells = Utils.createCells(dataProvider.getNbrOfVertices(),
			dataProvider.getVertices());
		data.SetVerts(cells);
		cells=Utils.createCells(dataProvider.getNbrOfLines(), dataProvider.getLines());
		data.SetLines(cells);
		cells=Utils.createCells(dataProvider.getNbrOfPolys(), dataProvider.getPolys());
		data.SetPolys(cells);
		if(LOGGER.isLoggable(Level.FINEST))
		{
			LOGGER.finest("Number of points : " + data.GetPoints().GetNumberOfPoints());
			LOGGER.finest("Number of vertices : " + data.GetVerts().GetNumberOfCells());
			LOGGER.finest("Number of lines : " + data.GetLines().GetNumberOfCells());
			LOGGER.finest("Number of polys : " + data.GetPolys().GetNumberOfCells());
			LOGGER.finest("vertex coherance : " + Utils.isMeshCoherent(dataProvider.getNodes(), dataProvider.getVertices()));
			LOGGER.finest("line coherance : " + Utils.isMeshCoherent(dataProvider.getNodes(), dataProvider.getLines()));
			LOGGER.finest("polys coherance : " + Utils.isMeshCoherent(dataProvider.getNodes(), dataProvider.getPolys()));
		}
		if(dataProvider.getNormals() == null)
			return;
		vtkPolyDataNormals algoNormals = new vtkPolyDataNormals();
		algoNormals.SetInput(data);
		algoNormals.SplittingOff();
		algoNormals.FlipNormalsOff();
		algoNormals.AutoOrientNormalsOff();
		algoNormals.ComputePointNormalsOn();
		algoNormals.Update();
		data = algoNormals.GetOutput();
		vtkPointData pointData = data.GetPointData();
		vtkFloatArray computedNormals = (vtkFloatArray) pointData.GetNormals();
		float[] javaComputedNormals = computedNormals.GetJavaArray();
		float[] javaNormals = dataProvider.getNormals();
		for(int i = 0 ; i < javaComputedNormals.length ; i+= 3)
		{
			if(javaNormals[i] == 0. && javaNormals[i + 1] == 0. && javaNormals[i + 2] == 0.)
			{
				javaNormals[i] = javaComputedNormals[i];
				javaNormals[i + 1] = javaComputedNormals[i  + 1];
				javaNormals[i + 2] = javaComputedNormals[i + 2];
			}
		}
		vtkFloatArray normals = new vtkFloatArray();
		normals.SetNumberOfComponents(3);
		normals.SetJavaArray(javaNormals);
		pointData.SetNormals(normals);
	}


Input:
	public void create() {
		super.create();
		Display.getDefault().asyncExec(new Runnable() {
			@Override
			public void run() {
				GridData gridData = new GridData();
				gridData.grabExcessHorizontalSpace = true;
				gridData.widthHint = 400;
				gridData.heightHint = 50;
				Composite infoComposite = new Composite(parentComposite, SWT.NULL);
				infoComposite.setLayoutData(gridData);
				infoComposite.setLayout(new FillLayout(SWT.VERTICAL));
				final Slider pValueSlider = new Slider(infoComposite, SWT.HORIZONTAL);
				final Label pValueLabel = new Label(infoComposite, SWT.NULL);
				pValueLabel.setText("p-Value: " + Float.toString(pValue));
				pValueSlider.setMinimum(0);
				pValueSlider.setMaximum((int) (histogram.getMax() * 10000));
				System.out.println("Largest: " +histogram.getMax());
				pValueSlider.setIncrement(1);
				pValueSlider.setPageIncrement(5);
				pValueSlider.setSelection((int) (pValue * 10000));
				pValueSlider.addMouseListener(new MouseAdapter() {
					@Override
					public void mouseUp(MouseEvent e) {
						pValue = (float) pValueSlider.getSelection() / 10000.00f;
						System.out.println(pValue);
						pValueLabel.setText("p-Value: " + Float.toString(pValue));
						parentComposite.pack();
						parentComposite.layout();
						createVADelta();
						filter.updateFilterManager();
					}
				});
				Composite histoComposite = new Composite(parentComposite, SWT.NULL);
				histoComposite.setLayout(new FillLayout(SWT.VERTICAL));
				gridData.heightHint = 300;
				gridData.grabExcessVerticalSpace = true;
				histoComposite.setLayoutData(gridData);
				RcpGLHistogramView histogramView = new RcpGLHistogramView();
				histogramView.setDataDomain(DataDomainManager.get().getDataDomain(
						"org.caleydo.datadomain.genetic"));
				histogramView.createDefaultSerializedView();
				histogramView.createPartControl(histoComposite);
				((GLHistogram) (histogramView.getGLView())).setHistogram(histogram);
				GeneralManager.get().getViewGLCanvasManager()
						.registerGLCanvasToAnimator(histogramView.getGLCanvas());
				Monitor primary = parentComposite.getDisplay().getPrimaryMonitor();
				Rectangle bounds = primary.getBounds();
				Rectangle rect = parentComposite.getBounds();
				int x = bounds.x + (bounds.width - rect.width) / 2;
				int y = bounds.y + (bounds.height - rect.height) / 2;
				parentComposite.setLocation(x, y);
				((Shell) parentComposite).open();
			}
		});
	}

Output:
	public void create() {
		super.create();
		Display.getDefault().asyncExec(new Runnable() {
			@Override
			public void run() {
				GridData gridData = new GridData();
				gridData.grabExcessHorizontalSpace = true;
				gridData.widthHint = 400;
				gridData.heightHint = 50;
				Composite infoComposite = new Composite(parentComposite, SWT.NULL);
				infoComposite.setLayoutData(gridData);
				infoComposite.setLayout(new FillLayout(SWT.VERTICAL));
				final Slider pValueSlider = new Slider(infoComposite, SWT.HORIZONTAL);
				final Label pValueLabel = new Label(infoComposite, SWT.NULL);
				pValue = histogram.getMax();
				pValueLabel.setText("p-Value: " + Float.toString(pValue));
				pValueSlider.setMinimum(0);
				pValueSlider.setMaximum((int) (histogram.getMax() * 10000));
				pValueSlider.setIncrement(1);
				pValueSlider.setPageIncrement(5);
				pValueSlider.setSelection((int) (pValue * 10000));
				pValueSlider.addMouseListener(new MouseAdapter() {
					@Override
					public void mouseUp(MouseEvent e) {
						pValue = (float) pValueSlider.getSelection() / 10000.00f;
						System.out.println(pValue);
						pValueLabel.setText("p-Value: " + Float.toString(pValue));
						parentComposite.pack();
						parentComposite.layout();
						createVADelta();
						filter.updateFilterManager();
					}
				});
				Composite histoComposite = new Composite(parentComposite, SWT.NULL);
				histoComposite.setLayout(new FillLayout(SWT.VERTICAL));
				gridData.heightHint = 300;
				gridData.grabExcessVerticalSpace = true;
				histoComposite.setLayoutData(gridData);
				RcpGLHistogramView histogramView = new RcpGLHistogramView();
				histogramView.setDataDomain(DataDomainManager.get().getDataDomain(
						"org.caleydo.datadomain.genetic"));
				histogramView.createDefaultSerializedView();
				histogramView.createPartControl(histoComposite);
				((GLHistogram) (histogramView.getGLView())).setHistogram(histogram);
				GeneralManager.get().getViewGLCanvasManager()
						.registerGLCanvasToAnimator(histogramView.getGLCanvas());
				Monitor primary = parentComposite.getDisplay().getPrimaryMonitor();
				Rectangle bounds = primary.getBounds();
				Rectangle rect = parentComposite.getBounds();
				int x = bounds.x + (bounds.width - rect.width) / 2;
				int y = bounds.y + (bounds.height - rect.height) / 2;
				parentComposite.setLocation(x, y);
				((Shell) parentComposite).open();
			}
		});
	}