diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/share/classes/com/sun/javafx/runtime/location/WeakLocation.java b/src/share/classes/com/sun/javafx/runtime/location/WeakLocation.java
index cb193031f..d66e18c7f 100644
--- a/src/share/classes/com/sun/javafx/runtime/location/WeakLocation.java
+++ b/src/share/classes/com/sun/javafx/runtime/location/WeakL... | false | true | static void purgeDeadLocations(AbstractLocation fallback) {
/*[*/
Reference<? extends Location> loc;
AbstractLocation lastHost = null;
while ((loc = refQ.poll()) != null) {
WeakLocation wl = (WeakLocation) loc;
AbstractLocation host = wl.host;
// M... | static void purgeDeadLocations(AbstractLocation fallback) {
/*[*/
Reference<? extends Location> loc;
AbstractLocation lastHost = null;
while ((loc = refQ.poll()) != null) {
WeakLocation wl = (WeakLocation) loc;
AbstractLocation host = wl.host;
// M... |
diff --git a/ZONE-extractor/ZONE-plugin-ExtractArticlesContent/src/main/java/org/zoneproject/extractor/plugin/extractarticlescontent/App.java b/ZONE-extractor/ZONE-plugin-ExtractArticlesContent/src/main/java/org/zoneproject/extractor/plugin/extractarticlescontent/App.java
index 32e8d81..3c869e9 100644
--- a/ZONE-extrac... | false | true | public static void main(String[] args) {
Item[] items = null;
do{
items = VirtuosoDatabase.getItemsNotAnotatedForOnePlugin(PLUGIN_URI,10);
logger.info("ExtractArticlesContent has "+items.length+" items to annotate");
for(Item item : items){
try {
... | public static void main(String[] args) {
Item[] items = null;
do{
items = VirtuosoDatabase.getItemsNotAnotatedForOnePlugin(PLUGIN_URI,10);
logger.info("ExtractArticlesContent has "+items.length+" items to annotate");
for(Item item : items){
try {
... |
diff --git a/farrago/src/org/eigenbase/jmi/JmiModelGraph.java b/farrago/src/org/eigenbase/jmi/JmiModelGraph.java
index dc8a4837c..9fae0bfcb 100644
--- a/farrago/src/org/eigenbase/jmi/JmiModelGraph.java
+++ b/farrago/src/org/eigenbase/jmi/JmiModelGraph.java
@@ -1,386 +1,386 @@
/*
// $Id$
// Package org.eigenbase is a... | true | true | private void addMofAssoc(Association mofAssoc)
{
if (getEdgeForMofAssoc(mofAssoc) != null) {
return;
}
AssociationEnd [] mofAssocEnds = new AssociationEnd[2];
ModelPackage mofPackage = (ModelPackage)
mofAssoc.refImmediatePackage();
... | private void addMofAssoc(Association mofAssoc)
{
if (getEdgeForMofAssoc(mofAssoc) != null) {
return;
}
AssociationEnd [] mofAssocEnds = new AssociationEnd[2];
ModelPackage mofPackage = (ModelPackage)
mofAssoc.refImmediatePackage();
... |
diff --git a/src/org/nutz/mvc/NutMvcContext.java b/src/org/nutz/mvc/NutMvcContext.java
index 816010e29..ca3a5dc60 100644
--- a/src/org/nutz/mvc/NutMvcContext.java
+++ b/src/org/nutz/mvc/NutMvcContext.java
@@ -1,47 +1,48 @@
package org.nutz.mvc;
import java.util.HashMap;
import java.util.Map;
import org.nutz.ioc... | true | true | public void close() {
reqThreadLocal.get().clear();
iocs.clear();
atMaps.clear();
nutConfigs.clear();
localizations.clear();
}
| public void close() {
reqThreadLocal.set(null);
reqThreadLocal = null;
iocs.clear();
atMaps.clear();
nutConfigs.clear();
localizations.clear();
}
|
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/SDKPolicy.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/SDKPolicy.java
index f75ee10f3..be43d8bd4 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2... | true | true | public SDKPolicy() {
setProfileChooser(new IProfileChooser() {
public String getProfileId(Shell shell) {
try {
return ProvSDKUIActivator.getSelfProfileId();
} catch (ProvisionException e) {
return IProfileRegistry.SELF;
}
}
});
setRepositoryManipulator(new ColocatedRepositoryManipulat... | public SDKPolicy() {
setProfileChooser(new IProfileChooser() {
public String getProfileId(Shell shell) {
try {
return ProvSDKUIActivator.getSelfProfileId();
} catch (ProvisionException e) {
ProvUI.handleException(e, e.getStatus().getMessage(), StatusManager.LOG);
return IProfileRegistry.SEL... |
diff --git a/src/main/java/org/atlasapi/beans/OembedTranslator.java b/src/main/java/org/atlasapi/beans/OembedTranslator.java
index 6600703b..5b392892 100644
--- a/src/main/java/org/atlasapi/beans/OembedTranslator.java
+++ b/src/main/java/org/atlasapi/beans/OembedTranslator.java
@@ -1,87 +1,89 @@
/* Copyright 2009 Brit... | true | true | public void writeTo(Collection<Object> graph, OutputStream stream) {
OembedOutput output = feedFactory.createOutput();
for (Object bean : graph) {
if (bean instanceof Item) {
Item item = (Item) bean;
output.setTitle(item.getTitle());
output.setProviderUrl(item.getPublisher().key())... | public void writeTo(Collection<Object> graph, OutputStream stream) {
OembedOutput output = feedFactory.createOutput();
for (Object bean : graph) {
if (bean instanceof Item) {
Item item = (Item) bean;
output.setTitle(item.getTitle());
output.setProviderUrl(item.getPublisher().key())... |
diff --git a/src/processing/Mod_EpProcessing.java b/src/processing/Mod_EpProcessing.java
index d974190..f333814 100644
--- a/src/processing/Mod_EpProcessing.java
+++ b/src/processing/Mod_EpProcessing.java
@@ -1,682 +1,684 @@
package processing;
import java.io.File;
import java.util.ArrayDeque;
import java.util.Ar... | false | true | private boolean renameFile(FileInfo procFile){
String folder="";
String filename="";
try {
TreeMap<String,String> ts = getPathFromTagSystem(procFile);
File folderObj = null;
if((Boolean)mem.get("GUI_EnableFileMove")){
if((Boolean)mem.get("... | private boolean renameFile(FileInfo procFile){
String folder="";
String filename="";
try {
TreeMap<String,String> ts = getPathFromTagSystem(procFile);
File folderObj = null;
if((Boolean)mem.get("GUI_EnableFileMove")) {
if((Boolean)mem.get(... |
diff --git a/3rdPartyServices/EnterpriseServices/Calendar/org.societies.sharedCalendar/src/main/java/org/societies/rdPartyService/enterprise/sharedCalendar/commsServer/SharedCalendarCommServer.java b/3rdPartyServices/EnterpriseServices/Calendar/org.societies.sharedCalendar/src/main/java/org/societies/rdPartyService/ent... | false | true | public Object getQuery(Stanza stanza, Object payload) throws XMPPError {
org.societies.rdpartyservice.enterprise.sharedcalendar.SharedCalendarBean bean = null;
SharedCalendarResult resultBean = new SharedCalendarResult();
if (payload instanceof org.societies.rdpartyservice.enterprise.sharedcalendar.SharedCalenda... | public Object getQuery(Stanza stanza, Object payload) throws XMPPError {
org.societies.rdpartyservice.enterprise.sharedcalendar.SharedCalendarBean bean = null;
SharedCalendarResult resultBean = new SharedCalendarResult();
if (payload instanceof org.societies.rdpartyservice.enterprise.sharedcalendar.SharedCalenda... |
diff --git a/printmodel/src/org/hanuna/gitalk/printmodel/layout/LayoutRowGenerator.java b/printmodel/src/org/hanuna/gitalk/printmodel/layout/LayoutRowGenerator.java
index e9188c8..54fd880 100644
--- a/printmodel/src/org/hanuna/gitalk/printmodel/layout/LayoutRowGenerator.java
+++ b/printmodel/src/org/hanuna/gitalk/print... | false | true | protected MutableLayoutRow oneStep(@NotNull MutableLayoutRow row) {
int newRowIndex = row.getGraphNodeRow().getRowIndex() + 1;
if (newRowIndex == graph.getNodeRows().size()) {
throw new NoSuchElementException();
}
List<GraphElement> layoutRow = row.getModifiableOrderedGra... | protected MutableLayoutRow oneStep(@NotNull MutableLayoutRow row) {
int newRowIndex = row.getGraphNodeRow().getRowIndex() + 1;
if (newRowIndex == graph.getNodeRows().size()) {
throw new NoSuchElementException();
}
List<GraphElement> layoutRow = row.getModifiableOrderedGra... |
diff --git a/src/main/java/com/github/kpacha/jkata/romanNumerals/RomanNumerals.java b/src/main/java/com/github/kpacha/jkata/romanNumerals/RomanNumerals.java
index c7c388b..80d255d 100644
--- a/src/main/java/com/github/kpacha/jkata/romanNumerals/RomanNumerals.java
+++ b/src/main/java/com/github/kpacha/jkata/romanNumeral... | true | true | public static String convert(int number) {
return "I";
}
| public static String convert(int number) {
if (number == 2) {
return "II";
}
return "I";
}
|
diff --git a/src/haven/error/ErrorGui.java b/src/haven/error/ErrorGui.java
index 7f311d9..efdac15 100644
--- a/src/haven/error/ErrorGui.java
+++ b/src/haven/error/ErrorGui.java
@@ -1,144 +1,144 @@
package haven.error;
import java.awt.Dimension;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import jav... | true | true | public ErrorGui(java.awt.Window parent) {
super(parent, "Haven error!", Dialog.ModalityType.APPLICATION_MODAL);
setMinimumSize(new Dimension(300, 100));
setResizable(false);
setLayout(new BorderLayout());
add(status = new JLabel(""), BorderLayout.CENTER);
vp = new JPanel();
vp.setLayout(new FlowLayout(... | public ErrorGui(java.awt.Frame parent) {
super(parent, "Haven error!", true);
setMinimumSize(new Dimension(300, 100));
setResizable(false);
setLayout(new BorderLayout());
add(status = new JLabel(""), BorderLayout.CENTER);
vp = new JPanel();
vp.setLayout(new FlowLayout());
JButton b;
vp.add(b = new JB... |
diff --git a/src/nu/nerd/modreq/ModReq.java b/src/nu/nerd/modreq/ModReq.java
index c81e5e5..75b5b8d 100755
--- a/src/nu/nerd/modreq/ModReq.java
+++ b/src/nu/nerd/modreq/ModReq.java
@@ -1,496 +1,500 @@
package nu.nerd.modreq;
import com.avaje.ebean.CallableSql;
import com.avaje.ebean.SqlQuery;
import com.avaje.ebe... | true | true | public boolean onCommand(CommandSender sender, Command command, String name, String[] args) {
String senderName = ChatColor.stripColor(sender.getName());
if (sender instanceof ConsoleCommandSender) {
senderName = "Console";
}
if (command.getName().equalsIgnoreCase("modreq... | public boolean onCommand(CommandSender sender, Command command, String name, String[] args) {
String senderName = ChatColor.stripColor(sender.getName());
if (sender instanceof ConsoleCommandSender) {
senderName = "Console";
}
if (command.getName().equalsIgnoreCase("modreq... |
diff --git a/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java b/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/DefaultBuildController.java
index d5ec1cdd3..94b87e830 100644
--- a/continuum-core/src/main/java/org/apache/maven/continuum/buildcont... | true | true | protected boolean shouldBuild( BuildContext context )
throws TaskExecutionException
{
BuildDefinition buildDefinition = context.getBuildDefinition();
if ( buildDefinition.isBuildFresh() )
{
log.info( "FreshBuild configured, building" );
return true;
... | protected boolean shouldBuild( BuildContext context )
throws TaskExecutionException
{
BuildDefinition buildDefinition = context.getBuildDefinition();
if ( buildDefinition.isBuildFresh() )
{
log.info( "FreshBuild configured, building" );
return true;
... |
diff --git a/web/src/main/java/de/betterform/agent/web/WebUtil.java b/web/src/main/java/de/betterform/agent/web/WebUtil.java
index fad1e7ec..03b20e89 100644
--- a/web/src/main/java/de/betterform/agent/web/WebUtil.java
+++ b/web/src/main/java/de/betterform/agent/web/WebUtil.java
@@ -1,356 +1,364 @@
/*
* Copyright (c)... | false | true | public static void setContextParams(HttpServletRequest request,
HttpSession httpSession,
XFormsProcessor processor,
String sessionkey) {
Map servletMap = new HashMap();
servletMap.put(WebProcessor.SESSION_ID, sessionkey);
processor.setContextParam(XFormsPr... | public static void setContextParams(HttpServletRequest request,
HttpSession httpSession,
XFormsProcessor processor,
String sessionkey) {
Map servletMap = new HashMap();
servletMap.put(WebProcessor.SESSION_ID, sessionkey);
processor.setContextParam(XFormsPr... |
diff --git a/jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-ui/src/main/java/org/jbpm/formModeler/core/processing/impl/FormProcessorImpl.java b/jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-ui/src/main/java/org/jbpm/formModeler/core/processing/impl/FormProcessorImpl.java
index d... | true | true | protected void setDefaultValues(Form form, String namespace, Map currentValues) {
if (form != null) {
Set formFields = form.getFormFields();
Map params = new HashMap(5);
Map rangeFormulas = (Map) getAttribute(form, namespace, FormStatusData.CALCULATED_RANGE_FORMULAS);
... | protected void setDefaultValues(Form form, String namespace, Map currentValues) {
if (form != null) {
Set formFields = form.getFormFields();
Map params = new HashMap(5);
Map rangeFormulas = (Map) getAttribute(form, namespace, FormStatusData.CALCULATED_RANGE_FORMULAS);
... |
diff --git a/validator/src/main/java/org/jboss/jca/validator/Validation.java b/validator/src/main/java/org/jboss/jca/validator/Validation.java
index 49a5b904c..e87ff26ba 100644
--- a/validator/src/main/java/org/jboss/jca/validator/Validation.java
+++ b/validator/src/main/java/org/jboss/jca/validator/Validation.java
@@ ... | false | true | public static int validate(URL url, String output, String[] classpath)
{
if (url == null || !(url.toExternalForm().endsWith(".rar") || url.toExternalForm().endsWith(".rar/")))
return FAIL;
int exitCode = SUCCESS;
File destination = null;
try
{
File f = new File(ur... | public static int validate(URL url, String output, String[] classpath)
{
if (url == null || !(url.toExternalForm().endsWith(".rar") || url.toExternalForm().endsWith(".rar/")))
return FAIL;
int exitCode = SUCCESS;
File destination = null;
try
{
File f = new File(ur... |
diff --git a/oneway/g4/Player.java b/oneway/g4/Player.java
index dcc07bc..fffe7f3 100644
--- a/oneway/g4/Player.java
+++ b/oneway/g4/Player.java
@@ -1,53 +1,54 @@
package oneway.g4;
import java.util.Collections;
import java.util.List;
import oneway.sim.MovingCar;
import oneway.sim.Parking;
public class Play... | true | true | public void setLights(MovingCar[] movingCars,
Parking[] left,
Parking[] right,
boolean[] llights,
boolean[] rlights)
{
currentTime++;
Node node = new Node(currentTime, nsegments, nblocks, movingCa... | public void setLights(MovingCar[] movingCars,
Parking[] left,
Parking[] right,
boolean[] llights,
boolean[] rlights)
{
currentTime++;
Node node = new Node(currentTime, nsegments, nblocks, movingCa... |
diff --git a/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/APITestingCG.java b/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/APITestingCG.java
index 93d0f22..aacb54f 100644
--- a/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/APITestingCG.java
+++ b/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/APITe... | true | true | public static void main(String[] args) {
String pathToConfigFile = "configuration.xml";
if (args.length == 1) {
pathToConfigFile = args[0];
}
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-c")) { // read path to configuration file
... | public static void main(String[] args) {
String pathToConfigFile = "configuration.xml";
if (args.length == 1) {
pathToConfigFile = args[0];
}
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-c")) { // read path to configuration file
... |
diff --git a/src/main/java/com/griefcraft/util/matchers/WallMatcher.java b/src/main/java/com/griefcraft/util/matchers/WallMatcher.java
index 8d6073eb..fbd21061 100644
--- a/src/main/java/com/griefcraft/util/matchers/WallMatcher.java
+++ b/src/main/java/com/griefcraft/util/matchers/WallMatcher.java
@@ -1,157 +1,157 @@
... | true | true | private Block tryMatchBlock(Block block, BlockFace matchingFace) {
byte direction = block.getData();
// Blocks such as wall signs
if (PROTECTABLES_WALL.contains(block.getType())) {
byte EAST = 0x05;
byte WEST = 0x04;
byte SOUTH = 0x03;
byte NO... | private Block tryMatchBlock(Block block, BlockFace matchingFace) {
byte direction = block.getData();
// Blocks such as wall signs
if (PROTECTABLES_WALL.contains(block.getType())) {
byte EAST = 0x02;
byte WEST = 0x03;
byte SOUTH = 0x05;
byte NO... |
diff --git a/src/main/java/edu/mayo/cts2/framework/plugin/service/exist/profile/valuesetdefinition/ExistValueSetDefinitionResolutionService.java b/src/main/java/edu/mayo/cts2/framework/plugin/service/exist/profile/valuesetdefinition/ExistValueSetDefinitionResolutionService.java
index d82d347..5b0f3dd 100644
--- a/src/m... | false | true | public ResolvedValueSetResult<URIAndEntityName> resolveDefinition(
final ValueSetDefinitionReadId id,
Set<NameOrURI> codeSystemVersions,
NameOrURI tag,
ResolvedValueSetResolutionEntityQuery query,
SortCriteria sort,
ResolvedReadContext context,
... | public ResolvedValueSetResult<URIAndEntityName> resolveDefinition(
final ValueSetDefinitionReadId id,
Set<NameOrURI> codeSystemVersions,
NameOrURI tag,
SortCriteria sort,
ResolvedReadContext context,
Page page) {
if (valueSetResolutionImpl !=... |
diff --git a/EmoStatus/src/com/thesis/emostatus/MonitorInfoActivity.java b/EmoStatus/src/com/thesis/emostatus/MonitorInfoActivity.java
index 4ad98ac..e2fee10 100644
--- a/EmoStatus/src/com/thesis/emostatus/MonitorInfoActivity.java
+++ b/EmoStatus/src/com/thesis/emostatus/MonitorInfoActivity.java
@@ -1,74 +1,74 @@
pack... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
List<Map<String, String>> groupData = new ArrayList<Map<String, String>>();
List<List<Map<String, String>>> childData = new ArrayList<List<Map<String, String>>>();
Map<String, String> curGroupMap1... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
List<Map<String, String>> groupData = new ArrayList<Map<String, String>>();
List<List<Map<String, String>>> childData = new ArrayList<List<Map<String, String>>>();
Map<String, String> curGroupMap1... |
diff --git a/src/org/jacorb/idl/UnionType.java b/src/org/jacorb/idl/UnionType.java
index 140704535..91e086525 100644
--- a/src/org/jacorb/idl/UnionType.java
+++ b/src/org/jacorb/idl/UnionType.java
@@ -1,1179 +1,1179 @@
package org.jacorb.idl;
/*
* JacORB - a free Java ORB
*
* Copyright (C) 1997-2002 ... | false | true | private void printHelperClass( String className, PrintWriter ps )
{
if( !pack_name.equals( "" ) )
ps.println( "package " + pack_name + ";" );
printImport( ps );
printClassComment( className, ps );
ps.println( "public" + parser.getFinalString() + " class " + classNa... | private void printHelperClass( String className, PrintWriter ps )
{
if( !pack_name.equals( "" ) )
ps.println( "package " + pack_name + ";" );
printImport( ps );
printClassComment( className, ps );
ps.println( "public" + parser.getFinalString() + " class " + classNa... |
diff --git a/src/ui/GameSetup.java b/src/ui/GameSetup.java
index 7d90ef4..3bcc2e0 100644
--- a/src/ui/GameSetup.java
+++ b/src/ui/GameSetup.java
@@ -1,162 +1,162 @@
package src.ui;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.a... | true | true | public void setupLayout(){
GridBagConstraints c = new GridBagConstraints();
c.insets = new Insets(0,0,10,0);
c.gridx = 0;
c.gridy = 0;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.LINE_START;
add(createGameLabel, c);
c.gridx = 0;
c.gridy = 2;
c.gridwidth = 1;
c.fill = GridBa... | public void setupLayout(){
GridBagConstraints c = new GridBagConstraints();
c.insets = new Insets(0,0,10,0);
c.gridx = 0;
c.gridy = 0;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.LINE_START;
add(createGameLabel, c);
c.gridx = 0;
c.gridy = 2;
c.gridwidth = 1;
c.fill = GridBa... |
diff --git a/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java b/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java
index ab3a4ad5d..851ad3bc2 100644
--- a/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java
+++ b/parser/org/eclipse/cdt/internal/core/parser/sc... | true | true | protected final int add(char[] buffer, int start, int len) {
int hash = hash(buffer, start, len);
if (hashTable[hash] == 0) {
if( (currEntry + 1) >= keyTable.length){
//need to recompute hash for this add, recurse.
resize();
return add( buffer, start, len );
}
currEntry++;
keyTable[cu... | protected final int add(char[] buffer, int start, int len) {
int hash = hash(buffer, start, len);
if (hashTable[hash] == 0) {
if( (currEntry + 1) >= keyTable.length){
//need to recompute hash for this add, recurse.
resize();
return add( buffer, start, len );
}
currEntry++;
keyTable[cu... |
diff --git a/src/main/java/org/codinjutsu/tools/jenkins/logic/JenkinsRequestManager.java b/src/main/java/org/codinjutsu/tools/jenkins/logic/JenkinsRequestManager.java
index c12aacc..d097813 100644
--- a/src/main/java/org/codinjutsu/tools/jenkins/logic/JenkinsRequestManager.java
+++ b/src/main/java/org/codinjutsu/tools/... | true | true | private Job createJob(Element jobElement) {
String jobName = jobElement.getChildText(JOB_NAME);
String jobColor = jobElement.getChildText(JOB_COLOR);
String jobUrl = jobElement.getChildText(JOB_URL);
String inQueue = jobElement.getChildText(JOB_IS_IN_QUEUE);
String buildable ... | private Job createJob(Element jobElement) {
String jobName = jobElement.getChildText(JOB_NAME);
String jobColor = jobElement.getChildText(JOB_COLOR);
String jobUrl = jobElement.getChildText(JOB_URL);
String inQueue = jobElement.getChildText(JOB_IS_IN_QUEUE);
String buildable ... |
diff --git a/src/main/java/se/diabol/pipefitter/PipelineFactory.java b/src/main/java/se/diabol/pipefitter/PipelineFactory.java
index eb17488..66612c7 100644
--- a/src/main/java/se/diabol/pipefitter/PipelineFactory.java
+++ b/src/main/java/se/diabol/pipefitter/PipelineFactory.java
@@ -1,58 +1,59 @@
package se.diabol.pi... | true | true | public static Pipeline extractPipeline(String name, AbstractProject<?, ?> firstJob)
{
Map<String, Stage> stages = newLinkedHashMap();
for (AbstractProject job : getAllDownstreamJobs(firstJob))
{
PipelineProperty property = (PipelineProperty) job.getProperty(PipelineProperty.c... | public static Pipeline extractPipeline(String name, AbstractProject<?, ?> firstJob)
{
Map<String, Stage> stages = newLinkedHashMap();
for (AbstractProject job : getAllDownstreamJobs(firstJob))
{
PipelineProperty property = (PipelineProperty) job.getProperty(PipelineProperty.c... |
diff --git a/TFC_Shared/src/TFC/Containers/ContainerTFC.java b/TFC_Shared/src/TFC/Containers/ContainerTFC.java
index ec6465748..a334dfc70 100644
--- a/TFC_Shared/src/TFC/Containers/ContainerTFC.java
+++ b/TFC_Shared/src/TFC/Containers/ContainerTFC.java
@@ -1,123 +1,127 @@
package TFC.Containers;
import net.minecraf... | true | true | protected boolean mergeItemStack(ItemStack is, int slotStart, int slotFinish, boolean par4)
{
boolean var5 = false;
int slotIndex = slotStart;
if (par4)
{
slotIndex = slotFinish - 1;
}
Slot slot;
ItemStack slotstack;
if (is.isStackable(... | protected boolean mergeItemStack(ItemStack is, int slotStart, int slotFinish, boolean par4)
{
boolean var5 = false;
int slotIndex = slotStart;
if (par4)
{
slotIndex = slotFinish - 1;
}
Slot slot;
ItemStack slotstack;
if (is.isStackable(... |
diff --git a/src/model/Snake.java b/src/model/Snake.java
index b14360c..f1b60e2 100644
--- a/src/model/Snake.java
+++ b/src/model/Snake.java
@@ -1,284 +1,286 @@
package model;
import java.util.ArrayList;
import org.apache.log4j.Logger;
import controller.ConvertLedType;
/**
* Snake has a position, speed, l... | false | true | public void advanceForward()
{
//TODO: Logic to shift arrayList
ArrayList<Integer> anArrayList = this.getBodyPositions();
int headPosition = anArrayList.get(0);
int headPositionX = controller.ConvertLedType.absoluteToXPositionInRow(headPosition);
int headPositionY = controller.ConvertLedType.absoluteToYPosi... | public void advanceForward()
{
//TODO: Logic to shift arrayList
ArrayList<Integer> anArrayList = this.getBodyPositions();
int headPosition = anArrayList.get(0);
int headPositionX = controller.ConvertLedType.absoluteToXPositionInRow(headPosition);
int headPositionY = controller.ConvertLedType.absoluteToYPosi... |
diff --git a/demos/src/main/java/com/datatorrent/demos/visualdata/Application.java b/demos/src/main/java/com/datatorrent/demos/visualdata/Application.java
index 34233ca0c..3bf5ad927 100644
--- a/demos/src/main/java/com/datatorrent/demos/visualdata/Application.java
+++ b/demos/src/main/java/com/datatorrent/demos/visuald... | true | true | public void populateDAG(DAG dag, Configuration conf) {
dag.setAttribute(DAG.APPLICATION_NAME, "VisualDataDemo");
int maxValue = 30000;
RandomEventGenerator rand = dag.addOperator("random", new RandomEventGenerator());
rand.setMinvalue(0);
rand.setMaxvalue(maxValue);
... | public void populateDAG(DAG dag, Configuration conf) {
dag.setAttribute(DAG.APPLICATION_NAME, "VisualDataDemo");
int maxValue = 30000;
RandomEventGenerator rand = dag.addOperator("random", new RandomEventGenerator());
rand.setMinvalue(0);
rand.setMaxvalue(maxValue);
... |
diff --git a/src/main/java/com/google/gerrit/server/mail/EmailHeader.java b/src/main/java/com/google/gerrit/server/mail/EmailHeader.java
index 151e5600e..2d82c1d1c 100644
--- a/src/main/java/com/google/gerrit/server/mail/EmailHeader.java
+++ b/src/main/java/com/google/gerrit/server/mail/EmailHeader.java
@@ -1,106 +1,10... | false | true | void write(Writer w) throws IOException {
int len = 8;
boolean first = true;
for (final Address addr : list) {
java.lang.String s = addr.toHeaderString();
if (!first && 72 < len + s.length()) {
w.write(",\r\n\t");
len = 8;
first = true;
}
... | void write(Writer w) throws IOException {
int len = 8;
boolean first = true;
for (final Address addr : list) {
java.lang.String s = addr.toHeaderString();
if (first) {
first = false;
} else if (72 < len + s.length()) {
w.write(",\r\n\t");
len =... |
diff --git a/src/com/dmdirc/Server.java b/src/com/dmdirc/Server.java
index 2f05ace99..f76b8fa09 100644
--- a/src/com/dmdirc/Server.java
+++ b/src/com/dmdirc/Server.java
@@ -1,1672 +1,1677 @@
/*
* Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
*
* Permission is hereby granted, free of charg... | true | true | public void connect(final URI address, final Identity profile) {
assert profile != null;
synchronized (myStateLock) {
switch (myState.getState()) {
case RECONNECT_WAIT:
reconnectTimer.cancel();
break;
case CLOSING:
... | public void connect(final URI address, final Identity profile) {
assert profile != null;
synchronized (myStateLock) {
switch (myState.getState()) {
case RECONNECT_WAIT:
reconnectTimer.cancel();
break;
case CLOSING:
... |
diff --git a/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ExtensionsPage.java b/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ExtensionsPage.java
index f582cb8b..5b618190 100644
--- a/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ExtensionsPage.java
+++... | true | true | public ExtensionsPage(PageParameters parameters) {
super(parameters);
List<Html5Player.IVideo> videos = Lists.<Html5Player.IVideo>newArrayList(
new Video("http://ia700305.us.archive.org/18/items/CopyingIsNotTheft/CINT_Nik_H264_720.ogv", "video/ogg"),
new Video("http:... | public ExtensionsPage(PageParameters parameters) {
super(parameters);
List<Html5Player.IVideo> videos = Lists.<Html5Player.IVideo>newArrayList(
new Video("http://ia700305.us.archive.org/18/items/CopyingIsNotTheft/CINT_Nik_H264_720.ogv", "video/ogg"),
new Video("http:... |
diff --git a/SucklessGame/src/com/suckless/Selecter.java b/SucklessGame/src/com/suckless/Selecter.java
index a758492..e5a5ac1 100644
--- a/SucklessGame/src/com/suckless/Selecter.java
+++ b/SucklessGame/src/com/suckless/Selecter.java
@@ -1,85 +1,85 @@
package com.suckless;
public abstract class Selecter extends Comm... | false | true | public Command Update(Field[][] states, Player player){
System.out.println(String.format("%d %d", x,y));
maxX = states.length;
maxY = states[0].length;
if(first){
if(direction == StateDirection.LEFT){
x = maxX;
}else{
x = 0;
}
first = false;
}
switch(direction){
case LEFT:... | public Command Update(Field[][] states, Player player){
System.out.println(String.format("%d %d", x,y));
maxX = states.length;
maxY = states[0].length;
if(first){
if(direction == StateDirection.LEFT){
x = maxX;
}else{
x = 0;
}
first = false;
}
switch(direction){
case LEFT:... |
diff --git a/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/SipNamingContextListener.java b/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/SipNamingContextListener.java
index 53def8239..159257111 100644
--- a/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/S... | false | true | public void containerEvent(ContainerEvent event) {
super.containerEvent(event);
// Setting the context in read/write mode
ContextAccessController.setWritable(getName(), container);
String type = event.getType();
SipContext sipContext = null;
String appName = null;
... | public void containerEvent(ContainerEvent event) {
super.containerEvent(event);
// Setting the context in read/write mode
ContextAccessController.setWritable(getName(), container);
String type = event.getType();
SipContext sipContext = null;
String appName = null;
... |
diff --git a/src/java/grails/plugin/multitenant/core/spring/TenantScope.java b/src/java/grails/plugin/multitenant/core/spring/TenantScope.java
index db40eef..ea13bcd 100644
--- a/src/java/grails/plugin/multitenant/core/spring/TenantScope.java
+++ b/src/java/grails/plugin/multitenant/core/spring/TenantScope.java
@@ -1,9... | true | true | public Object get(String name, ObjectFactory<?> objectFactory) {
Integer tenantId = currentTenant.get();
Map<String, Object> beanCache = getBeanCacheForTenant(tenantId);
if (!beanCache.containsKey(name)) {
beanCache.put(name, applicationContext.getBean(name + "_prototype"));
... | public Object get(String name, ObjectFactory<?> objectFactory) {
Integer tenantId = currentTenant.get();
if (tenantId == null) { // ConcurrentHashMap does not allow nulls, so mapping to -1
tenantId = new Integer(-1);
}
Map<String, Object> beanCache = getBeanCacheForTenant... |
diff --git a/src/com/zand/areaguard/area/cache/CacheWorld.java b/src/com/zand/areaguard/area/cache/CacheWorld.java
index 1df1171..dadfe9a 100644
--- a/src/com/zand/areaguard/area/cache/CacheWorld.java
+++ b/src/com/zand/areaguard/area/cache/CacheWorld.java
@@ -1,104 +1,103 @@
package com.zand.areaguard.area.cache;
... | true | true | public boolean update() {
long time = System.currentTimeMillis();
if (time - lastUpdate > updateTime) {
lastUpdate = time;
exsists = world.exsists();
name = world.getName();
cuboids.clear();
for (Cuboid cuboid : world.getCuboids())
if (cuboid.getWorld().getId() == getId() && !cuboids.cont... | public boolean update() {
long time = System.currentTimeMillis();
if (time - lastUpdate > updateTime) {
lastUpdate = time;
exsists = world.exsists();
name = world.getName();
cuboids.clear();
for (Cuboid cuboid : world.getCuboids())
cuboids.add(storage.getCuboid(cuboid.getId()));
Sy... |
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/views/CommonNavigatorPatternFilter.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/views/CommonNavigatorPatternFilter.java
index 67eb47524..c2f6673a5 100644
--- a/org.eclipse.mylyn.context.ui/src/org/eclips... | true | true | protected boolean isLeafMatch(Viewer viewer, Object element) {
return super.isLeafMatch(viewer, element);
}
| public boolean isLeafMatch(Viewer viewer, Object element) {
return super.isLeafMatch(viewer, element);
}
|
diff --git a/src/com/casimirlab/simpleDeadlines/data/DeadlineUtils.java b/src/com/casimirlab/simpleDeadlines/data/DeadlineUtils.java
index 27f399c..ddc923f 100644
--- a/src/com/casimirlab/simpleDeadlines/data/DeadlineUtils.java
+++ b/src/com/casimirlab/simpleDeadlines/data/DeadlineUtils.java
@@ -1,79 +1,82 @@
package ... | true | true | public static ContentValues shareUriToContentValues(Uri uri)
{
List<String> segments = uri.getPathSegments();
if (segments.size() < 4)
throw new IllegalArgumentException(String.format("Malformed Uri: %s", uri));
ContentValues values = new ContentValues(4);
if (TextUtils.isEmpty(segments.get(... | public static ContentValues shareUriToContentValues(Uri uri)
{
List<String> segments = uri.getPathSegments();
if (segments.size() < 4)
throw new IllegalArgumentException(String.format("Malformed Uri: %s", uri));
ContentValues values = new ContentValues(4);
if (TextUtils.isEmpty(segments.get(... |
diff --git a/web/src/main/java/org/jboss/jca/web/WARDeployer.java b/web/src/main/java/org/jboss/jca/web/WARDeployer.java
index 45fcddde8..13b626a80 100644
--- a/web/src/main/java/org/jboss/jca/web/WARDeployer.java
+++ b/web/src/main/java/org/jboss/jca/web/WARDeployer.java
@@ -1,163 +1,163 @@
/*
* JBoss, Home of Prof... | false | true | public synchronized Deployment deploy(URL url, ClassLoader parent) throws DeployException
{
if (url == null || !(url.toExternalForm().endsWith(".war") || url.toExternalForm().endsWith(".war/")))
return null;
log.debug("Deploying: " + url.toExternalForm());
try
{
String ... | public synchronized Deployment deploy(URL url, ClassLoader parent) throws DeployException
{
if (url == null || !(url.toExternalForm().endsWith(".war") || url.toExternalForm().endsWith(".war/")))
return null;
log.debug("Deploying: " + url.toExternalForm());
try
{
String ... |
diff --git a/src/syslogDaemon.java b/src/syslogDaemon.java
index cd1cb36..706414a 100644
--- a/src/syslogDaemon.java
+++ b/src/syslogDaemon.java
@@ -1,112 +1,112 @@
import com.sleepycat.je.*;
import java.net.DatagramSocket;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.util.Date;
im... | true | true | private void getEntries() throws Exception {
final File dbEnvDir = new File("/var/lib/syslogUnity/queueDB/");
int BUFFER_SIZE = 1024;
DatagramSocket syslog = new DatagramSocket(514);
DatagramPacket logEntry = new DatagramPacket(new byte[BUFFER_SIZE], BUFFER_SIZE);
Environme... | private void getEntries() throws Exception {
final File dbEnvDir = new File("/var/lib/syslogUnity/queueDB/");
int BUFFER_SIZE = 1024;
DatagramSocket syslog = new DatagramSocket(514);
DatagramPacket logEntry = new DatagramPacket(new byte[BUFFER_SIZE], BUFFER_SIZE);
Environme... |
diff --git a/test/models/support/FinderTemplateTest.java b/test/models/support/FinderTemplateTest.java
index 75637e32..42be2a28 100644
--- a/test/models/support/FinderTemplateTest.java
+++ b/test/models/support/FinderTemplateTest.java
@@ -1,42 +1,40 @@
package models.support;
import models.Milestone;
import models... | false | true | public void findBy() throws Exception {
OrderParams orderParams = new OrderParams();
SearchParams searchParams = new SearchParams();
orderParams.add("dueDate", Direction.ASC);
searchParams.add("project.id", 2l, Matching.EQUALS);
searchParams.add("completionRate", 100, Matchi... | public void findBy() throws Exception {
OrderParams orderParams = new OrderParams();
SearchParams searchParams = new SearchParams();
orderParams.add("dueDate", Direction.ASC);
searchParams.add("project.id", 2l, Matching.EQUALS);
List<Milestone> p2MilestoneList = FinderTempl... |
diff --git a/org.lh.dmlj.schema.editor.parent/org.lh.dmlj.schema.editor.core/src/org/lh/dmlj/schema/editor/template/SetTemplate.java b/org.lh.dmlj.schema.editor.parent/org.lh.dmlj.schema.editor.core/src/org/lh/dmlj/schema/editor/template/SetTemplate.java
index 897da18..5a2c4b5 100644
--- a/org.lh.dmlj.schema.editor.par... | false | true | public String generate(Object argument)
{
final StringBuffer stringBuffer = new StringBuffer();
/**
* Copyright (C) 2014 Luc Hermans
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Founda... | public String generate(Object argument)
{
final StringBuffer stringBuffer = new StringBuffer();
/**
* Copyright (C) 2014 Luc Hermans
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Founda... |
diff --git a/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/PlatformConfiguration.java b/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/PlatformConfiguration.java
index ea859c0a5..5859ace54 100644
--- a/update/org.eclipse.update.configurator/src/... | true | true | public synchronized void save(URL url) throws IOException {
if (url == null)
throw new IOException(Messages.getString("cfig.unableToSave.noURL")); //$NON-NLS-1$
OutputStream os = null;
if (!url.getProtocol().equals("file")) { //$NON-NLS-1$
// not a file protocol - attempt to save to the URL
URLConnecti... | public synchronized void save(URL url) throws IOException {
if (url == null)
throw new IOException(Messages.getString("cfig.unableToSave.noURL")); //$NON-NLS-1$
OutputStream os = null;
if (!url.getProtocol().equals("file")) { //$NON-NLS-1$
// not a file protocol - attempt to save to the URL
URLConnecti... |
diff --git a/ID3Tagger/src/com/se1by/Logic.java b/ID3Tagger/src/com/se1by/Logic.java
index 148d91d..95ed641 100644
--- a/ID3Tagger/src/com/se1by/Logic.java
+++ b/ID3Tagger/src/com/se1by/Logic.java
@@ -1,123 +1,122 @@
package com.se1by;
import java.io.File;
import entagged.audioformats.AudioFile;
import entagged.a... | true | true | public boolean saveFile(String name) {
try {
String extension = sourceFile.getName().substring(
sourceFile.getName().lastIndexOf(".") + 1);
audioFile.commit();
System.out.println(sourceFile.getParent() + "\\" + name + "."
+ extension);
sourceFile.renameTo(new File(sourceFile.getParent() + "\\" ... | public boolean saveFile(String name) {
try {
String extension = sourceFile.getName().substring(
sourceFile.getName().lastIndexOf(".") + 1);
audioFile.commit();
System.out.println(sourceFile.getParent() + "\\" + name + "."
+ extension);
File destination = new File(sourceFile.getParent(), name + ... |
diff --git a/src/main/java/mobisocial/cocoon/server/AMQPush.java b/src/main/java/mobisocial/cocoon/server/AMQPush.java
index 630f548..7c89c7d 100644
--- a/src/main/java/mobisocial/cocoon/server/AMQPush.java
+++ b/src/main/java/mobisocial/cocoon/server/AMQPush.java
@@ -1,610 +1,610 @@
package mobisocial.cocoon.server;
... | true | true | void amqp() throws Throwable {
final PushQueue dev_queue = Push.queue("push.p12", "pusubi", false,
1);
dev_queue.start();
final PushQueue prod_queue = Push.queue("pushprod.p12", "pusubi",
true, 1);
prod_queue.start();
for (;;) {
ConnectionFactory connectionFactory = new ConnectionFactor... | void amqp() throws Throwable {
final PushQueue dev_queue = Push.queue("push.p12", "pusubi", false,
1);
dev_queue.start();
final PushQueue prod_queue = Push.queue("pushprod.p12", "pusubi",
true, 1);
prod_queue.start();
for (;;) {
ConnectionFactory connectionFactory = new ConnectionFactor... |
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java
index a41170803..f6eab43fe 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.jav... | false | true | public void testSave() throws CoreException, IOException, ClassNotFoundException {
RepositoryTaskData taskData = new RepositoryTaskData(new MockAttributeFactory(),
MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL, "1",
Task.DEFAULT_TASK_KIND);
RepositoryTaskAttribute attrib1... | public void testSave() throws CoreException, IOException, ClassNotFoundException {
RepositoryTaskData taskData = new RepositoryTaskData(new MockAttributeFactory(),
MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL, "1",
Task.DEFAULT_TASK_KIND);
RepositoryTaskAttribute attrib1... |
diff --git a/KBDeX/src/kbdex/model/discourse/wordprocessing/KSimpleWordFinder.java b/KBDeX/src/kbdex/model/discourse/wordprocessing/KSimpleWordFinder.java
index fce1b13..c8742c2 100644
--- a/KBDeX/src/kbdex/model/discourse/wordprocessing/KSimpleWordFinder.java
+++ b/KBDeX/src/kbdex/model/discourse/wordprocessing/KSimpl... | true | true | public void parse(String text, KDictionary<String> keywords) {
if (lowercaseCheck) {
text = text.toLowerCase();
}
for (String word : keywords.getElements()) {
String currentText = text;
while (true) {// 後ろから切っていくこと.前から切ると,indexがずれる.
int index = currentText.lastIndexOf(word);
if (index < 0) {
... | public void parse(String text, KDictionary<String> keywords) {
if (lowercaseCheck) {
text = text.toLowerCase();
}
for (String word : keywords.getElements()) {
String currentText = text;
if (lowercaseCheck) {
word = word.toLowerCase();
}
while (true) {// 後ろから切っていくこと.前から切ると,indexがずれる.
int i... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index d76e0260..fc97832a 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1187 +1,1190 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | true | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/icy/main/Icy.java b/icy/main/Icy.java
index 2a7b328..c55fa30 100644
--- a/icy/main/Icy.java
+++ b/icy/main/Icy.java
@@ -1,1238 +1,1240 @@
/*
* Copyright 2010-2013 Institut Pasteur.
*
* This file is part of Icy.
*
* Icy is free software: you can redistribute it and/or modify
* it under the te... | false | true | private static void loadVtkLibrary(String libPath)
{
final String vtkLibPath = libPath + FileUtil.separator + "vtk";
// we load it directly from inner lib path if possible
System.setProperty("vtk.lib.dir", vtkLibPath);
vtkLibraryLoaded = false;
try
{
... | private static void loadVtkLibrary(String libPath)
{
final String vtkLibPath = libPath + FileUtil.separator + "vtk";
// we load it directly from inner lib path if possible
System.setProperty("vtk.lib.dir", vtkLibPath);
vtkLibraryLoaded = false;
try
{
... |
diff --git a/Caustk/src-core/com/teotigraphix/caustk/node/effect/EffectsChannel.java b/Caustk/src-core/com/teotigraphix/caustk/node/effect/EffectsChannel.java
index b0c08ec2..293567ce 100644
--- a/Caustk/src-core/com/teotigraphix/caustk/node/effect/EffectsChannel.java
+++ b/Caustk/src-core/com/teotigraphix/caustk/node/... | false | true | protected void restoreComponents() {
for (int i = 0; i < NUM_SLOTS; i++) {
EffectType type = EffectType.fromInt((int)EffectsRackMessage.TYPE.send(getRack(),
getMachineIndex(), i));
if (type != null) {
EffectNode effect;
try {
... | protected void restoreComponents() {
if (getMachineNode() != null) {
for (int i = 0; i < NUM_SLOTS; i++) {
EffectType type = EffectType.fromInt((int)EffectsRackMessage.TYPE.send(getRack(),
getMachineIndex(), i));
if (type != null) {
... |
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
index 4c118883c..4b3108290 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTask... | false | true | public static Set<TaskAttribute> updateTaskData(TaskRepository repository, TaskData data, TracTicket ticket) {
Set<TaskAttribute> changedAttributes = new HashSet<TaskAttribute>();
Date lastChanged = ticket.getLastChanged();
if (lastChanged != null) {
TaskAttribute taskAttribute = data.getRoot().getAttribute(... | public static Set<TaskAttribute> updateTaskData(TaskRepository repository, TaskData data, TracTicket ticket) {
Set<TaskAttribute> changedAttributes = new HashSet<TaskAttribute>();
Date lastChanged = ticket.getLastChanged();
if (lastChanged != null) {
TaskAttribute taskAttribute = data.getRoot().getAttribute(... |
diff --git a/EditeurDeTexte/src/model/classes/Line.java b/EditeurDeTexte/src/model/classes/Line.java
index 334cc17..ab5a861 100644
--- a/EditeurDeTexte/src/model/classes/Line.java
+++ b/EditeurDeTexte/src/model/classes/Line.java
@@ -1,184 +1,184 @@
package model.classes;
import java.util.Observable;
import java.ut... | true | true | public String toString() {
StringBuilder toReturn = new StringBuilder();
int index = 0;
// If the line has the cursor, this one has to be added to the line
if (this.hasCursor()) {
// FBefore adding the cursor, we get all the char placed before this
// one
... | public String toString() {
StringBuilder toReturn = new StringBuilder();
int index = 0;
// If the line has the cursor, this one has to be added to the line
if (this.hasCursor()) {
// FBefore adding the cursor, we get all the char placed before this
// one
... |
diff --git a/components/patient-update-listeners/src/main/java/edu/toronto/cs/phenotips/listeners/FreePhenotypeCategoryUpdater.java b/components/patient-update-listeners/src/main/java/edu/toronto/cs/phenotips/listeners/FreePhenotypeCategoryUpdater.java
index 5ac415844..bdd6cffc9 100644
--- a/components/patient-update-l... | true | true | public void onEvent(Event event, Object source, Object data)
{
XWikiContext context = (XWikiContext) data;
XWikiDocument doc = (XWikiDocument) source;
BaseObject patientRecordObj =
doc.getXObject(new DocumentReference(doc.getDocumentReference().getRoot().getName(), PHENOTIPS... | public void onEvent(Event event, Object source, Object data)
{
XWikiContext context = (XWikiContext) data;
XWikiDocument doc = (XWikiDocument) source;
BaseObject patientRecordObj =
doc.getXObject(new DocumentReference(doc.getDocumentReference().getRoot().getName(), PHENOTIPS... |
diff --git a/api/src/test/java/org/openmrs/api/context/ContextWithModuleTest.java b/api/src/test/java/org/openmrs/api/context/ContextWithModuleTest.java
index 994175a5..bce8c757 100644
--- a/api/src/test/java/org/openmrs/api/context/ContextWithModuleTest.java
+++ b/api/src/test/java/org/openmrs/api/context/ContextWithM... | true | true | public Properties getRuntimeProperties() {
Properties props = super.getRuntimeProperties();
// NOTE! This module is modified heavily from the original atd modules.
// the "/lib" folder has been emptied to compact the size.
// the "/metadata/sqldiff.xml" file has been deleted in order to load the modules int... | public Properties getRuntimeProperties() {
Properties props = super.getRuntimeProperties();
// NOTE! This module is modified heavily from the original atd modules.
// the "/lib" folder has been emptied to compact the size.
// the "/metadata/sqldiff.xml" file has been deleted in order to load the modules int... |
diff --git a/gamelib/test/testgame/tests/LongTaskTest.java b/gamelib/test/testgame/tests/LongTaskTest.java
index fb06838..5064166 100644
--- a/gamelib/test/testgame/tests/LongTaskTest.java
+++ b/gamelib/test/testgame/tests/LongTaskTest.java
@@ -1,113 +1,113 @@
/*********************************************************... | false | true | public void test() {
LongTaskImplA task = new LongTaskImplA();
task.addObserver(new Observer() {
private int count = 0;
@Override
public void update(Observable o, Object m) {
if (m instanceof LongTaskUpdate) {
LongTask observed = (LongTask)o;
System.out.println(String.format("%6.2f%% of %s: ... | public void test() {
LongTaskImplA task = new LongTaskImplA();
task.addObserver(new Observer() {
private int count = 0;
@Override
public void update(Observable o, Object m) {
if (m instanceof LongTaskUpdate) {
LongTask observed = (LongTask)o;
System.out.println(String.format("%6.2f%% of %s: ... |
diff --git a/demo/src/java/main/org/uncommons/maths/demo/GaussianDistribution.java b/demo/src/java/main/org/uncommons/maths/demo/GaussianDistribution.java
index a0664f7..302799a 100644
--- a/demo/src/java/main/org/uncommons/maths/demo/GaussianDistribution.java
+++ b/demo/src/java/main/org/uncommons/maths/demo/GaussianD... | false | true | public Map<Double, Double> getExpectedValues()
{
Map<Double, Double> values = new HashMap<Double, Double>();
double p;
double x = mean;
do
{
p = getExpectedProbability(x);
values.put(x, p);
values.put(-x, p);
x += (3 * stand... | public Map<Double, Double> getExpectedValues()
{
Map<Double, Double> values = new HashMap<Double, Double>();
double p;
double x = 0;
do
{
p = getExpectedProbability(mean + x);
values.put(mean + x, p);
values.put(mean - x, p);
... |
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dNPC.java b/src/main/java/net/aufdemrand/denizen/objects/dNPC.java
index eb23aff3e..a64b1e676 100644
--- a/src/main/java/net/aufdemrand/denizen/objects/dNPC.java
+++ b/src/main/java/net/aufdemrand/denizen/objects/dNPC.java
@@ -1,592 +1,592 @@
package net.aufdem... | false | true | public String getAttribute(Attribute attribute) {
if (attribute == null) return "null";
// <--[tag]
// @attribute <npc.name.nickname>
// @returns Element
// @description
// returns the NPC's display name.
// -->
if (attribute.startsWith("name.nicknam... | public String getAttribute(Attribute attribute) {
if (attribute == null) return "null";
// <--[tag]
// @attribute <npc.name.nickname>
// @returns Element
// @description
// returns the NPC's display name.
// -->
if (attribute.startsWith("name.nicknam... |
diff --git a/lc-user-tools/src/main/java/org/esa/cci/lc/io/LcBinWriter.java b/lc-user-tools/src/main/java/org/esa/cci/lc/io/LcBinWriter.java
index 3686578..dd37cbc 100644
--- a/lc-user-tools/src/main/java/org/esa/cci/lc/io/LcBinWriter.java
+++ b/lc-user-tools/src/main/java/org/esa/cci/lc/io/LcBinWriter.java
@@ -1,246 +... | true | true | private void fillVariables(List<TemporalBin> temporalBins, ArrayList<NVariable> variables, int sceneWidth, int sceneHeight) throws IOException {
final Iterator<TemporalBin> iterator = temporalBins.iterator();
ProductData.Float[] dataLines = new ProductData.Float[variables.size()];
initDataL... | private void fillVariables(List<TemporalBin> temporalBins, ArrayList<NVariable> variables, int sceneWidth, int sceneHeight) throws IOException {
final Iterator<TemporalBin> iterator = temporalBins.iterator();
ProductData.Float[] dataLines = new ProductData.Float[variables.size()];
initDataL... |
diff --git a/src/physics/GJKSimplex.java b/src/physics/GJKSimplex.java
index 89879ab..31f391c 100644
--- a/src/physics/GJKSimplex.java
+++ b/src/physics/GJKSimplex.java
@@ -1,251 +1,251 @@
package physics;
import java.util.List;
import math.Vector3;
import math.Supportable;
// http://mollyrocket.com/forums/vie... | true | true | static public Vector3 findTetrahedronSimplex(List<Vector3> simplex){
Vector3 newDirection;
//A is the point added last to the simplex
Vector3 a = simplex.get(3);
Vector3 b = simplex.get(2);
Vector3 c = simplex.get(1);
Vector3 d = simplex.get(0);
Vector3 ... | static public Vector3 findTetrahedronSimplex(List<Vector3> simplex){
Vector3 newDirection;
//A is the point added last to the simplex
Vector3 a = simplex.get(3);
Vector3 b = simplex.get(2);
Vector3 c = simplex.get(1);
Vector3 d = simplex.get(0);
Vector3 ... |
diff --git a/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java b/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java
index 9676bfd..4dcf25e 100644
--- a/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java
+++ b/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java... | true | true | public void create()
throws Exception {
log.debug("InstanceAWS: create()");
boolean verified = false;
context.setProperty("server.name", name); // update server.name prop
if (ec2Client == null) {
ec2Client = context.getEC2Client();
}
if (elb... | public void create()
throws Exception {
log.debug("InstanceAWS: create()");
boolean verified = false;
context.setProperty("server.name", name); // update server.name prop
if (ec2Client == null) {
ec2Client = context.getEC2Client();
}
if (elb... |
diff --git a/src/de/caluga/morphium/Morphium.java b/src/de/caluga/morphium/Morphium.java
index eb7973f1..5df32345 100644
--- a/src/de/caluga/morphium/Morphium.java
+++ b/src/de/caluga/morphium/Morphium.java
@@ -1,2343 +1,2343 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the ... | true | true | public void callLifecycleMethod(Class<? extends Annotation> type, Object on) {
if (on == null) return;
//No synchronized block - might cause the methods to be put twice into the
//hashtabel - but for performance reasons, it's ok...
Class<?> cls = on.getClass();
//No Lifecycle... | public void callLifecycleMethod(Class<? extends Annotation> type, Object on) {
if (on == null) return;
//No synchronized block - might cause the methods to be put twice into the
//hashtabel - but for performance reasons, it's ok...
Class<?> cls = on.getClass();
//No Lifecycle... |
diff --git a/common/rebelkeithy/mods/metallurgy/metals/MetallurgyMetals.java b/common/rebelkeithy/mods/metallurgy/metals/MetallurgyMetals.java
index d8c45cd..ff4b004 100644
--- a/common/rebelkeithy/mods/metallurgy/metals/MetallurgyMetals.java
+++ b/common/rebelkeithy/mods/metallurgy/metals/MetallurgyMetals.java
@@ -1,3... | true | true | public void addSwordEffects()
{
ISwordHitListener swordEffects = new NetherSwordHitListener();
MinecraftForge.EVENT_BUS.register(swordEffects); // Registers the on death event needed by Midasium's looting effect
netherSet.getOreInfo("Ignatius").sword.addHitListener(swordEffects);
netherSet.getOreInfo("Ignatiu... | public void addSwordEffects()
{
ISwordHitListener swordEffects = new NetherSwordHitListener();
MinecraftForge.EVENT_BUS.register(swordEffects); // Registers the on death event needed by Midasium's looting effect
netherSet.getOreInfo("Ignatius").sword.addHitListener(swordEffects);
netherSet.getOreInfo("Ignatiu... |
diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Dialog.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Dialog.java
index f28db6757..3d1891ef7 100644
--- a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Dialog.java
+++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Dialog.java
@@ -1,216 +1,216 @@
package com.badl... | true | true | private void initialize () {
setModal(true);
defaults().space(6);
add(contentTable = new Table(skin)).expand().fill();
row();
add(buttonTable = new Table(skin));
contentTable.defaults().space(6);
buttonTable.defaults().space(6);
buttonTable.addListener(new ChangeListener() {
public void changed (... | private void initialize () {
setModal(true);
defaults().space(6);
add(contentTable = new Table(skin)).expand().fill();
row();
add(buttonTable = new Table(skin));
contentTable.defaults().space(6);
buttonTable.defaults().space(6);
buttonTable.addListener(new ChangeListener() {
public void changed (... |
diff --git a/Java_CCN/test/ccn/data/util/CCNEncodableObjectTest.java b/Java_CCN/test/ccn/data/util/CCNEncodableObjectTest.java
index 99e1b639f..bbc3c6ec7 100644
--- a/Java_CCN/test/ccn/data/util/CCNEncodableObjectTest.java
+++ b/Java_CCN/test/ccn/data/util/CCNEncodableObjectTest.java
@@ -1,244 +1,246 @@
package test.c... | false | true | public void testSaveUpdate() {
boolean caught = false;
try {
CCNEncodableCollectionData emptycoll = new CCNEncodableCollectionData();
NullOutputStream nos = new NullOutputStream();
emptycoll.save(nos);
} catch (InvalidObjectException iox) {
// this is what we expect to happen
caught = true;
} ca... | public void testSaveUpdate() {
boolean caught = false;
try {
CCNEncodableCollectionData emptycoll = new CCNEncodableCollectionData();
NullOutputStream nos = new NullOutputStream();
emptycoll.save(nos);
} catch (InvalidObjectException iox) {
// this is what we expect to happen
caught = true;
} ca... |
diff --git a/nuxeo-platform-importer-core/src/main/java/org/nuxeo/ecm/platform/importer/base/GenericThreadedImportTask.java b/nuxeo-platform-importer-core/src/main/java/org/nuxeo/ecm/platform/importer/base/GenericThreadedImportTask.java
index a162b788..67386265 100644
--- a/nuxeo-platform-importer-core/src/main/java/or... | false | true | public synchronized void run() {
txHelper.beginNewTransaction(TX_TIMEOUT);
synchronized (this) {
if (isRunning) {
throw new IllegalStateException("Task already running");
}
isRunning = true;
// versions have no path, target document can... | public synchronized void run() {
txHelper.beginNewTransaction(TX_TIMEOUT);
synchronized (this) {
if (isRunning) {
throw new IllegalStateException("Task already running");
}
isRunning = true;
// versions have no path, target document can... |
diff --git a/src/org/eclipse/jface/dialogs/DialogMessageArea.java b/src/org/eclipse/jface/dialogs/DialogMessageArea.java
index c3e52f53..b4be7051 100644
--- a/src/org/eclipse/jface/dialogs/DialogMessageArea.java
+++ b/src/org/eclipse/jface/dialogs/DialogMessageArea.java
@@ -1,190 +1,196 @@
/***************************... | false | true | public void updateText(String newMessage, int newType) {
Image newImage = null;
switch (newType) {
case IMessageProvider.NONE:
if (newMessage == null)
restoreTitle();
else
showTitle(newMessage, null);
return;
case IM... | public void updateText(String newMessage, int newType) {
Image newImage = null;
switch (newType) {
case IMessageProvider.NONE:
if (newMessage == null)
restoreTitle();
else
showTitle(newMessage, null);
return;
case IM... |
diff --git a/src/org/pentaho/pms/example/AdvancedSQLGenerator.java b/src/org/pentaho/pms/example/AdvancedSQLGenerator.java
index bd023274..044996a8 100644
--- a/src/org/pentaho/pms/example/AdvancedSQLGenerator.java
+++ b/src/org/pentaho/pms/example/AdvancedSQLGenerator.java
@@ -1,615 +1,617 @@
/*
* This program is f... | false | true | public MappedQuery getQuery(
BusinessModel model,
List<Selection> selections,
List<WhereCondition> constraints,
List<OrderBy> orderbys,
DatabaseMeta databaseMeta,
boolean disableDistinct,
String locale) throws PentahoMetadataException
{
Map<String,String> columnsMa... | public MappedQuery getQuery(
BusinessModel model,
List<Selection> selections,
List<WhereCondition> constraints,
List<OrderBy> orderbys,
DatabaseMeta databaseMeta,
boolean disableDistinct,
String locale) throws PentahoMetadataException
{
Map<String,String> columnsMa... |
diff --git a/SpagoBIWhatIfEngine/src/it/eng/spagobi/engines/whatif/WhatIfEngineInstance.java b/SpagoBIWhatIfEngine/src/it/eng/spagobi/engines/whatif/WhatIfEngineInstance.java
index c430ef49e..8712ff1c1 100644
--- a/SpagoBIWhatIfEngine/src/it/eng/spagobi/engines/whatif/WhatIfEngineInstance.java
+++ b/SpagoBIWhatIfEngine... | true | true | public WhatIfEngineInstance(WhatIfTemplate template, Map env) {
super( env );
includes = WhatIfEngine.getConfig().getIncludes();
try {
Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
Class.forName("org.olap4j.OlapWrapper");
} catch (ClassNotFoundException e) {
throw new RuntimeExcept... | public WhatIfEngineInstance(WhatIfTemplate template, Map env) {
super( env );
includes = WhatIfEngine.getConfig().getIncludes();
try {
Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
Class.forName("org.olap4j.OlapWrapper");
} catch (ClassNotFoundException e) {
throw new RuntimeExcept... |
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
index b224eeb1..fd826bdf 100644
--- a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
+++ b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
@@ -1,666 +1,666 @@
/*
* Copyright... | true | true | void addRoadWithoutLoops(Way way, GType gt) {
List<Integer> nodeIndices = new ArrayList<Integer>();
List<Coord> points = way.getPoints();
Way trailingWay = null;
// make sure the way has nodes at each end
points.get(0).incHighwayCount();
points.get(points.size() - 1).incHighwayCount();
// collect the W... | void addRoadWithoutLoops(Way way, GType gt) {
List<Integer> nodeIndices = new ArrayList<Integer>();
List<Coord> points = way.getPoints();
Way trailingWay = null;
// make sure the way has nodes at each end
points.get(0).incHighwayCount();
points.get(points.size() - 1).incHighwayCount();
// collect the W... |
diff --git a/libcore/luni/src/test/java/tests/api/java/util/CurrencyTest.java b/libcore/luni/src/test/java/tests/api/java/util/CurrencyTest.java
index b7a5648d7..14068a3e2 100644
--- a/libcore/luni/src/test/java/tests/api/java/util/CurrencyTest.java
+++ b/libcore/luni/src/test/java/tests/api/java/util/CurrencyTest.java... | true | true | public void test_getSymbolLjava_util_Locale() {
//Tests was simplified because java specification not
// includes strong requirements for returnig symbol.
// on android platform used wrong character for yen
// sign: \u00a5 instead of \uffe5
Locale[] loc1 = new Locale[]{
... | public void test_getSymbolLjava_util_Locale() {
//Tests was simplified because java specification not
// includes strong requirements for returnig symbol.
// on android platform used wrong character for yen
// sign: \u00a5 instead of \uffe5
Locale[] loc1 = new Locale[]{
... |
diff --git a/android/InCarDisplay/src/com/totoro/incardisplay/Login.java b/android/InCarDisplay/src/com/totoro/incardisplay/Login.java
index 21f034a..f9f0e8c 100644
--- a/android/InCarDisplay/src/com/totoro/incardisplay/Login.java
+++ b/android/InCarDisplay/src/com/totoro/incardisplay/Login.java
@@ -1,256 +1,256 @@
pa... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
loginActivity = this;
final View controlsView = findViewById(R.id.fullscreen_content_controls);
final View contentView = findViewById(R.id.fullscreen_content);
// Set up an... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
loginActivity = this;
final View controlsView = findViewById(R.id.fullscreen_content_controls);
final View contentView = findViewById(R.id.fullscreen_content);
// Set up an... |
diff --git a/src/main/java/org/neo4j/server/extensions/ServerExtension.java b/src/main/java/org/neo4j/server/extensions/ServerExtension.java
index f9bcd732..2f336f46 100644
--- a/src/main/java/org/neo4j/server/extensions/ServerExtension.java
+++ b/src/main/java/org/neo4j/server/extensions/ServerExtension.java
@@ -1,185... | true | true | static String verifyName( String name )
{
if ( name == null )
{
throw new IllegalArgumentException( "Name may not be null" );
}
try
{
if ( !URLEncoder.encode( name, "UTF-8" ).equals( name ) )
{
throw new IllegalArgumentE... | static String verifyName( String name )
{
if ( name == null )
{
throw new IllegalArgumentException( "Name may not be null" );
}
try
{
if ( !URLEncoder.encode( name, "UTF-8" ).equals( name ) )
{
throw new IllegalArgumentE... |
diff --git a/src/main/java/com/laytonsmith/core/functions/Persistance.java b/src/main/java/com/laytonsmith/core/functions/Persistance.java
index 11521b46..a26e9103 100644
--- a/src/main/java/com/laytonsmith/core/functions/Persistance.java
+++ b/src/main/java/com/laytonsmith/core/functions/Persistance.java
@@ -1,384 +1,... | true | true | public Construct exec(Target t, Environment env, Construct... args) throws CancelCommandException, ConfigRuntimeException {
String key = GetNamespace(args, args.length - 1, getName(), t);
String value = null;
try {
value = Construct.json_encode(args[args.length - 1], t);
} catch (MarshalException e) {... | public Construct exec(Target t, Environment env, Construct... args) throws CancelCommandException, ConfigRuntimeException {
String key = GetNamespace(args, args.length - 1, getName(), t);
String value = null;
try {
value = Construct.json_encode(args[args.length - 1], t);
} catch (MarshalException e) {... |
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/EmptyStatementCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/EmptyStatementCheck.java
index ffb0448a..240b828b 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/EmptyStatementCheck.java
+++ b/src/checkstyle/com/puppy... | true | true | public int[] getDefaultTokens()
{
return new int[] { TokenTypes.EMPTY_STAT };
}
| public int[] getDefaultTokens()
{
return new int[] {TokenTypes.EMPTY_STAT};
}
|
diff --git a/src/MaxSubarray.java b/src/MaxSubarray.java
index 50df91e..0f39514 100644
--- a/src/MaxSubarray.java
+++ b/src/MaxSubarray.java
@@ -1,30 +1,30 @@
/**
* http://leetcode.com/onlinejudge#question_53
*
*
*/
public class MaxSubarray {
public int maxSubArray(int[] A) {
int maxSofar = 0;
int m... | true | true | public int maxSubArray(int[] A) {
int maxSofar = 0;
int maxEndingHere = 0;
boolean allNegative = true;
int max = 0;
for (int element : A) {
if (element > max) {
max = element;
}
if (element >= 0) {
allNegative = false;
break;
}
}
if (allNegative) {
return max;
}
for (int el... | public int maxSubArray(int[] A) {
int maxSofar = 0;
int maxEndingHere = 0;
boolean allNegative = true;
int max = Integer.MIN_VALUE;
for (int element : A) {
if (element > max) {
max = element;
}
if (element >= 0) {
allNegative = false;
break;
}
}
if (allNegative) {
return max;
... |
diff --git a/app/src/main/java/com/github/mobile/core/issue/IssueUtils.java b/app/src/main/java/com/github/mobile/core/issue/IssueUtils.java
index 736e5c43..acb64363 100644
--- a/app/src/main/java/com/github/mobile/core/issue/IssueUtils.java
+++ b/app/src/main/java/com/github/mobile/core/issue/IssueUtils.java
@@ -1,67 ... | false | true | public static Issue toIssue(final PullRequest pullRequest) {
if (pullRequest == null)
return null;
Issue issue = new Issue();
issue.setBody(pullRequest.getBody());
issue.setBodyHtml(pullRequest.getBodyHtml());
issue.setBodyText(pullRequest.getBodyText());
... | public static Issue toIssue(final PullRequest pullRequest) {
if (pullRequest == null)
return null;
Issue issue = new Issue();
issue.setAssignee(pullRequest.getAssignee());
issue.setBody(pullRequest.getBody());
issue.setBodyHtml(pullRequest.getBodyHtml());
... |
diff --git a/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglNet.java b/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglNet.java
index a2d48aa05..c8302a2a4 100755
--- a/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglNet.java
+++ b/backends/gdx-backend-lwjgl/s... | false | true | public void sendHttpRequest (HttpRequest httpRequest, final HttpResponseListener httpResultListener) {
if (httpRequest.getUrl() == null) {
httpResultListener.failed(new GdxRuntimeException("can't process a HTTP request without URL set"));
return;
}
try {
String value = httpRequest.convertHttpRequest(... | public void sendHttpRequest (HttpRequest httpRequest, final HttpResponseListener httpResultListener) {
if (httpRequest.getUrl() == null) {
httpResultListener.failed(new GdxRuntimeException("can't process a HTTP request without URL set"));
return;
}
try {
// String value = httpRequest.convertHttpReques... |
diff --git a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java b/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java
index fc9e9465..fb87a5e9 100644
--- a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test... | true | true | protected void prepareRestProject() {
if (!projectExists(getWsProjectName())) {
//importing project without targeted runtime set
importWSTestProject("resources/projects/" +
getWsProjectName(), getWsProjectName());
//set target runtime - TO DO
projectHelper.addDefaultRuntimeIntoProject(getWsP... | protected void prepareRestProject() {
if (!projectExists(getWsProjectName())) {
//importing project without targeted runtime set
importWSTestProject("resources/projects/" +
getWsProjectName(), getWsProjectName());
//set target runtime - TO DO
projectHelper.addConfiguredRuntimeIntoProject(
... |
diff --git a/CodenameG/src/edu/chl/codenameg/model/Vector2D.java b/CodenameG/src/edu/chl/codenameg/model/Vector2D.java
index aaacc24..1115c4a 100644
--- a/CodenameG/src/edu/chl/codenameg/model/Vector2D.java
+++ b/CodenameG/src/edu/chl/codenameg/model/Vector2D.java
@@ -1,80 +1,80 @@
package edu.chl.codenameg.model;
... | false | true | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Vector2D other = (Vector2D) obj;
if (Float.floatToIntBits(x) != Float.floatToIntBits(other.x))
return false;
if (Float.floatToIntBits(y) != Float.floa... | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Vector2D other = (Vector2D) obj;
if (Float.floatToIntBits(x) != Float.floatToIntBits(other.getX()))
return false;
if (Float.floatToIntBits(y) != Float... |
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/operation/DartModelOperation.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/operation/DartModelOperation.java
index 10893a000..2c3f1d52b 100644
--- a/editor/tools/plugins/... | true | true | public void run(IProgressMonitor monitor) throws CoreException {
DartCore.notYetImplemented();
DartModelManager manager = DartModelManager.getInstance();
DeltaProcessor deltaProcessor = manager.getDeltaProcessor();
int previousDeltaCount = deltaProcessor.dartModelDeltas.size();
try {
progres... | public void run(IProgressMonitor monitor) throws CoreException {
DartCore.notYetImplemented();
DartModelManager manager = DartModelManager.getInstance();
DeltaProcessor deltaProcessor = manager.getDeltaProcessor();
int previousDeltaCount = deltaProcessor.dartModelDeltas.size();
try {
progres... |
diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/javabeans/BeanMembersShouldSerializeRule.java b/pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/javabeans/BeanMembersShouldSerializeRule.java
index 286e09118..52b96866a 100644
--- a/pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/javabeans/Bean... | true | true | public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {
if (node.isInterface()) {
return data;
}
Map<MethodNameDeclaration, List<NameOccurrence>> methods = node.getScope().getEnclosingClassScope()
.getMethodDeclarations();
List<ASTMethodDeclarator> getSetMethList = new ArrayList<ASTMetho... | public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {
if (node.isInterface()) {
return data;
}
Map<MethodNameDeclaration, List<NameOccurrence>> methods = node.getScope().getEnclosingClassScope()
.getMethodDeclarations();
List<ASTMethodDeclarator> getSetMethList = new ArrayList<ASTMetho... |
diff --git a/src/net/idlesoft/android/apps/github/ui/fragments/EventsFragment.java b/src/net/idlesoft/android/apps/github/ui/fragments/EventsFragment.java
index ffbe9e4..e6b5f05 100644
--- a/src/net/idlesoft/android/apps/github/ui/fragments/EventsFragment.java
+++ b/src/net/idlesoft/android/apps/github/ui/fragments/Eve... | true | true | void onActivityCreated(Bundle savedInstanceState)
{
super.onActivityCreated(savedInstanceState);
final Bundle args = getArguments();
final String userJson;
if (args != null) {
userJson = args.getString(ARG_TARGET_USER, null);
if (userJson != null) {
mDataFragment.targetUser = GsonUtils.fromJson(use... | void onActivityCreated(Bundle savedInstanceState)
{
super.onActivityCreated(savedInstanceState);
final Bundle args = getArguments();
final String userJson;
if (args != null) {
userJson = args.getString(ARG_TARGET_USER, null);
if (userJson != null) {
mDataFragment.targetUser = GsonUtils.fromJson(use... |
diff --git a/sources/Watcher/src/kesako/watcher/runnable/SourceWatcher.java b/sources/Watcher/src/kesako/watcher/runnable/SourceWatcher.java
index 2563adb..0244135 100755
--- a/sources/Watcher/src/kesako/watcher/runnable/SourceWatcher.java
+++ b/sources/Watcher/src/kesako/watcher/runnable/SourceWatcher.java
@@ -1,259 +... | false | true | private void fileProcessing(Connection cn,File file){
/*
* nouveau 0
* meta 1
* modifié 2
* error 3
*/
Date dM;
File fileMeta;
String query="";
ResultSet rs;
int fileId;
Calendar c=Calendar.getInstance();
logger.debug("******************************************************************");... | private void fileProcessing(Connection cn,File file){
/*
* nouveau 0
* meta 1
* modifié 2
* error 3
*/
Date dM;
File fileMeta;
String query="";
ResultSet rs;
int fileId;
Calendar c=Calendar.getInstance();
logger.debug("******************************************************************");... |
diff --git a/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java b/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
index 7b658272..68be05bd 100644
--- a/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
+++ b/components/dotnet-... | true | true | public Set<Artifact> storeProjectAndResolveDependencies( Project project, File localRepository,
List<ArtifactRepository> artifactRepositories )
throws IOException, IllegalArgumentException
{
long startTime = System.currentTimeMillis();... | public Set<Artifact> storeProjectAndResolveDependencies( Project project, File localRepository,
List<ArtifactRepository> artifactRepositories )
throws IOException, IllegalArgumentException
{
long startTime = System.currentTimeMillis();... |
diff --git a/pac4j-http/src/main/java/org/pac4j/http/client/FormClient.java b/pac4j-http/src/main/java/org/pac4j/http/client/FormClient.java
index f906cebc..0e42b777 100644
--- a/pac4j-http/src/main/java/org/pac4j/http/client/FormClient.java
+++ b/pac4j-http/src/main/java/org/pac4j/http/client/FormClient.java
@@ -1,175... | false | true | protected UsernamePasswordCredentials retrieveCredentials(final WebContext context) throws RequiresHttpAction {
final String username = context.getRequestParameter(this.usernameParameter);
final String password = context.getRequestParameter(this.passwordParameter);
if (CommonHelper.isNotBlan... | protected UsernamePasswordCredentials retrieveCredentials(final WebContext context) throws RequiresHttpAction {
final String username = context.getRequestParameter(this.usernameParameter);
final String password = context.getRequestParameter(this.passwordParameter);
if (CommonHelper.isNotBlan... |
diff --git a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java
index 21cda73d..289bbd37 100644
--- a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java
+++ b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java
@@ -1,9547 +1,9551 @@
/* @(#)BasicJideTa... | true | true | protected boolean requestFocusForVisibleComponent() {
Component visibleComponent = getVisibleComponent();
Component lastFocused = _tabPane.getLastFocusedComponent(visibleComponent);
if (lastFocused != null && lastFocused.requestFocusInWindow()) {
return true;
}
el... | protected boolean requestFocusForVisibleComponent() {
Component visibleComponent = getVisibleComponent();
Component lastFocused = _tabPane.getLastFocusedComponent(visibleComponent);
if (lastFocused != null && lastFocused.requestFocusInWindow()) {
return true;
}
el... |
diff --git a/src/gd/app/cli/CommandLineInterface.java b/src/gd/app/cli/CommandLineInterface.java
index 99f83bd..610d4ab 100644
--- a/src/gd/app/cli/CommandLineInterface.java
+++ b/src/gd/app/cli/CommandLineInterface.java
@@ -1,201 +1,201 @@
package gd.app.cli;
import java.io.BufferedWriter;
import java.io.FileWrit... | true | true | private static void manageParams(String args[])
{
ArgsManager param_manager = new ArgsManager(args);
String arg;
try
{
while ((arg = param_manager.getNextParam()) != null)
{
if (!ArgsManager.isAnOptionName(arg))
{
if (sgbd_type == null)
... | private static void manageParams(String args[])
{
ArgsManager param_manager = new ArgsManager(args);
String arg;
try
{
while ((arg = param_manager.getNextParam()) != null)
{
if (!ArgsManager.isAnOptionName(arg))
{
if (sgbd_type == null)
... |
diff --git a/java/src/client/com/dgrid/transport/DGridHibernateTransport.java b/java/src/client/com/dgrid/transport/DGridHibernateTransport.java
index 1babb42..87a9799 100644
--- a/java/src/client/com/dgrid/transport/DGridHibernateTransport.java
+++ b/java/src/client/com/dgrid/transport/DGridHibernateTransport.java
@@ ... | true | true | public void completeJoblet(int jobletId, JobletResult result,
String logMessage) throws TransportException, InvalidApiKey,
InvalidJobletId {
log.trace("completeJoblet()");
Joblet joblet = readJoblet(jobletId);
joblet.setStatus(result.getStatus());
dao.update(joblet);
result.setJoblet(joblet);
result.... | public void completeJoblet(int jobletId, JobletResult result,
String logMessage) throws TransportException, InvalidApiKey,
InvalidJobletId {
log.trace("completeJoblet()");
Joblet joblet = readJoblet(jobletId);
joblet.setStatus(result.getStatus());
dao.update(joblet);
result.setJoblet(joblet);
result.... |
diff --git a/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/TagsGet.java b/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/TagsGet.java
index 0c1f9cbc..37b23abd 100644
--- a/modules/activiti-webapp-rest/src/main/java/org/activiti/rest/api/cycle/TagsGet.java
+++ b/modules/a... | true | true | void execute(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) {
String connectorId = req.getString("connectorId");
String repositoryNodeId = req.getString("repositoryNodeId");
String tag = req.getString("tag");
List<String> tags;
if (connectorId != null && repositoryNo... | void execute(ActivitiRequest req, Status status, Cache cache, Map<String, Object> model) {
String connectorId = req.getString("connectorId");
String repositoryNodeId = req.getString("nodeId");
String tag = req.getString("tag");
List<String> tags;
if (connectorId != null && repositoryNodeId != nu... |
diff --git a/GitHubTest/src/com/gingbear/githubtest/WifiChange.java b/GitHubTest/src/com/gingbear/githubtest/WifiChange.java
index 2d97f3e..5b298e6 100644
--- a/GitHubTest/src/com/gingbear/githubtest/WifiChange.java
+++ b/GitHubTest/src/com/gingbear/githubtest/WifiChange.java
@@ -1,75 +1,75 @@
package com.gingbear.git... | true | true | static public String change(Activity activity){
Intent intent = activity.getIntent();
// String action = intent.getAction();
// BroadcastReceiver がネットワークへの接続を検知して起動されたら
// if(action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)){
ConnectivityManager cm = (ConnectivityManager)activity.getSystemService(Activ... | static public String change(Activity activity){
Intent intent = activity.getIntent();
// String action = intent.getAction();
// BroadcastReceiver がネットワークへの接続を検知して起動されたら
// if(action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)){
ConnectivityManager cm = (ConnectivityManager)activity.getSystemService(Activ... |
diff --git a/hibernate-ogm-core/src/test/java/org/hibernate/ogm/test/associations/collection/unidirectional/CollectionUnidirectionalTest.java b/hibernate-ogm-core/src/test/java/org/hibernate/ogm/test/associations/collection/unidirectional/CollectionUnidirectionalTest.java
index afa3a60eb..eee6448c6 100644
--- a/hiberna... | true | true | public void testUnidirectionalCollection() throws Exception {
final Session session = openSession();
Transaction transaction = session.beginTransaction();
SnowFlake sf = new SnowFlake();
sf.setDescription( "Snowflake 1" );
session.save( sf );
SnowFlake sf2 = new SnowFlake();
sf.setDescription( "Snowflake... | public void testUnidirectionalCollection() throws Exception {
final Session session = openSession();
Transaction transaction = session.beginTransaction();
SnowFlake sf = new SnowFlake();
sf.setDescription( "Snowflake 1" );
session.save( sf );
SnowFlake sf2 = new SnowFlake();
sf2.setDescription( "Snowflak... |
diff --git a/src/main/java/org/dasein/cloud/openstack/nova/os/NovaException.java b/src/main/java/org/dasein/cloud/openstack/nova/os/NovaException.java
index 9db2f7d..aaa4fdc 100644
--- a/src/main/java/org/dasein/cloud/openstack/nova/os/NovaException.java
+++ b/src/main/java/org/dasein/cloud/openstack/nova/os/NovaExcept... | false | true | static public ExceptionItems parseException(int code, String json) {
ExceptionItems items = new ExceptionItems();
items.code = code;
items.type = CloudErrorType.GENERAL;
items.message = "unknown";
items.details = "The cloud provided an error code without explanation"... | static public ExceptionItems parseException(int code, String json) {
ExceptionItems items = new ExceptionItems();
items.code = code;
items.type = CloudErrorType.GENERAL;
items.message = "unknown";
items.details = "The cloud returned an error code with explanation: ";... |
diff --git a/components/patient-update-listeners/src/main/java/org/phenotips/listeners/MeasurementAgeUpdater.java b/components/patient-update-listeners/src/main/java/org/phenotips/listeners/MeasurementAgeUpdater.java
index 801605ae7..1f00b24c1 100644
--- a/components/patient-update-listeners/src/main/java/org/phenotips... | true | true | public void onEvent(Event event, Object source, Object data)
{
XWikiDocument doc = (XWikiDocument) source;
BaseObject patientRecordObj = doc.getXObject(new DocumentReference(
doc.getDocumentReference().getRoot().getName(), Constants.CODE_SPACE, "PatientClass"));
if (patientR... | public void onEvent(Event event, Object source, Object data)
{
XWikiDocument doc = (XWikiDocument) source;
BaseObject patientRecordObj = doc.getXObject(new DocumentReference(
doc.getDocumentReference().getRoot().getName(), Constants.CODE_SPACE, "PatientClass"));
if (patientR... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java
index 2c7892e77..0a0dd3fe4 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/EnvServlet.java
@@ -1,125 +1,125 @@
/*... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
final VelocityEngine engine = new VelocityEngine();
engine.setProperty("runtime.log.logsystem.class",
"org.apache.velocity.runtime.log.NullLogChute");
try {
engine.init();
} catch (Exception... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
final VelocityEngine engine = new VelocityEngine();
engine.setProperty("runtime.log.logsystem.class",
"org.apache.velocity.runtime.log.NullLogChute");
try {
engine.init();
} catch (Exception... |
diff --git a/hw4/server/src/irc/Reactor.java b/hw4/server/src/irc/Reactor.java
index e54aa72..caab6d3 100644
--- a/hw4/server/src/irc/Reactor.java
+++ b/hw4/server/src/irc/Reactor.java
@@ -1,244 +1,244 @@
package irc;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.ClosedCh... | false | true | public void run() {
// Create & start the ThreadPool
ExecutorService executor = Executors.newFixedThreadPool(_poolSize);
Selector selector = null;
ServerSocketChannel ssChannel = null;
try {
selector = Selector.open();
ssChannel = createServerSocket(_port);
} catch (IOException e) {
logger.info("... | public void run() {
// Create & start the ThreadPool
ExecutorService executor = Executors.newFixedThreadPool(_poolSize);
Selector selector = null;
ServerSocketChannel ssChannel = null;
try {
selector = Selector.open();
ssChannel = createServerSocket(_port);
} catch (IOException e) {
logger.info("... |
diff --git a/src/com/github/peter200lx/toolbelt/tool/Paint.java b/src/com/github/peter200lx/toolbelt/tool/Paint.java
index 5e39dcb..3dce7dc 100644
--- a/src/com/github/peter200lx/toolbelt/tool/Paint.java
+++ b/src/com/github/peter200lx/toolbelt/tool/Paint.java
@@ -1,242 +1,246 @@
package com.github.peter200lx.toolbelt... | false | true | public void handleInteract(PlayerInteractEvent event){
Player subject = event.getPlayer();
if(!delayElapsed(subject.getName()))
return;
if(!pPalette.containsKey(subject.getName())) {
pPalette.put(subject.getName(), new HashMap<Integer,MaterialData>());
}
switch(event.getAction()) {
case LEFT_CLICK_B... | public void handleInteract(PlayerInteractEvent event){
Player subject = event.getPlayer();
if(!delayElapsed(subject.getName()))
return;
if(!pPalette.containsKey(subject.getName())) {
pPalette.put(subject.getName(), new HashMap<Integer,MaterialData>());
}
switch(event.getAction()) {
case LEFT_CLICK_B... |
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/music/MusicActivity.java b/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/music/MusicActivity.java
index 11300b4c..2ac977fb 100644
--- a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/music/MusicActivity.java
+++ b/ser... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
key = getIntent().getExtras().getString("key");
SharedPreferences prefs = PreferenceManager
.getDefaultSharedPreferences(this);
MUSIC_GRIDVIEW = prefs.getBoolean("music_layout_grid", false);
if (!MUSIC_GRIDVI... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
key = getIntent().getExtras().getString("key");
SharedPreferences prefs = PreferenceManager
.getDefaultSharedPreferences(this);
MUSIC_GRIDVIEW = prefs.getBoolean("music_layout_grid", false);
if (!MUSIC_GRIDVI... |
diff --git a/Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java b/Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java
index 014a0be6..c0aece01 100644
--- a/Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java
+++ b/Atarashii/src/net/somethingdreadful/MAL/AboutActivity.java
@@ -1,43 +1,45 @@
packag... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
setTitle(R.string.title_activity_about);
ActionBar bar = getSupportActionBar();
bar.setDisplayHomeAsUpEnabled(true);
TextView animaMalCo... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
setTitle(R.string.title_activity_about);
ActionBar bar = getSupportActionBar();
bar.setDisplayHomeAsUpEnabled(true);
TextView animaMalCo... |
diff --git a/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java b/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java
index feca5f40..0f32d33e 100644
--- a/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java
+++ b/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.ja... | true | true | public void testTryCatch() throws Exception {
checkAddsMessage(js(fromString(
"try {" +
" throw 2;" +
"} catch (e) {" +
" var e;" +
"}")),
MessageType.MASKING_SYMBOL,
MessageLevel.ERROR);
checkAddsMessage(js(fromString(
"var e;" +
"try ... | public void testTryCatch() throws Exception {
checkAddsMessage(js(fromString(
"try {" +
" throw 2;" +
"} catch (e) {" +
" var e;" +
"}")),
MessageType.MASKING_SYMBOL,
MessageLevel.ERROR);
checkAddsMessage(js(fromString(
"var e;" +
"try ... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/JsServlet.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/JsServlet.java
index 00564cba..7ac6621c 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/JsServlet.java
+++ b/java/gadgets/src/main/java/org/apache/s... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
// Use the last component as filename; prefix is ignored
String path = req.getPathTranslated();
String[] pathComponents = path.split("/");
String resourceName = pathComponents[pathComponents.length-1];
... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
// Use the last component as filename; prefix is ignored
String uri = req.getRequestURI();
// We only want the file name part. There will always be at least 1 slash
// (the server root), so this is always... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.