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/sql-builder-api/src/main/java/cx/ath/jbzdak/sqlbuilder/dialect/peer/ParameterLiteralPeer.java b/sql-builder-api/src/main/java/cx/ath/jbzdak/sqlbuilder/dialect/peer/ParameterLiteralPeer.java index 0852f94..2c67384 100644 --- a/sql-builder-api/src/main/java/cx/ath/jbzdak/sqlbuilder/dialect/peer/ParameterLite...
true
true
protected void appendToInternal(RenderingContext renderingContext, StringBuilder stringBuilder) { stringBuilder.append(":"); stringBuilder.append(parent.getLiteralValue().getName()); stringBuilder.append(" "); }
protected void appendToInternal(RenderingContext renderingContext, StringBuilder stringBuilder) { stringBuilder.append(" :"); stringBuilder.append(parent.getLiteralValue().getName()); stringBuilder.append(" "); }
diff --git a/source/oms/src/main/java/org/marketcetera/oms/OutgoingMessageHandler.java b/source/oms/src/main/java/org/marketcetera/oms/OutgoingMessageHandler.java index 0c9c5131c..2b7e227a7 100644 --- a/source/oms/src/main/java/org/marketcetera/oms/OutgoingMessageHandler.java +++ b/source/oms/src/main/java/org/marketce...
false
true
public Message handleMessage(Message message) throws MarketceteraException { if(message == null) { LoggerAdapter.error(OMSMessageKey.ERROR_INCOMING_MSG_NULL.getLocalizedMessage(), this); return null; } if(!qfApp.isLoggedOn()) { return createRejectionMessa...
public Message handleMessage(Message message) throws MarketceteraException { if(message == null) { LoggerAdapter.error(OMSMessageKey.ERROR_INCOMING_MSG_NULL.getLocalizedMessage(), this); return null; } if(!qfApp.isLoggedOn()) { return createRejectionMessa...
diff --git a/spring/src/main/java/com/techempower/spring/web/HelloController.java b/spring/src/main/java/com/techempower/spring/web/HelloController.java index 7b1d8acae..80e59a8c7 100644 --- a/spring/src/main/java/com/techempower/spring/web/HelloController.java +++ b/spring/src/main/java/com/techempower/spring/web/Hell...
true
true
Message json() { return new Message("Hello, world"); }
Message json() { return new Message("Hello, World!"); }
diff --git a/src/main/java/com/oschrenk/humangeo/calc/AlongTrackOrthodromeDistance.java b/src/main/java/com/oschrenk/humangeo/calc/AlongTrackOrthodromeDistance.java index 4bfb206..0a50708 100644 --- a/src/main/java/com/oschrenk/humangeo/calc/AlongTrackOrthodromeDistance.java +++ b/src/main/java/com/oschrenk/humangeo/ca...
false
true
public double distance(final Geographic2dCoordinate point, final Segment<Geographic2dCoordinate> segment) { // dAt = Math.acos(Math.cos(d13/r)/Math.cos(dXt/r)) * r; final double r = sphere.getRadius(); final double d13 = new HaversineDistance(sphere).distance( segment.getFrom(), point); final double d...
public double distance(final Geographic2dCoordinate point, final Segment<Geographic2dCoordinate> segment) { // dAt = Math.acos(Math.cos(d13/r)/Math.cos(dXt/r)) * r; final double r = sphere.getRadius(); final double d13 = new HaversineDistance(sphere).distance( segment.getFrom(), point); final double d...
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/core/compat/SanityChecker.java b/src/FE_SRC_COMMON/com/ForgeEssentials/core/compat/SanityChecker.java index c287158df..cc4868aa9 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/core/compat/SanityChecker.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/core/compat/Sa...
true
true
public void run() { if (ForgeEssentials.sanitycheck = false) { OutputHandler.severe("Sanity checking has been disabled. Do not bug the FE team with issues running FE on a bukkit server, or with any other server mod."); return; } // Check for BukkitForge if (Loader.isModLoaded("BukkitForge")) { O...
public void run() { if (!ForgeEssentials.sanitycheck) { OutputHandler.severe("Sanity checking has been disabled. Do not bug the FE team with issues running FE on a bukkit server, or with any other server mod."); return; } // Check for BukkitForge if (Loader.isModLoaded("BukkitForge")) { OutputHa...
diff --git a/h2/src/main/org/h2/bnf/context/DbColumn.java b/h2/src/main/org/h2/bnf/context/DbColumn.java index 63f67a944..91242e551 100644 --- a/h2/src/main/org/h2/bnf/context/DbColumn.java +++ b/h2/src/main/org/h2/bnf/context/DbColumn.java @@ -1,85 +1,85 @@ /* * Copyright 2004-2013 H2 Group. Multiple-Licensed under...
false
true
public DbColumn(DbContents contents, ResultSet rs, boolean prodecureColumn) throws SQLException { name = rs.getString("COLUMN_NAME"); quotedName = contents.quoteIdentifier(name); String type = rs.getString("TYPE_NAME"); // a procedures column size is identified by PRECISION, for tabl...
public DbColumn(DbContents contents, ResultSet rs, boolean procedureColumn) throws SQLException { name = rs.getString("COLUMN_NAME"); quotedName = contents.quoteIdentifier(name); String type = rs.getString("TYPE_NAME"); // a procedures column size is identified by PRECISION, for tabl...
diff --git a/demos/helloworld/gdx-helloworld-android/src/com/badlogic/gdx/GDXHelloWorld.java b/demos/helloworld/gdx-helloworld-android/src/com/badlogic/gdx/GDXHelloWorld.java index a8585fce9..22db35586 100644 --- a/demos/helloworld/gdx-helloworld-android/src/com/badlogic/gdx/GDXHelloWorld.java +++ b/demos/helloworld/gd...
true
true
@Override public void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); initialize(false); getGraphics().setRenderListener(new HelloWorld()); }
@Override public void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); initialize(new HelloWorld(), false); }
diff --git a/web/src/main/java/org/eurekastreams/web/client/model/requests/PersonPagePropertiesDTOToPersonTransformer.java b/web/src/main/java/org/eurekastreams/web/client/model/requests/PersonPagePropertiesDTOToPersonTransformer.java index 2ec1c4930..fa6aa85a5 100644 --- a/web/src/main/java/org/eurekastreams/web/clien...
true
true
public Person transform(final PersonPagePropertiesDTO dto) { Person person = new Person(); person.setTheme(new Theme("", "", "", dto.getThemeCssFile(), "", "", "", "")); TabGroup startTabGroup = new TabGroup(); for (TabDTO tabDTO : dto.getTabDTOs()) { Tab ta...
public Person transform(final PersonPagePropertiesDTO dto) { Person person = new Person(); if (dto.getThemeCssFile() == null) { person.setTheme(null); } else { person.setTheme(new Theme("", "", "", dto.getThemeCssFile(), "", "", "", "")); ...
diff --git a/src/com/massivecraft/mcore/ps/PSFormatAbstract.java b/src/com/massivecraft/mcore/ps/PSFormatAbstract.java index 2ed855a8..66e477a1 100644 --- a/src/com/massivecraft/mcore/ps/PSFormatAbstract.java +++ b/src/com/massivecraft/mcore/ps/PSFormatAbstract.java @@ -1,152 +1,148 @@ package com.massivecraft.mcore.p...
false
true
public List<String> formatEntries(PS ps) { List<String> ret = new ArrayList<String>(); Object val = null; if (this.useWorldDisplayname) { val = ps.getWorld(); val = Mixin.getWorldDisplayName(val.toString()); if (val != null) ret.add(String.format(this.formatWorld, val)); } else if (this.use...
public List<String> formatEntries(PS ps) { List<String> ret = new ArrayList<String>(); Object val = null; val = ps.getWorld(); if (val != null) { if (this.useWorldDisplayname) { val = Mixin.getWorldDisplayName(val.toString()); } else if (this.useWorldAlias) { val = Mixin.getWorl...
diff --git a/src/org/bouncycastle/asn1/DERVisibleString.java b/src/org/bouncycastle/asn1/DERVisibleString.java index 13a3aadd..1c385b7a 100644 --- a/src/org/bouncycastle/asn1/DERVisibleString.java +++ b/src/org/bouncycastle/asn1/DERVisibleString.java @@ -1,123 +1,123 @@ package org.bouncycastle.asn1; import java.io...
true
true
public static DERVisibleString getInstance( ASN1TaggedObject obj, boolean explicit) { ASN1Primitive o = obj.getObject(); if (explicit || o instanceof DERUTF8String) { return getInstance(o); } else { return new DERV...
public static DERVisibleString getInstance( ASN1TaggedObject obj, boolean explicit) { ASN1Primitive o = obj.getObject(); if (explicit || o instanceof DERVisibleString) { return getInstance(o); } else { return new D...
diff --git a/Project2/src/Parser.java b/Project2/src/Parser.java index 0f39866..042af52 100644 --- a/Project2/src/Parser.java +++ b/Project2/src/Parser.java @@ -1,232 +1,232 @@ import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; public class Parser { ...
false
true
public boolean parseFile() throws IOException { if(isValidSearchName(getFileLoc())) { FileReader DBReader = new FileReader(getFileLoc()); BufferedReader DBReaderBuffered = new BufferedReader(DBReader); String next_line=""; int partNum = 1; String type = ""; ArrayList<String> aut...
public boolean parseFile() throws IOException { if(isValidSearchName(getFileLoc())) { FileReader DBReader = new FileReader(getFileLoc()); BufferedReader DBReaderBuffered = new BufferedReader(DBReader); String next_line=""; int partNum = 1; String type = ""; ArrayList<String> aut...
diff --git a/src/java/com/android/internal/telephony/MccTable.java b/src/java/com/android/internal/telephony/MccTable.java index 0839f2d..dd58646 100644 --- a/src/java/com/android/internal/telephony/MccTable.java +++ b/src/java/com/android/internal/telephony/MccTable.java @@ -1,573 +1,573 @@ /* * Copyright (C) 2006 ...
false
true
public static void setSystemLocale(Context context, String language, String country) { String l = SystemProperties.get("persist.sys.language"); String c = SystemProperties.get("persist.sys.country"); if (null == language) { return; // no match possible } language...
public static void setSystemLocale(Context context, String language, String country) { String l = SystemProperties.get("persist.sys.language"); String c = SystemProperties.get("persist.sys.country"); if (null == language) { return; // no match possible } language...
diff --git a/src/Allocator.java b/src/Allocator.java index 4b1b4f6..50a32c0 100644 --- a/src/Allocator.java +++ b/src/Allocator.java @@ -1,88 +1,88 @@ /* SNARL/Allocator James Current 4/28/12 */ public class Allocator { public final class Register { private String name; //Printable name of thi...
true
true
public Register request(){ if(registers == null){ throw new SnarlCompilerException("Too many variables declared."); } Register register = registers; registers = register.next; register.used = true; return register; }...
public Register request(){ if(registers == null){ throw new SnarlCompilerException("Out of memory."); } Register register = registers; registers = register.next; register.used = true; return register; }
diff --git a/src/com/jidesoft/plaf/basic/BasicLookAndFeelExtension.java b/src/com/jidesoft/plaf/basic/BasicLookAndFeelExtension.java index 393a367d..c2b8dde2 100644 --- a/src/com/jidesoft/plaf/basic/BasicLookAndFeelExtension.java +++ b/src/com/jidesoft/plaf/basic/BasicLookAndFeelExtension.java @@ -1,79 +1,78 @@ /* *...
true
true
public static void initClassDefaults(UIDefaults table) { int products = LookAndFeelFactory.getProductsUsed(); final String basicPackageName = "com.jidesoft.plaf.basic."; // common table.put("JidePopupMenuUI", basicPackageName + "BasicJidePopupMenuUI"); table.put("HeaderBoxU...
public static void initClassDefaults(UIDefaults table) { int products = LookAndFeelFactory.getProductsUsed(); final String basicPackageName = "com.jidesoft.plaf.basic."; // common table.put("JidePopupMenuUI", basicPackageName + "BasicJidePopupMenuUI"); table.put("HeaderBoxU...
diff --git a/net.sf.eclipsefp.haskell.debug.core/src/net/sf/eclipsefp/haskell/debug/core/internal/launch/AbstractHaskellLaunchDelegate.java b/net.sf.eclipsefp.haskell.debug.core/src/net/sf/eclipsefp/haskell/debug/core/internal/launch/AbstractHaskellLaunchDelegate.java index d50b6fb0..4e27165b 100644 --- a/net.sf.eclips...
false
true
public void launch( final ILaunchConfiguration configuration, final String mode, final ILaunch launch, IProgressMonitor monitor ) throws CoreException { if (monitor==null){ monitor=new NullProgressMonitor(); } if( !monitor.isCanceled() ) { try { IInteractiveLaunchOperationD...
public void launch( final ILaunchConfiguration configuration, final String mode, final ILaunch launch, IProgressMonitor monitor ) throws CoreException { if (monitor==null){ monitor=new NullProgressMonitor(); } if( !monitor.isCanceled() ) { try { IInteractiveLaunchOperationD...
diff --git a/org.springframework.jms/src/main/java/org/springframework/jms/listener/AbstractPollingMessageListenerContainer.java b/org.springframework.jms/src/main/java/org/springframework/jms/listener/AbstractPollingMessageListenerContainer.java index af0c0f8b2..cd7bcaa03 100644 --- a/org.springframework.jms/src/main/...
true
true
protected boolean doReceiveAndExecute( Object invoker, Session session, MessageConsumer consumer, TransactionStatus status) throws JMSException { Connection conToClose = null; Session sessionToClose = null; MessageConsumer consumerToClose = null; try { Session sessionToUse = session; boolean trans...
protected boolean doReceiveAndExecute( Object invoker, Session session, MessageConsumer consumer, TransactionStatus status) throws JMSException { Connection conToClose = null; Session sessionToClose = null; MessageConsumer consumerToClose = null; try { Session sessionToUse = session; boolean trans...
diff --git a/src/de/earthdawn/ECEWorker.java b/src/de/earthdawn/ECEWorker.java index 2f9f114..0eb7b69 100644 --- a/src/de/earthdawn/ECEWorker.java +++ b/src/de/earthdawn/ECEWorker.java @@ -1,892 +1,892 @@ package de.earthdawn; /******************************************************************************\ Copyright...
true
true
public EDCHARACTER verarbeiteCharakter(EDCHARACTER charakter) { CharacterContainer character = new CharacterContainer(charakter); // Orignal berechnete LP sichern CALCULATEDLEGENDPOINTSType oldcalculatedLP = character.getCopyOfCalculatedLegendpoints(); // Berechnete LP erstmal zurücksetzen calculatedLP = ch...
public EDCHARACTER verarbeiteCharakter(EDCHARACTER charakter) { CharacterContainer character = new CharacterContainer(charakter); // Orignal berechnete LP sichern CALCULATEDLEGENDPOINTSType oldcalculatedLP = character.getCopyOfCalculatedLegendpoints(); // Berechnete LP erstmal zurücksetzen calculatedLP = ch...
diff --git a/ini/trakem2/utils/Search.java b/ini/trakem2/utils/Search.java index a5607081..321426b8 100644 --- a/ini/trakem2/utils/Search.java +++ b/ini/trakem2/utils/Search.java @@ -1,417 +1,418 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005-2009 Albert Cardona and Rodney Douglas. This program is free...
true
true
private void executeSearch() { String pattern = search_field.getText(); if (null == pattern || 0 == pattern.length()) { return; } // fix pattern final String typed_pattern = pattern; final StringBuffer sb = new StringBuffer(); // I hate java if (!pattern.startsWith("^")) sb.append("^.*"); for (int i...
private void executeSearch() { String pattern = search_field.getText(); if (null == pattern || 0 == pattern.length()) { return; } // fix pattern final String typed_pattern = pattern; final StringBuffer sb = new StringBuffer(); // I hate java if (!pattern.startsWith("^")) sb.append("^.*"); for (int i...
diff --git a/jlinda-core/src/test/java/org/jlinda/core/coregistration/cross/CrossGeometryTest.java b/jlinda-core/src/test/java/org/jlinda/core/coregistration/cross/CrossGeometryTest.java index 88ac46f..ce2be8e 100644 --- a/jlinda-core/src/test/java/org/jlinda/core/coregistration/cross/CrossGeometryTest.java +++ b/jlind...
true
true
public void computeAndEvaluateCrossPoly() { long yMin = lineLo; // = 0; long xMin = pixelLo; // = 0; long yMax = lineLo; long xMax = pixelHi; // Target Geometry Parameters (ENVISAT paramaters) double targetFactorY = prfASAR; // PRF of ASAR [Hz] double target...
public void computeAndEvaluateCrossPoly() { long yMin = lineLo; // = 0; long xMin = pixelLo; // = 0; long yMax = lineHi; long xMax = pixelHi; // Target Geometry Parameters (ENVISAT paramaters) double targetFactorY = prfASAR; // PRF of ASAR [Hz] double target...
diff --git a/src/com/hyperactivity/android_app/core/ScrollPickerItem.java b/src/com/hyperactivity/android_app/core/ScrollPickerItem.java index fc8425f..b1e9bf3 100644 --- a/src/com/hyperactivity/android_app/core/ScrollPickerItem.java +++ b/src/com/hyperactivity/android_app/core/ScrollPickerItem.java @@ -1,131 +1,131 @@...
true
true
public ScrollPickerItem(Bitmap image, String text, int textColor, Category category) { this.image = image; this.category = category; visible = false; centerX = 0f; centerY = 0f; radius = 0f; this.text = text; this.showText = false; this.textM...
public ScrollPickerItem(Bitmap image, String text, int textColor, Category category) { this.image = image; this.category = category; visible = false; centerX = 0f; centerY = 0f; radius = 0f; this.text = text; this.showText = false; this.textM...
diff --git a/src/uk/me/graphe/client/DrawingImpl.java b/src/uk/me/graphe/client/DrawingImpl.java index 61d6a7d..5d174da 100644 --- a/src/uk/me/graphe/client/DrawingImpl.java +++ b/src/uk/me/graphe/client/DrawingImpl.java @@ -1,1687 +1,1688 @@ package uk.me.graphe.client; import java.util.Collection; import com.g...
true
true
private static native void drawGraph3D() /*-{ var circleCoords = new Array(1000); for(i=0;i<circleCoords.length;i++)circleCoords[i] = new Array(1000); var gl; var shaderProgram; var mvMatrix; var mvMatrixStack = []; var colors = [[0.0, 0.0, 0.0], /...
private static native void drawGraph3D() /*-{ var circleCoords = new Array(1000); for(i=0;i<circleCoords.length;i++)circleCoords[i] = new Array(1000); var gl; var shaderProgram; var mvMatrix; var mvMatrixStack = []; var colors = [[0.0, 0.0, 0.0], /...
diff --git a/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/ClearCaseProvider.java b/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/ClearCaseProvider.java index e8e13c9..d5eba39 100644 --- a/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/ClearCaseProvider.java +++ b/net.sour...
true
true
public IStatus visit(IResource resource, IProgressMonitor monitor) { try { int returnCode = 1;// Used in messge dialog. monitor.beginTask("Checkin in " + resource.getFullPath(), 100); StateCache cache = getCache(resource); final StateCache targetElement = getFinalTargetElement(cache); IStatus r...
public IStatus visit(IResource resource, IProgressMonitor monitor) { try { int returnCode = 1;// Used in messge dialog. monitor.beginTask("Checkin in " + resource.getFullPath(), 100); StateCache cache = getCache(resource); final StateCache targetElement = getFinalTargetElement(cache); IStatus r...
diff --git a/src/test/java/com/huskycode/jpaquery/DependenciesDefinitionTest.java b/src/test/java/com/huskycode/jpaquery/DependenciesDefinitionTest.java index db5e930..ece0a53 100644 --- a/src/test/java/com/huskycode/jpaquery/DependenciesDefinitionTest.java +++ b/src/test/java/com/huskycode/jpaquery/DependenciesDefinit...
true
true
public void shouldBeAbleToDefineDependenciesByLinks() { SingularAttribute pointA = Mockito.mock(SingularAttribute.class); SingularAttribute pointB = Mockito.mock(SingularAttribute.class); Link anyLink = Link.from(pointA).to(pointB); DependenciesDefinition deps = Depe...
public void shouldBeAbleToDefineDependenciesByLinks() { SingularAttribute pointA = Mockito.mock(SingularAttribute.class); SingularAttribute pointB = Mockito.mock(SingularAttribute.class); Link anyLink = Link.from(Object.class, pointA).to(Object.class, pointB); DependenciesDefinition...
diff --git a/core/src/main/java/org/infinispan/marshall/jboss/ConstantObjectTable.java b/core/src/main/java/org/infinispan/marshall/jboss/ConstantObjectTable.java index 5d8a3682cc..aebf651fc2 100644 --- a/core/src/main/java/org/infinispan/marshall/jboss/ConstantObjectTable.java +++ b/core/src/main/java/org/infinispan/m...
false
true
public void start(RemoteCommandFactory cmdFactory, org.infinispan.marshall.Marshaller ispnMarshaller) { HashSet<Integer> ids = new HashSet<Integer>(); try { for (Map.Entry<String, String> entry : JDK_EXTERNALIZERS.entrySet()) { try { Class clazz = Util.loadClass(entry...
public void start(RemoteCommandFactory cmdFactory, org.infinispan.marshall.Marshaller ispnMarshaller) { HashSet<Integer> ids = new HashSet<Integer>(); for (Map.Entry<String, String> entry : JDK_EXTERNALIZERS.entrySet()) { try { Class clazz = Util.loadClass(entry.getKey()); ...
diff --git a/baixing_quanleimu/src/com/baixing/activity/CameraActivity.java b/baixing_quanleimu/src/com/baixing/activity/CameraActivity.java index 1e1dd638..f1a68dc4 100644 --- a/baixing_quanleimu/src/com/baixing/activity/CameraActivity.java +++ b/baixing_quanleimu/src/com/baixing/activity/CameraActivity.java @@ -1,830...
true
true
public void handleMessage(Message msg) { switch(msg.what) { case MSG_TAKEPIC_DELAY: { BooleanWrapper bW = (BooleanWrapper) msg.obj; if (!bW.isTrue) { mCamera.takePicture(null, null, mPicture); } break; } case MSG_PAUSE_ME: { isInitialized = false; sensorMgr.unregisterLis...
public void handleMessage(Message msg) { switch(msg.what) { case MSG_TAKEPIC_DELAY: { BooleanWrapper bW = (BooleanWrapper) msg.obj; if (!bW.isTrue && mCamera != null) { mCamera.takePicture(null, null, mPicture); } break; } case MSG_PAUSE_ME: { isInitialized = false; sens...
diff --git a/galapagos/Biotope.java b/galapagos/Biotope.java index b3ddf76..4acbde4 100644 --- a/galapagos/Biotope.java +++ b/galapagos/Biotope.java @@ -1,382 +1,382 @@ package galapagos; import java.util.*; import java.lang.*; public class Biotope extends Observable { public final int width, height; ...
true
true
public Biotope (int width, int height, double breedingProbability, int maxHitpoints, int initialHitpoints, int hitpointsPerRound, int minMaxAge, int maxMaxAge, int finchesPerBehavior, List<Behavior> behaviors) { assert (0.0 <= breedingProbability && breedingProbability <= 1.0) ...
public Biotope (int width, int height, double breedingProbability, int maxHitpoints, int initialHitpoints, int hitpointsPerRound, int minMaxAge, int maxMaxAge, int finchesPerBehavior, List<Behavior> behaviors) { assert (0.0 <= breedingProbability && breedingProbability <= 1.0) ...
diff --git a/src/org/nosco/ant/ClassGenerator.java b/src/org/nosco/ant/ClassGenerator.java index 2382fe2..cb2a035 100644 --- a/src/org/nosco/ant/ClassGenerator.java +++ b/src/org/nosco/ant/ClassGenerator.java @@ -1,734 +1,732 @@ package org.nosco.ant; import java.io.BufferedReader; import java.io.BufferedWriter; ...
true
true
private void generate(String schema, String table, JSONObject columns, JSONArray pks, List<FK> fks, List<FK> fksIn, String dataSourceName, String callbackPackage) throws IOException, JSONException { String className = genTableClassName(table); Set<String> pkSet = new HashSet<String>(); if (pks == null) pks =...
private void generate(String schema, String table, JSONObject columns, JSONArray pks, List<FK> fks, List<FK> fksIn, String dataSourceName, String callbackPackage) throws IOException, JSONException { String className = genTableClassName(table); Set<String> pkSet = new HashSet<String>(); if (pks == null) pks =...
diff --git a/src/main/java/mdettlaff/mobilemachine/controller/HomeController.java b/src/main/java/mdettlaff/mobilemachine/controller/HomeController.java index ae7295b..ec83e7d 100644 --- a/src/main/java/mdettlaff/mobilemachine/controller/HomeController.java +++ b/src/main/java/mdettlaff/mobilemachine/controller/HomeCon...
true
true
public ModelAndView simplified(@RequestParam String url, @RequestParam(required = false, defaultValue = "1") int page) throws IOException { SimplifiedWebpage webpage = service.simplify(url); Map<String, Object> model = new HashMap<String, Object>(); model.put("title", webpage.getTitle()); model.put("html", ...
public ModelAndView simplified(@RequestParam String url, @RequestParam(required = false, defaultValue = "1") int page) throws IOException { SimplifiedWebpage webpage = service.simplify(url); Map<String, Object> model = new HashMap<String, Object>(); model.put("title", webpage.getTitle()); model.put("html", ...
diff --git a/src/republicaEternityEventIII/republica/devteam/EternityCommandExecutor.java b/src/republicaEternityEventIII/republica/devteam/EternityCommandExecutor.java index 69f09b6..c77c68d 100644 --- a/src/republicaEternityEventIII/republica/devteam/EternityCommandExecutor.java +++ b/src/republicaEternityEventIII/re...
false
true
public boolean onCommand(CommandSender cs, Command c, String l, String[] args) { lastCS = cs; if(c.getLabel().equalsIgnoreCase("Ziminiar")){ if(cs.isOp()){ if (args.length == 1) { puppetmaster = args[0]; //Code to change player into Ziminiar here ziminiar = new Ziminiar(getPlayerByNa...
public boolean onCommand(CommandSender cs, Command c, String l, String[] args) { lastCS = cs; if(c.getLabel().equalsIgnoreCase("Ziminiar")){ if(cs.isOp()){ if (args.length == 1) { puppetmaster = args[0]; //Code to change player into Ziminiar here ziminiar = new Ziminiar(getPlayerByNa...
diff --git a/org/lateralgm/joshedit/JoshText.java b/org/lateralgm/joshedit/JoshText.java index 7638010..b3ede30 100644 --- a/org/lateralgm/joshedit/JoshText.java +++ b/org/lateralgm/joshedit/JoshText.java @@ -1,3059 +1,3059 @@ /* Copyright (C) 2011 Josh Ventura <joshv@zoominternet.net> * Copyright (C) 2011, 2012 Ism...
true
true
protected void processKeyTyped(KeyEvent e) { final Point sc = new Point(caret.col,caret.row); switch (e.getKeyChar()) { case KeyEvent.VK_ENTER: if (sel.type == Selection.ST.NORM) { UndoPatch up = new UndoPatch(); sel.deleteSel(); StringBuilder nr = code.getsb(caret.row); int offs...
protected void processKeyTyped(KeyEvent e) { final Point sc = new Point(caret.col,caret.row); switch (e.getKeyChar()) { case KeyEvent.VK_ENTER: if (sel.type == Selection.ST.NORM) { UndoPatch up = new UndoPatch(); sel.deleteSel(); StringBuilder nr = code.getsb(caret.row); int offs...
diff --git a/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java b/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java index 90e34fafd..e1dda820e 100644 --- a/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java +++ b/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java @@ -1,3...
true
true
public Token getNextToken() { TokenTypes recognizedTokenType = null; Token recognizedToken = null; int bml = 0; // best match length skipWs(); // recognize fixed tokens for (Entry<TokenTypes, String> currentEntry : fixedTokens.entrySet()) { String currentString = currentEntry.getValue(); int currLen ...
public Token getNextToken() { TokenTypes recognizedTokenType = null; Token recognizedToken = null; int bml = 0; // best match length skipWs(); // recognize fixed tokens for (Entry<TokenTypes, String> currentEntry : fixedTokens.entrySet()) { String currentString = currentEntry.getValue(); int currLen ...
diff --git a/wikAPIdia-sr/src/main/java/org/wikapidia/sr/MatrixBuilder.java b/wikAPIdia-sr/src/main/java/org/wikapidia/sr/MatrixBuilder.java index d7d1c773..7cc121dd 100644 --- a/wikAPIdia-sr/src/main/java/org/wikapidia/sr/MatrixBuilder.java +++ b/wikAPIdia-sr/src/main/java/org/wikapidia/sr/MatrixBuilder.java @@ -1,78 ...
true
true
public static void main(String args[]) throws ConfigurationException, IOException, WikapidiaException, DaoException { Options options = new Options(); options.addOption( new DefaultOptionBuilder() .hasArg() .withLongOpt("universal") ...
public static void main(String args[]) throws ConfigurationException, IOException, WikapidiaException, DaoException { Options options = new Options(); options.addOption( new DefaultOptionBuilder() .hasArg() .withLongOpt("universal") ...
diff --git a/gson/src/main/java/com/google/gson/TypeInfoFactory.java b/gson/src/main/java/com/google/gson/TypeInfoFactory.java index e02b647..deb88a2 100644 --- a/gson/src/main/java/com/google/gson/TypeInfoFactory.java +++ b/gson/src/main/java/com/google/gson/TypeInfoFactory.java @@ -1,124 +1,130 @@ /* * Copyright (...
true
true
private static Type getActualType( Type typeToEvaluate, Type parentType, Class<?> rawParentClass) { if (typeToEvaluate instanceof Class) { return typeToEvaluate; } else if (typeToEvaluate instanceof ParameterizedType) { ParameterizedType castedType = (ParameterizedType) typeToEvaluate; ...
private static Type getActualType( Type typeToEvaluate, Type parentType, Class<?> rawParentClass) { if (typeToEvaluate instanceof Class) { return typeToEvaluate; } else if (typeToEvaluate instanceof ParameterizedType) { ParameterizedType castedType = (ParameterizedType) typeToEvaluate; ...
diff --git a/src-gwt/com/alkacon/geranium/client/util/PositionBean.java b/src-gwt/com/alkacon/geranium/client/util/PositionBean.java index ae70b86..bf03600 100644 --- a/src-gwt/com/alkacon/geranium/client/util/PositionBean.java +++ b/src-gwt/com/alkacon/geranium/client/util/PositionBean.java @@ -1,393 +1,404 @@ /* *...
true
true
public static PositionBean getInnerDimensions(Element panel, int levels, boolean includeSelf) { boolean first = true; int top = 0; int left = 0; int bottom = 0; int right = 0; // if overflow is set to hidden, use the outer dimensions if (!Overflow.HIDDEN.getC...
public static PositionBean getInnerDimensions(Element panel, int levels, boolean includeSelf) { boolean first = true; int top = 0; int left = 0; int bottom = 0; int right = 0; // if overflow is set to hidden, use the outer dimensions if (!Overflow.HIDDEN.getC...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 7e4901e0..bc88a987 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,2173 +1,2174 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
false
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/src/com/wehuibao/json/Doc.java b/src/com/wehuibao/json/Doc.java index 4f99170..fb6767b 100644 --- a/src/com/wehuibao/json/Doc.java +++ b/src/com/wehuibao/json/Doc.java @@ -1,25 +1,26 @@ package com.wehuibao.json; import java.util.List; import com.google.gson.annotations.SerializedName; public cla...
true
true
public String get_absolute_url() { return "http://wehuibao.com/api/doc" + this.docId; }
public String get_absolute_url() { //TODO: should use absolute_url, like http://wehuibao.com/docr/ISG71x return "http://wehuibao.com/doc/" + this.docId; }
diff --git a/examples/index/Program.java b/examples/index/Program.java index c14e83a..a02b6b8 100644 --- a/examples/index/Program.java +++ b/examples/index/Program.java @@ -1,96 +1,95 @@ /* * Copyright 2011 Splunk, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"): you may * not use this ...
true
true
public void run() throws Exception { Service service = new Service(this.host, this.port, this.scheme, this.proxyhost, this.proxyport); service.login(this.username, this.password); // This example takes optional arguments: // [action index-name] ...
public void run() throws Exception { Service service = new Service(this.host, this.port, this.scheme); service.login(this.username, this.password); // This example takes optional arguments: // [action index-name] // // without cli arguments, all indexes and their tot...
diff --git a/app/controllers/Security.java b/app/controllers/Security.java index 0a22d3a..6639f33 100644 --- a/app/controllers/Security.java +++ b/app/controllers/Security.java @@ -1,127 +1,126 @@ package controllers; import models.Profile; import models.User; import play.Logger; import play.Play; import play.l...
true
true
static void onAuthenticated() { // String username = Security.connected(); // User user = User.findUserByUsername(username); // Profile profile = Profile.findProfileByUser(user); // // if( profile == null ) { // profile = new Profile(user, null, null).save(); // } // // //prof...
static void onAuthenticated() { // String username = Security.connected(); // User user = User.findUserByUsername(username); // Profile profile = Profile.findProfileByUser(user); // // if( profile == null ) { // profile = new Profile(user, null, null).save(); // } // // //prof...
diff --git a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/SubscriptionData.java b/entitlement/src/main/java/com/ning/billing/entitlement/api/user/SubscriptionData.java index 71ac2f289..33991b076 100644 --- a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/SubscriptionData.java +++ b/e...
true
true
public void rebuildTransitions(final List<EntitlementEvent> events, final ICatalog catalog) { if (events == null) { return; } SubscriptionState nextState = null; String nextPlanName = null; String nextPhaseName = null; String nextPriceList = null; ...
public void rebuildTransitions(final List<EntitlementEvent> events, final ICatalog catalog) { if (events == null) { return; } SubscriptionState nextState = null; String nextPlanName = null; String nextPhaseName = null; String nextPriceList = null; ...
diff --git a/twitter-web/src/main/java/com/nelsonjrodrigues/twitter/web/rest/exceptionhandler/RestApiExceptionHandler.java b/twitter-web/src/main/java/com/nelsonjrodrigues/twitter/web/rest/exceptionhandler/RestApiExceptionHandler.java index dbb0ed1..186a71a 100644 --- a/twitter-web/src/main/java/com/nelsonjrodrigues/tw...
true
true
protected ModelAndView doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { if (ex instanceof EmptyResultDataAccessException) { try { response.sendError(HttpStatus.NOT_FOUND.value()); } catch (Exception e) { logger.warn("Handling of exception thre...
protected ModelAndView doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) { if (ex instanceof EmptyResultDataAccessException) { try { response.sendError(HttpStatus.NOT_FOUND.value()); } catch (Exception e) { logger.warn("Handling of exception thre...
diff --git a/src/com/gitblit/wicket/pages/ChangePasswordPage.java b/src/com/gitblit/wicket/pages/ChangePasswordPage.java index 2738a5f..d7c774d 100644 --- a/src/com/gitblit/wicket/pages/ChangePasswordPage.java +++ b/src/com/gitblit/wicket/pages/ChangePasswordPage.java @@ -1,131 +1,133 @@ /* * Copyright 2011 gitblit....
true
true
public ChangePasswordPage() { super(); if (!GitBlitWebSession.get().isLoggedIn()) { // Change password requires a login throw new RestartResponseException(getApplication().getHomePage()); } if (!GitBlit.getBoolean(Keys.web.authenticateAdminPages, true) && !GitBlit.getBoolean(Keys.web.authenticateVi...
public ChangePasswordPage() { super(); if (!GitBlitWebSession.get().isLoggedIn()) { // Change password requires a login throw new RestartResponseException(getApplication().getHomePage()); } if (!GitBlit.getBoolean(Keys.web.authenticateAdminPages, true) && !GitBlit.getBoolean(Keys.web.authenticateVi...
diff --git a/support/org/intellij/jflex/editor/JFlexAnnotator.java b/support/org/intellij/jflex/editor/JFlexAnnotator.java index 459e6c3..3e38301 100644 --- a/support/org/intellij/jflex/editor/JFlexAnnotator.java +++ b/support/org/intellij/jflex/editor/JFlexAnnotator.java @@ -1,61 +1,61 @@ /* * Copyright 2011-2013 G...
true
true
public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof JFlexMacroDefinition) { holder.createInfoAnnotation(((JFlexMacroDefinition)element).getNameIdentifier(), null).setTextAttributes(JFlexSyntaxHighlighterFactory.MACRO); } else if (element insta...
public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof JFlexMacroDefinition) { holder.createInfoAnnotation(((JFlexMacroDefinition)element).getNameIdentifier(), null).setTextAttributes(JFlexSyntaxHighlighterFactory.MACRO); } else if (element insta...
diff --git a/everest-core/src/main/java/org/apache/felix/ipojo/everest/impl/DefaultResource.java b/everest-core/src/main/java/org/apache/felix/ipojo/everest/impl/DefaultResource.java index 0a7a16a..eebbb98 100644 --- a/everest-core/src/main/java/org/apache/felix/ipojo/everest/impl/DefaultResource.java +++ b/everest-cor...
false
true
public Resource process(Request request) throws IllegalActionOnResourceException, ResourceNotFoundException { //Trace System.out.println("Processing request " + request.action() + " " + request.path() + " by " + getCanonicalPath()); //End Trace // 1) Substract our pa...
public Resource process(Request request) throws IllegalActionOnResourceException, ResourceNotFoundException { //Trace System.out.println("Processing request " + request.action() + " " + request.path() + " by " + getCanonicalPath()); //End Trace // 1) Substract our pa...
diff --git a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ApplicationViewAdvisor.java b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ApplicationViewAdvisor.java index 72def441e..d468f3480 100644 --- a/org.eclipse.riena.navigation.ui.swt/src/org/e...
false
true
private void configureWindow() { final IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); final String label = controller.getNavigationNode().getLabel(); if (label != null) { configurer.setTitle(label); } initApplicationSize(configurer); if (LnfManager.getLnf().getBooleanSetting(LnfKeyConst...
private void configureWindow() { final IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); final String label = controller.getNavigationNode().getLabel(); if (label != null) { configurer.setTitle(label); } initApplicationSize(configurer); if (LnfManager.getLnf().getBooleanSetting(LnfKeyConst...
diff --git a/editor-impl/src/main/java/org/cytoscape/editor/internal/CyActivator.java b/editor-impl/src/main/java/org/cytoscape/editor/internal/CyActivator.java index 27e08e207..db0da61a8 100644 --- a/editor-impl/src/main/java/org/cytoscape/editor/internal/CyActivator.java +++ b/editor-impl/src/main/java/org/cytoscape/...
true
true
public void start(BundleContext bc) { CyApplicationManager cyApplicationManagerServiceRef = getService(bc, CyApplicationManager.class); CyNetworkManager cyNetworkManagerServiceRef = getService(bc, CyNetworkManager.class); CyNetworkViewManager cyNetworkViewManagerServiceRef = getService(bc, CyNetworkViewManager.c...
public void start(BundleContext bc) { CyApplicationManager cyApplicationManagerServiceRef = getService(bc, CyApplicationManager.class); CyNetworkManager cyNetworkManagerServiceRef = getService(bc, CyNetworkManager.class); CyNetworkViewManager cyNetworkViewManagerServiceRef = getService(bc, CyNetworkViewManager.c...
diff --git a/src/com/modcrafting/ultrabans/commands/Mute.java b/src/com/modcrafting/ultrabans/commands/Mute.java index 9e7adee..deccb9c 100644 --- a/src/com/modcrafting/ultrabans/commands/Mute.java +++ b/src/com/modcrafting/ultrabans/commands/Mute.java @@ -1,95 +1,95 @@ package com.modcrafting.ultrabans.commands; i...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); boolean auth = false; Player player = null; String admin = config.getString("defAdminName", "server"); if (sender instanceof Player){ pla...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); boolean auth = false; Player player = null; String admin = config.getString("defAdminName", "server"); if (sender instanceof Player){ pla...
diff --git a/restful-gwt/gwt-persistence/src/main/java/de/saumya/gwt/persistence/client/AbstractResource.java b/restful-gwt/gwt-persistence/src/main/java/de/saumya/gwt/persistence/client/AbstractResource.java index 33ad6ac..a1eabca 100644 --- a/restful-gwt/gwt-persistence/src/main/java/de/saumya/gwt/persistence/client/...
true
true
protected void toString(final String indent, final StringBuilder buf, final String name, final ResourceCollection<?> value) { if (value != null) { buf.append("\n") .append(indent) .append(":") .append(name) ...
protected void toString(final String indent, final StringBuilder buf, final String name, final ResourceCollection<?> value) { if (value != null) { buf.append("\n") .append(indent) .append(":") .append(name) ...
diff --git a/core/src/main/java/org/apache/mahout/classifier/sgd/CrossFoldLearner.java b/core/src/main/java/org/apache/mahout/classifier/sgd/CrossFoldLearner.java index 099670709..0975ad386 100644 --- a/core/src/main/java/org/apache/mahout/classifier/sgd/CrossFoldLearner.java +++ b/core/src/main/java/org/apache/mahout/...
false
true
public void train(long trackingKey, int actual, Vector instance) { record++; int k = 0; for (OnlineLogisticRegression model : models) { if (k == trackingKey % models.size()) { Vector v = model.classifyFull(instance); double score = v.get(actual); logLikelihood += (Math.log(sc...
public void train(long trackingKey, int actual, Vector instance) { record++; int k = 0; for (OnlineLogisticRegression model : models) { if (k == trackingKey % models.size()) { Vector v = model.classifyFull(instance); double score = Math.max(v.get(actual), MIN_SCORE); logLikel...
diff --git a/src/net/sf/freecol/client/gui/menu/DebugMenu.java b/src/net/sf/freecol/client/gui/menu/DebugMenu.java index 447a4446c..111c5268a 100644 --- a/src/net/sf/freecol/client/gui/menu/DebugMenu.java +++ b/src/net/sf/freecol/client/gui/menu/DebugMenu.java @@ -1,536 +1,545 @@ /** * Copyright (C) 2002-2007 The ...
true
true
private void buildDebugMenu() { this.setOpaque(false); this.setMnemonic(KeyEvent.VK_D); add(this); JMenu debugFixMenu = new JMenu("Fixes"); debugFixMenu.setOpaque(false); debugFixMenu.setMnemonic(KeyEvent.VK_F); this.add(debugFixMenu); final JMenuIt...
private void buildDebugMenu() { this.setOpaque(false); this.setMnemonic(KeyEvent.VK_D); add(this); JMenu debugFixMenu = new JMenu("Fixes"); debugFixMenu.setOpaque(false); debugFixMenu.setMnemonic(KeyEvent.VK_F); this.add(debugFixMenu); final JMenuIt...
diff --git a/Examples/Java/ScanDirectory.java b/Examples/Java/ScanDirectory.java index 57c74cc3d..c015b974c 100644 --- a/Examples/Java/ScanDirectory.java +++ b/Examples/Java/ScanDirectory.java @@ -1,220 +1,221 @@ /*========================================================================= Program: GDCM (Grassroots...
true
true
public static void main(String[] args) throws Exception { String directory = args[0]; Directory d = new Directory(); long nfiles = d.Load( directory ); if(nfiles == 0) { throw new Exception("No files found"); } // System.out.println( "Files:\n" + d.toString() ); Filenames...
public static void main(String[] args) throws Exception { String directory = args[0]; Directory d = new Directory(); long nfiles = d.Load( directory ); if(nfiles == 0) { throw new Exception("No files found"); } // System.out.println( "Files:\n" + d.toString() ); Filenames...
diff --git a/core/src/org/icepdf/core/pobjects/fonts/FontFactory.java b/core/src/org/icepdf/core/pobjects/fonts/FontFactory.java index d7607bc8..a47058a3 100644 --- a/core/src/org/icepdf/core/pobjects/fonts/FontFactory.java +++ b/core/src/org/icepdf/core/pobjects/fonts/FontFactory.java @@ -1,287 +1,287 @@ /* * Copyr...
true
true
public FontFile createFontFile(Stream fontStream, int fontType) { FontFile fontFile = null; if (foundFontEngine()) { try { Class fontClass = getNFontClass(fontType); if (fontClass != null) { // convert the stream to byte[] ...
public FontFile createFontFile(Stream fontStream, int fontType) { FontFile fontFile = null; if (foundFontEngine()) { try { Class fontClass = getNFontClass(fontType); if (fontClass != null) { // convert the stream to byte[] ...
diff --git a/src/main/java/com/metaweb/gridworks/clustering/binning/BinningClusterer.java b/src/main/java/com/metaweb/gridworks/clustering/binning/BinningClusterer.java index b83ca76..adb3600 100644 --- a/src/main/java/com/metaweb/gridworks/clustering/binning/BinningClusterer.java +++ b/src/main/java/com/metaweb/gridwo...
true
true
public boolean visit(Project project, int rowIndex, Row row, boolean contextual) { Cell cell = row.cells.get(_colindex); if (cell != null && cell.value != null) { String v = cell.value.toString(); String s = (v instanceof String) ? ((String) v) : v.toStrin...
public boolean visit(Project project, int rowIndex, Row row, boolean contextual) { Cell cell = row.getCell(_colindex); if (cell != null && cell.value != null) { String v = cell.value.toString(); String s = (v instanceof String) ? ((String) v) : v.toString(...
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/util/ProjectUtil.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/util/ProjectUtil.java index b65d2808..0e839fea 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/util/ProjectUtil.java +++ b/org.eclipse.egit.core/sr...
true
true
public static boolean findProjectFiles(final Collection<File> files, final File directory, final Set<String> visistedDirs, final IProgressMonitor monitor) { if (directory == null) return false; IProgressMonitor pm = monitor; if (pm == null) pm = new NullProgressMonitor(); else if (pm.isCanceled())...
public static boolean findProjectFiles(final Collection<File> files, final File directory, final Set<String> visistedDirs, final IProgressMonitor monitor) { if (directory == null) return false; IProgressMonitor pm = monitor; if (pm == null) pm = new NullProgressMonitor(); else if (pm.isCanceled())...
diff --git a/src/main/java/com/onarandombox/MultiverseNetherPortals/listeners/MVNPPlayerListener.java b/src/main/java/com/onarandombox/MultiverseNetherPortals/listeners/MVNPPlayerListener.java index 7fe46fc..43dc863 100644 --- a/src/main/java/com/onarandombox/MultiverseNetherPortals/listeners/MVNPPlayerListener.java ++...
true
true
public void onPlayerPortal(PlayerPortalEvent event) { if (event.isCancelled()) { this.plugin.log(Level.FINEST, "PlayerPortalEvent was cancelled! NOT teleporting!"); return; } Location originalTo = event.getTo(); if (originalTo != null) { originalTo...
public void onPlayerPortal(PlayerPortalEvent event) { if (event.isCancelled()) { this.plugin.log(Level.FINEST, "PlayerPortalEvent was cancelled! NOT teleporting!"); return; } Location originalTo = event.getTo(); if (originalTo != null) { originalTo...
diff --git a/distributed1/serversrc/resImpl/Middleware.java b/distributed1/serversrc/resImpl/Middleware.java index b08b1d9..0ae9ed6 100644 --- a/distributed1/serversrc/resImpl/Middleware.java +++ b/distributed1/serversrc/resImpl/Middleware.java @@ -1,367 +1,372 @@ package serversrc.resImpl; import java.rmi.RMISecur...
false
true
public boolean itinerary(int id, int customer, Vector flightNumbers, String location, boolean car, boolean room) throws RemoteException { Trace.info("RM::itinerary( " + id + ", customer=" + customer + ", " +flightNumbers+ ", "+location+ ", " + car + ", " + room + " ) called" ); // Read custom...
public boolean itinerary(int id, int customer, Vector flightNumbers, String location, boolean car, boolean room) throws RemoteException { Trace.info("RM::itinerary( " + id + ", customer=" + customer + ", " +flightNumbers+ ", "+location+ ", " + car + ", " + room + " ) called" ); // Read custom...
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java index e991cb4db..43a242c68 100644 --- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java +++ ...
false
true
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Graph graph = path.getRoutingContext().graph; TransitIndexService transitIndex = graph.getService(TransitIndexService.class); Itinerary itinerary = makeEmptyItinerary(path); EdgeNarrative postponedA...
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Graph graph = path.getRoutingContext().graph; TransitIndexService transitIndex = graph.getService(TransitIndexService.class); Itinerary itinerary = makeEmptyItinerary(path); EdgeNarrative postponedA...
diff --git a/src/main/java/org/instructionexecutor/InstructionAnalyzer.java b/src/main/java/org/instructionexecutor/InstructionAnalyzer.java index a37440a5f..2b4bba659 100644 --- a/src/main/java/org/instructionexecutor/InstructionAnalyzer.java +++ b/src/main/java/org/instructionexecutor/InstructionAnalyzer.java @@ -1,1...
true
true
private void findRegisterInformation(List<Instruction> instructions) { Class<?> registerTypes[] = null; int ip = 0; while (ip < instructions.size()) { int currentIp = ip; Instruction insn = instructions.get(ip++); int op0 = insn.op0, op1 = insn.op1, op2 = insn.op2; switch (insn.insn) { case EVAL...
private void findRegisterInformation(List<Instruction> instructions) { Class<?> registerTypes[] = null; int ip = 0; while (ip < instructions.size()) { int currentIp = ip; Instruction insn = instructions.get(ip++); int op0 = insn.op0, op1 = insn.op1, op2 = insn.op2; switch (insn.insn) { case EVAL...
diff --git a/src/main/java/pl/psnc/dl/wf4ever/portal/pages/my/MyRosPage.java b/src/main/java/pl/psnc/dl/wf4ever/portal/pages/my/MyRosPage.java index 36ccfcf..05f348c 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/portal/pages/my/MyRosPage.java +++ b/src/main/java/pl/psnc/dl/wf4ever/portal/pages/my/MyRosPage.java @@ -1,3...
false
true
public MyRosPage(final PageParameters parameters) throws URISyntaxException, ROSRSException { super(parameters); List<URI> uris = ROSRService.getROList(rodlURI, MySession.get().getdLibraAccessToken()); final List<ResearchObject> researchObjects = new ArrayList<ResearchObject>();...
public MyRosPage(final PageParameters parameters) throws URISyntaxException, ROSRSException { super(parameters); List<URI> uris = ROSRService.getROList(rodlURI, MySession.get().getdLibraAccessToken()); final List<ResearchObject> researchObjects = new ArrayList<ResearchObject>();...
diff --git a/src/main/java/de/weltraumschaf/caythe/frontend/pascal/parsers/DeclarationsParser.java b/src/main/java/de/weltraumschaf/caythe/frontend/pascal/parsers/DeclarationsParser.java index 79fc5850..0bbcf3cd 100644 --- a/src/main/java/de/weltraumschaf/caythe/frontend/pascal/parsers/DeclarationsParser.java +++ b/src...
true
true
public SymbolTableEntry parse(Token token, SymbolTableEntry parentId) throws Exception { token = synchronize(DECLARATION_START_SET); if (token.getType() == CONST) { token = nextToken(); // consume CONST ConstantDefinitionsParser constantDefinitionsParser = ...
public SymbolTableEntry parse(Token token, SymbolTableEntry parentId) throws Exception { token = synchronize(DECLARATION_START_SET); if (token.getType() == CONST) { token = nextToken(); // consume CONST ConstantDefinitionsParser constantDefinitionsParser = ...
diff --git a/src/main/java/de/minestar/AdminStuff/commands/cmdGod.java b/src/main/java/de/minestar/AdminStuff/commands/cmdGod.java index 86ff194..174c83d 100644 --- a/src/main/java/de/minestar/AdminStuff/commands/cmdGod.java +++ b/src/main/java/de/minestar/AdminStuff/commands/cmdGod.java @@ -1,98 +1,98 @@ /* * Copyr...
true
true
private void changeGodMode(CommandSender sender, Player target) { MinestarPlayer mPlayer = MinestarCore.getPlayer(target); Boolean godMode = mPlayer.getBoolean("adminstuff.god"); if (godMode == null || false) godMode = true; else godMode = false; mPlay...
private void changeGodMode(CommandSender sender, Player target) { MinestarPlayer mPlayer = MinestarCore.getPlayer(target); Boolean godMode = mPlayer.getBoolean("adminstuff.god"); if (godMode == null || !godMode) godMode = true; else godMode = false; mP...
diff --git a/gui/src/main/java/org/jboss/as/console/client/core/BootstrapContext.java b/gui/src/main/java/org/jboss/as/console/client/core/BootstrapContext.java index 292db090..e92a8ad7 100644 --- a/gui/src/main/java/org/jboss/as/console/client/core/BootstrapContext.java +++ b/gui/src/main/java/org/jboss/as/console/cli...
true
true
public static String extractHttpEndpointUrl(String base) { String protocol = base.substring(0, base.indexOf("//")+2); String remainder = base.substring(base.indexOf(protocol)+protocol.length(), base.length()); String host = null; String port = null; int portDelim = remainde...
public static String extractHttpEndpointUrl(String base) { String protocol = base.substring(0, base.indexOf("//")+2); String remainder = base.substring(base.indexOf(protocol)+protocol.length(), base.length()); String host = null; String port = null; int portDelim = remainde...
diff --git a/src/main/java/tconstruct/armor/items/TravelWings.java b/src/main/java/tconstruct/armor/items/TravelWings.java index ab5cb66ae..53bfa0014 100644 --- a/src/main/java/tconstruct/armor/items/TravelWings.java +++ b/src/main/java/tconstruct/armor/items/TravelWings.java @@ -1,72 +1,73 @@ package tconstruct.armor...
true
true
public void onArmorTick (World world, EntityPlayer player, ItemStack itemStack) { NBTTagCompound tag = itemStack.getTagCompound().getCompoundTag(getBaseTagName()); int feather = tag.getInteger("Feather Fall"); if (feather > 0) { if (player.fallDistance > 2.5) ...
public void onArmorTick (World world, EntityPlayer player, ItemStack itemStack) { super.onArmorTick(world, player, itemStack); NBTTagCompound tag = itemStack.getTagCompound().getCompoundTag(getBaseTagName()); int feather = tag.getInteger("Feather Fall"); if (feather > 0) ...
diff --git a/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java b/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java index 53dd152..c600646 100644 --- a/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java +++ b/src/org/pentaho/agilebi/modeler/util/MultiTableModelerSource.java...
false
true
public Domain generateDomain(DatabaseMeta databaseMeta, List<LogicalRelationship> joinTemplates) { Domain domain = null; try { // Generate domain based on the table names. String locale = LocalizedString.DEFAULT_LOCALE; this.generator.setLocale(locale); this.generator.setDatabaseMeta(databaseMeta);...
public Domain generateDomain(DatabaseMeta databaseMeta, List<LogicalRelationship> joinTemplates) { Domain domain = null; try { // Generate domain based on the table names. String locale = LocalizedString.DEFAULT_LOCALE; this.generator.setLocale(locale); this.generator.setDatabaseMeta(databaseMeta);...
diff --git a/cejug-classifieds-server/src/net/java/dev/cejug/classifieds/service/endpoint/impl/LoadAtomOperation.java b/cejug-classifieds-server/src/net/java/dev/cejug/classifieds/service/endpoint/impl/LoadAtomOperation.java index c3924415..3a0d7597 100644 --- a/cejug-classifieds-server/src/net/java/dev/cejug/classifie...
false
true
public Feed loadAtomOperation(SyndicationFilter filter) { try { ObjectFactory factory = new ObjectFactory(); Feed atomFeed = factory.createFeed(); List<Object> feedAttributes = atomFeed .getAuthorOrCategoryOrContributor(); // author. PersonType author = factory.createPersonType(); List<Objec...
public Feed loadAtomOperation(SyndicationFilter filter) { try { ObjectFactory factory = new ObjectFactory(); Feed atomFeed = factory.createFeed(); List<Object> feedAttributes = atomFeed .getAuthorOrCategoryOrContributor(); // author. PersonType author = factory.createPersonType(); List<Objec...
diff --git a/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus641/Nexus641ReindexTaskTest.java b/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus641/Nexus641ReindexTaskTest.java index d7179a595..1870ed...
true
true
public void testReindex() throws Exception { // NEXUS-664 if ( true ) { printKnownErrorButDoNotFail( getClass(), "testReindex" ); } File repositoryPath = new File( nexusBaseDir, "runtime/work/storage/nexus-test-harness-repo" ); File oldSnapsho...
public void testReindex() throws Exception { // NEXUS-664 if ( true ) { printKnownErrorButDoNotFail( getClass(), "testReindex" ); return; } File repositoryPath = new File( nexusBaseDir, "runtime/work/storage/nexus-test-harness-repo" ); ...
diff --git a/common/net/minecraftforge/common/ForgeDirection.java b/common/net/minecraftforge/common/ForgeDirection.java index 3a2219a90..16516bbe2 100644 --- a/common/net/minecraftforge/common/ForgeDirection.java +++ b/common/net/minecraftforge/common/ForgeDirection.java @@ -1,56 +1,56 @@ package net.minecraftforge.c...
true
true
public static ForgeDirection getOrientation(int id) { if (id < ForgeDirection.values().length) { return ForgeDirection.values()[id]; } return UNKNOWN; }
public static ForgeDirection getOrientation(int id) { if (id > 0 && id < ForgeDirection.values().length) { return ForgeDirection.values()[id]; } return UNKNOWN; }
diff --git a/src/edu/ucla/cens/mobility/ClassifierService.java b/src/edu/ucla/cens/mobility/ClassifierService.java index cf5ee04..b7c5e50 100644 --- a/src/edu/ucla/cens/mobility/ClassifierService.java +++ b/src/edu/ucla/cens/mobility/ClassifierService.java @@ -1,1107 +1,1108 @@ package edu.ucla.cens.mobility; impor...
true
true
private void getTransportMode() { Vector<ArrayList<Double>> samples = getAccSamples(); boolean gpsFail = false; // Log.i(TAG, samples.size() + " is the sample size"); // Always 4 now double lat = Double.NaN; double lon = Double.NaN; float speed = 0; int cachedCount = 0; boolean driveCheat = true; ...
private void getTransportMode() { Vector<ArrayList<Double>> samples = getAccSamples(); boolean gpsFail = false; // Log.i(TAG, samples.size() + " is the sample size"); // Always 4 now double lat = Double.NaN; double lon = Double.NaN; float speed = 0; int cachedCount = 0; boolean driveCheat = true; ...
diff --git a/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/ui/macbundler/BundleWizardPage2.java b/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/ui/macbundler/BundleWizardPage2.java index c5e8786e5..c9d3f3681 100644 --- a/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/inter...
true
true
Table createTableGroup(Composite parent, String groupName, final boolean onClasspath) { Group g1= createGroup(parent, groupName, 1); final Table table= new Table(g1, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION); setHeightHint(table, 80); Composite c1= createComposite(g1, 3); final Button...
Table createTableGroup(Composite parent, String groupName, final boolean onClasspath) { Group g1= createGroup(parent, groupName, 1); final Table table= new Table(g1, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION); setHeightHint(table, 80); Composite c1= createComposite(g1, 3); final Button...
diff --git a/g6/DangerAvoidance.java b/g6/DangerAvoidance.java index a3004e6..17be0ad 100644 --- a/g6/DangerAvoidance.java +++ b/g6/DangerAvoidance.java @@ -1,88 +1,88 @@ package isnork.g6; import isnork.sim.GameObject.Direction; import isnork.sim.Observation; import java.awt.geom.Point2D; import java.util.Arr...
true
true
public LinkedList<Direction> bestDirections(Set<Observation> whatISee, Direction d, Point2D currentPosition) { LinkedList<Direction> newL = new LinkedList<Direction>(); ArrayList<Direction> directionOptions = Direction.allBut(d); Direction bestDirection = null; Point2D bestPoint = null; for (Direction nextD ...
public LinkedList<Direction> bestDirections(Set<Observation> whatISee, Direction d, Point2D currentPosition) { LinkedList<Direction> newL = new LinkedList<Direction>(); ArrayList<Direction> directionOptions = Direction.allBut(d); Direction bestDirection = null; Point2D bestPoint = null; for (Direction nextD ...
diff --git a/src/main/java/com/orange/groupbuy/web/client/presenter/MainPresenter.java b/src/main/java/com/orange/groupbuy/web/client/presenter/MainPresenter.java index 9beec75..08b4431 100644 --- a/src/main/java/com/orange/groupbuy/web/client/presenter/MainPresenter.java +++ b/src/main/java/com/orange/groupbuy/web/cli...
true
true
protected void onBind() { loadCookies(); registerHandler(eventBus.addHandler(CityChangedEvent.getType(), new CityChangedHandler() { @Override public void onChanged(CityChangedEvent event) { getDisplay().getCityWidget().hid...
protected void onBind() { loadCookies(); registerHandler(eventBus.addHandler(CityChangedEvent.getType(), new CityChangedHandler() { @Override public void onChanged(CityChangedEvent event) { getDisplay().getCityWidget().hid...
diff --git a/geopaparazzi.app/src/eu/hydrologis/geopaparazzi/maps/MapTagsActivity.java b/geopaparazzi.app/src/eu/hydrologis/geopaparazzi/maps/MapTagsActivity.java index e6f42613..8acfe992 100755 --- a/geopaparazzi.app/src/eu/hydrologis/geopaparazzi/maps/MapTagsActivity.java +++ b/geopaparazzi.app/src/eu/hydrologis/geop...
false
true
public void onCreate( Bundle icicle ) { super.onCreate(icicle); setContentView(R.layout.tags); Bundle extras = getIntent().getExtras(); if (extras != null) { latitude = extras.getDouble(LibraryConstants.LATITUDE); longitude = extras.getDouble(LibraryConstants...
public void onCreate( Bundle icicle ) { super.onCreate(icicle); setContentView(R.layout.tags); Bundle extras = getIntent().getExtras(); if (extras != null) { latitude = extras.getDouble(LibraryConstants.LATITUDE); longitude = extras.getDouble(LibraryConstants...
diff --git a/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/poulpe/web/controller/group/UserGroupVm.java b/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/poulpe/web/controller/group/UserGroupVm.java index a7456589..515ce5c9 100644 --- a/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/...
true
true
public UserGroupVm(@Nonnull GroupService groupService, @Nonnull SelectedEntity<Group> selectedEntity, @Nonnull WindowManager windowManager) { this.groupService = groupService; this.selectedEntity = selectedEntity; this.windowManager = windowManager; this.groups = new ListModelList<G...
public UserGroupVm(@Nonnull GroupService groupService, @Nonnull SelectedEntity<Group> selectedEntity, @Nonnull WindowManager windowManager) { this.groupService = groupService; this.selectedEntity = selectedEntity; this.windowManager = windowManager; this.group...
diff --git a/platform-ctk-plugin/src/main/java/com/atlassian/refapp/ctk/version/PlatformVersionTest.java b/platform-ctk-plugin/src/main/java/com/atlassian/refapp/ctk/version/PlatformVersionTest.java index 437b911..582115e 100644 --- a/platform-ctk-plugin/src/main/java/com/atlassian/refapp/ctk/version/PlatformVersionTes...
true
true
public void testAtlassianPlatformModulesSuppliedAtCorrectVersions() { final String platformVersion = PlatformVersionSpecReader.getPlatformVersion(); List<VersionCheck> versionChecks = PlatformVersionSpecReader.getVersionChecks(); // this keeps all the errors found. StringBuilde...
public void testAtlassianPlatformModulesSuppliedAtCorrectVersions() { final String platformVersion = PlatformVersionSpecReader.getPlatformVersion(); List<VersionCheck> versionChecks = PlatformVersionSpecReader.getVersionChecks(); // this keeps all the errors found. StringBuilde...
diff --git a/camera-app/src/main/java/com/sneakysquid/nova/app/TakePhoto.java b/camera-app/src/main/java/com/sneakysquid/nova/app/TakePhoto.java index 46036a5..eb1b454 100644 --- a/camera-app/src/main/java/com/sneakysquid/nova/app/TakePhoto.java +++ b/camera-app/src/main/java/com/sneakysquid/nova/app/TakePhoto.java @@ ...
true
true
private void triggerFlash() { debug("triggerFlash(%s)", flashCmd); assertOnUiThread(); if (flashCmd == null || flashCmd.isPointless() || novaLink.getStatus() != NovaLinkStatus.Ready) { // Flash not needed, or not possible. Skip to step 3 and just take the photo. ...
private void triggerFlash() { debug("triggerFlash(%s)", flashCmd); assertOnUiThread(); if (flashCmd == null || flashCmd.isPointless() || novaLink.getStatus() != NovaLinkStatus.Ready) { // Flash not needed, or not possible. Skip to step 3 and just take the photo. ...
diff --git a/contrib/Brainfuck.java b/contrib/Brainfuck.java index f26863a..5a57715 100644 --- a/contrib/Brainfuck.java +++ b/contrib/Brainfuck.java @@ -1,214 +1,214 @@ import uk.co.uwcs.choob.modules.*; import uk.co.uwcs.choob.support.*; import uk.co.uwcs.choob.support.events.*; import java.util.*; /** * Brai...
true
true
public String eval() throws BrainfuckException { StringBuilder output = new StringBuilder(); Stack<Integer> pc_stack = new Stack(); while (pc < expr.length()) { ++count; if (count == max_instructions) { throw new InstructionCountExceededException(output.toString(), pc); } switch (expr.ch...
public String eval() throws BrainfuckException { StringBuilder output = new StringBuilder(); Stack<Integer> pc_stack = new Stack(); while (pc < expr.length()) { ++count; if (count == max_instructions) { throw new InstructionCountExceededException(output.toString(), pc); } switch (expr.ch...
diff --git a/java/tools/src/com/jopdesign/wcet/frontend/WcetAppInfo.java b/java/tools/src/com/jopdesign/wcet/frontend/WcetAppInfo.java index 4f0b95c8..0c44744e 100644 --- a/java/tools/src/com/jopdesign/wcet/frontend/WcetAppInfo.java +++ b/java/tools/src/com/jopdesign/wcet/frontend/WcetAppInfo.java @@ -1,314 +1,314 @@ ...
true
true
public MethodInfo searchMethod(ClassInfo cli, String methodName) throws MethodNotFoundException { MethodInfo mi = null; if(methodName.indexOf("(") > 0) { mi = cli.getMethodInfo(methodName); if(mi == null) { throw new MethodNotFoundException("The fully qualified method '"+methodName+"' could not be found ...
public MethodInfo searchMethod(ClassInfo cli, String methodName) throws MethodNotFoundException { MethodInfo mi = null; if(methodName.indexOf("(") > 0) { mi = cli.getMethodInfo(methodName); if(mi == null) { throw new MethodNotFoundException("The fully qualified method '"+methodName+"' could not be found ...
diff --git a/modules/activiti-cycle/src/test/java/org/activiti/cycle/impl/connector/demo/DemoConnectorTest.java b/modules/activiti-cycle/src/test/java/org/activiti/cycle/impl/connector/demo/DemoConnectorTest.java index db78a982..fe5aa8d2 100644 --- a/modules/activiti-cycle/src/test/java/org/activiti/cycle/impl/connecto...
true
true
public void testFirstPlay() throws Exception { // create demo connector but accessed via the customized view connector ConfigurationContainer configurationContainer = new ConfigurationContainer("bernd"); RepositoryConnectorConfiguration configuration = new DemoConnectorConfiguration("demo"); configura...
public void testFirstPlay() throws Exception { // create demo connector but accessed via the customized view connector ConfigurationContainer configurationContainer = new ConfigurationContainer("bernd"); RepositoryConnectorConfiguration configuration = new DemoConnectorConfiguration("demo"); configura...
diff --git a/src/java/net/sf/picard/sam/MergeSamFiles.java b/src/java/net/sf/picard/sam/MergeSamFiles.java index 36e5c532..cf5ee1c6 100644 --- a/src/java/net/sf/picard/sam/MergeSamFiles.java +++ b/src/java/net/sf/picard/sam/MergeSamFiles.java @@ -1,228 +1,225 @@ /* * The MIT License * * Copyright (c) 2009 The Br...
false
true
protected int doWork() { boolean matchedSortOrders = true; // Open the files for reading and writing final List<SAMFileReader> readers = new ArrayList<SAMFileReader>(); final List<SAMFileHeader> headers = new ArrayList<SAMFileHeader>(); { SAMSequenceDictionary dict ...
protected int doWork() { boolean matchedSortOrders = true; // Open the files for reading and writing final List<SAMFileReader> readers = new ArrayList<SAMFileReader>(); final List<SAMFileHeader> headers = new ArrayList<SAMFileHeader>(); { SAMSequenceDictionary dict ...
diff --git a/TFC_Shared/src/TFC/TFCItems.java b/TFC_Shared/src/TFC/TFCItems.java index be84fe8a0..1a3ee9575 100644 --- a/TFC_Shared/src/TFC/TFCItems.java +++ b/TFC_Shared/src/TFC/TFCItems.java @@ -1,2023 +1,2023 @@ package TFC; import java.io.File; import net.minecraft.block.Block; import net.minecraft.item.Enu...
false
true
public static void Setup() { try { config = new net.minecraftforge.common.Configuration( new File(TerraFirmaCraft.proxy.getMinecraftDir(), "/config/TFC.cfg")); config.load(); } catch (Exception e) { System.out.println(new StringBuilder()....
public static void Setup() { try { config = new net.minecraftforge.common.Configuration( new File(TerraFirmaCraft.proxy.getMinecraftDir(), "/config/TFC.cfg")); config.load(); } catch (Exception e) { System.out.println(new StringBuilder()....
diff --git a/src/test/java/dk/frankbille/scoreboard/player/TestPlayerEditPage.java b/src/test/java/dk/frankbille/scoreboard/player/TestPlayerEditPage.java index cfd91d6..a4d256e 100644 --- a/src/test/java/dk/frankbille/scoreboard/player/TestPlayerEditPage.java +++ b/src/test/java/dk/frankbille/scoreboard/player/TestPla...
true
true
public void testRenderWithData() { ScoreBoardService scoreBoardService = getScoreBoardService(); scoreBoardService.createNewPlayer("Player 1"); Player player2 = scoreBoardService.createNewPlayer("Player 2"); player2.setFullName("Player 2 Full Name"); player2.setGroupName("Player 2 Group"); scoreBoardServic...
public void testRenderWithData() { ScoreBoardService scoreBoardService = getScoreBoardService(); scoreBoardService.createNewPlayer("Player 1"); Player player2 = scoreBoardService.createNewPlayer("Player 2"); player2.setFullName("Player 2 Full Name"); player2.setGroupName("Player 2 Group"); scoreBoardServic...
diff --git a/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/admin/ResourceController.java b/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/admin/ResourceController.java index 22155fbf..26c94448 100644 --- a/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/...
false
true
private void editResource (AppleResponse res, AppleRequest req, String type, String messages) { boolean validated = true; boolean insertSuccess = false; boolean updateDate = false; String dctPublisher; String dctId...
private void editResource (AppleResponse res, AppleRequest req, String type, String messages) { boolean validated = true; boolean insertSuccess = false; boolean updateDate = false; String dctPublisher; String dctId...
diff --git a/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java b/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java index 2126a71a3..1e65167e9 100644 --- a/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java +++ b/src/commons/org/codehaus/groovy/grails/comm...
true
true
public Collection getBeanReferences() { Collection beanReferences = new ArrayList(); Map urlMappings = new HashMap(); Assert.notNull(application); GrailsPageFlowClass[] pageFlows = application.getPageFlows(); for (int i = 0; i < pageFlows.length; i++) { GrailsPageFlowClass pageFlow = pageFlows[i]; ...
public Collection getBeanReferences() { Collection beanReferences = new ArrayList(); Map urlMappings = new HashMap(); Assert.notNull(application); GrailsPageFlowClass[] pageFlows = application.getPageFlows(); for (int i = 0; i < pageFlows.length; i++) { GrailsPageFlowClass pageFlow = pageFlows[i]; ...
diff --git a/forscene-core/src/forscene/core/events/system/AnimationUpdateEvent.java b/forscene-core/src/forscene/core/events/system/AnimationUpdateEvent.java index 8145141..b859b95 100644 --- a/forscene-core/src/forscene/core/events/system/AnimationUpdateEvent.java +++ b/forscene-core/src/forscene/core/events/system/A...
true
true
public void run() { if (animation.isStarted()) { long updateRate = animation.getUpdateRate(); /* * PlayN.log().debug( " ticks " + * GameLoopManager.getInstance().getTicks()); PlayN.log().debug( * " ticksRAte " + GameLoopManager.getInstance().getTickRate()); * PlayN.log().de...
public void run() { if (animation.isStarted()) { long updateRate = animation.getUpdateRate(); /* * PlayN.log().debug( " ticks " + * GameLoopManager.getInstance().getTicks()); PlayN.log().debug( * " ticksRAte " + GameLoopManager.getInstance().getTickRate()); * PlayN.log().de...
diff --git a/src/Core/org/objectweb/proactive/core/body/reply/ReplyImpl.java b/src/Core/org/objectweb/proactive/core/body/reply/ReplyImpl.java index da7aecc10..7ac4d8e7d 100644 --- a/src/Core/org/objectweb/proactive/core/body/reply/ReplyImpl.java +++ b/src/Core/org/objectweb/proactive/core/body/reply/ReplyImpl.java @@ ...
true
true
public int send(UniversalBody destinationBody) throws IOException { // if destination body is on the same VM that the sender, we must // perform // a deep copy of result in order to preserve ProActive model. UniqueID destinationID = destinationBody.getID(); UniversalBody loc...
public int send(UniversalBody destinationBody) throws IOException { // if destination body is on the same VM that the sender, we must // perform // a deep copy of result in order to preserve ProActive model. UniqueID destinationID = destinationBody.getID(); // The following ...
diff --git a/src/java/com/threerings/presents/server/net/ConnectionManager.java b/src/java/com/threerings/presents/server/net/ConnectionManager.java index 1c9616246..d0f5ce257 100644 --- a/src/java/com/threerings/presents/server/net/ConnectionManager.java +++ b/src/java/com/threerings/presents/server/net/ConnectionMana...
true
true
protected void iterate () { long iterStamp = System.currentTimeMillis(); // close any connections that have been queued up to die Connection dconn; while ((dconn = _deathq.getNonBlocking()) != null) { // it's possible that we caught an EOF trying to read from this co...
protected void iterate () { long iterStamp = System.currentTimeMillis(); // close any connections that have been queued up to die Connection dconn; while ((dconn = _deathq.getNonBlocking()) != null) { // it's possible that we caught an EOF trying to read from this co...
diff --git a/java/src/eu/semaine/components/dialogue/interpreters/TurnTakingInterpreter.java b/java/src/eu/semaine/components/dialogue/interpreters/TurnTakingInterpreter.java index 95bfa30c..c99ff0e8 100644 --- a/java/src/eu/semaine/components/dialogue/interpreters/TurnTakingInterpreter.java +++ b/java/src/eu/semaine/c...
false
true
public int getSpeakingIntentionValue() { if( meta.getTime() < previousMetaTime ) { /* System clock reset */ userSpeakingStateTime = meta.getTime(); agentSpeakingStateTime = meta.getTime(); } previousMetaTime = meta.getTime(); int speakingIntention = 0; /* The components of the speaking intent...
public int getSpeakingIntentionValue() { if( meta.getTime() < previousMetaTime ) { /* System clock reset */ userSpeakingStateTime = meta.getTime(); agentSpeakingStateTime = meta.getTime(); } previousMetaTime = meta.getTime(); int speakingIntention = 0; /* The components of the speaking intent...
diff --git a/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java b/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java index 8162593..05ad6ed 100644 --- a/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java +++ b/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java @@ -1,27 +1,28 @@ package com.gith...
true
true
public String getScore() { if (playerOneScored == 3 && playerTwoScored == 3) return "Deuce"; if (playerOneScored == 4) { if (playerTwoScored == 3) return "Advantage Player 1"; else return "Player 1 wins"; } return (15 * playerOneScored) + " - " + (15 * playerTwoScored); }
public String getScore() { if (playerOneScored == 3 && playerTwoScored == 3 || playerOneScored == 4 && playerTwoScored == 4) return "Deuce"; if (playerOneScored == 4) { if (playerTwoScored == 3) return "Advantage Player 1"; else return "Player 1 wins"; } return (15 * playerOneScored) + " - ...
diff --git a/plugins/org.eclipse.dltk.ruby.debug.ui/src/org/eclipse/dltk/ruby/internal/debug/ui/launchConfigurations/RubyMainLaunchConfigurationTab.java b/plugins/org.eclipse.dltk.ruby.debug.ui/src/org/eclipse/dltk/ruby/internal/debug/ui/launchConfigurations/RubyMainLaunchConfigurationTab.java index 534d9b1f..b66ea995 ...
true
true
protected boolean validateProject(IDLTKProject project) { if (project == null) return false; // check project nature try { IDLTKLanguageToolkit ltk = DLTKLanguageManager.getLangaugeToolkit(project); if (ltk instanceof RubyLanguageToolkit) return true; } catch (CoreException e) { } return fal...
protected boolean validateProject(IDLTKProject project) { if (project == null) return false; // check project nature try { IDLTKLanguageToolkit ltk = DLTKLanguageManager.getLanguageToolkit(project); if (ltk instanceof RubyLanguageToolkit) return true; } catch (CoreException e) { } return fal...
diff --git a/src/org/geometerplus/android/fbreader/DictionaryUtil.java b/src/org/geometerplus/android/fbreader/DictionaryUtil.java index 365cf57..b670638 100644 --- a/src/org/geometerplus/android/fbreader/DictionaryUtil.java +++ b/src/org/geometerplus/android/fbreader/DictionaryUtil.java @@ -1,75 +1,74 @@ /* * Copyr...
true
true
public static void installDictionaryIfNotInstalled(final Activity activity) { if (PackageUtil.canBeStarted(activity, getDictionaryIntent("test"))) { return; } final ZLResource dialogResource = ZLResource.resource("dialog"); final ZLResource buttonResource = dialogResource.getResource("button"); final ZLR...
public static void installDictionaryIfNotInstalled(final Activity activity) { if (PackageUtil.canBeStarted(activity, getDictionaryIntent("test"))) { return; } final ZLResource dialogResource = ZLResource.resource("dialog"); final ZLResource buttonResource = dialogResource.getResource("button"); final ZLR...
diff --git a/showcase-webdriver-ftest/src/test/java/org/richfaces/tests/showcase/ftest/webdriver/ftest/richTreeModelRecursiveAdaptor/TestRichTreeModelRecursiveAdaptorSimple.java b/showcase-webdriver-ftest/src/test/java/org/richfaces/tests/showcase/ftest/webdriver/ftest/richTreeModelRecursiveAdaptor/TestRichTreeModelRec...
true
true
public void testExpandFirstLevel() { getPage().expandFirstLevelFirstNode(); assertEquals(getPage().countSecondLevelVisible(), 15, "Number of visible second level nodes after expanding the fist level nodes doesn't match."); assertEquals(getPage().countThirdLevelVisible(), 0, "Number of visibl...
public void testExpandFirstLevel() { getPage().expandFirstLevelFirstNode(); assertEquals(getPage().countSecondLevelVisible(), 13, "Number of visible second level nodes after expanding the fist level nodes doesn't match."); assertEquals(getPage().countThirdLevelVisible(), 0, "Number of visibl...
diff --git a/src/main/java/db/SubTaskDb.java b/src/main/java/db/SubTaskDb.java index 7f9ff59..c53b8e4 100644 --- a/src/main/java/db/SubTaskDb.java +++ b/src/main/java/db/SubTaskDb.java @@ -1,408 +1,408 @@ package db; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; impo...
true
true
public static List<String> getImageSubtasks() { StringBuilder sql = new StringBuilder(); sql.append("SELECT tasks.id, subtasks.file_name, tasks.date_created, tasks.submitter FROM tasks JOIN subtasks ON tasks.id = subtasks.task "); sql.append("WHERE tasks.media_type=1 ORDER BY DESC tasks.date_created");...
public static List<String> getImageSubtasks() { StringBuilder sql = new StringBuilder(); sql.append("SELECT tasks.id, subtasks.file_name, tasks.date_created, tasks.submitter FROM tasks JOIN subtasks ON tasks.id = subtasks.task "); sql.append("WHERE tasks.media_type=1 ORDER BY tasks.date_created DES"); ...
diff --git a/Cindy3D/src/de/tum/in/cindy3dplugin/jogl/lighting/Light.java b/Cindy3D/src/de/tum/in/cindy3dplugin/jogl/lighting/Light.java index 6b350a6..c9c257e 100644 --- a/Cindy3D/src/de/tum/in/cindy3dplugin/jogl/lighting/Light.java +++ b/Cindy3D/src/de/tum/in/cindy3dplugin/jogl/lighting/Light.java @@ -1,56 +1,56 @@ ...
false
true
public void setGLState(GL2 gl, int light) { if (enabled) { gl.glEnable(GL2.GL_LIGHT0 + light); } else gl.glDisable(GL2.GL_LIGHT0 + light); gl.glLightfv(light, GL2.GL_AMBIENT, ambientColor.getComponents(null), 0); gl.glLightfv(light, GL2.GL_DIFFUSE, diffuseColor.getComponents(null), 0); gl....
public void setGLState(GL2 gl, int light) { if (enabled) { gl.glEnable(light); } else gl.glDisable(light); gl.glLightfv(light, GL2.GL_AMBIENT, ambientColor.getComponents(null), 0); gl.glLightfv(light, GL2.GL_DIFFUSE, diffuseColor.getComponents(null), 0); gl.glLightfv(light, GL2.GL_SPECULAR...
diff --git a/text/src/main/java/eu/interedition/text/xml/module/LineElementXMLParserModule.java b/text/src/main/java/eu/interedition/text/xml/module/LineElementXMLParserModule.java index 25b36a7f..de1071eb 100644 --- a/text/src/main/java/eu/interedition/text/xml/module/LineElementXMLParserModule.java +++ b/text/src/mai...
true
true
public void start(XMLEntity entity, XMLParserState state) { final boolean lineElement = state.getConfiguration().isLineElement(entity); if (lineElement && state.getTextOffset() > 0) { state.insert("\n", false); } }
public void start(XMLEntity entity, XMLParserState state) { final boolean lineElement = state.getConfiguration().isLineElement(entity); if (lineElement && state.getTextOffset() > 0 && state.getConfiguration().included(entity)) { state.insert("\n", false); } }
diff --git a/gov.va.med.iss.debug.ui/src/gov/va/mumps/debug/ui/console/MDevConsole.java b/gov.va.med.iss.debug.ui/src/gov/va/mumps/debug/ui/console/MDevConsole.java index d81ea99..6a7ab0c 100644 --- a/gov.va.med.iss.debug.ui/src/gov/va/mumps/debug/ui/console/MDevConsole.java +++ b/gov.va.med.iss.debug.ui/src/gov/va/mum...
true
true
public void handleReadCommand(int maxCharInput) { this.maxCharInput = maxCharInput; readingUserInput = true; pageBookView.getSite().getShell().getDisplay().asyncExec(new Runnable() { @Override public void run() { pageBookView.setFocus(); } }); }
public void handleReadCommand(int maxCharInput) { this.maxCharInput = maxCharInput; readingUserInput = true; pageBookView.getSite().getShell().getDisplay().asyncExec(new Runnable() { @Override public void run() { pageBookView.setFocus(); //TODO: possibly have other indicator to the user that the co...
diff --git a/src/com/android/gallery3d/ui/TileImageView.java b/src/com/android/gallery3d/ui/TileImageView.java index eb5da89..7e811fc 100644 --- a/src/com/android/gallery3d/ui/TileImageView.java +++ b/src/com/android/gallery3d/ui/TileImageView.java @@ -1,757 +1,757 @@ /* * Copyright (C) 2010 The Android Open Source ...
false
true
private void layoutTiles(int centerX, int centerY, float scale, int rotation) { // The width and height of this view. int width = getWidth(); int height = getHeight(); // The tile levels we want to keep as texture is in the range // [fromLevel, endLevel). int fromLev...
private void layoutTiles(int centerX, int centerY, float scale, int rotation) { // The width and height of this view. int width = getWidth(); int height = getHeight(); // The tile levels we want to keep as texture is in the range // [fromLevel, endLevel). int fromLev...
diff --git a/org.amanzi.neo.loader/src/org/amanzi/neo/loader/TransmissionLoader.java b/org.amanzi.neo.loader/src/org/amanzi/neo/loader/TransmissionLoader.java index 6953ea0de..18b867f3a 100644 --- a/org.amanzi.neo.loader/src/org/amanzi/neo/loader/TransmissionLoader.java +++ b/org.amanzi.neo.loader/src/org/amanzi/neo/lo...
true
true
public void parseLine(String line, Node network, String fileName) { String fields[] = splitLine(line);// line.split("\\t"); Transaction tx = neo.beginTx(); try { String servCounName = NeoUtils.getTransmissionPropertyName(fileName); serverNodeNa...
public void parseLine(String line, Node network, String fileName) { String fields[] = splitLine(line);// line.split("\\t"); Transaction tx = neo.beginTx(); try { String servCounName = NeoUtils.getTransmissionPropertyName(fileName); serverNodeNa...
diff --git a/src/org/flowvisor/message/FVFlowRemoved.java b/src/org/flowvisor/message/FVFlowRemoved.java index 7a50d68..bc57e78 100644 --- a/src/org/flowvisor/message/FVFlowRemoved.java +++ b/src/org/flowvisor/message/FVFlowRemoved.java @@ -1,116 +1,116 @@ package org.flowvisor.message; import java.util.HashSet; i...
true
true
public void classifyFromSwitch(FVClassifier fvClassifier) { FlowMap flowSpace = fvClassifier.getSwitchFlowMap(); Set<String> slicesToUpdate = new HashSet<String>(); String sliceName = fvClassifier.getFlowDB().processFlowRemoved(this, fvClassifier.getDPID()); FVLog.log(LogLevel.DEBUG, fvClassifier,...
public void classifyFromSwitch(FVClassifier fvClassifier) { FlowMap flowSpace = fvClassifier.getSwitchFlowMap(); Set<String> slicesToUpdate = new HashSet<String>(); String sliceName = fvClassifier.getFlowDB().processFlowRemoved(this, fvClassifier.getDPID()); FVLog.log(LogLevel.DEBUG, fvClassifier,...
diff --git a/services/org/powertac/householdcustomer/HouseholdCustomerInitializationService.java b/services/org/powertac/householdcustomer/HouseholdCustomerInitializationService.java index 9ede0b5..df46718 100644 --- a/services/org/powertac/householdcustomer/HouseholdCustomerInitializationService.java +++ b/services/or...
true
true
public String initialize (Competition competition, List<String> completedInits) { if (!completedInits.contains("DefaultBroker")) { log.debug("waiting for DefaultBroker to initialize"); return null; } PluginConfig config = pluginConfigRepo.findByRoleName("HouseholdCustomer"); if (config =...
public String initialize (Competition competition, List<String> completedInits) { if (!completedInits.contains("DefaultBroker")) { log.debug("waiting for DefaultBroker to initialize"); return null; } PluginConfig config = pluginConfigRepo.findByRoleName("HouseholdCustomer"); if (config =...
diff --git a/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/application/FactoryFacade.java b/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/application/FactoryFacade.java index 8df1b35..aa6a5d5 100644 --- a/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/application/FactoryFacade.java +++ b...
true
true
public void run() { int originalCount = count; int delay = 0; int total = 0; while(count > 0) { //The producer sleeps for a random period between 1 and 3 seconds delay = (int) (Math.random() * 3) + 1; total += delay; int millisecondsPerSecond = 1000; try { Thread.sleep(delay * mil...
public void run() { int originalCount = count; int delay = 0; int total = 0; while(count > 0) { //The producer sleeps for a random period between 1 and 3 seconds delay = (int) (Math.random() * 3) + 1; total += delay; int millisecondsPerSecond = 1000; try { Thread.sleep(delay * mil...
diff --git a/cerberus_core/src/cerberus/view/opengl/canvas/heatmap/GLCanvasHeatmap2DColumn.java b/cerberus_core/src/cerberus/view/opengl/canvas/heatmap/GLCanvasHeatmap2DColumn.java index a140dd9ca..32ae1452f 100644 --- a/cerberus_core/src/cerberus/view/opengl/canvas/heatmap/GLCanvasHeatmap2DColumn.java +++ b/cerberus_c...
false
true
private void removehighlightSelectionIndex_Item( ArrayList < ArrayList <Integer>> container, final Integer value ) { Iterator <ArrayList <Integer>> iter = container.iterator(); while ( iter.hasNext()) { if ( iter.next().remove( value ) ) { /* found value, exit immediately */ return; } } //wh...
private void removehighlightSelectionIndex_Item( ArrayList < ArrayList <Integer>> container, final Integer value ) { Iterator <ArrayList <Integer>> iter = container.iterator(); while ( iter.hasNext()) { if ( iter.next().remove( value ) ) { /* found value, exit immediately */ return; } } //wh...