Datasets:

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/301/src/Learning/Towers/AI/Commander.java b/301/src/Learning/Towers/AI/Commander.java index a3cd12b..04a9d90 100644 --- a/301/src/Learning/Towers/AI/Commander.java +++ b/301/src/Learning/Towers/AI/Commander.java @@ -1,151 +1,155 @@ package Learning.Towers.AI; import Learning.Towers.Entities.Entity; im...
true
true
public void updateSpecialisation() { influence = Main.INFLUENCE_MAP.getInfluence(commander.getFaction()); int lowX = 0, lowY = 0; boolean foundSomewhere = false; for (int x = 0; x < influence.length; x++) { for (int y = 0; y < influence[x].length; y++) { ...
public void updateSpecialisation() { influence = Main.INFLUENCE_MAP.getInfluence(commander.getFaction()); int lowX = 0, lowY = 0; boolean foundSomewhere = false; for (int x = 0; x < influence.length; x++) { for (int y = 0; y < influence[x].length; y++) { ...
diff --git a/spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/LocallyTransactedTests.java b/spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/LocallyTransactedTests.java index a54a2fbb..55e6e769 100644 --- a/spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/Loca...
false
true
public void testChannelAwareMessageListenerDontExpose() throws Exception { ConnectionFactory mockConnectionFactory = mock(ConnectionFactory.class); Connection mockConnection = mock(Connection.class); final Channel firstChannel = mock(Channel.class); when(firstChannel.isOpen()).thenReturn(true); final Channel...
public void testChannelAwareMessageListenerDontExpose() throws Exception { ConnectionFactory mockConnectionFactory = mock(ConnectionFactory.class); Connection mockConnection = mock(Connection.class); final Channel firstChannel = mock(Channel.class); when(firstChannel.isOpen()).thenReturn(true); final Channel...
diff --git a/plugins/DX8/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java b/plugins/DX8/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java index a406b09..fcaa278 100644 --- a/plugins/DX8/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java +++ b/plugins/DX8/src/java/net/java/games...
true
true
private void addDevice(ArrayList list, long lpDevice, int type, String productName, String instanceName, boolean polled) { Controller c; int category = GET_DIDEVICE_TYPE(type); int subtype = GET_DIDEVICE_SUBTYPE(type); //System.out.println("Category = "+category); if ...
private void addDevice(ArrayList list, long lpDevice, int type, String productName, String instanceName, boolean polled) { Controller c; int category = GET_DIDEVICE_TYPE(type); int subtype = GET_DIDEVICE_SUBTYPE(type); //System.out.println("Category = "+category); if ...
diff --git a/src/main/java/org/bukkit/ChatColor.java b/src/main/java/org/bukkit/ChatColor.java index e1a6d937..6b3f35fb 100644 --- a/src/main/java/org/bukkit/ChatColor.java +++ b/src/main/java/org/bukkit/ChatColor.java @@ -1,248 +1,248 @@ package org.bukkit; import java.util.Map; import java.util.regex.Pattern; ...
true
true
public static String getLastColors(String input) { String result = ""; int lastIndex = -1; int length = input.length(); while ((lastIndex = input.indexOf(COLOR_CHAR, lastIndex + 1)) != -1) { if (lastIndex != length) { char c = input.charAt(lastIndex + 1);...
public static String getLastColors(String input) { String result = ""; int lastIndex = -1; int length = input.length(); while ((lastIndex = input.indexOf(COLOR_CHAR, lastIndex + 1)) != -1) { if (lastIndex < length - 1) { char c = input.charAt(lastIndex + ...
diff --git a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionEnable.java b/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionEnable.java index 2a6e3d7..5cd168f 100644 --- a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionEnable.java +++ b/src/net/invisioncraft/plugins/sa...
false
true
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = localeHandler.getLocale(sender); if(args[0].equalsIgnoreCase("enable") && sender.hasPermission("salesmania.auction.enable")) { if(auctionSettings.getEnabled()) { ...
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = localeHandler.getLocale(sender); if(args[0].equalsIgnoreCase("enable") && sender.hasPermission("salesmania.auction.enable")) { if(auctionSettings.getEnabled()) { ...
diff --git a/LocGoto.java b/LocGoto.java index 9e639ca..5e4c9c3 100644 --- a/LocGoto.java +++ b/LocGoto.java @@ -1,124 +1,124 @@ /* * LocGoto.java * * @author Karl Berger * * Goto functions for localization. Uses potential fields for path following and * obstacle avoidance. */ import javaclient3.*; impor...
true
true
public static void executePath( PlayerClient pc, ArrayList<Point> wps ) { Position2DInterface pos = pc.requestInterfacePosition2D(0,PlayerConstants.PLAYER_OPEN_MODE); RangerInterface ranger = pc.requestInterfaceRanger( 0, PlayerConstants.PLAYER_OPEN_MODE ); double turnrate = 0; double speed = 0; double ome...
public static void executePath( PlayerClient pc, ArrayList<Point> wps ) { Position2DInterface pos = pc.requestInterfacePosition2D(0,PlayerConstants.PLAYER_OPEN_MODE); RangerInterface ranger = pc.requestInterfaceRanger( 0, PlayerConstants.PLAYER_OPEN_MODE ); double turnrate = 0; double speed = 0; double ome...
diff --git a/sources/gomoku/regles/Morpion.java b/sources/gomoku/regles/Morpion.java index cf73821..846b0f7 100644 --- a/sources/gomoku/regles/Morpion.java +++ b/sources/gomoku/regles/Morpion.java @@ -1,19 +1,19 @@ package gomoku.regles ; /** Cette classe décrit les caractéristiques du Morpion classique. */ public...
false
true
public Morpion() { super(3, 3, // plateau 3x3 intersections new RegleCoup(new Moore(), 1), // on joue à distance 1 // dans le voisinage de // Moore des pierres déjà // jouées new RegleAlignement(false, 3, 3)) ; // il peut y avoir // des pierres à // l'extrémité d'un...
public Morpion() { super(3, 3, // plateau 3x3 intersections new RegleCoup(new Moore(), 2), // on joue à distance 2 // dans le voisinage de // Moore des pierres déjà // jouées new RegleAlignement(false, 3, 3)) ; // il peut y avoir // des pierres à // l'extrémité d'un...
diff --git a/src/java/is/idega/idegaweb/egov/bpm/cases/email/business/EmailMessagesAttacherWorker.java b/src/java/is/idega/idegaweb/egov/bpm/cases/email/business/EmailMessagesAttacherWorker.java index cc001039..685a3df0 100644 --- a/src/java/is/idega/idegaweb/egov/bpm/cases/email/business/EmailMessagesAttacherWorker.ja...
true
true
private boolean attachEmailMessage(JbpmContext ctx, BPMEmailMessage message) { if (message.isParsed()) { return true; } if (ctx == null || message == null) { return false; } ProcessInstance pi = ctx.getProcessInstance(message.getProcessInstanceId()); @SuppressWarnings("unchecked") List<Token> tk...
private boolean attachEmailMessage(JbpmContext ctx, BPMEmailMessage message) { if (message.isParsed()) { return true; } if (ctx == null || message == null) { return false; } ProcessInstance pi = ctx.getProcessInstance(message.getProcessInstanceId()); @SuppressWarnings("unchecked") List<Token> tk...
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/DefaultQueryProvider.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/DefaultQueryProvider.java index e5c7dc75a..770e1e29d 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/...
true
true
public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) { // Initialize queryable, queryContext, and queryType from the element. // In some cases we override this. IQueryable queryable = element.getQueryable(); int queryType = element.getQueryType(); IUViewQueryContext context = elemen...
public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) { // Initialize queryable, queryContext, and queryType from the element. // In some cases we override this. IQueryable queryable = element.getQueryable(); int queryType = element.getQueryType(); IUViewQueryContext context = elemen...
diff --git a/src/itmo/dreamq/DreamQueue.java b/src/itmo/dreamq/DreamQueue.java index 541f1cc..797daac 100644 --- a/src/itmo/dreamq/DreamQueue.java +++ b/src/itmo/dreamq/DreamQueue.java @@ -1,183 +1,183 @@ package itmo.dreamq; import itmo.mq.Message; import itmo.mq.MessageQueue; import itmo.mq.Envelope; import ...
true
true
public DreamQueue() { ticket = new AtomicLong(); messageQueue = new ConcurrentHashMap<Integer, BlockingQueue<Message>>(); messagePool = new ConcurrentHashMap<Long, Envelope>(); sentMessages = new ConcurrentLinkedQueue<Ticket>(); Timer timer = new Timer(); timer.sched...
public DreamQueue() { ticket = new AtomicLong(); messageQueue = new ConcurrentHashMap<Integer, BlockingQueue<Message>>(); messagePool = new ConcurrentHashMap<Long, Envelope>(); sentMessages = new ConcurrentLinkedQueue<Ticket>(); Timer timer = new Timer(); timer.sched...
diff --git a/src/Core/org/objectweb/proactive/core/group/ProcessForOneWayCall.java b/src/Core/org/objectweb/proactive/core/group/ProcessForOneWayCall.java index 3c4efd4bb..6ea02f6de 100644 --- a/src/Core/org/objectweb/proactive/core/group/ProcessForOneWayCall.java +++ b/src/Core/org/objectweb/proactive/core/group/Proce...
true
true
public void run() { // push an initial context for this thread LocalBodyStore.getInstance().pushContext(new Context(body, null)); Object object = null; // try-catch block added by AdC for P2P try { object = this.memberList.get(this.index); } catch (ArrayI...
public void run() { // push an initial context for this thread LocalBodyStore.getInstance().pushContext(new Context(body, null)); Object object = null; // try-catch block added by AdC for P2P try { object = this.memberList.get(this.index % getMemberListSize()); ...
diff --git a/hivemind-drone/src/main/java/twizansk/hivemind/drone/model/LinearRegressionObjective.java b/hivemind-drone/src/main/java/twizansk/hivemind/drone/model/LinearRegressionObjective.java index 1cc3a28..09a3a39 100644 --- a/hivemind-drone/src/main/java/twizansk/hivemind/drone/model/LinearRegressionObjective.java...
true
true
public Gradient getGradient(TrainingSample sample, Model model) { double[] x = sample.x; double y = sample.y; double[] params = model.params; double multiplier = 2 * (params[0] * x[0] + params[1] - y); double[] g = new double[] {multiplier * x[0], multiplier}; return new Gradient(g); }
public Gradient getGradient(TrainingSample sample, Model model) { double[] x = sample.x; double y = sample.y; double[] p = model.params; double multiplier = 2 * (p[0] * x[0] + p[1] - y); double[] g = new double[] {multiplier * x[0], multiplier}; return new Gradient(g); }
diff --git a/libimobiledevice/src/main/java/org/robovm/libimobiledevice/IDevice.java b/libimobiledevice/src/main/java/org/robovm/libimobiledevice/IDevice.java index bd2f16e9f..159e54f23 100644 --- a/libimobiledevice/src/main/java/org/robovm/libimobiledevice/IDevice.java +++ b/libimobiledevice/src/main/java/org/robovm/l...
true
true
public static String[] listUdids() { StringArrayOut devicesOut = new StringArrayOut(); IntOut countOut = new IntOut(); try { checkResult(LibIMobileDevice.idevice_get_device_list(devicesOut, countOut)); StringArray devices = devicesOut.getValue(); int count...
public static String[] listUdids() { StringArrayOut devicesOut = new StringArrayOut(); IntOut countOut = new IntOut(); try { checkResult(LibIMobileDevice.idevice_get_device_list(devicesOut, countOut)); StringArray devices = devicesOut.getValue(); int count...
diff --git a/freeplane/src/org/freeplane/features/map/NodeBuilder.java b/freeplane/src/org/freeplane/features/map/NodeBuilder.java index 46e5218c3..a62621f70 100644 --- a/freeplane/src/org/freeplane/features/map/NodeBuilder.java +++ b/freeplane/src/org/freeplane/features/map/NodeBuilder.java @@ -1,230 +1,234 @@ /* *...
true
true
private void registerAttributeHandlers(final ReadManager reader) { reader.addAttributeHandler(NodeBuilder.XML_NODE, NodeBuilder.XML_NODE_ENCRYPTED_CONTENT, new IAttributeHandler() { private void createEncryptedNode(final NodeModel node, final String additionalInfo) { final EncryptionModel encryp...
private void registerAttributeHandlers(final ReadManager reader) { reader.addAttributeHandler(NodeBuilder.XML_NODE, NodeBuilder.XML_NODE_ENCRYPTED_CONTENT, new IAttributeHandler() { private void createEncryptedNode(final NodeModel node, final String additionalInfo) { final EncryptionModel encryp...
diff --git a/common/crazypants/enderio/conduit/AbstractItemConduit.java b/common/crazypants/enderio/conduit/AbstractItemConduit.java index 1e23d2fa6..32860a77f 100644 --- a/common/crazypants/enderio/conduit/AbstractItemConduit.java +++ b/common/crazypants/enderio/conduit/AbstractItemConduit.java @@ -1,121 +1,120 @@ pa...
false
true
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) { ForgeDirection dir = ForgeDirection.values()[side]; int placeX = x + dir.offsetX; int placeY = y + dir.offsetY; int placeZ = z + dir.offsetZ; int block...
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) { ForgeDirection dir = ForgeDirection.values()[side]; int placeX = x + dir.offsetX; int placeY = y + dir.offsetY; int placeZ = z + dir.offsetZ; if (world...
diff --git a/src/java/org/apache/commons/math/ode/events/EventState.java b/src/java/org/apache/commons/math/ode/events/EventState.java index 219e2b03c..1448b59c4 100644 --- a/src/java/org/apache/commons/math/ode/events/EventState.java +++ b/src/java/org/apache/commons/math/ode/events/EventState.java @@ -1,324 +1,325 @@...
true
true
public boolean evaluateStep(final StepInterpolator interpolator) throws DerivativeException, EventException, ConvergenceException { try { final double t1 = interpolator.getCurrentTime(); final int n = Math.max(1, (int) Math.ceil(Math.abs(t1 - t0) / maxCheckInterval)); ...
public boolean evaluateStep(final StepInterpolator interpolator) throws DerivativeException, EventException, ConvergenceException { try { final double t1 = interpolator.getCurrentTime(); final int n = Math.max(1, (int) Math.ceil(Math.abs(t1 - t0) / maxCheckInterval)); ...
diff --git a/src/org/witness/sscphase1/AnonObscure.java b/src/org/witness/sscphase1/AnonObscure.java index d9b804c..41e887d 100644 --- a/src/org/witness/sscphase1/AnonObscure.java +++ b/src/org/witness/sscphase1/AnonObscure.java @@ -1,57 +1,57 @@ /* * This ObscureMethod paints the "anon.jpg" over the region */ ...
true
true
public void obscureRect(Rect rect, Canvas canvas) { try { Bitmap mask = loadBitmap(_context,"party.png"); canvas.drawBitmap(mask, null, rect, _painter); } catch (IOException e) { Log.e("anon",e.toString(),e); } }
public void obscureRect(Rect rect, Canvas canvas) { try { Bitmap mask = loadBitmap(_context,"anon.png"); canvas.drawBitmap(mask, null, rect, _painter); } catch (IOException e) { Log.e("anon",e.toString(),e); } }
diff --git a/src/org/gridlab/gridsphere/provider/portletui/beans/ImageBean.java b/src/org/gridlab/gridsphere/provider/portletui/beans/ImageBean.java index 6b665686e..7472316b9 100644 --- a/src/org/gridlab/gridsphere/provider/portletui/beans/ImageBean.java +++ b/src/org/gridlab/gridsphere/provider/portletui/beans/ImageB...
true
true
public String toStartString() { StringBuffer sb = new StringBuffer(); sb.append("<img src=\"" + this.src + "\" border=\"" + border + "\" alt=\"" + alt + "\" title=\"" + this.title + "\""); if (width != null) sb.append(" \"" + width + "\""); if (height != null) sb.append(" \"" + heigh...
public String toStartString() { StringBuffer sb = new StringBuffer(); sb.append("<img src=\"" + this.src + "\" border=\"" + border + "\" alt=\"" + alt + "\" title=\"" + this.title + "\""); if (width != null) sb.append(" \" width=\"" + width + "\""); if (height != null) sb.append(" \"...
diff --git a/test/commons/org/codehaus/groovy/grails/commons/AbstractInjectableGrailsClassTests.java b/test/commons/org/codehaus/groovy/grails/commons/AbstractInjectableGrailsClassTests.java index ab054d1b4..06b26ea0b 100644 --- a/test/commons/org/codehaus/groovy/grails/commons/AbstractInjectableGrailsClassTests.java +...
true
true
public void testAbstractInjectableGrailsClassNullProperty() throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Class clazz = cl.parseClass("class TestService { @Property boolean byName; @Property boolean available }"); InjectableGrailsClass grailsClass = new AbstractInjectableGrailsClass(clazz, "...
public void testAbstractInjectableGrailsClassNullProperty() throws Exception { GroovyClassLoader cl = new GroovyClassLoader(); Class clazz = cl.parseClass("class TestService { @Property boolean byName; @Property boolean available = true }"); InjectableGrailsClass grailsClass = new AbstractInjectableGrailsClass(c...
diff --git a/newsplus/extensions/NewsblurExtension/src/com/asafge/newsblurplus/APICall.java b/newsplus/extensions/NewsblurExtension/src/com/asafge/newsblurplus/APICall.java index 8f64968..987f490 100644 --- a/newsplus/extensions/NewsblurExtension/src/com/asafge/newsblurplus/APICall.java +++ b/newsplus/extensions/Newsbl...
true
true
public boolean sync() { try { aquery.sync(callback); Json = callback.getResult(); Status = callback.getStatus(); if (Json == null) return false; if (Json.getString("authenticated") != "true") { // TODO: LoginActivity.logout(); return false; } return (Status.getCode() == 200); } c...
public boolean sync() { try { aquery.sync(callback); Json = callback.getResult(); Status = callback.getStatus(); if (Json == null) return false; if (Json.getString("authenticated") != "true") { // TODO: LoginActivity.logout(); return false; } return (Status.getCode() == 200); } c...
diff --git a/src/main/java/com/jcabi/aspects/aj/Repeater.java b/src/main/java/com/jcabi/aspects/aj/Repeater.java index 4e9cc3b..630c646 100644 --- a/src/main/java/com/jcabi/aspects/aj/Repeater.java +++ b/src/main/java/com/jcabi/aspects/aj/Repeater.java @@ -1,123 +1,121 @@ /** * Copyright (c) 2012-2013, JCabi.com *...
false
true
public Object wrap(final ProceedingJoinPoint point) throws Throwable { final RetryOnFailure rof = MethodSignature.class .cast(point.getSignature()) .getMethod() .getAnnotation(RetryOnFailure.class); int attempt = 0; while (true) { final long st...
public Object wrap(final ProceedingJoinPoint point) throws Throwable { final RetryOnFailure rof = MethodSignature.class .cast(point.getSignature()) .getMethod() .getAnnotation(RetryOnFailure.class); int attempt = 0; final long begin = System.nanoTime(); ...
diff --git a/src/com/palmergames/bukkit/towny/command/PlotCommand.java b/src/com/palmergames/bukkit/towny/command/PlotCommand.java index 39112f7..dd51fa3 100644 --- a/src/com/palmergames/bukkit/towny/command/PlotCommand.java +++ b/src/com/palmergames/bukkit/towny/command/PlotCommand.java @@ -1,528 +1,529 @@ package co...
true
true
public boolean parsePlotCommand(Player player, String[] split) throws TownyException { if (split.length == 0 || split[0].equalsIgnoreCase("?")) { for (String line : output) player.sendMessage(line); } else { /* * check we have the right permission node for this command. */ if ((!TownyUnivers...
public boolean parsePlotCommand(Player player, String[] split) throws TownyException { if (split.length == 0 || split[0].equalsIgnoreCase("?")) { for (String line : output) player.sendMessage(line); } else { /* * check we have the right permission node for this command. */ if ((!TownyUnivers...
diff --git a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/executors/AfpProcessExecutor.java b/org.amanzi.awe.afp/src/org/amanzi/awe/afp/executors/AfpProcessExecutor.java index 11b26e4fa..a77641a5a 100644 --- a/org.amanzi.awe.afp/src/org/amanzi/awe/afp/executors/AfpProcessExecutor.java +++ b/org.amanzi.awe.afp/src/org/aman...
true
true
public IStatus run(IProgressMonitor monitor){ monitor.beginTask("Execute Afp", 100); createFiles(monitor); Runtime run = Runtime.getRuntime(); try { AfpExporter afpe = new AfpExporter(null); AfpEngine engine = AfpEngine.getAfpEngine(); String path = engine.getAfpEngineExecutablePath(); Strin...
public IStatus run(IProgressMonitor monitor){ monitor.beginTask("Execute Afp", 100); createFiles(monitor); Runtime run = Runtime.getRuntime(); try { AfpExporter afpe = new AfpExporter(null); AfpEngine engine = AfpEngine.getAfpEngine(); String path = engine.getAfpEngineExecutablePath(); Strin...
diff --git a/nuxeo-opensocial-server/src/main/java/org/nuxeo/opensocial/shindig/gadgets/NXHttpFetcher.java b/nuxeo-opensocial-server/src/main/java/org/nuxeo/opensocial/shindig/gadgets/NXHttpFetcher.java index 91fb1c8..6d21083 100644 --- a/nuxeo-opensocial-server/src/main/java/org/nuxeo/opensocial/shindig/gadgets/NXHttp...
true
true
public HttpResponse fetch(HttpRequest request) { HttpClient httpClient = new HttpClient(); HttpMethod httpMethod; String methodType = request.getMethod(); String requestUri = request.getUri().toString(); ProxyHelper.fillProxy(httpClient, requestUri); // true for non...
public HttpResponse fetch(HttpRequest request) { HttpClient httpClient = new HttpClient(); HttpMethod httpMethod; String methodType = request.getMethod(); String requestUri = request.getUri().toString(); ProxyHelper.fillProxy(httpClient, requestUri); // true for non...
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 c1fcf5310..10b8c7566 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/inter...
false
true
protected void addBugzillaTimeTracker(FormToolkit toolkit, Composite parent) { Section timeSection = toolkit.createSection(parent, ExpandableComposite.SHORT_TITLE_BAR); timeSection.setText(LABEL_TIME_TRACKING); GridLayout gl = new GridLayout(); GridData gd = new GridData(SWT.FILL, SWT.NONE, false, false); g...
protected void addBugzillaTimeTracker(FormToolkit toolkit, Composite parent) { Section timeSection = toolkit.createSection(parent, ExpandableComposite.SHORT_TITLE_BAR); timeSection.setText(LABEL_TIME_TRACKING); GridLayout gl = new GridLayout(); GridData gd = new GridData(SWT.FILL, SWT.NONE, false, false); g...
diff --git a/src/com/inc/im/serptracker/util/Parser.java b/src/com/inc/im/serptracker/util/Parser.java index 2bec5b4..dcccd90 100644 --- a/src/com/inc/im/serptracker/util/Parser.java +++ b/src/com/inc/im/serptracker/util/Parser.java @@ -1,208 +1,213 @@ package com.inc.im.serptracker.util; import java.net.MalformedU...
true
true
public static Keyword getRanking(Keyword keyword, Elements allResults, String WEBSITE) { if (keyword == null || allResults == null) return null; int numOfResults = allResults.size(); // DEBUG // for (int i = 0; i < numOfResults; i++) { // Element singleResult = allResults.get(i); // Log.d("MY", i ...
public static Keyword getRanking(Keyword keyword, Elements allResults, String WEBSITE) { if (keyword == null || allResults == null) return null; int numOfResults = allResults.size(); // DEBUG // for (int i = 0; i < numOfResults; i++) { // Element singleResult = allResults.get(i); // Log.d("MY", i ...
diff --git a/src/randomartassignment/picture/DriverParallel.java b/src/randomartassignment/picture/DriverParallel.java index eed7ddd..9117a13 100644 --- a/src/randomartassignment/picture/DriverParallel.java +++ b/src/randomartassignment/picture/DriverParallel.java @@ -1,556 +1,556 @@ /* * Copyright (c) 2012 Amndeep ...
true
true
public static void main(String[] args) { // Stuff for checking out how long it takes for the program to run start = now = System.nanoTime(); milli = sec = min = hr = 0; // Check for the end notFinished = true; // Values that change depending on user preference (determined through commandline args) - pre...
public static void main(String[] args) { // Stuff for checking out how long it takes for the program to run start = now = System.nanoTime(); milli = sec = min = hr = 0; // Check for the end notFinished = true; // Values that change depending on user preference (determined through commandline args) - pre...
diff --git a/src/com/astrofrog/android/raidtimer/ToonEdit.java b/src/com/astrofrog/android/raidtimer/ToonEdit.java index e4dafda..e1fe277 100644 --- a/src/com/astrofrog/android/raidtimer/ToonEdit.java +++ b/src/com/astrofrog/android/raidtimer/ToonEdit.java @@ -1,190 +1,190 @@ package com.astrofrog.android.raidtimer; ...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.w("CREATE_TOON","IN DA HOUSE"); mToonsDbHelper = new ToonsDbAdapter(this); mToonsDbHelper.open(); mRaidsDbHelper = new RaidsDbAdapter(this); mRaidsDbHelper.open(); s...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mToonsDbHelper = new ToonsDbAdapter(this); mToonsDbHelper.open(); mRaidsDbHelper = new RaidsDbAdapter(this); mRaidsDbHelper.open(); setContentView(R.layout.toon_edit); s...
diff --git a/src/main/java/hudson/plugins/groovy/SystemGroovy.java b/src/main/java/hudson/plugins/groovy/SystemGroovy.java index c23baea..5e08fcd 100644 --- a/src/main/java/hudson/plugins/groovy/SystemGroovy.java +++ b/src/main/java/hudson/plugins/groovy/SystemGroovy.java @@ -1,123 +1,126 @@ package hudson.plugins.gro...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); CompilerConfiguration compilerConfig = new CompilerConfiguration(); if(classpath != null) ...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); CompilerConfiguration compilerConfig = new CompilerConfiguration(); if(classpath != null) ...
diff --git a/java/modules/core/src/org/apache/synapse/axis2/DynamicAxisOperation.java b/java/modules/core/src/org/apache/synapse/axis2/DynamicAxisOperation.java index b2dc2d651..2fa5b1b15 100644 --- a/java/modules/core/src/org/apache/synapse/axis2/DynamicAxisOperation.java +++ b/java/modules/core/src/org/apache/synapse...
true
true
public void execute(boolean block) throws AxisFault { if (block) { ConfigurationContext cc = sc.getConfigurationContext(); // copy interesting info from options to message context. MessageContext mc = oc .getMessageContext(WSDLConstants.MESSAGE_LABEL_...
public void execute(boolean block) throws AxisFault { if (block) { ConfigurationContext cc = sc.getConfigurationContext(); // copy interesting info from options to message context. MessageContext mc = oc .getMessageContext(WSDLConstants.MESSAGE_LABEL_...
diff --git a/Trending/src/org/nirbhaya/trending/CategoryTrendsWater.java b/Trending/src/org/nirbhaya/trending/CategoryTrendsWater.java index 43771a5..2f07815 100644 --- a/Trending/src/org/nirbhaya/trending/CategoryTrendsWater.java +++ b/Trending/src/org/nirbhaya/trending/CategoryTrendsWater.java @@ -1,39 +1,39 @@ pack...
true
true
public String sendTypes(@QueryParam("callback") String callback) { Gson gson = new Gson(); catcontentSerialize catContent=null; try { catContent = gson.fromJson(new FileReader("/home/sandeep/workspace/Trending/water logging-Trends"), catcontentSerialize.class); System.out.println(gson.t...
public String sendTypes(@QueryParam("callback") String callback) { Gson gson = new Gson(); catcontentSerialize catContent=null; try { catContent = gson.fromJson(new FileReader("water logging-Trends"), catcontentSerialize.class); System.out.println(gson.toJson(catContent)); } catch(E...
diff --git a/src/de/hdodenhof/feedreader/misc/Helpers.java b/src/de/hdodenhof/feedreader/misc/Helpers.java index e6dedb8..fb7b475 100644 --- a/src/de/hdodenhof/feedreader/misc/Helpers.java +++ b/src/de/hdodenhof/feedreader/misc/Helpers.java @@ -1,165 +1,165 @@ package de.hdodenhof.feedreader.misc; import java.text....
false
true
public static String formatToYesterdayOrToday(Date date) { Calendar today = Calendar.getInstance(); Calendar yesterday = Calendar.getInstance(); yesterday.add(Calendar.DATE, -1); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); SimpleDateFormat tim...
public static String formatToYesterdayOrToday(Date date) { Calendar today = Calendar.getInstance(); Calendar yesterday = Calendar.getInstance(); yesterday.add(Calendar.DATE, -1); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); SimpleDateFormat tim...
diff --git a/plugins/org.eclipse.jst.j2ee.webservice.ui/webservices_ui/org/eclipse/jst/j2ee/internal/webservice/WebServicesNavigatorGroupOpenListener.java b/plugins/org.eclipse.jst.j2ee.webservice.ui/webservices_ui/org/eclipse/jst/j2ee/internal/webservice/WebServicesNavigatorGroupOpenListener.java index 024b99c2e..25d2...
true
true
public void open(OpenEvent event) { StructuredSelection selection = (StructuredSelection)event.getSelection(); WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper(); Object selectedObject = selection.getFirstElement(); if (selectedObject == null) return; else if (selectedObject instan...
public void open(OpenEvent event) { StructuredSelection selection = (StructuredSelection)event.getSelection(); WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper(); Object selectedObject = selection.getFirstElement(); if (selectedObject == null) return; else if (selectedObject instan...
diff --git a/java/src/com/android/inputmethod/latin/InputAttributes.java b/java/src/com/android/inputmethod/latin/InputAttributes.java index 3298bf9cf..f7afed2a5 100644 --- a/java/src/com/android/inputmethod/latin/InputAttributes.java +++ b/java/src/com/android/inputmethod/latin/InputAttributes.java @@ -1,167 +1,166 @@...
true
true
public InputAttributes(final EditorInfo editorInfo, final boolean isFullscreenMode) { final int inputType = null != editorInfo ? editorInfo.inputType : 0; final int inputClass = inputType & InputType.TYPE_MASK_CLASS; if (inputClass != InputType.TYPE_CLASS_TEXT) { // If we are not...
public InputAttributes(final EditorInfo editorInfo, final boolean isFullscreenMode) { final int inputType = null != editorInfo ? editorInfo.inputType : 0; final int inputClass = inputType & InputType.TYPE_MASK_CLASS; if (inputClass != InputType.TYPE_CLASS_TEXT) { // If we are not...
diff --git a/src/GreenTeaScript.java b/src/GreenTeaScript.java index bf553b8..a16c3c6 100644 --- a/src/GreenTeaScript.java +++ b/src/GreenTeaScript.java @@ -1,3437 +1,3437 @@ // *************************************************************************** // Copyright (c) 2013, JST/CREST DEOS project authors. All right...
false
true
public static GtNode TypeApply(GtTypeEnv Gamma, GtSyntaxTree ParsedTree, GtType ContextType) { /*local*/GtNode FuncNode = ParsedTree.TypeCheckNodeAt(0, Gamma, Gamma.FuncType, DefaultTypeCheckPolicy); /*local*/String MethodName = FuncNode.Token.ParsedText; /*local*/GtType BaseType = null; /*local*/ArrayList<GtN...
public static GtNode TypeApply(GtTypeEnv Gamma, GtSyntaxTree ParsedTree, GtType ContextType) { /*local*/GtNode FuncNode = ParsedTree.TypeCheckNodeAt(0, Gamma, Gamma.FuncType, DefaultTypeCheckPolicy); /*local*/String MethodName = FuncNode.Token.ParsedText; /*local*/GtType BaseType = null; /*local*/ArrayList<GtN...
diff --git a/src/com/codebutler/farebot/transit/ClipperTransitData.java b/src/com/codebutler/farebot/transit/ClipperTransitData.java index de43875..b427ee8 100644 --- a/src/com/codebutler/farebot/transit/ClipperTransitData.java +++ b/src/com/codebutler/farebot/transit/ClipperTransitData.java @@ -1,663 +1,664 @@ /* *...
true
true
private ClipperTrip[] parseTrips (DesfireCard card) { DesfireFile file = card.getApplication(0x9011f2).getFile(0x0e); /* * This file reads very much like a record file but it professes to * be only a regular file. As such, we'll need to extract the records * manua...
private ClipperTrip[] parseTrips (DesfireCard card) { DesfireFile file = card.getApplication(0x9011f2).getFile(0x0e); /* * This file reads very much like a record file but it professes to * be only a regular file. As such, we'll need to extract the records * manua...
diff --git a/jflex/src/test/java/jflex/CharClassesTest.java b/jflex/src/test/java/jflex/CharClassesTest.java index 344ea69..e713a77 100644 --- a/jflex/src/test/java/jflex/CharClassesTest.java +++ b/jflex/src/test/java/jflex/CharClassesTest.java @@ -1,118 +1,118 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * *...
true
true
public void testCaseless() { try { IntCharSet.setUnicodeProperties(new UnicodeProperties("4.0")); } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) { assertTrue("Unsupported default Unicode version: " + e, false); } IntCharSet set = new IntCharSet(new Interval('a','c')); ...
public void testCaseless() { try { IntCharSet.setUnicodeProperties(new UnicodeProperties("4.0")); } catch (UnicodeProperties.UnsupportedUnicodeVersionException e) { assertTrue("Unsupported default Unicode version: " + e, false); } IntCharSet set = new IntCharSet(new Interval('a','c')); ...
diff --git a/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java b/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java index 20aa94b37..68766d12d 100644 --- a/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/D...
false
true
public void dummyTest() { String prefMenu = "Preferences"; String prefDlg = prefMenu; String window = "Window"; if (isOSX()) { prefMenu = "Preferences..."; window = "Eclispe"; } SWTWorkbenchBot bot = new SWTWorkbenchBot(); bot.menu(window).menu(prefMenu).click(); bot.waitUntil(shellIsActive(prefD...
public void dummyTest() { String prefMenu = "Preferences"; String prefDlg = prefMenu; String windowMenu = "Window"; if (isOSX()) { prefMenu = "Preferences..."; windowMenu = "Eclipse"; } SWTWorkbenchBot bot = new SWTWorkbenchBot(); bot.menu(windowMenu).menu(prefMenu).click(); bot.waitUntil(shellIs...
diff --git a/src/java/core/org/flexdock/util/SwingUtility.java b/src/java/core/org/flexdock/util/SwingUtility.java index 114aef1..f3196b8 100644 --- a/src/java/core/org/flexdock/util/SwingUtility.java +++ b/src/java/core/org/flexdock/util/SwingUtility.java @@ -1,452 +1,454 @@ /* * Created on Aug 23, 2004 */ packa...
true
true
public static Component getNearestFocusableComponent(Component c, Container desiredRoot) { if(c==null) c = desiredRoot; if(c==null) c = KeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(); boolean cachedFocusCycleRoot = false; // make the desiredRoot into a focusCycleRoot if(des...
public static Component getNearestFocusableComponent(Component c, Container desiredRoot) { if(c==null) c = desiredRoot; if(c==null) c = KeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(); boolean cachedFocusCycleRoot = false; // make the desiredRoot into a focusCycleRoot if(des...
diff --git a/src/servers/src/org/xtreemfs/common/auth/SimpleX509AuthProvider.java b/src/servers/src/org/xtreemfs/common/auth/SimpleX509AuthProvider.java index 770300e1..57a78a14 100644 --- a/src/servers/src/org/xtreemfs/common/auth/SimpleX509AuthProvider.java +++ b/src/servers/src/org/xtreemfs/common/auth/SimpleX509Aut...
true
true
public UserCredentials getEffectiveCredentials(org.xtreemfs.interfaces.UserCredentials ctx, ChannelIO channel) throws AuthenticationException { // use cached info! assert (nullAuth != null); if (channel.getAttachment() != null) { if (Logging.isDebug()) ...
public UserCredentials getEffectiveCredentials(org.xtreemfs.interfaces.UserCredentials ctx, ChannelIO channel) throws AuthenticationException { // use cached info! assert (nullAuth != null); if (channel.getAttachment() != null) { if (Logging.isDebug()) ...
diff --git a/src/net/avs234/AndLessSrv.java b/src/net/avs234/AndLessSrv.java index 94914b8..948fedd 100644 --- a/src/net/avs234/AndLessSrv.java +++ b/src/net/avs234/AndLessSrv.java @@ -1,835 +1,837 @@ package net.avs234; import java.io.DataOutputStream; import java.io.File; import java.util.Timer; import java.ut...
true
true
public void run() { tid = Process.myTid(); running = true; log_msg("run(): starting new thread " + tid); Process.setThreadPriority(Process.THREAD_PRIORITY_AUDIO); if(!wakeLock.isHeld()) wakeLock.acquire(); int k; for(k = 1; running && cur_pos < files.length; cur_pos++) { log_msg(Proc...
public void run() { tid = Process.myTid(); running = true; log_msg("run(): starting new thread " + tid); Process.setThreadPriority(Process.THREAD_PRIORITY_AUDIO); if(!wakeLock.isHeld()) wakeLock.acquire(); int k; for(k = 1; running && cur_pos < files.length; cur_pos++) { log_msg(Proc...
diff --git a/src/java/org/apache/fop/afp/fonts/AFPBase12FontCollection.java b/src/java/org/apache/fop/afp/fonts/AFPBase12FontCollection.java index 417250df1..421945119 100644 --- a/src/java/org/apache/fop/afp/fonts/AFPBase12FontCollection.java +++ b/src/java/org/apache/fop/afp/fonts/AFPBase12FontCollection.java @@ -1,1...
false
true
public int setup(int start, FontInfo fontInfo) { /** * Add the base 12 fonts (Helvetica, Times and Courier) * * Note: this default font configuration may not be available * on your AFP environment. */ int num = start; RasterFont font = null; ...
public int setup(int start, FontInfo fontInfo) { /** * Add the base 12 fonts (Helvetica, Times and Courier) * * Note: this default font configuration may not be available * on your AFP environment. */ int num = start; RasterFont font = null; ...
diff --git a/PumpAndJump/src/com/musicgame/PumpAndJump/game/gameStates/RunningGame.java b/PumpAndJump/src/com/musicgame/PumpAndJump/game/gameStates/RunningGame.java index 96b7ddb..4e50638 100755 --- a/PumpAndJump/src/com/musicgame/PumpAndJump/game/gameStates/RunningGame.java +++ b/PumpAndJump/src/com/musicgame/PumpAndJ...
true
true
public RunningGame() { batch = new SpriteBatch(); stage = new Stage(); // A skin can be loaded via JSON or defined programmatically, either is fine. Using a skin is optional but strongly // recommended solely for the convenience of getting a texture, region, etc as a drawable, tinted drawable, etc. F...
public RunningGame() { batch = new SpriteBatch(); stage = new Stage(); // A skin can be loaded via JSON or defined programmatically, either is fine. Using a skin is optional but strongly // recommended solely for the convenience of getting a texture, region, etc as a drawable, tinted drawable, etc. F...
diff --git a/km/com/hifiremote/jp1/FixedData.java b/km/com/hifiremote/jp1/FixedData.java index ed9f5d8..98aa143 100644 --- a/km/com/hifiremote/jp1/FixedData.java +++ b/km/com/hifiremote/jp1/FixedData.java @@ -1,198 +1,201 @@ package com.hifiremote.jp1; import java.util.ArrayList; import java.util.Iterator; import...
true
true
public static FixedData[] parse( RDFReader rdr ) throws Exception { java.util.List< FixedData > work = new ArrayList< FixedData >(); java.util.List< Short > temp = new ArrayList< Short >(); String line; int address = -1; int value = -1; while ( true ) { line = rdr.readLine(); ...
public static FixedData[] parse( RDFReader rdr ) throws Exception { java.util.List< FixedData > work = new ArrayList< FixedData >(); java.util.List< Short > temp = new ArrayList< Short >(); String line; int address = -1; int value = -1; while ( true ) { line = rdr.readLine(); ...
diff --git a/src/org/melonbrew/fee/Fee.java b/src/org/melonbrew/fee/Fee.java index ac4adf5..1cf5fea 100644 --- a/src/org/melonbrew/fee/Fee.java +++ b/src/org/melonbrew/fee/Fee.java @@ -1,240 +1,241 @@ package org.melonbrew.fee; import java.util.HashSet; import java.util.Set; import java.util.logging.Logger; im...
true
true
public void onEnable(){ log = getServer().getLogger(); sessions = new HashSet<Session>(); supportedBlocks = new HashSet<Material>(); addSupportedBlock(Material.WOODEN_DOOR); addSupportedBlock(Material.TRAP_DOOR); addSupportedBlock(Material.FURNACE); addSupportedBlock(Material.CHEST); addSuppor...
public void onEnable(){ log = getServer().getLogger(); sessions = new HashSet<Session>(); supportedBlocks = new HashSet<Material>(); addSupportedBlock(Material.WOODEN_DOOR); addSupportedBlock(Material.TRAP_DOOR); addSupportedBlock(Material.FURNACE); addSupportedBlock(Material.BURNING_FURNACE); ...
diff --git a/src/com/entrocorp/linearlogic/oneinthegun/commands/CommandForceStart.java b/src/com/entrocorp/linearlogic/oneinthegun/commands/CommandForceStart.java index 8fb98f1..10bb568 100644 --- a/src/com/entrocorp/linearlogic/oneinthegun/commands/CommandForceStart.java +++ b/src/com/entrocorp/linearlogic/oneinthegun...
true
true
public void run() { if (arena.isClosed()) { sender.sendMessage(OITG.prefix + ChatColor.RED + "That arena is closed."); return; } if (arena.isIngame()) { sender.sendMessage(OITG.prefix + ChatColor.RED + "A round is already in progress in that arena."); ...
public void run() { if (arena.isClosed()) { sender.sendMessage(OITG.prefix + ChatColor.RED + "That arena is closed."); return; } if (arena.isIngame()) { sender.sendMessage(OITG.prefix + ChatColor.RED + "A round is already in progress in that arena."); ...
diff --git a/src/main/java/com/hdkmraf/jsontoneo4j/App.java b/src/main/java/com/hdkmraf/jsontoneo4j/App.java index 8e86c1b..c3a21fd 100644 --- a/src/main/java/com/hdkmraf/jsontoneo4j/App.java +++ b/src/main/java/com/hdkmraf/jsontoneo4j/App.java @@ -1,47 +1,47 @@ package com.hdkmraf.jsontoneo4j; import java.io.File;...
true
true
public static void main( String[] args ) { if(args.length != 2){ System.out.println("Usage: JSONtoNeo4j path database index"); System.out.println("path - Where the .json or .js files are located"); System.out.println("database - Neo4j database, it will be created ins...
public static void main( String[] args ) { if(args.length != 3){ System.out.println("Usage: JSONtoNeo4j path database index"); System.out.println("path - Where the .json or .js files are located"); System.out.println("database - Neo4j database, it will be created ins...
diff --git a/src/org/geworkbench/parsers/MageTabFileFormat.java b/src/org/geworkbench/parsers/MageTabFileFormat.java index ac4bf0d4..363da1ed 100644 --- a/src/org/geworkbench/parsers/MageTabFileFormat.java +++ b/src/org/geworkbench/parsers/MageTabFileFormat.java @@ -1,466 +1,461 @@ package org.geworkbench.parsers; ...
false
true
public DSDataSet<? extends DSBioObject> getDataFile(File file) throws InputFileFormatException, InterruptedIOException{ // TODO this method is too longer. should be refactored. CSMicroarraySet maSet = new CSMicroarraySet(); BufferedReader in = null; final int extSeperater = '.'; String fileName = file.g...
public DSDataSet<? extends DSBioObject> getDataFile(File file) throws InputFileFormatException, InterruptedIOException{ // TODO this method is too longer. should be refactored. CSMicroarraySet maSet = new CSMicroarraySet(); BufferedReader in = null; String fileName = file.getName(); maSet.setLabel(fileN...
diff --git a/src/org/first/team2620/subsystems/Climber.java b/src/org/first/team2620/subsystems/Climber.java index 3a02566..415de0a 100644 --- a/src/org/first/team2620/subsystems/Climber.java +++ b/src/org/first/team2620/subsystems/Climber.java @@ -1,217 +1,217 @@ package org.first.team2620.subsystems; import edu.w...
true
true
public void climb() { if(Climbing_ == false) { Climbing_ = true; // Conveyors Movement Thread ConveyorsThread_ = new Thread(new Runnable() { public void run() { RobotMap.LHConveyor.set(0.5); ...
public void climb() { if(Climbing_ == false) { Climbing_ = true; // Conveyors Movement Thread ConveyorsThread_ = new Thread(new Runnable() { public void run() { RobotMap.LHConveyor.set(0.5); ...
diff --git a/software/ICeePotPC/src/iceepotpc/servergw/ServerTools.java b/software/ICeePotPC/src/iceepotpc/servergw/ServerTools.java index fe8d144..2b4c3b0 100644 --- a/software/ICeePotPC/src/iceepotpc/servergw/ServerTools.java +++ b/software/ICeePotPC/src/iceepotpc/servergw/ServerTools.java @@ -1,137 +1,137 @@ packag...
true
true
public synchronized static ArrayList<Meauserement> GetMeasurements(Calendar c, int potId) throws Exception { Context cntx = Context.getInstance(); ArrayList<Meauserement> measurements = new ArrayList<Meauserement>(); String excMessage = ""; //construct the request in a string String request_str = I...
public synchronized static ArrayList<Meauserement> GetMeasurements(Calendar c, int potId) throws Exception { Context cntx = Context.getInstance(); ArrayList<Meauserement> measurements = new ArrayList<Meauserement>(); String excMessage = ""; //construct the request in a string String request_str = I...
diff --git a/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java b/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java index e5b033355..82bd31ba8 100644 --- a/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java +++ b/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java @@ -1,1...
true
true
public boolean dispatch(boolean complete) throws IOException, XNIException { try { boolean again; do { again = false; switch (fScannerState) { case SCANNER_STATE_CONTENT: { ...
public boolean dispatch(boolean complete) throws IOException, XNIException { try { boolean again; do { again = false; switch (fScannerState) { case SCANNER_STATE_CONTENT: { ...
diff --git a/modules/core/src/main/java/com/griefcraft/modules/redstone/RedstoneModule.java b/modules/core/src/main/java/com/griefcraft/modules/redstone/RedstoneModule.java index a75b2954..1a31c1e1 100644 --- a/modules/core/src/main/java/com/griefcraft/modules/redstone/RedstoneModule.java +++ b/modules/core/src/main/ja...
true
true
public void onRedstone(LWCRedstoneEvent event) { if (event.isCancelled()) { return; } LWC lwc = event.getLWC(); Protection protection = event.getProtection(); // check for a player using it for (Block found : protection.getProtectionFinder().getBlocks())...
public void onRedstone(LWCRedstoneEvent event) { if (event.isCancelled()) { return; } LWC lwc = event.getLWC(); Protection protection = event.getProtection(); // check for a player using it for (Block found : protection.getProtectionFinder().getBlocks())...
diff --git a/integration-tests/projects/websso/src/org/cagrid/gaards/websso/test/system/WebSSOSystemTest.java b/integration-tests/projects/websso/src/org/cagrid/gaards/websso/test/system/WebSSOSystemTest.java index 47fe9cac..d13d926c 100644 --- a/integration-tests/projects/websso/src/org/cagrid/gaards/websso/test/syste...
true
true
private List<Application> configureDorianSteps(Vector<Step> steps) { // Create Users List<Application> users = new ArrayList<Application>(); try { steps.add(new CopyConfigurationStep(tempDorianService, this.configuration, this.dorianProperties)); steps.add(new DeployServiceStep(dorianServiceContaine...
private List<Application> configureDorianSteps(Vector<Step> steps) { // Create Users List<Application> users = new ArrayList<Application>(); try { steps.add(new CopyConfigurationStep(tempDorianService, this.configuration, this.dorianProperties)); steps.add(new DeployServiceStep(dorianServiceContaine...
diff --git a/src/main/com/mongodb/util/SimplePool.java b/src/main/com/mongodb/util/SimplePool.java index a38feb2e5..9bc8f432a 100644 --- a/src/main/com/mongodb/util/SimplePool.java +++ b/src/main/com/mongodb/util/SimplePool.java @@ -1,352 +1,353 @@ // SimplePool.java /** * Copyright (C) 2008 10gen Inc. * ...
true
true
private T _get( long waitTime ){ long totalSlept = 0; while ( true ){ synchronized ( _avail ){ boolean couldCreate = _maxTotal <= 0 || _all.size() < _maxTotal; while ( _avail.size() > 0 ){ int toTake = _avail.size() - 1; ...
private T _get( long waitTime ){ long totalSlept = 0; while ( true ){ synchronized ( _avail ){ boolean couldCreate = _maxTotal <= 0 || _all.size() < _maxTotal; while ( _avail.size() > 0 ){ int toTake = _avail.size() - 1; ...
diff --git a/src/org/mozilla/javascript/TokenStream.java b/src/org/mozilla/javascript/TokenStream.java index 7b6957c8..93caf3f5 100644 --- a/src/org/mozilla/javascript/TokenStream.java +++ b/src/org/mozilla/javascript/TokenStream.java @@ -1,1621 +1,1623 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
false
true
final int getToken() throws IOException { int c; retry: for (;;) { // Eat whitespace, possibly sensitive to newlines. for (;;) { c = getChar(); if (c == EOF_CHAR) { tokenBeg = cursor - 1; tokenEn...
final int getToken() throws IOException { int c; retry: for (;;) { // Eat whitespace, possibly sensitive to newlines. for (;;) { c = getChar(); if (c == EOF_CHAR) { tokenBeg = cursor - 1; tokenEn...
diff --git a/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/model/impl/JSF2ManagedBean.java b/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/model/impl/JSF2ManagedBean.java index 6e2689ea8..97015b990 100644 --- a/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/jsf2/bean/mod...
true
true
public String getName() { String result = null; IAnnotationDeclaration d = getManagedBeanDeclaration(); if(d != null) { Object m = d.getMemberValue("name"); if(m != null) { result = m.toString(); } } return result; }
public String getName() { String result = null; IAnnotationDeclaration d = getManagedBeanDeclaration(); if(d != null) { Object m = d.getMemberValue("name"); if(m != null) { result = m.toString(); } if(result == null || result.length() == 0) { result = typeDefinition.getType().getElementName()...
diff --git a/src/org/rsbot/security/RestrictedSecurityManager.java b/src/org/rsbot/security/RestrictedSecurityManager.java index 85d9161d..2389ce32 100644 --- a/src/org/rsbot/security/RestrictedSecurityManager.java +++ b/src/org/rsbot/security/RestrictedSecurityManager.java @@ -1,233 +1,233 @@ package org.rsbot.securi...
false
true
public void checkConnect(String host, int port) { // ports other than HTTP (80), HTTPS (443) and unknown (-1) are automatically denied if (!(port == -1 || port == 80 || port == 443)) { throw new SecurityException(); } if (isCallerScript()) { ArrayList<String> whitelist = new ArrayList<String>(); // ...
public void checkConnect(String host, int port) { // ports other than HTTP (80), HTTPS (443) and unknown (-1) are automatically denied if (!(port == -1 || port == 80 || port == 443)) { throw new SecurityException(); } if (isCallerScript()) { ArrayList<String> whitelist = new ArrayList<String>(); // ...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/artron/TARDISCondensables.java b/src/main/java/me/eccentric_nz/TARDIS/artron/TARDISCondensables.java index b2ae238a7..69193cef1 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/artron/TARDISCondensables.java +++ b/src/main/java/me/eccentric_nz/TARDIS/artron/TARDISConde...
false
true
public TARDISCondensables() { condensables = new HashMap<String, Integer>(); condensables.put("ANVIL", 200); condensables.put("APPLE", 10); condensables.put("ARROW", 4); condensables.put("BED", 68); condensables.put("BEDROCK", 100); condensables.put("BEEF", 3)...
public TARDISCondensables() { condensables = new HashMap<String, Integer>(); condensables.put("ANVIL", 200); condensables.put("APPLE", 10); condensables.put("ARROW", 4); condensables.put("BED", 68); condensables.put("BEDROCK", 100); condensables.put("BEEF", 3)...
diff --git a/loci/formats/in/ICSReader.java b/loci/formats/in/ICSReader.java index 5c25c9388..39717006f 100644 --- a/loci/formats/in/ICSReader.java +++ b/loci/formats/in/ICSReader.java @@ -1,440 +1,442 @@ // // ICSReader.java // /* LOCI Bio-Formats package for reading and converting biological file formats. Cop...
false
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase(); if(ext.equals("ics")) { // convert C to D regardless of case char...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase(); if(ext.equals("ics")) { // convert C to D regardless of case char...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageBreakpointRulerAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageBreakpointRulerAction.java index 0b4d05014..cf81c9b13 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/...
false
true
protected void addMarker() { IEditorInput editorInput= getTextEditor().getEditorInput(); try { IDocument document= getDocument(); IRegion line= document.getLineInformation(getVerticalRulerInfo().getLineOfLastMouseButtonActivity()); IType type= null; IClassFile classFile= (IClassFile)editorInput....
protected void addMarker() { IEditorInput editorInput= getTextEditor().getEditorInput(); try { IDocument document= getDocument(); IRegion line= document.getLineInformation(getVerticalRulerInfo().getLineOfLastMouseButtonActivity()); IType type= null; IResource resource; IClassFile classFile= (...
diff --git a/src/tutorial/TutorialExamples.java b/src/tutorial/TutorialExamples.java index 0af5cf7..0ef73d0 100644 --- a/src/tutorial/TutorialExamples.java +++ b/src/tutorial/TutorialExamples.java @@ -1,1253 +1,1253 @@ package tutorial; import java.io.File; import java.io.FileInputStream; import java.io.FileOutpu...
false
true
public static void example5() throws Exception { RepositoryConnection conn = example2(false); Repository myRepository = conn.getRepository(); ValueFactory f = myRepository.getValueFactory(); println("\nStarting example5()."); conn.clear(); String exns = "http://exampl...
public static void example5() throws Exception { RepositoryConnection conn = example2(false); Repository myRepository = conn.getRepository(); ValueFactory f = myRepository.getValueFactory(); println("\nStarting example5()."); conn.clear(); String exns = "http://exampl...
diff --git a/btm/src/main/java/bitronix/tm/BitronixTransaction.java b/btm/src/main/java/bitronix/tm/BitronixTransaction.java index 33ca268..4e9ed3e 100644 --- a/btm/src/main/java/bitronix/tm/BitronixTransaction.java +++ b/btm/src/main/java/bitronix/tm/BitronixTransaction.java @@ -1,623 +1,623 @@ /* * Bitronix Transa...
true
true
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (status == Status.STATUS_NO_TRANSACTION) throw new IllegalStateException("transaction hasn't started yet"); if (isDone()) throw new Ille...
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (status == Status.STATUS_NO_TRANSACTION) throw new IllegalStateException("transaction hasn't started yet"); if (isDone()) throw new Ille...
diff --git a/src/com/axiastudio/suite/deliberedetermine/DeterminaListener.java b/src/com/axiastudio/suite/deliberedetermine/DeterminaListener.java index 6e08852..eca50c9 100644 --- a/src/com/axiastudio/suite/deliberedetermine/DeterminaListener.java +++ b/src/com/axiastudio/suite/deliberedetermine/DeterminaListener.java...
true
true
void preUpdate(Determina determina) { Database db = (Database) Register.queryUtility(IDatabase.class); EntityManager em = db.getEntityManagerFactory().createEntityManager(); Calendar calendar = Calendar.getInstance(); Boolean acquisisciNUmero = determina.getVistoResponsabile() != nul...
void preUpdate(Determina determina) { Database db = (Database) Register.queryUtility(IDatabase.class); EntityManager em = db.getEntityManagerFactory().createEntityManager(); Calendar calendar = Calendar.getInstance(); Boolean acquisisciNUmero = determina.getVistoResponsabile() != nul...
diff --git a/trunk/source/wadl2java/src/com/sun/research/ws/wadl2java/Wadl2Java.java b/trunk/source/wadl2java/src/com/sun/research/ws/wadl2java/Wadl2Java.java index 1dc52ab..4f82c36 100755 --- a/trunk/source/wadl2java/src/com/sun/research/ws/wadl2java/Wadl2Java.java +++ b/trunk/source/wadl2java/src/com/sun/research/ws/...
true
true
public Application processDescription(URI desc) throws JAXBException, IOException { // check for files that have already been processed to prevent loops if (processedDocs.contains(desc.toString())) return null; processedDocs.add(desc.toString()); // ...
public Application processDescription(URI desc) throws JAXBException, IOException { // check for files that have already been processed to prevent loops if (processedDocs.contains(desc.toString())) return null; processedDocs.add(desc.toString()); // ...
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java index 6cdf44fff..a1ecc0c6a 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TC...
false
true
public Map<String,Object> toBreakpointAttributes(IChannel channel, String id, String file, String type, Map<String,Object> p) { assert !disposed; assert Protocol.isDispatchThread(); Map<String,Object> m = new HashMap<String,Object>(); Map<String,Object> capabilities = channels.get(ch...
public Map<String,Object> toBreakpointAttributes(IChannel channel, String id, String marker_file, String marker_type, Map<String,Object> p) { assert !disposed; assert Protocol.isDispatchThread(); Map<String,Object> m = new HashMap<String,Object>(); Map<String,Object> capa...
diff --git a/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/SSAPropagationCallGraphBuilder.java b/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/SSAPropagationCallGraphBuilder.java index 18247955f..99075604c 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/SSAPropaga...
true
true
private void addExceptionDefConstraints(IR ir, DefUse du, CGNode node, List<ProgramCounter> peis, PointerKey exceptionVar, Set catchClasses) { if (DEBUG) { System.err.println("Add exception def constraints for node " + node); } for (Iterator<ProgramCounter> it = peis.iterator(); it.hasNext();)...
private void addExceptionDefConstraints(IR ir, DefUse du, CGNode node, List<ProgramCounter> peis, PointerKey exceptionVar, Set catchClasses) { if (DEBUG) { System.err.println("Add exception def constraints for node " + node); } for (Iterator<ProgramCounter> it = peis.iterator(); it.hasNext();)...
diff --git a/JeuxEJB/ejbModule/de/fhb/jeux/session/UpdateGameBean.java b/JeuxEJB/ejbModule/de/fhb/jeux/session/UpdateGameBean.java index 1ea0e52..2b82af3 100644 --- a/JeuxEJB/ejbModule/de/fhb/jeux/session/UpdateGameBean.java +++ b/JeuxEJB/ejbModule/de/fhb/jeux/session/UpdateGameBean.java @@ -1,308 +1,312 @@ package de...
true
true
public boolean updateGame(GameDTO gameDTO, BonusPointsDistribution config) { boolean success = false; boolean updated = false; int numDTOs = 0; IGame game = gameDAO.getGameById(gameDTO.getId()); if (game != null && gameDTO != null) { logger.debug("Before: " + game); List<ShowdownGameSet> existingSe...
public boolean updateGame(GameDTO gameDTO, BonusPointsDistribution config) { boolean success = false; boolean updated = false; int numDTOs = 0; IGame game = gameDAO.getGameById(gameDTO.getId()); if (game != null && gameDTO != null) { logger.debug("Before: " + game); List<ShowdownGameSet> existingSe...
diff --git a/src/org/apache/axiom/om/impl/dom/DocumentImpl.java b/src/org/apache/axiom/om/impl/dom/DocumentImpl.java index 6e9607dad..59ffb73ca 100644 --- a/src/org/apache/axiom/om/impl/dom/DocumentImpl.java +++ b/src/org/apache/axiom/om/impl/dom/DocumentImpl.java @@ -1,542 +1,542 @@ /* * Copyright 2004,2005 The Apa...
true
true
public Node importNode(Node importedNode, boolean deep) throws DOMException { short type = importedNode.getNodeType(); Node newNode = null; switch (type) { case Node.ELEMENT_NODE: { Element newElement; if (importedNode.getLocalName() == null) { ...
public Node importNode(Node importedNode, boolean deep) throws DOMException { short type = importedNode.getNodeType(); Node newNode = null; switch (type) { case Node.ELEMENT_NODE: { Element newElement; if (importedNode.getLocalName() == null) { ...
diff --git a/htroot/IndexMonitor.java b/htroot/IndexMonitor.java index 24dd5c6d1..cde2eb3c4 100644 --- a/htroot/IndexMonitor.java +++ b/htroot/IndexMonitor.java @@ -1,206 +1,206 @@ // IndexMonitor.java // ----------------------- // part of the AnomicHTTPD caching proxy // (C) by Michael Peter Christen; mc@anomic.d...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard sb = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); int lines = 40; boolean showInit = false; ...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard sb = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); int lines = 40; boolean showInit = false; ...
diff --git a/src/main/java/net/robbytu/banjoserver/bungee/bans/Bans.java b/src/main/java/net/robbytu/banjoserver/bungee/bans/Bans.java index f5aa6c8..48cfa77 100644 --- a/src/main/java/net/robbytu/banjoserver/bungee/bans/Bans.java +++ b/src/main/java/net/robbytu/banjoserver/bungee/bans/Bans.java @@ -1,129 +1,129 @@ pa...
true
true
public static Ban[] getUserBans(String username, boolean activeOnly) { Connection conn = Main.conn; ArrayList<Ban> bans = new ArrayList<Ban>(); try { // Create a new select statement PreparedStatement statement = conn.prepareStatement("SELECT id, user, admin, reason,...
public static Ban[] getUserBans(String username, boolean activeOnly) { Connection conn = Main.conn; ArrayList<Ban> bans = new ArrayList<Ban>(); try { // Create a new select statement PreparedStatement statement = conn.prepareStatement("SELECT id, user, admin, reason,...
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/ui/editors/map/tools/InfoTool.java b/orbisgis-core/src/main/java/org/orbisgis/core/ui/editors/map/tools/InfoTool.java index 12c90e88e..1c48ac7ce 100644 --- a/orbisgis-core/src/main/java/org/orbisgis/core/ui/editors/map/tools/InfoTool.java +++ b/orbisgis-core/sr...
true
true
protected void rectangleDone(Rectangle2D rect, boolean smallerThanTolerance, MapContext vc, ToolManager tm) throws TransitionException { ILayer layer = vc.getSelectedLayers()[0]; DataSource ds = layer.getDataSource(); String sql = null; try { SpatialDataSourceDecorator sds = new SpatialDataSourceDecor...
protected void rectangleDone(Rectangle2D rect, boolean smallerThanTolerance, MapContext vc, ToolManager tm) throws TransitionException { ILayer layer = vc.getSelectedLayers()[0]; DataSource ds = layer.getDataSource(); String sql = null; try { SpatialDataSourceDecorator sds = new SpatialDataSourceDecor...
diff --git a/src/org/sablecc/sablecc/launcher/LauncherException.java b/src/org/sablecc/sablecc/launcher/LauncherException.java index 038bccb..4c05a5e 100644 --- a/src/org/sablecc/sablecc/launcher/LauncherException.java +++ b/src/org/sablecc/sablecc/launcher/LauncherException.java @@ -1,39 +1,39 @@ /* This file is part...
true
true
public static CompilerException unknownTarget( String targetLanguage) { return new LauncherException( new MUnknownTarget(targetLanguage).toString()); }
public static LauncherException unknownTarget( String targetLanguage) { return new LauncherException( new MUnknownTarget(targetLanguage).toString()); }
diff --git a/src/main/java/com/palantir/stash/stashbot/admin/BuildSuccessReportingServlet.java b/src/main/java/com/palantir/stash/stashbot/admin/BuildSuccessReportingServlet.java index 3234a07..d10be13 100644 --- a/src/main/java/com/palantir/stash/stashbot/admin/BuildSuccessReportingServlet.java +++ b/src/main/java/com...
false
true
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { // Look at JenkinsManager class if you change this: // final two arguments could be empty... final String URL_FORMAT = "BASE_URL/REPO_ID/TYPE/STATE/BUI...
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { // Look at JenkinsManager class if you change this: // final two arguments could be empty... final String URL_FORMAT = "BASE_URL/REPO_ID/TYPE/STATE/BUI...
diff --git a/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java b/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java index c501254..95b9fd9 100644 --- a/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java +++ b/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java @@ -1,68 +1...
true
true
public void execute(final MessageEvent event, final String[] args) { Channel channel = event.getChannel(); User sender = event.getUser(); String host; int port = 80; if (args.length == 1 || args.length == 2) { try { host = ...
public void execute(final MessageEvent event, final String[] args) { Channel channel = event.getChannel(); User sender = event.getUser(); String host; int port = 80; if (args.length == 1 || args.length == 2) { try { host = ...
diff --git a/src/be/ibridge/kettle/trans/step/streamlookup/StreamLookup.java b/src/be/ibridge/kettle/trans/step/streamlookup/StreamLookup.java index bbbecfde..02642d72 100644 --- a/src/be/ibridge/kettle/trans/step/streamlookup/StreamLookup.java +++ b/src/be/ibridge/kettle/trans/step/streamlookup/StreamLookup.java @@ -1...
true
true
private boolean lookupValues(Row row) { Row lu=new Row(); Row add=null; debug = "start lookupValues"; if (first) { debug = "First part"; first=false; // read the lookup values! data.keynrs = new int[meta.getKeystream().length]; for (int i=0;i<meta.getKeystream().length;i++) { ...
private boolean lookupValues(Row row) { Row lu=new Row(); Row add=null; debug = "start lookupValues"; if (first) { debug = "First part"; first=false; // read the lookup values! data.keynrs = new int[meta.getKeystream().length]; for (int i=0;i<meta.getKeystream().length;i++) { ...
diff --git a/src/main/java/net/pms/io/ProcessWrapperImpl.java b/src/main/java/net/pms/io/ProcessWrapperImpl.java index dfe437245..bf251cfdf 100644 --- a/src/main/java/net/pms/io/ProcessWrapperImpl.java +++ b/src/main/java/net/pms/io/ProcessWrapperImpl.java @@ -1,309 +1,319 @@ /* * PS3 Media Server, for streaming any...
false
true
public void run() { ProcessBuilder pb = new ProcessBuilder(cmdArray); try { LOGGER.debug("Starting " + cmdLine); if (params.outputFile != null && params.outputFile.getParentFile().isDirectory()) { pb.directory(params.outputFile.getParentFile()); } if (params.workDir != null && params.workDir.isDire...
public void run() { ProcessBuilder pb = new ProcessBuilder(cmdArray); try { LOGGER.debug("Starting " + cmdLine); if (params.outputFile != null && params.outputFile.getParentFile().isDirectory()) { pb.directory(params.outputFile.getParentFile()); } if (params.workDir != null && params.workDir.isDire...
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/ConverterUtil.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/ConverterUtil.java index 8476dfdba..7f10a09b6 100644 --- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/js...
true
true
public static Node findAncestorTableElement(Element srcElem, Element childElem) { Node parent = srcElem.getParentNode(); if ((parent == null) || !(parent instanceof Element)) { return null; } String name = parent.getNodeName(); if (IHTMLConstants.TAG_HTML.equalsIgnoreCase(name) || IHTMLConstants.TAG_...
static Node findAncestorTableElement(Element srcElem, Element childElem) { Node parent = srcElem.getParentNode(); if ((parent == null) || !(parent instanceof Element)) { return null; } String name = parent.getNodeName(); if (IHTMLConstants.TAG_HTML.equalsIgnoreCase(name) || IHTMLConstants.TAG_BODY.eq...
diff --git a/src/com/fastquake/textbasedgame/TextBasedGame.java b/src/com/fastquake/textbasedgame/TextBasedGame.java index f322051..b4a561f 100644 --- a/src/com/fastquake/textbasedgame/TextBasedGame.java +++ b/src/com/fastquake/textbasedgame/TextBasedGame.java @@ -1,68 +1,74 @@ package com.fastquake.textbasedgame; ...
true
true
private static void handleCommand(String inputCommand){ inputCommand = inputCommand.toLowerCase(); //Change it to lowercase so that there is no confusion due to case String[] splitCommand = inputCommand.split(" "); String command = splitCommand[0]; String object = ""; if(command.equals("north") || command...
private static void handleCommand(String inputCommand){ inputCommand = inputCommand.toLowerCase(); //Change it to lowercase so that there is no confusion due to case String[] splitCommand = inputCommand.split(" "); String command = splitCommand[0]; String object = ""; if(command.equals("north") || command...
diff --git a/src/gov/nih/nci/camod/webapp/action/AnimalModelTreePopulateAction.java b/src/gov/nih/nci/camod/webapp/action/AnimalModelTreePopulateAction.java index 9686d939..da56acc8 100755 --- a/src/gov/nih/nci/camod/webapp/action/AnimalModelTreePopulateAction.java +++ b/src/gov/nih/nci/camod/webapp/action/AnimalModelT...
true
true
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { System.out.println( "<AnimalModelTreePopulateAction populate> Entering... " ); // Grab the current model...
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { System.out.println( "<AnimalModelTreePopulateAction populate> Entering... " ); // Grab the current model...
diff --git a/src/com/gamezgalaxy/GGS/networking/packets/minecraft/Connect.java b/src/com/gamezgalaxy/GGS/networking/packets/minecraft/Connect.java index 85f8fa7..5fa1281 100644 --- a/src/com/gamezgalaxy/GGS/networking/packets/minecraft/Connect.java +++ b/src/com/gamezgalaxy/GGS/networking/packets/minecraft/Connect.java...
true
true
public void Handle(byte[] message, Server server, IOClient p) { Player player; if (p instanceof Player) { player = (Player)p; } else return; try { byte version = message[0]; byte[] name = new byte[64]; for (int i = 1; i < 64; i++) name[i - 1] = message[i]; player.username = new String(n...
public void Handle(byte[] message, Server server, IOClient p) { Player player; if (p instanceof Player) { player = (Player)p; } else return; try { byte version = message[0]; byte[] name = new byte[64]; for (int i = 1; i < 64; i++) name[i - 1] = message[i]; player.username = new String(n...
diff --git a/src/org/nypl/mss/dgi/FileInput.java b/src/org/nypl/mss/dgi/FileInput.java index 117a6ff..53d3670 100644 --- a/src/org/nypl/mss/dgi/FileInput.java +++ b/src/org/nypl/mss/dgi/FileInput.java @@ -1,105 +1,105 @@ package org.nypl.mss.dgi; import java.io.*; import java.util.List; import java.util.Propertie...
false
true
private void droid6() throws FileNotFoundException, IOException, CommandExecutionException { BinarySignatureIdentification bin = new BinarySignatureIdentification(file, sigFile); List<IdentificationResult> resultList = bin.getResultList(); List<IdentificationResult> extResultList = bin.getEx...
private void droid6() throws FileNotFoundException, IOException, CommandExecutionException { BinarySignatureIdentification bin = new BinarySignatureIdentification(file, sigFile); List<IdentificationResult> resultList = bin.getResultList(); List<IdentificationResult> extResultList = bin.getEx...
diff --git a/test/src/com/socialize/test/unit/UserTest.java b/test/src/com/socialize/test/unit/UserTest.java index 538417b9..671e208b 100644 --- a/test/src/com/socialize/test/unit/UserTest.java +++ b/test/src/com/socialize/test/unit/UserTest.java @@ -1,115 +1,118 @@ /* * Copyright (c) 2011 Socialize Inc. * * Pe...
false
true
public void testMerge() { User mockUser = AndroidMock.createMock(User.class); User realUser = new User(); Stats stats = AndroidMock.createMock(Stats.class); List<UserAuthData> authData = AndroidMock.createMock(List.class); final String firstName = "foobar_firstName"; final String lastName = "foobar_l...
public void testMerge() { User mockUser = AndroidMock.createMock(User.class); User realUser = new User(); Stats stats = AndroidMock.createMock(Stats.class); List<UserAuthData> authData = AndroidMock.createMock(List.class); final String firstName = "foobar_firstName"; final String lastName = "foobar_l...
diff --git a/core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java b/core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java index d77536e7c..824f31044 100644 --- a/core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java +++ b/core/src/main/java/hudson/node_monitors/TemporarySpaceMoni...
true
true
public DiskSpace invoke(File f, VirtualChannel channel) throws IOException { try { // if the disk is really filled up we can't even create a single file, // so calling File.createTempFile and figuring out the directory won't reliably work. f = new File...
public DiskSpace invoke(File f, VirtualChannel channel) throws IOException { try { // if the disk is really filled up we can't even create a single file, // so calling File.createTempFile and figuring out the directory won't reliably work. f = new File...
diff --git a/src/powercrystals/minefactoryreloaded/modhelpers/backtools/BackTools.java b/src/powercrystals/minefactoryreloaded/modhelpers/backtools/BackTools.java index e7840554..2bb470cf 100644 --- a/src/powercrystals/minefactoryreloaded/modhelpers/backtools/BackTools.java +++ b/src/powercrystals/minefactoryreloaded/m...
true
true
public static void load(FMLInitializationEvent e) { if(!Loader.isModLoaded("Atum")) { FMLLog.warning("BackTools missing - MFR BackTools Compat not loading"); return; } try { Class modBackTools = Class.forName("mod_BackTools"); /* * addBackItem(Class itemClass, int orientation, boolean flipp...
public static void load(FMLInitializationEvent e) { if(!Loader.isModLoaded("mod_BackTools")) { FMLLog.warning("BackTools missing - MFR BackTools Compat not loading"); return; } try { Class modBackTools = Class.forName("mod_BackTools"); /* * addBackItem(Class itemClass, int orientation, bool...
diff --git a/GAE/src/com/gallatinsystems/device/DeviceSurveyJobQueueUpdater.java b/GAE/src/com/gallatinsystems/device/DeviceSurveyJobQueueUpdater.java index 486863192..c948a8e19 100644 --- a/GAE/src/com/gallatinsystems/device/DeviceSurveyJobQueueUpdater.java +++ b/GAE/src/com/gallatinsystems/device/DeviceSurveyJobQueue...
false
true
private void deleteRecords(String packedString, String assignmentId) { if (packedString != null) { List<DeviceSurveyJobQueue> queueItems = deviceSurveyJobQueueDao .listJobByAssignment(new Long(assignmentId)); List<DeviceSurveyJobQueue> itemsToDelete = new ArrayList<DeviceSurveyJobQueue>(); if (packedSt...
private void deleteRecords(String packedString, String assignmentId) { if (packedString != null) { List<DeviceSurveyJobQueue> queueItems = deviceSurveyJobQueueDao .listJobByAssignment(new Long(assignmentId)); List<DeviceSurveyJobQueue> itemsToDelete = new ArrayList<DeviceSurveyJobQueue>(); if (packedSt...
diff --git a/src/main/java/org/JesusFreke/dexlib/code/Format/Format3rc.java b/src/main/java/org/JesusFreke/dexlib/code/Format/Format3rc.java index e41875c..7bdcd9b 100644 --- a/src/main/java/org/JesusFreke/dexlib/code/Format/Format3rc.java +++ b/src/main/java/org/JesusFreke/dexlib/code/Format/Format3rc.java @@ -1,118 +...
true
true
public Instruction make(DexFile dexFile, byte opcode, short regCount, int startReg, IndexedItem item) { byte[] bytes = new byte[6]; Opcode op = Opcode.getOpcodeByValue(opcode); checkOpcodeFormat(op); if (regCount >= 1<<8) { throw new RuntimeException("regCount must be ...
public Instruction make(DexFile dexFile, byte opcode, short regCount, int startReg, IndexedItem item) { byte[] bytes = new byte[6]; Opcode op = Opcode.getOpcodeByValue(opcode); checkOpcodeFormat(op); if (regCount >= 1<<8) { throw new RuntimeException("regCount must be ...
diff --git a/src/edu/elfak/chasegame/GCMIntentService.java b/src/edu/elfak/chasegame/GCMIntentService.java index 558de0c..e9b3a0b 100644 --- a/src/edu/elfak/chasegame/GCMIntentService.java +++ b/src/edu/elfak/chasegame/GCMIntentService.java @@ -1,46 +1,45 @@ package edu.elfak.chasegame; import android.content.Conte...
false
true
protected void onMessage(Context arg0, Intent arg1) { // parse message into strings String str = arg1.getExtras().getString("message"); Log.v("Message from GCM: ", str); intent.putExtra("message", str); sendBroadcast(intent); }
protected void onMessage(Context arg0, Intent rec_intent) { // parse message into strings String str = rec_intent.getExtras().getString("message"); intent.putExtra("message", str); sendBroadcast(intent); }
diff --git a/src/main/java/org/biojava3/structure/align/symm/census2/analysis/LigandFinder.java b/src/main/java/org/biojava3/structure/align/symm/census2/analysis/LigandFinder.java index d90e172d..6b68d5ab 100644 --- a/src/main/java/org/biojava3/structure/align/symm/census2/analysis/LigandFinder.java +++ b/src/main/jav...
true
true
public void find(Results census) { if (output.exists()) { try { ligandList = LigandList.fromXml(output); } catch (IOException e) { throw new RuntimeException("Couldn't load " + output); } } else { ligandList = new LigandList(); } ScopDatabase scop = ScopFactory.getSCOP(ScopFactory.VERSION...
public void find(Results census) { if (output != null && output.exists()) { try { ligandList = LigandList.fromXml(output); } catch (IOException e) { throw new RuntimeException("Couldn't load " + output); } } else { ligandList = new LigandList(); } ScopDatabase scop = ScopFactory.getSCOP(S...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/AnnounceCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/core/AnnounceCommand.java index 9bc1368c5..537073fb4 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/AnnounceCommand.java +++ b/src/main/java/net/a...
true
true
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException { // Initialize fields String text = null; AnnounceType announceType = AnnounceType.ALL; // Users tend to forget quotes sometimes on commands like this, so // let's check if there are more argum...
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException { // Initialize fields String text = null; AnnounceType announceType = AnnounceType.ALL; // Users tend to forget quotes sometimes on commands like this, so // let's check if there are more argum...
diff --git a/src/common/BasicPipes/pipes/TileEntityPipe.java b/src/common/BasicPipes/pipes/TileEntityPipe.java index 7e60ed93..cd93001f 100644 --- a/src/common/BasicPipes/pipes/TileEntityPipe.java +++ b/src/common/BasicPipes/pipes/TileEntityPipe.java @@ -1,267 +1,267 @@ package BasicPipes.pipes; import net.minecraft....
true
true
public void updateEntity() { //cause the block to update itself every tick needs to be change to .5 seconds to reduce load ((BlockPipe)this.getBlockType()).updateConductorTileEntity(this.worldObj, this.xCoord, this.yCoord, this.zCoord); count++; if(count >= 30 || intiUpdate) { PacketManager.sendTileEntit...
public void updateEntity() { //cause the block to update itself every tick needs to be change to .5 seconds to reduce load BlockPipe.updateConductorTileEntity(this.worldObj, this.xCoord, this.yCoord, this.zCoord); count++; if(count >= 30 || intiUpdate) { PacketManager.sendTileEntityPacket(this, BasicPipe...
diff --git a/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/MethodNotImplementedException.java b/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/MethodNotImplementedException.java index 36764d1c9..e17bf45c7 100644 --- a/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/...
true
true
public MethodNotImplementedException() { super("Method is not implemented yet"); //$NON-NLS-1$ }
public MethodNotImplementedException() { super(Messages.MethodNotImplementedException_MethodIsNotImplementedYet); //$NON-NLS-1$ }
diff --git a/test/src/com/redhat/ceylon/common/test/CeylonConfigTest.java b/test/src/com/redhat/ceylon/common/test/CeylonConfigTest.java index 0770313..863ae13 100644 --- a/test/src/com/redhat/ceylon/common/test/CeylonConfigTest.java +++ b/test/src/com/redhat/ceylon/common/test/CeylonConfigTest.java @@ -1,164 +1,164 @@...
true
true
public void testMultiple() { Assert.assertEquals(null, testConfig.getOptionValues("foo.bar")); Assert.assertTrue(compareStringArrays(new String[]{"aap", "noot", "mies"}, testConfig.getOptionValues("test.multiple.strings"))); } @Test public void testSectionNames() { Assert.as...
public void testMultiple() { Assert.assertEquals(null, testConfig.getOptionValues("foo.bar")); Assert.assertTrue(compareStringArrays(new String[]{"aap", "noot", "mies"}, testConfig.getOptionValues("test.multiple.strings"))); } @Test public void testSectionNames() { Assert.as...
diff --git a/sources/src/main/java/cz/cuni/mff/odcleanstore/crbatch/urimapping/AlternativeURINavigator.java b/sources/src/main/java/cz/cuni/mff/odcleanstore/crbatch/urimapping/AlternativeURINavigator.java index 4564554..a48ac34 100644 --- a/sources/src/main/java/cz/cuni/mff/odcleanstore/crbatch/urimapping/AlternativeUR...
false
true
private Map<String, List<String>> findAlternativeURIs() { // TODO: more efficient memory usage? HashMap<String, List<String>> alternativeURIMap = new HashMap<String, List<String>>(); for (String mappedURI : uriMapping) { String canonicalURI = uriMapping.getCanonicalURI(mappedURI...
private Map<String, List<String>> findAlternativeURIs() { HashMap<String, List<String>> alternativeURIMap = new HashMap<String, List<String>>(); for (String mappedURI : uriMapping) { String canonicalURI = uriMapping.getCanonicalURI(mappedURI); List<String> alternativeURIs = ...
diff --git a/src/edu/jhu/thrax/tools/ParaphraseScore.java b/src/edu/jhu/thrax/tools/ParaphraseScore.java index dd48457..c6c592a 100644 --- a/src/edu/jhu/thrax/tools/ParaphraseScore.java +++ b/src/edu/jhu/thrax/tools/ParaphraseScore.java @@ -1,199 +1,207 @@ package edu.jhu.thrax.tools; import java.io.BufferedWriter;...
false
true
public static void main(String[] args) { String grammar_file = null; String reference_file = null; String weight_file = null; String output_file = null; boolean labeled = true; boolean sparse = true; for (int i = 0; i < args.length; i++) { if ("-g".equals(args[i]) && (i < args.len...
public static void main(String[] args) { String grammar_file = null; String reference_file = null; String weight_file = null; String output_file = null; boolean labeled = true; boolean sparse = true; for (int i = 0; i < args.length; i++) { if ("-g".equals(args[i]) && (i < args.len...
diff --git a/src/main/java/browniepoints/servlet/QuestionServlet.java b/src/main/java/browniepoints/servlet/QuestionServlet.java index 9b332cc..2b770a4 100644 --- a/src/main/java/browniepoints/servlet/QuestionServlet.java +++ b/src/main/java/browniepoints/servlet/QuestionServlet.java @@ -1,69 +1,70 @@ package main.jav...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Integer uid = UserHelper.getInstance().getLoggedInUid(); List<CompositeQuestion> questions = QuestionHelper.getInstance() .getQuestionsForUser(uid); if (null == questions || questions.size...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Integer uid = UserHelper.getInstance().getLoggedInUid(); List<CompositeQuestion> questions = QuestionHelper.getInstance() .getQuestionsForUser(uid); if (null == questions || questions.size...
diff --git a/main/src/com/google/refine/importers/ExcelImporter.java b/main/src/com/google/refine/importers/ExcelImporter.java index a9900304..162429d5 100644 --- a/main/src/com/google/refine/importers/ExcelImporter.java +++ b/main/src/com/google/refine/importers/ExcelImporter.java @@ -1,337 +1,344 @@ /* Copyright ...
false
true
public void read(InputStream inputStream, Project project, ProjectMetadata metadata, Properties options) throws ImportException { int ignoreLines = ImporterUtilities.getIntegerOption("ignore", options, -1); int headerLines = ImporterUtilities.getIntegerOption("header-lines", options, 1); int...
public void read(InputStream inputStream, Project project, ProjectMetadata metadata, Properties options) throws ImportException { int ignoreLines = ImporterUtilities.getIntegerOption("ignore", options, -1); int headerLines = ImporterUtilities.getIntegerOption("header-lines", options, 1); int...
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/protocol/bundleresource/Handler.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/protocol/bundleresource/Handler.java index 08ae4b59..c4f4b0ea 100644 --- a/bundles/org.eclipse.osgi/defaultA...
true
true
protected BundleEntry findBundleEntry(URL url, Bundle bundle) throws IOException { BundleLoader bundleLoader = bundle.getBundleLoader(); BundleEntry entry = (BundleEntry) bundleLoader.findObject(url.getPath()); if (entry == null) throw new FileNotFoundException(url.getPath()); return entry; }
protected BundleEntry findBundleEntry(URL url, Bundle bundle) throws IOException { BundleLoader bundleLoader = bundle.getBundleLoader(); if (bundleLoader == null) throw new FileNotFoundException(url.getPath()); BundleEntry entry = (BundleEntry) bundleLoader.findObject(url.getPath()); if (entry == null) ...
diff --git a/src/java/com/twitter/elephantbird/pig/load/LzoTextLoader.java b/src/java/com/twitter/elephantbird/pig/load/LzoTextLoader.java index 28a64db6..c76d6c28 100644 --- a/src/java/com/twitter/elephantbird/pig/load/LzoTextLoader.java +++ b/src/java/com/twitter/elephantbird/pig/load/LzoTextLoader.java @@ -1,57 +1,5...
true
true
public Tuple getNext() throws IOException { if (reader_ == null) { return null; } Tuple t = null; try { Object line = reader_.getCurrentValue(); if (line != null) { incrCounter(LzoTextLoaderCounters.LinesRead, 1L); t = tupleFactory_.newTuple(new DataByteArray(line.toString().getBytes...
public Tuple getNext() throws IOException { if (reader_ == null) { return null; } Tuple t = null; try { if ( reader_.nextKeyValue()) { Object line = reader_.getCurrentValue(); if (line != null) { incrCounter(LzoTextLoaderCounters.LinesRead, 1L); t = tupleFactory_.n...
diff --git a/uk.ac.bolton.archimate.editor/src/uk/ac/bolton/archimate/editor/diagram/actions/ExportAsImageAction.java b/uk.ac.bolton.archimate.editor/src/uk/ac/bolton/archimate/editor/diagram/actions/ExportAsImageAction.java index 52d4856d..305227e9 100644 --- a/uk.ac.bolton.archimate.editor/src/uk/ac/bolton/archimate/...
true
true
private String askSaveFile() { FileDialog dialog = new FileDialog(Display.getCurrent().getActiveShell(), SWT.SAVE); dialog.setText("Export View As Image"); dialog.setFilterExtensions(new String[] { "*.png", "*.jpg,*.jpeg", "*.bmp" } ); String path = dialog.open(); if...
private String askSaveFile() { FileDialog dialog = new FileDialog(Display.getCurrent().getActiveShell(), SWT.SAVE); dialog.setText("Export View As Image"); dialog.setFilterExtensions(new String[] { "*.png", "*.jpg;*.jpeg", "*.bmp" } ); String path = dialog.open(); if...
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index c5c77e11b..b1736203c 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1,1192 +1,1195 @@ /* * Copyright (C) 2010 The Android Open Source Projec...
false
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 =...