text stringlengths 3 1.18M |
|---|
package pt.training.maven.jee.web;
import javax.annotation.PostConstruct;
import javax.enterprise.inject.Model;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
public @Model class HelloWorld
{
public static void main(String[] args) {
System.out.println("widok... |
package pt.training.maven.jee.ejb;
import javax.annotation.PostConstruct;
import javax.enterprise.inject.Model;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.Email;
import org.hibernate.v... |
/**
* Copyright 2011 Joao Miguel Pereira
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* Copyright 2011 Joao Miguel Pereira
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* Copyright 2011 Joao Miguel Pereira
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* Copyright 2011 Joao Miguel Pereira
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
package eu.jpereira.trainings.designpatterns.creational.singleton;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import eu.jpereira.trainings.designpatterns.creational.singleton.crwaling.CannotCrawlException;
import eu.jpereira.trainings.designpatterns.creational.singleton.crwaling.DummySit... |
package eu.jpereira.trainings.designpatterns.creational.singleton;
public enum SingleJAVA5 {
INSTANCE
}
|
package sk.upjs.ics.fca;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
/**
* Trieda, ktora sa stara o generovanie fuzzy kontextov podla fill ratia -
* percentualne zastupenie nenulovych hodnot v kontexte
*
* @author ... |
package sk.upjs.ics.fca.concepts;
import java.util.List;
/**
* Trieda, ktora reprezentuje koncept, ktory pozostava z extentu a intentu
* (uzavretych mnozin)
*
* @author Patrik Mihalcin
*/
public class Concept {
private List<Double> extent;
private List<Double> intent;
/**
* Konstruktor ak... |
package sk.upjs.ics.fca.concepts;
import java.util.LinkedList;
import java.util.ListIterator;
import java.util.NoSuchElementException;
/**
* Trieda, ktora riesi vsetky logicke operacie
*
* @author Patrik Mihalcin
*/
public class Logic {
private LinkedList<Double> truthDegrees = new LinkedList<Double>();
priva... |
package sk.upjs.ics.fca.concepts;
/**
* Typ uzaveru
* @author Patrik Mihalcin
*/
public enum ClosureType {
UP_DOWN, DOWN_UP;
}
|
package sk.upjs.ics.fca.concepts;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
/**
* Trieda reprezentuje kontext - tabulka splnajuca objektovo-at... |
package sk.upjs.ics.fca.concepts;
/**
* Trieda atribut, ktora uklada hodnotu a index atributu
*
* @author Patrik Mihalcin
*/
public class Attribute implements Comparable<Attribute> {
private Integer index;
private Double value;
/**
* Konstruktor akceptuje index a hodnotu atributu
*
* @par... |
package sk.upjs.ics.fca.concepts;
/**
* Trieda objekt, ktora uklada hodnotu a index objektu
*
* @author Patrik Mihalcin
*/
public class Objekt implements Comparable<Objekt> {
private Integer index;
private Double value;
/**
* Konstruktor akceptuje index a hodnotu objektu
*
* @param index
... |
package sk.upjs.ics.fca.concepts;
/**
* Vynimka, ktora nastane pri aplikovani kontextovych operatoroch
*
* @author Patrik Mihalcin
*/
public class ContextOperatorException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public ContextOperatorException(i... |
package sk.upjs.ics.fca.bonds.application;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
import sk.upjs.ics.fca.concepts.ClosureType;
import sk.upjs.ics.fca.concepts.Concept;
import... |
package sk.upjs.ics.fca.bonds.efficient;
/**
* Typy ireducibilnych prvkov
*
* @author Patrik Mihalcin
*/
public enum IrreducibleType {
INFIMUM, SUPREMUM;
}
|
package sk.upjs.ics.fca.bonds.efficient;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import sk.upjs.ics.fca.concepts.ClosureType;
import sk.upjs.ics.fca.concepts.Concept;
import sk.upjs.ics.fca.concepts.C... |
package sk.upjs.ics.fca.bonds.efficient;
/**
* Vynimka, ktora sa vyskytne pri porovnavani multifunkcii
* @author Patrik Mihalcin
*/
public class MultifunctionComparisonException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public MultifunctionComparison... |
package sk.upjs.ics.fca.bonds.bruteforce;
import java.util.ArrayList;
import java.util.List;
/**
* Tato trieda sa stara o generovanie variacii bez opakovania
*
* @author Patrik Mihalcin
*/
public class VariationsWithoutRepetition {
private int[] array;
private int n;
private List<List<List<Double... |
package sk.upjs.ics.fca.bonds.bruteforce;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import sk.upjs.ics.fca.concepts.ClosureType;
import sk.upjs.ics.fca.concepts.Context;
/**
* Tato trieda riesi generovanie put medzi dvoma kontextami brute force
*... |
package sk.upjs.ics.fca;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.List;
import org.junit.Test;
import sk.upjs.ics.fca.bonds.application.AlmightyAlgorithm;
/**
* Tento JUnit test testuje vygenero... |
package dataProviders;
public class GenerateSQL {
private String statement = "";
public void addTable(String tableName) {
statement += "\nCREATE TABLE " + tableName
+ " (pid_" + tableName + " INT NOT NULL ,PRIMARY KEY (pid_"
+ tableName + ") );";
}
public void addProperty(String tableName,S... |
package dataProviders;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import javax.swing.ComboBoxModel;
import javax.swing.event.ListDataListener;
import wrappers.Entity;
import wrappers.Link;
public class LinkComboBox implements ComboBoxModel{
S... |
package dataProviders;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import javax.swing.ComboBoxModel;
import javax.swing.event.ListDataListener;
import wrappers.Entity;
public class EntityComboBox implements ComboBoxModel{
Set<ListDataListener> ldl = new HashSet<ListDataL... |
package dataProviders;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import javax.swing.event.TableModelListener;
import javax.swing.table.TableModel;
import wrappers.DataType;
import wrappers.Property;
public class PropertyTableModel implements TableModel {
Set<Table... |
package dataProviders;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import javax.swing.ComboBoxModel;
import javax.swing.event.ListDataListener;
import wrappers.*;
public class DataTypeComboBox implements ComboBoxModel{
Set<ListDataListener> ldl = new HashSet<ListDataList... |
package aisp;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import wrappers.DataType;
import wrappers.Entity;
import wrappers.Link;
import wrappe... |
/*
* AisPView.java
*/
package aisp;
import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import wrappers.*;
import dataProviders.*;
impor... |
/*
* AisPAboutBox.java
*/
package aisp;
import org.jdesktop.application.Action;
public class AisPAboutBox extends javax.swing.JDialog {
public AisPAboutBox(java.awt.Frame parent) {
super(parent);
initComponents();
getRootPane().setDefaultButton(closeButton);
}
@Action public v... |
/*
* AisPApp.java
*/
package aisp;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;
/**
* The main class of the application.
*/
public class AisPApp extends SingleFrameApplication {
/**
* At startup create and show the main frame of the application.
... |
package wrappers;
public class Link {
private int id,source, target, sourceType, targetType;
public Link(int id, int source, int target, int sourceType, int targetType) {
this.setId(id);
this.setSource(source);
this.setTarget(target);
this.setSourceType(sourceType);
this.setTargetType(targetType);... |
package wrappers;
public class Property {
private int propertyId, entityId, type;
private String name;
public Property(int propertyId,int entityId, String name, int type) {
this.setPropertyId(propertyId);
this.setEntityId(entityId);
this.setName(name);
this.setType(type);
}
public int getEnt... |
package wrappers;
public class DataType {
private int dataTypeId;
private String sqlType, erdType;
public DataType(int id, String sqlType, String erdType) {
this.setDataTypeId(id);
this.setSqlType(sqlType);
this.setErdType(erdType);
}
public String getSqlType() {
return sqlType;
}
publi... |
package wrappers;
public class Entity {
private int id;
private String name;
public Entity(int id, String name) {
this.setId(id);
this.setName(name);
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public vo... |
package tester;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import src.Bond;
import src.BondsBruteForce;
import src.ClosureType;
import src.Context;
public class BondTester {
private static List<int[]> allVariations = new ArrayList<int[]>();
public static void m... |
package tester;
import java.util.List;
import java.util.Map.Entry;
import src.ClosureType;
import src.Concept;
import src.Context;
/**
*
* @author Patrik Mihalcin
*/
public class ComputingLatticeOfAllFixpointsOfFuzzyClosureOperatorTester {
public static void main(String[] args) {
Double[][] rel... |
package tester;
import java.util.ArrayList;
//import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
//import src.Bond;
//import src.BondsBruteForce;
import src.BondsViaUpperNeigbors;
import src.ClosureType;
import src.Concept;
import src.MultifunctionComparisonExcep... |
package tester;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import src.ClosureType;
import src.Concept;
import src.Context;
public class ScifiExampleTester {
public static void main(String[] args) {
// studenti po riadkoch - objekty B1
// predmety po stlpcoch - atri... |
package tester;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import src.BondsViaUpperNeigbors;
import src.ClosureType;
import src.Context;
public class BondUpperNeighborsTester {
public static void... |
package tester;
import java.util.Arrays;
import java.util.List;
import src.Concept;
/**
*
* @author Patrik Mihalcin
*/
public class ContextTester {
public static void main(String[] args) {
List<Double> A_C0 = Arrays.asList(1.0, 1.0, 1.0);
List<Double> B_C0 = Arrays.asList(0.0, 0.0, 0.5, 0.5, 0.5);
Li... |
package src;
//import java.util.ArrayList;
//import java.util.Collections;
import java.util.List;
/**
*
* @author Patrik Mihalcin
*/
public class Concept implements Comparable<Concept> {
// private static final int SUBKONCEPT = -1;
// private static final int SUPERKONCEPT = 1;
private List<Double> exte... |
package src;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Patrik Mihalcin
*/
public class BondsBruteForce {
private Context c1;
private Context c2;
private List<List<Double>> extentsC1;
private List<List<Double>> intentsC2;
private List<List<List<Double>>> extentVariatio... |
package src;
import java.util.LinkedList;
import java.util.ListIterator;
import java.util.NoSuchElementException;
/**
*
* @author Patrik Mihalcin
*/
public class Logic {
private LinkedList<Double> truthDegrees = new LinkedList<Double>();
private Integer logicDegree = 2;
public Logic(Integer logicDegree) {
... |
package src;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Scanner;
import java.util.Set;
public class AlmightyAlgorithm {
privat... |
package src;
/**
*
* @author Patrik Mihalcin
*/
public enum ClosureType {
UP_DOWN, DOWN_UP;
}
|
package src;
import java.util.ArrayList;
import java.util.List;
public class VariationsWithoutRepetition {
private int[] array;
private int n;
private List<List<List<Double>>> allVariations = new ArrayList<List<List<Double>>>();
private List<List<Double>> fuzzySets = new ArrayList<List<Double>>();
... |
package src;
import java.util.List;
/**
*
* @author Patrik Mihalcin
*/
public class Bond {
private List<List<Double>> objectsIntentsAssignment;
private List<List<Double>> attributesExtentsAssignment;
public Bond(List<List<Double>> objectsIntentsAssignment,
List<List<Double>> attributesExtents... |
package src;
public enum IrreducibleType {
INFIMUM, SUPREMUM;
}
|
package src;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
public class Numbers {
/****************************************************************
* Function: allCombinations
* Inputs: @param n;
* The size of the given set
* Inputs: @... |
package src;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
/**
*
* @author Patrik Mihalcin
*/
public c... |
package src;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class BondsViaUpperNeigbors {
private Context c1 = null;
private Context c2 = null;
private Map<List<List<Double>>, Map<Character, ... |
package src;
import java.util.Arrays;
public class GeneratorWithoutRepetition {
/**
* Pole v ktorom generujeme variacie
*/
private int[] pole;
/**
* Pole, v ktorom uchovavame, ci sa hodnota i (i=1..n) nachadza v poli pole.
*/
private boolean[] uzBolo;
/**
*... |
package src;
/**
*
* @author Patrik Mihalcin
*/
public class Attribute implements Comparable<Attribute> {
private Integer index;
private Double value;
public Attribute(Integer index, Double value) {
this.index = index;
this.value = value;
}
public Double getHodnota() {
return value;
}
public Intege... |
package src;
/**
*
* @author Patrik Mihalcin
*/
public class Objekt implements Comparable<Objekt> {
private Integer index;
private Double value;
public Objekt(Integer index, Double value) {
this.index = index;
this.value = value;
}
public Integer getIndex() {
return index;
}
pub... |
package src;
public class MultifunctionComparisonException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public MultifunctionComparisonException(String message) {
super(message);
}
}
|
package src;
public class ContextOperatorException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public ContextOperatorException(int elementsCount, int fuzzySetSize) {
super(String.format("Context operator is not applicable on fuzzy set with size %d and num... |
package src;
import java.util.Arrays;
public class GeneratorWithRepetition {
/**
* Pole v ktorom generujeme variacie
*/
private int[] pole;
/**
* Urcuje velkost mnoziny, z ktorej vytvarame variacie bez opakovania ({1,
* ..., n})
*/
private int n;
private vo... |
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.Collections;
public class Generator {
private int numberOfPatterns;
private int numberOfInputUnits;
private int numberOfOutputUnits;
... |
public class Main {
public static void main(String[] args) {
Generator generator = new Generator(20, 3, 1);
generator.generate();
}
} |
import java.io.File;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import sk.upjs.gursky.bplustree.BPTree;
public class Generator {
public st... |
import java.nio.ByteBuffer;
import sk.upjs.gursky.bplustree.BPObject;
public class Zaznam implements BPObject<Kluc, Zaznam> {
private static final long serialVersionUID = -3849588860748391617L;
String meno, priezvisko;
int vek, plat;
public Zaznam() {}
public Kluc getKey() {
return new K... |
/*
* sk.upjs.gursky.bplustree.BPNode.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foun... |
/*
* sk.upjs.gursky.bplustree.BPKey.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Found... |
/*
* sk.upjs.gursky.bplustree.BPLeafNode.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... |
/*
* sk.upjs.gursky.bplustree.BPTree.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foun... |
/*
* sk.upjs.gursky.bplustree.KeyOffsetPair.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foun... |
/*
* sk.upjs.gursky.bplustree.package-info.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Found... |
/*
* sk.upjs.gursky.bplustree.ManipulationWithClosedTreeException.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* ... |
package sk.upjs.gursky.bplustree.entries;
import java.io.Serializable;
import sk.upjs.gursky.bplustree.BPKeyString;
/**
* This is an example of the body (for anonymous class - the best way to set the maximal length of the strings)
* that represents a String like a VARCHAR(50) in databases
* methods getS... |
package sk.upjs.gursky.bplustree.entries;
import java.io.Serializable;
import java.nio.ByteBuffer;
import sk.upjs.gursky.bplustree.BPKey;
public class BPKeyDouble implements BPKey<BPKeyDouble>, Serializable
{
private static final long serialVersionUID = -6511749774122198926L;
private double key;
... |
/*
* sk.upjs.gursky.bplustree.entries.package-info.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwa... |
package sk.upjs.gursky.bplustree.entries;
import java.io.Serializable;
import java.nio.ByteBuffer;
import sk.upjs.gursky.bplustree.BPKey;
public class BPKeyInt implements BPKey<BPKeyInt>, Serializable
{
private static final long serialVersionUID = 330263900419603008L;
private int key;
public BPK... |
package sk.upjs.gursky.bplustree.entries;
import java.io.Serializable;
import java.nio.ByteBuffer;
import sk.upjs.gursky.bplustree.BPKey;
public class BPKeyLong implements BPKey<BPKeyLong>, Serializable
{
private static final long serialVersionUID = 809951016755954693L;
private long key;
public ... |
package sk.upjs.gursky.bplustree.entries;
import java.io.Serializable;
import java.nio.ByteBuffer;
import sk.upjs.gursky.bplustree.BPObject;
public class BPObjectIntDouble implements BPObject<BPKeyInt,BPObjectIntDouble>, Serializable
{
private static final long serialVersionUID = 7740691381498020504L;
... |
/*
* sk.upjs.gursky.bplustree.BPKeyString.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software... |
/*
* sk.upjs.gursky.bplustree.BPObject.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Fo... |
/*
* sk.upjs.gursky.bplustree.BPInnerNode.java ver 1.0, February 5th 2009
*
* Copyright 2009 Peter Gursky. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software... |
import java.nio.ByteBuffer;
import sk.upjs.gursky.bplustree.BPObject;
public class NeklastrovanyZaznam implements BPObject<Kluc, NeklastrovanyZaznam> {
private static final long serialVersionUID = 62515777079921495L;
private long offset;
private String priezvisko;
public NeklastrovanyZaznam() {
}
@Overr... |
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import sk.upjs.gursky.bplustree.BPTree;
p... |
import java.nio.ByteBuffer;
import sk.upjs.gursky.bplustree.BPKey;
public class Kluc implements BPKey<Kluc> {
private static final long serialVersionUID = 2784314044852195831L;
private String kluc;
public Kluc() {}
public Kluc(String kluc) {
this.kluc = kluc;
}
public int getSize()... |
import java.io.File;
import sk.upjs.gursky.bplustree.BPTree;
import sk.upjs.gursky.bplustree.entries.BPKeyInt;
import sk.upjs.gursky.bplustree.entries.BPObjectIntDouble;
public class TestBPTree {
public static void main(String[] args) throws Exception {
BPTree<BPKeyInt, BPObjectIntDouble> tree = n... |
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import sk.upjs.gursky.bplustree.BPTree;
public class KlastrovanyBPT {
private BPTree... |
public class Mesto {
public double x, y;
public int update, pocetVyberov;
public Mesto(double x,double y){
this.x = x;
this.y = y;
update = 0;
pocetVyberov = 0;
}
} |
import java.applet.Applet;
import java.awt.Color;
import java.awt.Event;
import java.awt.Font;
import java.awt.Graphics;
public class TravelingSalesmanProblem extends Applet implements Runnable {
private static final long serialVersionUID = 2652288922506829333L;
private int pocetMiest = 5;
private int pocetVystu... |
public class VystupnyNeuron {
public double x, y;
public double wx, wy;
public int update, choose;
public VystupnyNeuron(double x, double y) {
this.x = x;
this.y = y;
this.wx = Math.random();
this.wy = Math.random();
update = 0;
choose = 0;
}
public double vzdialenost(VystupnyNeuron c) {... |
package encounter.character;
import com.google.appengine.api.users.User;
public class PlayerCharacter {
public static PlayerCharacter importCharacterSheet(String xmlDocument) {
// TODO parse code into important bits. Persist important bits. Return new player character.
return new PlayerCharacter(null, "... |
package encounter;
import java.io.IOException;
import javax.servlet.http.*;
import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
@SuppressWarnings("serial")
public class EncounterServlet extends HttpServlet ... |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ContentRes... |
package cx.hell.android.pdfview;
import java.io.File;
import java.util.ArrayList;
import android.content.Context;
import android.content.SharedPreferences;
public class Recent extends ArrayList<String> {
/**
* Default serial version identifier because base class is serializable.
*/
private stati... |
package cx.hell.android.pdfview;
import android.app.Activity;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.content.pm.ActivityInfo;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundl... |
package cx.hell.android.pdfview;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
/**
* Displays "About..." info.
*/
public class AboutPDFViewActivity extends Activity {
... |
package cx.hell.android.pdfview;
// #ifdef pro
// import java.lang.reflect.InvocationTargetException;
// import java.lang.reflect.Method;
//
// import android.util.Log;
// import android.view.View;
// #endif
/**
* Find newer methods using reflection and call them if found.
*/
final public class AndroidReflections ... |
package cx.hell.android.pdfview;
import java.io.IOException;
import java.io.InputStream;
import android.util.Log;
import android.widget.ProgressBar;
public class StreamUtils {
public static byte[] readBytesFully(InputStream i) throws IOException {
return StreamUtils.readBytesFully(i, 0, null);
}
... |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import androi... |
package cx.hell.android.pdfview;
import android.graphics.Bitmap;
public class BitmapCacheValue {
public Bitmap bitmap;
/* public long millisAdded; */
public long millisAccessed;
public long priority;
public BitmapCacheValue(Bitmap bitmap, long millisAdded, long priority) {
this.bitmap = bitmap;
... |
package cx.hell.android.pdfview;
/**
* High level user-visible application exception.
*/
public class ApplicationException extends Exception {
private static final long serialVersionUID = 3168318522532680977L;
public ApplicationException(String message) {
super(message);
}
}
|
package cx.hell.android.pdfview;
// #ifdef pro
//
// import java.text.SimpleDateFormat;
// import java.util.ArrayList;
// import java.util.Collections;
// import java.util.Date;
// import java.util.HashMap;
// import java.util.Iterator;
// import java.util.List;
// import java.util.Map;
//
// import android.content.... |
package cx.hell.android.pdfview;
import android.content.SharedPreferences;
import android.view.KeyEvent;
public class Actions {
public int zoom;
public int longZoom;
public int upDown;
public int volume;
public int leftRight;
public int rightUpDown;
public int topBottomTap;
public static final ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.