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/test/special/Javac.java b/test/special/Javac.java
index 1564f672..fa0d7241 100644
--- a/test/special/Javac.java
+++ b/test/special/Javac.java
@@ -1,17 +1,17 @@
package test.special;
import javax.tools.*;
public class Javac {
- public static void main(String[] args) {
- if (args.length < 1) {
- S... | false | true | public static void main(String[] args) {
if (args.length < 1) {
System.out.println("Syntax: java Javac [classes]");
return;
}
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
int result = compiler.run(null, null, null, args);
if (result != 0) {
System.out.println("Compiler failed.");
... | public static void main(String[] args) {
if (args.length < 1) {
System.out.println("Syntax: java Javac [classes]");
return;
}
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
int result = compiler.run(null, null, null, args);
if (result != 0) {
System.out.println("Compiler failed... |
diff --git a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java
index 3c569d9f9..42a91a4e7 100644
--- a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java
+++ b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetI... | true | true | public void doGet(final HttpServletRequest request,
final HttpServletResponse response
) throws ServletException, IOException {
Map<String,String[]> pmap = request.getParameterMap();
try {
ServletContext context = getServletContext();
final FSImage nnImage =... | public void doGet(final HttpServletRequest request,
final HttpServletResponse response
) throws ServletException, IOException {
Map<String,String[]> pmap = request.getParameterMap();
try {
ServletContext context = getServletContext();
final FSImage nnImage =... |
diff --git a/src/java/org/apache/bcel/generic/MethodGen.java b/src/java/org/apache/bcel/generic/MethodGen.java
index df5eefab..5b4b074f 100644
--- a/src/java/org/apache/bcel/generic/MethodGen.java
+++ b/src/java/org/apache/bcel/generic/MethodGen.java
@@ -1,1123 +1,1125 @@
/*
* Copyright 2000-2004 The Apache Softwar... | true | true | public MethodGen(Method m, String class_name, ConstantPoolGen cp) {
this(
m.getAccessFlags(),
Type.getReturnType(m.getSignature()),
Type.getArgumentTypes(m.getSignature()),
null /* may be overridden anyway */
,
m.getName(),
class_name,
((m.getAccessFlags() & (Constants.ACC_ABST... | public MethodGen(Method m, String class_name, ConstantPoolGen cp) {
this(
m.getAccessFlags(),
Type.getReturnType(m.getSignature()),
Type.getArgumentTypes(m.getSignature()),
null /* may be overridden anyway */
,
m.getName(),
class_name,
((m.getAccessFlags() & (Constants.ACC_ABST... |
diff --git a/src/main/java/com/ids/controllers/DeleteController.java b/src/main/java/com/ids/controllers/DeleteController.java
index 56d0d6d..81b3a8a 100644
--- a/src/main/java/com/ids/controllers/DeleteController.java
+++ b/src/main/java/com/ids/controllers/DeleteController.java
@@ -1,412 +1,412 @@
package com.ids.co... | false | true | public String getMethodOne(
HttpServletResponse response,
HttpServletRequest request,
ModelMap model) {
try{
logger.warning("Entering application via GEt");
logger.warning("excelDownload: "+request.getParameter("excelDownload"));
GetBeansFromContext gcfc = new GetBeansFromContext... | public String getMethodOne(
HttpServletResponse response,
HttpServletRequest request,
ModelMap model) {
try{
logger.warning("Entering application via GEt");
logger.warning("excelDownload: "+request.getParameter("excelDownload"));
GetBeansFromContext gcfc = new GetBeansFromContext... |
diff --git a/arquillian/classpath/src/main/java/org/jboss/forge/arquillian/ForgeDeployableContainer.java b/arquillian/classpath/src/main/java/org/jboss/forge/arquillian/ForgeDeployableContainer.java
index 70f045716..bc8b24317 100644
--- a/arquillian/classpath/src/main/java/org/jboss/forge/arquillian/ForgeDeployableCont... | true | true | public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException
{
if (undeploying)
{
undeploying = false;
cleanup();
}
Deployment deployment = deploymentInstance.get();
final AddonId addonToDeploy = getAddonEntry(deployment);
File destDir = repo... | public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException
{
if (undeploying)
{
undeploying = false;
cleanup();
}
Deployment deployment = deploymentInstance.get();
final AddonId addonToDeploy = getAddonEntry(deployment);
File destDir = repo... |
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgCat.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgCat.java
index ea67b4695..6698f9b74 100644
--- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgCat.java
+++ b/svnkit/src/main/java/org/tmatesoft/sv... | true | true | protected Long run(SVNWCContext context) throws SVNException {
SVNNodeKind kind = context.readKind(getFirstTarget(), false);
if (kind == SVNNodeKind.UNKNOWN || kind == SVNNodeKind.NONE) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is... | protected Long run(SVNWCContext context) throws SVNException {
SVNNodeKind kind = context.readKind(getFirstTarget(), false);
if (kind == SVNNodeKind.UNKNOWN || kind == SVNNodeKind.NONE) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is... |
diff --git a/Meteorolog-a-AguasCalientes/src/java/org/meteorologaaguascalientes/view/History.java b/Meteorolog-a-AguasCalientes/src/java/org/meteorologaaguascalientes/view/History.java
index 73c7506..d6a7a6d 100644
--- a/Meteorolog-a-AguasCalientes/src/java/org/meteorologaaguascalientes/view/History.java
+++ b/Meteorol... | true | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Properties prop = new Properties();
prop.load(getServletContext().getResourceAsStream("/WEB-INF/config.properties"));
response.setContentType("text/csv;c... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Properties prop = new Properties();
prop.load(getServletContext().getResourceAsStream("/WEB-INF/config.properties"));
response.setContentType("text/csv;c... |
diff --git a/ted/ui/addshowdialog/AddShowDialog.java b/ted/ui/addshowdialog/AddShowDialog.java
index 8bb0c4f..0244569 100644
--- a/ted/ui/addshowdialog/AddShowDialog.java
+++ b/ted/ui/addshowdialog/AddShowDialog.java
@@ -1,548 +1,548 @@
package ted.ui.addshowdialog;
import java.awt.Color;
import java.awt.Component;
... | false | true | private void initGUI() {
try
{
this.episodeChooserPanel.setActivityStatus(false);
FormLayout thisLayout = new FormLayout(
"max(p;5dlu), 68dlu:grow, max(p;68dlu), max(p;15dlu), 9dlu, 5dlu:grow, max(p;15dlu), 5dlu, 85dlu, max(p;5dlu)",
"max(p;5dlu), fill:max(p;15dlu), 5dlu, 10dlu:grow, max(p;5dlu),... | private void initGUI() {
try
{
this.episodeChooserPanel.setActivityStatus(false);
FormLayout thisLayout = new FormLayout(
"max(p;5dlu), 68dlu:grow, max(p;68dlu), max(p;15dlu), 5dlu:grow, max(p;15dlu), 5dlu, 85dlu, max(p;5dlu)",
"max(p;5dlu), fill:max(p;15dlu), 5dlu, 10dlu:grow, max(p;5dlu), max(p... |
diff --git a/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java b/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java
index 7d0507c0c..500eddccb 100644
--- a/connectors/sharepoi... | false | true | public List<String> getAccessTokens( String site, String userLoginName )
throws ManifoldCFException
{
try
{
if ( site.compareTo("/") == 0 )
site = ""; // root case
UserGroupWS userService = new UserGroupWS( baseUrl + site, userName, password, configuration, httpClient );
... | public List<String> getAccessTokens( String site, String userLoginName )
throws ManifoldCFException
{
try
{
if ( site.compareTo("/") == 0 )
site = ""; // root case
UserGroupWS userService = new UserGroupWS( baseUrl + site, userName, password, configuration, httpClient );
... |
diff --git a/src/com/arantius/tivocommander/Content.java b/src/com/arantius/tivocommander/Content.java
index a1ebaa6..fd403a0 100644
--- a/src/com/arantius/tivocommander/Content.java
+++ b/src/com/arantius/tivocommander/Content.java
@@ -1,203 +1,211 @@
package com.arantius.tivocommander;
import java.io.IOException;... | true | true | public void onResponse(MindRpcResponse response) {
setContentView(R.layout.content);
mContent = response.getBody().path("content").path(0);
mImageProgress = findViewById(R.id.content_image_progress);
mRecordingId =
mContent.path("recordingForContentId").pat... | public void onResponse(MindRpcResponse response) {
if ("error".equals(response.getBody().path("type").getValueAsText())) {
if ("staleData".equals(response.getBody().path("code"))) {
Toast.makeText(getBaseContext(), "Stale data error, panicing.",
Toast.LENGTH... |
diff --git a/src/main/java/edu/jhu/hlt/concrete/agiga/AgigaConverter.java b/src/main/java/edu/jhu/hlt/concrete/agiga/AgigaConverter.java
index 3f9863b..37deef1 100644
--- a/src/main/java/edu/jhu/hlt/concrete/agiga/AgigaConverter.java
+++ b/src/main/java/edu/jhu/hlt/concrete/agiga/AgigaConverter.java
@@ -1,361 +1,361 @@... | false | true | public static Tokenization convertTokenization(AgigaSentence sent) {
TokenTagging.Builder lemmaBuilder = TokenTagging.newBuilder()
.setUuid(IdUtil.generateUUID())
.setMetadata(metadata());
TokenTagging.Builder posBuilder = TokenTagging.newBuilder()
.setUuid(IdUtil.generateUUID())
.setMetadata(metadat... | public static Tokenization convertTokenization(AgigaSentence sent) {
TokenTagging.Builder lemmaBuilder = TokenTagging.newBuilder()
.setUuid(IdUtil.generateUUID())
.setMetadata(metadata());
TokenTagging.Builder posBuilder = TokenTagging.newBuilder()
.setUuid(IdUtil.generateUUID())
.setMetadata(metadat... |
diff --git a/SoftwareProjectDay/src/edu/se/se441/threads/Manager.java b/SoftwareProjectDay/src/edu/se/se441/threads/Manager.java
index 8be2d7c..7539e2c 100644
--- a/SoftwareProjectDay/src/edu/se/se441/threads/Manager.java
+++ b/SoftwareProjectDay/src/edu/se/se441/threads/Manager.java
@@ -1,230 +1,230 @@
package edu.se... | false | true | public void checkConditions(){
if(office.getTime() >= 1000 && !attendedMeeting1){
try {
long startCheck = System.currentTimeMillis();
System.out.println(office.getStringTime() + " Manager goes to meeting");
sleep(600);
long endCheck = System.currentTimeMillis();
timeSpentInMeetings += (... | public void checkConditions(){
if(office.getTime() >= 1000 && !attendedMeeting1){
try {
long startCheck = System.currentTimeMillis();
System.out.println(office.getStringTime() + " Manager goes to meeting");
sleep(600);
long endCheck = System.currentTimeMillis();
timeSpentInMeetings += (... |
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java
index 6d3212296..8711c8252 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java
+++ b/hbase-s... | true | true | private void checkAndDelete(Path filePath) throws IOException, IllegalArgumentException {
if (!validate(filePath)) {
LOG.warn("Found a wrongly formatted file: " + filePath.getName() + "deleting it.");
if (!this.fs.delete(filePath, true)) {
LOG.warn("Attempted to delete:" + filePath
... | private void checkAndDelete(Path filePath) throws IOException, IllegalArgumentException {
if (!validate(filePath)) {
LOG.warn("Found a wrongly formatted file: " + filePath.getName() + "deleting it.");
if (!this.fs.delete(filePath, true)) {
LOG.warn("Attempted to delete:" + filePath
... |
diff --git a/src/main/java/edu/sc/seis/sod/TotalLoserEventCleaner.java b/src/main/java/edu/sc/seis/sod/TotalLoserEventCleaner.java
index cf12e7295..1db11a9a3 100644
--- a/src/main/java/edu/sc/seis/sod/TotalLoserEventCleaner.java
+++ b/src/main/java/edu/sc/seis/sod/TotalLoserEventCleaner.java
@@ -1,64 +1,64 @@
package ... | true | true | public void run() {
try {
logger.debug("Working");
MicroSecondDate ageAgo = ClockUtil.now().subtract(lagInterval);
Query q = eventdb.getSession().createQuery(" from "+StatefulEvent.class.getName()+" e where e.statusAsShort = 258 and e.preferred.originTime.time < :ageAgo"... | public void run() {
try {
logger.debug("Working");
MicroSecondDate ageAgo = ClockUtil.now().subtract(lagInterval);
Query q = eventdb.getSession().createQuery(" from "+StatefulEvent.class.getName()+" e where e.status.standingint = 2 and e.preferred.originTime.time < :ageA... |
diff --git a/src/main/java/com/dacklabs/spookyaction/client/command/KeyToCommandConverter.java b/src/main/java/com/dacklabs/spookyaction/client/command/KeyToCommandConverter.java
index 6fe7826..fd0d98f 100755
--- a/src/main/java/com/dacklabs/spookyaction/client/command/KeyToCommandConverter.java
+++ b/src/main/java/com... | true | true | public void onKeyUp(int lineNumber, int cursorPosition, KeyUpEvent event) {
Command.Builder builder = Command.builder();
switch (event.getNativeKeyCode()) {
case KeyCodes.KEY_BACKSPACE:
if (cursorPosition <= 0) {
return;
}
event.stopPropagation();
builder.withOffset(cursorPosition);
builder.... | public void onKeyUp(int lineNumber, int cursorPosition, KeyUpEvent event) {
Command.Builder builder = Command.builder();
switch (event.getNativeKeyCode()) {
case KeyCodes.KEY_BACKSPACE:
if (cursorPosition <= 0) {
return;
}
event.stopPropagation();
builder.withOffset(cursorPosition + 1); // afte... |
diff --git a/core/src/org/riotfamily/core/dao/InMemoryRiotDao.java b/core/src/org/riotfamily/core/dao/InMemoryRiotDao.java
index d5a5788c6..3ee29a7d5 100644
--- a/core/src/org/riotfamily/core/dao/InMemoryRiotDao.java
+++ b/core/src/org/riotfamily/core/dao/InMemoryRiotDao.java
@@ -1,125 +1,125 @@
/* Licensed under the ... | true | true | public Collection<?> list(Object parent, ListParams params)
throws DataAccessException {
try {
Collection<?> items = listInternal(parent);
ArrayList<Object> list = Generics.newArrayList(items.size());
for (Object item : items) {
if (filterMatches(item, params) && searchMatches(item, params)) {
... | public Collection<?> list(Object parent, ListParams params)
throws DataAccessException {
try {
Collection<?> items = listInternal(parent);
ArrayList<Object> list = Generics.newArrayList(items.size());
for (Object item : items) {
if (filterMatches(item, params) && searchMatches(item, params)) {
... |
diff --git a/src/main/java/org/weymouth/demo/Main.java b/src/main/java/org/weymouth/demo/Main.java
index 14a71e7..cabf671 100755
--- a/src/main/java/org/weymouth/demo/Main.java
+++ b/src/main/java/org/weymouth/demo/Main.java
@@ -1,29 +1,28 @@
package org.weymouth.demo;
import org.weymouth.demo.model.Data;
import o... | true | true | public static void main(String[] args) {
Input in = new Input();
Process worker = new Process();
Output out = new Output();
Data data;
while ((data = in.next()) != null){
Results r = worker.process(data);
out.report(r);
junk;
}
}
| public static void main(String[] args) {
Input in = new Input();
Process worker = new Process();
Output out = new Output();
Data data;
while ((data = in.next()) != null){
Results r = worker.process(data);
out.report(r);
}
}
|
diff --git a/java/src/com/google/template/soy/data/SoyData.java b/java/src/com/google/template/soy/data/SoyData.java
index 35198e5..f902194 100644
--- a/java/src/com/google/template/soy/data/SoyData.java
+++ b/java/src/com/google/template/soy/data/SoyData.java
@@ -1,171 +1,174 @@
/*
* Copyright 2008 Google Inc.
*
... | false | true | public static SoyData createFromExistingData(Object obj) {
if (obj == null) {
return NullData.INSTANCE;
} else if (obj instanceof SoyData) {
return (SoyData) obj;
} else if (obj instanceof String) {
return new StringData((String) obj);
} else if (obj instanceof Boolean) {
retu... | public static SoyData createFromExistingData(Object obj) {
if (obj == null) {
return NullData.INSTANCE;
} else if (obj instanceof SoyData) {
return (SoyData) obj;
} else if (obj instanceof String) {
return new StringData((String) obj);
} else if (obj instanceof Boolean) {
retu... |
diff --git a/src/main/java/me/desht/scrollingmenusign/spout/SpoutViewPopup.java b/src/main/java/me/desht/scrollingmenusign/spout/SpoutViewPopup.java
index e9f9358..f1a7688 100644
--- a/src/main/java/me/desht/scrollingmenusign/spout/SpoutViewPopup.java
+++ b/src/main/java/me/desht/scrollingmenusign/spout/SpoutViewPopup.... | true | true | public SpoutViewPopup(SpoutPlayer sp, SMSSpoutView view) {
this.sp = sp;
this.view = view;
this.poppedUp = false;
Screen mainScreen = sp.getMainScreen();
title = new GenericLabel(view.getMenu().getTitle());
title.setX((mainScreen.getWidth() - TITLE_WIDTH) / 2).setY(5).setWidth(TITLE_WIDTH).setHeight(TITL... | public SpoutViewPopup(SpoutPlayer sp, SMSSpoutView view) {
this.sp = sp;
this.view = view;
this.poppedUp = false;
Screen mainScreen = sp.getMainScreen();
title = new GenericLabel(view.getMenu().getTitle());
title.setX((mainScreen.getWidth() - TITLE_WIDTH) / 2).setY(5).setWidth(TITLE_WIDTH).setHeight(TITL... |
diff --git a/src/main/java/com/concursive/connect/web/modules/admin/actions/AdminSync.java b/src/main/java/com/concursive/connect/web/modules/admin/actions/AdminSync.java
index cbadaae..e270269 100644
--- a/src/main/java/com/concursive/connect/web/modules/admin/actions/AdminSync.java
+++ b/src/main/java/com/concursive/... | true | true | public String executeCommandStartSync(ActionContext context) {
if (!getUser(context).getAccessAdmin()) {
return "PermissionError";
}
try {
Scheduler scheduler = (Scheduler) context.getServletContext().getAttribute(Constants.SCHEDULER);
Vector syncStatus = (Vector) scheduler.getContext()... | public String executeCommandStartSync(ActionContext context) {
if (!getUser(context).getAccessAdmin()) {
return "PermissionError";
}
try {
Scheduler scheduler = (Scheduler) context.getServletContext().getAttribute(Constants.SCHEDULER);
Vector syncStatus = (Vector) scheduler.getContext()... |
diff --git a/src/worker/GeneSetMerger.java b/src/worker/GeneSetMerger.java
index 0ea44bb..621fcdd 100644
--- a/src/worker/GeneSetMerger.java
+++ b/src/worker/GeneSetMerger.java
@@ -1,266 +1,267 @@
package worker;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import jav... | true | true | public void mergeWeightedGeneSets(String path, int numFiles, float precision, boolean finalOutput) throws IOException{
if(!path.endsWith("/")) path = path + "/";
int start = id * numFiles/totalComputers;
int end = (id+1) * numFiles/totalComputers;
BufferedReader br;
ArrayList<float[]> wVecs = new ArrayList<f... | public void mergeWeightedGeneSets(String path, int numFiles, float precision, boolean finalOutput) throws IOException{
if(!path.endsWith("/")) path = path + "/";
int start = id * numFiles/totalComputers;
int end = (id+1) * numFiles/totalComputers;
BufferedReader br;
ArrayList<float[]> wVecs = new ArrayList<f... |
diff --git a/stripes/src/net/sourceforge/stripes/controller/multipart/CommonsMultipartWrapper.java b/stripes/src/net/sourceforge/stripes/controller/multipart/CommonsMultipartWrapper.java
index 0369191..77a59a0 100644
--- a/stripes/src/net/sourceforge/stripes/controller/multipart/CommonsMultipartWrapper.java
+++ b/strip... | false | true | public FileBean getFileParameterValue(String name) {
final FileItem item = this.files.get(name);
if (item == null) {
return null;
}
else {
// Attempt to ensure the file name is just the basename with no path included
String basename = item.getName(... | public FileBean getFileParameterValue(String name) {
final FileItem item = this.files.get(name);
String filename = item.getName();
if (item == null || ((filename == null || filename.length() == 0) && item.getSize() == 0)) {
return null;
}
else {
// Att... |
diff --git a/src/main/java/org/spout/engine/SpoutServer.java b/src/main/java/org/spout/engine/SpoutServer.java
index 28b968ddd..6a62aede3 100644
--- a/src/main/java/org/spout/engine/SpoutServer.java
+++ b/src/main/java/org/spout/engine/SpoutServer.java
@@ -1,280 +1,285 @@
/*
* This file is part of Spout.
*
* Cop... | true | true | public boolean bind(SocketAddress address, BootstrapProtocol protocol) {
if (protocol == null) {
throw new IllegalArgumentException("Protocol cannot be null");
}
if (bootstrapProtocols.containsKey(address)) {
return false;
}
bootstrapProtocols.put(address, protocol);
group.add(bootstrap.bind(address)... | public boolean bind(SocketAddress address, BootstrapProtocol protocol) {
if (protocol == null) {
throw new IllegalArgumentException("Protocol cannot be null");
}
if (bootstrapProtocols.containsKey(address)) {
return false;
}
bootstrapProtocols.put(address, protocol);
try {
group.add(bootstrap.bind... |
diff --git a/src/com/buzzingandroid/ui/ViewAspectRatioMeasurer.java b/src/com/buzzingandroid/ui/ViewAspectRatioMeasurer.java
index e25b4c2..f34c860 100644
--- a/src/com/buzzingandroid/ui/ViewAspectRatioMeasurer.java
+++ b/src/com/buzzingandroid/ui/ViewAspectRatioMeasurer.java
@@ -1,131 +1,131 @@
package com.buzzingand... | true | true | public void measure(int widthMeasureSpec, int heightMeasureSpec, double aspectRatio) {
int widthMode = MeasureSpec.getMode( widthMeasureSpec );
int widthSize = widthMode == MeasureSpec.UNSPECIFIED ? Integer.MAX_VALUE : MeasureSpec.getSize( widthMeasureSpec );
int heightMode = MeasureSpec.getMode( heightMeasureSp... | public void measure(int widthMeasureSpec, int heightMeasureSpec, double aspectRatio) {
int widthMode = MeasureSpec.getMode( widthMeasureSpec );
int widthSize = widthMode == MeasureSpec.UNSPECIFIED ? Integer.MAX_VALUE : MeasureSpec.getSize( widthMeasureSpec );
int heightMode = MeasureSpec.getMode( heightMeasureSp... |
diff --git a/src/de/robv/android/xposed/installer/PackageChangeReceiver.java b/src/de/robv/android/xposed/installer/PackageChangeReceiver.java
index b05d758..5e18985 100644
--- a/src/de/robv/android/xposed/installer/PackageChangeReceiver.java
+++ b/src/de/robv/android/xposed/installer/PackageChangeReceiver.java
@@ -1,3... | true | true | static synchronized void updateNativeLibs(final Context context, final Set<String> enabledModules) {
new Thread() {
@Override
public void run() {
Log.i(XposedInstallerActivity.TAG, "updating native libraries");
try {
new ProcessBuilder("sh", "-c", "rm -r /data/xposed/lib/*").start().waitFor()... | static synchronized void updateNativeLibs(final Context context, final Set<String> enabledModules) {
new Thread() {
@Override
public void run() {
Log.i(XposedInstallerActivity.TAG, "updating native libraries");
try {
new ProcessBuilder("sh", "-c", "rm -r /data/xposed/lib/*").start().waitFor()... |
diff --git a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java b/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
index 0bcfd0bda..b179b85cc 100644
--- a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
+++ b/v7/mediarouter/src/androi... | 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/rwiki-util/radeox/src/java/org/radeox/macro/MacroListMacro.java b/rwiki-util/radeox/src/java/org/radeox/macro/MacroListMacro.java
index ffa60e79..71ec5676 100755
--- a/rwiki-util/radeox/src/java/org/radeox/macro/MacroListMacro.java
+++ b/rwiki-util/radeox/src/java/org/radeox/macro/MacroListMacro.java
@@ -1... | false | true | public Writer appendTo(Writer writer) throws IOException
{
List macroList = MacroRepository.getInstance().getPlugins();
Collections.sort(macroList);
Iterator iterator = macroList.iterator();
writer.write(Messages.getString("MacroListMacro.2")); //$NON-NLS-1$
writer.write("Macro|Description|Parameters\n"); /... | public Writer appendTo(Writer writer) throws IOException
{
List macroList = MacroRepository.getInstance().getPlugins();
Collections.sort(macroList);
Iterator iterator = macroList.iterator();
writer.write(Messages.getString("MacroListMacro.2")); //$NON-NLS-1$
writer.write("Macro|Description|Parameters\n"); /... |
diff --git a/src/main/java/org/eknet/swing/uploadfield/IconsList.java b/src/main/java/org/eknet/swing/uploadfield/IconsList.java
index 25457a8..1c8dc14 100644
--- a/src/main/java/org/eknet/swing/uploadfield/IconsList.java
+++ b/src/main/java/org/eknet/swing/uploadfield/IconsList.java
@@ -1,135 +1,140 @@
/*
* Copyrig... | true | true | public IconsList() {
setPreviewSize(new Dimension(25, 25));
setModel(new DefaultListModel());
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
setLayoutOrientation(JList.HORIZONTAL_WRAP);
setVisibleRowCount(-1);
setCellRenderer(new DefaultListCellRenderer() {
@Override
publi... | public IconsList() {
setPreviewSize(new Dimension(25, 25));
setModel(new DefaultListModel());
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
setLayoutOrientation(JList.HORIZONTAL_WRAP);
setVisibleRowCount(-1);
setCellRenderer(new DefaultListCellRenderer() {
@Override
publi... |
diff --git a/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java b/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java
index 97cef235..103a2bff 100755
--- a/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java
+++ b/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java
@... | false | true | public void setInteractionMode(final String interactionMode) {
try {
if (DEBUG) {
if (LOG.isDebugEnabled()) {
LOG.debug("setInteractionMode(" + interactionMode + ")\nAlter InteractionMode:"
+ this.interactionMode + "",
... | public void setInteractionMode(final String interactionMode) {
try {
if (DEBUG) {
if (LOG.isDebugEnabled()) {
LOG.debug("setInteractionMode(" + interactionMode + ")\nAlter InteractionMode:"
+ this.interactionMode + "",
... |
diff --git a/src/uk/ac/nott/mrl/homework/client/ui/DeviceMetadataDialog.java b/src/uk/ac/nott/mrl/homework/client/ui/DeviceMetadataDialog.java
index 5a8d369..7cb8c0c 100644
--- a/src/uk/ac/nott/mrl/homework/client/ui/DeviceMetadataDialog.java
+++ b/src/uk/ac/nott/mrl/homework/client/ui/DeviceMetadataDialog.java
@@ -1,1... | true | true | public DeviceMetadataDialog(Item item, DevicesService service)
{
initWidget(uiBinder.createAndBindUi(this));
nameBox.setName(item.getName());
typeList.setVisibleItemCount(1);
ownerList.setVisibleItemCount(1);
setMetadata(metadata);
service.getMetadata(new RequestCallback()
{
@Override
public void... | public DeviceMetadataDialog(Item item, DevicesService service)
{
initWidget(uiBinder.createAndBindUi(this));
nameBox.setText(item.getName());
typeList.setVisibleItemCount(1);
ownerList.setVisibleItemCount(1);
setMetadata(metadata);
service.getMetadata(new RequestCallback()
{
@Override
public void... |
diff --git a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java b/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java
index cfc91ac6..94aa00ed 100644
--- a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java
+++ b/src/plugins/apple/src/com/jivesoftwa... | false | true | public void initialize() {
if (Spark.isMac()) {
roomListener = new DockRoomListener();
SparkManager.getChatManager().addChatRoomListener(roomListener);
// Remove the About Menu Item from the help menu
MainWindow mainWindow = SparkManager.getMainWindow();
... | public void initialize() {
if (Spark.isMac()) {
roomListener = new DockRoomListener();
SparkManager.getChatManager().addChatRoomListener(roomListener);
// Remove the About Menu Item from the help menu
MainWindow mainWindow = SparkManager.getMainWindow();
... |
diff --git a/src/com/semaphore/smproperties/SMOndemandN4Property.java b/src/com/semaphore/smproperties/SMOndemandN4Property.java
index 8a192e0..ab82fed 100644
--- a/src/com/semaphore/smproperties/SMOndemandN4Property.java
+++ b/src/com/semaphore/smproperties/SMOndemandN4Property.java
@@ -1,59 +1,59 @@
/* Semaphore Ma... | true | true | public SMOndemandN4Property() {
super();
io_is_busy.setDefault(1);
sampling_down_factor.setDefault(4);
sampling_down_factor.setDynamic(false);
sampling_rate.setDefault(20000);
sampling_rate.setValue(20000);
up_threshold.setDefault(95);
up_threshold.se... | public SMOndemandN4Property() {
super();
io_is_busy.setDefault(1);
sampling_down_factor.setDefault(4);
sampling_down_factor.setDynamic(false);
sampling_rate.setDefault(20000);
sampling_rate.setValue(20000);
up_threshold.setDefault(95);
up_threshold.se... |
diff --git a/GlassLine/src/engine/JaniceCF/agent/ConveyorAgent.java b/GlassLine/src/engine/JaniceCF/agent/ConveyorAgent.java
index 9870a7b..abfa405 100644
--- a/GlassLine/src/engine/JaniceCF/agent/ConveyorAgent.java
+++ b/GlassLine/src/engine/JaniceCF/agent/ConveyorAgent.java
@@ -1,208 +1,209 @@
package engine.JaniceC... | true | true | public void eventFired(TChannel channel, TEvent event, Object[] args) {
//Sensors
if (channel == TChannel.SENSOR) {
if (event == TEvent.SENSOR_GUI_PRESSED) {
if (args[0].equals(conveyorIndex*2)) { //Front Sensor
if (status != ConveyorStatus.GlassAtEnd) {
Integer[] newArgs = new Integer[1];
... | public void eventFired(TChannel channel, TEvent event, Object[] args) {
//Sensors
if (channel == TChannel.SENSOR) {
if (event == TEvent.SENSOR_GUI_PRESSED) {
if (args[0].equals(conveyorIndex*2)) { //Front Sensor
if (status != ConveyorStatus.GlassAtEnd) {
Integer[] newArgs = new Integer[1];
... |
diff --git a/user/src/com/google/gwt/user/client/ui/StackPanel.java b/user/src/com/google/gwt/user/client/ui/StackPanel.java
index 47e096851..88b3dbf85 100644
--- a/user/src/com/google/gwt/user/client/ui/StackPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/StackPanel.java
@@ -1,268 +1,266 @@
/*
* Copyright 2... | true | true | private boolean remove(Widget child, int index) {
if (child.getParent() != this) {
return false;
}
// Correct visible stack for new location.
if (visibleStack == index) {
visibleStack = -1;
} else if (visibleStack > index) {
--visibleStack;
}
// Calculate which internal... | private boolean remove(Widget child, int index) {
if (child.getParent() != this) {
return false;
}
// Correct visible stack for new location.
if (visibleStack == index) {
visibleStack = -1;
} else if (visibleStack > index) {
--visibleStack;
}
// Calculate which internal... |
diff --git a/snowman-common/src/main/java/com/sun/darkstar/example/snowman/common/util/CollisionManagerImpl.java b/snowman-common/src/main/java/com/sun/darkstar/example/snowman/common/util/CollisionManagerImpl.java
index ea6b64a..e45baf3 100644
--- a/snowman-common/src/main/java/com/sun/darkstar/example/snowman/common/... | true | true | public Vector3f getDestination(float x1, float z1, float x2, float z2, Spatial spatial) {
//generate the start and destination points
Vector3f start = new Vector3f(x1, EStats.SnowmanHeight.getValue()/2.0f, z1);
Vector3f destination = new Vector3f(x2, EStats.SnowmanHeight.getValue()/2.0f, z2)... | public Vector3f getDestination(float x1, float z1, float x2, float z2, Spatial spatial) {
//generate the start and destination points
Vector3f start = new Vector3f(x1, EStats.SnowmanHeight.getValue()/2.0f, z1);
Vector3f destination = new Vector3f(x2, EStats.SnowmanHeight.getValue()/2.0f, z2)... |
diff --git a/stilts-activity-ui/src/main/java/org/purl/wf4ever/astrotaverna/tjoin/ui/serviceprovider/StiltsServiceProvider.java b/stilts-activity-ui/src/main/java/org/purl/wf4ever/astrotaverna/tjoin/ui/serviceprovider/StiltsServiceProvider.java
index 56dbf44..eab2c74 100644
--- a/stilts-activity-ui/src/main/java/org/pu... | true | true | public void findServiceDescriptionsAsync(
FindServiceDescriptionsCallBack callBack) {
// Use callback.status() for long-running searches
// callBack.status("Resolving example services");
List<ServiceDescription> results = new ArrayList<ServiceDescription>();
// FIXME: Implement the actual service search/l... | public void findServiceDescriptionsAsync(
FindServiceDescriptionsCallBack callBack) {
// Use callback.status() for long-running searches
// callBack.status("Resolving example services");
List<ServiceDescription> results = new ArrayList<ServiceDescription>();
// FIXME: Implement the actual service search/l... |
diff --git a/src/me/coolblinger/signrank/SignRank.java b/src/me/coolblinger/signrank/SignRank.java
index 5f375d4..e5a50e2 100644
--- a/src/me/coolblinger/signrank/SignRank.java
+++ b/src/me/coolblinger/signrank/SignRank.java
@@ -1,92 +1,97 @@
package me.coolblinger.signrank;
import com.nijiko.permissions.Permission... | true | true | public void onEnable() {
PluginDescriptionFile pdFile = this.getDescription();
PluginManager pm = this.getServer().getPluginManager();
Plugin permissionsBukkitPlugin = pm.getPlugin("PermissionsBukkit");
if (permissionsBukkitPlugin == null) {
Plugin permissions3Plugin = pm.getPlugin("Permissions");
if (pe... | public void onEnable() {
PluginDescriptionFile pdFile = this.getDescription();
PluginManager pm = this.getServer().getPluginManager();
Plugin permissionsBukkitPlugin = pm.getPlugin("PermissionsBukkit");
if (permissionsBukkitPlugin == null) {
Plugin permissions3Plugin = pm.getPlugin("Permissions");
if (pe... |
diff --git a/src/server/src/main/java/org/apache/accumulo/server/master/LiveTServerSet.java b/src/server/src/main/java/org/apache/accumulo/server/master/LiveTServerSet.java
index 49b5d3a0e..d010825d8 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/master/LiveTServerSet.java
+++ b/src/server/src/main/ja... | true | true | public synchronized void scanServers() {
try {
final Set<TServerInstance> updates = new HashSet<TServerInstance>();
final Set<TServerInstance> doomed = new HashSet<TServerInstance>();
final String path = ZooUtil.getRoot(instance) + Constants.ZTSERVERS;
for (String server : getZooCac... | public synchronized void scanServers() {
try {
final Set<TServerInstance> updates = new HashSet<TServerInstance>();
final Set<TServerInstance> doomed = new HashSet<TServerInstance>();
final String path = ZooUtil.getRoot(instance) + Constants.ZTSERVERS;
for (String server : getZooCac... |
diff --git a/mindunit/src/main/java/org/ow2/mind/unit/Launcher.java b/mindunit/src/main/java/org/ow2/mind/unit/Launcher.java
index 98e088d..a0abb81 100644
--- a/mindunit/src/main/java/org/ow2/mind/unit/Launcher.java
+++ b/mindunit/src/main/java/org/ow2/mind/unit/Launcher.java
@@ -1,1410 +1,1410 @@
/**
* Copyright (C... | false | true | private Suite introspectInterfaceAndPrepareTestSuite(Definition suiteDef, String suiteDescription, Component currComp, Interface currItf,
Map<String, String> suiteClientItfsNameSignature,
List<Binding> containerBindings) {
assert suiteDef instanceof BindingContainer; // should be as a default anyway
Binding... | private Suite introspectInterfaceAndPrepareTestSuite(Definition suiteDef, String suiteDescription, Component currComp, Interface currItf,
Map<String, String> suiteClientItfsNameSignature,
List<Binding> containerBindings) {
assert suiteDef instanceof BindingContainer; // should be as a default anyway
Binding... |
diff --git a/src/org/omegat/core/machinetranslators/Google2Translate.java b/src/org/omegat/core/machinetranslators/Google2Translate.java
index 2ed3b10a..db524c90 100644
--- a/src/org/omegat/core/machinetranslators/Google2Translate.java
+++ b/src/org/omegat/core/machinetranslators/Google2Translate.java
@@ -1,144 +1,149 ... | true | true | protected String translate(Language sLang, Language tLang, String text) throws Exception {
String trText = text.length() > 5000 ? text.substring(0, 4997) + "..." : text;
String targetLang = tLang.getLanguageCode();
// Differentiate in target between simplified and traditional Chinese
... | protected String translate(Language sLang, Language tLang, String text) throws Exception {
String trText = text.length() > 5000 ? text.substring(0, 4997) + "..." : text;
String targetLang = tLang.getLanguageCode();
// Differentiate in target between simplified and traditional Chinese
... |
diff --git a/src/java/org/wings/session/SessionServlet.java b/src/java/org/wings/session/SessionServlet.java
index 14c4e74e..923d7f63 100644
--- a/src/java/org/wings/session/SessionServlet.java
+++ b/src/java/org/wings/session/SessionServlet.java
@@ -1,683 +1,683 @@
/*
* $Id$
* Copyright 2000,2005 wingS developmen... | false | true | public final synchronized void doGet(HttpServletRequest req,
HttpServletResponse response) {
SessionManager.setSession(session);
session.setServletRequest(req);
session.setServletResponse(response);
session.fireRequestEvent(SRequestEvent.REQU... | public final synchronized void doGet(HttpServletRequest req,
HttpServletResponse response) {
SessionManager.setSession(session);
session.setServletRequest(req);
session.setServletResponse(response);
session.fireRequestEvent(SRequestEvent.REQU... |
diff --git a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java b/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java
index 1863d53..12e1556 100644
--- a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java
+++ b/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java
@@ -1,124 +1,124 @@... | true | true | public void onEnable()
{
Util.initialize(this);
Util.setDebugging(true);
cs = new CommandSystem(this);
getConfig().options().copyDefaults(true);
saveConfig();
Config.load(getConfig());
playerManager = new PlayerManager(this);
publicWarpManager = new WarpManager(new MyConfig("public", this));
... | public void onEnable()
{
Util.initialize(this);
Util.setDebugging(true);
cs = new CommandSystem(this);
getConfig().options().copyDefaults(true);
saveConfig();
Config.load(getConfig());
playerManager = new PlayerManager(this);
publicWarpManager = new WarpManager(new MyConfig("public", this));
... |
diff --git a/src/cat/katzenfabrik/morsecodr/MainThread.java b/src/cat/katzenfabrik/morsecodr/MainThread.java
index ac9781b..7938328 100644
--- a/src/cat/katzenfabrik/morsecodr/MainThread.java
+++ b/src/cat/katzenfabrik/morsecodr/MainThread.java
@@ -1,102 +1,104 @@
package cat.katzenfabrik.morsecodr;
import java.io.... | false | true | public void run() {
while (true) {
synchronized (this) {
noKeyPressCount ++;
noKeyReleaseCount ++;
for (KeyMsg m: keyMsgQ) {
if (m.pressed) {
noKeyPressCount = 0;
... | public void run() {
while (true) {
synchronized (this) {
noKeyPressCount ++;
noKeyReleaseCount ++;
for (KeyMsg m: keyMsgQ) {
if (m.pressed) {
noKeyPressCount = 0;
... |
diff --git a/gogrid/src/test/java/org/jclouds/gogrid/GoGridComputeServiceLiveTest.java b/gogrid/src/test/java/org/jclouds/gogrid/GoGridComputeServiceLiveTest.java
index 998d997b4..a454bf08b 100644
--- a/gogrid/src/test/java/org/jclouds/gogrid/GoGridComputeServiceLiveTest.java
+++ b/gogrid/src/test/java/org/jclouds/gogr... | false | true | public void endToEndComputeServiceTest() {
ComputeService service = context.getComputeService();
Template t = service.templateBuilder().minRam(1024).imageId("1532").build();
assertEquals(t.getImage().getId(), "1532");
service.runNodesWithTag(this.service, 3, t);
Map<String,... | public void endToEndComputeServiceTest() {
ComputeService service = context.getComputeService();
Template t = service.templateBuilder().minRam(1024).imageId("1532").build();
assertEquals(t.getImage().getId(), "1532");
service.runNodesWithTag(this.service, 3, t);
Map<String,... |
diff --git a/ignition-support/ignition-support-lib/src/main/java/com/github/ignition/support/images/remote/RemoteImageLoaderHandler.java b/ignition-support/ignition-support-lib/src/main/java/com/github/ignition/support/images/remote/RemoteImageLoaderHandler.java
index d39c39f..0b9af9a 100755
--- a/ignition-support/igni... | true | true | protected boolean handleImageLoaded(Bitmap bitmap, Message msg) {
// If this handler is used for loading images in a ListAdapter,
// the thread will set the image only if it's the right position,
// otherwise it won't do anything.
String forUrl = (String) imageView.getTag();
... | protected boolean handleImageLoaded(Bitmap bitmap, Message msg) {
// If this handler is used for loading images in a ListAdapter,
// the thread will set the image only if it's the right position,
// otherwise it won't do anything.
String forUrl = (String) imageView.getTag();
... |
diff --git a/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/StandaloneInMemProcessEngineConfiguration.java b/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/StandaloneInMemProcessEngineConfiguration.java
index ca4b5a56d4..f14fc94f8e 100644
--- a/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/Standalone... | true | true | public StandaloneInMemProcessEngineConfiguration() {
this.databaseSchemaUpdate = DB_SCHEMA_UPDATE_CREATE_DROP;
this.jdbcUrl = "jdbc:h2:mem:activiti";
}
| public StandaloneInMemProcessEngineConfiguration() {
this.databaseSchemaUpdate = DB_SCHEMA_UPDATE_CREATE_DROP;
this.jdbcUrl = "jdbc:h2:mem:camunda";
}
|
diff --git a/twitter4j-core/src/main/java/twitter4j/TwitterStream.java b/twitter4j-core/src/main/java/twitter4j/TwitterStream.java
index 9d3ea3df..d5ecd3f7 100644
--- a/twitter4j-core/src/main/java/twitter4j/TwitterStream.java
+++ b/twitter4j-core/src/main/java/twitter4j/TwitterStream.java
@@ -1,496 +1,498 @@
/*
Copy... | true | true | public void run() {
int timeToSleep = 0;
while (!closed) {
try {
if (!closed && null == stream) {
// try establishing connection
setStatus("[Establishing connection]");
stream = ge... | public void run() {
int timeToSleep = 0;
while (!closed) {
try {
if (!closed && null == stream) {
// try establishing connection
setStatus("[Establishing connection]");
stream = ge... |
diff --git a/xjc/facade/com/sun/tools/xjc/ParallelWorldClassLoader.java b/xjc/facade/com/sun/tools/xjc/ParallelWorldClassLoader.java
index 65b6ef01..31919ad9 100644
--- a/xjc/facade/com/sun/tools/xjc/ParallelWorldClassLoader.java
+++ b/xjc/facade/com/sun/tools/xjc/ParallelWorldClassLoader.java
@@ -1,142 +1,151 @@
pack... | true | true | protected Class findClass(String name) throws ClassNotFoundException {
StringBuffer sb = new StringBuffer(name.length()+prefix.length()+6);
if (prefix.equals("1.0"))
sb.append(prefix).append('/').append(name.replace('.','/')).append(".class");
else
//2.0 classes resid... | protected Class findClass(String name) throws ClassNotFoundException {
StringBuffer sb = new StringBuffer(name.length()+prefix.length()+6);
if (prefix.equals("1.0"))
sb.append(prefix).append('/').append(name.replace('.','/')).append(".class");
else
//2.0 classes resid... |
diff --git a/src/com/android/exchange/adapter/AbstractSyncParser.java b/src/com/android/exchange/adapter/AbstractSyncParser.java
index 69d4ba4..a67b916 100644
--- a/src/com/android/exchange/adapter/AbstractSyncParser.java
+++ b/src/com/android/exchange/adapter/AbstractSyncParser.java
@@ -1,242 +1,244 @@
/*
* Copyrig... | true | true | public boolean parse() throws IOException, CommandStatusException {
int status;
boolean moreAvailable = false;
boolean newSyncKey = false;
int interval = mMailbox.mSyncInterval;
mLooping = false;
// If we're not at the top of the xml tree, throw an exception
i... | public boolean parse() throws IOException, CommandStatusException {
int status;
boolean moreAvailable = false;
boolean newSyncKey = false;
int interval = mMailbox.mSyncInterval;
mLooping = false;
// If we're not at the top of the xml tree, throw an exception
i... |
diff --git a/src/java/org/apache/hadoop/dfs/FSImage.java b/src/java/org/apache/hadoop/dfs/FSImage.java
index 23507b966..c8db70ae4 100644
--- a/src/java/org/apache/hadoop/dfs/FSImage.java
+++ b/src/java/org/apache/hadoop/dfs/FSImage.java
@@ -1,336 +1,336 @@
/**
* Licensed to the Apache Software Foundation (ASF) under... | true | true | void loadFSImage( Configuration conf ) throws IOException {
FSNamesystem fsNamesys = FSNamesystem.getFSNamesystem();
FSDirectory fsDir = fsNamesys.dir;
for (int idx = 0; idx < imageDirs.length; idx++) {
//
// Atomic move sequence, to recover from interrupted save
//
File curFile = ... | void loadFSImage( Configuration conf ) throws IOException {
FSNamesystem fsNamesys = FSNamesystem.getFSNamesystem();
FSDirectory fsDir = fsNamesys.dir;
for (int idx = 0; idx < imageDirs.length; idx++) {
//
// Atomic move sequence, to recover from interrupted save
//
File curFile = ... |
diff --git a/src/java/net/hi117/unique/swingui/MainFrame.java b/src/java/net/hi117/unique/swingui/MainFrame.java
index cdb0a26..3f04447 100644
--- a/src/java/net/hi117/unique/swingui/MainFrame.java
+++ b/src/java/net/hi117/unique/swingui/MainFrame.java
@@ -1,76 +1,78 @@
package net.hi117.unique.swingui;
import net.... | true | true | public MainFrame() throws InvocationTargetException, InterruptedException {
super("Unique");
getContentPane().setLayout(myCardLayout);
myMenuScreen = new MenuScreen(new Runnable() {
@Override
public void run() {
myCardLayout.show(getContentPane(), GAME_SCREEN);
myGameWorkerThread = new GameWorker... | public MainFrame() throws InvocationTargetException, InterruptedException {
super("Unique");
getContentPane().setLayout(myCardLayout);
myMenuScreen = new MenuScreen(new Runnable() {
@Override
public void run() {
myCardLayout.show(getContentPane(), GAME_SCREEN);
myGameWorkerThread = new GameWorker... |
diff --git a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java b/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java
index 21fb5e97..78ccdd41 100644
--- a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java
+++ b/software/ncimbrowser/... | true | true | public String searchAction() {
HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
String matchText = (String) request.getParameter("matchText");
if (matchText != null) matchText = matchText.trim();
//[#19965] Error ... | public String searchAction() {
HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
String matchText = (String) request.getParameter("matchText");
if (matchText != null) matchText = matchText.trim();
//[#19965] Error ... |
diff --git a/src/de/bananaco/bpermissions/imp/Config.java b/src/de/bananaco/bpermissions/imp/Config.java
index 6839a72..4eff318 100644
--- a/src/de/bananaco/bpermissions/imp/Config.java
+++ b/src/de/bananaco/bpermissions/imp/Config.java
@@ -1,55 +1,56 @@
package de.bananaco.bpermissions.imp;
import java.io.File;
... | true | true | private void loadUnsafe() throws Exception {
// Your standard create if not exist shizzledizzle
if(!file.exists()) {
file.getParentFile().mkdirs();
file.createNewFile();
}
config.load(file);
// set the value to default
config.set("track-type", config.get("track-type", trackType));
// then load it i... | private void loadUnsafe() throws Exception {
// Your standard create if not exist shizzledizzle
if(!file.exists()) {
if(file.getParentFile() != null)
file.getParentFile().mkdirs();
file.createNewFile();
}
config.load(file);
// set the value to default
config.set("track-type", config.get("track-ty... |
diff --git a/modules/activiti-rest/src/main/java/org/activiti/rest/api/process/ProcessInstanceActivityMoveResource.java b/modules/activiti-rest/src/main/java/org/activiti/rest/api/process/ProcessInstanceActivityMoveResource.java
index 4f6a68cde..8043df6a1 100644
--- a/modules/activiti-rest/src/main/java/org/activiti/re... | true | true | public ObjectNode moveCurrentActivity(Representation entity) {
ObjectNode responseJSON = new ObjectMapper().createObjectNode();
String processInstanceId = (String) getRequest().getAttributes().get("processInstanceId");
if (processInstanceId == null) {
throw new ActivitiException("No process instance is prov... | public ObjectNode moveCurrentActivity(Representation entity) {
ObjectNode responseJSON = new ObjectMapper().createObjectNode();
String processInstanceId = (String) getRequest().getAttributes().get("processInstanceId");
if (processInstanceId == null) {
throw new ActivitiException("No process instance is prov... |
diff --git a/src/replicatorg/drivers/reprap/RepRap5DDriver.java b/src/replicatorg/drivers/reprap/RepRap5DDriver.java
index bed30c41..28bca974 100644
--- a/src/replicatorg/drivers/reprap/RepRap5DDriver.java
+++ b/src/replicatorg/drivers/reprap/RepRap5DDriver.java
@@ -1,1331 +1,1331 @@
/*
RepRap5DDriver.java
This ... | true | true | public void serialByteReceivedEvent(ByteFifo fifo) {
readResponseLock.lock();
serialInUse.lock();
byte[] response = fifo.dequeueLine();
int responseLength = response.length;
serialInUse.unlock();
// 0 is now an acceptable value; it merely means that we timed out
// waiting for input
if (responseLengt... | public void serialByteReceivedEvent(ByteFifo fifo) {
readResponseLock.lock();
serialInUse.lock();
byte[] response = fifo.dequeueLine();
int responseLength = response.length;
serialInUse.unlock();
// 0 is now an acceptable value; it merely means that we timed out
// waiting for input
if (responseLengt... |
diff --git a/src/main/java/org/spout/vanilla/controller/object/moving/Item.java b/src/main/java/org/spout/vanilla/controller/object/moving/Item.java
index 0311d04a..d8711076 100644
--- a/src/main/java/org/spout/vanilla/controller/object/moving/Item.java
+++ b/src/main/java/org/spout/vanilla/controller/object/moving/Ite... | true | true | public void onTick(float dt) {
if (unpickable > 0) {
unpickable--;
super.onTick(dt);
return;
}
super.onTick(dt);
Block block = getParent().getRegion().getBlock(getParent().getPosition().subtract(0, 1, 0));
if (!block.getMaterial().isPlacementObstacle()) {
Vector3 next = block.getPosition();
g... | public void onTick(float dt) {
if (unpickable > 0) {
unpickable--;
super.onTick(dt);
return;
}
super.onTick(dt);
Block block = getParent().getRegion().getBlock(getParent().getPosition().subtract(0, 1, 0));
if (!block.getMaterial().isPlacementObstacle()) {
Vector3 next = block.getPosition();
g... |
diff --git a/src/main/java/com/happyelements/hive/web/HadoopClient.java b/src/main/java/com/happyelements/hive/web/HadoopClient.java
index 6e65ab6..3837ccb 100755
--- a/src/main/java/com/happyelements/hive/web/HadoopClient.java
+++ b/src/main/java/com/happyelements/hive/web/HadoopClient.java
@@ -1,510 +1,509 @@
/*
*... | false | true | public static void asyncSubmitQuery(final String query,
final HiveConf conf, final File out_file, final JobPriority priority) {
Central.getThreadPool().submit(new Runnable() {
@Override
public void run() {
conf.setEnum("mapred.job.priority", priority != null ? priority
: JobPriority.NORMAL);
S... | public static void asyncSubmitQuery(final String query,
final HiveConf conf, final File out_file, final JobPriority priority) {
Central.getThreadPool().submit(new Runnable() {
@Override
public void run() {
conf.setEnum("mapred.job.priority", priority != null ? priority
: JobPriority.NORMAL);
S... |
diff --git a/mmstudio/src/org/micromanager/acquisition/MMAcquisition.java b/mmstudio/src/org/micromanager/acquisition/MMAcquisition.java
index 4be66b9a9..71b7216e5 100644
--- a/mmstudio/src/org/micromanager/acquisition/MMAcquisition.java
+++ b/mmstudio/src/org/micromanager/acquisition/MMAcquisition.java
@@ -1,729 +1,72... | true | true | private void createDefaultAcqSettings(String name, MMImageCache imageCache) {
//if (new File(rootDirectory_).exists()) {
// name = generateRootName(name, rootDirectory_);
//}
String keys[] = new String[summary_.length()];
Iterator<String> it = summary_.keys();
int i = 0;
... | private void createDefaultAcqSettings(String name, MMImageCache imageCache) {
//if (new File(rootDirectory_).exists()) {
// name = generateRootName(name, rootDirectory_);
//}
String keys[] = new String[summary_.length()];
Iterator<String> it = summary_.keys();
int i = 0;
... |
diff --git a/src/main/java/org/freecode/irc/votebot/modules/common/VersionModule.java b/src/main/java/org/freecode/irc/votebot/modules/common/VersionModule.java
index f130422..0393924 100644
--- a/src/main/java/org/freecode/irc/votebot/modules/common/VersionModule.java
+++ b/src/main/java/org/freecode/irc/votebot/modul... | true | true | public void processMessage(Privmsg privmsg) {
String[] params = privmsg.getMessage().split(" ");
if (params.length == 0) {
privmsg.send("Version: " + version);
} else {
privmsg.send("Version: " + version + ", last commit \"" +
commitMessage + "\" b... | public void processMessage(Privmsg privmsg) {
String[] params = privmsg.getMessage().split(" ");
if (params.length == 1) {
privmsg.send("Version: " + version);
} else {
privmsg.send("Version: " + version + ", last commit \"" +
commitMessage + "\" b... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/observables/SessionIDObservable.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/observables/SessionIDObservable.java
index e1d06ef2a..7b0a9b8b5 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/observables/SessionIDObservable.java
+++ b/de.fu_berl... | true | true | public SessionIDObservable() {
super(null);
}
| public SessionIDObservable() {
super(NOT_IN_SESSION);
}
|
diff --git a/Client/mod_Minechem/net/minecraft/src/mod_Minechem.java b/Client/mod_Minechem/net/minecraft/src/mod_Minechem.java
index 923dffd..04d89ac 100644
--- a/Client/mod_Minechem/net/minecraft/src/mod_Minechem.java
+++ b/Client/mod_Minechem/net/minecraft/src/mod_Minechem.java
@@ -1,450 +1,450 @@
package net.minecr... | true | true | public mod_Minechem() {
random = new Random();
initItemsAndBlocks();
MinecraftForgeClient.preloadTexture(minechemBlocksTexture);
MinecraftForgeClient.preloadTexture(minechemItemsTexture);
ModLoader.RegisterBlock(blockMinechem);
ModLoader.AddName(itemTesttubeEmpty, "Empty Test Tube");
ModLoader.AddN... | public mod_Minechem() {
random = new Random();
initItemsAndBlocks();
MinecraftForgeClient.preloadTexture(minechemBlocksTexture);
MinecraftForgeClient.preloadTexture(minechemItemsTexture);
ModLoader.RegisterBlock(blockMinechem);
ModLoader.AddName(itemTesttubeEmpty, "Empty Test Tube");
ModLoader.AddN... |
diff --git a/src/main/java/nl/topicus/onderwijs/dashboard/modules/google/GoogleEventService.java b/src/main/java/nl/topicus/onderwijs/dashboard/modules/google/GoogleEventService.java
index 59eff03..30cb1ce 100644
--- a/src/main/java/nl/topicus/onderwijs/dashboard/modules/google/GoogleEventService.java
+++ b/src/main/ja... | true | true | public void refreshData() {
try {
Settings settings = getSettings();
Map<Key, Map<String, ?>> serviceSettings = settings
.getServiceSettings(GoogleEventService.class);
List<Event> ret = new ArrayList<Event>();
for (Map.Entry<Key, Map<String, ?>> curSettingEntry : serviceSettings
.entrySet()) {
... | public void refreshData() {
try {
Settings settings = getSettings();
Map<Key, Map<String, ?>> serviceSettings = settings
.getServiceSettings(GoogleEventService.class);
List<Event> ret = new ArrayList<Event>();
for (Map.Entry<Key, Map<String, ?>> curSettingEntry : serviceSettings
.entrySet()) {
... |
diff --git a/java/simple-cassandra-client/src/main/java/com/example/cassandra/BoundStatementsClient.java b/java/simple-cassandra-client/src/main/java/com/example/cassandra/BoundStatementsClient.java
index 03e8b93..7ec3077 100644
--- a/java/simple-cassandra-client/src/main/java/com/example/cassandra/BoundStatementsClien... | false | true | public void loadData() {
PreparedStatement statement = getSession().prepare(
"INSERT INTO songs " +
"(id, title, album, artist, tags) " +
"VALUES (?, ?, ?, ?, ?);");
BoundStatement boundStatement = new BoundStatement(statement);
Set<String> tags = new HashSet<Strin... | public void loadData() {
PreparedStatement statement = getSession().prepare(
"INSERT INTO songs " +
"(id, title, album, artist, tags) " +
"VALUES (?, ?, ?, ?, ?);");
BoundStatement boundStatement = new BoundStatement(statement);
Set<String> tags = new HashSet<Strin... |
diff --git a/server/src/main/java/io/druid/segment/realtime/RealtimeManager.java b/server/src/main/java/io/druid/segment/realtime/RealtimeManager.java
index a49760ab5e..bb2b666db2 100644
--- a/server/src/main/java/io/druid/segment/realtime/RealtimeManager.java
+++ b/server/src/main/java/io/druid/segment/realtime/Realti... | true | true | public void run()
{
verifyState();
final Period intermediatePersistPeriod = config.getIntermediatePersistPeriod();
try {
plumber.startJob();
long nextFlush = new DateTime().plus(intermediatePersistPeriod).getMillis();
while (firehose.hasMore()) {
final Inpu... | public void run()
{
verifyState();
final Period intermediatePersistPeriod = config.getIntermediatePersistPeriod();
try {
plumber.startJob();
long nextFlush = new DateTime().plus(intermediatePersistPeriod).getMillis();
while (firehose.hasMore()) {
final Inpu... |
diff --git a/src/com/android/gallery3d/app/OrientationManager.java b/src/com/android/gallery3d/app/OrientationManager.java
index a8ef99ad8..0e033ebe4 100644
--- a/src/com/android/gallery3d/app/OrientationManager.java
+++ b/src/com/android/gallery3d/app/OrientationManager.java
@@ -1,215 +1,223 @@
/*
* Copyright (C) 2... | false | true | public void lockOrientation() {
if (mOrientationLocked) return;
mOrientationLocked = true;
// Display rotation >= 180 means we need to use the REVERSE landscape/portrait
boolean standard = getDisplayRotation() < 180;
if (mActivity.getResources().getConfiguration().orientation... | public void lockOrientation() {
if (mOrientationLocked) return;
mOrientationLocked = true;
int displayRotation = getDisplayRotation();
// Display rotation >= 180 means we need to use the REVERSE landscape/portrait
boolean standard = displayRotation < 180;
if (mActivit... |
diff --git a/src/main/java/uk/co/revthefox/foxbot/Utils.java b/src/main/java/uk/co/revthefox/foxbot/Utils.java
index f032e1a..f00270e 100644
--- a/src/main/java/uk/co/revthefox/foxbot/Utils.java
+++ b/src/main/java/uk/co/revthefox/foxbot/Utils.java
@@ -1,89 +1,89 @@
package uk.co.revthefox.foxbot;
import com.ning.h... | true | true | public String parseChatUrl(String stringToParse, User sender)
{
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
Matcher matcher;
Future<Response> future;
Response response;
matcher = patt.matcher(stringToParse);
if (!matcher.matches())
{
... | public String parseChatUrl(String stringToParse, User sender)
{
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
Matcher matcher;
Future<Response> future;
Response response;
matcher = patt.matcher(stringToParse);
if (!matcher.matches())
{
... |
diff --git a/splat/src/main/uk/ac/starlink/splat/data/TableColumnChooser.java b/splat/src/main/uk/ac/starlink/splat/data/TableColumnChooser.java
index 15732f6ce..b3fbf2845 100644
--- a/splat/src/main/uk/ac/starlink/splat/data/TableColumnChooser.java
+++ b/splat/src/main/uk/ac/starlink/splat/data/TableColumnChooser.java... | true | true | private TableColumnChooser()
{
// Default patterns... Could try matching to things like data
// source. Any joy from UCDs and IVOA work?
coordPatterns = new ArrayList();
addCoordPattern( "wavelength.*" );
addCoordPattern( "freq.*" );
addCoordPattern( "velo.*" );... | private TableColumnChooser()
{
// Default patterns... Could try matching to things like data
// source. Any joy from UCDs and IVOA work?
coordPatterns = new ArrayList();
addCoordPattern( "wavelength.*" );
addCoordPattern( "freq.*" );
addCoordPattern( "velo.*" );... |
diff --git a/main/src/main/java/org/geoserver/security/GeoserverUserDao.java b/main/src/main/java/org/geoserver/security/GeoserverUserDao.java
index 460132835..ad8d846ef 100644
--- a/main/src/main/java/org/geoserver/security/GeoserverUserDao.java
+++ b/main/src/main/java/org/geoserver/security/GeoserverUserDao.java
@@ ... | true | true | void checkUserMap() throws DataAccessResourceFailureException {
InputStream is = null;
OutputStream os = null;
if ((userMap == null) || ((userDefinitionsFile != null) && userDefinitionsFile.isStale())) {
try {
if (userDefinitionsFile == null) {
... | void checkUserMap() throws DataAccessResourceFailureException {
InputStream is = null;
OutputStream os = null;
if ((userMap == null) || userDefinitionsFile == null || userDefinitionsFile.isStale()) {
try {
if (userDefinitionsFile == null) {
sec... |
diff --git a/goobi1.9/src/de/sub/goobi/export/download/ExportMets.java b/goobi1.9/src/de/sub/goobi/export/download/ExportMets.java
index 5c1d3c6ed..ca6c9d191 100644
--- a/goobi1.9/src/de/sub/goobi/export/download/ExportMets.java
+++ b/goobi1.9/src/de/sub/goobi/export/download/ExportMets.java
@@ -1,332 +1,333 @@
packag... | false | true | protected boolean writeMetsFile(Prozess myProzess, String targetFileName, Fileformat gdzfile, boolean writeLocalFilegroup)
throws PreferencesException, WriteException, IOException, InterruptedException, SwapException, DAOException,
TypeNotAllowedForParentException {
MetsModsImportExport mm = new MetsModsImpor... | protected boolean writeMetsFile(Prozess myProzess, String targetFileName, Fileformat gdzfile, boolean writeLocalFilegroup)
throws PreferencesException, WriteException, IOException, InterruptedException, SwapException, DAOException,
TypeNotAllowedForParentException {
MetsModsImportExport mm = new MetsModsImpor... |
diff --git a/grails/src/commons/org/codehaus/groovy/grails/validation/RangeConstraint.java b/grails/src/commons/org/codehaus/groovy/grails/validation/RangeConstraint.java
index 7a94c5b30..b4f970408 100644
--- a/grails/src/commons/org/codehaus/groovy/grails/validation/RangeConstraint.java
+++ b/grails/src/commons/org/co... | true | true | protected void processValidate(Object target, Object propertyValue, Errors errors) {
if(!this.range.contains(propertyValue)) {
Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, range.getFrom(), range.getTo() };
Comparable from = range.getF... | protected void processValidate(Object target, Object propertyValue, Errors errors) {
if(!this.range.contains(propertyValue)) {
Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, range.getFrom(), range.getTo() };
Comparable from = range.getF... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/network/ForwardingBridge.java b/activemq-core/src/main/java/org/apache/activemq/network/ForwardingBridge.java
index a0f6fd96e..8528d5b54 100755
--- a/activemq-core/src/main/java/org/apache/activemq/network/ForwardingBridge.java
+++ b/activemq-core/src/main/ja... | true | true | protected void serviceLocalCommand(Command command) {
try {
if( command.isMessageDispatch() ) {
final MessageDispatch md = (MessageDispatch) command;
Message message = md.getMessage();
message.setProducerId(producerInfo.getProducerId());
... | protected void serviceLocalCommand(Command command) {
try {
if( command.isMessageDispatch() ) {
final MessageDispatch md = (MessageDispatch) command;
Message message = md.getMessage();
message.setProducerId(producerInfo.getProducerId());
... |
diff --git a/src/states/AreaState.java b/src/states/AreaState.java
index 4736170..7b5dea2 100644
--- a/src/states/AreaState.java
+++ b/src/states/AreaState.java
@@ -1,95 +1,95 @@
package states;
import java.util.ArrayList;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.ne... | true | true | public void update(GameContainer container, StateBasedGame game, int delta)
throws SlickException {
if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) {
container.exit();
}
// progression++;
for (int i = 0; i < players.length; i++) {
if (!players[i].isAttacking) {
players[i].move(container.... | public void update(GameContainer container, StateBasedGame game, int delta)
throws SlickException {
if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) {
container.exit();
}
// progression++;
for (int i = 0; i < players.length; i++) {
if (!players[i].isAttacking) {
players[i].move(container.... |
diff --git a/ui/listShuttle/src/main/java/org/richfaces/renderkit/ListShuttleRendererBase.java b/ui/listShuttle/src/main/java/org/richfaces/renderkit/ListShuttleRendererBase.java
index 8082308c..6e949364 100644
--- a/ui/listShuttle/src/main/java/org/richfaces/renderkit/ListShuttleRendererBase.java
+++ b/ui/listShuttle/... | true | true | public void encodeOneRow(FacesContext context, TableHolder holder)
throws IOException {
UIListShuttle table = (UIListShuttle) holder.getTable();
ListShuttleRendererTableHolder shuttleRendererTableHolder = (ListShuttleRendererTableHolder) holder;
ListShuttleRowKey listShuttleRowKey = (ListShuttleRowKey) table... | public void encodeOneRow(FacesContext context, TableHolder holder)
throws IOException {
UIListShuttle table = (UIListShuttle) holder.getTable();
ListShuttleRendererTableHolder shuttleRendererTableHolder = (ListShuttleRendererTableHolder) holder;
ListShuttleRowKey listShuttleRowKey = (ListShuttleRowKey) table... |
diff --git a/src/model/MoveFirstStrategy.java b/src/model/MoveFirstStrategy.java
index 371994f..a2658de 100644
--- a/src/model/MoveFirstStrategy.java
+++ b/src/model/MoveFirstStrategy.java
@@ -1,45 +1,48 @@
package model;
import java.util.ArrayList;
public class MoveFirstStrategy implements Strategy {
public... | true | true | public Pawn getNextMove(int currentRoll, ArrayList<Pawn> moveablePawns, Field[] gameBoard) {
//normalize pawn position based on home
int startPos = moveablePawns.get(0).getOwner().getStartPosition();
Pawn pawn = null;
Integer currentVal = null;
//go through movable pawns
for(Pawn temp : moveablePawns){
... | public Pawn getNextMove(int currentRoll, ArrayList<Pawn> moveablePawns, Field[] gameBoard) {
//normalize pawn position based on home
if(moveablePawns.isEmpty()){
return null;
}
int startPos = moveablePawns.get(0).getOwner().getStartPosition();
Pawn pawn = null;
Integer currentVal = null;
//go through ... |
diff --git a/src/ee/alkohol/juks/sirvid/exporters/ExporterSVG.java b/src/ee/alkohol/juks/sirvid/exporters/ExporterSVG.java
index 1e09d36..d2d9d14 100644
--- a/src/ee/alkohol/juks/sirvid/exporters/ExporterSVG.java
+++ b/src/ee/alkohol/juks/sirvid/exporters/ExporterSVG.java
@@ -1,38 +1,38 @@
package ee.alkohol.juks.sirv... | true | true | public String generate(ICalculator icalendar) {
StringBuilder sb = new StringBuilder();
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n");
sb.append("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dt... | public String generate(ICalculator icalendar) {
StringBuilder sb = new StringBuilder();
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n");
sb.append("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dt... |
diff --git a/core/src/main/java/org/apache/mahout/vectorizer/SparseVectorsFromSequenceFiles.java b/core/src/main/java/org/apache/mahout/vectorizer/SparseVectorsFromSequenceFiles.java
index c4aa9be1..bef19f11 100644
--- a/core/src/main/java/org/apache/mahout/vectorizer/SparseVectorsFromSequenceFiles.java
+++ b/core/src/... | true | true | public int run(String[] args) throws Exception {
DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
ArgumentBuilder abuilder = new ArgumentBuilder();
GroupBuilder gbuilder = new GroupBuilder();
Option inputDirOpt = DefaultOptionCreator.inputOption().create();
Option outputDirOpt... | public int run(String[] args) throws Exception {
DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
ArgumentBuilder abuilder = new ArgumentBuilder();
GroupBuilder gbuilder = new GroupBuilder();
Option inputDirOpt = DefaultOptionCreator.inputOption().create();
Option outputDirOpt... |
diff --git a/plugins/org.bigraph.model/src/org/bigraph/model/PointHandler.java b/plugins/org.bigraph.model/src/org/bigraph/model/PointHandler.java
index 81fefde3..94697142 100644
--- a/plugins/org.bigraph.model/src/org/bigraph/model/PointHandler.java
+++ b/plugins/org.bigraph.model/src/org/bigraph/model/PointHandler.ja... | false | true | public boolean tryValidateChange(Process process, IChange b)
throws ChangeRejectedException {
final PropertyScratchpad context = process.getScratch();
if (b instanceof Point.ChangeConnect) {
Point.ChangeConnect c = (Point.ChangeConnect)b;
if (c.getCreator().getLink(context) != null)
throw new ChangeRe... | public boolean tryValidateChange(Process process, IChange b)
throws ChangeRejectedException {
final PropertyScratchpad context = process.getScratch();
if (b instanceof Point.ChangeConnect) {
Point.ChangeConnect c = (Point.ChangeConnect)b;
Point p = c.getCreator();
Link l = p.getLink(context);
if (l ... |
diff --git a/trunk/CruxHtmlTags/src/br/com/sysmap/crux/tools/htmltags/template/TemplatesScanner.java b/trunk/CruxHtmlTags/src/br/com/sysmap/crux/tools/htmltags/template/TemplatesScanner.java
index 8ba9d144e..a7da176dd 100644
--- a/trunk/CruxHtmlTags/src/br/com/sysmap/crux/tools/htmltags/template/TemplatesScanner.java
+... | false | true | private void scanArchives(URL... urls)
{
for (URL url : urls)
{
Filter filter = new Filter()
{
public boolean accepts(String fileName)
{
if (fileName.endsWith(".template.xml"))
{
if (fileName.startsWith("/")) fileName = fileName.substring(1);
if (!ignoreScan(fileName.replace('/... | private void scanArchives(URL... urls)
{
for (final URL url : urls)
{
Filter filter = new Filter()
{
public boolean accepts(String fileName)
{
if (fileName.endsWith(".template.xml"))
{
if (!ignoreScan(url, fileName))
{
return true;
}
}
return false;
}... |
diff --git a/src/java/com/sapienter/jbilling/server/process/task/SimpleTaxCompositionTask.java b/src/java/com/sapienter/jbilling/server/process/task/SimpleTaxCompositionTask.java
index 7c28ac44..279bfcb1 100644
--- a/src/java/com/sapienter/jbilling/server/process/task/SimpleTaxCompositionTask.java
+++ b/src/java/com/sa... | true | true | public void apply(NewInvoiceDTO invoice, Integer userId) throws TaskException {
ItemDTO taxItem;
Integer itemExemptCategoryId = null;
Integer customContactFieldId = null;
try {
String paramValue = getParameter(PARAM_TAX_ITEM_ID, "");
if (paramValue == null || ... | public void apply(NewInvoiceDTO invoice, Integer userId) throws TaskException {
ItemDTO taxItem;
Integer itemExemptCategoryId = null;
Integer customContactFieldId = null;
try {
String paramValue = getParameter(PARAM_TAX_ITEM_ID, "");
if (paramValue == null || ... |
diff --git a/src/main/java/org/oregami/resources/UserResource.java b/src/main/java/org/oregami/resources/UserResource.java
index b95e5b3..9859cac 100644
--- a/src/main/java/org/oregami/resources/UserResource.java
+++ b/src/main/java/org/oregami/resources/UserResource.java
@@ -1,61 +1,61 @@
package org.oregami.resource... | false | true | public Response createUser(User user) {
try {
ServiceResult<User> register = userService.register(user);
if (register.hasErrors()) {
return Response.status(Status.BAD_REQUEST).type("text/plain")
.entity("Errors: " + register.getErrors()).build();
}
// userDao.save(user);
// mailHel... | public Response createUser(User user) {
try {
ServiceResult<User> register = userService.register(user);
if (register.hasErrors()) {
return Response.status(Status.BAD_REQUEST)
//.type("text/plain")
.type("text/json")
.entity(register.getErrors()).build();
}
return Respon... |
diff --git a/engine/src/test/jme3test/terrain/TerrainGridAlphaMapTest.java b/engine/src/test/jme3test/terrain/TerrainGridAlphaMapTest.java
index 8a0261bb0..c662dd79c 100644
--- a/engine/src/test/jme3test/terrain/TerrainGridAlphaMapTest.java
+++ b/engine/src/test/jme3test/terrain/TerrainGridAlphaMapTest.java
@@ -1,286 +... | false | true | public void simpleInitApp() {
DirectionalLight sun = new DirectionalLight();
sun.setColor(ColorRGBA.White);
sun.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
rootNode.addLight(sun);
AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.White.mult(1.3... | public void simpleInitApp() {
DirectionalLight sun = new DirectionalLight();
sun.setColor(ColorRGBA.White);
sun.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
rootNode.addLight(sun);
AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.White.mult(1.3... |
diff --git a/pixi/src/main/java/org/openpixi/pixi/physics/grid/CloudInCell.java b/pixi/src/main/java/org/openpixi/pixi/physics/grid/CloudInCell.java
index 500299d4..548c5c92 100644
--- a/pixi/src/main/java/org/openpixi/pixi/physics/grid/CloudInCell.java
+++ b/pixi/src/main/java/org/openpixi/pixi/physics/grid/CloudInCel... | true | true | public void interpolateToGrid(ArrayList<Particle2D> particles, SimpleGrid g) {
for(Particle2D p : particles)
{
int xCellPosition = (int) (p.x / g.cellWidth + 1);
int yCellPosition = (int) (p.y / g.cellHeight + 1);
int xCellPosition2 = xCellPosition;
int yCellPosition2 = yCellPosition;
if(... | public void interpolateToGrid(ArrayList<Particle2D> particles, Grid g) {
for(Particle2D p : particles)
{
int xCellPosition = (int) (p.x / g.cellWidth + 1);
int yCellPosition = (int) (p.y / g.cellHeight + 1);
int xCellPosition2 = xCellPosition;
int yCellPosition2 = yCellPosition;
if(xCellP... |
diff --git a/src/dasher/TwoButtonDynamicFilter.java b/src/dasher/TwoButtonDynamicFilter.java
index 941f9ae..3737b1d 100644
--- a/src/dasher/TwoButtonDynamicFilter.java
+++ b/src/dasher/TwoButtonDynamicFilter.java
@@ -1,98 +1,98 @@
package dasher;
public class TwoButtonDynamicFilter extends CDynamicFilter {
priv... | true | true | @Override public void Event(long iTime, int iId, int pressType, CDasherModel pModel) {
marker: if (pressType==SINGLE_PRESS && getState()==RUNNING) {
BounceMarker pMarker;
if (iId==0) pMarker=up; else if (iId==1) pMarker=down; else break marker;
//apply offset
double dCurBitrate = GetLongParameter(Elp_par... | @Override public void Event(long iTime, int iId, int pressType, CDasherModel pModel) {
marker: if (pressType==SINGLE_PRESS && getState()==RUNNING) {
BounceMarker pMarker;
if (iId==0 || iId==4) pMarker=up; else if (iId==1 || iId==2) pMarker=down; else break marker;
//apply offset
double dCurBitrate = GetL... |
diff --git a/src/scripts/clusterManipulations/GenerateCountSHFiles.java b/src/scripts/clusterManipulations/GenerateCountSHFiles.java
index 8e357e3d..ee20f051 100644
--- a/src/scripts/clusterManipulations/GenerateCountSHFiles.java
+++ b/src/scripts/clusterManipulations/GenerateCountSHFiles.java
@@ -1,37 +1,37 @@
/**
... | true | true | public static void main(String[] args) throws Exception
{
BufferedWriter writer = new BufferedWriter(
new FileWriter(new File("/projects/afodor/shotgunSequences/runManyCounts.sh")));
for( int x=1; x <=20; x++)
{
writer.write("qsub -q \"viper\" -N \"CountJob" + x + " java -cp /users/afodor/metagenomics... | public static void main(String[] args) throws Exception
{
BufferedWriter writer = new BufferedWriter(
new FileWriter(new File("/projects/afodor/shotgunSequences/runManyCounts.sh")));
for( int x=1; x <=20; x++)
{
writer.write("qsub -q \"viper\" -N \"CountJob" + x + "\" java -cp /users/afodor/metagenomi... |
diff --git a/52n-sos-importer-core/src/main/java/org/n52/sos/importer/model/xml/Step1ModelHandler.java b/52n-sos-importer-core/src/main/java/org/n52/sos/importer/model/xml/Step1ModelHandler.java
index 5af289c1..4b88e34d 100644
--- a/52n-sos-importer-core/src/main/java/org/n52/sos/importer/model/xml/Step1ModelHandler.ja... | false | true | public void handleModel(Step1Model stepModel, SosImportConfiguration sosImportConf) {
if (logger.isTraceEnabled()) {
logger.trace("handleModel()");
}
DataFile dF = sosImportConf.getDataFile();
if (dF == null) {
dF = sosImportConf.addNewDataFile();
}
if (stepModel.getFeedingType() == Step1Panel.... | public void handleModel(final Step1Model stepModel, final SosImportConfiguration sosImportConf) {
if (logger.isTraceEnabled()) {
logger.trace("handleModel()");
}
DataFile dF = sosImportConf.getDataFile();
if (dF == null) {
dF = sosImportConf.addNewDataFile();
}
if (stepModel.getFeedingType() ==... |
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/jobs/ListTagsJob.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/jobs/ListTagsJob.java
index 0baf767a..8a7336f3 100644
--- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/jobs/ListTags... | true | true | protected IStatus performJob() {
try {
// list all tags
File gitDir = GitUtils.getGitDir(path);
Repository db = new FileRepository(gitDir);
// TODO: bug 356943 - revert when bug 360650 is fixed
// List<RevTag> revTags = git.tagList().call();
Map<String, Ref> refs = db.getRefDatabase().getRefs(Const... | protected IStatus performJob() {
try {
// list all tags
File gitDir = GitUtils.getGitDir(path);
Repository db = new FileRepository(gitDir);
// TODO: bug 356943 - revert when bug 360650 is fixed
// List<RevTag> revTags = git.tagList().call();
Map<String, Ref> refs = db.getRefDatabase().getRefs(Const... |
diff --git a/src/main/java/com/redhat/topicindex/extras/client/local/view/BulkImageUpdaterView.java b/src/main/java/com/redhat/topicindex/extras/client/local/view/BulkImageUpdaterView.java
index 45ff1c2..150f502 100644
--- a/src/main/java/com/redhat/topicindex/extras/client/local/view/BulkImageUpdaterView.java
+++ b/sr... | false | true | public BulkImageUpdaterView()
{
final DecoratorPanel contentTableDecorator = new DecoratorPanel();
initWidget(contentTableDecorator);
progress.setVisible(false);
log.setReadOnly(true);
xml.setReadOnly(true);
final Grid layoutGrid = new Grid(5, 2);
topicSearch.setWidth("500px");
final Label to... | public BulkImageUpdaterView()
{
final DecoratorPanel contentTableDecorator = new DecoratorPanel();
initWidget(contentTableDecorator);
progress.setVisible(false);
log.setReadOnly(true);
xml.setReadOnly(true);
final Grid layoutGrid = new Grid(5, 2);
topicSearch.setWidth("500px");
final Label to... |
diff --git a/src/org/openmrs/module/report/util/ReportUtil.java b/src/org/openmrs/module/report/util/ReportUtil.java
index bffe2db8..9bd62e4a 100644
--- a/src/org/openmrs/module/report/util/ReportUtil.java
+++ b/src/org/openmrs/module/report/util/ReportUtil.java
@@ -1,225 +1,227 @@
package org.openmrs.module.report.ut... | false | true | public static List<InitialDataElement> getInitialDataElements() {
List<InitialDataElement> ret = new ArrayList<InitialDataElement>();
ret.add(new InitialDataElement(CohortDefinition.class, "Female") {
public void apply() {
GenderCohortDefinition female = new GenderCohortDefinition("F");
female.setName("... | public static List<InitialDataElement> getInitialDataElements() {
List<InitialDataElement> ret = new ArrayList<InitialDataElement>();
ret.add(new InitialDataElement(CohortDefinition.class, "Female") {
public void apply() {
GenderCohortDefinition female = new GenderCohortDefinition("F");
female.setName("... |
diff --git a/eclipseWorkspace/StrayLight/SocketServer/src/main/java/com/sri/straylight/socketserver/Jmodelica.java b/eclipseWorkspace/StrayLight/SocketServer/src/main/java/com/sri/straylight/socketserver/Jmodelica.java
index dad17916..de207c36 100644
--- a/eclipseWorkspace/StrayLight/SocketServer/src/main/java/com/sri/... | false | true | public String run(String fmuFileName) {
String theOs = System.getProperty("os.name");
String cmd;
String arg1;
//String fmuFileName = "bouncingBall.fmu";
//String fmuFileName = "testFMI.fmu";
String directory;
String[] ary = fmuFileName.split("\\.");
int idx2 = ar... | public String run(String fmuFileName) {
String theOs = System.getProperty("os.name");
String cmd;
String arg1;
//String fmuFileName = "bouncingBall.fmu";
//String fmuFileName = "testFMI.fmu";
String directory;
String[] ary = fmuFileName.split("\\.");
int idx2 = ar... |
diff --git a/src/org/omegat/util/TMXReader2.java b/src/org/omegat/util/TMXReader2.java
index 3d84555d..b179e7c9 100644
--- a/src/org/omegat/util/TMXReader2.java
+++ b/src/org/omegat/util/TMXReader2.java
@@ -1,589 +1,593 @@
/**************************************************************************
OmegaT - Computer ... | true | true | protected void parseSegExtLevel2() throws Exception {
segContent.setLength(0);
segInlineTag.setLength(0);
pairTags.clear();
int tagNumber = 0;
int inlineLevel = 0;
String currentI = null;
String currentPos = null;
while (true) {
XMLEvent ... | protected void parseSegExtLevel2() throws Exception {
segContent.setLength(0);
segInlineTag.setLength(0);
pairTags.clear();
int tagNumber = 0;
int inlineLevel = 0;
String currentI = null;
String currentPos = null;
while (true) {
XMLEvent ... |
diff --git a/src/org/rascalmpl/interpreter/matching/IteratorFactory.java b/src/org/rascalmpl/interpreter/matching/IteratorFactory.java
index e58e767a50..43f9c03f99 100644
--- a/src/org/rascalmpl/interpreter/matching/IteratorFactory.java
+++ b/src/org/rascalmpl/interpreter/matching/IteratorFactory.java
@@ -1,171 +1,172 ... | true | true | public static Iterator<IValue> make(IEvaluatorContext ctx, IMatchingResult matchPattern,
Result<IValue> subject, boolean shallow){
Type subjectType = subject.getType();
IValue subjectValue = subject.getValue();
Type patType = matchPattern.getType(ctx.getCurrentEnvt(), null);
if (subjectType.isValueType()... | public static Iterator<IValue> make(IEvaluatorContext ctx, IMatchingResult matchPattern,
Result<IValue> subject, boolean shallow){
Type subjectType = subject.getType();
IValue subjectValue = subject.getValue();
Type patType = matchPattern.getType(ctx.getCurrentEnvt(), null);
if (subjectType.isValueType()... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageBreakpointRulerAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageBreakpointRulerAction.java
index 4eb17f923..9d96e029c 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/... | false | true | protected void addMarker() {
IEditorInput editorInput= getTextEditor().getEditorInput();
try {
IDocument document= getDocument();
IRegion line= document.getLineInformation(getVerticalRulerInfo().getLineOfLastMouseButtonActivity());
IType type= null;
IResource resource = null;
IClassFile class... | protected void addMarker() {
IEditorInput editorInput= getTextEditor().getEditorInput();
try {
IDocument document= getDocument();
IRegion line= document.getLineInformation(getVerticalRulerInfo().getLineOfLastMouseButtonActivity());
IType type= null;
IResource resource;
IClassFile classFile= (... |
diff --git a/src/edu/umn/cs/spatialHadoop/operations/ClosestPair.java b/src/edu/umn/cs/spatialHadoop/operations/ClosestPair.java
index f6106d47..da50b408 100644
--- a/src/edu/umn/cs/spatialHadoop/operations/ClosestPair.java
+++ b/src/edu/umn/cs/spatialHadoop/operations/ClosestPair.java
@@ -1,336 +1,336 @@
package edu.... | false | true | public static DistanceAndPair nearestNeighbor(Shape[] a, Point[] tmp, int l, int r) {
if (l >= r) return new DistanceAndPair(Double.MAX_VALUE, null, null);
int mid = (l + r) >> 1;
double medianX = ((Point)a[mid]).x;
DistanceAndPair delta1 = nearestNeighbor(a, tmp, l, mid);
DistanceAndPair delta2 = nearest... | public static DistanceAndPair nearestNeighbor(Shape[] a, Point[] tmp, int l, int r) {
if (l >= r) return new DistanceAndPair(Double.MAX_VALUE, null, null);
int mid = (l + r) >> 1;
double medianX = ((Point)a[mid]).x;
DistanceAndPair delta1 = nearestNeighbor(a, tmp, l, mid);
DistanceAndPair delta2 = nearest... |
diff --git a/OSLC4JChangeManagement/src/org/eclipse/lyo/oslc4j/changemanagement/servlet/ServiceProviderFactory.java b/OSLC4JChangeManagement/src/org/eclipse/lyo/oslc4j/changemanagement/servlet/ServiceProviderFactory.java
index 8a3ed9b..5c4a804 100644
--- a/OSLC4JChangeManagement/src/org/eclipse/lyo/oslc4j/changemanagem... | false | true | public static ServiceProvider createServiceProvider(final String baseURI)
throws OslcCoreApplicationException, URISyntaxException
{
final ServiceProvider serviceProvider = org.eclipse.lyo.oslc4j.core.model.ServiceProviderFactory.createServiceProvider(baseURI,
... | public static ServiceProvider createServiceProvider(final String baseURI)
throws OslcCoreApplicationException, URISyntaxException
{
final ServiceProvider serviceProvider = org.eclipse.lyo.oslc4j.core.model.ServiceProviderFactory.createServiceProvider(baseURI,
... |
diff --git a/tomcat-main/src/test/java/org/collectionspace/chain/csp/persistence/services/vocab/TestGenerateAuthorities.java b/tomcat-main/src/test/java/org/collectionspace/chain/csp/persistence/services/vocab/TestGenerateAuthorities.java
index e35d3daa..7fa3da25 100644
--- a/tomcat-main/src/test/java/org/collectionspa... | true | true | public void testSetUp() throws Exception {
HttpTester out;
log.info("initialize authorities");
//String urltest = "/vocabularies/currency/refresh?datapath=/Users/csm22/Documents/collectionspace/test.txt";
//out = tester.GETData(urltest, jetty);
// repopulate the authorities with dummy data
//DONOT RUN... | public void testSetUp() throws Exception {
HttpTester out;
log.info("initialize authorities");
//String urltest = "/vocabularies/currency/refresh?datapath=/Users/csm22/Documents/collectionspace/test.txt";
//out = tester.GETData(urltest, jetty);
// repopulate the authorities with dummy data
//DONOT RUN... |
diff --git a/VisualWAS/src/main/java/com/github/veithen/visualwas/WebSpherePropertiesPanel.java b/VisualWAS/src/main/java/com/github/veithen/visualwas/WebSpherePropertiesPanel.java
index 28e36ba..f140528 100644
--- a/VisualWAS/src/main/java/com/github/veithen/visualwas/WebSpherePropertiesPanel.java
+++ b/VisualWAS/src/... | false | true | public WebSpherePropertiesPanel() {
setLayout(new GridBagLayout());
{
JLabel hostLabel = new JLabel();
Mnemonics.setLocalizedText(hostLabel, NbBundle.getMessage(WebSpherePropertiesPanel.class, "LBL_Host"));
add(hostLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0... | public WebSpherePropertiesPanel() {
setLayout(new GridBagLayout());
{
JLabel hostLabel = new JLabel();
Mnemonics.setLocalizedText(hostLabel, NbBundle.getMessage(WebSpherePropertiesPanel.class, "LBL_Host"));
add(hostLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0... |
diff --git a/omod/src/main/java/org/openmrs/module/kenyaemr/fragment/controller/MedicalChartUtilFragmentController.java b/omod/src/main/java/org/openmrs/module/kenyaemr/fragment/controller/MedicalChartUtilFragmentController.java
index f192285e..ab0a7995 100644
--- a/omod/src/main/java/org/openmrs/module/kenyaemr/fragme... | true | true | public List<SimpleObject> recentlyViewed(UiUtils ui,Session session) {
List<Integer> recent = session.getAttribute("kenyaemr.medicalChart.recentlyViewedPatients", List.class);
List<Patient> pats = new ArrayList<Patient>();
for (Integer ptId : recent) {
pats.add(Context.getPatientService().getPatient(ptId));
... | public List<SimpleObject> recentlyViewed(UiUtils ui,Session session) {
List<Integer> recent = session.getAttribute("kenyaemr.medicalChart.recentlyViewedPatients", List.class);
List<Patient> pats = new ArrayList<Patient>();
if (recent != null) {
for (Integer ptId : recent) {
pats.add(Context.getPatientServ... |
diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java
index c789339..323ddff 100644
--- a/src/java/davmail/exchange/dav/DavExchangeSession.java
+++ b/src/java/davmail/exchange/dav/DavExchangeSession.java
@@ -1,1711 +1,1711 @@
/*
* DavMail POP/IMAP/... | true | true | public ItemResult createOrUpdate() throws IOException {
int status = 0;
PropPatchMethod propPatchMethod = new PropPatchMethod(URIUtil.encodePath(getHref()), buildProperties()) {
@Override
protected void processResponseBody(HttpState httpState, HttpConnecti... | public ItemResult createOrUpdate() throws IOException {
int status = 0;
PropPatchMethod propPatchMethod = new PropPatchMethod(URIUtil.encodePath(getHref()), buildProperties()) {
@Override
protected void processResponseBody(HttpState httpState, HttpConnecti... |
diff --git a/src/main/java/com/vance/quest2012/WebRetriever.java b/src/main/java/com/vance/quest2012/WebRetriever.java
index 960a0ea..4b75e0c 100644
--- a/src/main/java/com/vance/quest2012/WebRetriever.java
+++ b/src/main/java/com/vance/quest2012/WebRetriever.java
@@ -1,23 +1,25 @@
package com.vance.quest2012;
/**
... | true | true | public WebRetriever(String target) {
this.target = target;
}
| public WebRetriever(String target) {
this.target = target;
String[] components = target.split(":", 2);
protocol = components[0];
}
|
diff --git a/application/src/org/yaaic/view/MessageListView.java b/application/src/org/yaaic/view/MessageListView.java
index 129d2d9..75aeefe 100644
--- a/application/src/org/yaaic/view/MessageListView.java
+++ b/application/src/org/yaaic/view/MessageListView.java
@@ -1,76 +1,74 @@
/*
Yaaic - Yet Another Android IRC ... | false | true | public MessageListView(Context context)
{
super(context);
setOnItemClickListener(MessageClickListener.getInstance());
setDivider(null);
setCacheColorHint(0x000000);
setVerticalFadingEdgeEnabled(false);
setBackgroundResource(R.layout.conversation_background);
... | public MessageListView(Context context)
{
super(context);
setOnItemClickListener(MessageClickListener.getInstance());
setDivider(null);
setCacheColorHint(0x000000);
setVerticalFadingEdgeEnabled(false);
setBackgroundResource(R.layout.conversation_background);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.