Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | package org.eclipse.graphiti.examples.tutorial.handlers;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.resource.Resource;
import or... | 646 |
github-java-corpus | 2,012 | package org.eclipse.graphiti.examples.tutorial.handlers;
import java.io.IOException;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProje... | 935 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 250 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 585 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 584 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 763 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2011 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 201 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 341 |
github-java-corpus | 2,012 | package org.eclipse.graphiti.examples.tutorial.features;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.graphiti.examples.common.ExampleUtil;
import org.eclipse.graphiti.examples.tutorial.StyleUtil;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.features.context.ICust... | 452 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 615 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 341 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 774 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 767 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2011 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 1,434 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 869 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 450 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 440 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 527 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2011 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 785 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 484 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2011 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 216 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 152 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 360 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 2,011 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 708 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 238 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 1,081 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | 244 |
github-java-corpus | 2,012 | package org.eclipse.graphiti.examples.filesystem.patterns;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.graphiti.examples.filesystem.ui.FilesystemPredefinedColoredAreas;
import org.eclipse.graphiti.examples.mm.filesystem.File;
import org.eclipse.graphiti.exam... | 1,737 |
github-java-corpus | 2,012 | package org.eclipse.graphiti.examples.filesystem.patterns;
import java.util.List;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.graphiti.examples.mm.filesystem.File;
import org.eclipse.graphiti.examples.mm.filesy... | 2,644 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 2,455 |
github-java-corpus | 2,012 | /*******************************************************************************
* <copyright>
*
* Copyright (c) 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is ava... | 792 |
github-java-corpus | 2,012 | package org.eclipse.graphiti.examples.filesystem.features;
import org.eclipse.graphiti.examples.mm.filesystem.File;
import org.eclipse.graphiti.examples.mm.filesystem.FilesystemFactory;
import org.eclipse.graphiti.examples.mm.filesystem.Folder;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.ec... | 525 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 913 |
github-java-corpus | 2,012 | package org.eclipse.graphiti.examples.filesystem.features;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.graphiti.examples.mm.filesystem.File;
import org.eclipse.graphiti.examples.mm.filesystem.Folder;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.features.c... | 458 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 454 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 575 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 975 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 956 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 608 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 1,388 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 1,293 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 1,861 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 861 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 2,592 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 1,109 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 1,684 |
github-java-corpus | 2,012 | /**
* <copyright>
*
* Copyright (c) 2012, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... | 3,341 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.DebugInterface;
import gcom.interfaces.GroupManagementModule;
import gcom.interfaces.Message;
import gcom.interfaces.MessageOrderingModule;
import java.util.Hashtable;
import java.util.PriorityQueue;
public class ReliableCommunicationModule extends BasicCommunicationModule {
/... | 471 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.DebugInterface;
import java.util.Vector;
import gcom.interfaces.GroupManagementModule;
import gcom.interfaces.GComViewChangeListener;
import gcom.interfaces.Member;
import gcom.interfaces.Message;
import gcom.interfaces.MessageOrderingModule;
import java.rmi.ConnectException;
imp... | 601 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.io.Serializable;
/**
* A GCom message listener interface that deals with messages delivered to a
* group
*/
public interface MessageListener {
/**
* Callback method when a message is delivered to the group.
*
* @param source
* the source Member who sent... | 95 |
github-java-corpus | 2,012 | package gcom.interfaces;
import gcom.HashVectorClock;
public interface MessageOrderingModule {
public void addMessageListener(GComMessageListener listener);
public void queueMessage(Message m);
public HashVectorClock getClock();
public void tick();
public void gotClock(HashVectorClock c);
public void attachDe... | 67 |
github-java-corpus | 2,012 | package gcom.interfaces;
public interface VectorClock extends Comparable<VectorClock> {
}
| 16 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gcom.interfaces;
import gcom.HashVectorClock;
import gcom.ReliableCommunicationModule;
import gcom.interfaces.Message;
import java.util.Vector;
/**
*
* @author emil
*/
public interface DebugInterface extend... | 129 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.io.IOException;
import java.io.Serializable;
public interface MessageSender {
public void sendMessage(String groupName, Serializable message) throws IOException;
}
| 33 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Backdoor extends Remote {
public static final String NAME = "backdoor";
public void bind(String name, Remote o... | 114 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.util.List;
public interface GroupManagementModule {
public void addGroup(GroupDefinition group);
public void removeGroup(String groupName);
public List<GroupDefinition> listGroups();
public void setLeader(String groupName, Member member);
public Member getLeader(String g... | 136 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.io.Serializable;
/**
* A GCom Group member interface. Used to identify individual members in a
* GCom group.
*/
public interface Member extends Serializable {
// ---------------------------------------------------------
/**
* @return a unique group member identifier.
*/
... | 91 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* An interface describing the objects that are
* passed around for communication
*/
public interface RemoteObject extends Remote,Serializable{
public void send(Message m) throws RemoteException;
pub... | 74 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.util.List;
/**
* A GCom view change listener interface that deals with changes to the
* group structure.
*/
public interface GComViewChangeListener {
public void gotMember(String groupName, Member member);
public void lostMember(String groupName, Member member);
}
| 59 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gcom.interfaces;
/**
*
* @author emil
*/
public interface GComMessageListener {
public void messageReceived(Message message);
}
| 51 |
github-java-corpus | 2,012 | package gcom.interfaces;
import gcom.HashVectorClock;
import java.io.Serializable;
public interface Message extends Serializable {
public static enum TYPE_MESSAGE {
APPLICATION, JOINREQUEST, PARTREQUEST,
REJECT, WELCOME, GOTMEMBER, LOSTMEMBER,
ELECTION, CLOSE
};
public Serializable getMessage();
public ... | 112 |
github-java-corpus | 2,012 | package gcom.interfaces;
import gcom.interfaces.GCom.TYPE_COMMUNICATION;
import gcom.interfaces.GCom.TYPE_GROUP;
import gcom.interfaces.GCom.TYPE_MESSAGEORDERING;
import java.io.Serializable;
/**
* A group definition specifies the type of group, the communication type,
* the type of message order in use the group... | 232 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.util.List;
public interface Group {
public void addMember(Member member);
public void removeMember(Member member);
public boolean isMember(Member member);
public List<Member> listMembers();
public void close();
public boolean isOpen();
public GroupDefinition getDefiniti... | 85 |
github-java-corpus | 2,012 | package gcom.interfaces;
public interface CommunicationModule {
public void receive(Message m);
public void send(Message m);
public void send(Member member, Message msg);
public void addGComViewChangeListener(GComViewChangeListener listener);
public void attachDebugger(DebugInterface debug);
}
| 55 |
github-java-corpus | 2,012 | package gcom.interfaces;
/**
* A GCom view change listener interface that deals with changes to the
* group structure.
*/
public interface ViewChangeListener {
public void gotMember(Member member);
public void lostMember(Member member);
public void lostGroup(String groupName);
}
| 53 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.io.IOException;
import java.io.Serializable;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.List;
/**
* GCom is an interface for the GCom middleware to be developed in th... | 1,266 |
github-java-corpus | 2,012 | package gcom.interfaces;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
public interface RMIModule {
public void bind(String name, RemoteObject ro)
throws AccessException, RemoteException, AlreadyBoundException;
public ... | 122 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.Message;
import gcom.interfaces.*;
import gcom.HashVectorClock;
import java.io.Serializable;
import java.util.Vector;
public class momCausal extends momNonOrdered {
public momCausal (String id) {
super(id);
}
private void sendMessage(Message message) {
this.clock.tickKey... | 371 |
github-java-corpus | 2,012 | package gcom;
import java.rmi.AlreadyBoundException;
import java.rmi.ConnectException;
import java.rmi.NotBoundException;
import gcom.interfaces.RemoteObject;
import gcom.interfaces.RMIModule;
public class ReferenceKeeper implements Runnable {
private RMIModule rmi;
private String name;
private RemoteObject refer... | 603 |
github-java-corpus | 2,012 | package gcom;
import gcom.HashVectorClock;
import gcom.interfaces.*;
import gcom.interfaces.Member;
import gcom.interfaces.Message;
import gcom.interfaces.RemoteObject;
import java.io.Serializable;
import java.util.Hashtable;
import java.util.Vector;
public class momTotal extends momNonOrdered {
private Integer l... | 508 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.Message;
import gcom.interfaces.*;
import gcom.interfaces.Message.*;
import java.util.Vector;
public class momNonOrdered implements MessageOrderingModule {
protected Vector<GComMessageListener> listeners;
protected Vector<Message> messages = new Vector<Message>();
protected H... | 290 |
github-java-corpus | 2,012 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gcom;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
/**
*
* @author emil
*/
public class Debug {
public static final Level ALL = Level.ALL;
publ... | 351 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.Group;
import gcom.interfaces.GroupDefinition;
import gcom.interfaces.Member;
import gcom.interfaces.ViewChangeListener;
import java.util.Hashtable;
import java.util.List;
import java.util.Vector;
public class GroupManagementModule implements gcom.interfaces.GroupManagementModule... | 654 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.RemoteObject;
import java.rmi.RemoteException;
import java.rmi.server.ExportException;
import java.rmi.server.UnicastRemoteObject;
public class Member implements gcom.interfaces.Member {
private static final long serialVersionUID = 6940203241759957894L;
private String id;
priv... | 320 |
github-java-corpus | 2,012 | package gcom;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import gcom.interfaces.CommunicationModule;
import gcom.interfaces.DebugInterface;
import gcom.interfaces.GroupDefinition;
import gcom.interfaces.Message;
public class Remot... | 654 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.Message;
import gcom.interfaces.*;
import gcom.HashVectorClock;
import java.util.Hashtable;
import java.io.Serializable;
import java.util.Vector;
public class momFIFO extends momNonOrdered {
public momFIFO(String id) {
super(id);
}
private void sendMessage(Message message)... | 321 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.*;
import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.Hashtable;
import java.util.Map;
import java.util.Vector;
/**
* Implements the interface {@link VectorClock} with the use of a
* {@link Hashtable} instead of a vector. T... | 957 |
github-java-corpus | 2,012 | package gcom;
import java.io.Serializable;
import gcom.interfaces.Member;
public class Message implements gcom.interfaces.Message,Comparable<Message> {
private static final long serialVersionUID = 5507203760294899480L;
private HashVectorClock clock;
private String groupName;
private Member source;
private Seria... | 395 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.GCom.TYPE_COMMUNICATION;
import gcom.interfaces.GCom.TYPE_GROUP;
import gcom.interfaces.GCom.TYPE_MESSAGEORDERING;
public class GroupDefinition implements gcom.interfaces.GroupDefinition {
private static final long serialVersionUID = -5166402897021175632L;
private String groupN... | 572 |
github-java-corpus | 2,012 | package gcom;
import gcom.interfaces.Member;
import gcom.interfaces.GroupDefinition;
import gcom.interfaces.ViewChangeListener;
import gcom.interfaces.GCom.TYPE_GROUP;
import java.util.List;
import java.util.Vector;
public class Group implements gcom.interfaces.Group {
private Vector<ViewChangeListener> viewChange... | 619 |
github-java-corpus | 2,012 | package gcom;
// Imports
import gcom.interfaces.CommunicationModule;
import gcom.interfaces.DebugInterface;
import gcom.interfaces.GComMessageListener;
import gcom.interfaces.GComViewChangeListener;
import gcom.interfaces.GroupManagementModule;
import gcom.interfaces.Message;
import gcom.interfaces.MessageOrderingModu... | 4,235 |
github-java-corpus | 2,012 | package gcom;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.ConnectException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.ExportException;
import java.rmi... | 668 |
github-java-corpus | 2,012 | package rmi;
import gcom.Debug;
import gcom.interfaces.Backdoor;
import java.rmi.RemoteException;
import java.rmi.registry.*;
import java.rmi.server.UnicastRemoteObject;
import javax.swing.JOptionPane;
public class RMIServer {
protected Registry registry;
private Backdoor backdoor;
public static void main(String ... | 257 |
github-java-corpus | 2,012 | package rmi;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.ConnectException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import gcom.... | 389 |
github-java-corpus | 2,012 | package rmi;
import gcom.Debug;
import gcom.interfaces.GComMessageListener;
import gcom.interfaces.MessageOrderingModule;
import gcom.interfaces.CommunicationModule;
import java.util.Hashtable;
import gcom.interfaces.Member;
import gcom.interfaces.Message;
import gcom.GroupDefinition;
import gcom.HashVectorClock;
pub... | 327 |
github-java-corpus | 2,012 | package rmi;
import gcom.interfaces.DebugInterface;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.ConnectException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.se... | 636 |
github-java-corpus | 2,012 | package rmi;
import gcom.Debug;
import gcom.interfaces.Backdoor;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.registry.Registry;
import java.rmi.registry.LocateRegistry;
public clas... | 282 |
github-java-corpus | 2,012 | package test.gcom;
import gcom.interfaces.CommunicationModule;
import gcom.interfaces.DebugInterface;
import gcom.interfaces.GComViewChangeListener;
import gcom.interfaces.Message;
import gcom.interfaces.Member;
public class CommunicationMockup implements CommunicationModule {
public Message lastMessage = null;
@Ov... | 171 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.*;
import gcom.interfaces.MessageListener;
import gcom.interfaces.Message.TYPE_MESSAGE;
import gcom.interfaces.GComMessageListener;
import java.io.Serializable;
import java.util.Vector;
import org.junit.Before;
import org.junit.Test;
public class momT... | 622 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.HashVectorClock;
import java.util.Arrays;
import java.util.Hashtable;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.junit.Before;
import org.junit.Test;
public class HashVectorClockTest {
static Logger logger ... | 833 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import java.util.List;
import gcom.GroupDefinition;
import gcom.GroupManagementModule;
import gcom.Member;
import org.junit.Before;
import org.junit.Test;
public class GroupManagementModuleTest {
private GroupManagementModule gmm;
@Before
public void setUp... | 474 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.*;
import org.junit.Before;
import org.junit.Test;
public class GroupTest {
public Group group;
public GroupDefinition gdef;
@Before
public void setUp() {
gdef = new GroupDefinition("testGroup");
group = new Group(gdef);
}
@Test
public voi... | 383 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.HashVectorClock;
import gcom.interfaces.*;
import gcom.interfaces.Message.TYPE_MESSAGE;
import java.io.Serializable;
import org.junit.Before;
import org.junit.Test;
public class MessageTest {
public Message m;
public HashVectorClock clock;
publ... | 267 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.*;
import gcom.interfaces.MessageListener;
import gcom.interfaces.Message.TYPE_MESSAGE;
import gcom.interfaces.GComMessageListener;
import java.io.Serializable;
import org.junit.Before;
import org.junit.Test;
public class momNonOrderedTest {
privat... | 236 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.RMIModule;
import gcom.interfaces.GroupDefinition;
import gcom.interfaces.Message;
import gcom.interfaces.RemoteObject;
import rmi.BackdoorOpener;
import gcom.interfaces.Backdoor;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.AccessExcep... | 514 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import gcom.GroupDefinition;
import gcom.interfaces.GCom.TYPE_COMMUNICATION;
import gcom.interfaces.GCom.TYPE_GROUP;
import gcom.interfaces.GCom.TYPE_MESSAGEORDERING;
public class GroupDefinitionTest {
public Group... | 337 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import java.io.Serializable;
import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import gcom.HashVectorClock;
import gcom.Re... | 564 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.*;
import gcom.interfaces.MessageListener;
import gcom.interfaces.Message.TYPE_MESSAGE;
import gcom.interfaces.GComMessageListener;
import java.io.Serializable;
import java.util.Vector;
import org.junit.Before;
import org.junit.Test;
public class momF... | 1,195 |
github-java-corpus | 2,012 | package test.gcom;
import static org.junit.Assert.*;
import gcom.*;
import gcom.interfaces.MessageListener;
import gcom.interfaces.Message.TYPE_MESSAGE;
import gcom.interfaces.GComMessageListener;
import java.io.Serializable;
import java.util.Vector;
import org.junit.Before;
import org.junit.Test;
public class momC... | 1,703 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.