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/ini/trakem2/persistence/ProjectTiler.java b/ini/trakem2/persistence/ProjectTiler.java
index 2832136d..67e06503 100644
--- a/ini/trakem2/persistence/ProjectTiler.java
+++ b/ini/trakem2/persistence/ProjectTiler.java
@@ -1,188 +1,188 @@
package ini.trakem2.persistence;
import ij.ImagePlus;
import ij.io.F... | false | true | static final public Project flatten(
final Project srcProject,
final String targetDirectory,
final int tileSide,
final int exportImageType,
final boolean onlyVisibleImages,
final int nExportThreads,
final boolean createMipMaps)
throws Exception {
// Validate exportImageType
switch (export... | static final public Project flatten(
final Project srcProject,
final String targetDirectory,
final int tileSide,
final int exportImageType,
final boolean onlyVisibleImages,
final int nExportThreads,
final boolean createMipMaps)
throws Exception {
// Validate exportImageType
switch (export... |
diff --git a/src/main/java/org/apache/log4j/xml/Log4jEntityResolver.java b/src/main/java/org/apache/log4j/xml/Log4jEntityResolver.java
index 8ff2d610..03a801f8 100644
--- a/src/main/java/org/apache/log4j/xml/Log4jEntityResolver.java
+++ b/src/main/java/org/apache/log4j/xml/Log4jEntityResolver.java
@@ -1,50 +1,50 @@
/*... | true | true | public InputSource resolveEntity (String publicId, String systemId) {
if (systemId.endsWith("log4j.dtd")) {
Class clazz = getClass();
InputStream in = clazz.getResourceAsStream("/org/apache/log4j/xml/log4j.dtd");
if (in == null) {
LogLog.error("Could not find [log4j.dtd]. Used [" + clazz.ge... | public InputSource resolveEntity (String publicId, String systemId) {
if (systemId.endsWith("log4j.dtd")) {
Class clazz = getClass();
InputStream in = clazz.getResourceAsStream("/org/apache/log4j/xml/log4j.dtd");
if (in == null) {
LogLog.warn("Could not find [log4j.dtd] using [" + clazz.get... |
diff --git a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java b/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
index 9a33898..87e89fe 100644
--- a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProv... | true | true | protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {
String password = null;
if(authentication!=null)
password = (String) authentication.getCredentials();
// bind by using the specified username/... | protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {
String password = null;
if(authentication!=null)
password = (String) authentication.getCredentials();
// bind by using the specified username/... |
diff --git a/src/com/redhat/ceylon/ant/CeylonAntTask.java b/src/com/redhat/ceylon/ant/CeylonAntTask.java
index 99dbe19cb..6655bc1ad 100644
--- a/src/com/redhat/ceylon/ant/CeylonAntTask.java
+++ b/src/com/redhat/ceylon/ant/CeylonAntTask.java
@@ -1,243 +1,243 @@
/*
* Copyright Red Hat Inc. and/or its affiliates and ot... | true | true | protected void executeCommandline(Commandline cmd) {
try {
// Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));
// exe.setAntRun(getProject());
// exe.setWorkingDirectory(getProject().getBaseDir());
// exe.setCommandline(cm... | protected void executeCommandline(Commandline cmd) {
try {
// Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));
// exe.setAntRun(getProject());
// exe.setWorkingDirectory(getProject().getBaseDir());
// exe.setCommandline(cm... |
diff --git a/src/com/djdch/bukkit/onehundredgenerator/mc100/WorldGenTaiga1.java b/src/com/djdch/bukkit/onehundredgenerator/mc100/WorldGenTaiga1.java
index 47a5ddb..010f839 100644
--- a/src/com/djdch/bukkit/onehundredgenerator/mc100/WorldGenTaiga1.java
+++ b/src/com/djdch/bukkit/onehundredgenerator/mc100/WorldGenTaiga1.... | false | true | public boolean generate(BlockChangeDelegate world, Random random, int i, int j, int k) {
int l = random.nextInt(5) + 7;
int i1 = l - random.nextInt(2) - 3;
int j1 = l - i1;
int k1 = 1 + random.nextInt(j1 + 1);
boolean flag = true;
if ((j >= 1) && (j + l + 1 <= world.... | public boolean generate(BlockChangeDelegate world, Random random, int i, int j, int k) {
int l = random.nextInt(5) + 7;
int i1 = l - random.nextInt(2) - 3;
int j1 = l - i1;
int k1 = 1 + random.nextInt(j1 + 1);
boolean flag = true;
int l1;
if ((j >= 1) && (j +... |
diff --git a/src/java/org/infoglue/cms/applications/contenttool/actions/ContentCategoryAction.java b/src/java/org/infoglue/cms/applications/contenttool/actions/ContentCategoryAction.java
index cc727327e..6b259a11f 100755
--- a/src/java/org/infoglue/cms/applications/contenttool/actions/ContentCategoryAction.java
+++ b/s... | true | true | public String doAdd() throws SystemException
{
setModel(controller.save(getContentCategory()));
return SUCCESS;
}
| public String doAdd() throws SystemException
{
System.out.println("Attribute:" + getContentCategory().getAttributeName());
setModel(controller.save(getContentCategory()));
return SUCCESS;
}
|
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.local.core/src/org/eclipse/linuxtools/systemtap/local/core/SystemTapErrorHandler.java b/systemtap/org.eclipse.linuxtools.systemtap.local.core/src/org/eclipse/linuxtools/systemtap/local/core/SystemTapErrorHandler.java
index 842f231f8..52657ad82 100644
--- a/systemt... | false | true | public void finishHandling(IProgressMonitor m, int numberOfErrors) {
if (!isErrorRecognized()) {
errorMessage+=Messages.getString("SystemTapErrorHandler.4") + //$NON-NLS-1$
Messages.getString("SystemTapErrorHandler.5"); //$NON-NLS-1$
}
writeToLog();
if (mismatchedProbePoints){
if (numberOfErro... | public void finishHandling(IProgressMonitor m, int numberOfErrors) {
if (!isErrorRecognized()) {
errorMessage+=Messages.getString("SystemTapErrorHandler.4") + //$NON-NLS-1$
Messages.getString("SystemTapErrorHandler.5"); //$NON-NLS-1$
}
writeToLog();
if (mismatchedProbePoints){
if (numberOfErro... |
diff --git a/src/com/ichi2/libanki/Models.java b/src/com/ichi2/libanki/Models.java
index 539f07c4..a59cc25c 100644
--- a/src/com/ichi2/libanki/Models.java
+++ b/src/com/ichi2/libanki/Models.java
@@ -1,1128 +1,1128 @@
/****************************************************************************************
* Copyrigh... | true | true | public void _transformFields(JSONObject m) { // Method fn) {
// model hasn't been added yet?
try {
if (m.getLong("id") == 0) {
return;
}
} catch (JSONException e) {
throw new RuntimeException(e);
}
// TODO
}
/**
* Templates
* ***************************************... | public void _transformFields(JSONObject m) { // Method fn) {
// model hasn't been added yet?
try {
if (m.getLong("id") == 0) {
return;
}
} catch (JSONException e) {
throw new RuntimeException(e);
}
// TODO
}
/**
* Templates
* ***************************************... |
diff --git a/src/main/java/hudson/scm/IntegrityCheckoutTask.java b/src/main/java/hudson/scm/IntegrityCheckoutTask.java
index a5b770d..0188cfa 100644
--- a/src/main/java/hudson/scm/IntegrityCheckoutTask.java
+++ b/src/main/java/hudson/scm/IntegrityCheckoutTask.java
@@ -1,312 +1,312 @@
package hudson.scm;
import java... | true | true | public Boolean invoke(File workspaceFile, VirtualChannel channel) throws IOException
{
// Figure out where we should be checking out this project
File checkOutDir = (null != alternateWorkspaceDir && alternateWorkspaceDir.length() > 0) ? new File(alternateWorkspaceDir) : workspaceFile;
// Convert the file ob... | public Boolean invoke(File workspaceFile, VirtualChannel channel) throws IOException
{
// Figure out where we should be checking out this project
File checkOutDir = (null != alternateWorkspaceDir && alternateWorkspaceDir.length() > 0) ? new File(alternateWorkspaceDir) : workspaceFile;
// Convert the file ob... |
diff --git a/src/org/apache/xerces/dom/DeferredAttrImpl.java b/src/org/apache/xerces/dom/DeferredAttrImpl.java
index b9a03bf8..d7f8fb35 100644
--- a/src/org/apache/xerces/dom/DeferredAttrImpl.java
+++ b/src/org/apache/xerces/dom/DeferredAttrImpl.java
@@ -1,180 +1,180 @@
/*
* The Apache Software License, Version 1.1
... | true | true | protected void synchronizeData() {
// no need to sync in the future
needsSyncData(false);
// fluff data
DeferredDocumentImpl ownerDocument =
(DeferredDocumentImpl) ownerDocument();
name = ownerDocument.getNodeName(fNodeIndex);
int extra = ownerDocument.g... | protected void synchronizeData() {
// no need to sync in the future
needsSyncData(false);
// fluff data
DeferredDocumentImpl ownerDocument =
(DeferredDocumentImpl) ownerDocument();
name = ownerDocument.getNodeName(fNodeIndex);
int extra = ownerDocument.g... |
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index ff2653bae..5220f203e 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -1,2971 +1,2971 @@
package cgeo.geocaching;
import cgeo.geocaching.enumerations.CacheSize;
import cgeo.... | true | true | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.i("Upgrade database from ver. " + oldVersion + " to ver. " + newVersion + ": start");
try {
if (db.isReadOnly()) {
return;
}
db.beginTransa... | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.i("Upgrade database from ver. " + oldVersion + " to ver. " + newVersion + ": start");
try {
if (db.isReadOnly()) {
return;
}
db.beginTransa... |
diff --git a/particlephysics/src/minecraft/pixlepix/particlephysics/common/entity/LeafParticle.java b/particlephysics/src/minecraft/pixlepix/particlephysics/common/entity/LeafParticle.java
index 4bbe163..6236239 100644
--- a/particlephysics/src/minecraft/pixlepix/particlephysics/common/entity/LeafParticle.java
+++ b/pa... | true | true | public void onCollideWithParticle(BaseParticle particle) {
if(!(particle instanceof LeafParticle)){
particle.potential*=0.5;
particle.effect=2;
}
}
| public void onCollideWithParticle(BaseParticle particle) {
if((!(particle instanceof LeafParticle))&&particle.effect!=2){
particle.potential*=0.5;
particle.effect=2;
}
}
|
diff --git a/netbout/netbout-hub/src/test/java/com/netbout/hub/predicates/xml/DomTextTest.java b/netbout/netbout-hub/src/test/java/com/netbout/hub/predicates/xml/DomTextTest.java
index 413d2b4ac..a12335bce 100644
--- a/netbout/netbout-hub/src/test/java/com/netbout/hub/predicates/xml/DomTextTest.java
+++ b/netbout/netbo... | false | true | public void prepareXsd() throws Exception {
this.xsd = new ContainerMocker()
.expectMethod(Matchers.equalTo("GET"))
.returnBody(
// @checkstyle StringLiteralsConcatenation (3 lines)
"<schema xmlns='http://www.w3.org/2001/XMLSchema'"
+ "... | public void prepareXsd() throws Exception {
final String schema =
// @checkstyle StringLiteralsConcatenation (3 lines)
"<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'"
+ " xmlns:p='foo' targetNamespace='foo'"
+ " elementFormDefault='qualified'>"
... |
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/admin/ShowBackgroundThreadsController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/admin/ShowBackgroundThreadsController.java
index f8241ca6b..0dacad944 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/admin/ShowBack... | true | true | protected ResponseValues processRequest(VitroRequest vreq) throws Exception {
SortedMap<String, ThreadInfo> threadMap = new TreeMap<String, ThreadInfo>();
for (VitroBackgroundThread thread : VitroBackgroundThread
.getLivingThreads()) {
ThreadInfo threadInfo = getThreadInfo(thread);
threadMap.put(thread... | protected ResponseValues processRequest(VitroRequest vreq) throws ExceptionXX {
SortedMap<String, ThreadInfo> threadMap = new TreeMap<String, ThreadInfo>();
for (VitroBackgroundThread thread : VitroBackgroundThread
.getLivingThreads()) {
ThreadInfo threadInfo = getThreadInfo(thread);
threadMap.put(thre... |
diff --git a/slickij-data/src/main/java/org/tcrun/slickij/data/TestplanResourceImpl.java b/slickij-data/src/main/java/org/tcrun/slickij/data/TestplanResourceImpl.java
index 2241931..4d16e6e 100644
--- a/slickij-data/src/main/java/org/tcrun/slickij/data/TestplanResourceImpl.java
+++ b/slickij-data/src/main/java/org/tcru... | false | true | public Testrun runTestPlan(String testplanId, TestplanRunParameters parameters)
{
Testplan plan = getTestPlan(testplanId);
List<Testcase> testcases = getTestcases(plan);
Date date = new Date();
Testrun run = new Testrun();
run.setProject(plan.getProject());
run.setTestplanId(plan.getObjectId());
run.set... | public Testrun runTestPlan(String testplanId, TestplanRunParameters parameters)
{
Testplan plan = getTestPlan(testplanId);
List<Testcase> testcases = getTestcases(plan);
Date date = new Date();
Testrun run = new Testrun();
run.setProject(plan.getProject());
run.setTestplanId(plan.getObjectId());
run.set... |
diff --git a/org.springsource.loaded/src/main/java/org/springsource/loaded/NameRegistry.java b/org.springsource.loaded/src/main/java/org/springsource/loaded/NameRegistry.java
index 749484d..4976634 100644
--- a/org.springsource.loaded/src/main/java/org/springsource/loaded/NameRegistry.java
+++ b/org.springsource.loaded... | true | true | private synchronized static int allocateId(String slashedClassName) {
// Check again, in case two threads passed the -1 check in the getIdOrAllocateFor method
int id = getIdFor(slashedClassName);
if (id == -1) {
id = nextTypeId++;
if (id >= allocatedIds.length) {
size = size + 10;
// need to make m... | private synchronized static int allocateId(String slashedClassName) {
// Check again, in case two threads passed the -1 check in the getIdOrAllocateFor method
int id = getIdFor(slashedClassName);
if (id == -1) {
id = nextTypeId++;
if (nextTypeId >= allocatedIds.length) {
size = size + 10;
// need t... |
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
index 2465e5be..e2ad3583 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
+++... | false | true | protected Control createDialogArea(Composite parent) {
Composite outer = (Composite) super.createDialogArea(parent);
Composite top = new Composite(outer, SWT.NONE);
GridLayoutFactory.swtDefaults().numColumns(2).applyTo(top);
cssSearchBox = new Text(top, SWT.BORDER | SWT.SEARCH
| SWT.ICON_SEARCH | SWT.ICON... | protected Control createDialogArea(Composite parent) {
Composite outer = (Composite) super.createDialogArea(parent);
Composite top = new Composite(outer, SWT.NONE);
GridLayoutFactory.swtDefaults().numColumns(2).applyTo(top);
cssSearchBox = new Text(top, SWT.BORDER | SWT.SEARCH
| SWT.ICON_SEARCH | SWT.ICON... |
diff --git a/src/gui/MainFrame.java b/src/gui/MainFrame.java
index c1c9184..387a5a7 100644
--- a/src/gui/MainFrame.java
+++ b/src/gui/MainFrame.java
@@ -1,147 +1,147 @@
package gui;
import icons.IconManager;
import javax.swing.*;
import wombat.Wombat;
import util.KawaWrap;
import util.OutputIntercept;
im... | false | true | private MainFrame() {
// Set frame options.
setTitle("Wombat - Build " + Wombat.VERSION);
setSize(Options.DisplayWidth, Options.DisplayHeight);
setLocation(Options.DisplayLeft, Options.DisplayTop);
setLayout(new BorderLayout(5, 5));
try {
setIconImage(IconMan... | private MainFrame() {
// Set frame options.
setTitle("Wombat - Build " + Wombat.VERSION);
setSize(Options.DisplayWidth, Options.DisplayHeight);
setLocation(Options.DisplayLeft, Options.DisplayTop);
setLayout(new BorderLayout(5, 5));
setDefaultCloseOperation(EXIT_ON_CL... |
diff --git a/src/joshua/decoder/DecoderThread.java b/src/joshua/decoder/DecoderThread.java
index 1324e6da..b174175e 100644
--- a/src/joshua/decoder/DecoderThread.java
+++ b/src/joshua/decoder/DecoderThread.java
@@ -1,490 +1,490 @@
/* This file is part of the Joshua Machine Translation System.
*
* Joshua is free so... | true | true | private void translate(Segment segment, String oracleSentence)
throws IOException {
long startTime = 0;
if (logger.isLoggable(Level.FINER))
startTime = System.currentTimeMillis();
if (logger.isLoggable(Level.FINE))
logger.fine("now translating\n" + segment.sentence());
Chart chart;
{
// TODO... | private void translate(Segment segment, String oracleSentence)
throws IOException {
long startTime = 0;
if (logger.isLoggable(Level.FINER))
startTime = System.currentTimeMillis();
if (logger.isLoggable(Level.FINE))
logger.fine("now translating\n" + segment.sentence());
Chart chart;
{
// TODO... |
diff --git a/src/com/jidesoft/swing/Searchable.java b/src/com/jidesoft/swing/Searchable.java
index d41722f0..a91b55dd 100644
--- a/src/com/jidesoft/swing/Searchable.java
+++ b/src/com/jidesoft/swing/Searchable.java
@@ -1,1676 +1,1678 @@
/*
* @(#)${NAME}
*
* Copyright 2002 - 2004 JIDE Software Inc. All rights res... | true | true | private void initComponents(String text) {
final Color foreground = Searchable.this.getForeground();
final Color background = Searchable.this.getBackground();
// setup the label
_label = new JLabel(getSearchLabel());
_label.setForeground(foreground);
... | private void initComponents(String text) {
final Color foreground = Searchable.this.getForeground();
final Color background = Searchable.this.getBackground();
// setup the label
_label = new JLabel(getSearchLabel());
_label.setForeground(foreground);
... |
diff --git a/Tendu/src/it/chalmers/tendu/Tendu.java b/Tendu/src/it/chalmers/tendu/Tendu.java
index 71f6f4e..8e2af02 100644
--- a/Tendu/src/it/chalmers/tendu/Tendu.java
+++ b/Tendu/src/it/chalmers/tendu/Tendu.java
@@ -1,187 +1,186 @@
//***Main entry of the libgdx-project****
package it.chalmers.tendu;
import it.cha... | true | true | public void onBroadcast(EventMessage message) {
if(message.tag == C.Tag.TO_SELF){
if (message.msg == C.Msg.CREATE_SCREEN) {
MiniGame game = (MiniGame) message.content;
Screen screen = MiniGameScreenFactory.createMiniGameScreen(this,
game);
setScreen(screen);
EventMessage msg = new EventMes... | public void onBroadcast(EventMessage message) {
if(message.tag == C.Tag.TO_SELF){
if (message.msg == C.Msg.CREATE_SCREEN) {
MiniGame game = (MiniGame) message.content;
Screen screen = MiniGameScreenFactory.createMiniGameScreen(this,
game);
setScreen(screen);
EventMessage msg = new EventMes... |
diff --git a/src/com/phonegap/api/impl/FileCommand.java b/src/com/phonegap/api/impl/FileCommand.java
index d4be7da..6bd1c17 100644
--- a/src/com/phonegap/api/impl/FileCommand.java
+++ b/src/com/phonegap/api/impl/FileCommand.java
@@ -1,52 +1,52 @@
package com.phonegap.api.impl;
import com.phonegap.PhoneGap;
import ... | true | true | public String execute(String instruction) {
switch (getCommand(instruction)) {
case READ_COMMAND:
try {
String filePath = instruction.substring(CODE.length() + 6);
return ";if (navigator.file.read_success != null) { navigator.file.read_success("+escapeString(filePath)+"); };";
} catch (Exceptio... | public String execute(String instruction) {
switch (getCommand(instruction)) {
case READ_COMMAND:
try {
String filePath = instruction.substring(CODE.length() + 6);
return ";if (navigator.file.read_success != null) { navigator.file.read_success('"+escapeString(filePath)+"'); };";
} catch (Except... |
diff --git a/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/resources/ResourceChangeMonitor.java b/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/resources/ResourceChangeMonitor.java
index 93305bd41..8d5bd21ca 100644
--- a/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/resou... | true | true | public void resourceChanged(IResourceChangeEvent event) {
if (!enabled || !ContextCorePlugin.getContextManager().isContextActive()) {
return;
}
if (event.getType() != IResourceChangeEvent.POST_CHANGE) {
return;
}
final Set<IResource> addedResources = new HashSet<IResource>();
final Set<IResource> ch... | public void resourceChanged(IResourceChangeEvent event) {
if (!enabled || !ContextCorePlugin.getContextManager().isContextActive()) {
return;
}
if (event.getType() != IResourceChangeEvent.POST_CHANGE) {
return;
}
final Set<IResource> addedResources = new HashSet<IResource>();
final Set<IResource> ch... |
diff --git a/src/com/kkbox/toolkit/utils/KKEventQueue.java b/src/com/kkbox/toolkit/utils/KKEventQueue.java
index 36693c3..1e9b19f 100644
--- a/src/com/kkbox/toolkit/utils/KKEventQueue.java
+++ b/src/com/kkbox/toolkit/utils/KKEventQueue.java
@@ -1,146 +1,147 @@
/* Copyright (C) 2013 KKBOX Inc.
*
* Licensed under th... | false | true | private void run() {
if (queue.size() == 0) {
isRunning = false;
threadUnlockFlag = false;
threadUnlockId.clear();
if (listener != null) {
listener.onQueueCompleted();
}
return;
}
isRunning = true;
final KKEvent event = queue.get(0);
if (event.threadType == ThreadType.NEW_THREAD) {
n... | private void run() {
if (queue.size() > 0) {
isRunning = true;
} else {
isRunning = false;
threadUnlockFlag = false;
threadUnlockId.clear();
if (listener != null) {
listener.onQueueCompleted();
}
return;
}
final KKEvent event = queue.get(0);
if (event.threadType == ThreadType.NEW_THR... |
diff --git a/src/main/java/org/generationcp/ibpworkbench/actions/LaunchWorkbenchToolAction.java b/src/main/java/org/generationcp/ibpworkbench/actions/LaunchWorkbenchToolAction.java
index d82b7df..34ca1a2 100644
--- a/src/main/java/org/generationcp/ibpworkbench/actions/LaunchWorkbenchToolAction.java
+++ b/src/main/java/... | true | true | public void buttonClick(ClickEvent event) {
Window window = event.getComponent().getWindow();
WorkbenchDataManager workbenchDataManager = dataSourceConfig.getManagerFactory().getWorkbenchDataManager();
Tool tool = workbenchDataManager.getToolWithName(toolId.getToolId());
if ... | public void buttonClick(ClickEvent event) {
Window window = event.getComponent().getWindow();
WorkbenchDataManager workbenchDataManager = dataSourceConfig.getManagerFactory().getWorkbenchDataManager();
Tool tool = workbenchDataManager.getToolWithName(toolId.getToolId());
if ... |
diff --git a/src/com/android/exchange/adapter/ProvisionParser.java b/src/com/android/exchange/adapter/ProvisionParser.java
index 057ffaff..5ba43e4b 100644
--- a/src/com/android/exchange/adapter/ProvisionParser.java
+++ b/src/com/android/exchange/adapter/ProvisionParser.java
@@ -1,450 +1,446 @@
/* Copyright (C) 2010 Th... | 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/app/controllers/Application.java b/app/controllers/Application.java
index 4bd6020..8792e37 100644
--- a/app/controllers/Application.java
+++ b/app/controllers/Application.java
@@ -1,147 +1,147 @@
package controllers;
import controllers.securesocial.*;
import models.*;
import play.i18n.*;
import play... | true | true | public static void patActor(int actorId, int rewardId, String description) {
try {
Actor a = createActors().get(actorId);
Reward r = rewards.get(rewardId);
if(a == null || r == null) {
flash.error("Palun täida kõik väljad");
} else {
try {
ActorPatting.register(ge... | public static void patActor(int actorId, int rewardId, String description) {
try {
Actor a = createActors().get(actorId);
Reward r = rewards.get(rewardId);
if(a == null || r == null) {
flash.error("Palun täida kõik väljad");
} else {
try {
ActorPatting.register(ge... |
diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java
index 60e5931fd..d88c2f1e1 100644
--- a/src/com/android/settings/DisplaySettings.java
+++ b/src/com/android/settings/DisplaySettings.java
@@ -1,437 +1,437 @@
/*
* Copyright (C) 2010 The Android Open Source Proj... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ContentResolver resolver = getActivity().getContentResolver();
addPreferencesFromResource(R.xml.display_settings);
mDisplayRotationPreference = (PreferenceScreen) findPreference(KEY_DISPLAY_ROTATI... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ContentResolver resolver = getActivity().getContentResolver();
addPreferencesFromResource(R.xml.display_settings);
mDisplayRotationPreference = (PreferenceScreen) findPreference(KEY_DISPLAY_ROTATI... |
diff --git a/src/main/java/net/LoadingChunks/SyncingFeeling/util/SQLWrapper.java b/src/main/java/net/LoadingChunks/SyncingFeeling/util/SQLWrapper.java
index db33df2..d56f150 100644
--- a/src/main/java/net/LoadingChunks/SyncingFeeling/util/SQLWrapper.java
+++ b/src/main/java/net/LoadingChunks/SyncingFeeling/util/SQLWrap... | true | true | static public void commitSlots(Player p, SerializableInventory inv) {
try {
reconnect();
String sqlstring = "REPLACE INTO `inv_slots` (`server`,`player`,`json`,`slot`) VALUES ";
if(inv.getSlots().size() == 0)
return;
for(int i = 0; i < inv.getSlots().size(); i++) {
sqlstring = sqlstring.c... | static public void commitSlots(Player p, SerializableInventory inv) {
try {
reconnect();
String sqlstring = "REPLACE INTO `inv_slots` (`server`,`player`,`json`,`slot`) VALUES ";
if(inv.getSlots().size() == 0)
return;
for(int i = 0; i < inv.getSlots().size(); i++) {
sqlstring = sqlstring.c... |
diff --git a/src/de/azapps/mirakel/sync/taskwarrior/TaskWarriorSync.java b/src/de/azapps/mirakel/sync/taskwarrior/TaskWarriorSync.java
index 42ce6259..6d0849f2 100644
--- a/src/de/azapps/mirakel/sync/taskwarrior/TaskWarriorSync.java
+++ b/src/de/azapps/mirakel/sync/taskwarrior/TaskWarriorSync.java
@@ -1,547 +1,547 @@
... | true | true | private TW_ERRORS doSync(Account a, Msg sync) {
AccountMirakel accountMirakel = AccountMirakel.get(this.account);
longInfo(sync.getPayload());
TLSClient client = new TLSClient();
try {
client.init(root, user_ca, user_key);
} catch (ParseException e) {
Log.e(TAG,"cannot open certificate");
return TW... | private TW_ERRORS doSync(Account a, Msg sync) {
AccountMirakel accountMirakel = AccountMirakel.get(this.account);
longInfo(sync.getPayload());
TLSClient client = new TLSClient();
try {
client.init(root, user_ca, user_key);
} catch (ParseException e) {
Log.e(TAG,"cannot open certificate");
return TW... |
diff --git a/orig/trunk/vnc_javasrc/VncViewer.java b/orig/trunk/vnc_javasrc/VncViewer.java
index 885aed02..6ae877ba 100644
--- a/orig/trunk/vnc_javasrc/VncViewer.java
+++ b/orig/trunk/vnc_javasrc/VncViewer.java
@@ -1,831 +1,832 @@
//
// Copyright (C) 2001-2003 HorizonLive.com, Inc. All Rights Reserved.
// Copyrig... | true | true | public void run() {
gridbag = new GridBagLayout();
vncContainer.setLayout(gridbag);
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridwidth = GridBagConstraints.REMAINDER;
gbc.anchor = GridBagConstraints.NORTHWEST;
if (showControls) {
buttonPanel = new ButtonPanel(this);
... | public void run() {
gridbag = new GridBagLayout();
vncContainer.setLayout(gridbag);
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridwidth = GridBagConstraints.REMAINDER;
gbc.anchor = GridBagConstraints.NORTHWEST;
if (showControls) {
buttonPanel = new ButtonPanel(this);
... |
diff --git a/src/com/fsck/k9/activity/setup/AccountSettings.java b/src/com/fsck/k9/activity/setup/AccountSettings.java
index b39f9bab9..f171a8bc5 100644
--- a/src/com/fsck/k9/activity/setup/AccountSettings.java
+++ b/src/com/fsck/k9/activity/setup/AccountSettings.java
@@ -1,1086 +1,1087 @@
package com.fsck.k9.activi... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
try {
final Store store = mAccount.getRemoteStore()... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
try {
final Store store = mAccount.getRemoteStore()... |
diff --git a/jsglr-layout/src/org/spoofax/jsglr_layout/client/indentation/LayoutFilter.java b/jsglr-layout/src/org/spoofax/jsglr_layout/client/indentation/LayoutFilter.java
index 330d4aa..d6424b1 100644
--- a/jsglr-layout/src/org/spoofax/jsglr_layout/client/indentation/LayoutFilter.java
+++ b/jsglr-layout/src/org/spoof... | true | true | private Object evalConstraint(IStrategoTerm constraint, AbstractParseNode[] kids, Map<String, Object> env) {
switch (constraint.getTermType()) {
case IStrategoTerm.INT: {
int i = Term.asJavaInt(constraint);
return getSubtree(i, kids);
}
case IStrategoTerm.STRING:
String v = Te... | private Object evalConstraint(IStrategoTerm constraint, AbstractParseNode[] kids, Map<String, Object> env) {
switch (constraint.getTermType()) {
case IStrategoTerm.INT: {
int i = Term.asJavaInt(constraint);
return getSubtree(i, kids);
}
case IStrategoTerm.STRING:
String v = Te... |
diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java
index 893a7f745..21f7cc630 100644
--- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java
+++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java
@@ -1,5... | false | true | private void initComponents() {
timeGroup = new javax.swing.ButtonGroup();
servicesScrollPane = new javax.swing.JScrollPane();
servicesTable = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
advancedButton = new javax.swing.JButton();
jSeparator2 = new ... | private void initComponents() {
timeGroup = new javax.swing.ButtonGroup();
servicesScrollPane = new javax.swing.JScrollPane();
servicesTable = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
advancedButton = new javax.swing.JButton();
jSeparator2 = new ... |
diff --git a/src/net/progval/android/andquote/QuoteActivity.java b/src/net/progval/android/andquote/QuoteActivity.java
index d09d1c6..709db1d 100644
--- a/src/net/progval/android/andquote/QuoteActivity.java
+++ b/src/net/progval/android/andquote/QuoteActivity.java
@@ -1,141 +1,140 @@
package net.progval.android.andquo... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle extra = this.getIntent().getExtras();
QuoteActivity.settings = PreferenceManager.getDefaultSharedPreferences(this);
this.state = new SiteActivity.State();
this.state.site_id = extra.g... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle extra = this.getIntent().getExtras();
QuoteActivity.settings = PreferenceManager.getDefaultSharedPreferences(this);
this.state = new SiteActivity.State();
this.state.site_id = extra.g... |
diff --git a/grib/src/main/java/ucar/nc2/grib/GribConverterUtility.java b/grib/src/main/java/ucar/nc2/grib/GribConverterUtility.java
index 44fff72e8..3c025f9a4 100644
--- a/grib/src/main/java/ucar/nc2/grib/GribConverterUtility.java
+++ b/grib/src/main/java/ucar/nc2/grib/GribConverterUtility.java
@@ -1,78 +1,78 @@
pack... | true | true | public static void main(final String[] args) {
String usage = "usage: ucar.nc2.dataset.GribConverterUtility -grib1|-grib2 <fileIn> <oldGribName> [-matchNCEP]";
String grbFile = null; // declare a grbFile filename
String grbType = null; // declare a grbFile type - should be grib1 or... | public static void main(final String[] args) {
String usage = "usage: ucar.nc2.dataset.GribConverterUtility -grib1|-grib2 <fileIn> <oldGribName> [-matchNCEP]";
String grbFile = null; // declare a grbFile filename
String grbType = null; // declare a grbFile type - should be grib1 or... |
diff --git a/src/org/mozilla/javascript/Parser.java b/src/org/mozilla/javascript/Parser.java
index 578197c1..da478a7a 100644
--- a/src/org/mozilla/javascript/Parser.java
+++ b/src/org/mozilla/javascript/Parser.java
@@ -1,3762 +1,3762 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
... | true | true | private FunctionNode function(int type)
throws IOException
{
int syntheticType = type;
int baseLineno = ts.lineno; // line number where source starts
int functionSourceStart = ts.tokenBeg; // start of "function" kwd
Name name = null;
AstNode memberExprNode = nul... | private FunctionNode function(int type)
throws IOException
{
int syntheticType = type;
int baseLineno = ts.lineno; // line number where source starts
int functionSourceStart = ts.tokenBeg; // start of "function" kwd
Name name = null;
AstNode memberExprNode = nul... |
diff --git a/src/main/java/com/tomslabs/grid/avro/AvroAsTextTypedBytesInputFormat.java b/src/main/java/com/tomslabs/grid/avro/AvroAsTextTypedBytesInputFormat.java
index 00836fa..9642372 100644
--- a/src/main/java/com/tomslabs/grid/avro/AvroAsTextTypedBytesInputFormat.java
+++ b/src/main/java/com/tomslabs/grid/avro/Avro... | true | true | public boolean next(TypedBytesWritable key, TypedBytesWritable value) throws IOException {
if (!reader.hasNext() || reader.pastSync(end)) {
return false;
}
key.setValue("");
value.setValue(reader.next().toString());
return true;
... | public boolean next(TypedBytesWritable key, TypedBytesWritable value) throws IOException {
if (!reader.hasNext() || reader.pastSync(end)) {
return false;
}
key.setValue("");
// until https://github.com/apache/avro/pull/2/ is fixed, we can not rely... |
diff --git a/src/org/rascalmpl/interpreter/env/ModuleEnvironment.java b/src/org/rascalmpl/interpreter/env/ModuleEnvironment.java
index f47ea0f718..4fb0de71f2 100644
--- a/src/org/rascalmpl/interpreter/env/ModuleEnvironment.java
+++ b/src/org/rascalmpl/interpreter/env/ModuleEnvironment.java
@@ -1,704 +1,704 @@
/*******... | true | true | public IMap getSyntaxDefinition() {
List<String> todo = new LinkedList<String>();
Set<String> done = new HashSet<String>();
todo.add(getName());
IValueFactory VF = ValueFactoryFactory.getValueFactory();
Type DefSort = RascalTypeFactory.getInstance().nonTerminalType((IConstructor) Factory.Symbol_Sort.make(... | public IMap getSyntaxDefinition() {
List<String> todo = new LinkedList<String>();
Set<String> done = new HashSet<String>();
todo.add(getName());
IValueFactory VF = ValueFactoryFactory.getValueFactory();
Type DefSort = RascalTypeFactory.getInstance().nonTerminalType((IConstructor) Factory.Symbol_Sort.make(... |
diff --git a/src/test/ed/util/ScriptTestInstanceBase.java b/src/test/ed/util/ScriptTestInstanceBase.java
index cfb20997f..2d23262fa 100644
--- a/src/test/ed/util/ScriptTestInstanceBase.java
+++ b/src/test/ed/util/ScriptTestInstanceBase.java
@@ -1,95 +1,96 @@
/**
* Copyright (C) 2008 10gen Inc.
*
* This prog... | true | true | public void test() throws Exception {
// System.out.println("ScriptTestInstanceBase : running " + _file);
JSFunction f = convert();
Scope scope = Scope.newGlobal().child(new File("/tmp"));
scope.setGlobal( true );
scope.makeThreadLocal();
/*
* augment the... | public void test() throws Exception {
// System.out.println("ScriptTestInstanceBase : running " + _file);
JSFunction f = convert();
Scope scope = Scope.newGlobal().child(new File("/tmp"));
scope.setGlobal( true );
scope.makeThreadLocal();
/*
* augment the... |
diff --git a/freeplane/src/org/freeplane/core/ui/components/BitmapImagePreview.java b/freeplane/src/org/freeplane/core/ui/components/BitmapImagePreview.java
index 033c05eb0..228ac2b06 100644
--- a/freeplane/src/org/freeplane/core/ui/components/BitmapImagePreview.java
+++ b/freeplane/src/org/freeplane/core/ui/components... | true | true | public void propertyChange(final PropertyChangeEvent e) {
final String prop = e.getPropertyName();
//If the directory changed, don't show an image.
final File file;
if (JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(prop)) {
file = null;
//If a file became selected, find out which one.
}
else if (JFi... | public void propertyChange(final PropertyChangeEvent e) {
final String prop = e.getPropertyName();
//If the directory changed, don't show an image.
final File file;
if (JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(prop)) {
file = null;
//If a file became selected, find out which one.
}
else if (JFi... |
diff --git a/src/main/java/lamprey/seprphase3/GUI/Screens/GameplayScreen.java b/src/main/java/lamprey/seprphase3/GUI/Screens/GameplayScreen.java
index 30c88a6..317d3db 100644
--- a/src/main/java/lamprey/seprphase3/GUI/Screens/GameplayScreen.java
+++ b/src/main/java/lamprey/seprphase3/GUI/Screens/GameplayScreen.java
@@ ... | true | true | public GameplayScreen(BackyardReactor game, PlantController controller, PlantStatus status, GameManager manager) {
super(game, controller, status, manager);
listeners = new GameplayListeners(this, controller, status, manager);
gamebgTexture = new Texture(Gdx.files.internal("ass... | public GameplayScreen(BackyardReactor game, PlantController controller, PlantStatus status, GameManager manager) {
super(game, controller, status, manager);
listeners = new GameplayListeners(this, controller, status, manager);
gamebgTexture = new Texture(Gdx.files.internal("ass... |
diff --git a/nuxeo-platform-replication-importer/nuxeo-platform-replication-importer-core/src/test/java/org/nuxeo/ecm/platform/TestImport.java b/nuxeo-platform-replication-importer/nuxeo-platform-replication-importer-core/src/test/java/org/nuxeo/ecm/platform/TestImport.java
index 730d7af..474f9eb 100644
--- a/nuxeo-pla... | true | true | public void testImport() throws Exception {
DocumentModel root = session.getRootDocument();
assertNotNull(root);
DocumentModelList children = session.getChildren(root.getRef());
assertEquals(0, children.size());
DocumentaryBaseImporterService importer = Framework.getLocalS... | public void testImport() throws Exception {
DocumentModel root = session.getRootDocument();
assertNotNull(root);
DocumentModelList children = session.getChildren(root.getRef());
assertEquals(0, children.size());
DocumentaryBaseImporterService importer = Framework.getLocalS... |
diff --git a/src/main/java/net/aufdemrand/denizen/objects/Element.java b/src/main/java/net/aufdemrand/denizen/objects/Element.java
index 36bb819b4..241288574 100644
--- a/src/main/java/net/aufdemrand/denizen/objects/Element.java
+++ b/src/main/java/net/aufdemrand/denizen/objects/Element.java
@@ -1,783 +1,785 @@
packag... | false | true | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
////////////////////
// COMPARABLE ATTRIBUTES
////////////////
// <--[tag]
// @attribute <el@element.is[<operator>].to[<element>]>
// @returns Element(Boolean)
... | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
////////////////////
// COMPARABLE ATTRIBUTES
////////////////
// <--[tag]
// @attribute <el@element.is[<operator>].to[<element>]>
// @returns Element(Boolean)
... |
diff --git a/src/main/java/com/lorepo/icplayer/client/PlayerEntryPoint.java b/src/main/java/com/lorepo/icplayer/client/PlayerEntryPoint.java
index aa4d6fdf..09cd7b07 100644
--- a/src/main/java/com/lorepo/icplayer/client/PlayerEntryPoint.java
+++ b/src/main/java/com/lorepo/icplayer/client/PlayerEntryPoint.java
@@ -1,135... | true | true | private static native void initJavaScriptAPI(PlayerEntryPoint x) /*-{
// CreatePlayer
$wnd.icCreatePlayer = function(id) {
var player = x.@com.lorepo.icplayer.client.PlayerEntryPoint::createAppPlayer(Ljava/lang/String;)(id);
player.load = function(url, index){
index = index || 0;
x.@com.lorepo.i... | private static native void initJavaScriptAPI(PlayerEntryPoint x) /*-{
// CreatePlayer
$wnd.icCreatePlayer = function(id) {
var player = x.@com.lorepo.icplayer.client.PlayerEntryPoint::createAppPlayer(Ljava/lang/String;)(id);
player.load = function(url, index){
index = index || 0;
x.@com.lorepo.i... |
diff --git a/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/context/tests/AbstractContextTest.java b/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/context/tests/AbstractContextTest.java
index df70a5deb..d0d01240e 100644
--- a/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/context/tests/AbstractCon... | true | true | protected void setUp() throws Exception {
super.setUp();
if (ContextCore.getContextManager() != null) {
assertFalse("" + ((InteractionContextManager) ContextCore.getContextManager()).getActiveContexts(),
ContextCore.getContextManager().isContextActive());
}
}
| protected void setUp() throws Exception {
super.setUp();
if (ContextCore.getContextManager() != null) {
assertFalse("Unexpected context active: "
+ ((InteractionContextManager) ContextCore.getContextManager()).getActiveContexts(),
ContextCore.getContextManager().isContextActive());
}
}
|
diff --git a/hazelcast/src/main/java/com/hazelcast/transaction/impl/TransactionContextImpl.java b/hazelcast/src/main/java/com/hazelcast/transaction/impl/TransactionContextImpl.java
index f68e1f1f97..8a72fb3949 100644
--- a/hazelcast/src/main/java/com/hazelcast/transaction/impl/TransactionContextImpl.java
+++ b/hazelcas... | true | true | public TransactionalObject getTransactionalObject(String serviceName, Object id) {
if (transaction.getState() != Transaction.State.ACTIVE) {
throw new TransactionNotActiveException("No transaction is found while accessing " +
"transactional object -> " + serviceName + "[" + i... | public TransactionalObject getTransactionalObject(String serviceName, Object id) {
if (transaction.getState() != Transaction.State.ACTIVE) {
throw new TransactionNotActiveException("No transaction is found while accessing " +
"transactional object -> " + serviceName + "[" + i... |
diff --git a/src/blur-store/src/main/java/com/nearinfinity/blur/store/blockcache/BlockDirectory.java b/src/blur-store/src/main/java/com/nearinfinity/blur/store/blockcache/BlockDirectory.java
index 9d21fb05..46165fc4 100644
--- a/src/blur-store/src/main/java/com/nearinfinity/blur/store/blockcache/BlockDirectory.java
+++... | true | true | public BlockDirectory(String dirName, DirectIODirectory directory, Cache cache, Set<String> blockCacheFileTypes) throws IOException {
_dirName = dirName;
_directory = directory;
_blockSize = BLOCK_SIZE;
_cache = cache;
if (_blockCacheFileTypes == null || _blockCacheFileTypes.isEmpty()) {
_bl... | public BlockDirectory(String dirName, DirectIODirectory directory, Cache cache, Set<String> blockCacheFileTypes) throws IOException {
_dirName = dirName;
_directory = directory;
_blockSize = BLOCK_SIZE;
_cache = cache;
if (blockCacheFileTypes == null || blockCacheFileTypes.isEmpty()) {
_bloc... |
diff --git a/src/cz/vutbr/fit/gja/gjaddr/gui/DetailPanel.java b/src/cz/vutbr/fit/gja/gjaddr/gui/DetailPanel.java
index 3f13b1f..24976ce 100644
--- a/src/cz/vutbr/fit/gja/gjaddr/gui/DetailPanel.java
+++ b/src/cz/vutbr/fit/gja/gjaddr/gui/DetailPanel.java
@@ -1,347 +1,347 @@
package cz.vutbr.fit.gja.gjaddr.gui;
import... | true | true | void show(Contact contact) {
if (contact != null) {
if (contact.hasBirthday()) {
bdayIcon.setVisible(true);
} else {
bdayIcon.setVisible(false);
}
if (contact.hasNameDay()) {
namedayIcon.setVisible(true);
} else {
namedayIcon.setVisible(false);
}
if (contact.hasCelebration()) {
... | void show(Contact contact) {
if (contact != null) {
if (contact.hasBirthday()) {
bdayIcon.setVisible(true);
} else {
bdayIcon.setVisible(false);
}
if (contact.hasNameDay()) {
namedayIcon.setVisible(true);
} else {
namedayIcon.setVisible(false);
}
if (contact.hasCelebration()) {
... |
diff --git a/BruinLyfe/src/main/java/com/bruinlyfe/bruinlyfe/MenuDisplayActivity.java b/BruinLyfe/src/main/java/com/bruinlyfe/bruinlyfe/MenuDisplayActivity.java
index 649eccd..e6b3442 100644
--- a/BruinLyfe/src/main/java/com/bruinlyfe/bruinlyfe/MenuDisplayActivity.java
+++ b/BruinLyfe/src/main/java/com/bruinlyfe/bruinl... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_menu_display);
Intent intent = this.getIntent();
List<String> meal = intent.getExtras().getStringArrayList("menuData");
String hallMeal = intent.getExtra... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_menu_display);
Intent intent = this.getIntent();
List<String> meal = intent.getExtras().getStringArrayList("menuData");
String hallMeal = intent.getExtra... |
diff --git a/cucumber/src/org/jetbrains/plugins/cucumber/inspections/GherkinBrokenTableInspection.java b/cucumber/src/org/jetbrains/plugins/cucumber/inspections/GherkinBrokenTableInspection.java
index aff41194df..e0079af603 100644
--- a/cucumber/src/org/jetbrains/plugins/cucumber/inspections/GherkinBrokenTableInspectio... | true | true | public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) {
return new GherkinElementVisitor() {
@Override
public void visitScenarioOutline(GherkinScenarioOutline outline) {
final List<GherkinExamplesBlock> examples = outline.getExamplesBlocks();
f... | public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) {
return new GherkinElementVisitor() {
@Override
public void visitScenarioOutline(GherkinScenarioOutline outline) {
final List<GherkinExamplesBlock> examples = outline.getExamplesBlocks();
f... |
diff --git a/bundles/org.eclipse.orion.server.hosting/src/org/eclipse/orion/internal/server/hosting/RemoteURLProxyServlet.java b/bundles/org.eclipse.orion.server.hosting/src/org/eclipse/orion/internal/server/hosting/RemoteURLProxyServlet.java
index 44283693..a01ed992 100644
--- a/bundles/org.eclipse.orion.server.hostin... | false | true | public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;
if ("CONNECT".equalsIgnoreCase(request.getMethod())) {
handleConnect(request, response);
} else... | public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;
if ("CONNECT".equalsIgnoreCase(request.getMethod())) {
handleConnect(request, response);
} else... |
diff --git a/src/edu/vu/vuse/cs278/g3/gui/MainWindow.java b/src/edu/vu/vuse/cs278/g3/gui/MainWindow.java
index 5b8c56f..d00a592 100755
--- a/src/edu/vu/vuse/cs278/g3/gui/MainWindow.java
+++ b/src/edu/vu/vuse/cs278/g3/gui/MainWindow.java
@@ -1,390 +1,390 @@
/*
* To change this template, choose Tools | Templates
* a... | true | true | private void initComponents() {
addObject = new javax.swing.JButton();
editObject = new javax.swing.JButton();
runSimulation = new javax.swing.JButton();
stopSimulation = new javax.swing.JButton();
pauseSimulation = new javax.swing.JButton();
busAcceleration = new ja... | private void initComponents() {
addObject = new javax.swing.JButton();
editObject = new javax.swing.JButton();
runSimulation = new javax.swing.JButton();
stopSimulation = new javax.swing.JButton();
pauseSimulation = new javax.swing.JButton();
busAcceleration = new ja... |
diff --git a/deployables/bindingcomponents/servicemix-mail/src/main/java/org/apache/servicemix/mail/MailPollerEndpoint.java b/deployables/bindingcomponents/servicemix-mail/src/main/java/org/apache/servicemix/mail/MailPollerEndpoint.java
index a5fe7641e..9decd9d55 100644
--- a/deployables/bindingcomponents/servicemix-ma... | true | true | public void poll() throws Exception {
LOG.debug("Polling mailfolder " + config.getFolderName() + " at host " + config.getHost() + "...");
if (maxFetchSize == 0) {
LOG.debug("The configuration is set to poll no new messages at all...skipping.");
return;
}
Sto... | public void poll() throws Exception {
LOG.debug("Polling mailfolder " + config.getFolderName() + " at host " + config.getHost() + "...");
if (maxFetchSize == 0) {
LOG.debug("The configuration is set to poll no new messages at all...skipping.");
return;
}
Sto... |
diff --git a/src/java/org/apache/hadoop/filecache/DistributedCache.java b/src/java/org/apache/hadoop/filecache/DistributedCache.java
index 0c050cc31..b93e7c528 100644
--- a/src/java/org/apache/hadoop/filecache/DistributedCache.java
+++ b/src/java/org/apache/hadoop/filecache/DistributedCache.java
@@ -1,810 +1,813 @@
/*... | true | true | private static Path localizeCache(Configuration conf,
URI cache, long confFileStamp,
CacheStatus cacheStatus,
FileStatus fileStatus,
boolean isArchive,
... | private static Path localizeCache(Configuration conf,
URI cache, long confFileStamp,
CacheStatus cacheStatus,
FileStatus fileStatus,
boolean isArchive,
... |
diff --git a/test/org/nexml/model/TestContinuousMatrix.java b/test/org/nexml/model/TestContinuousMatrix.java
index 740ba63..a5c3efa 100644
--- a/test/org/nexml/model/TestContinuousMatrix.java
+++ b/test/org/nexml/model/TestContinuousMatrix.java
@@ -1,91 +1,91 @@
package org.nexml.model;
import java.io.ByteArrayInpu... | true | true | public void testContinuousMatrix() {
Document doc = null;
try {
doc = DocumentFactory.createDocument();
} catch (ParserConfigurationException e) {
e.printStackTrace();
}
OTUs otus = doc.createOTUs();
OTU otu = otus.createOTU();
ContinuousMatrix contmat = doc.createContinuousMatrix(otus);
Characte... | public void testContinuousMatrix() {
Document doc = null;
try {
doc = DocumentFactory.createDocument();
} catch (ParserConfigurationException e) {
e.printStackTrace();
}
OTUs otus = doc.createOTUs();
OTU otu = otus.createOTU();
ContinuousMatrix contmat = doc.createContinuousMatrix(otus);
Characte... |
diff --git a/plugin/src/main/java/com/h3xstream/findsecbugs/crypto/BadHexadecimalConversionDetector.java b/plugin/src/main/java/com/h3xstream/findsecbugs/crypto/BadHexadecimalConversionDetector.java
index 5f33ffa6..f3802096 100644
--- a/plugin/src/main/java/com/h3xstream/findsecbugs/crypto/BadHexadecimalConversionDetec... | true | true | public void visitClassContext(ClassContext classContext) {
JavaClass javaClass = classContext.getJavaClass();
Method[] methodList = javaClass.getMethods();
for (Method m : methodList) {
MethodGen methodGen = classContext.getMethodGen(m);
if (DEBUG) {
... | public void visitClassContext(ClassContext classContext) {
JavaClass javaClass = classContext.getJavaClass();
Method[] methodList = javaClass.getMethods();
for (Method m : methodList) {
MethodGen methodGen = classContext.getMethodGen(m);
if (DEBUG) {
... |
diff --git a/src/main/java/net/sourceforge/cilib/pso/velocityupdatestrategies/GCVelocityUpdate.java b/src/main/java/net/sourceforge/cilib/pso/velocityupdatestrategies/GCVelocityUpdate.java
index 975d61ee..7efbe9ff 100644
--- a/src/main/java/net/sourceforge/cilib/pso/velocityupdatestrategies/GCVelocityUpdate.java
+++ b/... | true | true | public void updateVelocity(Particle particle) {
if (particle.getNeighbourhoodBest().getId() == particle.getId()) {
double rho = GCDecorator.extract(particle).getRho();
Vector velocity = (Vector) particle.getVelocity();
Vector nBestPosition = (Vector) particle.getNeighbourhoodBest().getBestPosition();
P... | public void updateVelocity(Particle particle) {
if (particle.getNeighbourhoodBest().getId().equals(particle.getId())) {
double rho = GCDecorator.extract(particle).getRho();
Vector velocity = (Vector) particle.getVelocity();
Vector nBestPosition = (Vector) particle.getNeighbourhoodBest().getBestPosition();
... |
diff --git a/src/com/google/bitcoin/examples/FetchBlock.java b/src/com/google/bitcoin/examples/FetchBlock.java
index c2809ed..4747a82 100644
--- a/src/com/google/bitcoin/examples/FetchBlock.java
+++ b/src/com/google/bitcoin/examples/FetchBlock.java
@@ -1,51 +1,55 @@
/*
* Copyright 2011 Google Inc.
*
* Licensed u... | true | true | public static void main(String[] args) throws Exception {
System.out.println("Connecting to node");
final NetworkParameters params = NetworkParameters.prodNet();
BlockStore blockStore = new MemoryBlockStore(params);
BlockChain chain = new BlockChain(params, blockStore);
fina... | public static void main(String[] args) throws Exception {
System.out.println("Connecting to node");
final NetworkParameters params = NetworkParameters.prodNet();
BlockStore blockStore = new MemoryBlockStore(params);
BlockChain chain = new BlockChain(params, blockStore);
fina... |
diff --git a/src/main/java/knapsack/Item.java b/src/main/java/knapsack/Item.java
index 13aecc9..28eec9c 100644
--- a/src/main/java/knapsack/Item.java
+++ b/src/main/java/knapsack/Item.java
@@ -1,18 +1,18 @@
package main.java.knapsack;
public class Item {
int value;
int weight;
int lbl;
publi... | false | true | public Item(int value, int weight, int name) {
if (weight <= 0)
throw new IllegalArgumentException("weight of item should be positive ");
if (value <= 0)
throw new IllegalArgumentException("value of item should be positive ");
this.value = value;
this.weight = weight;
this.lbl = name;
}
| public Item(int value, int weight, int name) {
if (weight <= 0)
throw new IllegalArgumentException("weight of item should be positive");
if (value <= 0)
throw new IllegalArgumentException("value of item should be positive");
this.value = value;
this.weight = weight;
this.lbl = name;
}
|
diff --git a/ananya-kilkari-functional-tests/src/test/java/org/motechproject/ananya/kilkari/functional/test/CustomerNotAroundThePhoneFunctionalTest.java b/ananya-kilkari-functional-tests/src/test/java/org/motechproject/ananya/kilkari/functional/test/CustomerNotAroundThePhoneFunctionalTest.java
index f52057fa..efdece85 ... | true | true | public void shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade() throws Exception {
System.out.println("Now running shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade");
int scheduleDeltaDays = kilkariProperties.getCampaignScheduleDe... | public void shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade() throws Exception {
System.out.println("Now running shouldRetryDeliveryOfMessagesWhenTheSubscriberDoesNotReceiveMessagesOrCallIsNotMade");
int scheduleDeltaDays = kilkariProperties.getCampaignScheduleDe... |
diff --git a/src/main/javassist/bytecode/annotation/MemberValue.java b/src/main/javassist/bytecode/annotation/MemberValue.java
index 5ce70cb..3122eda 100644
--- a/src/main/javassist/bytecode/annotation/MemberValue.java
+++ b/src/main/javassist/bytecode/annotation/MemberValue.java
@@ -1,90 +1,90 @@
/*
* Javassist, a ... | true | true | private static String convertFromArray(String classname)
{
// int index = classname.indexOf("[]");
// if (index != -1)
// {
// String rawType = classname.substring(0, index);
// StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
// while (index != -1)
// ... | private static String convertFromArray(String classname)
{
int index = classname.indexOf("[]");
if (index != -1)
{
String rawType = classname.substring(0, index);
StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
while (index != -1)
{
... |
diff --git a/resthub-samples/roundtable/src/main/java/org/resthub/roundtable/domain/dao/impl/jpa/VoteDaoImpl.java b/resthub-samples/roundtable/src/main/java/org/resthub/roundtable/domain/dao/impl/jpa/VoteDaoImpl.java
index 0704d7e0..b7ba782b 100644
--- a/resthub-samples/roundtable/src/main/java/org/resthub/roundtable/d... | true | true | public boolean exist(String voter, Poll poll) {
final Query query = em.createNamedQuery("existVote");
query.setParameter("voter", voter);
query.setParameter("pid", poll.getId());
return ((Long) query.getSingleResult() >= 1) ? true : false;
}
| public boolean exist(String voter, Poll poll) {
final Query query = em.createNamedQuery("existVote");
query.setParameter("voter", voter);
query.setParameter("pid", poll.getId());
return ((Long) query.getSingleResult() >= 1);
}
|
diff --git a/enablers/sip-publication-client/sbb/src/main/java/org/mobicents/slee/enabler/sip/PublicationClientChildSbb.java b/enablers/sip-publication-client/sbb/src/main/java/org/mobicents/slee/enabler/sip/PublicationClientChildSbb.java
index 0e9120301..51248ed58 100644
--- a/enablers/sip-publication-client/sbb/src/m... | true | true | public void onClientErrorRespEvent(ResponseEvent event, ActivityContextInterface aci) {
if (tracer.isFineEnabled())
tracer.fine("Received 4xx (CLIENT ERROR) response:\n"+event.getResponse());
aci.detach(sbbContext.getSbbLocalObject());
final Response response = event.getResponse();
int statusCode =... | public void onClientErrorRespEvent(ResponseEvent event, ActivityContextInterface aci) {
if (tracer.isFineEnabled())
tracer.fine("Received 4xx (CLIENT ERROR) response:\n"+event.getResponse());
aci.detach(sbbContext.getSbbLocalObject());
final Response response = event.getResponse();
int statusCode =... |
diff --git a/plugin-app/src/main/java/com/my/plugin/app/App.java b/plugin-app/src/main/java/com/my/plugin/app/App.java
index 23112a9..1abb241 100644
--- a/plugin-app/src/main/java/com/my/plugin/app/App.java
+++ b/plugin-app/src/main/java/com/my/plugin/app/App.java
@@ -1,30 +1,30 @@
package com.my.plugin.app;
import... | true | true | public static void main(String[] args) throws Exception {
DependencyResolver resolver = new DependencyResolver(new File(System.getProperty("user.home") + "/.m2/repository"));
DependencyResolver.ResolveResult result = resolver.resolve("com.my.plugin:plugin-impl:jar:1.0-SNAPSHOT");
List<URL> ... | public static void main(String[] args) throws Exception {
DependencyResolver resolver = new DependencyResolver(new File(System.getProperty("user.home") + "/.m2/repository"));
DependencyResolver.ResolveResult result = resolver.resolve("com.my.plugin:plugin-impl:jar:0.1-SNAPSHOT");
List<URL> ... |
diff --git a/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java b/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java
index 3e6f9bf67..d258d0481 100644
--- a/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java
+++ b/java/test/org/broadinstitute/sting/align... | true | true | public void testBasicAlignment() {
String md5 = "c6d95d8ae707e78fefdaa7375f130995";
WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec(
"-R /humgen/gsa-scr1/GATK_Data/bwa/human_b36_both.fasta" +
" -T Align" +
" -I " + valida... | public void testBasicAlignment() {
String md5 = "c6d95d8ae707e78fefdaa7375f130995";
WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec(
"-R " + b36KGReference +
" -T Align" +
" -I " + validationDataLocation + "NA1287... |
diff --git a/cometd-javascript/jquery/src/test/java/org/cometd/javascript/jquery/extension/CometdTimeSyncExtensionTest.java b/cometd-javascript/jquery/src/test/java/org/cometd/javascript/jquery/extension/CometdTimeSyncExtensionTest.java
index b7b4b1439..98aac4e97 100644
--- a/cometd-javascript/jquery/src/test/java/org/... | false | true | public void testTimeSync() throws Exception
{
URL timesyncExtensionURL = new URL(contextURL + "/org/cometd/TimeSyncExtension.js");
evaluateURL(timesyncExtensionURL);
URL jqueryTimesyncExtensionURL = new URL(contextURL + "/jquery/jquery.cometd-timesync.js");
evaluateURL(jqueryTime... | public void testTimeSync() throws Exception
{
URL timesyncExtensionURL = new URL(contextURL + "/org/cometd/TimeSyncExtension.js");
evaluateURL(timesyncExtensionURL);
URL jqueryTimesyncExtensionURL = new URL(contextURL + "/jquery/jquery.cometd-timesync.js");
evaluateURL(jqueryTime... |
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java
index ae5583d70..eb8fc53b4 100644
--- a/eclipse/plugins/com.android.ide.ecl... | true | true | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
try {
mDerivedProgressMonitor.reset();
// First thing we do is go through the resource delta to not
// lose it if we have to abort the build for any reason.
... | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
try {
mDerivedProgressMonitor.reset();
// First thing we do is go through the resource delta to not
// lose it if we have to abort the build for any reason.
... |
diff --git a/src/main/java/com/google/devtools/j2objc/gen/ObjectiveCImplementationGenerator.java b/src/main/java/com/google/devtools/j2objc/gen/ObjectiveCImplementationGenerator.java
index 2f92951..fec234a 100644
--- a/src/main/java/com/google/devtools/j2objc/gen/ObjectiveCImplementationGenerator.java
+++ b/src/main/ja... | true | true | protected void generate(EnumDeclaration node) {
@SuppressWarnings("unchecked")
List<EnumConstantDeclaration> constants = node.enumConstants(); // safe by definition
List<MethodDeclaration> methods = Lists.newArrayList();
List<FieldDeclaration> fields = Lists.newArrayList();
MethodDeclaration initi... | protected void generate(EnumDeclaration node) {
@SuppressWarnings("unchecked")
List<EnumConstantDeclaration> constants = node.enumConstants(); // safe by definition
List<MethodDeclaration> methods = Lists.newArrayList();
List<FieldDeclaration> fields = Lists.newArrayList();
MethodDeclaration initi... |
diff --git a/org.projectusus.ui/src/org/projectusus/ui/internal/hotspots/pages/HotspotsLP.java b/org.projectusus.ui/src/org/projectusus/ui/internal/hotspots/pages/HotspotsLP.java
index 567aedda..a427beb5 100644
--- a/org.projectusus.ui/src/org/projectusus/ui/internal/hotspots/pages/HotspotsLP.java
+++ b/org.projectusus... | true | true | public Image getColumnImage( Object element, int columnIndex ) {
HotspotsColumnDesc cockpitColumnDesc = HotspotsColumnDesc.values()[columnIndex];
if( cockpitColumnDesc == HotspotsColumnDesc.Trend && element instanceof DisplayHotspot ) {
return ((DisplayHotspot<?>)element).getTrendImage()... | public Image getColumnImage( Object element, int columnIndex ) {
HotspotsColumnDesc cockpitColumnDesc = columnDescs.get( columnIndex );
if( cockpitColumnDesc == HotspotsColumnDesc.Trend && element instanceof DisplayHotspot ) {
return ((DisplayHotspot<?>)element).getTrendImage();
... |
diff --git a/whois-oneshot/src/main/java/net/ripe/db/LogUtil.java b/whois-oneshot/src/main/java/net/ripe/db/LogUtil.java
index f6ac14963..e6d784f67 100644
--- a/whois-oneshot/src/main/java/net/ripe/db/LogUtil.java
+++ b/whois-oneshot/src/main/java/net/ripe/db/LogUtil.java
@@ -1,20 +1,21 @@
package net.ripe.db;
impo... | true | true | public static void initLogger() {
LogManager.getRootLogger().setLevel(Level.INFO);
final ConsoleAppender console = new ConsoleAppender();
console.setLayout(new PatternLayout("%d [%C{1}] %m%n"));
console.setThreshold(Level.INFO);
console.activateOptions();
LogManager.g... | public static void initLogger() {
LogManager.getRootLogger().setLevel(Level.INFO);
final ConsoleAppender console = new ConsoleAppender();
console.setLayout(new PatternLayout("%d [%C{1}] %m%n"));
console.setTarget("System.err");
console.setThreshold(Level.INFO);
consol... |
diff --git a/src/main/java/com/tresys/jalop/producer/JalopAppender.java b/src/main/java/com/tresys/jalop/producer/JalopAppender.java
index 002f5a7..5c786a8 100644
--- a/src/main/java/com/tresys/jalop/producer/JalopAppender.java
+++ b/src/main/java/com/tresys/jalop/producer/JalopAppender.java
@@ -1,308 +1,310 @@
/*
*... | true | true | private ApplicationMetadataXML createLoggerMetadata(LoggingEvent event) {
ApplicationMetadataType amt = new ApplicationMetadataType();
LoggerType lt = new LoggerType();
// ApplicationName
lt.setApplicationName(appName);
// HostName
lt.setHostname(hostName);
// Location Info
if (useLocation) {
Lo... | private ApplicationMetadataXML createLoggerMetadata(LoggingEvent event) {
ApplicationMetadataType amt = new ApplicationMetadataType();
LoggerType lt = new LoggerType();
// ApplicationName
lt.setApplicationName(appName);
// HostName
lt.setHostname(hostName);
// Location Info
if (useLocation) {
Lo... |
diff --git a/src/nitrogene/objecttree/ImageObject.java b/src/nitrogene/objecttree/ImageObject.java
index f5f8453..ac0943e 100644
--- a/src/nitrogene/objecttree/ImageObject.java
+++ b/src/nitrogene/objecttree/ImageObject.java
@@ -1,119 +1,119 @@
package nitrogene.objecttree;
import java.util.ArrayList;
import java.... | false | true | public boolean isColliding(PhysicalObject obj){
/*
double dist = Math.sqrt((this.getCenterX()-obj.getCenterX())*(this.getCenterX()-obj.getCenterX()) + (this.getCenterY()-obj.getCenterY())*(this.getCenterY()-obj.getCenterY()));
if(this.getCenterX() + width + this.movement.getDx() >= dist ||
this.getCenterY() ... | public boolean isColliding(PhysicalObject obj){
/*
double dist = Math.sqrt((this.getCenterX()-obj.getCenterX())*(this.getCenterX()-obj.getCenterX()) + (this.getCenterY()-obj.getCenterY())*(this.getCenterY()-obj.getCenterY()));
if(this.getCenterX() + width + this.movement.getDx() >= dist ||
this.getCenterY() ... |
diff --git a/src/com/chrishoekstra/trello/adapter/CardAdapter.java b/src/com/chrishoekstra/trello/adapter/CardAdapter.java
index 88088a0..71d62c9 100644
--- a/src/com/chrishoekstra/trello/adapter/CardAdapter.java
+++ b/src/com/chrishoekstra/trello/adapter/CardAdapter.java
@@ -1,54 +1,54 @@
package com.chrishoekstra.tr... | false | true | public View getView(final int position, View convertView, ViewGroup parent) {
TextView nameText;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.card_row, null);
nameText = (TextView) convertView.findViewById(R.id.name);
... | public View getView(final int position, View convertView, ViewGroup parent) {
TextView nameText;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.card_row, null);
nameText = (TextView) convertView.findViewById(R.id.name);
... |
diff --git a/src/haven/Partyview.java b/src/haven/Partyview.java
index c787114..9b4fd6b 100644
--- a/src/haven/Partyview.java
+++ b/src/haven/Partyview.java
@@ -1,116 +1,116 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
* ... | true | true | private void update() {
if(party.memb != om) {
Collection<Member> old = new HashSet<Member>(avs.keySet());
for(Member m : (om = party.memb).values()) {
if(m.gobid == ign)
continue;
Avaview w = avs.get(m);
if(w == null) {
w = new Avaview(Coord.z, this, m.gobid, new Coord(27, 27));
... | private void update() {
if(party.memb != om) {
Collection<Member> old = new HashSet<Member>(avs.keySet());
for(Member m : (om = party.memb).values()) {
if(m.gobid == ign)
continue;
Avaview w = avs.get(m);
if(w == null) {
w = new Avaview(Coord.z, this, m.gobid, new Coord(27, 27));
... |
diff --git a/core/servicemix-core/src/test/java/org/apache/servicemix/jbi/nmr/flow/jca/JcaFlowWithTxLogTest.java b/core/servicemix-core/src/test/java/org/apache/servicemix/jbi/nmr/flow/jca/JcaFlowWithTxLogTest.java
index a987387b0..9e4073602 100644
--- a/core/servicemix-core/src/test/java/org/apache/servicemix/jbi/nmr/... | true | true | protected void setUp() throws Exception {
super.setUp();
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, SpringInitialContextFactory.class.getName());
System.setProperty(Context.PROVIDER_URL, "jndi.xml");
TransactionManagerFactoryBean factory = new TransactionManagerFac... | protected void setUp() throws Exception {
super.setUp();
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, SpringInitialContextFactory.class.getName());
System.setProperty(Context.PROVIDER_URL, "jndi.xml");
TransactionManagerFactoryBean factory = new TransactionManagerFac... |
diff --git a/src/org/redbus/BusTimesActivity.java b/src/org/redbus/BusTimesActivity.java
index 0507338..b7bc7c0 100644
--- a/src/org/redbus/BusTimesActivity.java
+++ b/src/org/redbus/BusTimesActivity.java
@@ -1,599 +1,599 @@
/*
* Copyright 2010 Andrew De Quincey - adq@lidskialf.net
* This file is part of rEdBus.
... | true | true | public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.bustimes_menu_refresh:
update();
return true;
case R.id.bustimes_menu_enterstopcode: {
final EditText input = new EditText(this);
input.setInputType(InputType.TYPE_CLASS_PHONE);
input.setFilters(new Input... | public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.bustimes_menu_refresh:
update();
return true;
case R.id.bustimes_menu_enterstopcode: {
final EditText input = new EditText(this);
input.setInputType(InputType.TYPE_CLASS_PHONE);
input.setFilters(new Input... |
diff --git a/src/algo/DynamicSolver.java b/src/algo/DynamicSolver.java
index 3d721c4..b09a95d 100644
--- a/src/algo/DynamicSolver.java
+++ b/src/algo/DynamicSolver.java
@@ -1,164 +1,164 @@
package algo;
import io.GbkReader;
import io.SolutionWriter;
import java.io.IOException;
import java.util.ArrayList;
import... | true | true | public List<CGene> solve() {
Arrays.sort(a,new Comparator<State>() {
@Override
public int compare(State x, State y) {
return x.h.getRight() - y.h.getRight();
}
});
State dummy = new State(new Helix(-1,-1,0));
dummy.cumulativeAnswer = 0;
List<CGene> res = new ArrayList<CGene>();
for (int i = 0;... | public List<CGene> solve() {
Arrays.sort(a,new Comparator<State>() {
@Override
public int compare(State x, State y) {
return x.h.getRight() - y.h.getRight();
}
});
State dummy = new State(new Helix(-1,-1,0));
dummy.cumulativeAnswer = 0;
List<CGene> res = new ArrayList<CGene>();
for (int i = 0;... |
diff --git a/edu/mit/wi/haploview/HaplotypeDisplay.java b/edu/mit/wi/haploview/HaplotypeDisplay.java
index 60073ff..52a7aea 100644
--- a/edu/mit/wi/haploview/HaplotypeDisplay.java
+++ b/edu/mit/wi/haploview/HaplotypeDisplay.java
@@ -1,471 +1,472 @@
package edu.mit.wi.haploview;
import java.awt.*;
//import java.awt.g... | true | true | public void paintComponent(Graphics graphics) {
if (filteredHaplos == null){
super.paintComponent(graphics);
return;
}
Graphics2D g = (Graphics2D) graphics;
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON... | public void paintComponent(Graphics graphics) {
if (filteredHaplos == null){
super.paintComponent(graphics);
return;
}
Graphics2D g = (Graphics2D) graphics;
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON... |
diff --git a/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/JBossServerViewExtension.java b/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/JBossServerViewExtension.java
index 9fccd10df..26cce4c19 100755
--- a/as/plug... | false | true | protected void refreshViewer(final Object o) {
Runnable r = new Runnable() {
public void run() {
if( isEnabled() ) {
try {
if( o == null || o == provider ) {
JBossServerView.getDefault().getExtensionFrame().getViewer().refresh(provider);
} else {
ExtensionTableViewer viewer = J... | protected void refreshViewer(final Object o) {
Runnable r = new Runnable() {
public void run() {
if( isEnabled() ) {
if( o == null || o == provider ) {
JBossServerView.getDefault().getExtensionFrame().getViewer().refresh(provider);
} else {
ExtensionTableViewer viewer = JBossServerView.... |
diff --git a/Flags/src/alshain01/Flags/Flags.java b/Flags/src/alshain01/Flags/Flags.java
index a995824..2dcc2f5 100644
--- a/Flags/src/alshain01/Flags/Flags.java
+++ b/Flags/src/alshain01/Flags/Flags.java
@@ -1,264 +1,264 @@
package alshain01.Flags;
import java.util.List;
import net.milkbowl.vault.economy.Econom... | true | true | public void onEnable(){
instance = this;
// Create the configuration file if it doesn't exist
this.saveDefaultConfig();
this.DEBUG = this.getConfig().getBoolean("Flags.Debug");
if(this.getConfig().getBoolean("Flags.Update.Check")) {
String key = this.getConfig().getString("Flags.Update.ServerModsAPI... | public void onEnable(){
instance = this;
// Create the configuration file if it doesn't exist
this.saveDefaultConfig();
DEBUG = this.getConfig().getBoolean("Flags.Debug");
if(this.getConfig().getBoolean("Flags.Update.Check")) {
String key = this.getConfig().getString("Flags.Update.ServerModsAPIKey")... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/SummaryDataRestServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/SummaryDataRestServlet.java
index 121150743..e40955cdc 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/SummaryDataRestServlet.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/Sum... | true | true | protected RestResponse handleRequest(RestRequest req) throws Exception {
SummaryDataRequest dataReq = (SummaryDataRequest) req;
SummaryDataResponse response = new SummaryDataResponse();
if (cache != null) {
SummaryDataResponse cachedResponse = null;
try {
cachedResponse = (SummaryDataResponse) cache... | protected RestResponse handleRequest(RestRequest req) throws Exception {
SummaryDataRequest dataReq = (SummaryDataRequest) req;
SummaryDataResponse response = new SummaryDataResponse();
if (cache != null) {
SummaryDataResponse cachedResponse = null;
try {
cachedResponse = (SummaryDataResponse) cache... |
diff --git a/project-set/components/client-auth/src/main/java/com/rackspace/papi/components/clientauth/common/AuthenticationHandler.java b/project-set/components/client-auth/src/main/java/com/rackspace/papi/components/clientauth/common/AuthenticationHandler.java
index 6eddfedb97..19abc01441 100644
--- a/project-set/com... | false | true | private FilterDirector authenticate(HttpServletRequest request) {
final FilterDirector filterDirector = new FilterDirectorImpl();
filterDirector.setResponseStatus(HttpStatusCode.UNAUTHORIZED);
filterDirector.setFilterAction(FilterAction.RETURN);
final String authToken = request.getHeader(Com... | private FilterDirector authenticate(HttpServletRequest request) {
final FilterDirector filterDirector = new FilterDirectorImpl();
filterDirector.setResponseStatus(HttpStatusCode.UNAUTHORIZED);
filterDirector.setFilterAction(FilterAction.RETURN);
final String authToken = request.getHeader(Com... |
diff --git a/src/org/napile/idea/plugin/refactoring/introduceVariable/NapileInplaceVariableIntroducer.java b/src/org/napile/idea/plugin/refactoring/introduceVariable/NapileInplaceVariableIntroducer.java
index 901b595..7ae464e 100644
--- a/src/org/napile/idea/plugin/refactoring/introduceVariable/NapileInplaceVariableInt... | true | true | protected JComponent getComponent()
{
if(!myDoNotChangeVar)
{
myVarCheckbox = new NonFocusableCheckBox("Declare with var");
myVarCheckbox.setSelected(isVar);
myVarCheckbox.setMnemonic('v');
myVarCheckbox.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEv... | protected JComponent getComponent()
{
if(!myDoNotChangeVar)
{
myVarCheckbox = new NonFocusableCheckBox("Declare with var");
myVarCheckbox.setSelected(isVar);
myVarCheckbox.setMnemonic('v');
myVarCheckbox.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEv... |
diff --git a/src/main/java/water/api/Upload.java b/src/main/java/water/api/Upload.java
index 90c669710..e84830d89 100644
--- a/src/main/java/water/api/Upload.java
+++ b/src/main/java/water/api/Upload.java
@@ -1,32 +1,32 @@
package water.api;
import com.google.gson.JsonObject;
public class Upload extends HTMLOn... | true | true | protected String build(Response response) {
return "<script type='text/javascript' src='jquery.fileupload/js/vendor/jquery.ui.widget.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js/jquery.iframe-transport.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js... | protected String build(Response response) {
return "<script type='text/javascript' src='jquery.fileupload/js/vendor/jquery.ui.widget.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js/jquery.iframe-transport.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js... |
diff --git a/src/main/java/com/google/gwt/audio/recorder/client/Recorder.java b/src/main/java/com/google/gwt/audio/recorder/client/Recorder.java
index ec090a6..4526e71 100644
--- a/src/main/java/com/google/gwt/audio/recorder/client/Recorder.java
+++ b/src/main/java/com/google/gwt/audio/recorder/client/Recorder.java
@@ ... | true | true | private native void loadFlashRecorder(int width, int height, String uploadImage, String applicationName,
String swfObject, String containerId, String uploadFormId, String uploadFieldname) /*-{
var instance = this;
// Event management
$wnd.microphone_recorder_events = function() {
switch (arguments[0]) {
... | private native void loadFlashRecorder(int width, int height, String uploadImage, String applicationName,
String swfObject, String containerId, String uploadFormId, String uploadFieldname) /*-{
var instance = this;
// Event management
$wnd.microphone_recorder_events = function() {
switch (arguments[0]) {
... |
diff --git a/compiler/src/main/java/dagger/internal/codegen/GraphAnalysisInjectBinding.java b/compiler/src/main/java/dagger/internal/codegen/GraphAnalysisInjectBinding.java
index dddd6e62..aafa6c7d 100644
--- a/compiler/src/main/java/dagger/internal/codegen/GraphAnalysisInjectBinding.java
+++ b/compiler/src/main/java/d... | true | true | static GraphAnalysisInjectBinding create(TypeElement type, boolean mustHaveInjections) {
List<String> requiredKeys = new ArrayList<String>();
boolean hasInjectConstructor = false;
boolean hasNoArgsConstructor = false;
for (Element enclosed : type.getEnclosedElements()) {
switch (enclosed.getKin... | static GraphAnalysisInjectBinding create(TypeElement type, boolean mustHaveInjections) {
List<String> requiredKeys = new ArrayList<String>();
boolean hasInjectConstructor = false;
boolean hasNoArgsConstructor = false;
for (Element enclosed : type.getEnclosedElements()) {
switch (enclosed.getKin... |
diff --git a/tests/org.eclipse.gmf.tests.lite/src/org/eclipse/gmf/tests/lite/gen/LiteCompilationTestWithImportConflicts.java b/tests/org.eclipse.gmf.tests.lite/src/org/eclipse/gmf/tests/lite/gen/LiteCompilationTestWithImportConflicts.java
index ea544235c..e0f06f147 100644
--- a/tests/org.eclipse.gmf.tests.lite/src/org/... | true | true | public void testPreexistingImportConflicts() throws Exception {
DiaGenSource gmfGenSource = loadSource();
gmfGenSource.getGenDiagram().getEditorGen().setSameFileForDiagramAndModel(false);
String pluginId = gmfGenSource.getGenDiagram().getEditorGen().getPlugin().getID();
IProject diagramProject = ResourcesPlugi... | public void testPreexistingImportConflicts() throws Exception {
DiaGenSource gmfGenSource = getLibraryGen();
gmfGenSource.getGenDiagram().getEditorGen().setSameFileForDiagramAndModel(false);
String pluginId = gmfGenSource.getGenDiagram().getEditorGen().getPlugin().getID();
IProject diagramProject = ResourcesPl... |
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/mopp/TaskItemBuilderGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/mopp/TaskItemBuilderGenerator.java
index 95e01042e..36ee7db5b 100644
--- a/org.emftext.sdk.codegen.resource/... | false | true | private void addBuildMethod(JavaComposite sc) {
sc.add("@Override").addLineBreak();
sc.add("public void build(" + I_FILE + " resource, " + I_PROGRESS_MONITOR + " monitor) {");
sc.add("monitor.setTaskName(\"Searching for task items\");");
sc.add("new " + markerHelperClassName + "().removeAllMarkers(resource, " ... | private void addBuildMethod(JavaComposite sc) {
sc.add("@Override").addLineBreak();
sc.add("public void build(" + I_FILE + " resource, " + I_PROGRESS_MONITOR + " monitor) {");
sc.add("monitor.setTaskName(\"Searching for task items\");");
sc.add("new " + markerHelperClassName + "().removeAllMarkers(resource, " ... |
diff --git a/src/Main.java b/src/Main.java
index 96215b4..0ad7eb2 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,224 +1,225 @@
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import j... | true | true | public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
BufferedReader br = null;
String filepath;
int count = 0; //counter
int option; //Specifies the option that the user selects from the menu
String x; //general purpose variable for user input/loading
String c... | public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
BufferedReader br = null;
String filepath;
int count = 0; //counter
int option; //Specifies the option that the user selects from the menu
String x; //general purpose variable for user input/loading
String c... |
diff --git a/src/org/vika/routing/network/jade/AgentsUtil.java b/src/org/vika/routing/network/jade/AgentsUtil.java
index aeceece..477e3d3 100644
--- a/src/org/vika/routing/network/jade/AgentsUtil.java
+++ b/src/org/vika/routing/network/jade/AgentsUtil.java
@@ -1,37 +1,37 @@
package org.vika.routing.network.jade;
im... | true | true | public static void sendMessage(final Agent[] agents, final int receiver, final Message message){
final AMSAgentDescription agent = findAMSAgentDescription(agents, receiver);
ACLMessage msg = new ACLMessage(ACLMessage.INFORM);
msg.addReceiver(agent.getName());
try {
msg.se... | public static void sendMessage(final Agent[] agents, final int receiver, final Message message){
final AMSAgentDescription agent = findAMSAgentDescription(agents, receiver);
ACLMessage msg = new ACLMessage(ACLMessage.INFORM);
msg.addReceiver(agent.getName());
try {
msg.se... |
diff --git a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/model/DeclarationParser.java b/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/model/DeclarationParser.java
index c67fbc5a..8f9d8960 100644
--- a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/model/De... | true | true | private void doProperty(Tag tag) {
String name = null;
try {
name = tag.getAttribute(ATTR_NAME);
if (name == null) {
IllegalArgumentException e = new IllegalArgumentException("The 'property' tag must have 'name' attribute set at line " + tag.getLine());
Activator.log.error("[SCR] " + e.getMessage(), ... | private void doProperty(Tag tag) {
String name = null;
try {
name = tag.getAttribute(ATTR_NAME);
if (name == null) {
IllegalArgumentException e = new IllegalArgumentException("The 'property' tag must have 'name' attribute set at line " + tag.getLine());
Activator.log.error("[SCR] " + e.getMessage(), ... |
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
index 5abbe6c09..fefec11b9 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
@@ ... | true | true | private void sizeInit() {
/*
* We will use browsers table rendering algorithm to find proper column
* widths. If content and header take less space than available, we will
* divide extra space relatively to each column which has not width set.
*
* Overflow pixels are added to last column.
*
*/... | private void sizeInit() {
/*
* We will use browsers table rendering algorithm to find proper column
* widths. If content and header take less space than available, we will
* divide extra space relatively to each column which has not width set.
*
* Overflow pixels are added to last column.
*
*/... |
diff --git a/src/org/ohmage/service/UploadService.java b/src/org/ohmage/service/UploadService.java
index b4dd769..8c35d7a 100644
--- a/src/org/ohmage/service/UploadService.java
+++ b/src/org/ohmage/service/UploadService.java
@@ -1,494 +1,494 @@
package org.ohmage.service;
import com.commonsware.cwac.wakeful.Wakeful... | true | true | private void uploadSurveyResponses(Intent intent) {
String serverUrl = Config.DEFAULT_SERVER_URL;
SharedPreferencesHelper helper = new SharedPreferencesHelper(this);
String username = helper.getUsername();
String hashedPassword = helper.getHashedPassword();
boolean uploadErrorOccurred = false;
boolean a... | private void uploadSurveyResponses(Intent intent) {
String serverUrl = Config.DEFAULT_SERVER_URL;
SharedPreferencesHelper helper = new SharedPreferencesHelper(this);
String username = helper.getUsername();
String hashedPassword = helper.getHashedPassword();
boolean uploadErrorOccurred = false;
boolean a... |
diff --git a/drools-planner-core/src/main/java/org/drools/planner/config/constructionheuristic/greedyFit/GreedyFitSolverPhaseConfig.java b/drools-planner-core/src/main/java/org/drools/planner/config/constructionheuristic/greedyFit/GreedyFitSolverPhaseConfig.java
index 5f9c0263..0a519b73 100644
--- a/drools-planner-core... | true | true | private GreedyDecider buildGreedyDecider(SolutionDescriptor solutionDescriptor, EnvironmentMode environmentMode) {
DefaultGreedyDecider greedyDecider = new DefaultGreedyDecider();
PickEarlyGreedyFitType pickEarlyGreedyFitType = (this.pickEarlyGreedyFitType == null)
? PickEarlyGreedyF... | private GreedyDecider buildGreedyDecider(SolutionDescriptor solutionDescriptor, EnvironmentMode environmentMode) {
DefaultGreedyDecider greedyDecider = new DefaultGreedyDecider();
PickEarlyGreedyFitType pickEarlyGreedyFitType = (this.pickEarlyGreedyFitType == null)
? PickEarlyGreedyF... |
diff --git a/jgsf/src/main/java/com/jenjinstudios/message/ExecutablePublicKeyMessage.java b/jgsf/src/main/java/com/jenjinstudios/message/ExecutablePublicKeyMessage.java
index e0b55d2f..cc839b57 100644
--- a/jgsf/src/main/java/com/jenjinstudios/message/ExecutablePublicKeyMessage.java
+++ b/jgsf/src/main/java/com/jenjins... | true | true | public void runASync() {
Message aesMessage = new Message("AESKeyMessage");
byte[] encryptedAESKey = MessageInputStream.NO_KEY;
try // TODO Make sure error is handled gracefully
{
// Generate an AES key.
KeyGenerator keyGenerator = KeyGenerator.getInstance("AES");
keyGenerator.init(128);
byte[] aes... | public void runASync() {
Message aesMessage = new Message("AESKeyMessage");
byte[] encryptedAESKey = MessageInputStream.NO_KEY;
try
{
// Generate an AES key.
KeyGenerator keyGenerator = KeyGenerator.getInstance("AES");
keyGenerator.init(128);
byte[] aesKeyBytes = keyGenerator.generateKey().getEncod... |
diff --git a/src/com/example/memopad/MemoList.java b/src/com/example/memopad/MemoList.java
index 929b285..d940e7c 100644
--- a/src/com/example/memopad/MemoList.java
+++ b/src/com/example/memopad/MemoList.java
@@ -1,39 +1,39 @@
package com.example.memopad;
import android.app.ListActivity;
import android.os.Bundle;
... | true | true | protected void onCreate(Bundle savedInstanceState)
{
setContentView(R.layout.memolist);
showMemos(getMemos());
super.onCreate(savedInstanceState);
}
| protected void onCreate(Bundle savedInstanceState)
{
setContentView(R.layout.memolist);
showMemos(getMemos());//getMemos() is Undefined.
super.onCreate(savedInstanceState);
}
|
diff --git a/SARA/src/sara/AddHighlightServlet.java b/SARA/src/sara/AddHighlightServlet.java
index 1fa5a9c..01316eb 100644
--- a/SARA/src/sara/AddHighlightServlet.java
+++ b/SARA/src/sara/AddHighlightServlet.java
@@ -1,64 +1,64 @@
package sara;
import com.google.gson.Gson;
import java.io.IOException;
import javax... | true | true | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
System.out.println(req.getParameter("nodeID"));
if(req.getParameter("nodeID") != null) { //all we actually need is a selection to create a highlight.
String document = req.getParameter("document");
System.ou... | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
System.out.println(req.getParameter("nodeID"));
if(req.getParameter("nodeID") != null) { //all we actually need is a selection to create a highlight.
String document = req.getParameter("document");
System.ou... |
diff --git a/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java b/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java
index e9974c0fd..cfc70153e 100644
--- a/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java
+++ b/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java
@@ -1,182 +1,182 @@
/*... | false | true | public RopMethod process() {
int szBlocks = blocks.size();
// indexed by label
BitSet toDelete = new BitSet(blocks.getMaxLabel());
// For each non-deleted block...
for (int bindex = 0; bindex < szBlocks; bindex++) {
BasicBlock b = blocks.get(bindex);
... | public RopMethod process() {
int szBlocks = blocks.size();
// indexed by label
BitSet toDelete = new BitSet(blocks.getMaxLabel());
// For each non-deleted block...
for (int bindex = 0; bindex < szBlocks; bindex++) {
BasicBlock b = blocks.get(bindex);
... |
diff --git a/hibernate/src/main/java/woko/hibernate/HibernateTxInterceptor.java b/hibernate/src/main/java/woko/hibernate/HibernateTxInterceptor.java
index 529a7ef6..5c343e56 100644
--- a/hibernate/src/main/java/woko/hibernate/HibernateTxInterceptor.java
+++ b/hibernate/src/main/java/woko/hibernate/HibernateTxIntercepto... | true | true | public Resolution intercept(ExecutionContext context) throws Exception {
LifecycleStage stage = context.getLifecycleStage();
if (stage==LifecycleStage.RequestInit) {
Transaction tx = getSessionFactory(context).getCurrentSession().beginTransaction();
log.debug("Started transaction : " + tx);
}... | public Resolution intercept(ExecutionContext context) throws Exception {
LifecycleStage stage = context.getLifecycleStage();
if (stage==LifecycleStage.RequestInit) {
Transaction tx = getSessionFactory(context).getCurrentSession().beginTransaction();
log.debug("Started transaction : " + tx);
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.