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/deegree-datastores/deegree-tilestores/deegree-tilestore-remotewms/src/main/java/org/deegree/tile/persistence/remotewms/RemoteWMSTile.java b/deegree-datastores/deegree-tilestores/deegree-tilestore-remotewms/src/main/java/org/deegree/tile/persistence/remotewms/RemoteWMSTile.java
index 7ebf94bb28..cd26a13a7d ... | true | true | public FeatureCollection getFeatures( int i, int j, int limit )
throws UnsupportedOperationException {
FeatureCollection fc = null;
try {
List<String> layers = new ArrayList<String>();
for ( LayerRef layerRef : gm.getLayers() ) {
l... | public FeatureCollection getFeatures( int i, int j, int limit ) {
FeatureCollection fc = null;
try {
List<String> layers = new ArrayList<String>();
for ( LayerRef layerRef : gm.getLayers() ) {
layers.add( layerRef.getName() );
}
int wi... |
diff --git a/alfresco-mobile-android/src/org/alfresco/mobile/android/application/fragments/activities/ActivityEventAdapter.java b/alfresco-mobile-android/src/org/alfresco/mobile/android/application/fragments/activities/ActivityEventAdapter.java
index d2194601..9ad4cda2 100644
--- a/alfresco-mobile-android/src/org/alfre... | true | true | private String getActivityTypeMessage(ActivityEntry item)
{
String s = item.getType();
if (MAP_ACTIVITY_TYPE.get(s) != null)
{
s = getContext().getResources().getString(MAP_ACTIVITY_TYPE.get(item.getType()));
if (s.contains(PARAM_CUSTOM))
{
... | private String getActivityTypeMessage(ActivityEntry item)
{
String s = item.getType();
if (MAP_ACTIVITY_TYPE.get(s) != null)
{
s = getContext().getResources().getString(MAP_ACTIVITY_TYPE.get(item.getType()));
if (s.contains(PARAM_CUSTOM))
{
... |
diff --git a/src/java/is/idega/block/agresso/dao/impl/AgressoDAOImpl.java b/src/java/is/idega/block/agresso/dao/impl/AgressoDAOImpl.java
index e7f1a06..65b745a 100644
--- a/src/java/is/idega/block/agresso/dao/impl/AgressoDAOImpl.java
+++ b/src/java/is/idega/block/agresso/dao/impl/AgressoDAOImpl.java
@@ -1,70 +1,73 @@
... | true | true | public void addFinanceEntryParking(String entryType, String userSSN,
Integer amount, Timestamp paymentDate, Date creationDate, String info,
String registrationNumber, String permanentNumber, String carType,
String owner, String ticketNumber, String ticketOfficer,
String streetName, String streetNumber, Str... | public void addFinanceEntryParking(String entryType, String userSSN,
Integer amount, Timestamp paymentDate, Date creationDate, String info,
String registrationNumber, String permanentNumber, String carType,
String owner, String ticketNumber, String ticketOfficer,
String streetName, String streetNumber, Str... |
diff --git a/h2/src/main/org/h2/server/web/WebSession.java b/h2/src/main/org/h2/server/web/WebSession.java
index 324614f18..bbd0f2167 100644
--- a/h2/src/main/org/h2/server/web/WebSession.java
+++ b/h2/src/main/org/h2/server/web/WebSession.java
@@ -1,258 +1,258 @@
/*
* Copyright 2004-2013 H2 Group. Multiple-Licensed... | true | true | void loadBnf() {
try {
Bnf newBnf = Bnf.getInstance(null);
DbContextRule columnRule = new DbContextRule(contents, DbContextRule.COLUMN);
DbContextRule newAliasRule = new DbContextRule(contents, DbContextRule.NEW_TABLE_ALIAS);
DbContextRule aliasRule = new DbCo... | void loadBnf() {
try {
Bnf newBnf = Bnf.getInstance(null);
DbContextRule columnRule = new DbContextRule(contents, DbContextRule.COLUMN);
DbContextRule newAliasRule = new DbContextRule(contents, DbContextRule.NEW_TABLE_ALIAS);
DbContextRule aliasRule = new DbCo... |
diff --git a/core/src/main/java/woko/facets/builtin/developer/ListTabularImpl.java b/core/src/main/java/woko/facets/builtin/developer/ListTabularImpl.java
index 2adaaf52..2d3803f9 100644
--- a/core/src/main/java/woko/facets/builtin/developer/ListTabularImpl.java
+++ b/core/src/main/java/woko/facets/builtin/developer/Li... | true | true | public String getPath() {
return "/WEB-INF/jsp/developer/list-tabular.jsp";
}
| public String getPath() {
return "/WEB-INF/woko/jsp/developer/listTabular.jsp";
}
|
diff --git a/loci/formats/in/LIFReader.java b/loci/formats/in/LIFReader.java
index a3044b758..4ac0484a9 100644
--- a/loci/formats/in/LIFReader.java
+++ b/loci/formats/in/LIFReader.java
@@ -1,675 +1,675 @@
//
// LIFReader.java
//
/*
LOCI Bio-Formats package for reading and converting biological file formats.
Cop... | true | true | private void initMetadata(String xml) throws FormatException, IOException {
// parse raw key/value pairs - adapted from FlexReader
LIFHandler handler = new LIFHandler();
xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><LEICA>" + xml +
"</LEICA>";
// strip out invalid characters
for... | private void initMetadata(String xml) throws FormatException, IOException {
// parse raw key/value pairs - adapted from FlexReader
LIFHandler handler = new LIFHandler();
xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><LEICA>" + xml +
"</LEICA>";
// strip out invalid characters
for... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/invitation/internal/InvitationProcess.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/invitation/internal/InvitationProcess.java
index 53c7c2515..559bec438 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/invitation/internal/InvitationProcess.jav... | true | true | public void cancel(String errorMsg, boolean replicated) {
synchronized (this) {
if (this.state == State.CANCELED) {
return;
}
setState(State.CANCELED);
}
if (replicated) {
if (errorMsg != null) {
InvitationProc... | public void cancel(String errorMsg, boolean replicated) {
synchronized (this) {
if (this.state == State.CANCELED) {
return;
}
setState(State.CANCELED);
}
if (replicated) {
if (errorMsg != null) {
InvitationProc... |
diff --git a/JavaSource/org/unitime/timetable/backup/SessionBackup.java b/JavaSource/org/unitime/timetable/backup/SessionBackup.java
index 739f4b3b..6dab9898 100644
--- a/JavaSource/org/unitime/timetable/backup/SessionBackup.java
+++ b/JavaSource/org/unitime/timetable/backup/SessionBackup.java
@@ -1,610 +1,610 @@
/*
... | true | true | public void backup(Long sessionId) throws IOException {
iSessionId = sessionId;
iHibSession = new _RootDAO().createNewSession();
iHibSessionFactory = iHibSession.getSessionFactory();
try {
iProgress.setStatus("Exporting Session");
iProgress.setPhase("Loding Model", 3);
Tree... | public void backup(Long sessionId) throws IOException {
iSessionId = sessionId;
iHibSession = new _RootDAO().createNewSession();
iHibSessionFactory = iHibSession.getSessionFactory();
try {
iProgress.setStatus("Exporting Session");
iProgress.setPhase("Loading Model", 3);
Tre... |
diff --git a/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/views/model/TreePropertyProvider.java b/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/views/model/TreePropertyProvider.java
index e975d9e1..7cc21a2a 100644
--- a/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/views/model/TreePropertyProvider.java
+++ b/org... | true | true | public Object getPropertyValue(Object id) {
if (id.equals("id")) { //$NON-NLS-1$
return node.getResource().getId();
}
if (id.equals("key")) { //$NON-NLS-1$
return node.getResource().getKey();
}
if (id.equals("language")) { //$NON-NLS-1$
return node.getResource().getLanguage();
... | public Object getPropertyValue(Object id) {
if (node == null || node.getResource() == null)
return "";
if (id.equals("id")) { //$NON-NLS-1$
return node.getResource().getId();
}
if (id.equals("key")) { //$NON-NLS-1$
return node.getResource().getKey();
}
if (id.equals("language... |
diff --git a/src/net/mdcreator/tpplus/home/HomeExecutor.java b/src/net/mdcreator/tpplus/home/HomeExecutor.java
index 6c3c902..1864132 100644
--- a/src/net/mdcreator/tpplus/home/HomeExecutor.java
+++ b/src/net/mdcreator/tpplus/home/HomeExecutor.java
@@ -1,174 +1,176 @@
package net.mdcreator.tpplus.home;
import net.m... | false | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
Player send;
if(!(sender instanceof Player)){
sender.sendMessage(title + ChatColor.RED + "Player context is required!");
return true;
}
send = (Player) sender;
... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
Player send;
if(!(sender instanceof Player)){
sender.sendMessage(title + ChatColor.RED + "Player context is required!");
return true;
}
send = (Player) sender;
... |
diff --git a/projects/akka-spring/src/test/java/org/nohope/akka/spring/Bean.java b/projects/akka-spring/src/test/java/org/nohope/akka/spring/Bean.java
index c66c61c..1f5c4f9 100644
--- a/projects/akka-spring/src/test/java/org/nohope/akka/spring/Bean.java
+++ b/projects/akka-spring/src/test/java/org/nohope/akka/spring/B... | false | true | public void onReceive(final Object message) {
if (message instanceof Props) {
switch ((Props) message) {
case PARAM1:
getSender().tell(param1);
break;
case PARAM2:
getSender().tell(param2);
... | public void onReceive(final Object message) {
if (message instanceof Props) {
switch ((Props) message) {
case PARAM1:
getSender().tell(param1, getSelf());
break;
case PARAM2:
getSender().tell(param2, getS... |
diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java
index 30b4738c..e1511b9d 100644
--- a/src/com/android/browser/SuggestionsAdapter.java
+++ b/src/com/android/browser/SuggestionsAdapter.java
@@ -1,597 +1,599 @@
/*
* Copyright (C) 2010 The Android Open Sourc... | false | true | private void bindView(View view, SuggestItem item) {
// store item for click handling
view.setTag(item);
TextView tv1 = (TextView) view.findViewById(android.R.id.text1);
TextView tv2 = (TextView) view.findViewById(android.R.id.text2);
ImageView ic1 = (ImageView) view.findView... | private void bindView(View view, SuggestItem item) {
// store item for click handling
view.setTag(item);
TextView tv1 = (TextView) view.findViewById(android.R.id.text1);
TextView tv2 = (TextView) view.findViewById(android.R.id.text2);
ImageView ic1 = (ImageView) view.findView... |
diff --git a/GSP/GSPFramework/src/main/java/fr/prima/gsp/demo/Grabber.java b/GSP/GSPFramework/src/main/java/fr/prima/gsp/demo/Grabber.java
index 7806dbd..4bb9dea 100644
--- a/GSP/GSPFramework/src/main/java/fr/prima/gsp/demo/Grabber.java
+++ b/GSP/GSPFramework/src/main/java/fr/prima/gsp/demo/Grabber.java
@@ -1,65 +1,65 ... | true | true | public synchronized void bufferedImageReceived(BufferedImage image, ByteBuffer imageDataOrNull) {
if (!isEnabled()) return;
tick();
output(image);
Pointer imageDataPointer;
if (imageDataOrNull != null && imageDataOrNull.isDirect()) {
imageDataPointer = Native.getD... | public synchronized void bufferedImageReceived(BufferedImage image, ByteBuffer imageDataOrNull) {
if (!isEnabled()) return;
tick();
output(image);
Pointer imageDataPointer;
if (imageDataOrNull != null && imageDataOrNull.isDirect()) {
imageDataPointer = Native.getD... |
diff --git a/src/pl/edu/pk/nurse/constraints/hard/FullCoverConstraint.java b/src/pl/edu/pk/nurse/constraints/hard/FullCoverConstraint.java
index a2e0371..6928481 100644
--- a/src/pl/edu/pk/nurse/constraints/hard/FullCoverConstraint.java
+++ b/src/pl/edu/pk/nurse/constraints/hard/FullCoverConstraint.java
@@ -1,80 +1,80 ... | true | true | private int validate() {
int result = 0;
result += weekDay(Weekday.MONDAY);
result += weekDay(Weekday.TUESDAY);
result += weekDay(Weekday.WEDNESDAY);
result += weekDay(Weekday.THURSDAY);
result += weekDay(Weekday.FRIDAY);
result... | private int validate() {
int result = 0;
result += weekDay(Weekday.MONDAY);
result += weekDay(Weekday.TUESDAY);
result += weekDay(Weekday.WEDNESDAY);
result += weekDay(Weekday.THURSDAY);
result += weekDay(Weekday.FRIDAY);
result... |
diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher2/BubbleTextView.java
index d02f597b..ad01fac4 100644
--- a/src/com/android/launcher2/BubbleTextView.java
+++ b/src/com/android/launcher2/BubbleTextView.java
@@ -1,313 +1,313 @@
/*
* Copyright (C) 2008 The Android Open Source Projec... | true | true | public void draw(Canvas canvas) {
if (mPressedOrFocusedBackground != null && (isPressed() || isFocused())) {
// The blue glow can extend outside of our clip region, so we first temporarily expand
// the canvas's clip region
canvas.save(Canvas.CLIP_SAVE_FLAG);
... | public void draw(Canvas canvas) {
if (mPressedOrFocusedBackground != null && (isPressed() || isFocused())) {
// The blue glow can extend outside of our clip region, so we first temporarily expand
// the canvas's clip region
canvas.save(Canvas.CLIP_SAVE_FLAG);
... |
diff --git a/src/com/dmdirc/plugins/PluginInfo.java b/src/com/dmdirc/plugins/PluginInfo.java
index 424322a21..ba06ce2ae 100644
--- a/src/com/dmdirc/plugins/PluginInfo.java
+++ b/src/com/dmdirc/plugins/PluginInfo.java
@@ -1,791 +1,789 @@
/*
* Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes
*
... | true | true | public boolean checkRequirements() {
if (metaData == null) {
// No meta-data, so no requirements.
return true;
}
if (!checkMinimumVersion(getMinVersion(), Main.SVN_REVISION) ||
!checkMaximumVersion(getMaxVersion(), Main.SVN_REVISION) ||
!checkFiles(getMetaInfo(new String[]{"required-files", ... | public boolean checkRequirements() {
if (metaData == null) {
// No meta-data, so no requirements.
return true;
}
if (!checkMinimumVersion(getMinVersion(), Main.SVN_REVISION) ||
!checkMaximumVersion(getMaxVersion(), Main.SVN_REVISION) ||
!checkFiles(getMetaInfo(new String[]{"required-files", ... |
diff --git a/src/powercrystals/minefactoryreloaded/block/BlockRedstoneCable.java b/src/powercrystals/minefactoryreloaded/block/BlockRedstoneCable.java
index 39bd7463..3fb32018 100644
--- a/src/powercrystals/minefactoryreloaded/block/BlockRedstoneCable.java
+++ b/src/powercrystals/minefactoryreloaded/block/BlockRedstone... | true | true | public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset)
{
TileEntity te = world.getBlockTileEntity(x, y, z);
if(te != null && te instanceof TileRedstoneCable)
{
TileRedstoneCable cable = (TileRedstoneCable)te;
int subHi... | public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset)
{
TileEntity te = world.getBlockTileEntity(x, y, z);
if(te != null && te instanceof TileRedstoneCable)
{
TileRedstoneCable cable = (TileRedstoneCable)te;
int subHi... |
diff --git a/web/src/main/java/org/openmrs/web/form/visit/VisitEncounterHandlerFormValidator.java b/web/src/main/java/org/openmrs/web/form/visit/VisitEncounterHandlerFormValidator.java
index 7a155ac2..93a05e1d 100644
--- a/web/src/main/java/org/openmrs/web/form/visit/VisitEncounterHandlerFormValidator.java
+++ b/web/sr... | true | true | public void validate(Object target, Errors errors) {
VisitEncounterHandlerForm form = (VisitEncounterHandlerForm) target;
if (form.isEnableVisits()) {
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "encounterVisitHandler",
"Encounter.error.visits.handler.empty");
}
}
| public void validate(Object target, Errors errors) {
VisitEncounterHandlerForm form = (VisitEncounterHandlerForm) target;
if (form.isEnableVisits()) {
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "visitEncounterHandler",
"Encounter.error.visits.handler.empty");
}
}
|
diff --git a/Interpreter/src/edu/tum/lua/junit/stdlib/ToNumberTest.java b/Interpreter/src/edu/tum/lua/junit/stdlib/ToNumberTest.java
index 4dacab2..daf4a42 100644
--- a/Interpreter/src/edu/tum/lua/junit/stdlib/ToNumberTest.java
+++ b/Interpreter/src/edu/tum/lua/junit/stdlib/ToNumberTest.java
@@ -1,67 +1,67 @@
package ... | true | true | public void test() {
ToNumber p = new ToNumber();
LinkedList<Object> l;
l = new LinkedList<Object>();
try {
p.apply(l);
fail("Accept empty input");
} catch (LuaRuntimeException e) {
assertTrue("Don't accept empty input", true);
} catch (Exception e) {
fail("Unknow exception");
}
l.add("1... | public void test() {
ToNumber p = new ToNumber();
LinkedList<Object> l;
l = new LinkedList<Object>();
try {
p.apply(l);
fail("Accept empty input");
} catch (LuaRuntimeException e) {
assertTrue("Don't accept empty input", true);
} catch (Exception e) {
fail("Unknow exception");
}
l.add("1... |
diff --git a/projects/samskivert/src/java/com/samskivert/util/OneLineLogFormatter.java b/projects/samskivert/src/java/com/samskivert/util/OneLineLogFormatter.java
index 4ec33076..15ec58a8 100644
--- a/projects/samskivert/src/java/com/samskivert/util/OneLineLogFormatter.java
+++ b/projects/samskivert/src/java/com/samski... | true | true | public String format (LogRecord record)
{
StringBuffer buf = new StringBuffer();
// append the timestamp
_date.setTime(record.getMillis());
_format.format(_date, buf, _fpos);
// append the log level
buf.append(" ");
buf.append(record.getLevel().getLocalizedName());
// appe... | public String format (LogRecord record)
{
StringBuffer buf = new StringBuffer();
// append the timestamp
_date.setTime(record.getMillis());
_format.format(_date, buf, _fpos);
// append the log level
buf.append(" ");
buf.append(record.getLevel().getLocalizedName());
// appe... |
diff --git a/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java b/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java
index 100a804e6f..5bf246cddd 100644
--- a/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java
+++ b/src/org/rascalmpl/library/experiments/Com... | true | true | private Object executeProgram(Frame root, Frame cf) {
Object[] stack = cf.stack; // current stack
int sp = cf.function.nlocals; // current stack pointer
int [] instructions = cf.function.codeblock.getInstructions(); // current instruction sequence
int pc =... | private Object executeProgram(Frame root, Frame cf) {
Object[] stack = cf.stack; // current stack
int sp = cf.function.nlocals; // current stack pointer
int [] instructions = cf.function.codeblock.getInstructions(); // current instruction sequence
int pc =... |
diff --git a/src/main/java/net/md_5/specialsource/RemapperPreprocessor.java b/src/main/java/net/md_5/specialsource/RemapperPreprocessor.java
index 858f4f8..d9c8b36 100644
--- a/src/main/java/net/md_5/specialsource/RemapperPreprocessor.java
+++ b/src/main/java/net/md_5/specialsource/RemapperPreprocessor.java
@@ -1,215 +... | false | true | public byte[] preprocess(ClassReader classReader) {
byte[] bytecode = null;
ClassNode classNode = new ClassNode();
int flags = ClassReader.SKIP_DEBUG;
if (!isRewritingNeeded()) {
// Not rewriting the class - skip the code, not needed
flags |= ClassReader.SKIP... | public byte[] preprocess(ClassReader classReader) {
byte[] bytecode = null;
ClassNode classNode = new ClassNode();
int flags = 0;
if (!isRewritingNeeded()) {
// Not rewriting the class - skip the code, not needed
flags |= ClassReader.SKIP_CODE | ClassReader.S... |
diff --git a/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java b/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
index 909d927c2..0abaf13cb 100644
--- a/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
+++ b/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
@@ -1,551 +1,55... | false | true | public void assertExecJavaCmdAsExpected(
String[] expectedString, String[] cmd, int expectedExitValue)
throws InterruptedException, IOException {
int totalSize = 3 + cmd.length;
String[] tcmd = new String[totalSize];
tcmd[0] = "java";
tcmd[1] = "-classpath";
... | public void assertExecJavaCmdAsExpected(
String[] expectedString, String[] cmd, int expectedExitValue)
throws InterruptedException, IOException {
int totalSize = 3 + cmd.length;
String[] tcmd = new String[totalSize];
tcmd[0] = "java";
tcmd[1] = "-classpath";
... |
diff --git a/src/main/java/me/desht/scrollingmenusign/commands/RemoveViewCommand.java b/src/main/java/me/desht/scrollingmenusign/commands/RemoveViewCommand.java
index ab14233..aee13ef 100644
--- a/src/main/java/me/desht/scrollingmenusign/commands/RemoveViewCommand.java
+++ b/src/main/java/me/desht/scrollingmenusign/com... | false | true | public boolean execute(Plugin plugin, CommandSender sender, String[] args) {
SMSView view = null;
if (args.length == 2 && args[0].equals("-view")) {
// detaching a view by view name
view = SMSView.getView(args[1]);
} else if (args.length == 2 && args[0].equals("-loc")) {
// detaching a view by location... | public boolean execute(Plugin plugin, CommandSender sender, String[] args) {
SMSView view = null;
if (args.length == 2 && args[0].equals("-view")) {
// detaching a view by view name
view = SMSView.getView(args[1]);
} else if (args.length == 2 && args[0].equals("-loc")) {
// detaching a view by location... |
diff --git a/src/main/java/com/google/code/magja/soap/MagentoSoapClient.java b/src/main/java/com/google/code/magja/soap/MagentoSoapClient.java
index 225f057..b06b8c9 100644
--- a/src/main/java/com/google/code/magja/soap/MagentoSoapClient.java
+++ b/src/main/java/com/google/code/magja/soap/MagentoSoapClient.java
@@ -1,1... | true | true | protected void login() throws AxisFault {
if (isLoggedIn()) logout();
connectOptions = new Options();
connectOptions.setTo(new EndpointReference(config.getRemoteHost()));
connectOptions.setTransportInProtocol(Constants.TRANSPORT_HTTP);
// to use the same tcp connection for... | protected void login() throws AxisFault {
if (isLoggedIn()) logout();
connectOptions = new Options();
connectOptions.setTo(new EndpointReference(config.getRemoteHost()));
connectOptions.setTransportInProtocol(Constants.TRANSPORT_HTTP);
// to use the same tcp connection for... |
diff --git a/esb/src/main/java/edu/nyu/grouper/util/StaticInitialGroupPropertiesProvider.java b/esb/src/main/java/edu/nyu/grouper/util/StaticInitialGroupPropertiesProvider.java
index a7527dc..a5b416d 100644
--- a/esb/src/main/java/edu/nyu/grouper/util/StaticInitialGroupPropertiesProvider.java
+++ b/esb/src/main/java/ed... | false | true | public void addProperties(Group group, PostMethod method) {
// Basic info
method.addParameter("sakai:group-title", group.getExtension());
method.addParameter("sakai:group-description", group.getDescription());
method.addParameter("sakai:pages-template", "/var/templates/site/defaultgroup");
// Authoriza... | public void addProperties(Group group, PostMethod method) {
// Basic info
method.addParameter("sakai:group-id", group.getExtension());
method.addParameter("sakai:group-title", group.getExtension());
method.addParameter("sakai:group-description", group.getDescription());
method.addParameter(":sakai:pages-t... |
diff --git a/src/standard/UserPlayer.java b/src/standard/UserPlayer.java
index 4b99757..d648a3b 100644
--- a/src/standard/UserPlayer.java
+++ b/src/standard/UserPlayer.java
@@ -1,202 +1,202 @@
package standard;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
import ... | false | true | public void update(GameContainer gc, int delta) {
Input input = gc.getInput();
if(input.isKeyPressed(Input.KEY_DOWN)){
y++;
if(y > HEIGHT-1){
y = 0;
}
}
if(input.isKeyPressed(Input.KEY_UP)){
y--;
if(y < 0){
y = HEIGHT;
}
}
if(input.isKeyPressed(Input.KEY_RIGHT)){
x++;
if(... | public void update(GameContainer gc, int delta) {
Input input = gc.getInput();
if(input.isKeyPressed(Input.KEY_DOWN)){
y++;
if(y > HEIGHT-1){
y = 0;
}
}
if(input.isKeyPressed(Input.KEY_UP)){
y--;
if(y < 0){
y = HEIGHT-1;
}
}
if(input.isKeyPressed(Input.KEY_RIGHT)){
x++;
i... |
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java
index 5c6ea07e..70b6f579 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java
@@ -1,136 +1,139 ... | false | true | private int createFunction(CreateFunctionDesc createFunctionDesc) {
try {
Class<?> udfClass = getUdfClass(createFunctionDesc);
if (UDF.class.isAssignableFrom(udfClass)) {
FunctionRegistry.registerTemporaryUDF(createFunctionDesc
.getFunctionName(), (Class<? extends UDF>) udfClass, f... | private int createFunction(CreateFunctionDesc createFunctionDesc) {
try {
Class<?> udfClass = getUdfClass(createFunctionDesc);
if (UDF.class.isAssignableFrom(udfClass)) {
FunctionRegistry.registerTemporaryUDF(createFunctionDesc
.getFunctionName(), (Class<? extends UDF>) udfClass, f... |
diff --git a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java
index 751386ed2..f0042a94d 100644
--- a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFWriter.java
+++ b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VC... | true | true | private String toStringEncoding(VariantContext vc, VCFHeader header, byte[] refBases) {
StringBuilder builder = new StringBuilder();
// CHROM \t POS \t ID \t REF \t ALT \t QUAL \t FILTER \t INFO
GenomeLoc loc = vc.getLocation();
String contig = loc.getContig();
long positio... | private String toStringEncoding(VariantContext vc, VCFHeader header, byte[] refBases) {
StringBuilder builder = new StringBuilder();
// CHROM \t POS \t ID \t REF \t ALT \t QUAL \t FILTER \t INFO
GenomeLoc loc = vc.getLocation();
String contig = loc.getContig();
long positio... |
diff --git a/grails/src/commons/org/codehaus/groovy/grails/validation/metaclass/ConstraintsEvaluatingDynamicProperty.java b/grails/src/commons/org/codehaus/groovy/grails/validation/metaclass/ConstraintsEvaluatingDynamicProperty.java
index add4a55aa..0e1261cfd 100644
--- a/grails/src/commons/org/codehaus/groovy/grails/v... | true | true | public Object get(Object object) {
// Suppress recursion problems if a GroovyObject
if (object instanceof GroovyObject)
{
GroovyObject go = (GroovyObject)object;
if (go.getMetaClass() instanceof ProxyMetaClass)
{
go.setMetaClass(((ProxyMe... | public Object get(Object object) {
// Suppress recursion problems if a GroovyObject
if (object instanceof GroovyObject)
{
GroovyObject go = (GroovyObject)object;
if (go.getMetaClass() instanceof ProxyMetaClass)
{
go.setMetaClass(((ProxyMe... |
diff --git a/rio-services/monitor/monitor-service/src/main/java/org/rioproject/monitor/ProvisionMonitorImpl.java b/rio-services/monitor/monitor-service/src/main/java/org/rioproject/monitor/ProvisionMonitorImpl.java
index 2262bf42..2e786533 100644
--- a/rio-services/monitor/monitor-service/src/main/java/org/rioproject/m... | false | true | public void initialize(ServiceBeanContext context) throws Exception {
try {
/*
* Determine if a log directory has been provided. If so, create a
* PersistentStore
*/
String logDirName = (String)context.getConfiguration().getEntry(CONFIG_COMPONEN... | public void initialize(ServiceBeanContext context) throws Exception {
try {
/*
* Determine if a log directory has been provided. If so, create a
* PersistentStore
*/
String logDirName = (String)context.getConfiguration().getEntry(CONFIG_COMPONEN... |
diff --git a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_deop.java b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_deop.java
index 4b40de4..bb7da87 100644
--- a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_deop.java
+++ b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_deop.java
@@ -1,4... | true | true | public void onPlayerChat(AsyncPlayerChatEvent event)
{
String message = event.getMessage();
final Player p = event.getPlayer();
String[] args = message.split(" ");
Server server = Bukkit.getServer();
boolean cancel = true;
if (message.toLowerCase().contains("... | public void onPlayerChat(AsyncPlayerChatEvent event)
{
String message = event.getMessage();
final Player p = event.getPlayer();
String[] args = message.split(" ");
Server server = Bukkit.getServer();
boolean cancel = true;
if (message.toLowerCase().contains("... |
diff --git a/main/src/com/google/refine/importers/TsvCsvImporter.java b/main/src/com/google/refine/importers/TsvCsvImporter.java
index 0568ab4a..7d959df0 100644
--- a/main/src/com/google/refine/importers/TsvCsvImporter.java
+++ b/main/src/com/google/refine/importers/TsvCsvImporter.java
@@ -1,206 +1,205 @@
package com.... | false | true | public void read(LineNumberReader lnReader, Project project, String sep, int limit, int skip, int ignoreLines, int headerLines, boolean guessValueType, boolean splitIntoColumns, boolean ignoreQuotes ) throws IOException{
CSVParser parser = (sep != null && sep.length() > 0 && splitIntoColumns) ?
... | public void read(LineNumberReader lnReader, Project project, String sep, int limit, int skip, int ignoreLines, int headerLines, boolean guessValueType, boolean splitIntoColumns, boolean ignoreQuotes ) throws IOException{
CSVParser parser = (sep != null && sep.length() > 0 && splitIntoColumns) ?
... |
diff --git a/src/main/java/ch/ethz/iks/slp/impl/SLPMessage.java b/src/main/java/ch/ethz/iks/slp/impl/SLPMessage.java
index 3680f7d..a2ae287 100644
--- a/src/main/java/ch/ethz/iks/slp/impl/SLPMessage.java
+++ b/src/main/java/ch/ethz/iks/slp/impl/SLPMessage.java
@@ -1,505 +1,505 @@
/* Copyright (c) 2005-2008 Jan S. Rell... | true | true | static SLPMessage parse(final InetAddress senderAddr, final int senderPort,
final DataInputStream in, final boolean tcp)
throws ServiceLocationException, ProtocolException {
try {
final int version = in.readByte(); // version
if (version == SLP_VERSION) {
in.readByte(); // funcID
final int length... | static SLPMessage parse(final InetAddress senderAddr, final int senderPort,
final DataInputStream in, final boolean tcp)
throws ServiceLocationException, ProtocolException {
try {
final int version = in.readByte(); // version
if (version != SLP_VERSION) {
in.readByte(); // funcID
final int length... |
diff --git a/src/org/sablecc/sablecc/core/Grammar.java b/src/org/sablecc/sablecc/core/Grammar.java
index 7f6e0f2..65707df 100644
--- a/src/org/sablecc/sablecc/core/Grammar.java
+++ b/src/org/sablecc/sablecc/core/Grammar.java
@@ -1,190 +1,190 @@
/* This file is part of SableCC ( http://sablecc.org ).
*
* See the NO... | false | true | private void initializeFrom(
Start ast) {
this.nameSpace = new NameSpace();
// the global name space includes all top-level names, excluding AST
// names.
ast.apply(new DepthFirstAdapter() {
private final Grammar grammar = Grammar.this;
privat... | private void initializeFrom(
Start ast) {
this.nameSpace = new NameSpace();
// the global name space includes all top-level names, excluding AST
// names.
ast.apply(new DepthFirstAdapter() {
private final Grammar grammar = Grammar.this;
privat... |
diff --git a/Factory/src/factory/managers/FactoryProductionManager.java b/Factory/src/factory/managers/FactoryProductionManager.java
index 348fa2d..6ddbb99 100644
--- a/Factory/src/factory/managers/FactoryProductionManager.java
+++ b/Factory/src/factory/managers/FactoryProductionManager.java
@@ -1,503 +1,503 @@
//Cont... | true | true | public void doCommand(ArrayList<String> pCmd) {
int size = pCmd.size();
//parameters lay between i = 2 and i = size - 2
String action = pCmd.get(0);
String identifier = pCmd.get(1);
System.out.println("Got command");
System.out.println(action);
System.out.println(identifier);
if(action.equals("cmd")){
... | public void doCommand(ArrayList<String> pCmd) {
int size = pCmd.size();
//parameters lay between i = 2 and i = size - 2
String action = pCmd.get(0);
String identifier = pCmd.get(1);
System.out.println("Got command");
System.out.println(action);
System.out.println(identifier);
if(action.equals("cmd")){
... |
diff --git a/classpath/java/util/Calendar.java b/classpath/java/util/Calendar.java
index d39b8a14..629eaced 100644
--- a/classpath/java/util/Calendar.java
+++ b/classpath/java/util/Calendar.java
@@ -1,167 +1,167 @@
/* Copyright (c) 2008, Avian Contributors
Permission to use, copy, modify, and/or distribute this ... | true | true | private void parseIntoFields(long timeInMillis) {
long days = timeInMillis / MILLIS_PER_DAY;
/* convert days since Jan 1, 1970 to days since Jan 1, 1968 */
days += DAYS_TO_EPOCH;
long years = 4 * days / 1461; /* days/365.25 = 4*days/(4*365.25) */
int year = (int)(EPOCH_LEAP_YEAR + year... | private void parseIntoFields(long timeInMillis) {
long days = timeInMillis / MILLIS_PER_DAY;
/* convert days since Jan 1, 1970 to days since Jan 1, 1968 */
days += DAYS_TO_EPOCH;
long years = 4 * days / 1461; /* days/365.25 = 4*days/(4*365.25) */
int year = (int)(EPOCH_LEAP_YEAR + year... |
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/mopp/PrinterGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/mopp/PrinterGenerator.java
index 252a4d637..2eff5187d 100644
--- a/org.emftext.sdk.codegen.resource/src/org/emftext/... | true | true | private void printDefinition(JavaComposite sc, GenClass genClass,
Set<String> neededFeatures,
ListIterator<Definition> definitionIterator, Definition definition) {
sc.addComment("DEFINITION PART BEGINS (" + definition.eClass().getName() + ")");
String printPrefix = "out.print(";
if (definition instanceof L... | private void printDefinition(JavaComposite sc, GenClass genClass,
Set<String> neededFeatures,
ListIterator<Definition> definitionIterator, Definition definition) {
sc.addComment("DEFINITION PART BEGINS (" + definition.eClass().getName() + ")");
String printPrefix = "out.print(";
if (definition instanceof L... |
diff --git a/src/java/org/infoglue/deliver/util/DeliverContextListener.java b/src/java/org/infoglue/deliver/util/DeliverContextListener.java
index 757296e2d..46d7c21eb 100755
--- a/src/java/org/infoglue/deliver/util/DeliverContextListener.java
+++ b/src/java/org/infoglue/deliver/util/DeliverContextListener.java
@@ -1,1... | true | true | public void contextInitialized(ServletContextEvent event)
{
try
{
String contextRootPath = event.getServletContext().getRealPath("/");
if(!contextRootPath.endsWith("/") && !contextRootPath.endsWith("\\"))
contextRootPath = contextRootPath + "/";
System.out.println("\n************... | public void contextInitialized(ServletContextEvent event)
{
try
{
String contextRootPath = event.getServletContext().getRealPath("/");
if(!contextRootPath.endsWith("/") && !contextRootPath.endsWith("\\"))
contextRootPath = contextRootPath + "/";
System.out.println("\n************... |
diff --git a/src/org/openstreetmap/josm/actions/AlignInCircleAction.java b/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
index be540dd1..d317c9c6 100644
--- a/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
+++ b/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
@@ -1,269 +1,269 @@
... | false | true | public void actionPerformed(ActionEvent e) {
if (!isEnabled())
return;
Collection<OsmPrimitive> sel = getCurrentDataSet().getSelected();
List<Node> nodes = new LinkedList<Node>();
List<Way> ways = new LinkedList<Way>();
EastNorth center = null;
double rad... | public void actionPerformed(ActionEvent e) {
if (!isEnabled())
return;
Collection<OsmPrimitive> sel = getCurrentDataSet().getSelected();
List<Node> nodes = new LinkedList<Node>();
List<Way> ways = new LinkedList<Way>();
EastNorth center = null;
double rad... |
diff --git a/hot-deploy/warehouse/src/org/opentaps/warehouse/shipment/packing/PackingSession.java b/hot-deploy/warehouse/src/org/opentaps/warehouse/shipment/packing/PackingSession.java
index 0f314be29..3cc5bcff7 100644
--- a/hot-deploy/warehouse/src/org/opentaps/warehouse/shipment/packing/PackingSession.java
+++ b/hot-... | false | true | @Override public void addOrIncreaseLine(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, BigDecimal quantity, int packageSeqId, BigDecimal weight, boolean update) throws GeneralException {
// reset the session if we just completed
if (status == 0) {
throw n... | @Override public void addOrIncreaseLine(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, BigDecimal quantity, int packageSeqId, BigDecimal weight, boolean update) throws GeneralException {
// reset the session if we just completed
if (status == 0) {
throw n... |
diff --git a/src/netmash/forest/ObjectMash.java b/src/netmash/forest/ObjectMash.java
index 8202917..c786904 100644
--- a/src/netmash/forest/ObjectMash.java
+++ b/src/netmash/forest/ObjectMash.java
@@ -1,510 +1,508 @@
package netmash.forest;
import java.util.*;
import java.util.regex.*;
import java.text.*;
impo... | false | true | private boolean scanList(LinkedList list, String path, LinkedList rhs){
if(list.size()==0) return true;
if(list.size()==2 && list.get(0).equals("<")){
double d=findDouble(list.get(1));
return (contentDouble(path) < d);
}
if(list.size()==2 && list.get(0).equals... | private boolean scanList(LinkedList list, String path, LinkedList rhs){
if(list.size()==0) return true;
if(list.size()==2 && list.get(0).equals("<")){
double d=findDouble(list.get(1));
return (contentDouble(path) < d);
}
if(list.size()==2 && list.get(0).equals... |
diff --git a/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java b/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
index 9b5c8c83..937c1ac9 100644
--- a/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
+++ b/src/org/openstreetmap/josm/gui/io/UploadStrategySelection... | false | true | protected JPanel buildUploadStrategyPanel() {
JPanel pnl = new JPanel();
pnl.setLayout(new GridBagLayout());
bgStrategies = new ButtonGroup();
rbStrategy = new HashMap<UploadStrategy, JRadioButton>();
lblStrategies = new HashMap<UploadStrategy, JMultilineLabel>();
lbl... | protected JPanel buildUploadStrategyPanel() {
JPanel pnl = new JPanel();
pnl.setLayout(new GridBagLayout());
bgStrategies = new ButtonGroup();
rbStrategy = new HashMap<UploadStrategy, JRadioButton>();
lblStrategies = new HashMap<UploadStrategy, JMultilineLabel>();
lbl... |
diff --git a/Looting.java b/Looting.java
index 71adee3..478e953 100644
--- a/Looting.java
+++ b/Looting.java
@@ -1,87 +1,88 @@
package roachkiller;
import org.powerbot.core.script.job.Task;
import org.powerbot.core.script.job.state.Node;
import org.powerbot.game.api.methods.Game;
import org.powerbot.game.api.metho... | true | true | public void execute() {
GroundItem g = GroundItems.getNearest(Variable.lootTier);
GroundItem p = g;
if(Variable.currentArea.contains(g)){
Method.turnTo(g.getLocation(), 6);
if(Inventory.isFull()){
Variable.status="Eating for room";
WidgetChild e = Inventory.getItem(Variable.food).getWidgetChild();
... | public void execute() {
GroundItem g = GroundItems.getNearest(Variable.lootTier);
GroundItem p = g;
if(Variable.currentArea.contains(g)){
Method.turnTo(g.getLocation(), 6);
if(Inventory.isFull()){
Variable.status="Eating for room";
WidgetChild e = Inventory.getItem(Variable.food).getWidgetChild();
... |
diff --git a/src/com/android/exchange/adapter/ProvisionParser.java b/src/com/android/exchange/adapter/ProvisionParser.java
index 1aff0467..057ffaff 100644
--- a/src/com/android/exchange/adapter/ProvisionParser.java
+++ b/src/com/android/exchange/adapter/ProvisionParser.java
@@ -1,450 +1,450 @@
/* 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/GameDriver.java b/GameDriver.java
index 73dcd06..159218e 100644
--- a/GameDriver.java
+++ b/GameDriver.java
@@ -1,32 +1,32 @@
import javax.swing.*;
public class GameDriver {
private static void createAndShowUI() {
- // crea te the model/view/control and connect them together
+ // create the mode... | true | true | private static void createAndShowUI() {
// crea te the model/view/control and connect them together
GameModel model = new GameModel();
GameView view = new GameView(model);
GameControl control = new GameControl(model);
GameMenu menu = new GameMenu(control);
view.setGuiControl(control);
// create the... | private static void createAndShowUI() {
// create the model/view/control and connect them together
GameModel model = new GameModel();
GameView view = new GameView(model);
GameControl control = new GameControl(model);
GameMenu menu = new GameMenu(control);
view.setGuiControl(control);
// create the ... |
diff --git a/src/com/modcrafting/ultrabans/commands/Unban.java b/src/com/modcrafting/ultrabans/commands/Unban.java
index e30d48f..ea39bb0 100644
--- a/src/com/modcrafting/ultrabans/commands/Unban.java
+++ b/src/com/modcrafting/ultrabans/commands/Unban.java
@@ -1,122 +1,129 @@
package com.modcrafting.ultrabans.commands... | true | true | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
YamlConfiguration config = (YamlConfiguration) plugin.getConfig();
boolean auth = false;
Player player = null;
String admin = config.getString("defAdminName", "server");
if (sender instanceof Player){
... | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
YamlConfiguration config = (YamlConfiguration) plugin.getConfig();
boolean auth = false;
Player player = null;
String admin = config.getString("defAdminName", "server");
if (sender instanceof Player){
... |
diff --git a/vcat-redis/src/main/java/vcat/cache/redis/MetadataRedisCache.java b/vcat-redis/src/main/java/vcat/cache/redis/MetadataRedisCache.java
index 6873b5d..47a6579 100644
--- a/vcat-redis/src/main/java/vcat/cache/redis/MetadataRedisCache.java
+++ b/vcat-redis/src/main/java/vcat/cache/redis/MetadataRedisCache.java... | true | true | public synchronized Metadata getMetadata(String key) throws CacheException {
if (this.containsKey(key)) {
final Jedis jedis = this.jedisPool.getResource();
final byte[] metadataObjectData = jedis.get(this.jedisKeyBytes(key));
this.jedisPool.returnResource(jedis);
Object metadataObject = SerializationUtil... | public synchronized Metadata getMetadata(String key) throws CacheException {
if (this.containsKey(key)) {
final Jedis jedis = this.jedisPool.getResource();
final byte[] metadataObjectData = jedis.get(this.jedisKeyBytes(key));
this.jedisPool.returnResource(jedis);
Object metadataObject = SerializationUtil... |
diff --git a/wflow-wfengine/src/main/java/org/joget/workflow/shark/JSPClientUtilities.java b/wflow-wfengine/src/main/java/org/joget/workflow/shark/JSPClientUtilities.java
index c87ee0d..6112e20 100644
--- a/wflow-wfengine/src/main/java/org/joget/workflow/shark/JSPClientUtilities.java
+++ b/wflow-wfengine/src/main/java/... | true | true | public static String packageLoad(SharkConnection sc, String xpdlName) throws Exception {
return "";
/* if (_debug_){
System.err.println("#_packageLoad_#");
String realPath = EXTERNAL_PACKAGES_REPOSITORY + "/" + xpdlName;
PackageAdministration pa = Shark.getInstance().getPackageAdministration... | public static String packageLoad(SharkConnection sc, String xpdlName) throws Exception {
return "";
/* if (_debug_){
System.err.println("#_packageLoad_#");
String realPath = EXTERNAL_PACKAGES_REPOSITORY + "/" + xpdlName;
PackageAdministration pa = Shark.getInstance().getPackageAdministration... |
diff --git a/src/de/hpi/InformationSpreading/StaticHelpers.java b/src/de/hpi/InformationSpreading/StaticHelpers.java
index 8471fcb..f1a215b 100644
--- a/src/de/hpi/InformationSpreading/StaticHelpers.java
+++ b/src/de/hpi/InformationSpreading/StaticHelpers.java
@@ -1,49 +1,49 @@
package de.hpi.InformationSpreading;
... | true | true | public static String getContentFromUrl(String urlString) throws Exception {
InputStream inputStream = null;
String line;
StringBuilder httpContent = new StringBuilder();
URL url;
try {
url = new URL(urlString);
inputStream = url.openStream(); // throws an IOException
DataInputStream dataInputStream ... | public static String getContentFromUrl(String urlString) throws Exception {
InputStream inputStream = null;
String line;
StringBuilder httpContent = new StringBuilder();
URL url;
try {
url = new URL(urlString);
inputStream = url.openStream(); // throws an IOException
DataInputStream dataInputStream ... |
diff --git a/pact/pact-runtime/src/main/java/eu/stratosphere/pact/runtime/task/MapTask.java b/pact/pact-runtime/src/main/java/eu/stratosphere/pact/runtime/task/MapTask.java
index abab62e45..23d487fac 100644
--- a/pact/pact-runtime/src/main/java/eu/stratosphere/pact/runtime/task/MapTask.java
+++ b/pact/pact-runtime/src/... | true | true | public void run() throws Exception
{
// cache references on the stack
final MutableObjectIterator<PactRecord> input = this.inputs[0];
final MapStub stub = this.stub;
final Collector output = this.output;
final PactRecord record = new PactRecord();
// DW: Start to temporary code
int count = 0;
lo... | public void run() throws Exception
{
// cache references on the stack
final MutableObjectIterator<PactRecord> input = this.inputs[0];
final MapStub stub = this.stub;
final Collector output = this.output;
final PactRecord record = new PactRecord();
// DW: Start to temporary code
int count = 0;
lo... |
diff --git a/trunk/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java b/trunk/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java
index 96e03eb3..2c998414 100644
--- a/trunk/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFor... | true | true | public static void format(ContentCollection x, Reference ref, HttpServletRequest req, HttpServletResponse res,
ResourceLoader rb, String accessPointTrue, String accessPointFalse)
{
// do not allow directory listings for /attachments and its subfolders
if(ContentHostingService.isAttachmentResource(x.getId()))... | public static void format(ContentCollection x, Reference ref, HttpServletRequest req, HttpServletResponse res,
ResourceLoader rb, String accessPointTrue, String accessPointFalse)
{
// do not allow directory listings for /attachments and its subfolders
if(ContentHostingService.isAttachmentResource(x.getId()))... |
diff --git a/src/minecraft/org/spoutcraft/client/gui/chat/GuiChatSettings.java b/src/minecraft/org/spoutcraft/client/gui/chat/GuiChatSettings.java
index fbecd37e..f3971692 100644
--- a/src/minecraft/org/spoutcraft/client/gui/chat/GuiChatSettings.java
+++ b/src/minecraft/org/spoutcraft/client/gui/chat/GuiChatSettings.ja... | true | true | protected void buttonClicked(Button btn) {
final ChatTextBox chat = Spoutcraft.getActivePlayer().getMainScreen().getChatTextBox();
if(btn == buttonDone) {
mc.displayGuiScreen(parent);
return;
}
Runnable save = new Runnable() {
@Override
public void run() {
SpoutClient.getInstance().getChatM... | protected void buttonClicked(Button btn) {
final ChatTextBox chat;
if(Spoutcraft.getActivePlayer() != null) {
chat = Spoutcraft.getActivePlayer().getMainScreen().getChatTextBox();
} else {
chat = null;
}
if(btn == buttonDone) {
mc.displayGuiScreen(parent);
return;
}
Runnable save = new Runnab... |
diff --git a/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/changelog/JGitChangeLogCommand.java b/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/changelog/JGitChangeLogCommand.java
index 624bbbd..fdbdd39 100644
--- a/maven-scm-provider-jgit/src... | true | true | protected ChangeLogScmResult executeChangeLogCommand( ScmProviderRepository repo, ScmFileSet fileSet,
Date startDate, Date endDate, ScmBranch branch,
String datePattern, ScmVersion startVersion,
... | protected ChangeLogScmResult executeChangeLogCommand( ScmProviderRepository repo, ScmFileSet fileSet,
Date startDate, Date endDate, ScmBranch branch,
String datePattern, ScmVersion startVersion,
... |
diff --git a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/egghandler/EggHandler.java b/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/egghandler/EggHandler.java
index 7ec8ce2..6e93633 100644
--- a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/egghandler/... | true | true | public static Entity Loadentity(String id, Location loc) {
int Entityid = eggs.getInt("Eggs.id." + id + ".Type");
EntityType etype = EntityType.fromId(Entityid);
if(etype.equals(EntityType.ZOMBIE) && !ZombieCache.containsKey(id)) {
CommonEntity entity = CommonEntity.create(etype);
String entityLoc = "Eggs.id.... | public static Entity Loadentity(String id, Location loc) {
int Entityid = eggs.getInt("Eggs.id." + id + ".Type");
EntityType etype = EntityType.fromId(Entityid);
if(etype.equals(EntityType.ZOMBIE) && !ZombieCache.containsKey(id)) {
CommonEntity entity = CommonEntity.create(etype);
String entityLoc = "Eggs.id.... |
diff --git a/src/com/android/phone/CallFeaturesSetting.java b/src/com/android/phone/CallFeaturesSetting.java
index 7ed08054..98502f24 100644
--- a/src/com/android/phone/CallFeaturesSetting.java
+++ b/src/com/android/phone/CallFeaturesSetting.java
@@ -1,2171 +1,2171 @@
/*
* Copyright (C) 2008 The Android Open Source ... | true | true | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
if (DBG) log("onCreate(). Intent: " + getIntent());
mPhone = PhoneApp.getPhone();
addPreferencesFromResource(R.xml.call_feature_setting);
mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);... | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
if (DBG) log("onCreate(). Intent: " + getIntent());
mPhone = PhoneApp.getPhone();
addPreferencesFromResource(R.xml.call_feature_setting);
mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);... |
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/TaskListFilterTest.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/TaskListFilterTest.java
index 749db3d..2d24d3e 100644
--- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/TaskListFilterTest.java
+++ b... | false | true | protected void setUp() throws Exception {
super.setUp();
view = TaskListView.openInActivePerspective();
assertNotNull(view);
previousFilters = view.getFilters();
view.clearFilters(false);
manager.getTaskList().reset();
assertEquals(0, manager.getTaskList().getAllTasks().size());
taskCompleted = new L... | protected void setUp() throws Exception {
super.setUp();
view = TaskListView.openInActivePerspective();
assertNotNull(view);
previousFilters = view.getFilters();
view.clearFilters(false);
manager.getTaskList().reset();
assertEquals(0, manager.getTaskList().getAllTasks().size());
taskCompleted = new L... |
diff --git a/JPL/ch17/ex17_04/ResourceManager.java b/JPL/ch17/ex17_04/ResourceManager.java
index 3c4c414..767ad07 100644
--- a/JPL/ch17/ex17_04/ResourceManager.java
+++ b/JPL/ch17/ex17_04/ResourceManager.java
@@ -1,101 +1,103 @@
package ch17.ex17_04;
import java.lang.ref.*;
import java.util.*;
public final clas... | false | true | public void run() {
// 割り込まれるまで実行
while (true) {
try {
Reference<?> ref = queue.remove();
Resource res = null;
synchronized(ResourceManager.this) {
res = refs.get(ref);
refs.remove(ref);
}
res.release();
ref.clear(... | public void run() {
// 割り込まれるまで実行
while (true) {
try {
Reference<?> ref = queue.remove();
Resource res = null;
synchronized(ResourceManager.this) {
res = refs.remove(ref);
}
res.release();
ref.clear();
} catch (Interr... |
diff --git a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java b/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
index aab88d6..8bdf2c4 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/rules/Promote.java b/src/rules/Promote.java
index 4e5d871..484c32a 100644
--- a/src/rules/Promote.java
+++ b/src/rules/Promote.java
@@ -1,232 +1,234 @@
package rules;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.HashMap;
import javax.swing.JOptionPane;
impo... | true | true | public Piece classicPromotion(Piece p, boolean verified, String promo) {
lastPromoted = p.getName();
if (!verified && promo == null&&g.isBlackMove()==p.isBlack()) {
klazz = "";
if(p.getPromotesTo().size()==1)
klazz = p.getPromotesTo().get(0);
while (klazz.equals("")) {
String result = (String) JO... | public Piece classicPromotion(Piece p, boolean verified, String promo) {
lastPromoted = p.getName();
klazz = p.getName();
if(p.getPromotesTo()==null) return p;
if (!verified && promo == null&&g.isBlackMove()==p.isBlack()) {
klazz = "";
if(p.getPromotesTo().size()==1)
klazz = p.getPromotesTo().get(0);... |
diff --git a/stormfront/cc.warlock.rcp.stormfront/src/cc/warlock/rcp/stormfront/ui/views/StormFrontGameView.java b/stormfront/cc.warlock.rcp.stormfront/src/cc/warlock/rcp/stormfront/ui/views/StormFrontGameView.java
index 1487bcb1..26c8ed1f 100644
--- a/stormfront/cc.warlock.rcp.stormfront/src/cc/warlock/rcp/stormfront/... | true | true | public void loadServerSettings (ServerSettings settings)
{
WarlockColor bg = settings.getMainWindowSettings().getBackgroundColor();
WarlockColor fg = settings.getMainWindowSettings().getForegroundColor();
String fontFace = settings.getMainWindowSettings().getFontFace();
int fontSize = settings.getMainWindo... | public void loadServerSettings (ServerSettings settings)
{
WarlockColor bg = settings.getMainWindowSettings().getBackgroundColor();
WarlockColor fg = settings.getMainWindowSettings().getForegroundColor();
String fontFace = settings.getMainWindowSettings().getFontFace();
int fontSize = settings.getMainWindo... |
diff --git a/Adventure_app/src/com/uofa/adventure_app/activity/BrowserActivity.java b/Adventure_app/src/com/uofa/adventure_app/activity/BrowserActivity.java
index b68ddc9..0c7fb68 100644
--- a/Adventure_app/src/com/uofa/adventure_app/activity/BrowserActivity.java
+++ b/Adventure_app/src/com/uofa/adventure_app/activity/... | true | true | public void dataReturn(ArrayList<Story> result, String method) {
this.stories.clear();
for(int i = 0; i<result.size(); i++ )
stories.addAll(result);
if(method.equals(GET_ALL_METHOD)) {
HashMap<String, List<String>> map = new HashMap<String, List<String>>();
LocalStorageController localStorageController ... | public void dataReturn(ArrayList<Story> result, String method) {
this.stories.clear();
for(int i = 0; i<result.size(); i++ )
stories.add(result.get(i));
if(method.equals(GET_ALL_METHOD)) {
HashMap<String, List<String>> map = new HashMap<String, List<String>>();
LocalStorageController localStorageControl... |
diff --git a/src/main/java/com/mapr/demo/storm/TokenizerBolt.java b/src/main/java/com/mapr/demo/storm/TokenizerBolt.java
index 152bffa..a9f1209 100644
--- a/src/main/java/com/mapr/demo/storm/TokenizerBolt.java
+++ b/src/main/java/com/mapr/demo/storm/TokenizerBolt.java
@@ -1,56 +1,59 @@
package com.mapr.demo.storm;
... | true | true | public void execute(Tuple tuple) {
if( TupleHelpers.isNewQueryTuple(tuple) ) {
log.info("new query tuple");
collector.emit(tuple, new Values(TupleHelpers.NEW_QUERY_TOKEN));
} else {
int n = tupleCount.incrementAndGet();
if (n % 1000 == 0) {
... | public void execute(Tuple tuple) {
if( TupleHelpers.isNewQueryTuple(tuple) ) {
log.info("new query tuple");
collector.emit(tuple, new Values(TupleHelpers.NEW_QUERY_TOKEN));
} else {
int n = tupleCount.incrementAndGet();
if (n % 1000 == 0) {
... |
diff --git a/src/main/java/com/basho/riak/client/raw/pbc/PBClientAdapter.java b/src/main/java/com/basho/riak/client/raw/pbc/PBClientAdapter.java
index 0f84afbd..50834460 100644
--- a/src/main/java/com/basho/riak/client/raw/pbc/PBClientAdapter.java
+++ b/src/main/java/com/basho/riak/client/raw/pbc/PBClientAdapter.java
@... | true | true | private MapReduceResult linkWalkSecondPhase(final MapReduceResult firstPhaseResult) throws IOException {
try {
@SuppressWarnings("rawtypes") Collection<LinkedList> bkeys = firstPhaseResult.getResult(LinkedList.class);
BucketKeyMapReduce mr = new BucketKeyMapReduce(this);
... | private MapReduceResult linkWalkSecondPhase(final MapReduceResult firstPhaseResult) throws IOException {
try {
@SuppressWarnings("rawtypes") Collection<LinkedList> bkeys = firstPhaseResult.getResult(LinkedList.class);
BucketKeyMapReduce mr = new BucketKeyMapReduce(this);
... |
diff --git a/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java b/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
index 4d56b37..c0711c5 100644
--- a/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
+++ b/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.... | false | true | private static void resolveIntent(
Context ctx, Intent intent, boolean choose, List<Intent> internals,
int icon, int title, int action, boolean allowPreferred,
OnCancelListener onCancelListener, OnDismissListener onDismissListener) {
//Retrieve the activities that can han... | private static void resolveIntent(
Context ctx, Intent intent, boolean choose, List<Intent> internals,
int icon, int title, int action, boolean allowPreferred,
OnCancelListener onCancelListener, OnDismissListener onDismissListener) {
//Retrieve the activities that can han... |
diff --git a/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java b/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java
index 34f42f8..f2279ab 100644
--- a/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java
+++ b/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java
@@ -1,15 +1,19 @@
... | true | true | public static List<Object> generate(int total) {
List<Object> answer = new ArrayList<Object>(total);
for (int i = 1; i <= total; i++) {
answer.add(i);
}
return answer;
}
| public static List<Object> generate(int total) {
List<Object> answer = new ArrayList<Object>(total);
for (int i = 1; i <= total; i++) {
if (i == 3) {
answer.add("Fizz");
} else {
answer.add(i);
}
}
return answer;
}
|
diff --git a/src/main/java/krum/jplex/JPlex.java b/src/main/java/krum/jplex/JPlex.java
index 1c507f5..0515cca 100644
--- a/src/main/java/krum/jplex/JPlex.java
+++ b/src/main/java/krum/jplex/JPlex.java
@@ -1,95 +1,96 @@
package krum.jplex;
import java.io.File;
import krum.jplex.input.LexerSpec;
import krum.jplex... | true | true | public static void main(String[] args) {
System.out.println("JPlex version " + VERSION);
if(args.length < 1 || args.length > 3) {
System.err.println("usage: jplex input-file [java-dir [resource-dir]]");
System.exit(1);
}
File inputFile = new File(args[0]);
File javaDir;
if(args.length >= 2) {
... | public static void main(String[] args) {
System.out.println("JPlex version " + VERSION);
if(args.length < 1 || args.length > 3) {
System.err.println("usage: jplex input-file [java-dir [resource-dir]]");
System.exit(1);
}
File inputFile = new File(args[0]);
File javaDir;
if(args.length >= 2) {
... |
diff --git a/brix-core/src/main/java/brix/workspace/WorkspaceModel.java b/brix-core/src/main/java/brix/workspace/WorkspaceModel.java
index 594ee46..c1c752c 100644
--- a/brix-core/src/main/java/brix/workspace/WorkspaceModel.java
+++ b/brix-core/src/main/java/brix/workspace/WorkspaceModel.java
@@ -1,53 +1,52 @@
package ... | true | true | public void setObject(Workspace workspace)
{
if (workspace != null)
{
this.workspaceId = workspace.getId();
}
else
{
this.workspaceId = null;
}
this.workspaceId = workspace.getId();
this.workspace = workspace;
}
| public void setObject(Workspace workspace)
{
if (workspace != null)
{
this.workspaceId = workspace.getId();
}
else
{
this.workspaceId = null;
}
this.workspace = workspace;
}
|
diff --git a/MPDroid/src/com/namelessdev/mpdroid/StreamingService.java b/MPDroid/src/com/namelessdev/mpdroid/StreamingService.java
index 48938273..91b4fe28 100644
--- a/MPDroid/src/com/namelessdev/mpdroid/StreamingService.java
+++ b/MPDroid/src/com/namelessdev/mpdroid/StreamingService.java
@@ -1,646 +1,647 @@
package ... | false | true | public void showNotification() {
MPDApplication app = (MPDApplication) getApplication();
MPDStatus statusMpd = null;
try {
statusMpd = app.oMPDAsyncHelper.oMPD.getStatus();
} catch (MPDServerException e) {
// Do nothing cause I suck hard at android programming
}
if (statusMpd != null && !isPaused) {
... | public void showNotification() {
MPDApplication app = (MPDApplication) getApplication();
MPDStatus statusMpd = null;
try {
statusMpd = app.oMPDAsyncHelper.oMPD.getStatus();
} catch (MPDServerException e) {
// Do nothing cause I suck hard at android programming
}
if (statusMpd != null && !isPaused) {
... |
diff --git a/runtime/android/java/src/org/xwalk/core/client/XWalkDefaultClient.java b/runtime/android/java/src/org/xwalk/core/client/XWalkDefaultClient.java
index 49fb4ecc..81e540ab 100755
--- a/runtime/android/java/src/org/xwalk/core/client/XWalkDefaultClient.java
+++ b/runtime/android/java/src/org/xwalk/core/client/X... | true | true | private void showHttpAuthDialog( final XWalkHttpAuthHandler handler,
final String host, final String realm) {
LinearLayout layout = new LinearLayout(mContext);
final EditText userNameEditText = new EditText(mContext);
final EditText passwordEditText = new EditText(mContext);
... | private void showHttpAuthDialog( final XWalkHttpAuthHandler handler,
final String host, final String realm) {
LinearLayout layout = new LinearLayout(mContext);
final EditText userNameEditText = new EditText(mContext);
final EditText passwordEditText = new EditText(mContext);
... |
diff --git a/src/main/java/org/jcompas/view/ControlPaneFactory.java b/src/main/java/org/jcompas/view/ControlPaneFactory.java
index 2e09421..5e35af8 100644
--- a/src/main/java/org/jcompas/view/ControlPaneFactory.java
+++ b/src/main/java/org/jcompas/view/ControlPaneFactory.java
@@ -1,153 +1,154 @@
/* *******************... | true | true | public static JPanel createControlPane(final Controller controller) {
// init pane
final JPanel pane = new JPanel();
pane.setLayout( new BoxLayout( pane , BoxLayout.Y_AXIS ) );
// init components and add them
pane.add( Box.createRigidArea( new Dimension( 0 , VERT_GAP ) ) );
final JComboBox paloBox = new J... | public static JPanel createControlPane(final Controller controller) {
// init pane
final JPanel pane = new JPanel();
pane.setLayout( new BoxLayout( pane , BoxLayout.Y_AXIS ) );
// init components and add them
pane.add( Box.createRigidArea( new Dimension( 0 , VERT_GAP ) ) );
final JComboBox paloBox = new J... |
diff --git a/src/plugin/lib-parsems/src/java/org/apache/nutch/parse/ms/MSBaseParser.java b/src/plugin/lib-parsems/src/java/org/apache/nutch/parse/ms/MSBaseParser.java
index db458d4f..d2fc1ced 100644
--- a/src/plugin/lib-parsems/src/java/org/apache/nutch/parse/ms/MSBaseParser.java
+++ b/src/plugin/lib-parsems/src/java/o... | false | true | protected Parse getParse(MSExtractor extractor, Content content) {
String text = null;
String title = null;
Outlink[] outlinks = null;
Properties properties = null;
try {
byte[] raw = content.getContent();
String contentLength = content.getMetadata().get(Metadata.CONTENT_LENG... | protected Parse getParse(MSExtractor extractor, Content content) {
String text = null;
String title = null;
Outlink[] outlinks = null;
Properties properties = null;
try {
byte[] raw = content.getContent();
String contentLength = content.getMetadata().get(Metadata.CONTENT_LENG... |
diff --git a/corelib-solr/src/main/java/eu/europeana/corelib/solr/bean/impl/FullBeanImpl.java b/corelib-solr/src/main/java/eu/europeana/corelib/solr/bean/impl/FullBeanImpl.java
index f42651d3..e3003ad5 100644
--- a/corelib-solr/src/main/java/eu/europeana/corelib/solr/bean/impl/FullBeanImpl.java
+++ b/corelib-solr/src/m... | true | true | public EuropeanaAggregation getEuropeanaAggregation() {
String previewUrl = null;
if (this.getAggregations().get(0).getEdmObject() != null) {
previewUrl = this.getAggregations().get(0).getEdmObject();
}
if (previewUrl != null) {
this.europeanaAggregation.setEdmPreview(EuropeanaUrlServiceImpl
.getB... | public EuropeanaAggregation getEuropeanaAggregation() {
String previewUrl = null;
if (this.getAggregations().get(0).getEdmObject() != null) {
previewUrl = this.getAggregations().get(0).getEdmObject();
}
if (previewUrl != null) {
this.europeanaAggregation.setEdmPreview(EuropeanaUrlServiceImpl
.getB... |
diff --git a/src/org/ssgwt/client/ui/form/ComplexInput.java b/src/org/ssgwt/client/ui/form/ComplexInput.java
index 065374b..c250a3a 100644
--- a/src/org/ssgwt/client/ui/form/ComplexInput.java
+++ b/src/org/ssgwt/client/ui/form/ComplexInput.java
@@ -1,666 +1,667 @@
package org.ssgwt.client.ui.form;
import com.google... | true | true | public void constructor() {
//create view components
messagePanel = new FlowPanel();
messageTable = new FlowPanel();
messageRow = new FlowPanel();
messageCell = new Label();
messageContainer = new FlowPanel();
messageContainer.add(messagePanel);
... | public void constructor() {
//create view components
messagePanel = new FlowPanel();
messageTable = new FlowPanel();
messageRow = new FlowPanel();
messageCell = new Label();
messageContainer = new FlowPanel();
messageContainer.add(messagePanel);
... |
diff --git a/com.dubture.symfony.ui/src/com/dubture/symfony/ui/wizards/project/SymfonyProjectCreationWizard.java b/com.dubture.symfony.ui/src/com/dubture/symfony/ui/wizards/project/SymfonyProjectCreationWizard.java
index 2af1fd59..67cfd390 100644
--- a/com.dubture.symfony.ui/src/com/dubture/symfony/ui/wizards/project/S... | false | true | public boolean performFinish() {
boolean res = super.performFinish();
try {
IProject project = fFirstPage.getProjectHandle();
SymfonyProjectWizardFirstPage firstPage = (SymfonyProjectWizardFirstPage) fFirstPage;
List<String> extensionNatures = new ArrayList<Str... | public boolean performFinish() {
boolean res = super.performFinish();
try {
IProject project = fFirstPage.getProjectHandle();
SymfonyProjectWizardFirstPage firstPage = (SymfonyProjectWizardFirstPage) fFirstPage;
List<String> extensionNatures = new ArrayList<Str... |
diff --git a/src/View/ShoppingView.java b/src/View/ShoppingView.java
index acb994f..2c925ae 100644
--- a/src/View/ShoppingView.java
+++ b/src/View/ShoppingView.java
@@ -1,762 +1,763 @@
package View;
//import java.awt.Image;
import java.awt.Font;
import java.awt.font.*;
import java.util.ArrayList;
import org.l... | true | true | public void update(GameContainer gc, StateBasedGame sbg, int delta)throws SlickException {
xPos = Mouse.getX();
yPos = 720 - Mouse.getY();
activePlayer.setGold(5000);
for(int i=0;i<9;i++){
if (findOwnedSkill(allSkills[i].getName()) != null){
switch (allSkills[i].getCurrentLvl()){
case 1:
... | public void update(GameContainer gc, StateBasedGame sbg, int delta)throws SlickException {
xPos = Mouse.getX();
yPos = 720 - Mouse.getY();
activePlayer.setGold(5000);
for(int i=0;i<9;i++){
if (findOwnedSkill(allSkills[i].getName()) != null){
switch (allSkills[i].getCurrentLvl()){
case 1:
... |
diff --git a/src/org/protege/editor/owl/ui/explanation/io/IntroductoryPanel.java b/src/org/protege/editor/owl/ui/explanation/io/IntroductoryPanel.java
index c819f78c..f4e151ee 100644
--- a/src/org/protege/editor/owl/ui/explanation/io/IntroductoryPanel.java
+++ b/src/org/protege/editor/owl/ui/explanation/io/Introductory... | true | true | private JPanel createCenterPanel(OWLEditorKit owlEditorKit, InconsistentOntologyPlugin lastSelectedPlugin) throws IOException {
JPanel center = new JPanel();
center.setLayout(new BoxLayout(center, BoxLayout.PAGE_AXIS));
JTextPane tp = new JTextPane();
URL help = IntroductoryPanel.cla... | private JPanel createCenterPanel(OWLEditorKit owlEditorKit, InconsistentOntologyPlugin lastSelectedPlugin) throws IOException {
JPanel center = new JPanel();
center.setLayout(new BoxLayout(center, BoxLayout.PAGE_AXIS));
JTextPane tp = new JTextPane();
tp.setEditable(false);
U... |
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoMarkerUtils.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoMarkerUtils.java
index 93ce6a80..8a57ae5b 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/... | false | true | private static void computeAccessibleService(IFile file, String message, IMarker marker)
throws JavaModelException, CoreException {
boolean exported = false;
boolean found = false;
String projectName = ""; //$NON-NLS-1$
IProject project = file.getProject();
AcceleoProject acceleoProject = new AcceleoPro... | private static void computeAccessibleService(IFile file, String message, IMarker marker)
throws JavaModelException, CoreException {
boolean exported = false;
boolean found = false;
String projectName = ""; //$NON-NLS-1$
IProject project = file.getProject();
AcceleoProject acceleoProject = new AcceleoPro... |
diff --git a/src/edu/jas/ufd/FactorInteger.java b/src/edu/jas/ufd/FactorInteger.java
index 6fbd4db9..d6752a87 100644
--- a/src/edu/jas/ufd/FactorInteger.java
+++ b/src/edu/jas/ufd/FactorInteger.java
@@ -1,976 +1,979 @@
/*
* $Id$
*/
package edu.jas.ufd;
import java.util.ArrayList;
import java.util.BitSet;
... | false | true | public List<GenPolynomial<BigInteger>> factorsSquarefreeHensel(GenPolynomial<BigInteger> P) {
if (P == null) {
throw new IllegalArgumentException(this.getClass().getName() + " P != null");
}
GenPolynomialRing<BigInteger> pfac = P.ring;
System.out.println("pfac = " + pfac.... | public List<GenPolynomial<BigInteger>> factorsSquarefreeHensel(GenPolynomial<BigInteger> P) {
if (P == null) {
throw new IllegalArgumentException(this.getClass().getName() + " P != null");
}
GenPolynomialRing<BigInteger> pfac = P.ring;
System.out.println("pfac = " + pfac.... |
diff --git a/jvstm/src/jvstm/ProcessAtomicAnnotations.java b/jvstm/src/jvstm/ProcessAtomicAnnotations.java
index ae75f5f..36fbb52 100644
--- a/jvstm/src/jvstm/ProcessAtomicAnnotations.java
+++ b/jvstm/src/jvstm/ProcessAtomicAnnotations.java
@@ -1,351 +1,351 @@
/*
* JVSTM: a Java library for Software Transactional Me... | true | true | public void visitEnd() {
renameMethods = false;
for (MethodWrapper mw : methods) {
Type returnType = Type.getReturnType(mw.desc);
Type[] argsType = Type.getArgumentTypes(mw.desc);
int argsSize = 0;
for (Type arg : argsType) {
argsSize += arg.getSize();
}
int boolVarPos = argsSize +... | public void visitEnd() {
renameMethods = false;
for (MethodWrapper mw : methods) {
Type returnType = Type.getReturnType(mw.desc);
Type[] argsType = Type.getArgumentTypes(mw.desc);
int argsSize = 0;
for (Type arg : argsType) {
argsSize += arg.getSize();
}
int boolVarPos = argsSize +... |
diff --git a/src/main/java/decentchat/api/DeCentInstance.java b/src/main/java/decentchat/api/DeCentInstance.java
index 89e96a4..4549e33 100644
--- a/src/main/java/decentchat/api/DeCentInstance.java
+++ b/src/main/java/decentchat/api/DeCentInstance.java
@@ -1,52 +1,52 @@
package decentchat.api;
import java.rmi.Namin... | true | true | public boolean init(String bootstrap_ip, int port) {
this.port = port;
Node bootstrapNode = null;
try {
bootstrapNode = (Node)Naming.lookup("rmi://" + bootstrap_ip +":" +this.port+ "/node");
ip = bootstrapNode.getIp();
// Now init registry
System.setProperty("java.rmi.server.hostname", ip);
reg = ... | public boolean init(String bootstrap_ip, int port) {
this.port = port;
Node bootstrapNode = null;
try {
bootstrapNode = (Node)Naming.lookup("rmi://" + bootstrap_ip +":" +this.port+ "/node");
ip = bootstrapNode.getIP();
// Now init registry
System.setProperty("java.rmi.server.hostname", ip);
reg = ... |
diff --git a/src/main/java/org/fcrepo/bench/BenchToolFC4.java b/src/main/java/org/fcrepo/bench/BenchToolFC4.java
index ba78da4..1760475 100644
--- a/src/main/java/org/fcrepo/bench/BenchToolFC4.java
+++ b/src/main/java/org/fcrepo/bench/BenchToolFC4.java
@@ -1,125 +1,127 @@
/**
*
*/
package org.fcrepo.bench;
i... | false | true | public static void main(String[] args) {
String uri = args[0];
int numDatastreams = Integer.parseInt(args[1]);
int size = Integer.parseInt(args[2]);
maxThreads = Integer.parseInt(args[3]);
BenchToolFC4 bench = null;
System.out.println("generating " + numDatastreams +
... | public static void main(String[] args) {
String uri = args[0];
int numDatastreams = Integer.parseInt(args[1]);
int size = Integer.parseInt(args[2]);
maxThreads = Integer.parseInt(args[3]);
BenchToolFC4 bench = null;
System.out.println("generating " + numDatastreams +
... |
diff --git a/src/forage/AddFoodLocationServlet.java b/src/forage/AddFoodLocationServlet.java
index 30f1f7f..edfa919 100644
--- a/src/forage/AddFoodLocationServlet.java
+++ b/src/forage/AddFoodLocationServlet.java
@@ -1,49 +1,48 @@
package forage;
import java.io.IOException;
import java.util.List;
import javax.ser... | true | true | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
//get list of food items of the kind received in req and return as list
String kind = req.getParameter("kind");
String description = req.getParameter("description"); //Specific location description
String name = ... | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
//get list of food items of the kind received in req and return as list
String kind = req.getParameter("kind");
String description = req.getParameter("description"); //Specific location description
String name = ... |
diff --git a/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus511/Nexus511MavenDeployTest.java b/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus511/Nexus511MavenDeployTest.java
index ff62a5f74..6265e8... | true | true | public void privateDeploy()
throws Exception
{
// try to deploy without servers authentication tokens
verifier.getCliOptions().clear();
verifier.getCliOptions().add("-X");
verifier.getCliOptions().add("-DaltDeploymentRepository=\"\""); //
try
{
... | public void privateDeploy()
throws Exception
{
// try to deploy without servers authentication tokens
verifier.getCliOptions().clear();
verifier.getCliOptions().add("-X");
try
{
verifier.executeGoal( "deploy" );
verifier.verifyErrorFreeLog... |
diff --git a/src/share/classes/com/sun/javafx/runtime/sequence/CompositeSequence.java b/src/share/classes/com/sun/javafx/runtime/sequence/CompositeSequence.java
index 94518066e..3288cd5bc 100644
--- a/src/share/classes/com/sun/javafx/runtime/sequence/CompositeSequence.java
+++ b/src/share/classes/com/sun/javafx/runtime... | true | true | public CompositeSequence(Class<T> clazz, Sequence<? extends T>... sequences) {
super(clazz);
this.sequences = sequences.clone();
this.startPositions = new int[sequences.length];
int size = 0;
int depth = 0;
for (int i = 0, offset = 0; i < sequences.length; i++) {
... | public CompositeSequence(Class<T> clazz, Sequence<? extends T>... sequences) {
super(clazz);
this.sequences = sequences.clone();
this.startPositions = new int[sequences.length];
int size = 0;
int depth = 0;
for (int i = 0, offset = 0; i < sequences.length; i++) {
... |
diff --git a/src/com/yahoo/platform/yui/compressor/YUICompressor.java b/src/com/yahoo/platform/yui/compressor/YUICompressor.java
index 7fd1bd2..a1f96c3 100644
--- a/src/com/yahoo/platform/yui/compressor/YUICompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/YUICompressor.java
@@ -1,274 +1,275 @@
/*
* YUI Com... | true | true | public static void main(String args[]) {
CmdLineParser parser = new CmdLineParser();
CmdLineParser.Option typeOpt = parser.addStringOption("type");
CmdLineParser.Option versionOpt = parser.addBooleanOption('V', "version");
CmdLineParser.Option verboseOpt = parser.addBooleanOption('v... | public static void main(String args[]) {
CmdLineParser parser = new CmdLineParser();
CmdLineParser.Option typeOpt = parser.addStringOption("type");
CmdLineParser.Option versionOpt = parser.addBooleanOption('V', "version");
CmdLineParser.Option verboseOpt = parser.addBooleanOption('v... |
diff --git a/src/java/com/idega/block/staff/business/StaffFinder.java b/src/java/com/idega/block/staff/business/StaffFinder.java
index cfdece4..72ee889 100644
--- a/src/java/com/idega/block/staff/business/StaffFinder.java
+++ b/src/java/com/idega/block/staff/business/StaffFinder.java
@@ -1,522 +1,522 @@
package com.id... | true | true | public static StaffHolder getStaffHolder(User user,int localeID) {
StaffEntity staff = getStaff(user.getID());
StaffLocalized staffInfo = getLocalizedStaff(staff,localeID);
StaffMeta[] staffMeta = getMeta(user.getID(),localeID);
Phone workPhone = UserBusiness.getUserPhone(user.getID(),com.idega.co... | public static StaffHolder getStaffHolder(User user,int localeID) {
StaffEntity staff = getStaff(user.getID());
StaffLocalized staffInfo = getLocalizedStaff(staff,localeID);
StaffMeta[] staffMeta = getMeta(user.getID(),localeID);
Phone workPhone = UserBusiness.getUserPhone(user.getID(),com.idega.co... |
diff --git a/src/jp/ac/titech/cs/de/ykstorage/service/cmm/CacheMemoryManager.java b/src/jp/ac/titech/cs/de/ykstorage/service/cmm/CacheMemoryManager.java
index 1290166..804dc70 100755
--- a/src/jp/ac/titech/cs/de/ykstorage/service/cmm/CacheMemoryManager.java
+++ b/src/jp/ac/titech/cs/de/ykstorage/service/cmm/CacheMemory... | true | true | public void compaction() {
boolean isFirst = true;
for (MemoryHeader header : headerTable.values()) {
if (isFirst) {
int oldPosition = header.getPosition();
byte[] byteVal = new byte[header.getSize()];
memBuffer.position(oldPosition);
memBuffer.get(byteVal, 0, header.getSize());
memBuffer.re... | public void compaction() {
boolean isFirst = true;
if(headerTable.isEmpty()) {
memBuffer.rewind();
}
for (MemoryHeader header : headerTable.values()) {
if (isFirst) {
int oldPosition = header.getPosition();
byte[] byteVal = new byte[header.getSize()];
memBuffer.position(oldPosition);
memB... |
diff --git a/src/main/java/org/agmip/translators/dssat/DssatTFileOutput.java b/src/main/java/org/agmip/translators/dssat/DssatTFileOutput.java
index c81fbb3..527fc0e 100644
--- a/src/main/java/org/agmip/translators/dssat/DssatTFileOutput.java
+++ b/src/main/java/org/agmip/translators/dssat/DssatTFileOutput.java
@@ -1,1... | true | true | public void writeFile(String arg0, AdvancedHashMap result) {
// Initial variables
JSONAdapter adapter = new JSONAdapter(); // JSON Adapter
AdvancedHashMap<String, Object> record; // Data holder for daily data
BufferedWriter bwT; // output object
... | public void writeFile(String arg0, AdvancedHashMap result) {
// Initial variables
JSONAdapter adapter = new JSONAdapter(); // JSON Adapter
AdvancedHashMap<String, Object> record; // Data holder for daily data
BufferedWriter bwT; // output object
... |
diff --git a/motech-server-omod/src/test/java/org/motechproject/server/omod/tasks/MessageProgramUpdateTaskTest.java b/motech-server-omod/src/test/java/org/motechproject/server/omod/tasks/MessageProgramUpdateTaskTest.java
index 8b35853f..77957b00 100644
--- a/motech-server-omod/src/test/java/org/motechproject/server/omo... | false | true | public void testMessageProgramUpdate() throws InterruptedException {
MessageProgramUpdateTask task = new MessageProgramUpdateTask();
TaskDefinition definition = new TaskDefinition();
definition.setProperty(MotechConstants.TASK_PROPERTY_BATCH_SIZE, "10");
task.initialize(definition);
Integer patientId = nul... | public void testMessageProgramUpdate() throws InterruptedException {
MessageProgramUpdateTask task = new MessageProgramUpdateTask();
TaskDefinition definition = new TaskDefinition();
definition.setProperty(MotechConstants.TASK_PROPERTY_BATCH_SIZE, "10");
task.initialize(definition);
Integer patientId = nul... |
diff --git a/src/com/kurento/kas/mscontrol/join/AudioJoinableStreamImpl.java b/src/com/kurento/kas/mscontrol/join/AudioJoinableStreamImpl.java
index 045e62a..8e804fb 100644
--- a/src/com/kurento/kas/mscontrol/join/AudioJoinableStreamImpl.java
+++ b/src/com/kurento/kas/mscontrol/join/AudioJoinableStreamImpl.java
@@ -1,1... | true | true | public AudioJoinableStreamImpl(JoinableContainer container,
StreamType type, SessionSpec remoteSessionSpec,
SessionSpec localSessionSpec) {
super(container, type);
this.localSessionSpec = localSessionSpec;
Map<MediaType, Mode> mediaTypesModes = SpecTools
.getModesOfFirstMediaTypes(localSessionSpec);
... | public AudioJoinableStreamImpl(JoinableContainer container,
StreamType type, SessionSpec remoteSessionSpec,
SessionSpec localSessionSpec) {
super(container, type);
this.localSessionSpec = localSessionSpec;
Map<MediaType, Mode> mediaTypesModes = SpecTools
.getModesOfFirstMediaTypes(localSessionSpec);
... |
diff --git a/container/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/DeleteHostAction.java b/container/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/DeleteHostAction.java
index d9b7564f..fb6e893f 100644
--- a/container/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/host/DeleteHostAction... | true | true | public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
// Acquire the resources ... | public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
// Acquire the resources ... |
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java
index 8cc7f4e2..73701d82 100644
--- a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java
+++ b/bpel-r... | true | true | public List<BpelProcess> markForDehydration(List<BpelProcess> runningProcesses) {
ArrayList<BpelProcess> ripped = new ArrayList<BpelProcess>();
if (_processMaxAge > 0) {
// The oldies have to go first
long now = System.currentTimeMillis();
for (BpelProcess proces... | public List<BpelProcess> markForDehydration(List<BpelProcess> runningProcesses) {
ArrayList<BpelProcess> ripped = new ArrayList<BpelProcess>();
if (_processMaxAge > 0) {
// The oldies have to go first
long now = System.currentTimeMillis();
for (BpelProcess proces... |
diff --git a/src/com/android/settings/ProgressCategory.java b/src/com/android/settings/ProgressCategory.java
index e854a0038..c1b25d83b 100644
--- a/src/com/android/settings/ProgressCategory.java
+++ b/src/com/android/settings/ProgressCategory.java
@@ -1,72 +1,72 @@
/*
* Copyright (C) 2008 The Android Open Source Pr... | false | true | public void onBindView(View view) {
super.onBindView(view);
final TextView textView = (TextView) view.findViewById(R.id.scanning_text);
final View progressBar = view.findViewById(R.id.scanning_progress);
textView.setText(mProgress ? R.string.progress_scanning : R.string.progress_tap... | public void onBindView(View view) {
super.onBindView(view);
final TextView scanning = (TextView) view.findViewById(R.id.scanning_text);
final View progressBar = view.findViewById(R.id.scanning_progress);
scanning.setText(mProgress ? R.string.progress_scanning : R.string.progress_tap... |
diff --git a/test/src/test/java/hudson/tasks/MailerTest.java b/test/src/test/java/hudson/tasks/MailerTest.java
index bbde7bed8..4cfbb166b 100644
--- a/test/src/test/java/hudson/tasks/MailerTest.java
+++ b/test/src/test/java/hudson/tasks/MailerTest.java
@@ -1,128 +1,128 @@
/*
* The MIT License
*
* Copyright (c) ... | true | true | public void testGlobalConfigRoundtrip() throws Exception {
DescriptorImpl d = Mailer.descriptor();
d.setAdminAddress("admin@me");
d.setDefaultSuffix("default-suffix");
d.setHudsonUrl("http://nowhere/");
d.setSmtpHost("smtp.host");
d.setSmtpPort("1025");
d.setU... | public void testGlobalConfigRoundtrip() throws Exception {
DescriptorImpl d = Mailer.descriptor();
d.setAdminAddress("admin@me");
d.setDefaultSuffix("default-suffix");
d.setHudsonUrl("http://nowhere/");
d.setSmtpHost("smtp.host");
d.setSmtpPort("1025");
d.setU... |
diff --git a/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIImages.java b/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIImages.java
index 7eab80cdd..89b0b0648 100644
--- a/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIImages.java
+++ b/cdi/plugins/org.... | true | true | public static Image getImageByElement(ICDIElement element){
if(element instanceof IClassBean){
return BEAN_CLASS_IMAGE;
}else if(element instanceof IInjectionPoint){
return INJECTION_POINT_IMAGE;
}else if(element instanceof ICDIAnnotation){
return ANNOTATION_IMAGE;
}else if(element instanceof Event... | public static Image getImageByElement(ICDIElement element){
if(element instanceof IClassBean){
return BEAN_CLASS_IMAGE;
}else if(element instanceof IInjectionPoint){
return INJECTION_POINT_IMAGE;
}else if(element instanceof ICDIAnnotation){
return ANNOTATION_IMAGE;
}else if(element instanceof Event... |
diff --git a/src/com/oresomecraft/BattleMaps/maps/ClashOfClayII.java b/src/com/oresomecraft/BattleMaps/maps/ClashOfClayII.java
index 86eb06b..82306a6 100644
--- a/src/com/oresomecraft/BattleMaps/maps/ClashOfClayII.java
+++ b/src/com/oresomecraft/BattleMaps/maps/ClashOfClayII.java
@@ -1,129 +1,129 @@
package com.oresom... | false | true | public void applyInventory(InventoryEvent event) {
if (event.getMessage().equalsIgnoreCase(name)) {
final BattlePlayer p = event.getPlayer();
Inventory i = p.getInventory();
clearInv(p);
ItemStack WOODEN_SWORD = new ItemStack(Material.WOOD_SWORD, 1, (short) -... | public void applyInventory(InventoryEvent event) {
if (event.getMessage().equalsIgnoreCase(name)) {
final BattlePlayer p = event.getPlayer();
Inventory i = p.getInventory();
clearInv(p);
ItemStack WOODEN_SWORD = new ItemStack(Material.WOOD_SWORD, 1, (short) -... |
diff --git a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/DistroPkgFinder/DebianPkgFinderJsoupRunner.java b/ManalithBot/src/main/java/org/manalith/ircbot/plugin/DistroPkgFinder/DebianPkgFinderJsoupRunner.java
index 59a8262..b2f9f06 100644
--- a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/DistroPkgFinde... | true | true | public String run ( )
{
String result = "";
String url = "http://packages.debian.org/search?keywords=" + this.getKeyword() + "&searchon=names&suite=all§ion=all";
boolean hasExacthits = false;
String pkgname = "";
String version = "";
String description = "";
try
{
Document doc = Jsoup.... | public String run ( )
{
String result = "";
String url = "http://packages.debian.org/search?keywords=" + this.getKeyword() + "&searchon=names&suite=all§ion=all";
boolean hasExacthits = false;
String pkgname = "";
String version = "";
String description = "";
try
{
Document doc = Jsoup.... |
diff --git a/beam-gpf/src/main/java/org/esa/beam/framework/gpf/annotations/ParameterDefinitionFactory.java b/beam-gpf/src/main/java/org/esa/beam/framework/gpf/annotations/ParameterDefinitionFactory.java
index fa318ce36..a9003a1e8 100644
--- a/beam-gpf/src/main/java/org/esa/beam/framework/gpf/annotations/ParameterDefini... | true | true | private ValueDefinition createValueDefinitionImpl(Field field) throws ConversionException {
final boolean operatorDetected = Operator.class.isAssignableFrom(field.getDeclaringClass());
Parameter parameter = field.getAnnotation(Parameter.class);
if (operatorDetected && parameter == null) {
... | private ValueDefinition createValueDefinitionImpl(Field field) throws ConversionException {
final boolean operatorDetected = Operator.class.isAssignableFrom(field.getDeclaringClass());
Parameter parameter = field.getAnnotation(Parameter.class);
if (operatorDetected && parameter == null) {
... |
diff --git a/modules/org.restlet/src/org/restlet/engine/http/connector/BaseClientHelper.java b/modules/org.restlet/src/org/restlet/engine/http/connector/BaseClientHelper.java
index 2aa2ec339..7d553d78b 100644
--- a/modules/org.restlet/src/org/restlet/engine/http/connector/BaseClientHelper.java
+++ b/modules/org.restlet... | false | true | public void handleOutbound(Response response) {
if ((response != null) && (response.getRequest() != null)) {
Request request = response.getRequest();
// Resolve relative references
Reference resourceRef = request.getResourceRef().isRelative() ? request
... | public void handleOutbound(Response response) {
if ((response != null) && (response.getRequest() != null)) {
Request request = response.getRequest();
// Resolve relative references
Reference resourceRef = request.getResourceRef().isRelative() ? request
... |
Subsets and Splits
Megadiff Train Samples Analysis
Counts the number of changed lines in a patch file, distinguishing additions and deletions but ignoring those marked with more than two '+' or '-', providing insights into significant modifications in patches.