diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/test/java/org/blitzem/test/integ/BlitzemIntegTest.java b/src/test/java/org/blitzem/test/integ/BlitzemIntegTest.java
index b824588..29bf07d 100644
--- a/src/test/java/org/blitzem/test/integ/BlitzemIntegTest.java
+++ b/src/test/java/org/blitzem/test/integ/BlitzemIntegTest.java
@@ -1,93 +1,93 @@
package ... | true | true | public void testSimpleEndToEnd() throws Exception {
execInDir("bin/blitzem --source=examples/load_balanced/environment.groovy down");
String stdout = execInDir("bin/blitzem --source=examples/load_balanced/environment.groovy status");
assertTrue(stdout.contains("Applying command StatusCommand to whole environm... | public void testSimpleEndToEnd() throws Exception {
execInDir("bin/blitzem --source=examples/load_balanced/environment.groovy down");
String stdout = execInDir("bin/blitzem --source=examples/load_balanced/environment.groovy status");
assertTrue(stdout.contains("Applying command StatusCommand to whole environm... |
diff --git a/src/main/java/sword/java/class_analyzer/MemberModifierMask.java b/src/main/java/sword/java/class_analyzer/MemberModifierMask.java
index a54e720..abd250f 100644
--- a/src/main/java/sword/java/class_analyzer/MemberModifierMask.java
+++ b/src/main/java/sword/java/class_analyzer/MemberModifierMask.java
@@ -1,6... | true | true | public String getModifiersString() {
String result = getVisibilityString();
if (result.length() != 0) {
result = result + ' ';
}
if (isStatic()) {
result = result + "static ";
}
if (isFinal()) {
result = result + "final ";
... | public String getModifiersString() {
String result = getVisibilityString();
if (result.length() != 0) {
result = result + ' ';
}
if (isStatic()) {
result = result + "static ";
}
if (isFinal()) {
result = result + "final ";
... |
diff --git a/src/com/android/calendar/selectcalendars/SelectVisibleCalendarsFragment.java b/src/com/android/calendar/selectcalendars/SelectVisibleCalendarsFragment.java
index 65a9c36b..5f6c6b5e 100644
--- a/src/com/android/calendar/selectcalendars/SelectVisibleCalendarsFragment.java
+++ b/src/com/android/calendar/selec... | true | true | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
mView = inflater.inflate(R.layout.select_calendars_fragment, null);
mList = (ListView)mView.findViewById(R.id.list);
... | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
mView = inflater.inflate(R.layout.select_calendars_fragment, null);
mList = (ListView)mView.findViewById(R.id.list);
... |
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/ConfirmInvoice.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/ConfirmInvoice.java
index 0edc7e02..76ce49e0 100644
--- a/expenditure-tracking/src/pt... | true | true | public boolean isActive(RegularAcquisitionProcess process, User user) {
Person person = user.getExpenditurePerson();
return isUserProcessOwner(process, user)
&& person != null
&& !process.isInvoiceReceived()
&& !process.getUnconfirmedInvoices(person).isEmpty()
&& process.isResponsibleForUnit(person);
... | public boolean isActive(RegularAcquisitionProcess process, User user) {
Person person = user.getExpenditurePerson();
return isUserProcessOwner(process, user) && person != null && process.isActive() && !process.isInvoiceReceived()
&& !process.getUnconfirmedInvoices(person).isEmpty() && process.isResponsibleForUn... |
diff --git a/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/generator/ScalableGenerator.java b/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/generator/ScalableGenerator.java
index db51a0d..e625515 100644
--- a/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/generator/ScalableGenerator.java
++... | true | true | public void loadParamsFromFile() {
try {
//First read the internal params.ini
BufferedReader paramFile;
paramFile = new BufferedReader(new InputStreamReader(getClass( ).getResourceAsStream("/"+paramFileName), "UTF-8"));
String line;
while ((line = paramFile.readLine()) != null) {
String info... | public void loadParamsFromFile() {
try {
//First read the internal params.ini
BufferedReader paramFile;
paramFile = new BufferedReader(new InputStreamReader(getClass( ).getResourceAsStream("/"+paramFileName), "UTF-8"));
String line;
while ((line = paramFile.readLine()) != null) {
String info... |
diff --git a/org.springframework.context/src/test/java/org/springframework/context/conversionservice/ConversionServiceContextConfigTests.java b/org.springframework.context/src/test/java/org/springframework/context/conversionservice/ConversionServiceContextConfigTests.java
index 8566f543b..94e3f6907 100644
--- a/org.spr... | true | true | public void testConfigOk() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/springframework/context/conversionservice/conversionservice.xml");
TestClient client = context.getBean("testClient", TestClient.class);
assertEquals(2, client.getBars().size());
assertEquals("value1", ... | public void testConfigOk() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/springframework/context/conversionservice/conversionService.xml");
TestClient client = context.getBean("testClient", TestClient.class);
assertEquals(2, client.getBars().size());
assertEquals("value1", ... |
diff --git a/Radar.java b/Radar.java
index 4fc84e1..f74e582 100644
--- a/Radar.java
+++ b/Radar.java
@@ -1,128 +1,128 @@
import java.util.Arrays;
/**
* The radar to show what has been discovered of the enemy
* The default size is 10x10 which represents the 1:10 and A:J
* and leaves column zero and row zero bl... | false | true | private boolean checkLocation(int row, int col) {
/* check if the coordinates are in the playable range */
if(row < 1 || row > this.radarHeight) {
System.err.println(String.format("Error: The row must be between 1 and %d", this.radarHeight-1));
return false;
}
... | private boolean checkLocation(int row, int col) {
/* check if the coordinates are in the playable range */
if(row < 1 || row > this.radarHeight-1) {
System.err.println(String.format("Error: The row must be between 1 and %d", this.radarHeight-1));
return false;
}
... |
diff --git a/simulator-ui/src/java/main/ca/nengo/ui/configurable/PropertyInputPanel.java b/simulator-ui/src/java/main/ca/nengo/ui/configurable/PropertyInputPanel.java
index f25887a9..a9b43fe5 100644
--- a/simulator-ui/src/java/main/ca/nengo/ui/configurable/PropertyInputPanel.java
+++ b/simulator-ui/src/java/main/ca/nen... | false | true | public PropertyInputPanel(Property property) {
super();
this.propDescriptor = property;
outerPanel = new JPanel();
outerPanel.setName(property.getName());
outerPanel.setToolTipText(property.getTooltip());
outerPanel.setLayout(new BoxLayout(outerPanel, BoxLayout.Y_AXI... | public PropertyInputPanel(Property property) {
super();
this.propDescriptor = property;
outerPanel = new JPanel();
outerPanel.setName(property.getName());
outerPanel.setToolTipText(property.getTooltip());
outerPanel.setLayout(new BoxLayout(outerPanel, BoxLayout.Y_AXI... |
diff --git a/source/net/sourceforge/texlipse/texparser/LatexParser.java b/source/net/sourceforge/texlipse/texparser/LatexParser.java
index 1a61186..dda00f7 100644
--- a/source/net/sourceforge/texlipse/texparser/LatexParser.java
+++ b/source/net/sourceforge/texlipse/texparser/LatexParser.java
@@ -1,901 +1,904 @@
/*
*... | false | true | public void parse(final LatexLexer lexer,
final OutlineNode preamble,
final boolean checkForMissingSections)
throws LexerException, IOException {
initializeDatastructs();
StackUnsynch<OutlineNode> blocks = new StackUnsynch<OutlineNode>();
StackUnsynch<Token> brace... | public void parse(final LatexLexer lexer,
final OutlineNode preamble,
final boolean checkForMissingSections)
throws LexerException, IOException {
initializeDatastructs();
StackUnsynch<OutlineNode> blocks = new StackUnsynch<OutlineNode>();
StackUnsynch<Token> brace... |
diff --git a/com.palantir.typescript/src/com/palantir/typescript/services/language/LanguageService.java b/com.palantir.typescript/src/com/palantir/typescript/services/language/LanguageService.java
index 4529c93..fe3d03b 100644
--- a/com.palantir.typescript/src/com/palantir/typescript/services/language/LanguageService.j... | true | true | private void updateCompilationSettings() {
IPreferenceStore preferenceStore = TypeScriptPlugin.getDefault().getPreferenceStore();
// create the compilation settings from the preferences
CompilationSettings compilationSettings = new CompilationSettings();
compilationSettings.setCodeG... | private void updateCompilationSettings() {
IPreferenceStore preferenceStore = TypeScriptPlugin.getDefault().getPreferenceStore();
// create the compilation settings from the preferences
CompilationSettings compilationSettings = new CompilationSettings();
compilationSettings.setCodeG... |
diff --git a/java/src/main/java/sandbox/Sleep.java b/java/src/main/java/sandbox/Sleep.java
index b17a592..8fd888d 100644
--- a/java/src/main/java/sandbox/Sleep.java
+++ b/java/src/main/java/sandbox/Sleep.java
@@ -1,13 +1,13 @@
package sandbox;
public class Sleep {
public static void main(String[] args) throws ... | false | true | public static void main(String[] args) throws Exception {
long sec = Long.MAX_VALUE;
if (args.length != 0) {
try {
sec = Long.parseLong(args[0]);
} catch (Exception ignore) { }
}
Thread.sleep(sec);
}
| public static void main(String[] args) throws Exception {
long msec = Long.MAX_VALUE;
if (args.length != 0) {
try {
msec = Long.parseLong(args[0]);
} catch (Exception ignore) { }
}
Thread.sleep(msec);
}
|
diff --git a/xstream/src/java/com/thoughtworks/xstream/core/util/Cloneables.java b/xstream/src/java/com/thoughtworks/xstream/core/util/Cloneables.java
index 7d98e7e2..e44a49b3 100644
--- a/xstream/src/java/com/thoughtworks/xstream/core/util/Cloneables.java
+++ b/xstream/src/java/com/thoughtworks/xstream/core/util/Clone... | false | true | public static Object clone(Object o) {
if (o instanceof Cloneable) {
try {
Method clone = o.getClass().getMethod("clone", (Class[])null);
return clone.invoke(o, (Object[])null);
} catch (NoSuchMethodException e) {
new ObjectAccessExcept... | public static Object clone(Object o) {
if (o instanceof Cloneable) {
try {
Method clone = o.getClass().getMethod("clone", (Class[])null);
return clone.invoke(o, (Object[])null);
} catch (NoSuchMethodException e) {
throw new ObjectAccess... |
diff --git a/java/src/org/vinodkd/jnv/Notes.java b/java/src/org/vinodkd/jnv/Notes.java
index 3448322..fa7ad93 100644
--- a/java/src/org/vinodkd/jnv/Notes.java
+++ b/java/src/org/vinodkd/jnv/Notes.java
@@ -1,72 +1,72 @@
package org.vinodkd.jnv;
import java.util.HashMap;
import java.util.List;
import java.util.Set;... | true | true | private String getAboutText(){
InputStream is = getClass().getClassLoader().getResourceAsStream(ABOUTNOTE_lOC);
BufferedReader br = new BufferedReader(new InputStreamReader(is));
StringBuffer aboutText = new StringBuffer("");
String line;
try{
while((line=br.readLine())!=null){
aboutText.append(line)... | private String getAboutText(){
InputStream is = getClass().getClassLoader().getResourceAsStream(ABOUTNOTE_lOC);
BufferedReader br = new BufferedReader(new InputStreamReader(is));
StringBuffer aboutText = new StringBuffer("");
String line;
try{
while((line=br.readLine())!=null){
aboutText.append(line)... |
diff --git a/core/src/visad/trunk/FunctionType.java b/core/src/visad/trunk/FunctionType.java
index 7649b351a..720ba1831 100644
--- a/core/src/visad/trunk/FunctionType.java
+++ b/core/src/visad/trunk/FunctionType.java
@@ -1,325 +1,326 @@
//
// FunctionType.java
//
/*
VisAD system for interactive analysis and visu... | true | true | private void makeTextComponents() {
int n = 0;
textComponents = null;
textIndices = null;
if (Range instanceof TextType) {
textComponents = new TextType[] {(TextType) Range};
textIndices = new int[] {0};
n = 1;
}
else if (Range instanceof TupleType) {
try {
for ... | private void makeTextComponents() {
int n = 0;
textComponents = null;
textIndices = null;
if (Range instanceof TextType) {
textComponents = new TextType[] {(TextType) Range};
textIndices = new int[] {0};
n = 1;
}
else if (Range instanceof TupleType) {
try {
for ... |
diff --git a/src/com/pong/Assets.java b/src/com/pong/Assets.java
index d9226a7..2488f14 100644
--- a/src/com/pong/Assets.java
+++ b/src/com/pong/Assets.java
@@ -1,49 +1,49 @@
package com.pong;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlog... | true | true | public static void load(){
textureatlas = loadTexture("data/screen_atlas.png");
paddles_n_ball = loadTexture("data/paddles.png");
gameScreenBackgroundRegion = new TextureRegion(textureatlas, 0,0,480,320); //0,0,480,320
mainMenuScreenRegion = new TextureRegion(textureatlas, 0,320,480,320); //0,320,480,320
pad... | public static void load(){
textureatlas = loadTexture("data/screen_atlas.png");
paddles_n_ball = loadTexture("data/paddles.png");
gameScreenBackgroundRegion = new TextureRegion(textureatlas, 0,0,480,320); //0,0,480,320
mainMenuScreenRegion = new TextureRegion(textureatlas, 0,320,480,320); //0,320,480,320
pad... |
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/util/SVNSSLUtil.java b/svnkit/src/org/tmatesoft/svn/core/internal/util/SVNSSLUtil.java
index 066286b72..b7a8ed408 100644
--- a/svnkit/src/org/tmatesoft/svn/core/internal/util/SVNSSLUtil.java
+++ b/svnkit/src/org/tmatesoft/svn/core/internal/util/SVNSSLUtil.java
@@ ... | true | true | public static int getServerCertificateFailures(X509Certificate cert, String realHostName) {
int mask = 8;
Date time = new Date(System.currentTimeMillis());
if (time.before(cert.getNotBefore())) {
mask |= 1;
}
if (time.after(cert.getNotAfter())) {
mask |= 2;
}
... | public static int getServerCertificateFailures(X509Certificate cert, String realHostName) {
int mask = 8;
Date time = new Date(System.currentTimeMillis());
if (time.before(cert.getNotBefore())) {
mask |= 1;
}
if (time.after(cert.getNotAfter())) {
mask |= 2;
}
... |
diff --git a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java b/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
index 0bcfd0b..b179b85 100644
--- a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
+++ b/v7/mediarouter/src/android/su... | true | true | private boolean processMessage(Connection connection,
int what, int requestId, int arg, Object obj, Bundle data) {
switch (what) {
case MediaRouteProviderService.SERVICE_MSG_GENERIC_FAILURE:
connection.onGenericFailure(requestId);
... | private boolean processMessage(Connection connection,
int what, int requestId, int arg, Object obj, Bundle data) {
switch (what) {
case MediaRouteProviderService.SERVICE_MSG_GENERIC_FAILURE:
connection.onGenericFailure(requestId);
... |
diff --git a/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/filedetector/FileInfoInstancesCreatingThread.java b/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/filedetector/FileInfoInstancesCreatingThread.java
index 56f9156..a60bb37 100644
--- a/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/filedetector/FileInfoInstancesCreatingThread.j... | false | true | public void run() {
while (true) {
final int currentIndex = index.getAndIncrement();
if (currentIndex >= targetPaths.length) {
break;
}
final String path = targetPaths[currentIndex];
MessagePrinter.println("\tanalyzing " + path + " ["
+ (currentIndex + 1) + "/" + targetPaths.length + "]");... | public void run() {
while (true) {
final int currentIndex = index.getAndIncrement();
if (currentIndex >= targetPaths.length) {
break;
}
final String path = targetPaths[currentIndex];
MessagePrinter.println("\tanalyzing " + path + " ["
+ (currentIndex + 1) + "/" + targetPaths.length + "]");... |
diff --git a/src/com/mojang/mojam/entity/building/Turret.java b/src/com/mojang/mojam/entity/building/Turret.java
index 5933d127..bab2d54e 100644
--- a/src/com/mojang/mojam/entity/building/Turret.java
+++ b/src/com/mojang/mojam/entity/building/Turret.java
@@ -1,173 +1,173 @@
package com.mojang.mojam.entity.building;
... | true | true | public void tick() {
super.tick();
if (--freezeTime > 0)
return;
if (--delayTicks > 0)
return;
if (!isCarried()) {
// find target
Set<Entity> entities = level.getEntities(pos.x - radius, pos.y - radius, pos.x + radius, pos.y + radius);
Entity closest = null;
double closestDi... | public void tick() {
super.tick();
if (--freezeTime > 0)
return;
if (--delayTicks > 0)
return;
if (!isCarried()) {
// find target
Set<Entity> entities = level.getEntities(pos.x - radius, pos.y - radius, pos.x + radius, pos.y + radius);
Entity closest = null;
double closestDi... |
diff --git a/bundles/org.eclipse.equinox.coordinator/src/org/eclipse/equinox/coordinator/Activator.java b/bundles/org.eclipse.equinox.coordinator/src/org/eclipse/equinox/coordinator/Activator.java
index 42e1ad95..fc890d6d 100644
--- a/bundles/org.eclipse.equinox.coordinator/src/org/eclipse/equinox/coordinator/Activator... | false | true | public void start(BundleContext bundleContext) throws Exception {
// Instantiate the factory to be used by both DS and standard OSGi. In the case of DS, the
// start method is guaranteed to be called before any components are created.
factory = new CoordinatorServiceFactory(bundleContext);
if (Boolean.valueOf(... | public void start(BundleContext bundleContext) throws Exception {
// Instantiate the factory to be used by both DS and standard OSGi. In the case of DS, the
// start method is guaranteed to be called before any components are created.
factory = new CoordinatorServiceFactory(bundleContext);
if (Boolean.valueOf(... |
diff --git a/src/pleocmd/itfc/gui/ErrorDialog.java b/src/pleocmd/itfc/gui/ErrorDialog.java
index 1b5719e..216e171 100644
--- a/src/pleocmd/itfc/gui/ErrorDialog.java
+++ b/src/pleocmd/itfc/gui/ErrorDialog.java
@@ -1,250 +1,251 @@
package pleocmd.itfc.gui;
import java.awt.Color;
import java.awt.Component;
import ja... | true | true | private ErrorDialog() {
errorDialog = this;
setTitle("Error");
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(final WindowEvent e) {
close();
}
});
// Add components
final Layouter lay = new Layouter(this);
fina... | private ErrorDialog() {
errorDialog = this;
setTitle("Error");
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(final WindowEvent e) {
close();
}
});
// Add components
final Layouter lay = new Layouter(this);
fina... |
diff --git a/rdfbean-core/src/main/java/com/mysema/rdfbean/object/DefaultConfiguration.java b/rdfbean-core/src/main/java/com/mysema/rdfbean/object/DefaultConfiguration.java
index ec522131..085ca68e 100644
--- a/rdfbean-core/src/main/java/com/mysema/rdfbean/object/DefaultConfiguration.java
+++ b/rdfbean-core/src/main/ja... | true | true | Set<Class<?>> scanPackage(ClassLoader classLoader, Package pkg) throws IOException, ClassNotFoundException {
Enumeration<URL> urls = classLoader.getResources(pkg.getName().replace('.', '/'));
Set<Class<?>> classes = new HashSet<Class<?>>();
while (urls.hasMoreElements()){
URL url... | Set<Class<?>> scanPackage(ClassLoader classLoader, Package pkg) throws IOException, ClassNotFoundException {
Enumeration<URL> urls = classLoader.getResources(pkg.getName().replace('.', '/'));
Set<Class<?>> classes = new HashSet<Class<?>>();
while (urls.hasMoreElements()){
URL url... |
diff --git a/src/net/sf/freecol/common/model/Turn.java b/src/net/sf/freecol/common/model/Turn.java
index 13de42056..d90ca4119 100644
--- a/src/net/sf/freecol/common/model/Turn.java
+++ b/src/net/sf/freecol/common/model/Turn.java
@@ -1,193 +1,193 @@
/**
* Copyright (C) 2002-2007 The FreeCol Team
*
* This file ... | true | true | public static Season getSeason(int turn) {
int c = turn - OFFSET;
if (c < 0) {
return Season.YEAR;
} else if (c % 2 == 0) {
return Season.SPRING;
} else {
return Season.AUTUMN;
}
}
| public static Season getSeason(int turn) {
int c = turn - OFFSET;
if (c <= 1) {
return Season.YEAR;
} else if (c % 2 == 0) {
return Season.SPRING;
} else {
return Season.AUTUMN;
}
}
|
diff --git a/openFaces/source/org/openfaces/renderkit/table/SelectRowCheckboxRenderer.java b/openFaces/source/org/openfaces/renderkit/table/SelectRowCheckboxRenderer.java
index 3f2d98643..e98dceacf 100644
--- a/openFaces/source/org/openfaces/renderkit/table/SelectRowCheckboxRenderer.java
+++ b/openFaces/source/org/open... | true | true | private static void checkUsageContext(SelectRowCheckbox selectRowCheckbox) {
FacesContext context = FacesContext.getCurrentInstance();
UIComponent component = selectRowCheckbox.getParent();
while (component != null) {
if (component instanceof BaseColumn) {
BaseCo... | private static void checkUsageContext(SelectRowCheckbox selectRowCheckbox) {
FacesContext context = FacesContext.getCurrentInstance();
UIComponent component = selectRowCheckbox.getParent();
while (component != null) {
if (component instanceof BaseColumn) {
BaseCo... |
diff --git a/calendar-webapp/src/main/java/org/exoplatform/calendar/webui/popup/UIConfirmForm.java b/calendar-webapp/src/main/java/org/exoplatform/calendar/webui/popup/UIConfirmForm.java
index c340a0f0..022f3d09 100644
--- a/calendar-webapp/src/main/java/org/exoplatform/calendar/webui/popup/UIConfirmForm.java
+++ b/cal... | true | true | public String event(String name) throws Exception {
StringBuilder b = new StringBuilder() ;
b.append("javascript:eXo.webui.UIForm.submitForm('").append(getConfig_id()).append("','");
b.append(name).append("',true)");
return b.toString() ;
}
| public String event(String name) throws Exception {
StringBuilder b = new StringBuilder() ;
b.append("javascript:webui.UIForm.submitForm('").append(getConfig_id()).append("','");
b.append(name).append("',true)");
return b.toString() ;
}
|
diff --git a/src/com/android/camera/EffectsRecorder.java b/src/com/android/camera/EffectsRecorder.java
index bb7c8136..737e828f 100644
--- a/src/com/android/camera/EffectsRecorder.java
+++ b/src/com/android/camera/EffectsRecorder.java
@@ -1,891 +1,898 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
... | true | true | private synchronized void initializeEffect(boolean forceReset) {
if (forceReset ||
mCurrentEffect != mEffect ||
mCurrentEffect == EFFECT_BACKDROPPER) {
if (mLogVerbose) {
Log.v(TAG, "Effect initializing. Preview size "
+ mPreviewWidt... | private synchronized void initializeEffect(boolean forceReset) {
if (forceReset ||
mCurrentEffect != mEffect ||
mCurrentEffect == EFFECT_BACKDROPPER) {
if (mLogVerbose) {
Log.v(TAG, "Effect initializing. Preview size "
+ mPreviewWidt... |
diff --git a/core/src/com/google/zxing/datamatrix/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/datamatrix/decoder/DecodedBitStreamParser.java
index 16ce63d6..791f4648 100644
--- a/core/src/com/google/zxing/datamatrix/decoder/DecodedBitStreamParser.java
+++ b/core/src/com/google/zxing/datamatrix/decod... | false | true | private static void decodeTextSegment(BitSource bits, StringBuffer result) throws FormatException {
// Three Text values are encoded in a 16-bit value as
// (1600 * C1) + (40 * C2) + C3 + 1
// TODO(bbrown): The Upper Shift with Text doesn't work in the 4 value scenario all the time
boolean upperShift ... | private static void decodeTextSegment(BitSource bits, StringBuffer result) throws FormatException {
// Three Text values are encoded in a 16-bit value as
// (1600 * C1) + (40 * C2) + C3 + 1
// TODO(bbrown): The Upper Shift with Text doesn't work in the 4 value scenario all the time
boolean upperShift ... |
diff --git a/library/src/ros/android/util/WiFiChecker.java b/library/src/ros/android/util/WiFiChecker.java
index 80b1337..5a76d17 100644
--- a/library/src/ros/android/util/WiFiChecker.java
+++ b/library/src/ros/android/util/WiFiChecker.java
@@ -1,252 +1,264 @@
/*
* Software License Agreement (BSD License)
*
* Co... | false | true | public void run() {
try {
if (wifiValid()) {
foundWiFiCallback.handleSuccess();
} else if (reconnectionCallback.doReconnection(wifiManager.getConnectionInfo().getSSID(), robotId.getWifi())) {
Log.d("WiFiChecker", "Wait for networking");
wifiManager.setWifiEnabled(... | public void run() {
try {
if (wifiValid()) {
foundWiFiCallback.handleSuccess();
} else if (reconnectionCallback.doReconnection(wifiManager.getConnectionInfo().getSSID(), robotId.getWifi())) {
Log.d("WiFiChecker", "Disable networking");
wifiManager.setWifiEnabled(f... |
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxLauncherCUAction.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxLauncherCUAction.java
index 8ab325ef2..ad189a57a 100644
--- a/bundles/org.eclipse.equinox.p2.publ... | true | true | private void publishCU(String id, String configSpec, IPublisherInfo info, IPublisherResult results) {
Collection advice = info.getAdvice(configSpec, true, id, null, IVersionAdvice.class);
for (Iterator j = advice.iterator(); j.hasNext();) {
IVersionAdvice versionSpec = (IVersionAdvice) j.next();
Version vers... | private void publishCU(String id, String configSpec, IPublisherInfo info, IPublisherResult results) {
Collection advice = info.getAdvice(configSpec, true, id, null, IVersionAdvice.class);
for (Iterator j = advice.iterator(); j.hasNext();) {
IVersionAdvice versionSpec = (IVersionAdvice) j.next();
Version vers... |
diff --git a/jsf-ri/src/com/sun/faces/renderkit/html_basic/SelectManyCheckboxListRenderer.java b/jsf-ri/src/com/sun/faces/renderkit/html_basic/SelectManyCheckboxListRenderer.java
index abc3b95d0..1162647aa 100644
--- a/jsf-ri/src/com/sun/faces/renderkit/html_basic/SelectManyCheckboxListRenderer.java
+++ b/jsf-ri/src/co... | true | true | protected void renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submitt... | protected void renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submitt... |
diff --git a/RecognitionWin.java b/RecognitionWin.java
index e3e446b..edba164 100644
--- a/RecognitionWin.java
+++ b/RecognitionWin.java
@@ -1,57 +1,57 @@
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import javax.swing.JButton;
import javax.swing.J... | true | true | public RecognitionWin() {
setTitle("Handwritten Digit Recognition");
setSize(710, 480);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setResizable(false);
setLayout(null);
ImagesPanel imagesPanel = new ImagesPanel();
JButton btnReset = new JButton("Reset");
btnReset.setBoun... | public RecognitionWin() {
setTitle("Handwritten Digit Recognition");
setSize(710, 480);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setResizable(false);
setLayout(null);
ImagesPanel imagesPanel = new ImagesPanel();
btnReset = new JButton("Reset");
btnReset.setBounds(565, ... |
diff --git a/src/ca/ualberta/CMPUT301F13T02/chooseyouradventure/EditStoryActivity.java b/src/ca/ualberta/CMPUT301F13T02/chooseyouradventure/EditStoryActivity.java
index 91f76fc..3361746 100644
--- a/src/ca/ualberta/CMPUT301F13T02/chooseyouradventure/EditStoryActivity.java
+++ b/src/ca/ualberta/CMPUT301F13T02/chooseyour... | false | true | public void pageOptions(final int pos){
final Page currentPage = pageList.get(pos);
final Page FP = app.getStory().getFirstpage();
String[] titlesA = {"Goto/Edit","Page Properties","Cancel"};
String[] titlesB = {"Goto/Edit","Page Properties","Assign as First Page","Delete","Cancel"};
final String[] titles;
... | public void pageOptions(final int pos){
final Page currentPage = app.getStory().getPages().get(pos);
final Page FP = app.getStory().getFirstpage();
String[] titlesA = {"Goto/Edit","Page Properties","Cancel"};
String[] titlesB = {"Goto/Edit","Page Properties","Assign as First Page","Delete","Cancel"};
final S... |
diff --git a/src/util/Camera.java b/src/util/Camera.java
index b50298b..0bf3e2a 100644
--- a/src/util/Camera.java
+++ b/src/util/Camera.java
@@ -1,340 +1,337 @@
package util;
import org.lwjgl.util.vector.Matrix4f;
import org.lwjgl.util.vector.Vector3f;
import util.math.MathUtils;
import util.math.Quaternion;
... | false | true | public void lookAt(float centerX, float centerY, float centerZ) {
centerPosition.x = centerX;
centerPosition.y = centerY;
centerPosition.z = centerZ;
// f = center - eye.
Vector3f.sub(centerPosition, eyePosition, f);
// If center ~= eyePosition, do nothing.
if (f.lengthSquared() <= MathUtils.EPSILON) r... | public void lookAt(float centerX, float centerY, float centerZ) {
centerPosition.x = centerX;
centerPosition.y = centerY;
centerPosition.z = centerZ;
// f = center - eye.
Vector3f.sub(centerPosition, eyePosition, f);
// If center ~= eyePosition, do nothing.
if (f.lengthSquared() <= MathUtils.EPSILON) r... |
diff --git a/src/kundera-tests/src/main/java/com/impetus/kundera/tests/crossdatastore/useraddress/dao/BaseDao.java b/src/kundera-tests/src/main/java/com/impetus/kundera/tests/crossdatastore/useraddress/dao/BaseDao.java
index 39ac803fb..87b5106ba 100644
--- a/src/kundera-tests/src/main/java/com/impetus/kundera/tests/cro... | true | true | public EntityManager getEntityManager(String pu, Map propertyMap)
{
if (emf == null)
{
if (propertyMap.isEmpty())
{
propertyMap.put(CassandraConstants.CQL_VERSION, CassandraConstants.CQL_VERSION_3_0);
}
Map mapOfExternalProperties =... | public EntityManager getEntityManager(String pu, Map propertyMap)
{
if (emf == null)
{
if (propertyMap.isEmpty())
{
propertyMap.put(CassandraConstants.CQL_VERSION, CassandraConstants.CQL_VERSION_3_0);
}
Map mapOfExternalProperties =... |
diff --git a/src/test/net/sf/clirr/checks/AbstractCheckTestCase.java b/src/test/net/sf/clirr/checks/AbstractCheckTestCase.java
index 4dc9fd0..190a62b 100644
--- a/src/test/net/sf/clirr/checks/AbstractCheckTestCase.java
+++ b/src/test/net/sf/clirr/checks/AbstractCheckTestCase.java
@@ -1,94 +1,88 @@
package net.sf.clirr... | false | true | protected void verify(ApiDifference[] expected)
{
TestDiffListener tdl = new TestDiffListener();
Checker checker = CheckerFactory.createChecker(createCheck(tdl));
ClassSelector classSelector = createClassSelector();
try
{
checker.reportDiffs(
... | protected void verify(ApiDifference[] expected)
throws Exception
{
TestDiffListener tdl = new TestDiffListener();
Checker checker = CheckerFactory.createChecker(createCheck(tdl));
ClassSelector classSelector = createClassSelector();
checker.reportDiffs(
g... |
diff --git a/apps/lifelinesresearchportal/org/molgenis/lifelinesresearchportal/plugins/plinkdownload/PlinkDownload.java b/apps/lifelinesresearchportal/org/molgenis/lifelinesresearchportal/plugins/plinkdownload/PlinkDownload.java
index f26e6f7f7..0368ac8c8 100644
--- a/apps/lifelinesresearchportal/org/molgenis/lifelines... | false | true | public void handleRequest(Database db, Tuple request)
{
String action = request.getAction();
if (action.equals("genPlink"))
{
// Get selected phenotype
int measurementId = -1;// request.getInt(measurements.getName());
Measurement meas;
try
{
meas = db.findById(Measurement.class, measurementI... | public void handleRequest(Database db, Tuple request)
{
String action = request.getAction();
if (action.equals("genPlink"))
{
// Get selected phenotype
int measurementId = -1;// request.getInt(measurements.getName());
Measurement meas;
try
{
meas = db.findById(Measurement.class, measurementI... |
diff --git a/main/tests/server/src/com/google/refine/tests/importers/ExcelImporterTests.java b/main/tests/server/src/com/google/refine/tests/importers/ExcelImporterTests.java
index c26129dd..40a8c203 100644
--- a/main/tests/server/src/com/google/refine/tests/importers/ExcelImporterTests.java
+++ b/main/tests/server/src... | true | true | private static File createSpreadsheet(boolean xml) {
final Workbook wb = xml ? new XSSFWorkbook() : new HSSFWorkbook();
for (int s = 0; s < SHEETS; s++) {
Sheet sheet = wb.createSheet("Test Sheet " + s);
for (int row = 0; row < ROWS; row++) {
int col = 0;
... | private static File createSpreadsheet(boolean xml) {
final Workbook wb = xml ? new XSSFWorkbook() : new HSSFWorkbook();
for (int s = 0; s < SHEETS; s++) {
Sheet sheet = wb.createSheet("Test Sheet " + s);
for (int row = 0; row < ROWS; row++) {
int col = 0;
... |
diff --git a/tutorials/src/tutorial/directmessenger/Sender.java b/tutorials/src/tutorial/directmessenger/Sender.java
index 1e47c74..14696b6 100644
--- a/tutorials/src/tutorial/directmessenger/Sender.java
+++ b/tutorials/src/tutorial/directmessenger/Sender.java
@@ -1,294 +1,293 @@
/*
* Copyright (c) 2006-2007 Sun Mic... | true | true | public void processIncomingMessage(Message msg, EndpointAddress source, EndpointAddress destination) {
MessageElement announce = msg.getMessageElement("ChatAnnounce");
if(null == announce) {
// It doesn't seem to be the right kind of message.
... | public void processIncomingMessage(Message msg, EndpointAddress source, EndpointAddress destination) {
MessageElement announce = msg.getMessageElement("ChatAnnounce");
if(null == announce) {
// It doesn't seem to be the right kind of message.
... |
diff --git a/railo-java/railo-core/src/railo/commons/io/res/type/s3/S3ResourceProvider.java b/railo-java/railo-core/src/railo/commons/io/res/type/s3/S3ResourceProvider.java
index a0a85edd3..52f886e48 100755
--- a/railo-java/railo-core/src/railo/commons/io/res/type/s3/S3ResourceProvider.java
+++ b/railo-java/railo-core/... | true | true | public static String loadWithNewPattern(S3 s3,RefInteger storage, String path) {
PageContext pc = ThreadLocalPageContext.get();
Properties prop=null;
if(pc!=null){
prop=((ApplicationContextPro)pc.getApplicationContext()).getS3();
}
else prop=new Properties();
int defaultLocation = prop.getDefaultLoc... | public static String loadWithNewPattern(S3 s3,RefInteger storage, String path) {
PageContext pc = ThreadLocalPageContext.get();
Properties prop=null;
if(pc!=null){
prop=((ApplicationContextPro)pc.getApplicationContext()).getS3();
}
if(prop==null) prop=new Properties();
int defaultLocation = prop.get... |
diff --git a/KajonaLanguageEditorGui/src/main/java/de/mulchprod/kajona/languageeditor/gui/tree/GuiTreeNode.java b/KajonaLanguageEditorGui/src/main/java/de/mulchprod/kajona/languageeditor/gui/tree/GuiTreeNode.java
index d2880bf..e8e83da 100644
--- a/KajonaLanguageEditorGui/src/main/java/de/mulchprod/kajona/languageedito... | true | true | public String toString() {
String addon = "";
if(referencingTreeNode.getReferencingObject() != null)
addon = " ("+referencingTreeNode.getReferencingObject().getAllKeys().size()+")";
return referencingTreeNode.getNodeName()+addon;
}
| public String toString() {
String addon = "";
if(referencingTreeNode.getReferencingObject() != null && referencingTreeNode.getType() != NodeType.KEY)
addon = " ("+referencingTreeNode.getReferencingObject().getAllKeys().size()+")";
return referencingTreeNode.getNodeName()+addon;
... |
diff --git a/LanPlayer/LanPlayer/src/lanplayer/MusicData.java b/LanPlayer/LanPlayer/src/lanplayer/MusicData.java
index bb430b1..34aa5ce 100644
--- a/LanPlayer/LanPlayer/src/lanplayer/MusicData.java
+++ b/LanPlayer/LanPlayer/src/lanplayer/MusicData.java
@@ -1,152 +1,152 @@
package lanplayer;
import java.io.File;
im... | true | true | public MusicData(int position, File musicFile, String title, String artist, String album, String trackno, String duration, int played, int rating, int skip, Date date, String ip) throws MalformedURLException, UnsupportedAudioFileException {
this.position = position;
this.musicFile = musicFile;
this.ip = ip;
th... | public MusicData(int position, File musicFile, String title, String artist, String album, String trackno, String duration, int played, int rating, int skip, Date date, String ip) throws MalformedURLException, UnsupportedAudioFileException {
this.position = position;
this.musicFile = musicFile;
this.ip = ip;
th... |
diff --git a/rtty_dev/src/ukhas/Gps_coordinate.java b/rtty_dev/src/ukhas/Gps_coordinate.java
index 284f15b..102bea7 100644
--- a/rtty_dev/src/ukhas/Gps_coordinate.java
+++ b/rtty_dev/src/ukhas/Gps_coordinate.java
@@ -1,178 +1,182 @@
// Copyright 2012 (C) Matthew Brejza
//
// This program is free software: you can re... | false | true | public void Set_str(String lat, String longi)
{
//different formats:
//NMEA: (-)DDMM.mmm... (-)DDDMM.mmm...
//decimal: (-)(D)D.ddd... (-)(DD)D.ddd...
//int: something else, no decimal places
int offset_lat=0;
int offset_long=0;
if (lat.length() < 3 || lat.length() < 3)
{
lat... | public void Set_str(String lat, String longi)
{
//different formats:
//NMEA: (-)DDMM.mmm... (-)DDDMM.mmm...
//decimal: (-)(D)D.ddd... (-)(DD)D.ddd...
//int: something else, no decimal places
int offset_lat=0;
int offset_long=0;
if (lat.length() < 3 || lat.length() < 3)
{
lat... |
diff --git a/src/henplus/commands/ResultSetRenderer.java b/src/henplus/commands/ResultSetRenderer.java
index aab5dbb..33c4146 100644
--- a/src/henplus/commands/ResultSetRenderer.java
+++ b/src/henplus/commands/ResultSetRenderer.java
@@ -1,173 +1,180 @@
/*
* This is free software, licensed under the Gnu Public Licens... | true | true | public int execute() throws SQLException {
int rows = 0;
_running = true;
try {
while (_running && _rset.next()) {
final Column[] currentRow = new Column[_columns];
for (int i = 0; i < _columns; ++i) {
final int col = _showColu... | public int execute() throws SQLException {
int rows = 0;
_running = true;
try {
while (_running && _rset.next()) {
final Column[] currentRow = new Column[_columns];
for (int i = 0; i < _columns; ++i) {
final int col = _showColu... |
diff --git a/com.heroku.eclipse.ui/src/com/heroku/eclipse/ui/utils/LabelProviderFactory.java b/com.heroku.eclipse.ui/src/com/heroku/eclipse/ui/utils/LabelProviderFactory.java
index 4af41e4..00a9eb1 100644
--- a/com.heroku.eclipse.ui/src/com/heroku/eclipse/ui/utils/LabelProviderFactory.java
+++ b/com.heroku.eclipse.ui/s... | true | true | public static ColumnLabelProvider createName(final HerokuServices services, final RunnableWithReturn<List<HerokuProc>, App> procListCallback) {
return new ColumnLabelProvider() {
@Override
public String getText(Object element) {
if (element instanceof App) {
App app = (App) element;
return app.ge... | public static ColumnLabelProvider createName(final HerokuServices services, final RunnableWithReturn<List<HerokuProc>, App> procListCallback) {
return new ColumnLabelProvider() {
@Override
public String getText(Object element) {
if (element instanceof App) {
App app = (App) element;
return app.ge... |
diff --git a/src/gui/MyPage.java b/src/gui/MyPage.java
index e755099..7bca0da 100644
--- a/src/gui/MyPage.java
+++ b/src/gui/MyPage.java
@@ -1,556 +1,556 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gui;
import db.DatabaseHandler;
import main.Re... | true | true | private void initComponents() {
label1 = new java.awt.Label();
label2 = new java.awt.Label();
label3 = new java.awt.Label();
label4 = new java.awt.Label();
label5 = new java.awt.Label();
label15 = new java.awt.Label();
textField1 = new java.awt.TextField();
... | private void initComponents() {
label1 = new java.awt.Label();
label2 = new java.awt.Label();
label3 = new java.awt.Label();
label4 = new java.awt.Label();
label5 = new java.awt.Label();
label15 = new java.awt.Label();
textField1 = new java.awt.TextField();
... |
diff --git a/src/main/java/com/onarandombox/MultiverseCore/MVPermissions.java b/src/main/java/com/onarandombox/MultiverseCore/MVPermissions.java
index 27a84cb..b8822eb 100644
--- a/src/main/java/com/onarandombox/MultiverseCore/MVPermissions.java
+++ b/src/main/java/com/onarandombox/MultiverseCore/MVPermissions.java
@@ ... | false | true | public boolean hasPermission(CommandSender sender, String node, boolean isOpRequired) {
if (!(sender instanceof Player)) {
return true;
}
Player player = (Player) sender;
boolean opFallback = this.plugin.getConfig().getBoolean("opfallback", true);
if (this.perm... | public boolean hasPermission(CommandSender sender, String node, boolean isOpRequired) {
if (!(sender instanceof Player)) {
return true;
}
Player player = (Player) sender;
boolean opFallback = this.plugin.getConfig().getBoolean("opfallback", true);
if (this.perm... |
diff --git a/src/cytoscape/view/NetworkViewManager.java b/src/cytoscape/view/NetworkViewManager.java
index 7d5a52a01..48604d72a 100644
--- a/src/cytoscape/view/NetworkViewManager.java
+++ b/src/cytoscape/view/NetworkViewManager.java
@@ -1,349 +1,349 @@
package cytoscape.view;
import cytoscape.Cytoscape;
import cyt... | true | true | protected void createContainer ( final CyNetworkView view ) {
if ( networkViewMap.containsKey( view.getNetwork().getIdentifier() ) ) {
// already contains
return;
}
if ( VIEW_TYPE == CytoscapeDesktop.TABBED_VIEW ) {
// put the CyNetworkViews Component into the Tabbed Pane
... | protected void createContainer ( final CyNetworkView view ) {
if ( networkViewMap.containsKey( view.getNetwork().getIdentifier() ) ) {
// already contains
return;
}
if ( VIEW_TYPE == CytoscapeDesktop.TABBED_VIEW ) {
// put the CyNetworkViews Component into the Tabbed Pane
... |
diff --git a/src/org/fatecrafters/plugins/listeners/PlayerListener.java b/src/org/fatecrafters/plugins/listeners/PlayerListener.java
index 4d2006f..51dc962 100644
--- a/src/org/fatecrafters/plugins/listeners/PlayerListener.java
+++ b/src/org/fatecrafters/plugins/listeners/PlayerListener.java
@@ -1,302 +1,302 @@
packag... | true | true | public void onRightClick(final PlayerInteractEvent e) {
final Action act = e.getAction();
final Player p = e.getPlayer();
final ItemStack item = p.getItemInHand();
final String name = p.getName();
if (item.hasItemMeta()) {
for (final String backpack : plugin.backpacks) {
final List<String> key = plugi... | public void onInteract(final PlayerInteractEvent e) {
final Action act = e.getAction();
final Player p = e.getPlayer();
final ItemStack item = p.getItemInHand();
final String name = p.getName();
if (item.hasItemMeta()) {
for (final String backpack : plugin.backpacks) {
final List<String> key = plugin.... |
diff --git a/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/EventAndObserverMethodHyperlinkDetector.java b/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/EventAndObserverMethodHyperlinkDetector.java
index 3e7b881e1..fc0a4e69e 100644
--- a/cdi/plu... | false | true | public IHyperlink[] detectHyperlinks(ITextViewer textViewer,
IRegion region, boolean canShowMultipleHyperlinks) {
ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class);
if (region == null || !canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor))
return null;
int offset= region.g... | public IHyperlink[] detectHyperlinks(ITextViewer textViewer,
IRegion region, boolean canShowMultipleHyperlinks) {
ITextEditor textEditor= (ITextEditor)getAdapter(ITextEditor.class);
if (region == null || !canShowMultipleHyperlinks || !(textEditor instanceof JavaEditor))
return null;
int offset= region.g... |
diff --git a/src/main/java/de/jaschastarke/bukkit/lib/events/HangingBreakByPlayerBlockEvent.java b/src/main/java/de/jaschastarke/bukkit/lib/events/HangingBreakByPlayerBlockEvent.java
index 9138b29..590d619 100644
--- a/src/main/java/de/jaschastarke/bukkit/lib/events/HangingBreakByPlayerBlockEvent.java
+++ b/src/main/ja... | true | true | public HangingBreakByPlayerBlockEvent(final Hanging hanging, final Player remover, final RemoveCause cause) {
super(hanging, remover);
this.cause = cause;
drops = new ArrayList<ItemStack>(2);
if (hanging instanceof Painting) {
drops.add(new ItemStack(Material.PAINTING));
... | public HangingBreakByPlayerBlockEvent(final Hanging hanging, final Player remover, final RemoveCause cause) {
super(hanging, remover);
this.cause = cause;
drops = new ArrayList<ItemStack>(2);
if (hanging instanceof Painting) {
drops.add(new ItemStack(Material.PAINTING));
... |
diff --git a/src/frontend/org/voltdb/Expectation.java b/src/frontend/org/voltdb/Expectation.java
index f8d7fa1ba..967198039 100644
--- a/src/frontend/org/voltdb/Expectation.java
+++ b/src/frontend/org/voltdb/Expectation.java
@@ -1,125 +1,125 @@
/* This file is part of VoltDB.
* Copyright (C) 2008-2011 VoltDB Inc.
... | false | true | static void check(String procedureName, String stmtName, int batchIndex,
Expectation expectation, VoltTable table) throws VoltAbortException {
if (expectation == null)
return;
assert(table != null);
int rowCount = table.getRowCount();
switch (expectation.m_t... | static void check(String procedureName, String stmtName, int batchIndex,
Expectation expectation, VoltTable table) throws VoltAbortException {
if (expectation == null)
return;
assert(table != null);
int rowCount = table.getRowCount();
switch (expectation.m_t... |
diff --git a/source/RMG/jing/rxn/PDepArrheniusKinetics.java b/source/RMG/jing/rxn/PDepArrheniusKinetics.java
index a183f4d7..cb9b8ef3 100644
--- a/source/RMG/jing/rxn/PDepArrheniusKinetics.java
+++ b/source/RMG/jing/rxn/PDepArrheniusKinetics.java
@@ -1,162 +1,164 @@
////////////////////////////////////////////////////... | false | true | public double calculateRate(Temperature T, Pressure P) {
int index1 = -1; int index2 = -1;
for (int i = 0; i < pressures.length - 1; i++) {
if (pressures[i].getBar() <= P.getBar() && P.getBar() <= pressures[i+1].getBar()) {
index1 = i; index2 = i + 1;
}
}
/* Chemkin 4 theory manual specifies:
... | public double calculateRate(Temperature T, Pressure P) {
int index1 = -1; int index2 = -1;
for (int i = 0; i < pressures.length - 1; i++) {
if (pressures[i].getBar() <= P.getBar() && P.getBar() <= pressures[i+1].getBar()) {
index1 = i;
index2 = i + 1;
break;
}
}
/* Chemkin 4 theory manual... |
diff --git a/java.java b/java.java
index 6978e51..3d0111c 100644
--- a/java.java
+++ b/java.java
@@ -1,7 +1,7 @@
class helloclass
{
public static void main(String args[])
{
- system.out.println("Hello World");
+ System.out.println("Hello World");
}
}
| true | true | public static void main(String args[])
{
system.out.println("Hello World");
}
| public static void main(String args[])
{
System.out.println("Hello World");
}
|
diff --git a/src/test/java/SimpleTest.java b/src/test/java/SimpleTest.java
index bd7507d..c97e1fa 100644
--- a/src/test/java/SimpleTest.java
+++ b/src/test/java/SimpleTest.java
@@ -1,11 +1,11 @@
import junit.framework.Assert;
import org.testng.annotations.Test;
public class SimpleTest {
@Test
public void a... | true | true | public void alwaysTrue() {
Assert.assertTrue(false);
}
| public void alwaysTrue() {
Assert.assertTrue(true);
}
|
diff --git a/src/main/java/org/mvel/integration/impl/ClassImportResolverFactory.java b/src/main/java/org/mvel/integration/impl/ClassImportResolverFactory.java
index 8d88a485..b7f48816 100644
--- a/src/main/java/org/mvel/integration/impl/ClassImportResolverFactory.java
+++ b/src/main/java/org/mvel/integration/impl/Class... | true | true | public boolean isResolveable(String name) {
if (variableResolvers.containsKey(name) || isNextResolveable(name)) {
return true;
}
else if (packageImports != null) {
for (String s : packageImports) {
try {
addClass(createClass(s + ".... | public boolean isResolveable(String name) {
if (variableResolvers.containsKey(name) || isNextResolveable(name)) {
return true;
}
else if (packageImports != null) {
for (String s : packageImports) {
try {
addClass(createClass(s + ".... |
diff --git a/problem/src/main/java/rinde/sim/pdptw/central/SolverValidator.java b/problem/src/main/java/rinde/sim/pdptw/central/SolverValidator.java
index cada98ba..18e98b6f 100644
--- a/problem/src/main/java/rinde/sim/pdptw/central/SolverValidator.java
+++ b/problem/src/main/java/rinde/sim/pdptw/central/SolverValidato... | true | true | public static GlobalStateObject validateInputs(GlobalStateObject state) {
checkArgument(state.time >= 0, "Time must be >= 0, is %s.", state.time);
final Set<ParcelDTO> inventoryParcels = newHashSet();
final boolean routeIsPresent = state.vehicles.get(0).route.isPresent();
final Set<ParcelDTO> allParc... | public static GlobalStateObject validateInputs(GlobalStateObject state) {
checkArgument(state.time >= 0, "Time must be >= 0, is %s.", state.time);
final Set<ParcelDTO> inventoryParcels = newHashSet();
final boolean routeIsPresent = state.vehicles.get(0).route.isPresent();
final Set<ParcelDTO> allParc... |
diff --git a/eapli.expensemanager/src/Presentation/DefMeiosPagamento.java b/eapli.expensemanager/src/Presentation/DefMeiosPagamento.java
index 3a0c499..3f3b04c 100644
--- a/eapli.expensemanager/src/Presentation/DefMeiosPagamento.java
+++ b/eapli.expensemanager/src/Presentation/DefMeiosPagamento.java
@@ -1,27 +1,27 @@
... | true | true | public void mainLoop() {
System.out.println("* * * NOVO MEIO DE PAGAMENTO * * *\n");
RepositorioTiposPagamento rep = new RepositorioTiposPagamento();
rep.ListarTiposPagamento();
int escolha = Console.readInteger("Escolha um dos Tipos de Pagamento: ");
... | public void mainLoop() {
System.out.println("* * * NOVO MEIO DE PAGAMENTO * * *\n");
RepositorioTiposPagamento rep = new RepositorioTiposPagamento();
rep.ListarTiposPagamento();
int escolha = Console.readInteger("Escolha um dos Tipos de Pagamento: ");
... |
diff --git a/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/SQLQueryTranslator.java b/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/SQLQueryTranslator.java
index b3737c62a..1b7193ba5 100644
--- a/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/SQLQueryTranslator.java
+++ b/obdalib-core/src/main/java/i... | false | true | private ViewDefinition createViewDefinition(String viewName, String query) {
int start = 6; // the keyword 'select'
int end = query.toLowerCase().indexOf("from");
boolean uppercase=false;
boolean quoted = false;
if (end == -1) {
throw new RuntimeException("Error parsing SQL query: Couldn't find FROM c... | private ViewDefinition createViewDefinition(String viewName, String query) {
int start = 6; // the keyword 'select'
int end = query.toLowerCase().indexOf("from");
boolean uppercase=false;
boolean quoted;
if (end == -1) {
throw new RuntimeException("Error parsing SQL query: Couldn't find FROM clause");... |
diff --git a/araqne-logdb/src/main/java/org/araqne/logdb/query/command/Parse.java b/araqne-logdb/src/main/java/org/araqne/logdb/query/command/Parse.java
index a46db53c..3c63ce0e 100644
--- a/araqne-logdb/src/main/java/org/araqne/logdb/query/command/Parse.java
+++ b/araqne-logdb/src/main/java/org/araqne/logdb/query/comm... | false | true | public void onPush(RowBatch rowBatch) {
// TODO: boost v2 performance
if (parserVersion == 2) {
if (rowBatch.selectedInUse) {
for (int i = 0; i < rowBatch.size; i++) {
Row row = rowBatch.rows[rowBatch.selected[i]];
onPush(row);
}
} else {
for (int i = 0; i < rowBatch.size; i++) {
R... | public void onPush(RowBatch rowBatch) {
// TODO: boost v2 performance
if (parserVersion == 2) {
if (rowBatch.selectedInUse) {
for (int i = 0; i < rowBatch.size; i++) {
Row row = rowBatch.rows[rowBatch.selected[i]];
onPush(row);
}
} else {
for (int i = 0; i < rowBatch.size; i++) {
R... |
diff --git a/exchange2/src/com/android/exchange/EasAccountService.java b/exchange2/src/com/android/exchange/EasAccountService.java
index 58ddaf37..533a5df5 100644
--- a/exchange2/src/com/android/exchange/EasAccountService.java
+++ b/exchange2/src/com/android/exchange/EasAccountService.java
@@ -1,882 +1,882 @@
/*
* C... | false | true | private void runPingLoop() throws IOException, StaleFolderListException,
IllegalHeartbeatException, CommandStatusException {
int pingHeartbeat = mPingHeartbeat;
userLog("runPingLoop");
// Do push for all sync services here
long endTime = System.currentTimeMillis() + (30*M... | private void runPingLoop() throws IOException, StaleFolderListException,
IllegalHeartbeatException, CommandStatusException {
int pingHeartbeat = mPingHeartbeat;
userLog("runPingLoop");
// Do push for all sync services here
long endTime = System.currentTimeMillis() + (30*M... |
diff --git a/frost-wot/lib/skinlfFix/com/l2fprod/gui/plaf/skin/impl/gtk/GtkTableHeaderRenderer.java b/frost-wot/lib/skinlfFix/com/l2fprod/gui/plaf/skin/impl/gtk/GtkTableHeaderRenderer.java
index 0d6d52ea..2c8eb2f1 100644
--- a/frost-wot/lib/skinlfFix/com/l2fprod/gui/plaf/skin/impl/gtk/GtkTableHeaderRenderer.java
+++ b/... | false | true | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
int index = -1;
int modelIndex = -1;
boolean ascending = true;
if (table != null) {
if (table instanceof SortedTable) {
SortedTable sortTable = (SortedTable) table;
... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
int index = -1;
int modelIndex = -1;
boolean ascending = true;
boolean isSortedTable = false;
if (table != null) {
if (table instanceof SortedTable) {
isSortedTable =... |
diff --git a/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1717Test.java b/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1717Test.java
index 27d960c6..3ee4c93a 100644
--- a/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJ... | true | true | public void testJstJspJbide1641() {
openEditor(PAGE_NAME);
// Find start of <h:outputText> tag
String documentContent = document.get();
int start = (documentContent == null ? -1 : documentContent.indexOf(INSERT_BEFORE_STRING));
assertTrue("Cannot find the starting point in the test file \"" + PAGE_NAME + ... | public void testJstJspJbide1717() {
openEditor(PAGE_NAME);
// Find start of <h:outputText> tag
String documentContent = document.get();
int start = (documentContent == null ? -1 : documentContent.indexOf(INSERT_BEFORE_STRING));
assertTrue("Cannot find the starting point in the test file \"" + PAGE_NAME + ... |
diff --git a/src/org/rsbot/script/web/RouteStep.java b/src/org/rsbot/script/web/RouteStep.java
index b901aba5..1ec0288e 100644
--- a/src/org/rsbot/script/web/RouteStep.java
+++ b/src/org/rsbot/script/web/RouteStep.java
@@ -1,140 +1,140 @@
package org.rsbot.script.web;
import org.rsbot.script.Random;
import org.rsb... | true | true | public boolean execute() {
try {
if (aScriptInactive()) {
return false;
}
switch (type) {
case PATH:
if (path == null || inSomeRandom()) {
return false;
}
if (rspath == null || (rspath.getNext() == null && destOffScreen())) {
update();
}
if (methods.calc.distance... | public boolean execute() {
try {
if (aScriptInactive()) {
return false;
}
switch (type) {
case PATH:
if (path == null || inSomeRandom()) {
return false;
}
if (rspath == null || (rspath.getNext() == null && !destOffScreen())) {
update();
}
if (methods.calc.distanc... |
diff --git a/src/com/bekvon/bukkit/residence/protection/ClaimedResidence.java b/src/com/bekvon/bukkit/residence/protection/ClaimedResidence.java
index 5f405f0..fd93399 100644
--- a/src/com/bekvon/bukkit/residence/protection/ClaimedResidence.java
+++ b/src/com/bekvon/bukkit/residence/protection/ClaimedResidence.java
@@ ... | false | true | public void addArea(Player player, CuboidArea area, String name) {
name = name.replace(".", "_");
name = name.replace(":", "_");
if(areas.containsKey(name))
{
player.sendMessage("§cArea name already exists.");
return;
}
if (!area.getWorld().get... | public void addArea(Player player, CuboidArea area, String name) {
name = name.replace(".", "_");
name = name.replace(":", "_");
if(areas.containsKey(name))
{
player.sendMessage("§cArea name already exists.");
return;
}
if (!area.getWorld().get... |
diff --git a/src/com/android/exchange/adapter/ProvisionParser.java b/src/com/android/exchange/adapter/ProvisionParser.java
index 057ffaf..5ba43e4 100644
--- a/src/com/android/exchange/adapter/ProvisionParser.java
+++ b/src/com/android/exchange/adapter/ProvisionParser.java
@@ -1,450 +1,446 @@
/* Copyright (C) 2010 The ... | false | true | private void parseProvisionDocWbxml() throws IOException {
int minPasswordLength = 0;
int passwordMode = PolicySet.PASSWORD_MODE_NONE;
int maxPasswordFails = 0;
int maxScreenLockTime = 0;
int passwordExpiration = 0;
int passwordHistory = 0;
int passwordComplex... | private void parseProvisionDocWbxml() throws IOException {
int minPasswordLength = 0;
int passwordMode = PolicySet.PASSWORD_MODE_NONE;
int maxPasswordFails = 0;
int maxScreenLockTime = 0;
int passwordExpiration = 0;
int passwordHistory = 0;
int passwordComplex... |
diff --git a/gwt-client/src/main/java/org/mule/galaxy/web/client/ui/ExternalHyperlink.java b/gwt-client/src/main/java/org/mule/galaxy/web/client/ui/ExternalHyperlink.java
index c5486e68..593b4b3c 100644
--- a/gwt-client/src/main/java/org/mule/galaxy/web/client/ui/ExternalHyperlink.java
+++ b/gwt-client/src/main/java/or... | false | true | private Element getAnchorElement(final String text,
final String link,
final String target) {
setElement(DOM.createDiv());
final Element anchorElem = DOM.createAnchor();
DOM.appendChild(getElement(), this.anchorElem);
... | private Element getAnchorElement(final String text,
final String link,
final String target) {
setElement(DOM.createDiv());
final Element anchorElement = DOM.createAnchor();
DOM.appendChild(getElement(), anchorElement);... |
diff --git a/src/main/java/com/github/ucchyocean/ct/command/CTeamingCommand.java b/src/main/java/com/github/ucchyocean/ct/command/CTeamingCommand.java
index ff463d3..ee897df 100644
--- a/src/main/java/com/github/ucchyocean/ct/command/CTeamingCommand.java
+++ b/src/main/java/com/github/ucchyocean/ct/command/CTeamingComm... | false | true | public boolean onCommand(
CommandSender sender, Command command, String label, String[] args) {
if ( args.length < 1 ) {
return false;
}
if ( args[0].equalsIgnoreCase("reload") ) {
plugin.reloadCTConfig();
sender.sendMessage("config.ymlの再読み込... | public boolean onCommand(
CommandSender sender, Command command, String label, String[] args) {
if ( args.length < 1 ) {
return false;
}
if ( args[0].equalsIgnoreCase("reload") ) {
plugin.reloadCTConfig();
sender.sendMessage("config.ymlの再読み込... |
diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java
index 8708266..e2fa6f2 100644
--- a/src/java/davmail/caldav/CaldavConnection.java
+++ b/src/java/davmail/caldav/CaldavConnection.java
@@ -1,766 +1,766 @@
package davmail.caldav;
import davmail.AbstractConnecti... | true | true | public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
int depth = getDepth(headers);
String[] paths = path.split("/");
// full debug trace
if (wireLogger.isDebugEnabled()) {
wireLogger.debug("Caldav command:... | public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
int depth = getDepth(headers);
String[] paths = path.split("/");
// full debug trace
if (wireLogger.isDebugEnabled()) {
wireLogger.debug("Caldav command:... |
diff --git a/src/com/monstersfromtheid/imready/service/CheckMeetingsService.java b/src/com/monstersfromtheid/imready/service/CheckMeetingsService.java
index c19e219..34e8780 100644
--- a/src/com/monstersfromtheid/imready/service/CheckMeetingsService.java
+++ b/src/com/monstersfromtheid/imready/service/CheckMeetingsServ... | true | true | protected void generateNotifications(Intent intent){
if( api == null && IMReady.isAccountDefined(this) ){
userName = IMReady.getUserName(this);
api = new ServerAPI(userName);
}
JSONArray latestJSON = new JSONArray();
try {
latestJSON = api.userMeetings(api.getRequestingUserId());
} catch (ServerA... | protected void generateNotifications(Intent intent){
if ( !IMReady.isAccountDefined(this) ) return;
if( api == null ){
userName = IMReady.getUserName(this);
api = new ServerAPI(userName);
}
JSONArray latestJSON = new JSONArray();
try {
latestJSON = api.userMeetings(api.getRequestingUserId());
}... |
diff --git a/lib-core/src/main/java/com/silverpeas/form/fieldDisplayer/WysiwygFCKFieldDisplayer.java b/lib-core/src/main/java/com/silverpeas/form/fieldDisplayer/WysiwygFCKFieldDisplayer.java
index 328655acb3..fb6fdba230 100644
--- a/lib-core/src/main/java/com/silverpeas/form/fieldDisplayer/WysiwygFCKFieldDisplayer.java... | true | true | public void display(PrintWriter out,
Field field,
FieldTemplate template,
PagesContext pageContext) throws FormException {
String code = "";
String fieldName = template.getFieldName();
Map<String, String> parameters = template.getParameters(pageContext.getLanguage());
if (!field.g... | public void display(PrintWriter out,
Field field,
FieldTemplate template,
PagesContext pageContext) throws FormException {
String code = "";
String fieldName = template.getFieldName();
Map<String, String> parameters = template.getParameters(pageContext.getLanguage());
if (!field.g... |
diff --git a/TicTac.java b/TicTac.java
index 1b1e27b..f94ac5a 100644
--- a/TicTac.java
+++ b/TicTac.java
@@ -1,169 +1,169 @@
/**
* @author MpoMp
* @version 1.4
* @since 14-12-2011
*
* Tic-Tac-Toe game
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/** ... | false | true | public static void main(String args[]) throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader input = new BufferedReader(isr);
String ttt[][] = new String[3][3]; //the tic-tac-toe table and variables
final String x = "X";
final String o = "O";
... | public static void main(String args[]) throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader input = new BufferedReader(isr);
String ttt[][] = new String[3][3]; //the tic-tac-toe table and variables
final String x = "X";
final String o = "O";
... |
diff --git a/src/main/java/org/mongolink/domain/mapper/MapMapper.java b/src/main/java/org/mongolink/domain/mapper/MapMapper.java
index 67536a2..a1b1465 100644
--- a/src/main/java/org/mongolink/domain/mapper/MapMapper.java
+++ b/src/main/java/org/mongolink/domain/mapper/MapMapper.java
@@ -1,66 +1,68 @@
/*
* MongoLink... | true | true | public void populate(final Object instance, final DBObject from) {
try {
Field field = ReflectionUtils.findPrivateField(instance.getClass(), name);
field.setAccessible(true);
Map map = (Map) field.get(instance);
//noinspection unchecked
map.putAll(... | public void populate(final Object instance, final DBObject from) {
try {
Field field = ReflectionUtils.findPrivateField(instance.getClass(), name);
field.setAccessible(true);
Map dbMap = (Map) from.get(name);
if (dbMap != null) {
Map map = (Map... |
diff --git a/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java b/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java
index 6257543e..abce7397 100644
--- a/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java
+++ b/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java
@@ -1... | true | true | public void setupBeforeSuite() throws IOException {
client = new SSHCommandRunner(clienthostname, sshUser, sshKeyPrivate, sshkeyPassphrase, null);
clienttasks = new SubscriptionManagerTasks(client);
client1 = client;
client1tasks = clienttasks;
File serverCaCertFile = null;
List<File> generatedProductCer... | public void setupBeforeSuite() throws IOException {
client = new SSHCommandRunner(clienthostname, sshUser, sshKeyPrivate, sshkeyPassphrase, null);
clienttasks = new SubscriptionManagerTasks(client);
client1 = client;
client1tasks = clienttasks;
File serverCaCertFile = null;
List<File> generatedProductCer... |
diff --git a/src/main/java/net/pms/encoders/FFmpegWebVideo.java b/src/main/java/net/pms/encoders/FFmpegWebVideo.java
index 959d93afc..fbc27a7af 100644
--- a/src/main/java/net/pms/encoders/FFmpegWebVideo.java
+++ b/src/main/java/net/pms/encoders/FFmpegWebVideo.java
@@ -1,430 +1,430 @@
/*
* PS3 Media Server, for strea... | true | true | public synchronized ProcessWrapper launchTranscode(
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
params.minBufferSize = params.minFileSize;
params.secondread_minsize = 100000;
RendererConfiguration renderer = params.mediaRenderer;
String filename = dlna.getSystemNam... | public synchronized ProcessWrapper launchTranscode(
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
params.minBufferSize = params.minFileSize;
params.secondread_minsize = 100000;
RendererConfiguration renderer = params.mediaRenderer;
String filename = dlna.getSystemNam... |
diff --git a/ZKDLComponentsHibernateExt/src/main/java/cz/datalite/zk/components/list/filter/compilers/BooleanCriterionCompiler.java b/ZKDLComponentsHibernateExt/src/main/java/cz/datalite/zk/components/list/filter/compilers/BooleanCriterionCompiler.java
index eb33db4..f1f2849 100644
--- a/ZKDLComponentsHibernateExt/src/... | false | true | protected Criterion compileOperatorEqual( final String key, final Object... values ) {
final Object value = values[0];
if ( value != null && value instanceof String ) { // input from Quick Filter
final String val = ( String ) value;
if ( val.equalsIgnoreCase("a") || val.equal... | protected Criterion compileOperatorEqual( final String key, final Object... values ) {
final Object value = values[0];
if ( value != null && value instanceof String ) { // input from Quick Filter
final String val = ( String ) value;
if ( val.equalsIgnoreCase("a") || val.equal... |
diff --git a/jsword/java/jsword/org/crosswire/jsword/book/search/parse/CustomTokenizer.java b/jsword/java/jsword/org/crosswire/jsword/book/search/parse/CustomTokenizer.java
index 143059d0..10bf21e9 100644
--- a/jsword/java/jsword/org/crosswire/jsword/book/search/parse/CustomTokenizer.java
+++ b/jsword/java/jsword/org/c... | false | true | public static List tokenize(String sought, Map commands) throws BookException
{
List output = new ArrayList();
String commandChars = getSingleCharWords(commands);
char firstChar = sought.charAt(0);
int currentType = charType(firstChar, commandChars);
int startIndex = 0;
... | public static List tokenize(String sought, Map commands) throws BookException
{
List output = new ArrayList();
String commandChars = getSingleCharWords(commands);
char firstChar = sought.charAt(0);
int currentType = charType(firstChar, commandChars);
int startIndex = 0;
... |
diff --git a/src/simple/home/jtbuaa/simpleHome.java b/src/simple/home/jtbuaa/simpleHome.java
index a2993a4..00f8cd8 100644
--- a/src/simple/home/jtbuaa/simpleHome.java
+++ b/src/simple/home/jtbuaa/simpleHome.java
@@ -1,1687 +1,1691 @@
package simple.home.jtbuaa;
import java.io.EOFException;
import java.io.File;
i... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/*//splash screen
Thread splashTimer=new Thread()
{
public void run(){
try{
long curTime = System.currentTimeMillis();
while (System.currentTimeM... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/*//splash screen
Thread splashTimer=new Thread()
{
public void run(){
try{
long curTime = System.currentTimeMillis();
while (System.currentTimeM... |
diff --git a/android/src/com/facebook/flw/RedirectActivity.java b/android/src/com/facebook/flw/RedirectActivity.java
index 856586b..f4dba4d 100644
--- a/android/src/com/facebook/flw/RedirectActivity.java
+++ b/android/src/com/facebook/flw/RedirectActivity.java
@@ -1,23 +1,24 @@
package com.facebook.flw;
import andr... | true | true | protected void onCreate(Bundle savedInstanceState) {
Intent intent = new Intent(this, PickRestaurantActivity.class);
Log.i(FreeLunchWednesdayApplication.TAG, "Lets redirect");
startActivity(intent);
}
| protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = new Intent(this, PickRestaurantActivity.class);
Log.i(FreeLunchWednesdayApplication.TAG, "Lets redirect");
startActivity(intent);
}
|
diff --git a/src/com/webb/androidmosaic/TakePhotoActivity.java b/src/com/webb/androidmosaic/TakePhotoActivity.java
index 1e1eeb4..6c1e491 100644
--- a/src/com/webb/androidmosaic/TakePhotoActivity.java
+++ b/src/com/webb/androidmosaic/TakePhotoActivity.java
@@ -1,160 +1,165 @@
package com.webb.androidmosaic;
impor... | false | true | private boolean saveMosaic(int numOfRows, int numOfColums, int widthOfTile) {
Bitmap mosaicBitmap = Bitmap.createBitmap(numOfRows*widthOfTile, numOfColums*widthOfTile, Bitmap.Config.ARGB_8888);
Canvas mosaic = new Canvas(mosaicBitmap);
boolean success = false;
FileInputStream file = null;
int x = 0;
... | private boolean saveMosaic(int numOfRows, int numOfColumns, int widthOfTile) {
int width = numOfColumns*widthOfTile;
int height = numOfRows*widthOfTile;
Bitmap mosaicBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas mosaic = new Canvas(mosaicBitmap);
boolean success = false;
... |
diff --git a/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchViewLabelProvider.java b/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchViewLabelProvider.java
index d43ea350d..c6193af11 100644
--- a/schemaeditor/src/main/java/org/apache/directory/s... | true | true | public String getText( Object element )
{
String label = ""; //$NON-NLS-1$
int labelValue = store.getInt( PluginConstants.PREFS_SEARCH_VIEW_LABEL );
boolean abbreviate = store.getBoolean( PluginConstants.PREFS_SEARCH_VIEW_ABBREVIATE );
int abbreviateMaxLength = store.getInt( Plu... | public String getText( Object element )
{
String label = ""; //$NON-NLS-1$
int labelValue = store.getInt( PluginConstants.PREFS_SEARCH_VIEW_LABEL );
boolean abbreviate = store.getBoolean( PluginConstants.PREFS_SEARCH_VIEW_ABBREVIATE );
int abbreviateMaxLength = store.getInt( Plu... |
diff --git a/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java b/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java
index b4caa35..dfc4e28 100644
--- a/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java
+++ b/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java
@@ -1,5... | false | true | public void display(GLAutoDrawable drawable) {
GL gl = drawable.getGL();
increaseUpdateValue();
long start = System.currentTimeMillis();
double frameHeight = (double)getHeight();
double frameWidth = (double)getWidth();
... | public void display(GLAutoDrawable drawable) {
GL gl = drawable.getGL();
increaseUpdateValue();
long start = System.currentTimeMillis();
double frameHeight = (double)getHeight();
double frameWidth = (double)getWidth();
... |
diff --git a/src/main/java/com/yellowbkpk/geo/xapi/servlet/XapiServlet.java b/src/main/java/com/yellowbkpk/geo/xapi/servlet/XapiServlet.java
index 3deb425..3314bc0 100644
--- a/src/main/java/com/yellowbkpk/geo/xapi/servlet/XapiServlet.java
+++ b/src/main/java/com/yellowbkpk/geo/xapi/servlet/XapiServlet.java
@@ -1,193 +... | true | true | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String host = getServletContext().getInitParameter("xapi.db.host");
String database = getServletContext().getInitParameter("xapi.db.database");
String user = getServletContext().ge... | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String host = getServletContext().getInitParameter("xapi.db.host");
String database = getServletContext().getInitParameter("xapi.db.database");
String user = getServletContext().ge... |
diff --git a/luni/src/main/java/java/lang/ref/FinalizerReference.java b/luni/src/main/java/java/lang/ref/FinalizerReference.java
index a3f90248d..2d5cef20b 100644
--- a/luni/src/main/java/java/lang/ref/FinalizerReference.java
+++ b/luni/src/main/java/java/lang/ref/FinalizerReference.java
@@ -1,76 +1,76 @@
/*
* Copyr... | true | true | public static void remove(FinalizerReference reference) {
synchronized (FinalizerReference.class) {
FinalizerReference next = reference.next;
FinalizerReference prev = reference.prev;
reference.next = null;
reference.prev = null;
if (prev != null) ... | public static void remove(FinalizerReference reference) {
synchronized (FinalizerReference.class) {
FinalizerReference next = reference.next;
FinalizerReference prev = reference.prev;
reference.next = null;
reference.prev = null;
if (prev != null) ... |
diff --git a/src/joshua/util/ExtractTopCand.java b/src/joshua/util/ExtractTopCand.java
index e4fb0f4e..a9b64999 100644
--- a/src/joshua/util/ExtractTopCand.java
+++ b/src/joshua/util/ExtractTopCand.java
@@ -1,187 +1,187 @@
/* This file is part of the Joshua Machine Translation System.
*
* Joshua is free software;... | true | true | public static void main(String[] args) {
String inFile = "-";
String outFile = "-";
if (args.length == 1) {
inFile = args[0];
} else if (args.length == 2) {
inFile = args[0];
outFile = args[1];
} else {
System.err.println("Usage: ExtractTopCand [nbestInputFile [1bestOutputFile]]\n (default ... | public static void main(String[] args) {
String inFile = "-";
String outFile = "-";
if (args.length == 1) {
inFile = args[0];
} else if (args.length == 2) {
inFile = args[0];
outFile = args[1];
} else {
System.err.println("Usage: ExtractTopCand [nbestInputFile [1bestOutputFile]]\n (default ... |
diff --git a/core/src/visad/trunk/Contour2D.java b/core/src/visad/trunk/Contour2D.java
index 177558a72..dd23241a8 100644
--- a/core/src/visad/trunk/Contour2D.java
+++ b/core/src/visad/trunk/Contour2D.java
@@ -1,4623 +1,4625 @@
//
// Contour2D.java
//
/*
VisAD system for interactive analysis and visualization of ... | false | true | public static void contour( float g[], int nr, int nc, float[] values,
float lowlimit, float highlimit, float base, boolean dash,
float vx1[][], float vy1[][], float[][] vz1, int maxv1, int[] numv1,
float vx2[][], float vy2[][], float[][] vz2, int maxv... | public static void contour( float g[], int nr, int nc, float[] values,
float lowlimit, float highlimit, float base, boolean dash,
float vx1[][], float vy1[][], float[][] vz1, int maxv1, int[] numv1,
float vx2[][], float vy2[][], float[][] vz2, int maxv... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugPreferencePage.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugPreferencePage.java
index 00d273eb6..bc9398553 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugPreferencePa... | true | true | protected Control createContents(Composite parent) {
//The main composite
Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 1, 1, 0, 0, GridData.FILL);
new PreferenceLinkArea(composite, SWT.NONE,
"org.eclipse.debug.ui.DebugPreferencePage", DebugUIMessages.JavaDebugPreferencePage_0, /... | protected Control createContents(Composite parent) {
//The main composite
Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 1, 1, 0, 0, GridData.FILL);
new PreferenceLinkArea(composite, SWT.NONE,
"org.eclipse.debug.ui.DebugPreferencePage", DebugUIMessages.JavaDebugPreferencePage_0, /... |
diff --git a/src/org/linphone/jlinphone/gui/LinphoneScreen.java b/src/org/linphone/jlinphone/gui/LinphoneScreen.java
index f51adea..9eb000a 100755
--- a/src/org/linphone/jlinphone/gui/LinphoneScreen.java
+++ b/src/org/linphone/jlinphone/gui/LinphoneScreen.java
@@ -1,395 +1,395 @@
/*
LinphoneScreen.java
Copyright (C)... | true | true | LinphoneScreen() {
LinphoneCoreFactory.setFactoryClassName("org.linphone.jlinphone.core.LinphoneFactoryImpl");
LinphoneCoreFactory.instance().setLogHandler(new LogHandler());
LinphoneCoreFactory.instance().setDebugMode(true);//debug mode until configuration is loaded
sLogger.warn(" Starting version "+Ap... | LinphoneScreen() {
LinphoneCoreFactory.setFactoryClassName("org.linphone.jlinphone.core.LinphoneFactoryImpl");
LinphoneCoreFactory.instance().setLogHandler(new LogHandler());
LinphoneCoreFactory.instance().setDebugMode(true);//debug mode until configuration is loaded
sLogger.warn(" Starting version "+Ap... |
diff --git a/src/org/liberty/android/fantastischmemo/ui/QACardActivity.java b/src/org/liberty/android/fantastischmemo/ui/QACardActivity.java
index 91479773..7d69c685 100644
--- a/src/org/liberty/android/fantastischmemo/ui/QACardActivity.java
+++ b/src/org/liberty/android/fantastischmemo/ui/QACardActivity.java
@@ -1,710... | false | true | protected void displayCard(boolean showAnswer) {
// First prepare the text to display
String questionTypeface = setting.getQuestionFont();
String answerTypeface = setting.getAnswerFont();
boolean enableThirdPartyArabic = option.getEnableArabicEngine();
Setting.Ali... | protected void displayCard(boolean showAnswer) {
// First prepare the text to display
String questionTypeface = setting.getQuestionFont();
String answerTypeface = setting.getAnswerFont();
boolean enableThirdPartyArabic = option.getEnableArabicEngine();
Setting.Ali... |
diff --git a/org.eclipse.scout.rt.ui.rap.mobile/src/org/eclipse/scout/rt/ui/rap/mobile/form/fields/groupbox/MobileGroupBoxFieldFactory.java b/org.eclipse.scout.rt.ui.rap.mobile/src/org/eclipse/scout/rt/ui/rap/mobile/form/fields/groupbox/MobileGroupBoxFieldFactory.java
index 005d56d7aa..87a4909a28 100644
--- a/org.eclip... | true | true | public IRwtScoutFormField<?> createUiFormField(Composite parent, IFormField model, IRwtEnvironment uiEnvironment) {
IRwtScoutGroupBox field;
if (DeviceUtility.isMobileDevice()) {
field = new RwtScoutMobileGroupBox();
}
else {
field = new RwtScoutGroupBox();
}
IGroupBox groupBox =... | public IRwtScoutFormField<?> createUiFormField(Composite parent, IFormField model, IRwtEnvironment uiEnvironment) {
IRwtScoutGroupBox field;
if (DeviceUtility.isMobileOrTabletDevice()) {
field = new RwtScoutMobileGroupBox();
}
else {
field = new RwtScoutGroupBox();
}
IGroupBox gr... |
diff --git a/src/com/android/launcher2/DragLayer.java b/src/com/android/launcher2/DragLayer.java
index 2e72f622..eb539450 100644
--- a/src/com/android/launcher2/DragLayer.java
+++ b/src/com/android/launcher2/DragLayer.java
@@ -1,104 +1,106 @@
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed u... | false | true | public boolean onInterceptTouchEvent(MotionEvent ev) {
// If the current CellLayoutChildren has a resize frame, we need to detect if any touch
// event has occurred which doesn't result in resizing a widget. In this case, we
// dismiss any visible resize frames.
final Workspace w = (... | public boolean onInterceptTouchEvent(MotionEvent ev) {
// If the current CellLayoutChildren has a resize frame, we need to detect if any touch
// event has occurred which doesn't result in resizing a widget. In this case, we
// dismiss any visible resize frames.
final Workspace w = (... |
diff --git a/src/techniques/StackingET.java b/src/techniques/StackingET.java
index d6e0c1c..585672a 100644
--- a/src/techniques/StackingET.java
+++ b/src/techniques/StackingET.java
@@ -1,61 +1,62 @@
package techniques;
import java.util.List;
import org.encog.ensemble.Ensemble.TrainingAborted;
import org.encog.e... | true | true | public void step(boolean verbose) throws TrainingAborted {
if (currentSizeIndex < sizes.size() -1) {
for (int i = sizes.get(currentSizeIndex++); i < sizes.get(currentSizeIndex); i++) {
ensemble.addNewMember();
ensemble.trainMember(i, trainToError, selectionError, selectionSet, verbose);
}
ensemble.r... | public void step(boolean verbose) throws TrainingAborted {
if (currentSizeIndex < sizes.size() -1) {
for (int i = sizes.get(currentSizeIndex++); i < sizes.get(currentSizeIndex); i++) {
ensemble.addNewMember();
ensemble.trainMember(i, trainToError, selectionError, selectionSet, verbose);
}
aggregator... |
diff --git a/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java b/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
index 08525d84..4cd9ddf2 100644
--- a/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
... | true | true | public static TokenStream getTokenStream(TermPositionVector tpv,
boolean tokenPositionsGuaranteedContiguous) {
if (!tokenPositionsGuaranteedContiguous && tpv.getTermPositions(0) != null) {
return new TokenStreamFromTermPositionVector(tpv);
}
// an object used to iterate across an array of tok... | public static TokenStream getTokenStream(TermPositionVector tpv,
boolean tokenPositionsGuaranteedContiguous) {
if (!tokenPositionsGuaranteedContiguous && tpv.getTermPositions(0) != null) {
return new TokenStreamFromTermPositionVector(tpv);
}
// an object used to iterate across an array of tok... |
diff --git a/nuxeo-birt-reporting/src/main/java/org/nuxeo/ecm/platform/reporting/engine/BirtFSDeployer.java b/nuxeo-birt-reporting/src/main/java/org/nuxeo/ecm/platform/reporting/engine/BirtFSDeployer.java
index cdc241e..4fbe90f 100644
--- a/nuxeo-birt-reporting/src/main/java/org/nuxeo/ecm/platform/reporting/engine/Birt... | true | true | protected void deployBirtPlatform() {
if (platformPath == null) {
File dataDir = Environment.getDefault().getData();
if (Framework.isTestModeSet()) {
// runtime path will be removed too soon.
String dirPath = new Path(System.getProperty("java.io.tmpdi... | protected void deployBirtPlatform() {
if (platformPath == null) {
File dataDir = Environment.getDefault().getData();
if (Framework.isTestModeSet()) {
// runtime path will be removed too soon.
String jarDestination = System.getProperty("java.io.tmpdir"... |
diff --git a/stax-mate/src/test/java/com/cedarsoft/serialization/stax/SerializingStrategySupportTest.java b/stax-mate/src/test/java/com/cedarsoft/serialization/stax/SerializingStrategySupportTest.java
index f34767e3..3272e68a 100644
--- a/stax-mate/src/test/java/com/cedarsoft/serialization/stax/SerializingStrategySuppo... | true | true | public void testGenerics() {
SerializingStrategySupport<String, MyStrategy> support = new SerializingStrategySupport<String, MyStrategy>( Arrays.asList( new MyStrategy() ) );
SerializingStrategySupport<String, StaxMateSerializingStrategy<String>> support2 = new SerializingStrategySupport<String, StaxMateSeria... | public void testGenerics() {
SerializingStrategySupport<String, MyStrategy> support = new SerializingStrategySupport<String, MyStrategy>( Arrays.asList( new MyStrategy() ) );
SerializingStrategySupport<String, StaxMateSerializingStrategy<String>> support2 = new SerializingStrategySupport<String, StaxMateSeria... |
diff --git a/src/com/cyanogenmod/cmparts/activities/InputActivity.java b/src/com/cyanogenmod/cmparts/activities/InputActivity.java
index b66dc35..066f4e6 100644
--- a/src/com/cyanogenmod/cmparts/activities/InputActivity.java
+++ b/src/com/cyanogenmod/cmparts/activities/InputActivity.java
@@ -1,222 +1,216 @@
package co... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle(R.string.input_settings_title_subhead);
addPreferencesFromResource(R.xml.input_settings);
PreferenceScreen prefSet = getPreferenceScreen();
/* Trackball Wake */
mTrackbal... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle(R.string.input_settings_title_subhead);
addPreferencesFromResource(R.xml.input_settings);
PreferenceScreen prefSet = getPreferenceScreen();
/* Trackball Wake */
mTrackbal... |
diff --git a/org.facttype.diagram/src/org/facttype/formatting/DiagramFormatter.java b/org.facttype.diagram/src/org/facttype/formatting/DiagramFormatter.java
index bb4697e..14a7842 100644
--- a/org.facttype.diagram/src/org/facttype/formatting/DiagramFormatter.java
+++ b/org.facttype.diagram/src/org/facttype/formatting/D... | false | true | protected void configureFormatting(FormattingConfig c) {
DiagramGrammarAccess f = (DiagramGrammarAccess) getGrammarAccess();
// Allow a width of 120.
c.setAutoLinewrap(120);
// Find common keywords and specify formatting for them.
for (Pair<Keyword, Keyword> pair : f.findKeywo... | protected void configureFormatting(FormattingConfig c) {
DiagramGrammarAccess f = (DiagramGrammarAccess) getGrammarAccess();
// Allow a width of 120.
c.setAutoLinewrap(120);
// Find common keywords and specify formatting for them.
for (Pair<Keyword, Keyword> pair : f.findKeywo... |
diff --git a/src/org/broad/igv/sam/CachingQueryReader.java b/src/org/broad/igv/sam/CachingQueryReader.java
index fc107993..fd3c2468 100755
--- a/src/org/broad/igv/sam/CachingQueryReader.java
+++ b/src/org/broad/igv/sam/CachingQueryReader.java
@@ -1,802 +1,803 @@
/*
* Copyright (c) 2007-2012 The Broad Institute, Inc.... | false | true | private boolean loadTiles(String chr, List<AlignmentTile> tiles, Map<String, PEStats> peStats) {
//assert (tiles.size() > 0);
if (corruptIndex) {
return false;
}
boolean filterFailedReads = PreferenceManager.getInstance().getAsBoolean(PreferenceManager.SAM_FILTER_FAILED... | private boolean loadTiles(String chr, List<AlignmentTile> tiles, Map<String, PEStats> peStats) {
//assert (tiles.size() > 0);
if (corruptIndex) {
return false;
}
boolean filterFailedReads = PreferenceManager.getInstance().getAsBoolean(PreferenceManager.SAM_FILTER_FAILED... |
diff --git a/src/spullen/com/invaders/entity/mob/Enemy.java b/src/spullen/com/invaders/entity/mob/Enemy.java
index 6e8072e..48595fb 100644
--- a/src/spullen/com/invaders/entity/mob/Enemy.java
+++ b/src/spullen/com/invaders/entity/mob/Enemy.java
@@ -1,48 +1,48 @@
package spullen.com.invaders.entity.mob;
import spull... | true | true | protected void checkForCollision() {
int lowerLeftX = x;
int lowerRightX = x + sprite.WIDTH;
int lowerY = y + sprite.HEIGHT;
for(PlayerMissile missile : Game.playerMissiles) {
if(missile.y < lowerY && missile.x > lowerLeftX && missile.x < lowerRightX) {
System.out.println("X: " + x + ", Y: " + y);
... | protected void checkForCollision() {
int lowerLeftX = x;
int lowerRightX = x + sprite.WIDTH;
int lowerY = y + sprite.HEIGHT;
for(PlayerMissile missile : Game.playerMissiles) {
if(missile.y < lowerY && missile.x >= lowerLeftX && missile.x <= lowerRightX) {
System.out.println("X: " + x + ", Y: " + y);... |
diff --git a/bundles/ParserCore/src/main/java/org/paxle/parser/impl/ParserWorker.java b/bundles/ParserCore/src/main/java/org/paxle/parser/impl/ParserWorker.java
index fbeaff7f..0841f1de 100644
--- a/bundles/ParserCore/src/main/java/org/paxle/parser/impl/ParserWorker.java
+++ b/bundles/ParserCore/src/main/java/org/paxle... | false | true | protected void execute(ICommand command) {
final long start = System.currentTimeMillis();
IParserDocument parserDoc = null;
try {
/* ================================================================
* Input Parameter Check
* ================================================================ */
Str... | protected void execute(ICommand command) {
final long start = System.currentTimeMillis();
IParserDocument parserDoc = null;
try {
/* ================================================================
* Input Parameter Check
* ================================================================ */
Str... |
diff --git a/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TextViewDetector.java b/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TextViewDetector.java
index be57a2a..e14d13c 100644
--- a/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TextViewDetector.java
+++ b... | true | true | public void visitElement(@NonNull XmlContext context, @NonNull Element element) {
if (element.getTagName().equals(TEXT_VIEW)) {
if (!element.hasAttributeNS(ANDROID_URI, ATTR_TEXT)
&& element.hasAttributeNS(ANDROID_URI, ATTR_ID)
&& !element.hasAttributeNS(A... | public void visitElement(@NonNull XmlContext context, @NonNull Element element) {
if (element.getTagName().equals(TEXT_VIEW)) {
if (!element.hasAttributeNS(ANDROID_URI, ATTR_TEXT)
&& element.hasAttributeNS(ANDROID_URI, ATTR_ID)
&& !element.hasAttributeNS(A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.