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 experimentGUI.util.settingsComponents.components;
import java.awt.BorderLayout;
import java.io.IOException;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import sun.mis... | 434 |
github-java-corpus | 2,012 | package experimentGUI.util.settingsComponents.components;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import experimentGU... | 298 |
github-java-corpus | 2,012 | /**
* this class consist methods which could write an DataTreeNode to an xml file
* or read an xml file into a DataTreeNode
*
* @author Markus K�ppen, Andreas Hasselberg
*/
package experimentGUI.util.questionTreeNode;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundExc... | 3,394 |
github-java-corpus | 2,012 | package experimentGUI.util.questionTreeNode;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadL... | 1,140 |
github-java-corpus | 2,012 | package experimentGUI.util.questionTreeNode;
public interface QuestionTreeNodeListener {
public void questionTreeEventOccured(QuestionTreeNodeEvent e);
}
| 27 |
github-java-corpus | 2,012 | package experimentGUI.util.questionTreeNode;
import java.util.TreeMap;
import javax.swing.tree.DefaultMutableTreeNode;
@SuppressWarnings("serial")
public class QuestionTreeNode extends DefaultMutableTreeNode {
public final static String TYPE_EXPERIMENT = "experiment";
public final static String TYPE_CATEG... | 859 |
github-java-corpus | 2,012 | package experimentGUI.util.questionTreeNode;
import java.awt.AWTEvent;
@SuppressWarnings("serial")
public class QuestionTreeNodeEvent extends AWTEvent{
public static final int QUESTION_TREE_EVENT = RESERVED_ID_MAX + 1;
private QuestionTreeNode myNode;
public QuestionTreeNodeEvent(Object source, QuestionT... | 90 |
github-java-corpus | 2,012 | package experimentGUI;
/**
* Class used to store constants used throughout the code
*
* @author Andreas Hasselberg
* @author Markus K�ppen
*
*/
public class Constants {
/**
* File name of the experiment file opened automatically when program starts
*/
public static final String DEFAULT_FILE =... | 320 |
github-java-corpus | 2,012 | /**
* Diese Klasse repr�sentiert eine Stoppuhr.
* @author Markus K�ppen, Andreas Hasselberg
*/
package experimentGUI.experimentViewer;
import java.text.DecimalFormat;
import javax.swing.JLabel;
import experimentGUI.util.questionTreeNode.QuestionTreeNode;
@SuppressWarnings("serial")
public cl... | 856 |
github-java-corpus | 2,012 | package experimentGUI.experimentViewer;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
import java.util.HashMap;
import java.util.Ha... | 2,388 |
github-java-corpus | 2,012 | package experimentGUI;
import experimentGUI.experimentViewer.ExperimentViewer;
import experimentGUI.util.questionTreeNode.QuestionTreeNode;
import experimentGUI.util.settingsComponents.SettingsComponentDescription;
/**
* Interface for all plugins to be used immediately within the product. It represents methods ... | 598 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/*
* Magic Carpet 2.2 Copyright (C) 2012 Android, Celtic Minstrel, xzKinGzxBuRnzx
*
* This program is f... | 794 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permission.Permission;
import org.bukkit.plugin.RegisteredServiceProvider;
/*
* Magic Carpet 2.2 Copyright (C) 2012 Android, Celtic Minstrel, xzKinGzxBuRnzx
*
* This program is free software: you can redistribute i... | 419 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit... | 1,912 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Tyler Blair. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditio... | 4,244 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/*
* Magic Carpet 2.2 Copyright (C) 2012 Android, Celtic Minstrel, xzKinGzxBuRnzx
*
* This program is free software: you can redist... | 477 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import org.bukkit.Material;
import org.bukkit.entity.Player;
/*
* Magic Carpet 2.2 Copyright (C) 2012 Android, Celtic Minstrel, xzKinGzxBuRnzx
*
* This program is free software: you can redistribute it... | 1,606 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/*
* Magic Carpet 2.2 Copyright (C) 2012 Android, Celtic Minstrel, xzKinGzxBuRnzx
*
* This program is free software: you can redist... | 489 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/*
* Magic Carpet 2.2 Copyright (C) 2012 Android, Celtic Minstrel, xzKinGzxBuRnzx
*
* This program is f... | 2,109 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import static java.lang.Math.abs;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
import org.bukkit.entity.Player;
/*
* Magic Carpet 2.2 Copyright (C) 2012 Android, Celtic Minstrel, xzKinGzxBuRnzx
*
* This pr... | 1,725 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import java.io.*;
import java.util.EnumSet;
import java.util.logging.Logger;
import net.digiex.magiccarpet.Metrics.Graph;
import org.bukkit.Material;
import static org.bukkit.Material.*;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.... | 2,743 |
github-java-corpus | 2,012 | package net.digiex.magiccarpet;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldguard.LocalPlayer;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.protection.ApplicableRegionSet;
import com.sk89q.worldguard.protection.managers.RegionManager;
import java.util.Iterator;
import j... | 489 |
github-java-corpus | 2,012 | import org.junit.*;
import java.util.*;
import javax.persistence.*;
import models.*;
import play.test.*;
public class BoardTest extends UnitTest {
@Before
public void setup() {
Fixtures.deleteDatabase();
}
@Test
public void createBoard() {
// Create a new user named Joe Smith and save i... | 507 |
github-java-corpus | 2,012 | import org.junit.*;
import java.util.*;
import play.test.*;
import models.*;
public class BasicTest extends UnitTest {
@Before
public void setup() {
Fixtures.deleteDatabase();
}
@Test
public void createUser() {
// Create a new user named Joe Smith and save it
new Users("jsmith",... | 131 |
github-java-corpus | 2,012 | import org.junit.*;
import play.test.*;
import play.mvc.*;
import play.mvc.Http.*;
import models.*;
public class ApplicationTest extends FunctionalTest {
@Test
public void testThatIndexPageWorks() {
Response response = GET("/");
assertIsOk(response);
assertContentType("text... | 79 |
github-java-corpus | 2,012 | import org.junit.*;
import java.util.*;
import play.test.*;
import models.*;
public class PinsTest extends UnitTest {
@Before
public void setup() {
Fixtures.deleteDatabase();
}
@Test
public void createPins() {
// Create a new user named Joe Smith and save it
new Users("jsmith", "jsmith@gmail.... | 325 |
github-java-corpus | 2,012 | import java.util.List;
import org.junit.*;
import play.test.*;
import services.pinning.Pinning;
public class PinningTest extends UnitTest {
@Test
public void fetchImagesTest() {
String url = "http://localhost";
List<String> listImageUrls = Pinning.fetchImageLinks(url);
for (String imgLink : listImage... | 91 |
github-java-corpus | 2,012 | import org.junit.*;
import java.util.*;
import play.test.*;
import models.*;
public class UserTest extends UnitTest {
@Before
public void setup() {
Fixtures.deleteDatabase();
}
@Test
public void createUser() {
// Create a new user named Joe Smith and save it
new Users("jsmith", "jsmith@gmail.c... | 234 |
github-java-corpus | 2,012 | import java.util.*;
import models.*;
import org.junit.*;
import play.test.*;
public class UserFollowersTest extends UnitTest {
@Before
public void setup() {
Fixtures.deleteDatabase();
}
@Test
public void createUserFollowers() {
// Create a new user named Joe Smith and save it
Users joe = new Us... | 210 |
github-java-corpus | 2,012 | package models;
import java.util.*;
import javax.persistence.*;
import play.data.validation.*;
import play.db.jpa.*;
/**
* This is the model class representing the "pincomments" table stored in the database
*/
@Entity(name = "pin_comments")
public class PinComments extends GenericModel {
/*
* Make sure t... | 204 |
github-java-corpus | 2,012 | package models;
import java.util.*;
import javax.persistence.*;
import play.data.validation.*;
import play.db.jpa.*;
/**
* This is the model class representing the "pins" table stored in the database.
*/
@Entity
public class Pins extends GenericModel {
/*
* Make sure to have a separate sequence gener... | 502 |
github-java-corpus | 2,012 | package models;
import java.util.*;
import javax.persistence.*;
import play.data.validation.*;
import play.db.jpa.*;
/**
* TBD
*/
@Entity(name = "user_followers")
public class UserFollowers extends GenericModel {
/*
* Make sure to have a separate sequence generator - due to the fact we're using postgres
... | 206 |
github-java-corpus | 2,012 | package models;
import java.util.*;
import javax.persistence.*;
import play.data.validation.*;
import play.db.jpa.*;
/**
* This is the odel class representing the "users" table stored in the database
*/
@Entity
public class Users extends GenericModel {
@Id
@SequenceGenerator(name = "users_id_generator", s... | 421 |
github-java-corpus | 2,012 | package models;
import java.util.*;
import javax.persistence.*;
import play.data.validation.*;
import play.db.jpa.*;
import play.db.jpa.Model;
/**
* This is the model class representing the "boards" table stored in the database.
*/
@Entity
@Table(uniqueConstraints=@UniqueConstraint(columnNames={"user_id", "url_key... | 696 |
github-java-corpus | 2,012 | package controllers;
import play.*;
import play.data.validation.*;
import play.mvc.*;
import java.util.*;
import models.*;
import services.pinning.*;
public class Pin extends Controller {
/**
* A request to create a new pin
*/
public static void create(String username) {
Users user = Users.f... | 334 |
github-java-corpus | 2,012 | package controllers;
import play.*;
import play.mvc.*;
import java.util.*;
import models.*;
public class User extends Controller {
public static void show(String username) {
// find the user and then render their page
Users user = Users.findByUsername(username);
List<Boards> boards = null;
if (user != null... | 102 |
github-java-corpus | 2,012 | package controllers;
import play.*;
import play.mvc.*;
import java.util.*;
import models.*;
public class Application extends Controller {
public static void index() {
List<Users> users = Users.findAll();
render(users);
}
} | 46 |
github-java-corpus | 2,012 | package controllers;
import play.*;
import play.data.validation.*;
import play.mvc.*;
import java.util.*;
import models.*;
public class Board extends Controller {
public static void show(String username, String urlKey) {
// Look up the board via urlkey for username
Boards board = Boards.findByUsernameAndUrlK... | 242 |
github-java-corpus | 2,012 | package controllers;
import play.*;
import play.mvc.*;
import play.data.validation.*;
import java.util.*;
import models.*;
public class Account extends Controller {
public static void registerUser(@Required String username, @Required String email, @Required String password) {
if (validation.hasErrors()) {
... | 112 |
github-java-corpus | 2,012 | package services.pinning;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.El... | 349 |
github-java-corpus | 2,012 | package edu.osu;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.concurrent.TimeUnit;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.os.Bundle;
import android... | 2,486 |
github-java-corpus | 2,012 | package edu.osu;
// Graphic Marker Imports
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.location.Criteria;
import android.os.AsyncTask;
import android.os.Bundle;
import android.content.Context;
import android.location.LocationManager;
import android.location.Geocoder;
impo... | 1,569 |
github-java-corpus | 2,012 | package edu.osu;
//This is a domain class to share the bar tab across activities
public class BarTab {
public static int beer = 0;
public static int well = 0;
public static int liquor = 0;
public static int bombs = 0;
public static int cocktail = 0;
}
| 66 |
github-java-corpus | 2,012 | package edu.osu;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;
i... | 700 |
github-java-corpus | 2,012 | package edu.osu;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.util.Log;
import fi.foyt.foursquare.api.*;
import fi.foyt.foursquare.api.entities.CompactVenue;
import fi.foyt.foursquare.api.entities.VenuesSearchResult;
import java.util.ArrayList;
public class FoursquareSearch {
pr... | 439 |
github-java-corpus | 2,012 | package edu.osu;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class TabTrackerActivity extends Activity{
//shared pref
public static final String PREFS_COUNT = "MyPref... | 1,306 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.stats;
import java.util.LinkedList;
import sim.Config;
import sim.Simulator;
import sim.components.Flit;
/*
* Latency values are recorded in the sample they were generat... | 1,883 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.stats;
public class Average {
int m_numSamples;
double m_x;
double m_sum;
double m_min;
double m_max;
double m_error;
public Average() {
clear();
}
publi... | 498 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim;
import java.util.Random;
import sim.components.Network;
import sim.stats.Stats;
import sim.traffic.Injection;
import sim.traffic.Traffic;
public class Simulator {
pub... | 514 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim;
import java.io.FileInputStream;
import java.io.IOException;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
im... | 4,432 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import java... | 1,225 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.traffic;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
import sim.Simulator;
public class TraceParser... | 319 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.traffic;
public class TraceElement {
public long clock;
public int source;
public int dest;
public int burst;
public TraceElement(long clock, int source, int des... | 110 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.traffic;
import sim.Config;
import sim.Simulator;
public class Injection {
private static int[] m_nodeStates;
public static int getPacketLen(int source) {
switch(Co... | 536 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.traffic;
public class TraceEvent {
public long clock;
public int dest;
public int burst;
public TraceEvent(long clock, int dest, int burst) {
this.clock = clock;... | 96 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.traffic;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class Trace {
public ArrayList<TraceEle... | 269 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.traffic;
import java.util.Random;
import sim.Config;
import sim.Simulator;
import sim.Utilities;
public class Traffic {
private static int[] m_perm;
public static in... | 1,475 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim;
public class Main {
/*
* Visualisation mode: output a graphviz-generated image of the topology
*/
private static void visualise(String[] args) {
if(args.length !... | 402 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.routing;
import sim.Config;
import sim.Simulator;
import sim.components.Network;
import sim.components.Router;
import sim.topology.Mesh;
public class DimOrder implements R... | 610 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.routing;
import java.util.LinkedList;
import sim.Simulator;
import sim.components.Network;
import sim.components.Router;
import sim.components.RouterLink;
import sim.graph... | 659 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.routing;
//import java.util.ArrayList;
//import java.util.Arrays;
/*
* Floyd-Warshall all-pairs shortest path algorithm
* Modified implementation from http://algowiki.ne... | 625 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.routing;
/*
* Base class for a table-based routing function, provides a simple output port
* and vc lookup for each destination node.
*/
public class TableBased implem... | 271 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.routing;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class RoutingTable {
private Map<Integer, TableEntry> m_lookup;
class TableEntr... | 474 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.routing;
import java.util.List;
import java.util.Set;
import org.jgrapht.alg.BellmanFordShortestPath;
import sim.components.Network;
import sim.components.Router;
import ... | 560 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.routing;
public interface RoutingFunction {
public int getOutputPort(int current, int inputVC, int source, int dest);
public int getOutputVC(int current, int inputVC, in... | 83 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim;
import sim.Simulator.SimState;
import sim.stats.Stats;
public class RunMode {
private static final boolean VERBOSE_EXPERIMENT = true;
private static final boolean VER... | 1,338 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.topology;
import java.util.Random;
import sim.Config;
import sim.graphs.Construction;
public class DegenMesh {
private static int _k;
private static int _n;
/*
* ... | 637 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.topology;
import sim.components.Node;
public class Torus {
private static int _k;
private static int _n;
private Torus() {}
/*
* For each node and each dimensio... | 541 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.topology;
import sim.Config;
import sim.components.Node;
public class Topology {
public static Node[] createTopology() {
switch(Config.topology()) {
case MESH:... | 758 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.topology;
import sim.components.Node;
public class Mesh {
private static int _k;
private static int _n;
/*
* For each node and each dimension, make the left and ri... | 1,175 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.topology;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Set;
import sim.Utilities;
import sim.components.Network;
... | 473 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.topology;
import java.util.Random;
import sim.Config;
import sim.graphs.Construction;
public class DegenTorus {
private static int _k;
private static int _n;
/*
*... | 654 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.graphs;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
... | 1,268 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.graphs;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import org.jgrapht.DirectedGraph;
import org.jgrapht.a... | 836 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
public class... | 457 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.util.LinkedList;
public class Link implements Component {
private int m_id;
// Input objects
private Flit m_i... | 968 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.util.LinkedList;
public class Buffer {
private Console m_console;
private LinkedList<Flit> m_buffer;
private int m_capaci... | 349 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
public class RouterLink extends Link {
private static int m_idCount = 0;
private Router m_from;
private Router m_to;
public RouterLink(int delay... | 227 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.util.LinkedList;
import java.util.Set;
import javax.swing.JPanel;
import sim.Config;
import sim.traffic.TraceEvent;
/*
* A node represents a sin... | 720 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import sim.Config;
public class InputPort extends Port {
private Flit m_inputFlit;
private InputVC[] m_vcs;
private boolean m_sendCredit;
public ... | 1,029 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.util.Iterator;
import java.util.LinkedList;
import sim.Config;
import sim.RunMode;
import sim.Simulator;
import sim.Config.TrafficType;
import sim.... | 1,873 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
public class Port {
private Console m_console;
private int m_nodeId;
private int m_portNum;
private int m_currVC;
private Link m_link;
... | 222 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.util.LinkedList;
import sim.Config;
public abstract class VirtualChannel {
private enum VCState { IDLE, ACTIVE, WAIT_C, WAIT_VC };
private C... | 685 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPan... | 508 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import sim.Config;
import sim.routing.RoutingFunction;
public class Router extends Co... | 2,401 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
public class OutputVC extends VirtualChannel {
private int m_connectedInputPort;
private int m_connectedInputVC;
private Flit m_flit;
public OutputVC(i... | 515 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
public interface Component {
public void update();
public void copy();
public void reset();
}
| 57 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
public class Signal {
private int m_transitCycles;
public Signal() {
m_transitCycles = 0;
}
public void incTransitCycles() { m_transitCycles++; }
p... | 127 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import sim.Simulator;
public class Flit extends Signal {
private int m_msgId;
private int m_sample;
private int m_vc;
private long m_injec... | 576 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
/*
* A class to represent a credit signal, this is transmitted
* back up a link in a credit loop to inform of a new fre buffer space
*/
public class Credit ... | 148 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collection;
import java.util.Has... | 1,792 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
import sim.Config;
public class OutputPort extends Port {
private Credit m_inputCredit;
private OutputVC[] m_vcs;
public OutputPort(Console console, ... | 1,241 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
public class ProcessorLink extends Link {
private static int m_idCount = 0;
public ProcessorLink(int delay) {
super(m_idCount++, delay);
}
}
| 76 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2010, James Hanlon
* All rights reserved.
*
* Made available under the BSD license - see the LICENSE file
*/
package sim.components;
public class InputVC extends VirtualChannel {
private int m_connectedOutputPort;
private int m_connectedOutputVC;
private Buffer m_buffer;
public I... | 530 |
github-java-corpus | 2,012 | package com.animoto.api;
import java.util.List;
import java.util.ArrayList;
import com.animoto.api.visual.Visual;
import com.animoto.api.enums.Pacing;
import com.animoto.api.enums.Style;
import com.animoto.api.postroll.*;
/**
* A DirectingManifest is used to communicate the assets, resources, and metadata of your A... | 463 |
github-java-corpus | 2,012 | package com.animoto.api;
import java.util.Collection;
import com.animoto.api.resource.*;
import com.animoto.api.enums.HttpCallbackFormat;
import org.apache.http.HttpRequestInterceptor;
import org.apache.http.client.HttpRequestRetryHandler;
public class ApiCommand {
private BaseResource baseResource;
private St... | 497 |
github-java-corpus | 2,012 | package com.animoto.api;
import com.animoto.api.enums.Resolution;
import com.animoto.api.enums.Format;
import com.animoto.api.enums.Framerate;
/**
* A RenderingParameters contains video metadata of how you want API to render a video.<p/>
*
* It is part of the RenderingManifest.<p/>
*
* @see RenderingManifest
*/... | 201 |
github-java-corpus | 2,012 | package com.animoto.api;
/**
* An ApiError represents the code:message that can be returned in an API response to the client.<p/>
*
* Please consult your API documentation for more information on possible errors.<p/>
*/
public class ApiError {
private String code;
private String message;
public String getCo... | 103 |
github-java-corpus | 2,012 | package com.animoto.api.cli;
import com.animoto.api.ApiClient;
import com.animoto.api.ApiCommand;
import com.animoto.api.util.FileUtil;
import com.animoto.api.util.StringUtil;
import com.animoto.api.resource.Resource;
import com.animoto.api.resource.BaseResource;
import com.animoto.api.resource.DirectingJob;
import c... | 1,209 |
github-java-corpus | 2,012 | package com.animoto.api.cli;
import com.animoto.api.resource.DirectingAndRenderingJob;
public class RawDirectingAndRenderingJob extends DirectingAndRenderingJob implements Raw {
private String rawJson;
public void setRawEntity(String rawEntity) {
this.rawJson = rawEntity;
}
public String toJson() {
... | 77 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.