diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/main/java/hudson/remoting/PingThread.java b/src/main/java/hudson/remoting/PingThread.java
index e673326d..7efc3c65 100644
--- a/src/main/java/hudson/remoting/PingThread.java
+++ b/src/main/java/hudson/remoting/PingThread.java
@@ -1,150 +1,150 @@
/*
* The MIT License
*
* Copyright (c) 2004-2010,... | true | true | private void ping() throws IOException, InterruptedException {
Future<?> f = channel.callAsync(new Ping());
long start = System.currentTimeMillis();
long end = start +timeout;
long remaining;
do {
remaining = end-System.currentTimeMillis();
try {
... | private void ping() throws IOException, InterruptedException {
Future<?> f = channel.callAsync(new Ping());
long start = System.currentTimeMillis();
long end = start +timeout;
long remaining;
do {
remaining = end-System.currentTimeMillis();
try {
... |
diff --git a/choco-parser/src/main/java/parser/flatzinc/para/ParaserMaster.java b/choco-parser/src/main/java/parser/flatzinc/para/ParaserMaster.java
index 10c7831a1..302d79c51 100644
--- a/choco-parser/src/main/java/parser/flatzinc/para/ParaserMaster.java
+++ b/choco-parser/src/main/java/parser/flatzinc/para/ParaserMas... | false | true | public synchronized boolean newSol(int val, ResolutionPolicy policy) {
this.policy = policy;
if (nbSol == 0) {
bestVal = val;
}
nbSol++;
boolean isBetter = false;
switch (policy) {
case MINIMIZE:
if (bestVal > val) {
... | public synchronized boolean newSol(int val, ResolutionPolicy policy) {
this.policy = policy;
if (nbSol == 0) {
bestVal = val;
}
nbSol++;
boolean isBetter = false;
switch (policy) {
case MINIMIZE:
if (bestVal > val || nbSol==1) {... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/SimpleTransfer.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/SimpleTransfer.java
index f7f102354..b102125e6 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/... | true | true | public State traverse(State s0) {
if (s0.getBackEdge() instanceof SimpleTransfer)
return null;
RoutingRequest rr = s0.getOptions();
double walkspeed = rr.getWalkSpeed();
StateEditor se = s0.edit(this);
int time = (int) (distance / walkspeed);
se.increment... | public State traverse(State s0) {
// use transfer edges only to transfer
// otherwise they are used as shortcuts or break the itinerary generator
if ( ! s0.isEverBoarded())
return null;
if (s0.getBackEdge() instanceof SimpleTransfer)
return null;
Rou... |
diff --git a/src/java/davmail/ldap/LdapConnection.java b/src/java/davmail/ldap/LdapConnection.java
index d26eca4..a3a1d43 100644
--- a/src/java/davmail/ldap/LdapConnection.java
+++ b/src/java/davmail/ldap/LdapConnection.java
@@ -1,1549 +1,1549 @@
/*
* DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway
* Copyright (... | true | true | public void run() {
try {
int size = 0;
DavGatewayTray.debug(new BundleMessage("LOG_LDAP_REQ_SEARCH", currentMessageId, dn, scope, sizeLimit, timelimit, ldapFilter.toString(), returningAttributes));
if (scope == SCOPE_BASE_OBJECT) {
... | public void run() {
try {
int size = 0;
DavGatewayTray.debug(new BundleMessage("LOG_LDAP_REQ_SEARCH", currentMessageId, dn, scope, sizeLimit, timelimit, ldapFilter.toString(), returningAttributes));
if (scope == SCOPE_BASE_OBJECT) {
... |
diff --git a/src/com/orangeleap/tangerine/web/common/TangerineListHelper.java b/src/com/orangeleap/tangerine/web/common/TangerineListHelper.java
index b0219dbd..d95ee447 100644
--- a/src/com/orangeleap/tangerine/web/common/TangerineListHelper.java
+++ b/src/com/orangeleap/tangerine/web/common/TangerineListHelper.java
@... | false | true | public void addListFieldsToMap(HttpServletRequest request, List<SectionField> sectionFields, List entities,
List<Map<String, Object>> paramMapList, boolean useAliasName, boolean useAliasId) {
int sequence = 0;
if (entities != null) {
for (Object thisEnt... | public void addListFieldsToMap(HttpServletRequest request, List<SectionField> sectionFields, List entities,
List<Map<String, Object>> paramMapList, boolean useAliasName, boolean useAliasId) {
int sequence = 0;
if (entities != null) {
for (Object thisEnt... |
diff --git a/src/main/java/org/basex/query/path/AxisPath.java b/src/main/java/org/basex/query/path/AxisPath.java
index c1fb00ac9..a032b59d8 100644
--- a/src/main/java/org/basex/query/path/AxisPath.java
+++ b/src/main/java/org/basex/query/path/AxisPath.java
@@ -1,456 +1,454 @@
package org.basex.query.path;
import st... | false | true | private Expr index(final QueryContext ctx, final Data data)
throws QueryException {
// disallow relative paths and numeric predicates
if(root == null || uses(Use.POS)) return this;
// cache index access costs
IndexContext ics = null;
// cheapest predicate and step
int pmin = 0;
int... | private Expr index(final QueryContext ctx, final Data data)
throws QueryException {
// disallow relative paths and numeric predicates
if(root == null || uses(Use.POS)) return this;
// cache index access costs
IndexContext ics = null;
// cheapest predicate and step
int pmin = 0;
int... |
diff --git a/src/main/org/codehaus/groovy/syntax/lexer/StringLexer.java b/src/main/org/codehaus/groovy/syntax/lexer/StringLexer.java
index fdfefeb13..5f975e624 100644
--- a/src/main/org/codehaus/groovy/syntax/lexer/StringLexer.java
+++ b/src/main/org/codehaus/groovy/syntax/lexer/StringLexer.java
@@ -1,401 +1,404 @@
pa... | true | true | public char la(int k) throws LexerException, ReadException
{
if( !finished && source != null )
{
if( delimited )
{
if( k > characters.length )
{
throw new GroovyBugError( "StringLexer lookahead tolerance exceeded" );
... | public char la(int k) throws LexerException, ReadException
{
if( !finished && source != null )
{
if( delimited )
{
if( k > characters.length )
{
throw new GroovyBugError( "StringLexer lookahead tolerance exceeded" );
... |
diff --git a/idl-frontend/src/main/java/org/ow2/mind/idl/IncludeHeaderResolver.java b/idl-frontend/src/main/java/org/ow2/mind/idl/IncludeHeaderResolver.java
index cf1ac20..344ee2c 100644
--- a/idl-frontend/src/main/java/org/ow2/mind/idl/IncludeHeaderResolver.java
+++ b/idl-frontend/src/main/java/org/ow2/mind/idl/Includ... | true | true | public IDL resolve(final Include include, final IDL encapsulatingIDL,
final String encapsulatingName, final Map<Object, Object> context)
throws ADLException {
String path = getIncludedPath(include);
if (getExtension(path).equals(HEADER_EXTENSION)) {
// include node references a header C file... | public IDL resolve(final Include include, final IDL encapsulatingIDL,
final String encapsulatingName, final Map<Object, Object> context)
throws ADLException {
String path = getIncludedPath(include);
if (getExtension(path).equals(HEADER_EXTENSION)) {
// include node references a header C file... |
diff --git a/src/test/pleocmd/Testcases.java b/src/test/pleocmd/Testcases.java
index 3e27002..163900e 100644
--- a/src/test/pleocmd/Testcases.java
+++ b/src/test/pleocmd/Testcases.java
@@ -1,15 +1,16 @@
package test.pleocmd;
import org.junit.BeforeClass;
import pleocmd.Log;
import pleocmd.Log.Type;
public cl... | true | true | public static void logOnlyWarnings() {
Log.setMinLogType(Type.Warn);
}
| public static void logOnlyWarnings() {
Log.setMinLogType(Type.Warn);
Log.setGUIStatusKnown();
}
|
diff --git a/branches/TekkitConverter/src/pfaeff/CBRenderer.java b/branches/TekkitConverter/src/pfaeff/CBRenderer.java
index 0b26cda..6966aca 100644
--- a/branches/TekkitConverter/src/pfaeff/CBRenderer.java
+++ b/branches/TekkitConverter/src/pfaeff/CBRenderer.java
@@ -1,61 +1,62 @@
/*
* Copyright 2011 Kai R�hr
* ... | true | true | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
setText(((File)value).getName());
setOpaque(true);
if ((index % 2) == 1) {
setBackground(new Color(0.6f, 1.0f, 0.6f));
} else {
setBackground(Color.white);
}
if (isSelect... | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
if (value==null)setText("");
else setText(((File)value).getName());
setOpaque(true);
if ((index % 2) == 1) {
setBackground(new Color(0.6f, 1.0f, 0.6f));
} else {
setBackground(... |
diff --git a/src/com/android/exchange/adapter/CalendarSyncAdapter.java b/src/com/android/exchange/adapter/CalendarSyncAdapter.java
index 1d1059f..b467eb7 100644
--- a/src/com/android/exchange/adapter/CalendarSyncAdapter.java
+++ b/src/com/android/exchange/adapter/CalendarSyncAdapter.java
@@ -1,2172 +1,2174 @@
/*
* C... | true | true | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mService.mContentResolver;
if (getSyncKey().equals("0")) {
return false;
}
try {
// We've got to handle exceptions as part of the parent when changes occur, so we need
... | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mService.mContentResolver;
if (getSyncKey().equals("0")) {
return false;
}
try {
// We've got to handle exceptions as part of the parent when changes occur, so we need
... |
diff --git a/src/com/urbanairship/octobot/QueueConsumer.java b/src/com/urbanairship/octobot/QueueConsumer.java
index 5b1baa3..0327dc5 100644
--- a/src/com/urbanairship/octobot/QueueConsumer.java
+++ b/src/com/urbanairship/octobot/QueueConsumer.java
@@ -1,274 +1,274 @@
package com.urbanairship.octobot;
// AMQP Suppo... | true | true | public boolean invokeTask(String rawMessage) {
String taskName = "";
JSONObject message;
int retryCount = 0;
long retryTimes = 0;
long startedAt = System.nanoTime();
String errorMessage = null;
Throwable lastException = null;
boolean executedSuccessfully = false;
while (retryCount ... | public boolean invokeTask(String rawMessage) {
String taskName = "";
JSONObject message;
int retryCount = 0;
long retryTimes = 0;
long startedAt = System.nanoTime();
String errorMessage = null;
Throwable lastException = null;
boolean executedSuccessfully = false;
while (retryCount ... |
diff --git a/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderMountains.java b/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderMountains.java
index c6ef43a..11878ff 100644
--- a/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderMountains.java
+++ b/src/main/java/net/nexisonl... | true | true | public void generateChunk(World world, int X, int Z, byte[] abyte, Biome[] biomes,
double[] temperature) {
int minHeight = 128;
for (int x = 0; x < 16; x++) {
for (int z = 0; z < 16; z++) {
double heightoffset = (continentNoise.getValue(
(double) (x + (X * 16)) / 10d,
(double) (z + (Z * 16)) ... | public void generateChunk(World world, int X, int Z, byte[] abyte, Biome[] biomes,
double[] temperature) {
int minHeight = 128;
for (int x = 0; x < 16; x++) {
for (int z = 0; z < 16; z++) {
double heightoffset = (continentNoise.getValue(
(double) (x + (X * 16)) / 10d,
(double) (z + (Z * 16)) ... |
diff --git a/src/util/ConsoleReader.java b/src/util/ConsoleReader.java
index 0a0d3b0..951aa4d 100755
--- a/src/util/ConsoleReader.java
+++ b/src/util/ConsoleReader.java
@@ -1,137 +1,146 @@
package util;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
import java.util.Set;
im... | true | true | public static String promptOneOf (String prompt, String ... choices)
{
Set<String> choiceSet = new TreeSet<String>(Arrays.asList(choices));
String result;
do
{
result = promptString(prompt + " one of " + choices + "? ");
}
while (!choiceSet.contains(re... | public static String promptOneOf (String prompt, String ... choices)
{
Set<String> choiceSet = new TreeSet<String>(Arrays.asList(choices));
String result;
do
{
StringBuilder buf = new StringBuilder();
for( int i=0; i<choices.length; i++ )
{
... |
diff --git a/src/edu/calpoly/csc/pulseman/StartMenu.java b/src/edu/calpoly/csc/pulseman/StartMenu.java
index 38fbeb6..d2259ee 100644
--- a/src/edu/calpoly/csc/pulseman/StartMenu.java
+++ b/src/edu/calpoly/csc/pulseman/StartMenu.java
@@ -1,102 +1,102 @@
package edu.calpoly.csc.pulseman;
import java.util.Timer;
impo... | true | true | public void update(GameContainer gc, int dt)
{
Input input = gc.getInput();
if(input.isMousePressed(Input.MOUSE_LEFT_BUTTON))
{
int x = input.getMouseX();
int y = input.getMouseY();
if(x >= buttonLoc[0] && x <= buttonLoc[0] + menuButton.getWidth() && y >= buttonLoc[1] && y <= buttonLoc[1] + menuButton.... | public void update(GameContainer gc, int dt)
{
Input input = gc.getInput();
if(input.isMousePressed(Input.MOUSE_LEFT_BUTTON))
{
int x = input.getMouseX();
int y = input.getMouseY();
if(x >= buttonLoc[0] && x <= buttonLoc[0] + menuButton.getWidth() && y >= buttonLoc[1] && y <= buttonLoc[1] + menuButton.... |
diff --git a/server/RequestProcessor.java b/server/RequestProcessor.java
index bca7c88..b8ddc46 100644
--- a/server/RequestProcessor.java
+++ b/server/RequestProcessor.java
@@ -1,134 +1,135 @@
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStre... | true | true | public void run() {
while (true) {
Socket connection;
synchronized(pool) {
while (pool.isEmpty()) {
try {
pool.wait();
}
catch (InterruptedException e) { ... | public void run() {
while (true) {
Socket connection;
synchronized(pool) {
while (pool.isEmpty()) {
try {
pool.wait();
}
catch (InterruptedException e) { ... |
diff --git a/ini/trakem2/persistence/CacheImageMipMaps.java b/ini/trakem2/persistence/CacheImageMipMaps.java
index fa54ff23..adf98a6c 100644
--- a/ini/trakem2/persistence/CacheImageMipMaps.java
+++ b/ini/trakem2/persistence/CacheImageMipMaps.java
@@ -1,484 +1,487 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) ... | true | true | public final void put(final long id, final Image image, final int level) {
final ListIterator<Entry> li = cache.listIterator(cache.size());
while (li.hasPrevious()) { // images are more likely to be close to the end
final Entry e = li.previous();
if (id == e.id && level == e.level) {
li.remove();
cac... | public final void put(final long id, final Image image, final int level) {
final ListIterator<Entry> li = cache.listIterator(cache.size());
while (li.hasPrevious()) { // images are more likely to be close to the end
final Entry e = li.previous();
if (id == e.id && level == e.level) {
li.remove();
cac... |
diff --git a/cat-home/src/main/java/com/dianping/cat/report/page/model/transaction/HdfsTransactionService.java b/cat-home/src/main/java/com/dianping/cat/report/page/model/transaction/HdfsTransactionService.java
index a9f86dc3..dfce5a86 100644
--- a/cat-home/src/main/java/com/dianping/cat/report/page/model/transaction/H... | true | true | public ModelResponse<TransactionReport> invoke(ModelRequest request) {
String domain = request.getDomain();
long date = Long.parseLong(request.getProperty("date"));
String path = m_pathBuilder.getReportPath(new Date(date));
ModelResponse<TransactionReport> response = new ModelResponse<TransactionReport>();
B... | public ModelResponse<TransactionReport> invoke(ModelRequest request) {
String domain = request.getDomain();
long date = Long.parseLong(request.getProperty("date"));
String path = m_pathBuilder.getReportPath(new Date(date));
ModelResponse<TransactionReport> response = new ModelResponse<TransactionReport>();
B... |
diff --git a/frontend/src/main/java/cl/own/usi/gateway/netty/controller/RankingController.java b/frontend/src/main/java/cl/own/usi/gateway/netty/controller/RankingController.java
index 0424850..eb676ba 100644
--- a/frontend/src/main/java/cl/own/usi/gateway/netty/controller/RankingController.java
+++ b/frontend/src/main... | false | true | public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
throws Exception {
HttpRequest request = (HttpRequest) e.getMessage();
String userId = getCookie(request, COOKIE_AUTH_NAME);
if (userId == null) {
writeResponse(e, UNAUTHORIZED);
getLogger().info("User not authorized");
} else {
... | public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
throws Exception {
HttpRequest request = (HttpRequest) e.getMessage();
String userId = getCookie(request, COOKIE_AUTH_NAME);
if (userId == null) {
writeResponse(e, UNAUTHORIZED);
getLogger().info("User not authorized");
} else {
... |
diff --git a/server/src/main/java/org/openqa/selenium/server/SeleniumServer.java b/server/src/main/java/org/openqa/selenium/server/SeleniumServer.java
index 815fa4ad..686a09b1 100644
--- a/server/src/main/java/org/openqa/selenium/server/SeleniumServer.java
+++ b/server/src/main/java/org/openqa/selenium/server/SeleniumS... | true | true | public static void main(String[] args) throws Exception {
int port = DEFAULT_PORT;
boolean interactive = false;
boolean htmlSuite = false;
boolean multiWindow = false;
String browserString = null;
String startURL = null;
String suiteFilePath = null;
S... | public static void main(String[] args) throws Exception {
int port = DEFAULT_PORT;
boolean interactive = false;
boolean htmlSuite = false;
boolean multiWindow = false;
String browserString = null;
String startURL = null;
String suiteFilePath = null;
S... |
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java
index 84df8f7469..f54ef09c86 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java... | true | true | public CoreValue createValue(String value, final int type) {
if (type == PropertyType.BINARY) {
try {
return new BinaryValue(value.getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException("UTF-8 is not supported", ... | public CoreValue createValue(String value, final int type) {
if (type == PropertyType.BINARY) {
try {
return new BinaryValue(value.getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException("UTF-8 is not supported", ... |
diff --git a/src/plugins/WebOfTrust/Identity.java b/src/plugins/WebOfTrust/Identity.java
index a9366ebe..0a5b2bea 100644
--- a/src/plugins/WebOfTrust/Identity.java
+++ b/src/plugins/WebOfTrust/Identity.java
@@ -1,1007 +1,1010 @@
/* This code is part of WoT, a plugin for Freenet. It is distributed
* under the GNU Ge... | true | true | public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof Identity)) {
return false;
}
Identity other = (Identity)obj;
if (!getID().equals(other.getID())) {
return false;
}
if (!getRequestURI().equals(other.getRequestURI())) {
return false;
}
... | public boolean equals(Object obj) {
if (obj == this) {
return true;
}
// - We need to return false when someone tries to compare an OwnIdentity to a non-own one.
// - We must also make sure that OwnIdentity can safely use this equals() function as foundation.
// Both cases are ensured by this check:
... |
diff --git a/src/test/java/javax/jmdns/test/DNSStatefulObjectTest.java b/src/test/java/javax/jmdns/test/DNSStatefulObjectTest.java
index 02fcaff..599b00c 100644
--- a/src/test/java/javax/jmdns/test/DNSStatefulObjectTest.java
+++ b/src/test/java/javax/jmdns/test/DNSStatefulObjectTest.java
@@ -1,82 +1,82 @@
/**
*
*/... | false | true | public void testWaitAndSignal() throws InterruptedException {
WaitingThread thread = new WaitingThread(_semaphore, 0);
thread.start();
Thread.sleep(1);
assertFalse("The thread should be waiting.", thread.hasFinished());
_semaphore.signalEvent();
Thread.sleep(1);
... | public void testWaitAndSignal() throws InterruptedException {
WaitingThread thread = new WaitingThread(_semaphore, 0);
thread.start();
Thread.sleep(2);
assertFalse("The thread should be waiting.", thread.hasFinished());
_semaphore.signalEvent();
Thread.sleep(2);
... |
diff --git a/src/main/java/com/intelix/digihdmi/app/views/PresetLoadListView.java b/src/main/java/com/intelix/digihdmi/app/views/PresetLoadListView.java
index b21fef2..a83ffdc 100644
--- a/src/main/java/com/intelix/digihdmi/app/views/PresetLoadListView.java
+++ b/src/main/java/com/intelix/digihdmi/app/views/PresetLoadL... | true | true | protected void initializeHomePanel() {
super.initializeHomePanel();
IconImageButton matrixView = new IconImageButton("MatrixIconBtn");
matrixView.setAction(
Application.getInstance().getContext().getActionMap().get("showMatrixView")
);
this.homePanel.add(matrixV... | protected void initializeHomePanel() {
super.initializeHomePanel();
IconImageButton matrixView = new IconImageButton("MatrixIconBtn");
matrixView.setAction(
Application.getInstance().getContext().getActionMap().get("showAndLoadMatrixView")
);
this.homePanel.add(... |
diff --git a/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java b/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java
index fa6645432..14103da5c 100644
--- a/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java
+++ b/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java
@@ ... | true | true | public int read() throws IOException {
if (decoded.length==0)
return -1; // EOF
if (pos==decoded.length) {
din.readFully(encoded);
decoded = Base64.decodeBase64(encoded);
pos = 0;
}
return (decoded[pos++])&0xFF;
}
| public int read() throws IOException {
if (decoded.length==0)
return -1; // EOF
if (pos==decoded.length) {
din.readFully(encoded);
decoded = Base64.decodeBase64(encoded);
if (decoded.length==0) return -1; // EOF
pos = 0;
}
... |
diff --git a/src/cytoscape/actions/CreateNetworkViewAction.java b/src/cytoscape/actions/CreateNetworkViewAction.java
index b33baacb5..4922258d6 100644
--- a/src/cytoscape/actions/CreateNetworkViewAction.java
+++ b/src/cytoscape/actions/CreateNetworkViewAction.java
@@ -1,53 +1,53 @@
package cytoscape.actions;
import... | false | true | public static void createViewFromCurrentNetwork(CyNetwork cyNetwork) {
System.out.println("Secondary View Threshold: "
+ CytoscapeInit.getSecondaryViewThreshold());
NumberFormat formatter = new DecimalFormat("#,###,###");
if (cyNetwork.getNodeCount()
> CytoscapeI... | public static void createViewFromCurrentNetwork(CyNetwork cyNetwork) {
NumberFormat formatter = new DecimalFormat("#,###,###");
if (cyNetwork.getNodeCount()
> CytoscapeInit.getSecondaryViewThreshold()) {
int n = JOptionPane.showConfirmDialog(Cytoscape.getDesktop(),
... |
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/area/impl/RowArea.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/area/impl/RowArea.java
index 45b39714b..1bf72c150 100644
--- a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/bi... | true | true | RowArea( IRowContent row )
{
super( row );
style.setProperty( IStyle.STYLE_BORDER_TOP_WIDTH, IStyle.NUMBER_0 );
style.setProperty( IStyle.STYLE_BORDER_LEFT_WIDTH, IStyle.NUMBER_0 );
style.setProperty( IStyle.STYLE_BORDER_RIGHT_WIDTH, IStyle.NUMBER_0 );
style.setProperty( IStyle.STYLE_BORDER_BOTTOM_WIDTH, IS... | RowArea( IRowContent row )
{
super( row );
style.setProperty( IStyle.STYLE_BORDER_TOP_WIDTH, IStyle.NUMBER_0 );
style.setProperty( IStyle.STYLE_BORDER_LEFT_WIDTH, IStyle.NUMBER_0 );
style.setProperty( IStyle.STYLE_BORDER_RIGHT_WIDTH, IStyle.NUMBER_0 );
style.setProperty( IStyle.STYLE_BORDER_BOTTOM_WIDTH, IS... |
diff --git a/dspace/src/org/dspace/content/InstallItem.java b/dspace/src/org/dspace/content/InstallItem.java
index b1b62c5dd..07842a1b8 100644
--- a/dspace/src/org/dspace/content/InstallItem.java
+++ b/dspace/src/org/dspace/content/InstallItem.java
@@ -1,178 +1,178 @@
/*
* InstallItem.java
*
* Version: $Revision... | true | true | public static Item installItem(Context c, InProgressSubmission is, EPerson e)
throws SQLException, IOException, AuthorizeException
{
Item item = is.getItem();
// create accession date
DCDate now = DCDate.getCurrent();
item.addDC("date", "accessioned", null, now.t... | public static Item installItem(Context c, InProgressSubmission is, EPerson e)
throws SQLException, IOException, AuthorizeException
{
Item item = is.getItem();
// create accession date
DCDate now = DCDate.getCurrent();
item.addDC("date", "accessioned", null, now.t... |
diff --git a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarCheckboxButton.java b/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarCheckboxButton.java
index ec755fe..a9192a4 100644
--- a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/fi... | false | true | public SWTBotToolbarCheckboxButton toggle() {
log.debug(MessageFormat.format("Clicking on {0}", this)); //$NON-NLS-1$
assertEnabled();
notify(SWT.MouseEnter);
notify(SWT.MouseMove);
notify(SWT.Activate);
notify(SWT.MouseDown);
notify(SWT.MouseUp);
notify(SWT.Selection);
notify(SWT.MouseHover);
noti... | public SWTBotToolbarCheckboxButton toggle() {
log.debug(MessageFormat.format("Clicking on {0}", this)); //$NON-NLS-1$
assertEnabled();
internalToggle();
notify(SWT.MouseEnter);
notify(SWT.MouseMove);
notify(SWT.Activate);
notify(SWT.MouseDown);
notify(SWT.MouseUp);
notify(SWT.Selection);
notify(SWT... |
diff --git a/src/net/reichholf/dreamdroid/activities/FragmentMainActivity.java b/src/net/reichholf/dreamdroid/activities/FragmentMainActivity.java
index 07c111a8..85d315f7 100644
--- a/src/net/reichholf/dreamdroid/activities/FragmentMainActivity.java
+++ b/src/net/reichholf/dreamdroid/activities/FragmentMainActivity.ja... | false | true | private void initViews(){
setContentView(R.layout.dualpane);
if(findViewById(R.id.detail_view) != null){
mMultiPane = true;
} else {
mMultiPane = false;
}
//Force Multipane Layout if User selected the option for it
if(!mMultiPane && DreamDroid.SP.getBoolean("force_multipane", false)){
setConte... | private void initViews(){
setContentView(R.layout.dualpane);
if(findViewById(R.id.detail_view) != null){
mMultiPane = true;
} else {
mMultiPane = false;
}
//Force Multipane Layout if User selected the option for it
if(!mMultiPane && DreamDroid.SP.getBoolean("force_multipane", false)){
setConte... |
diff --git a/src/com/oresomecraft/maps/battles/maps/Equator.java b/src/com/oresomecraft/maps/battles/maps/Equator.java
index 97271b2..4b81d41 100644
--- a/src/com/oresomecraft/maps/battles/maps/Equator.java
+++ b/src/com/oresomecraft/maps/battles/maps/Equator.java
@@ -1,117 +1,110 @@
package com.oresomecraft.maps.batt... | false | true | public void applyInventory(final BattlePlayer p) {
Inventory i = p.getInventory();
ItemStack BLUE_GLASS = new ItemStack(Material.GLASS, (short) 11);
ItemStack RED_GLASS = new ItemStack(Material.GLASS, (short) 14);
ItemStack LEATHER_CHESTPLATE = new ItemStack(Material.LEATHER_CHESTPL... | public void applyInventory(final BattlePlayer p) {
Inventory i = p.getInventory();
ItemStack BLUE_GLASS = new ItemStack(Material.GLASS, 1, (short) 11);
ItemStack RED_GLASS = new ItemStack(Material.GLASS, 1, (short) 14);
ItemStack LEATHER_CHESTPLATE = new ItemStack(Material.LEATHER_C... |
diff --git a/org.keplerproject.ldt.core/src/org/keplerproject/ldt/core/luadoc/LuadocGenerator.java b/org.keplerproject.ldt.core/src/org/keplerproject/ldt/core/luadoc/LuadocGenerator.java
index cdbc17d..50092d4 100644
--- a/org.keplerproject.ldt.core/src/org/keplerproject/ldt/core/luadoc/LuadocGenerator.java
+++ b/org.k... | true | true | public Map<String, ILuaEntry> generate(String fileName) {
final Map<String, ILuaEntry> m = new HashMap<String, ILuaEntry>();
try {
LuaState L = LuaStateFactory.newLuaState();
L.openLibs();
JLuaFileSystem.register(L);
LuaModuleLoader.register(L);
L.pushJavaFunction(new JavaFunction(L) {
@Ove... | public Map<String, ILuaEntry> generate(String fileName) {
final Map<String, ILuaEntry> m = new HashMap<String, ILuaEntry>();
try {
LuaState L = LuaStateFactory.newLuaState();
L.openLibs();
JLuaFileSystem.register(L);
LuaModuleLoader.register(L);
L.pushJavaFunction(new JavaFunction(L) {
@Ove... |
diff --git a/src/main/java/utilits/service/EquipmentService.java b/src/main/java/utilits/service/EquipmentService.java
index 3a082cb..af5ac3b 100644
--- a/src/main/java/utilits/service/EquipmentService.java
+++ b/src/main/java/utilits/service/EquipmentService.java
@@ -1,105 +1,104 @@
package utilits.service;
import... | false | true | public boolean importFile(InputStream is) {
try {
Workbook wb = WorkbookFactory.create(is);
Sheet sheet = wb.getSheetAt(0);
int i = 0;
for (Row row : sheet) {
i++;
if (i > 1) {
int j = 0;
... | public boolean importFile(InputStream is) {
try {
Workbook wb = WorkbookFactory.create(is);
Sheet sheet = wb.getSheetAt(0);
int i = 0;
for (Row row : sheet) {
i++;
if (i > 1) {
Equipment equipment = new Equip... |
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/utils/EditingUtils.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/utils/EditingUtils.java
index 97f929aab..81ac802bc 100644
--- a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/util... | false | true | public static EditingDomain getResourceSetFromEditor(IWorkbenchPart part) {
EditingDomain editingDomain = null;
if (part instanceof IEditingDomainProvider)
editingDomain = ((IEditingDomainProvider)part).getEditingDomain();
if (part instanceof IEditorPart) {
if ((((IEditorPart)part).getAdapter(IEditingDomai... | public static EditingDomain getResourceSetFromEditor(IWorkbenchPart part) {
EditingDomain editingDomain = null;
if (part instanceof IEditingDomainProvider) {
editingDomain = ((IEditingDomainProvider)part).getEditingDomain();
} else {
if (part.getAdapter(IEditingDomainProvider.class) != null)
editingDom... |
diff --git a/src/me/neatmonster/spacertk/plugins/PluginsRequester.java b/src/me/neatmonster/spacertk/plugins/PluginsRequester.java
index 8de3b6a..227d002 100644
--- a/src/me/neatmonster/spacertk/plugins/PluginsRequester.java
+++ b/src/me/neatmonster/spacertk/plugins/PluginsRequester.java
@@ -1,51 +1,47 @@
/*
* This ... | false | true | public void run() {
try {
final URLConnection connection = new URL("http://bukget.org/api/plugins").openConnection();
final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
final StringBuffer stringBuffer = new String... | public void run() {
try {
final URLConnection connection = new URL("http://bukget.org/api/plugins").openConnection();
final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
final StringBuffer stringBuffer = new String... |
diff --git a/src/main/java/com/twilio/sdk/TwilioUtils.java b/src/main/java/com/twilio/sdk/TwilioUtils.java
index 26d6226f3..7cfa68370 100644
--- a/src/main/java/com/twilio/sdk/TwilioUtils.java
+++ b/src/main/java/com/twilio/sdk/TwilioUtils.java
@@ -1,91 +1,91 @@
package com.twilio.sdk;
/*
Copyright (c) 2013 Twil... | true | true | public boolean validateRequest(String expectedSignature, String url, Map<String,String> params){
SecretKeySpec signingKey = new SecretKeySpec(this.authToken.getBytes(), "HmacSHA1");
try {
//initialize the hash algortihm
Mac mac = Mac.getInstance("HmacSHA1");... | public boolean validateRequest(String expectedSignature, String url, Map<String,String> params){
SecretKeySpec signingKey = new SecretKeySpec(this.authToken.getBytes(), "HmacSHA1");
try {
//initialize the hash algorithm
Mac mac = Mac.getInstance("HmacSHA1");... |
diff --git a/src/se/slashat/slashat/service/PersonalService.java b/src/se/slashat/slashat/service/PersonalService.java
index 89649b2..a6ef548 100644
--- a/src/se/slashat/slashat/service/PersonalService.java
+++ b/src/se/slashat/slashat/service/PersonalService.java
@@ -1,59 +1,59 @@
package se.slashat.slashat.service;
... | false | true | public static Personal[] getPersonal() {
// Create static entries for every person.
Personal[] personal = new Personal[4];
personal[0] = new Personal(
"Jezper Söderlund",
R.drawable.jezper,
"kontakt@jezper.se",
"jezperse",
"http://www.jezper.se",
"En glad och bekväm herre, årsmodell 198... | public static Personal[] getPersonal() {
// Create static entries for every person.
Personal[] personal = new Personal[4];
personal[0] = new Personal(
"Jezper S�derlund",
R.drawable.jezper,
"kontakt@jezper.se",
"jezperse",
"http://www.jezper.se",
"En glad och bekv�m herre, �rsmodell 198... |
diff --git a/src/com/ACM/binarycalculator/Utilities/InfixToPostfix.java b/src/com/ACM/binarycalculator/Utilities/InfixToPostfix.java
index 09b4acc..71fd933 100644
--- a/src/com/ACM/binarycalculator/Utilities/InfixToPostfix.java
+++ b/src/com/ACM/binarycalculator/Utilities/InfixToPostfix.java
@@ -1,310 +1,310 @@
packag... | true | true | private static String addImplicitMultiplicationSigns(String expression,
Context context) {
StringBuilder retVal = new StringBuilder();
for (int i = 0; i < expression.length(); i++) {
Character testChar = expression.charAt(i);
if (testChar.equals('x') || testChar.equals('/')
|| testChar.equals('+')... | private static String addImplicitMultiplicationSigns(String expression,
Context context) {
StringBuilder retVal = new StringBuilder();
for (int i = 0; i < expression.length(); i++) {
Character testChar = expression.charAt(i);
if (testChar.equals('x') || testChar.equals('/')
|| testChar.equals('+')... |
diff --git a/org.ollabaca.on.lang.ui/src/org/ollabaca/on/lang/ui/TextHoverProvider.java b/org.ollabaca.on.lang.ui/src/org/ollabaca/on/lang/ui/TextHoverProvider.java
index bde0e73..895be18 100644
--- a/org.ollabaca.on.lang.ui/src/org/ollabaca/on/lang/ui/TextHoverProvider.java
+++ b/org.ollabaca.on.lang.ui/src/org/ollaba... | true | true | protected String getFirstLine(EObject o) {
EModelElement element = null;
if (o instanceof Import) {
Import self = (Import) o;
element = units.getPackage(self);
} else if (o instanceof Instance) {
Instance self = (Instance) o;
element = units.getClassifier(self);
} else if (element instanceof Slot) ... | protected String getFirstLine(EObject o) {
EModelElement element = null;
if (o instanceof Import) {
Import self = (Import) o;
element = units.getPackage(self);
} else if (o instanceof Instance) {
Instance self = (Instance) o;
element = units.getClassifier(self);
} else if (o instanceof Slot) {
S... |
diff --git a/src/java/org/hibernate/tool/hbm2x/HibernateConfigurationExporter.java b/src/java/org/hibernate/tool/hbm2x/HibernateConfigurationExporter.java
index 3b17e754..7a877c3f 100644
--- a/src/java/org/hibernate/tool/hbm2x/HibernateConfigurationExporter.java
+++ b/src/java/org/hibernate/tool/hbm2x/HibernateConfigur... | true | true | public void doStart() throws ExporterException {
PrintWriter pw = null;
File file = null;
try {
if(output==null) {
file = new File(getOutputDirectory(), "hibernate.cfg.xml");
getTemplateHelper().ensureExistence(file);
pw = new PrintWriter(new FileWriter(file) );
getArtifact... | public void doStart() throws ExporterException {
PrintWriter pw = null;
File file = null;
try {
if(output==null) {
file = new File(getOutputDirectory(), "hibernate.cfg.xml");
getTemplateHelper().ensureExistence(file);
pw = new PrintWriter(new FileWriter(file) );
getArtifact... |
diff --git a/cdm/src/test/java/ucar/nc2/dt/grid/TestReadandCountGrib.java b/cdm/src/test/java/ucar/nc2/dt/grid/TestReadandCountGrib.java
index 8ede68781..4e209133a 100644
--- a/cdm/src/test/java/ucar/nc2/dt/grid/TestReadandCountGrib.java
+++ b/cdm/src/test/java/ucar/nc2/dt/grid/TestReadandCountGrib.java
@@ -1,89 +1,89 ... | true | true | public void testRead() throws Exception {
// our grib reader
doOne("grib1/data/","cfs.wmo", 51, 4, 6, 3);
doOne("grib1/data/","eta218.grb", 14, 5, 7, 4);
doOne("grib1/data/","extended.wmo", 8, 6, 10, 4);
doOne("grib1/data/","ensemble.wmo", 24, 16, 18, 10);
// doOne("grib1/data/","ecmf.wmo", 5... | public void testRead() throws Exception {
// our grib reader
doOne("grib1/data/","cfs.wmo", 51, 4, 6, 3);
doOne("grib1/data/","eta218.grb", 14, 5, 7, 4);
doOne("grib1/data/","extended.wmo", 8, 6, 10, 4);
doOne("grib1/data/","ensemble.wmo", 24, 16, 18, 10);
// doOne("grib1/data/","ecmf.wmo", 5... |
diff --git a/src/org/irmacard/androidmanagement/SettingsActivity.java b/src/org/irmacard/androidmanagement/SettingsActivity.java
index e3221aa..6d65de6 100644
--- a/src/org/irmacard/androidmanagement/SettingsActivity.java
+++ b/src/org/irmacard/androidmanagement/SettingsActivity.java
@@ -1,88 +1,88 @@
/**
* Credenti... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_log);
// Show the Up button in the action bar.
if(getActionBar() != null) {
// TODO: workaround for now, figure out what is really going on here.
getActionBar().setDisplayHomeAsUpEna... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_settings);
// Show the Up button in the action bar.
if(getActionBar() != null) {
// TODO: workaround for now, figure out what is really going on here.
getActionBar().setDisplayHomeAs... |
diff --git a/src/net/slipcor/pvparena/classes/PACheck.java b/src/net/slipcor/pvparena/classes/PACheck.java
index e596ea3e..4b07e07f 100644
--- a/src/net/slipcor/pvparena/classes/PACheck.java
+++ b/src/net/slipcor/pvparena/classes/PACheck.java
@@ -1,542 +1,544 @@
package net.slipcor.pvparena.classes;
import org.bukk... | false | true | public static void handleJoin(Arena arena, CommandSender sender, String[] args) {
int priority = 0;
PACheck res = new PACheck();
ArenaModule commModule = null;
for (ArenaModule mod : PVPArena.instance.getAmm().getModules()) {
if (mod.isActive(arena)) {
res = mod.checkJoin(arena, sender, res... | public static void handleJoin(Arena arena, CommandSender sender, String[] args) {
int priority = 0;
PACheck res = new PACheck();
ArenaModule commModule = null;
for (ArenaModule mod : PVPArena.instance.getAmm().getModules()) {
if (mod.isActive(arena)) {
res = mod.checkJoin(arena, sender, res... |
diff --git a/solr/src/java/org/apache/solr/handler/component/TermsComponent.java b/solr/src/java/org/apache/solr/handler/component/TermsComponent.java
index 3386b81bf..1ac33c13a 100644
--- a/solr/src/java/org/apache/solr/handler/component/TermsComponent.java
+++ b/solr/src/java/org/apache/solr/handler/component/TermsCo... | true | true | public void process(ResponseBuilder rb) throws IOException {
SolrParams params = rb.req.getParams();
if (!params.getBool(TermsParams.TERMS, false)) return;
String[] fields = params.getParams(TermsParams.TERMS_FIELD);
NamedList termsResult = new SimpleOrderedMap();
rb.rsp.add("terms", termsResult... | public void process(ResponseBuilder rb) throws IOException {
SolrParams params = rb.req.getParams();
if (!params.getBool(TermsParams.TERMS, false)) return;
String[] fields = params.getParams(TermsParams.TERMS_FIELD);
NamedList termsResult = new SimpleOrderedMap();
rb.rsp.add("terms", termsResult... |
diff --git a/src/contributions/resources/timeline/src/java/edu/mit/simile/yanel/impl/resources/timeline/TimelineResource.java b/src/contributions/resources/timeline/src/java/edu/mit/simile/yanel/impl/resources/timeline/TimelineResource.java
index ec40131ae..e418d7b2a 100644
--- a/src/contributions/resources/timeline/sr... | true | true | private StringBuffer getXHTML() throws Exception {
//java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMM dd yyyy hh:mm:ss z");
//String todaysDate = sdf.format(new java.util.Date());
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMM dd yyyy");
Stri... | private StringBuffer getXHTML() throws Exception {
//java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMM dd yyyy hh:mm:ss z");
//String todaysDate = sdf.format(new java.util.Date());
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMM dd yyyy");
Stri... |
diff --git a/proxy/src/test/java/org/fedoraproject/candlepin/pinsetter/tasks/MigrateOwnerJobTest.java b/proxy/src/test/java/org/fedoraproject/candlepin/pinsetter/tasks/MigrateOwnerJobTest.java
index 219735d67..d16a8ffb1 100644
--- a/proxy/src/test/java/org/fedoraproject/candlepin/pinsetter/tasks/MigrateOwnerJobTest.jav... | true | true | public void execute() throws JobExecutionException {
OwnerClient client = mock(OwnerClient.class);
when(conn.connect(any(Credentials.class),
any(String.class))).thenReturn(client);
ClientResponse<Owner> resp = mock(ClientResponse.class);
when(client.exportOwner(eq("admin"... | public void execute() throws JobExecutionException {
OwnerClient client = mock(OwnerClient.class);
when(conn.connect(any(Credentials.class),
any(String.class))).thenReturn(client);
ClientResponse<Owner> resp = mock(ClientResponse.class);
when(client.exportOwner(eq("admin"... |
diff --git a/src/Code/ChessTable.java b/src/Code/ChessTable.java
index ca0883f..e790af9 100644
--- a/src/Code/ChessTable.java
+++ b/src/Code/ChessTable.java
@@ -1,750 +1,750 @@
package Code;
import java.awt.BorderLayout;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import ja... | false | true | public void changeUI(int a) {
switch (a) {
case 1:
for (int i = 0; i < 64; i++) {
if (table[i] instanceof PieceLabel) {
if (table[i].getPiece() instanceof PawnW) {
table[i].setIcon(new ImageIcon(getClass().ge... | public void changeUI(int a) {
switch (a) {
case 1:
for (int i = 0; i < 64; i++) {
if (table[i] instanceof PieceLabel) {
if (table[i].getPiece() instanceof PawnW) {
table[i].setIcon(new ImageIcon(getClass().ge... |
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index b43cf2a70..506d1ca6f 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -1,1496 +1,1498 @@
/*
* Copyright (C) 2010 The Android Open Source Projec... | true | true | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... |
diff --git a/src/com/shade/lighting/LightMask.java b/src/com/shade/lighting/LightMask.java
index 0828cb0..db17042 100644
--- a/src/com/shade/lighting/LightMask.java
+++ b/src/com/shade/lighting/LightMask.java
@@ -1,164 +1,168 @@
package com.shade.lighting;
import java.util.Arrays;
import java.util.LinkedList;
i... | false | true | private void renderEntities(StateBasedGame game, Graphics g,
LuminousEntity... entities) {
Arrays.sort(entities);
int i = 0;
GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glAlphaFunc(GL11.GL_GREATER, 0);
GL11.glBlendFunc(GL11.GL_DST_ALPHA, GL11.GL_ZE... | private void renderEntities(StateBasedGame game, Graphics g,
LuminousEntity... entities) {
Arrays.sort(entities);
int i = 0;
// GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glEnable(GL11.GL_STENCIL_TEST);
GL11.glStencilFunc(GL11.GL_ALWAYS, 1, 1);
... |
diff --git a/src/com/android/providers/downloads/DownloadNotifier.java b/src/com/android/providers/downloads/DownloadNotifier.java
index df0bf84..0405478 100644
--- a/src/com/android/providers/downloads/DownloadNotifier.java
+++ b/src/com/android/providers/downloads/DownloadNotifier.java
@@ -1,366 +1,368 @@
/*
* Cop... | false | true | private void updateWithLocked(Collection<DownloadInfo> downloads) {
final Resources res = mContext.getResources();
// Cluster downloads together
final Multimap<String, DownloadInfo> clustered = ArrayListMultimap.create();
for (DownloadInfo info : downloads) {
final Strin... | private void updateWithLocked(Collection<DownloadInfo> downloads) {
final Resources res = mContext.getResources();
// Cluster downloads together
final Multimap<String, DownloadInfo> clustered = ArrayListMultimap.create();
for (DownloadInfo info : downloads) {
final Strin... |
diff --git a/src/me/ThaH3lper/com/SkillsCollection/SkillSwarm.java b/src/me/ThaH3lper/com/SkillsCollection/SkillSwarm.java
index 2b78242..754b07a 100644
--- a/src/me/ThaH3lper/com/SkillsCollection/SkillSwarm.java
+++ b/src/me/ThaH3lper/com/SkillsCollection/SkillSwarm.java
@@ -1,67 +1,67 @@
package me.ThaH3lper.com.Ski... | true | true | public static void ExecuteSwarm(LivingEntity l, String skill, Player player)
{
String[] base = skill.split(" ");
String[] data = base[1].split(":");
float chance = Float.parseFloat(base[base.length-1]);
if(EpicBoss.r.nextFloat() < chance)
{
if(SkillHandler.CheckHealth(base[base.length-2], l, skill))
{... | public static void ExecuteSwarm(LivingEntity l, String skill, Player player)
{
String[] base = skill.split(" ");
String[] data = base[1].split(":");
float chance = Float.parseFloat(base[base.length-1]);
if(EpicBoss.r.nextFloat() < chance)
{
if(SkillHandler.CheckHealth(base[base.length-2], l, skill))
{... |
diff --git a/src/sai_cas/servlet/CrossMatchServlet.java b/src/sai_cas/servlet/CrossMatchServlet.java
index fe2401e..e6c20a3 100644
--- a/src/sai_cas/servlet/CrossMatchServlet.java
+++ b/src/sai_cas/servlet/CrossMatchServlet.java
@@ -1,211 +1,211 @@
package sai_cas.servlet;
import java.io.IOException;
import java... | true | true | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException
{
PrintWriter out = response.getWriter();
response.setContentType("text/xml");
String cat = null, tab = null, radString = null;
List<FileItem> fileItemList = null;
FileItemFac... | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException
{
PrintWriter out = response.getWriter();
response.setContentType("text/xml");
String cat = null, tab = null, radString = null;
List<FileItem> fileItemList = null;
FileItemFac... |
diff --git a/runtime/android/java/src/org/xwalk/core/XWalkContent.java b/runtime/android/java/src/org/xwalk/core/XWalkContent.java
index 79003184..7b8f143e 100644
--- a/runtime/android/java/src/org/xwalk/core/XWalkContent.java
+++ b/runtime/android/java/src/org/xwalk/core/XWalkContent.java
@@ -1,202 +1,204 @@
// Copyr... | false | true | public XWalkContent(Context context, AttributeSet attrs, XWalkView xwView) {
super(context, attrs);
// Initialize the WebContensDelegate.
mXWalkView = xwView;
mContentsClientBridge = new XWalkContentsClientBridge(mXWalkView);
mXWalkContentsDelegateAdapter = new XWalkWebConte... | public XWalkContent(Context context, AttributeSet attrs, XWalkView xwView) {
super(context, attrs);
// Initialize the WebContensDelegate.
mXWalkView = xwView;
mContentsClientBridge = new XWalkContentsClientBridge(mXWalkView);
mXWalkContentsDelegateAdapter = new XWalkWebConte... |
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/NetworkCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/NetworkCommands.java
index 218472b6..e2d321d1 100644
--- a/cli/src/main/java/com/vmware/bdd/cli/commands/NetworkCommands.java
+++ b/cli/src/main/java/com/vmware/bdd/cli/commands/NetworkCommand... | true | true | public void addNetwork(
@CliOption(key = { "name" }, mandatory = true, help = "Customize the network's name") final String name,
@CliOption(key = { "portGroup" }, mandatory = true, help = "The port group name") final String portGroup,
@CliOption(key = { "dhcp" }, mandatory = false, unspeci... | public void addNetwork(
@CliOption(key = { "name" }, mandatory = true, help = "Customize the network's name") final String name,
@CliOption(key = { "portGroup" }, mandatory = true, help = "The port group name") final String portGroup,
@CliOption(key = { "dhcp" }, mandatory = false, unspeci... |
diff --git a/ext/java/base32/Base32Encoder.java b/ext/java/base32/Base32Encoder.java
index 159afd1..e94d7e5 100644
--- a/ext/java/base32/Base32Encoder.java
+++ b/ext/java/base32/Base32Encoder.java
@@ -1,90 +1,89 @@
/*
Copyright (c) 2011 The Skunkworx
Permission is hereby granted, free of charge, to any person obta... | false | true | public static String encode(byte[] buff) {
int next;
int current;
int iBase = 0;
int digit = 0;
int i = 0;
int outputLength = quintetCount(buff) * 8;
StringBuilder builder = new StringBuilder(outputLength);
while(i < buff.length) {
current = get... | public static String encode(byte[] buff) {
int next;
int current;
int iBase = 0;
int digit = 0;
int i = 0;
int outputLength = quintetCount(buff) * 8;
StringBuilder builder = new StringBuilder(outputLength);
while(i < buff.length) {
current = get... |
diff --git a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/SingleActionTimerData.java b/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/SingleActionTimerData.java
index a9444ee9c..b56c4dba4 100644
--- a/openejb3/container/openejb-core/src/main/java/org/apache/op... | true | true | public Trigger initializeTrigger() {
SimpleTrigger simpleTrigger = new SimpleTrigger();
Date startTime = new Date();
simpleTrigger.setStartTime(startTime);
simpleTrigger.setRepeatInterval(expiration.getTime() - startTime.getTime());
simpleTrigger.setRepeatCount(1);
re... | public Trigger initializeTrigger() {
final SimpleTrigger simpleTrigger = new SimpleTrigger();
simpleTrigger.setStartTime(expiration);
return simpleTrigger;
}
|
diff --git a/framework/src/com/phonegap/CameraLauncher.java b/framework/src/com/phonegap/CameraLauncher.java
index 0fdb08a4..9dd5d0c1 100755
--- a/framework/src/com/phonegap/CameraLauncher.java
+++ b/framework/src/com/phonegap/CameraLauncher.java
@@ -1,500 +1,502 @@
/*
Licensed to the Apache Software Foundatio... | true | true | public void onActivityResult(int requestCode, int resultCode, Intent intent) {
// Get src and dest types from request code
int srcType = (requestCode/16) - 1;
int destType = (requestCode % 16) - 1;
// If CAMERA
if (srcType == CAMERA) {
// If imag... | public void onActivityResult(int requestCode, int resultCode, Intent intent) {
// Get src and dest types from request code
int srcType = (requestCode/16) - 1;
int destType = (requestCode % 16) - 1;
// If CAMERA
if (srcType == CAMERA) {
// If imag... |
diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/ClickListener.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/ClickListener.java
index 34c1d9770..b7e50744b 100644
--- a/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/ClickListener.java
+++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/ClickListener.java... | true | true | public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
if (pointer == pressedPointer) {
if (!cancelled) {
over = isOver(event.getListenerActor(), x, y);
if (over && pointer == 0 && this.button != -1 && button != this.button) over = false;
if (over) {
long time = TimeU... | public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
if (pointer == pressedPointer) {
if (!cancelled) {
boolean touchUpOver = isOver(event.getListenerActor(), x, y);
// Ignore touch up if the wrong mouse button.
if (touchUpOver && pointer == 0 && this.button != -1 && but... |
diff --git a/api/src/main/java/org/openmrs/PersonAddress.java b/api/src/main/java/org/openmrs/PersonAddress.java
index 73c5b2b3..bb3a190f 100644
--- a/api/src/main/java/org/openmrs/PersonAddress.java
+++ b/api/src/main/java/org/openmrs/PersonAddress.java
@@ -1,641 +1,641 @@
/**
* The contents of this file are subjec... | true | true | public boolean equalsContent(PersonAddress otherAddress) {
boolean returnValue = true;
// these are the methods to compare. All are expected to be Strings
String[] methods = { "getAddress1", "getAddress2", "getAddress3", "getAddress4", "getAddress5", "getCityVillage",
"getNeighborhoodCell", "getCoun... | public boolean equalsContent(PersonAddress otherAddress) {
boolean returnValue = true;
// these are the methods to compare. All are expected to be Strings
String[] methods = { "getAddress1", "getAddress2", "getAddress3", "getAddress4", "getAddress5", "getAddress6",
"getCityVillage", "getCountyDistri... |
diff --git a/utils/src/org/jackie/utils/Assert.java b/utils/src/org/jackie/utils/Assert.java
index d6feeea..fc25ca0 100755
--- a/utils/src/org/jackie/utils/Assert.java
+++ b/utils/src/org/jackie/utils/Assert.java
@@ -1,119 +1,119 @@
package org.jackie.utils;
/**
* @author Patrik Beno
*/
@SuppressWarnings({"Thr... | true | true | static public <T> T typecast(Object o, Class<T> expected) {
if (o == null) {
return null;
}
if (!expected.isAssignableFrom(o.getClass())) {
throw new ClassCastException(String.format(
"Incompatible types: Expected %s, found: %s",
expected.getName(), o.getClass().getName()));
}
return (T) o;
... | static public <T> T typecast(Object o, Class<T> expected) {
if (o == null) {
return null;
}
if (!expected.isAssignableFrom(o.getClass())) {
throw new ClassCastException(String.format(
"Incompatible types. Expected: %s, found: %s",
expected.getName(), o.getClass().getName()));
}
return (T) o;... |
diff --git a/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java b/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java
index 7e727fd..f8f4bbd 100644
--- a/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java
+++ b/src/main/java/ch/ethz/bsse/indelfixer/minimal/Start.java
@@ -1,467 +1,467 @@
/**
* Copyri... | true | true | public void doMain(String[] args) {
try {
CmdLineParser parser = new CmdLineParser(this);
parser.setUsageWidth(80);
try {
parser.parseArgument(args);
if (this.version) {
System.out.println("InDelFixer version: " + Start... | public void doMain(String[] args) {
try {
CmdLineParser parser = new CmdLineParser(this);
parser.setUsageWidth(80);
try {
parser.parseArgument(args);
if (this.version) {
System.out.println("InDelFixer version: " + Start... |
diff --git a/onebusaway-nyc-webapp/src/main/java/org/onebusaway/nyc/webapp/actions/GaAction.java b/onebusaway-nyc-webapp/src/main/java/org/onebusaway/nyc/webapp/actions/GaAction.java
index 0ac087781..eab63cb58 100644
--- a/onebusaway-nyc-webapp/src/main/java/org/onebusaway/nyc/webapp/actions/GaAction.java
+++ b/onebusa... | false | true | public String execute() throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
String domainName = request.getServerName();
if (isEmpty(domainName)) {
domainName = "";
}
// Get the re... | public String execute() throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
String domainName = request.getServerName();
if (isEmpty(domainName)) {
domainName = "";
}
// Get the re... |
diff --git a/src/directtalkserver/MainClass.java b/src/directtalkserver/MainClass.java
index fb3915c..5c0efad 100644
--- a/src/directtalkserver/MainClass.java
+++ b/src/directtalkserver/MainClass.java
@@ -1,58 +1,57 @@
package directtalkserver;
import java.io.IOException;
import java.io.OutputStream;
import java.... | false | true | public static void main(String[] args)
{
ServerSocket ssocket = null;
Socket connection = null;
OutputStream client = null;
int ch = 0;
if (args.length != 1)
{
System.out.println("Wrong number of args (takes 1).");
return;
}
try
{
ssocket = new ServerSocket(Integer.parseInt(args[0]));
}
... | public static void main(String[] args)
{
ServerSocket ssocket = null;
Socket connection = null;
OutputStream client = null;
int ch = 0;
if (args.length != 1)
{
System.out.println("Wrong number of args (takes 1).");
return;
}
try
{
ssocket = new ServerSocket(Integer.parseInt(args[0]));
}
... |
diff --git a/maven-amps-plugin/src/test/java/com/atlassian/maven/plugins/amps/TestMavenGoalsHomeZip.java b/maven-amps-plugin/src/test/java/com/atlassian/maven/plugins/amps/TestMavenGoalsHomeZip.java
index b29a9070..14104151 100644
--- a/maven-amps-plugin/src/test/java/com/atlassian/maven/plugins/amps/TestMavenGoalsHome... | true | true | public void setup(){
//Create the temp dir
final File sysTempDir = new File(System.getProperty("java.io.tmpdir"));
String dirName = UUID.randomUUID().toString();
tempDir = new File(sysTempDir, dirName);
productDir = new File(tempDir,PROJECT_ID);
tempResourcesDir = new... | public void setup(){
//Create the temp dir
final File sysTempDir = new File("target");
String dirName = UUID.randomUUID().toString();
tempDir = new File(sysTempDir, dirName);
productDir = new File(tempDir,PROJECT_ID);
tempResourcesDir = new File(productDir,TMP_RESOURC... |
diff --git a/src/test/java/org/pingles/cascading/protobuf/ProtobufFlowTest.java b/src/test/java/org/pingles/cascading/protobuf/ProtobufFlowTest.java
index 371818e..ab28c50 100644
--- a/src/test/java/org/pingles/cascading/protobuf/ProtobufFlowTest.java
+++ b/src/test/java/org/pingles/cascading/protobuf/ProtobufFlowTest.... | true | true | public void shouldHandleRepeatedFields() throws IOException {
String inputFile = "./tmp/test/data/small.seq";
String outputDir = "./tmp/test/output/names-out";
Messages.Person strongbad = personBuilder().setId(456).setName("strongbad").build();
Messages.Person homestar = personBuild... | public void shouldHandleRepeatedFields() throws IOException {
String inputFile = "./tmp/test/data/small.seq";
String outputDir = "./tmp/test/output/names-out";
Messages.Person strongbad = personBuilder().setId(456).setName("strongbad").build();
Messages.Person homestar = personBuild... |
diff --git a/src/main/java/servlet/TestLampServlet.java b/src/main/java/servlet/TestLampServlet.java
index e001986..ded6297 100644
--- a/src/main/java/servlet/TestLampServlet.java
+++ b/src/main/java/servlet/TestLampServlet.java
@@ -1,104 +1,104 @@
package main.java.servlet;
import java.io.IOException;
import ja... | false | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String data_value_str = request.getParameter("data_value");
// data_value_str = data_value_str.toLowerCase();
// Convert string to corresponding int 0-off 1-on
int ... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String data_value_str = request.getParameter("data_value");
// data_value_str = data_value_str.toLowerCase();
// Convert string to corresponding int 0-off 1-on
int ... |
diff --git a/src/java/org/apache/hadoop/mapred/JobTrackerInfoServer.java b/src/java/org/apache/hadoop/mapred/JobTrackerInfoServer.java
index 9cb2128d1..fdd37e291 100644
--- a/src/java/org/apache/hadoop/mapred/JobTrackerInfoServer.java
+++ b/src/java/org/apache/hadoop/mapred/JobTrackerInfoServer.java
@@ -1,117 +1,117 @@... | true | true | public JobTrackerInfoServer(JobTracker jobTracker, int port) throws IOException {
this.jobTracker = jobTracker;
this.server = new org.mortbay.jetty.Server();
URL url = JobTrackerInfoServer.class.getClassLoader().getResource("webapps");
String path = url.getPath();
if (WINDOWS && path.startsWith("... | public JobTrackerInfoServer(JobTracker jobTracker, int port) throws IOException {
this.jobTracker = jobTracker;
this.server = new org.mortbay.jetty.Server();
URL url = JobTrackerInfoServer.class.getClassLoader().getResource("webapps");
String path = url.getPath();
if (WINDOWS && path.startsWith("... |
diff --git a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java
index 12cb7e23..6c96ebff 100644
--- a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/util/MetadataWriter.java
+++ b/servic... | false | true | public Document getMetaData(IDPConfig config) throws RuntimeException {
//Return as text/xml
try {
Crypto crypto = CertsUtils.createCrypto(config.getCertificate());
ByteArrayOutputStream bout = new ByteArrayOutputStream(4096);
Writer stre... | public Document getMetaData(IDPConfig config) throws RuntimeException {
//Return as text/xml
try {
Crypto crypto = CertsUtils.createCrypto(config.getCertificate());
ByteArrayOutputStream bout = new ByteArrayOutputStream(4096);
Writer stre... |
diff --git a/PopulateNext/Solution.java b/PopulateNext/Solution.java
index bbb4333..b7b9f6a 100644
--- a/PopulateNext/Solution.java
+++ b/PopulateNext/Solution.java
@@ -1,58 +1,64 @@
/**
* Definition for binary tree with next pointer.
* public class TreeLinkNode {
* int val;
* TreeLinkNode left, right,... | false | true | public void connect(TreeLinkNode root) {
// Start typing your Java solution below
// DO NOT write main() function
TreeLinkNode parent = root;
TreeLinkNode nextParent = null;
while(parent != null && nextParent != null) {
while(parent != null) {
if(p... | public void connect(TreeLinkNode root) {
// Start typing your Java solution below
// DO NOT write main() function
TreeLinkNode parent = root;
TreeLinkNode nextParent = null;
while(parent != null || nextParent != null) {
while(parent != null) {
if(p... |
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
index 8a20205..eb2f29c 100644
--- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
+++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
@@ -1,186 +1,187 @@
package uk.ac.gla.dcs.tp3.w.algorithm;
import java.util.Lin... | false | true | public Graph(League l, Team t) {
if (l == null || t == null)
return;
// Number of team nodes is one less than total number of teams.
// The team nodes do not include the team being tested for elimination.
int teamTotal = l.getTeams().length;
// The r-combination of teamTotal for length 2 is the number of ... | public Graph(League l, Team t) {
if (l == null || t == null)
return;
// Number of team nodes is one less than total number of teams.
// The team nodes do not include the team being tested for elimination.
int teamTotal = l.getTeams().length;
// The r-combination of teamTotal for length 2 is the number of ... |
diff --git a/omod/src/main/java/org/openmrs/module/appointment/web/DWRAppointmentService.java b/omod/src/main/java/org/openmrs/module/appointment/web/DWRAppointmentService.java
index e8d2864..4fa0843 100644
--- a/omod/src/main/java/org/openmrs/module/appointment/web/DWRAppointmentService.java
+++ b/omod/src/main/java/o... | false | true | public List<AppointmentBlockData> getAppointmentBlocks(String fromDate, String toDate, Integer locationId)
throws ParseException {
List<AppointmentBlock> appointmentBlockList = new ArrayList<AppointmentBlock>();
List<AppointmentBlockData> appointmentBlockDatalist = new ArrayList<AppointmentBlockData>();
... | public List<AppointmentBlockData> getAppointmentBlocks(String fromDate, String toDate, Integer locationId)
throws ParseException {
List<AppointmentBlock> appointmentBlockList = new ArrayList<AppointmentBlock>();
List<AppointmentBlockData> appointmentBlockDatalist = new ArrayList<AppointmentBlockData>();
... |
diff --git a/src/com/possebom/mypharmacy/GetMedicine.java b/src/com/possebom/mypharmacy/GetMedicine.java
index 4d23521..640e5d1 100644
--- a/src/com/possebom/mypharmacy/GetMedicine.java
+++ b/src/com/possebom/mypharmacy/GetMedicine.java
@@ -1,83 +1,83 @@
package com.possebom.mypharmacy;
import org.apache.http.clien... | false | true | protected void onPostExecute(Void result) {
super.onPostExecute(result);
Medicine medicine = new Medicine();
try {
medicine.setBrandName(json.getString("brandName"));
medicine.setDrug(json.getString("drug"));
medicine.setConcentration(json.getString("concentration"));
medicine.setForm(json.getStri... | protected void onPostExecute(Void result) {
super.onPostExecute(result);
Medicine medicine = new Medicine();
try {
medicine.setBrandName(json.getString("brandName"));
medicine.setDrug(json.getString("drug"));
medicine.setConcentration(json.getString("concentration"));
medicine.setForm(json.getStri... |
diff --git a/src/com/dmdirc/addons/dcc/DCCSendWindow.java b/src/com/dmdirc/addons/dcc/DCCSendWindow.java
index 99f354ed..b3248841 100644
--- a/src/com/dmdirc/addons/dcc/DCCSendWindow.java
+++ b/src/com/dmdirc/addons/dcc/DCCSendWindow.java
@@ -1,383 +1,383 @@
/*
* Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack... | false | true | public void actionPerformed(final ActionEvent e) {
if (e.getActionCommand().equals("Cancel")) {
if (dcc.getType() == DCCSend.TransferType.SEND) {
button.setText("Resend");
} else {
button.setText("Close Window");
}
status.setTex... | public void actionPerformed(final ActionEvent e) {
if (e.getActionCommand().equals("Cancel")) {
if (dcc.getType() == DCCSend.TransferType.SEND) {
button.setText("Resend");
} else {
button.setText("Close Window");
}
status.setTex... |
diff --git a/helloworld-mbean/helloworld-mbean-webapp/src/main/java/org/jboss/as/quickstarts/mbeanhelloworld/util/CDIExtension.java b/helloworld-mbean/helloworld-mbean-webapp/src/main/java/org/jboss/as/quickstarts/mbeanhelloworld/util/CDIExtension.java
index ec7b86bf1..1786ddc48 100644
--- a/helloworld-mbean/helloworld... | true | true | public static <T> T getBean(Class<T> beanType) {
final Bean<T> bean = (Bean<T>) beanManager.getBeans(beanType).iterator().next();
final CreationalContext<T> ctx = beanManager.createCreationalContext(bean);
return (T) beanManager.getReference(bean, bean.getClass(), ctx);
}
| public static <T> T getBean(Class<T> beanType) {
final Bean<T> bean = (Bean<T>) beanManager.getBeans(beanType).iterator().next();
final CreationalContext<T> ctx = beanManager.createCreationalContext(bean);
return (T) beanManager.getReference(bean, beanType, ctx);
}
|
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ToggleBreakpointAdapter.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ToggleBreakpointAdapter.java
index 39ca61d56..15019c6d6 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actio... | false | true | public void toggleWatchpoints(final IWorkbenchPart part, final ISelection finalSelection) {
Job job = new Job("Toggle Watchpoints") { //$NON-NLS-1$
protected IStatus run(IProgressMonitor monitor) {
if (monitor.isCanceled()) {
return Status.CANCEL_STATUS;
... | public void toggleWatchpoints(final IWorkbenchPart part, final ISelection finalSelection) {
Job job = new Job("Toggle Watchpoints") { //$NON-NLS-1$
protected IStatus run(IProgressMonitor monitor) {
if (monitor.isCanceled()) {
return Status.CANCEL_STATUS;
... |
diff --git a/source/ictrobot/gems/magnetic/item/ItemRing.java b/source/ictrobot/gems/magnetic/item/ItemRing.java
index 108ac8e..5581d8f 100644
--- a/source/ictrobot/gems/magnetic/item/ItemRing.java
+++ b/source/ictrobot/gems/magnetic/item/ItemRing.java
@@ -1,128 +1,142 @@
package ictrobot.gems.magnetic.item;
import... | false | true | public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) {
if (Core.isServer()) {
if( itemStack.getTagCompound() == null ) {
itemStack.setTagCompound( new NBTTagCompound( ));
itemStack.getTagCompound().setInteger("Delay", 10);
}
NBTTagCompoun... | public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) {
if (Core.isServer()) {
if( itemStack.getTagCompound() == null ) {
itemStack.setTagCompound( new NBTTagCompound( ));
itemStack.getTagCompound().setInteger("Delay", 10);
}
NBTTagCompoun... |
diff --git a/common/logisticspipes/proxy/ic2/ElectricItemProxy.java b/common/logisticspipes/proxy/ic2/ElectricItemProxy.java
index 9bb4c431..a6f7f512 100644
--- a/common/logisticspipes/proxy/ic2/ElectricItemProxy.java
+++ b/common/logisticspipes/proxy/ic2/ElectricItemProxy.java
@@ -1,94 +1,120 @@
package logisticspipe... | false | true | public void addCraftingRecipes()
{
Ic2Recipes.addCraftingRecipe(new ItemStack(LogisticsPipes.ModuleItem, 1, ItemModule.ELECTRICMANAGER), new Object[] { "CGD", "rBr", "DrC",
Character.valueOf('C'), Items.getItem("electronicCircuit"),
Character.valueOf('D'), Items.getItem("reBattery"),
... | public void addCraftingRecipes()
{
Ic2Recipes.addCraftingRecipe(new ItemStack(LogisticsPipes.ModuleItem, 1, ItemModule.ELECTRICMANAGER), new Object[] { "CGD", "rBr", "DrC",
Character.valueOf('C'), Items.getItem("electronicCircuit"),
Character.valueOf('D'), Items.getItem("reBattery"),
... |
diff --git a/src/org/reader/Instruction.java b/src/org/reader/Instruction.java
index 76e1006..83b3ef6 100644
--- a/src/org/reader/Instruction.java
+++ b/src/org/reader/Instruction.java
@@ -1,83 +1,83 @@
package org.reader;
import org.reader.blocks.ForLoop;
import org.reader.blocks.IfStatement;
import org.reader.b... | false | true | public static Statement getStatementFrom(String statement) throws InvalidStatementException {
if (Method.isValid(statement)) {
return Method.getStatementFrom(statement);
} else if (Declaration.isValid(statement)) {
return Declaration.getStatementFrom(statement);
} els... | public static Statement getStatementFrom(String statement) throws InvalidStatementException {
if (Method.isValid(statement)) {
return Method.getStatementFrom(statement);
} else if (IfStatement.isValid(statement)) {
return IfStatement.getStatementFrom(statement);
} els... |
diff --git a/app/models/events/AddCauseEvent.java b/app/models/events/AddCauseEvent.java
index 6aafdca..b7e3bdd 100644
--- a/app/models/events/AddCauseEvent.java
+++ b/app/models/events/AddCauseEvent.java
@@ -1,47 +1,47 @@
/*
* Copyright (C) 2011 by Eero Laukkanen, Risto Virtanen, Jussi Patana, Juha Viljanen,
* Jo... | true | true | public AddCauseEvent(Cause cause, String causeFrom) {
super("addcauseevent");
this.causeTo = Long.toString(cause.id);
this.text = cause.name.replaceAll(">", ">").replaceAll("<", "<").replaceAll("&", "&");
this.causeFrom = causeFrom;
this.creatorId = cause.creatorId == null ? null : Long.toString(ca... | public AddCauseEvent(Cause cause, String causeFrom) {
super("addcauseevent");
this.causeTo = Long.toString(cause.id);
this.text = cause.name.replaceAll("&", "&").replaceAll(">", ">").replaceAll("<", "<");
this.causeFrom = causeFrom;
this.creatorId = cause.creatorId == null ? null : Long.toString(ca... |
diff --git a/astrid/plugin-src/com/todoroo/astrid/core/LinkActionExposer.java b/astrid/plugin-src/com/todoroo/astrid/core/LinkActionExposer.java
index 02508508d..ca13748b4 100644
--- a/astrid/plugin-src/com/todoroo/astrid/core/LinkActionExposer.java
+++ b/astrid/plugin-src/com/todoroo/astrid/core/LinkActionExposer.java... | false | true | public List<TaskAction> getActionsForTask(Context context, long taskId) {
List<TaskAction> result = new ArrayList<TaskAction>();
if(taskId == -1)
return result;
Task task = PluginServices.getTaskService().fetchById(taskId, Task.ID, Task.TITLE, Task.NOTES);
if (task == nu... | public List<TaskAction> getActionsForTask(Context context, long taskId) {
List<TaskAction> result = new ArrayList<TaskAction>();
if(taskId == -1)
return result;
Task task = PluginServices.getTaskService().fetchById(taskId, Task.ID, Task.TITLE, Task.NOTES);
if (task == nu... |
diff --git a/src/main/java/de/cismet/cids/custom/treeicons/wunda_blau/Alb_baulastIconFactory.java b/src/main/java/de/cismet/cids/custom/treeicons/wunda_blau/Alb_baulastIconFactory.java
index 2336c86c..75240631 100644
--- a/src/main/java/de/cismet/cids/custom/treeicons/wunda_blau/Alb_baulastIconFactory.java
+++ b/src/ma... | false | true | private Icon generateIconFromState(final ObjectTreeNode node) {
Icon result = null;
if (node != null) {
final MetaObject baulastMO = node.getMetaObject(false);
if (baulastMO != null) {
final CidsBean baulastBean = baulastMO.getBean();
result = ... | private Icon generateIconFromState(final ObjectTreeNode node) {
Icon result = null;
if (node != null) {
final MetaObject baulastMO = node.getMetaObject(false);
if (baulastMO != null) {
final CidsBean baulastBean = baulastMO.getBean();
result = ... |
diff --git a/src/net/xemnias/client/AnimationList.java b/src/net/xemnias/client/AnimationList.java
index f5f2a4a..b29afdc 100644
--- a/src/net/xemnias/client/AnimationList.java
+++ b/src/net/xemnias/client/AnimationList.java
@@ -1,33 +1,33 @@
package net.xemnias.client;
import org.newdawn.slick.Image;
public cla... | true | true | private static Image[] playerRrunningRightSprite()
{
Image[] img = new Image[8];
img[0] = CommunityGame.loader.getImageByName("playerAnimationRun.png").getSubImage(0, 0, 32, 64);
img[1] = CommunityGame.loader.getImageByName("playerAnimationRun.png").getSubImage(32, 0, 32, 64);
img[2] = CommunityGame.loader... | private static Image[] playerRrunningRightSprite()
{
Image[] img = new Image[8];
img[0] = CommunityGame.loader.getAnimationByName("playerRunningRight.png").getSubImage(0, 0, 32, 64);
img[1] = CommunityGame.loader.getAnimationByName("playerRunningRight.png").getSubImage(32, 0, 32, 64);
img[2] = CommunityGam... |
diff --git a/src/org/jetbrains/plugins/clojure/psi/util/ClojurePsiUtil.java b/src/org/jetbrains/plugins/clojure/psi/util/ClojurePsiUtil.java
index 6288f88..b597447 100644
--- a/src/org/jetbrains/plugins/clojure/psi/util/ClojurePsiUtil.java
+++ b/src/org/jetbrains/plugins/clojure/psi/util/ClojurePsiUtil.java
@@ -1,256 +... | true | true | public static @Nullable ClBraced findSexpAtCaret(@NotNull Editor editor, boolean previous) {
Project project = editor.getProject();
if (project == null) { return null; }
VirtualFile vfile = FileDocumentManager.getInstance().getFile(editor.getDocument());
if (vfile == null) return null;
PsiFile ... | public static @Nullable ClBraced findSexpAtCaret(@NotNull Editor editor, boolean previous) {
Project project = editor.getProject();
if (project == null) { return null; }
VirtualFile vfile = FileDocumentManager.getInstance().getFile(editor.getDocument());
if (vfile == null) return null;
PsiFile ... |
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/wizards/TargetPage.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/wizards/TargetPage.java
index 2e3cfe856..b0fa710b0 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/wizards/TargetPage.java
+... | false | true | public Control createContents(Composite parent) {
Composite client = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout();
layout.numColumns = 3;
layout.marginWidth = layout.marginHeight = 0;
client.setLayout(layout);
client.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Composi... | public Control createContents(Composite parent) {
Composite client = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout();
layout.numColumns = 3;
layout.marginWidth = layout.marginHeight = 0;
client.setLayout(layout);
client.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Composi... |
diff --git a/src/cz/krtinec/birthday/dto/BContact.java b/src/cz/krtinec/birthday/dto/BContact.java
index 332eafe..2cebb71 100644
--- a/src/cz/krtinec/birthday/dto/BContact.java
+++ b/src/cz/krtinec/birthday/dto/BContact.java
@@ -1,86 +1,86 @@
package cz.krtinec.birthday.dto;
import java.text.DateFormat;
import jav... | true | true | public BContact(String displayName, long id, Date bDay, String lookupKey, String photoId, DateIntegrity integrity) {
super(displayName, id, lookupKey, photoId);
this.bDay = bDay;
this.integrity = integrity;
tempCalendar.setTime(bDay);
bDaySort = SHORT_FORMAT.format(this.bDay);
nextYear = bDaySort.co... | public BContact(String displayName, long id, Date bDay, String lookupKey, String photoId, DateIntegrity integrity) {
super(displayName, id, lookupKey, photoId);
this.bDay = bDay;
this.integrity = integrity;
tempCalendar.setTime(bDay);
bDaySort = SHORT_FORMAT.format(this.bDay);
nextYear = bDaySort.co... |
diff --git a/wayback-core/src/main/java/org/archive/wayback/resourceindex/cdxserver/EmbeddedCDXServerIndex.java b/wayback-core/src/main/java/org/archive/wayback/resourceindex/cdxserver/EmbeddedCDXServerIndex.java
index 35b552dbe..fd09ffefb 100644
--- a/wayback-core/src/main/java/org/archive/wayback/resourceindex/cdxser... | true | true | protected void remoteCdxServerQuery(CDXQuery query, AuthToken authToken, CDXToSearchResultWriter resultWriter) throws IOException, AccessControlException
{
HTTPSeekableLineReader reader = null;
//Do local access/url validation check
String urlkey = selfRedirFilter.getCanonicalizer().urlStringToKey(query.getU... | protected void remoteCdxServerQuery(CDXQuery query, AuthToken authToken, CDXToSearchResultWriter resultWriter) throws IOException, AccessControlException
{
HTTPSeekableLineReader reader = null;
//Do local access/url validation check
String urlkey = selfRedirFilter.getCanonicalizer().urlStringToKey(query.getU... |
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
index 64dc8d63a..ea4cb708f 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/inter... | false | true | protected void createCustomAttributeLayout(Composite composite) {
RepositoryTaskAttribute attribute = this.taskData.getAttribute(BugzillaReportElement.DEPENDSON.getKeyString());
if (attribute != null && !attribute.isReadOnly()) {
Label label = createLabel(composite, attribute);
GridDataFactory.fillDefaults(... | protected void createCustomAttributeLayout(Composite composite) {
RepositoryTaskAttribute attribute = this.taskData.getAttribute(BugzillaReportElement.DEPENDSON.getKeyString());
if (attribute != null && !attribute.isReadOnly()) {
Label label = createLabel(composite, attribute);
GridDataFactory.fillDefaults(... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationPopup.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationPopup.java
index 59fe5e6eb..43fc1e0da 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/Ta... | true | true | protected final Control createDialogArea(final Composite parent) {
getShell().setText(MYLAR_NOTIFICATION_LABEL);
form = toolkit.createForm(parent);
form.getBody().setLayout(new GridLayout());
Section section = toolkit.createSection(form.getBody(), Section.TITLE_BAR);
section.setText(MYLAR_NOTIFICATION_LA... | protected final Control createDialogArea(final Composite parent) {
getShell().setText(MYLAR_NOTIFICATION_LABEL);
form = toolkit.createForm(parent);
form.getBody().setLayout(new GridLayout());
Section section = toolkit.createSection(form.getBody(), Section.TITLE_BAR);
section.setText(MYLAR_NOTIFICATION_LA... |
diff --git a/grails/src/java/org/codehaus/groovy/grails/web/binding/GrailsDataBinder.java b/grails/src/java/org/codehaus/groovy/grails/web/binding/GrailsDataBinder.java
index 7dbabe192..ac84465f6 100644
--- a/grails/src/java/org/codehaus/groovy/grails/web/binding/GrailsDataBinder.java
+++ b/grails/src/java/org/codehaus... | true | true | private Object autoCreatePropertyIfPossible(BeanWrapper bean, String propertyName, Object propertyValue) {
propertyName = PropertyAccessorUtils.canonicalPropertyName(propertyName);
int currentKeyStart = propertyName.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR);
int currentKeyEnd = pro... | private Object autoCreatePropertyIfPossible(BeanWrapper bean, String propertyName, Object propertyValue) {
propertyName = PropertyAccessorUtils.canonicalPropertyName(propertyName);
int currentKeyStart = propertyName.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR);
int currentKeyEnd = pro... |
diff --git a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/ASTEvaluationEngine.java b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/ASTEvaluationEngine.java
index 7bf0d282e..8122d5b25 100644
--- a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/ASTEvaluationE... | true | true | public void evaluate(final ICompiledExpression expression, final IRuntimeContext context, final IJavaThread thread, final IEvaluationListener listener) {
Thread evaluationThread= new Thread(new Runnable() {
public void run() {
fEvaluationCancelled= false;
fEvaluationComplete= false;
EvaluationResult ... | public void evaluate(final ICompiledExpression expression, final IRuntimeContext context, final IJavaThread thread, final IEvaluationListener listener) {
Thread evaluationThread= new Thread(new Runnable() {
public void run() {
fEvaluationCancelled= false;
fEvaluationComplete= false;
EvaluationResult ... |
diff --git a/src/integrationtest/org/asteriskjava/live/OriginateTest.java b/src/integrationtest/org/asteriskjava/live/OriginateTest.java
index d353309f..6018cf3c 100644
--- a/src/integrationtest/org/asteriskjava/live/OriginateTest.java
+++ b/src/integrationtest/org/asteriskjava/live/OriginateTest.java
@@ -1,102 +1,114 ... | false | true | public void testOriginateAsync() throws Exception
{
final String source;
//source = "SIP/1301";
source = "Local/1313@from-local";
server.originateToExtensionAsync(source, "from-local", "1399", 1, timeout,
new CallerId("AJ Test Call", "08003301000"), null,
... | public void testOriginateAsync() throws Exception
{
final String source;
//source = "SIP/1313";
source = "Local/1313@from-local/n";
server.originateToExtensionAsync(source, "from-local", "1399", 1, timeout,
new CallerId("AJ Test Call", "08003301000"), null,
... |
diff --git a/src/infinity/resource/graphics/TisResource2.java b/src/infinity/resource/graphics/TisResource2.java
index d473d48..2556e82 100644
--- a/src/infinity/resource/graphics/TisResource2.java
+++ b/src/infinity/resource/graphics/TisResource2.java
@@ -1,670 +1,671 @@
// Near Infinity - An Infinity Engine Browser ... | false | true | public JComponent makeViewer(ViewableContainer container)
{
if (container instanceof RootPaneContainer) {
rpc = (RootPaneContainer)container;
} else {
rpc = NearInfinity.getInstance();
}
int tileCount = decoder.info().tileCount();
// 1. creating top panel
// 1.1. creating label... | public JComponent makeViewer(ViewableContainer container)
{
if (container instanceof RootPaneContainer) {
rpc = (RootPaneContainer)container;
} else {
rpc = NearInfinity.getInstance();
}
int tileCount = decoder.info().tileCount();
int defaultColumns = Math.min(tileCount, DEFAULT_COL... |
diff --git a/java/src/org/broadinstitute/sting/utils/sam/GATKSAMRecord.java b/java/src/org/broadinstitute/sting/utils/sam/GATKSAMRecord.java
index c4536d176..f3d9edab9 100755
--- a/java/src/org/broadinstitute/sting/utils/sam/GATKSAMRecord.java
+++ b/java/src/org/broadinstitute/sting/utils/sam/GATKSAMRecord.java
@@ -1,4... | true | true | public GATKSAMRecord(SAMRecord record, boolean useOriginalBaseQualities, byte defaultBaseQualities) {
super(null); // it doesn't matter - this isn't used
if ( record == null )
throw new IllegalArgumentException("The SAMRecord argument cannot be null");
mRecord = record;
... | public GATKSAMRecord(SAMRecord record, boolean useOriginalBaseQualities, byte defaultBaseQualities) {
super(null); // it doesn't matter - this isn't used
if ( record == null )
throw new IllegalArgumentException("The SAMRecord argument cannot be null");
mRecord = record;
... |
diff --git a/src/main/java/net/cubespace/RegionShop/Core/Sell.java b/src/main/java/net/cubespace/RegionShop/Core/Sell.java
index fc818b0..4c1c218 100644
--- a/src/main/java/net/cubespace/RegionShop/Core/Sell.java
+++ b/src/main/java/net/cubespace/RegionShop/Core/Sell.java
@@ -1,223 +1,223 @@
package net.cubespace.Regi... | true | true | public static void sell(final ItemStack itemStack, final Items item, Player player, final ItemStorageHolder region) {
player.getInventory().removeItem(itemStack);
ForeignCollection<PlayerOwns> playerList = region.getOwners();
boolean isOwner = false;
for(PlayerOwns player1 : player... | public static void sell(final ItemStack itemStack, final Items item, Player player, final ItemStorageHolder region) {
player.getInventory().removeItem(itemStack);
ForeignCollection<PlayerOwns> playerList = region.getOwners();
boolean isOwner = false;
for(PlayerOwns player1 : player... |
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/preview/PreviewThread.java b/javafx.editor/src/org/netbeans/modules/javafx/preview/PreviewThread.java
index 660d272a..51111ee9 100644
--- a/javafx.editor/src/org/netbeans/modules/javafx/preview/PreviewThread.java
+++ b/javafx.editor/src/org/netbeans/modules/jav... | true | true | public void run() {
try {
//SunToolkit.createNewAppContext();
//System.out.println("Current app context " + AppContext.getAppContext());
ExecutionEngine ee = new EE();
ExecutorTask task = ee.execute("prim", new R(), IOProvider.getDefault().getIO("... | public void run() {
try {
//SunToolkit.createNewAppContext();
//System.out.println("Current app context " + AppContext.getAppContext());
ExecutionEngine ee = new EE();
ExecutorTask task = ee.execute("prim", new R(), IOProvider.getDefault().getIO("... |
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/rdt/ui/wizards/RemoteMakefileWizardHandler.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/rdt/ui/wizards/RemoteMakefileWizardHandler.java
index dedbceea1..b6f6d4232 100644
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/rdt/ui/wizards/RemoteMakefil... | true | true | public void createProject(IProject project, boolean defaults, boolean onFinish, IProgressMonitor monitor) throws CoreException {
try {
monitor.beginTask("", 100); //$NON-NLS-1$
ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager();
ICProjectDescription des = mngr.create... | public void createProject(IProject project, boolean defaults, boolean onFinish, IProgressMonitor monitor) throws CoreException {
try {
monitor.beginTask("", 100); //$NON-NLS-1$
ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager();
ICProjectDescription des = mngr.create... |
diff --git a/RoboTech/src/personnages/Ennemis.java b/RoboTech/src/personnages/Ennemis.java
index 5e817bc..43127b1 100644
--- a/RoboTech/src/personnages/Ennemis.java
+++ b/RoboTech/src/personnages/Ennemis.java
@@ -1,65 +1,65 @@
package personnages;
import jeu.Monde;
import net.phys2d.raw.Collide;
import org.ne... | false | true | public void update(GameContainer container, StateBasedGame game, int delta)
throws SlickException {
super.update(container, game, delta);
// Balle balle;
// if (deplacementAuto < 230 && deplacementAutoDroite) {
// applyForce(100, getVelY());
// deplacementAuto++;
// } else {
// deplacementAutoDroite = fa... | public void update(GameContainer container, StateBasedGame game, int delta)
throws SlickException {
super.update(container, game, delta);
// Balle balle;
// if (deplacementAuto < 230 && deplacementAutoDroite) {
// applyForce(100, getVelY());
// deplacementAuto++;
// } else {
// deplacementAutoDroite = fa... |
diff --git a/src/dctc/java/com/dataiku/dctc/command/grep/ColorGrepPrinter.java b/src/dctc/java/com/dataiku/dctc/command/grep/ColorGrepPrinter.java
index e1d251d..611b8a8 100644
--- a/src/dctc/java/com/dataiku/dctc/command/grep/ColorGrepPrinter.java
+++ b/src/dctc/java/com/dataiku/dctc/command/grep/ColorGrepPrinter.java... | false | true | public void print(String line) {
while(!line.isEmpty()) {
if (matcher.match(line)) {
int begin = matcher.begin(line);
int end = matcher.end(begin, line);
System.out.print(line.substring(0, begin));
System.out.print("\u001B[1;31m" + ... | public void print(String line) {
while(!line.isEmpty()) {
if (matcher.match(line)) {
int begin = matcher.begin(line);
if (begin == -1) {
break;
}
int end = matcher.end(begin, line);
System.out.pri... |
diff --git a/JavaLib/src/com/punchline/javalib/entities/systems/render/RenderSystem.java b/JavaLib/src/com/punchline/javalib/entities/systems/render/RenderSystem.java
index 0a0af91..2bfdeab 100644
--- a/JavaLib/src/com/punchline/javalib/entities/systems/render/RenderSystem.java
+++ b/JavaLib/src/com/punchline/javalib/e... | true | true | protected void process(Entity e) {
Renderable r = (Renderable)e.getComponent(Renderable.class);
if (e.hasComponent(Transform.class)) {
Transform t = (Transform)e.getComponent(Transform.class);
Vector2 pos = Convert.metersToPixels(t.getPosition().cpy());
float angle = t.getRotation();
//H... | protected void process(Entity e) {
Renderable r = (Renderable)e.getComponent(Renderable.class);
if (e.hasComponent(Transform.class)) {
Transform t = (Transform)e.getComponent(Transform.class);
Vector2 pos = Convert.metersToPixels(t.getPosition().cpy());
float angle = t.getRotation();
//H... |
diff --git a/src/main/java/no/hials/muldvarpweb/service/CourseService.java b/src/main/java/no/hials/muldvarpweb/service/CourseService.java
index 84d10cf..d6c5171 100644
--- a/src/main/java/no/hials/muldvarpweb/service/CourseService.java
+++ b/src/main/java/no/hials/muldvarpweb/service/CourseService.java
@@ -1,145 +1,14... | true | true | public Course getCourse(@PathParam("id") Short id) {
// TypedQuery<Course> q = em.createQuery("Select c from Course c where c.id = :id", Course.class);
// q.setParameter("id", id);
// return q.getSingleResult();
// testdata
Course retVal = new Course("Fagnavn")... | public Course getCourse(@PathParam("id") Short id) {
// TypedQuery<Course> q = em.createQuery("Select c from Course c where c.id = :id", Course.class);
// q.setParameter("id", id);
// return q.getSingleResult();
// testdata
Course retVal = new Course("Fagnavn")... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.