text stringlengths 3 1.18M |
|---|
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: PerformanceSupport.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.performance;
import org.dom4j.samples.SAXDemo;
... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: ParseLoop.java,v 1.1 2008-05-24 21:28:32 imaman Exp $
*/
package org.dom4j.samples.performance;
import java.io.BufferedReader;
import java.i... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: ParseTest.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.performance;
import java.io.BufferedReader;
import java.i... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: PullParseTest.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.performance;
import java.io.BufferedReader;
import ja... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: ToTextTest.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.performance;
import java.io.StringWriter;
import org.d... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: Task.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.performance;
/**
* An interface for some task which may throw... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: VisitorDemo2.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import org.dom4j.Document;
import org.dom4j.DocumentF... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: SongFilter.java,v 1.1 2008-05-24 21:28:38 imaman Exp $
*/
package org.dom4j.samples.rule;
import java.net.URL;
import org.dom4j.Document;
... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: XSLTDemo.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import javax.xml.transform.Source;
import javax.xml.trans... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: JTidyDemo.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import java.io.BufferedInputStream;
import java.io.File;... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: LargeDocumentDemo.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import org.dom4j.Document;
import org.dom4j.Elem... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: LinkChecker.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import java.util.Iterator;
import java.util.List;
i... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: WriterDemo.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.jaxp;
import org.dom4j.samples.SAXDemo;
import java.io... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: PrettyPrintDemo.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.jaxp;
import org.dom4j.samples.SAXDemo;
import ja... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: RoundTripDemo.java,v 1.1 2008-05-24 21:28:31 imaman Exp $
*/
package org.dom4j.samples.jaxp;
import org.dom4j.samples.SAXDemo;
import java... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: RoundTripDemo.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import java.io.StringReader;
import java.io.StringWr... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: XPathTool.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import java.io.BufferedReader;
import java.io.InputStrea... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: PullParserDemo.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import org.dom4j.Document;
import org.dom4j.io.XPPR... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: VisitorDemo.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import org.dom4j.Attribute;
import org.dom4j.CDATA;
i... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: HTMLWriterDemo.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import org.dom4j.io.HTMLWriter;
import org.dom4j.io... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: PurchaseOrderHandler.java,v 1.1 2008-05-24 21:28:39 imaman Exp $
*/
package org.dom4j.samples.jaxb;
import java.text.SimpleDateFormat;
imp... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: JAXBDemo.java,v 1.1 2008-05-24 21:28:39 imaman Exp $
*/
package org.dom4j.samples.jaxb;
import java.io.File;
import java.math.BigDecimal;
i... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: PurchaseOrderDateModifier.java,v 1.1 2008-05-24 21:28:39 imaman Exp $
*/
package org.dom4j.samples.jaxb;
import java.util.Calendar;
import... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: XSLTNativeDOMDemo.java,v 1.1 2008-05-24 21:28:40 imaman Exp $
*/
package org.dom4j.samples.dom;
import org.dom4j.samples.XSLTDemo;
import ... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: SAXDOMDemo.java,v 1.1 2008-05-24 21:28:40 imaman Exp $
*/
package org.dom4j.samples.dom;
import org.dom4j.samples.AbstractDemo;
import org... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: NativeDOMDemo.java,v 1.1 2008-05-24 21:28:40 imaman Exp $
*/
package org.dom4j.samples.dom;
import org.dom4j.samples.AbstractDemo;
import ... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: RoundTripDemo.java,v 1.1 2008-05-24 21:28:40 imaman Exp $
*/
package org.dom4j.samples.dom;
import org.dom4j.samples.SAXDemo;
import org.d... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: DOMDemo.java,v 1.1 2008-05-24 21:28:40 imaman Exp $
*/
package org.dom4j.samples.dom;
import org.dom4j.samples.AbstractDemo;
import javax.... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: XPathValueOf.java,v 1.1 2008-05-24 21:28:29 imaman Exp $
*/
package org.dom4j.samples;
import org.dom4j.Document;
import org.dom4j.DocumentH... |
/*
* Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: SimpleAppletDemo.java,v 1.1 2008-05-24 21:28:40 imaman Exp $
*/
package org.dom4j.samples.applets;
import java.applet.Applet;
import java.awt.G... |
/*
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*/
package org.dom4j;
import junit.framework.TestCase;
import java.io.File;
import org.apache.xalan.processor.TransformerFactoryImpl;
import org.apach... |
/*
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*/
package org.dom4j.datatype;
import java.util.Iterator;
import java.util.List;
import org.dom4j.AbstractTestCase;
import org.dom4j.Attribute;
import ... |
package technion.gc.web;
import java.util.ArrayList;
import org.apache.log4j.Logger;
import technion.gc.api.interfaces.AbstractGraphNode;
public class WebGraphNode extends AbstractGraphNode {
private int depth = 1;
private int maximumDepth = 1;
private boolean domainConsistent = false;
private St... |
package technion.gc.web;
import technion.gc.api.interfaces.AbstractGraphCrawlerFactory;
import technion.gc.api.interfaces.IGraphNodeAction;
import technion.gc.api.interfaces.ITraversalStrategy;
public class WebGraphCrawlerFactory extends AbstractGraphCrawlerFactory {
@Override
public ITraversalStrategy cr... |
package technion.gc.web;
import org.apache.log4j.Logger;
import technion.gc.api.implementation.interfaces.IGraphCrawler;
public class Main {
/*
* TODO: summing up the current problems
* need to add logs, remove prints,
*/
private static Logger log = Logger.getLogger(Main.class);
/**
* @param args
... |
package technion.gc.web;
import java.io.IOException;
import java.util.ArrayList;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import technion.gc.api.interfaces.AbstractGraphNode;
import technion.gc.api.interfaces.IGraphNodeActio... |
package technion.gc.web;
import java.util.ArrayList;
import technion.gc.api.interfaces.AbstractGraphNode;
import technion.gc.api.interfaces.IGraph;
import technion.gc.api.interfaces.ITraversalStrategy;
public class WebTraversalStrategy implements ITraversalStrategy {
private IGraph graph;
private Abstrac... |
package technion.gc.web;
import technion.gc.api.interfaces.AbstractGraphNode;
import technion.gc.api.interfaces.IGraph;
public class WebGraph implements IGraph {
private AbstractGraphNode root;
@Override
public AbstractGraphNode getRoot() {
return root;
}
@Override
public void setRoot(Abstract... |
package technion.gc.api.interfaces;
/** Traversal Strategy Interface. Implement to use as your
* traversal strategy for Graph Crawler.
*
*/
public interface ITraversalStrategy {
/** Sets Graph to be used by the Traversal Strategy.
*
* @param graph The Graph
*/
public void setGraph(IGraph graph);
/** Retu... |
package technion.gc.api.interfaces;
import technion.gc.api.implementation.GraphCrawler;
import technion.gc.api.implementation.interfaces.IGraphCrawler;
/** Inherit this factory to create different Graph Crawlers
* with different Traversal Strategies and Graph Node Actions
*/
public abstract class AbstractGraphCrawler... |
package technion.gc.api.interfaces;
/** Graph Node Action Interface. Implement to use with Graph Crawler.
*/
public interface IGraphNodeAction {
/** Act on the node
*
* @param graphNode Node to act upon
*/
public void execute(AbstractGraphNode graphNode);
}
|
package technion.gc.api.interfaces;
/** Graph Interface. Implement to use with Graph Crawler.
*/
public interface IGraph {
/** Return Graph's root
*
* @return Graph's root
*/
public AbstractGraphNode getRoot();
/** Sets Graph's root
*
* @param root Graph's root
*/
public void setRoot(AbstractGraphNode r... |
package technion.gc.api.interfaces;
import java.util.ArrayList;
/** Abstraction for a Graph Node.
* Inherit and implement abstract methods.
*/
public abstract class AbstractGraphNode {
/** Returns the neighbor list of this node
*
* @return Node's neighbors
*/
public abstract ArrayList<AbstractGraphNode> getNeig... |
package technion.gc.api.default_impl;
import technion.gc.api.interfaces.AbstractGraphNode;
import technion.gc.api.interfaces.IGraphNodeAction;
/** Default Graph Node Action implementation.
*/
public class DefaultGraphNodeAction implements IGraphNodeAction {
@Override
public void execute(AbstractGraphNode graphNode... |
package technion.gc.api.default_impl;
import technion.gc.api.interfaces.AbstractGraphCrawlerFactory;
import technion.gc.api.interfaces.IGraphNodeAction;
import technion.gc.api.interfaces.ITraversalStrategy;
/** Default Graph Crawler Factory implementation.
*/
public class DefaultGraphCrawlerFactory extends Abstract... |
package technion.gc.api.default_impl;
import java.util.ArrayList;
import technion.gc.api.interfaces.AbstractGraphNode;
import technion.gc.api.interfaces.IGraph;
import technion.gc.api.interfaces.ITraversalStrategy;
/** Default Traversal Strategy implementation.
* Implements a BFS Traversal Strategy.
*/
public cl... |
package technion.gc.api.default_impl;
import java.util.ArrayList;
import technion.gc.api.interfaces.AbstractGraphNode;
/** Default Graph Node implementation.
*/
public class DefaultGraphNode extends AbstractGraphNode {
private ArrayList<AbstractGraphNode> neighbors = new ArrayList<AbstractGraphNode>();
public De... |
package technion.gc.api.default_impl;
import technion.gc.api.interfaces.AbstractGraphNode;
import technion.gc.api.interfaces.IGraph;
/** Default Graph implementation.
*/
public class DefaultGraph implements IGraph {
private AbstractGraphNode root;
public DefaultGraph() {
}
@Override
public AbstractGraphNode... |
package technion.gc.api.implementation.interfaces;
import technion.gc.api.interfaces.IGraph;
/** An inner Interface for Graph Crawler
*/
public interface IGraphCrawler {
/** Traverses the graph parameter using the c'tor
* supplied Traversal Strategy and Graph Node Action.
*
* @param graph The graph to traverse... |
package technion.gc.api.implementation;
import java.util.HashSet;
import technion.gc.api.implementation.interfaces.IGraphCrawler;
import technion.gc.api.interfaces.*;
/** Main Graph Crawler class.
*/
public class GraphCrawler implements IGraphCrawler {
/** The Traversal Strategy to use.
*/
private ITraversalStr... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace que este tipo de zombie se mueva y disparé su arma.
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class ZombieJackson extends Zombie
{
int cont=0;//Variable pa... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Arma1 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Arma1 extends Arma
{
/**
* Act - do whatever the Arma1 wants to do. This method is ca... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace que este tipo de zombie se mueva y disparé su arma.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class ZombieMusic extends Zombie
{
private int cont=0;//... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para hacer que este tipo de zombie dispare y se mueve en el escenario.
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class ZombieThor extends Zombie
{
int con... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Esta clase tiene los metodos necesarios para hacer que el exterminador se mueva, cheque si toco un zombie o una arma.
*
* @author Héctor Nicolás Anguiano Huerta
* @version 18 de Noviembre de 2012.
*/
public class Exterm... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace lo necesario para mover el arma disco del ZombieJackson.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de Diciembre de 2012.
*/
public class Disco extends Arma
{
/**
* Metodo que ve... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace que este tipo de zombie se mueva y disparé su arma.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class Zombienator extends Zombie
{
int cont=0;//Variable... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace lo necesario para mover el arma libro del ZombieNerd.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de Diciembre de 2012.
*/
public class Libro extends Arma
{
/**
* Metodo que verif... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace lo necesario para mover el arma bola de fuego del Zombienator.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de Diciembre de 2012.
*/
public class BolaFuego extends Arma
{
/**
* Met... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace lo necesario para mover el arma rayo del ZombieVThor.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de Diciembre de 2012.
*/
public class Rayo extends Arma
{
/**
* Metodo que verifi... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para actualizar los puntos del exterminador.
* @author Héctor Nicolás Anguino Huerta
* @version 2 de Diciembre de 2012.
*/
public class Contador2 extends Actor
{
private String cad;//Variable que tend... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*; // (Date)
/**
* Clase que sirve para mostrar en el escenario el tiempo
*
* @author Héctor Nicolás Anguiano Huerta
* @version 26 de Octubre de 2012.
*/
public class Time extends Actor
{
Date ini;//... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace lo necesario para mover el arma guitarra del ZombieMusic.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de Diciembre de 2012.
*/
public class Guitarra extends Arma
{
/**
* Metodo qu... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace lo necesario para mover el arma cerebro del ZombieVader.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de Diciembre de 2012.
*/
public class Cerebro extends Arma
{
/**
* Metodo que ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que se encarga de hacer que se muestren los botones, menu y opciones necesarias para el menu.
*
* @author Héctor Nicolás Anguiano Huerta
* @version Noviembre de 2012.
*/
public class Menu extends Actor
{
int... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para actualizar las vidas del exterminador.
*
* @author Héctor Nicolás Anguiano Huerta
* @version 18 de Noviembre de 2012
*/
public class Contador extends Actor
{
private String cad; //Variable que... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Esta clase sirve para mostrar en el escenario los mensajes que sirven para decir que ganaste, perdiste o pastae de nivel.
* @author Héctor Nicolás Anguiano Huerta
* @version Octubre de 2012.
*/
public class Letrero extends... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* Clase que verifica si el exterminador logró agarrar una moneda.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class Moneda extends Bonus
{
Extermina... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace que el zombie aviente sus armas hacia el exterminador.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 3 de Diciembre de 2012.
*/
public class Arma extends Actor
{
/**
* Metodo que che... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Arma2 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Arma2 extends Arma
{
/**
* Act - do whatever the Arma2 wants to do. This method is ca... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para hacer el decremento e incremento de vidas del jugador.
*
* @Héctor Nicolás Anguiano Huerta
* @18 de Noviembre de 2012.
*/
public class Vidas extends Actor
{
private int valor1;
/**
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para checar si una objeto que lanza un zombie tocó al exterminador.
*
* @Héctor Nicolás Anguiano Huerta.
* @22 de Noviembre de 2012.
*/
public class Bomba extends Actor
{
/**
* Act - do whate... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Bonus here.
*
* @author Héctor Nicolás Anguiano Huerta
* @version 18 de Noviembre de 2012
*/
public class Bonus extends Actor
{
public void act()
{
// Add your action co... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para que checar si el exterminador llego a tocar el objeto que pertenece a la clase de Meta.
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de diciembre de 2012.
*/
public class Meta extends Actor
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que verifica si el exterminador logró agarrar un corazón.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class Corazon extends Bonus
{
Exterminador ext; //Variable ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para que checar si el exterminador llego a tocar el objeto que pertenece a la clase de Meta3.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de diciembre de 2012.
*/
public class Meta3 extends... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Arma3 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Arma3 extends Arma
{
/**
* Act - do whatever the Arma3 wants to do. This method is ca... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Esta clase hará que los enemigos se muevan y realicen las funciones que se les asigno para atacar al enemigo (exterminador).
* @author Héctor Nicolás Anguiano Huerta
* @version 19 de Noviembre de 2012.
*/
public abstract c... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace que este tipo de zombie se mueva y disparé su arma.
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class ZombieVader extends Zombie
{
private int cont=0;//Varia... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que sirve para que checar si el exterminador llego a tocar el objeto que pertenece a la clase de Meta2.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 4 de diciembre de 2012.
*/
public class Meta2 extends... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que inicializa los objetos y todo lo necesario para cada escenario del juego.
* @author Héctor Nicolás Anguiano Huerta
* @version Octubre de 2012.
*/
public class Zombieland extends World
{
private Menu menu;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* Clase que sirve para que este objeto se mueva y verifique si choco con un zombie.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class Bala extends Actor
{
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase que hace que este tipo de zombie se mueva y disparé su arma.
*
* @author Héctor Nicolás Anguiano Huerta.
* @version 30 de Noviembre de 2012.
*/
public class ZombieNerd extends Zombie
{
private int cont=0;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Monedas here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Monedas extends Bonus
{
/**
* Act - do whatever the Monedas wants to do. This metho... |
import libsvm.*;
import java.io.*;
import java.util.*;
class svm_train {
private svm_parameter param; // set by parse_command_line
private svm_problem prob; // set by read_problem
private svm_model model;
private String input_file_name; // set by parse_command_line
private String model_file_name; // set by pa... |
import libsvm.*;
import java.io.*;
import java.util.*;
import java.text.DecimalFormat;
class svm_scale
{
private String line = null;
private double lower = -1.0;
private double upper = 1.0;
private double y_lower;
private double y_upper;
private boolean y_scaling = false;
private double[] feature_max;
private ... |
package wekaexamples.core.converters;
import weka.classifiers.Classifier;
import weka.classifiers.lazy.IBk;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.converters.ArffLoader;
import java.io.File;
/**
* Loads the data from the CSV file provided as first parameter.
*
* @autho... |
package com.akshay.knn;
import weka.core.Instances;
import weka.core.converters.ConverterUtils.DataSource;
import weka.classifiers.Evaluation;
import weka.classifiers.lazy.IBk;
public class KNNClassifier {
public static void main(String[] args){
DataSource source;
DataSource test;
try {
source =... |
package com.svm.domain;
public class Word implements Comparable<Word> {
public String word;
public Double count;
public Word(String word, Double count) {
this.word = word;
this.count = count;
}
public int compareTo(Word otherWord) {
if (this.count == otherWord.count) {
return (int) this.wo... |
//package com.svm.domain;
//
//public class EmailData {
//
// private
//
//}
|
/**
*
*/
package com.svm.util;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import com.svm.domain.Word;
/**
* @author renis
*
*/
public class ArffFileUtility {
/**
* @param a... |
package com.svm.util;
import java.io.File;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.svm.domain.Word;
public class WordFrequencyCounter_1 {
private static final String SPAM_TRAIN... |
package com.svm.util;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
public class WordFrequencyCounter {
private class Word /* implements Comparable<Word> */{
String word;
Double count;
... |
package com.svm.util;
import java.io.IOException;
import java.util.*;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapreduce.*;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.i... |
import libsvm.*;
import java.applet.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import java.io.*;
public class svm_toy extends Applet {
static final String DEFAULT_PARAM="-t 2 -c 100";
int XLEN;
int YLEN;
// off-screen buffer
Image buffer;
Graphics buffer_gc;
// pre-allocated colors
... |
package libsvm;
public class svm_node implements java.io.Serializable
{
public int index;
public double value;
}
|
package libsvm;
public class svm_problem implements java.io.Serializable
{
public int l;
public double[] y;
public svm_node[][] x;
}
|
package libsvm;
import java.io.*;
import java.util.*;
//
// Kernel Cache
//
// l is the number of total data items
// size is the cache size limit in bytes
//
class Cache {
private final int l;
private long size;
private final class head_t
{
head_t prev, next; // a cicular list
float[] data;
int len; /... |
//
// svm_model
//
package libsvm;
public class svm_model implements java.io.Serializable {
public svm_parameter param; // parameter
public int nr_class; // number of classes, = 2 in regression/one class svm
public int l; // total #SV
public svm_node[][] SV; // SVs (SV[l])
public double[][] sv_coef; // coefficien... |
package libsvm;
public class svm_parameter implements Cloneable,java.io.Serializable
{
/* svm_type */
public static final int C_SVC = 0;
public static final int NU_SVC = 1;
public static final int ONE_CLASS = 2;
public static final int EPSILON_SVR = 3;
public static final int NU_SVR = 4;
/* kernel_type */
publ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.