Datasets:

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/com/massivecraft/factions/integration/LWCFeatures.java b/src/com/massivecraft/factions/integration/LWCFeatures.java index 837b7094..9cacb807 100644 --- a/src/com/massivecraft/factions/integration/LWCFeatures.java +++ b/src/com/massivecraft/factions/integration/LWCFeatures.java @@ -1,86 +1,86 @@ packag...
true
true
public static void clearOtherChests(FLocation flocation, Faction faction) { Location location = new Location(Bukkit.getWorld(flocation.getWorldName()), flocation.getX() * 16, 5, flocation.getZ() * 16); Chunk chunk = location.getChunk(); BlockState[] blocks = chunk.getTileEntities(); List<Block> chests = new L...
public static void clearOtherChests(FLocation flocation, Faction faction) { Location location = new Location(Bukkit.getWorld(flocation.getWorldName()), flocation.getX() * 16, 5, flocation.getZ() * 16); Chunk chunk = location.getChunk(); BlockState[] blocks = chunk.getTileEntities(); List<Block> chests = new L...
diff --git a/src/com/boh/flatmate/FlatFragment.java b/src/com/boh/flatmate/FlatFragment.java index 49893d9..489dffa 100644 --- a/src/com/boh/flatmate/FlatFragment.java +++ b/src/com/boh/flatmate/FlatFragment.java @@ -1,110 +1,111 @@ package com.boh.flatmate; import com.boh.flatmate.R; import com.boh.flatmate.FlatM...
false
true
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction(); flatList = new FlatListFragment(); //ft.setCustomAnimations(R.anim.slide_up_in, R.anim.slide_out_down); ft.replac...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction(); flatList = new FlatListFragment(); //ft.setCustomAnimations(R.anim.slide_up_in, R.anim.slide_out_down); ft.replac...
diff --git a/test-runner/android/test/ActivityUnitTestCase.java b/test-runner/android/test/ActivityUnitTestCase.java index dfd8fc24f1..6bd19a6223 100644 --- a/test-runner/android/test/ActivityUnitTestCase.java +++ b/test-runner/android/test/ActivityUnitTestCase.java @@ -1,340 +1,340 @@ /* * Copyright (C) 2008 The An...
true
true
protected T startActivity(Intent intent, Bundle savedInstanceState, Object lastNonConfigurationInstance) { assertFalse("Activity already created", mCreated); if (!mAttached) { assertNotNull(mActivityClass); setActivity(null); T newActivity = n...
protected T startActivity(Intent intent, Bundle savedInstanceState, Object lastNonConfigurationInstance) { assertFalse("Activity already created", mCreated); if (!mAttached) { assertNotNull(mActivityClass); setActivity(null); T newActivity = n...
diff --git a/src/main/java/org/ccdd/redcable/RedCable.java b/src/main/java/org/ccdd/redcable/RedCable.java index e3cc955..ed82ec3 100644 --- a/src/main/java/org/ccdd/redcable/RedCable.java +++ b/src/main/java/org/ccdd/redcable/RedCable.java @@ -1,54 +1,55 @@ package org.ccdd.redcable; import java.util.logging.Level...
true
true
public void onEnable() { //copy the config this.getConfig().options().copyDefaults(true); this.saveConfig(); //double check for spout. if (!Bukkit.getPluginManager().isPluginEnabled("Spout")) { Bukkit.getLogger().log(Level.WARNING, "[RedCable] Could not start: Spout not found."); setEnabled(false); ...
public void onEnable() { //copy the config this.getConfig().options().copyDefaults(true); this.saveConfig(); //double check for spout. if (!Bukkit.getPluginManager().isPluginEnabled("Spout")) { Bukkit.getLogger().log(Level.WARNING, "[RedCable] Could not start: Spout not found."); setEnabled(false); ...
diff --git a/test/src/com/rabbitmq/client/test/functional/Reject.java b/test/src/com/rabbitmq/client/test/functional/Reject.java index c3b1b19c6..d35f64c33 100644 --- a/test/src/com/rabbitmq/client/test/functional/Reject.java +++ b/test/src/com/rabbitmq/client/test/functional/Reject.java @@ -1,84 +1,84 @@ // The con...
true
true
public void testReject() throws IOException, InterruptedException { String q = channel.queueDeclare("", false, true, false, null).getQueue(); QueueingConsumer c = new QueueingConsumer(channel); String consumerTag = channel.basicConsume(q, false, c); byte[] m1 = "1".getB...
public void testReject() throws IOException, InterruptedException { String q = channel.queueDeclare("", false, true, false, null).getQueue(); QueueingConsumer c = new QueueingConsumer(channel); String consumerTag = channel.basicConsume(q, false, c); byte[] m1 = "1".getB...
diff --git a/moskito-webui/java/net/anotheria/moskito/webui/MoskitoUIFilter.java b/moskito-webui/java/net/anotheria/moskito/webui/MoskitoUIFilter.java index 37ab7d6b..f37f619b 100644 --- a/moskito-webui/java/net/anotheria/moskito/webui/MoskitoUIFilter.java +++ b/moskito-webui/java/net/anotheria/moskito/webui/MoskitoUIF...
true
true
@Override public void init(FilterConfig config) throws ServletException { super.init(config); log.info("Initing MoSKito WebUI..."); MoskitoAPIInitializer.initialize(); try{ MavenVersion moskitoVersion = VersionUtil.getWebappLibVersion(config.getServletContext(), "moskito-webui"); MavenVersion appVersion...
@Override public void init(FilterConfig config) throws ServletException { super.init(config); log.info("Initializing MoSKito WebUI..."); MoskitoAPIInitializer.initialize(); try{ MavenVersion moskitoVersion = VersionUtil.getWebappLibVersion(config.getServletContext(), "moskito-webui"); MavenVersion appVe...
diff --git a/source/com/mucommander/file/impl/smb/SMBFile.java b/source/com/mucommander/file/impl/smb/SMBFile.java index 8741e7f0..de26f0a3 100644 --- a/source/com/mucommander/file/impl/smb/SMBFile.java +++ b/source/com/mucommander/file/impl/smb/SMBFile.java @@ -1,466 +1,466 @@ package com.mucommander.file.impl.smb; ...
true
true
public AbstractFile[] ls() throws IOException { try { SmbFile smbFiles[] = file.listFiles(); if(smbFiles==null) throw new IOException(); // Count the number of files to exclude: excluded files are those that are not file share/ not browsable ...
public AbstractFile[] ls() throws IOException { try { SmbFile smbFiles[] = file.listFiles(); if(smbFiles==null) throw new IOException(); // Count the number of files to exclude: excluded files are those that are not file share/ not browsable ...
diff --git a/paul/src/main/java/au/edu/uq/cmm/paul/grabber/DatafileMetadata.java b/paul/src/main/java/au/edu/uq/cmm/paul/grabber/DatafileMetadata.java index 1f6ae1d..8f7001d 100644 --- a/paul/src/main/java/au/edu/uq/cmm/paul/grabber/DatafileMetadata.java +++ b/paul/src/main/java/au/edu/uq/cmm/paul/grabber/DatafileMetad...
true
true
public DatafileMetadata( String sourceFilePathname, String facilityFilePathname, String capturedFilePathname, Date captureTimestamp, Date fileWriteTimestamp, String mimeType, long fileSize) { super(); this.sourceFilePathname = sourceFilePathname; this.fac...
public DatafileMetadata( String sourceFilePathname, String facilityFilePathname, String capturedFilePathname, Date fileWriteTimestamp, Date captureTimestamp, String mimeType, long fileSize) { super(); this.sourceFilePathname = sourceFilePathname; this.fac...
diff --git a/jaxrs-doclet/src/main/java/com/hypnoticocelot/jaxrs/doclet/translator/JaxbAwareTranslator.java b/jaxrs-doclet/src/main/java/com/hypnoticocelot/jaxrs/doclet/translator/JaxbAwareTranslator.java index 4eb9876..a0ad8b2 100644 --- a/jaxrs-doclet/src/main/java/com/hypnoticocelot/jaxrs/doclet/translator/JaxbAware...
false
true
public String nameFor(Type type) { if (AnnotationHelper.isPrimitive(type)) { return AnnotationHelper.typeOf(type.qualifiedTypeName()); } if (namedTypes.containsKey(type)) { return namedTypes.get(type); } String name = jaxbNameFor(JAXB_XML_ROOT_ELEMENT...
public String nameFor(Type type) { if (AnnotationHelper.isPrimitive(type)) { return AnnotationHelper.typeOf(type.qualifiedTypeName()); } if (namedTypes.containsKey(type)) { return namedTypes.get(type); } String name = jaxbNameFor(JAXB_XML_ROOT_ELEMENT...
diff --git a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/networkAdmin/UtilitiesPage.java b/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/networkAdmin/UtilitiesPage.java index 7f36b534b..c02f86f7c 100644 --- a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/networkAdmin/UtilitiesPage....
false
true
public String importBatch_action() { FileHandler logFileHandler = null; Logger importLogger = null; if(importBatchDir==null || importBatchDir.equals("")) return null; try { int importFailureCount = 0; int fileFailureCount = 0; List<Long> s...
public String importBatch_action() { FileHandler logFileHandler = null; Logger importLogger = null; if(importBatchDir==null || importBatchDir.equals("")) return null; try { int importFailureCount = 0; int fileFailureCount = 0; List<Long> s...
diff --git a/src/DistGrep/ConnectionHandler.java b/src/DistGrep/ConnectionHandler.java index 88de458..3f94d56 100644 --- a/src/DistGrep/ConnectionHandler.java +++ b/src/DistGrep/ConnectionHandler.java @@ -1,225 +1,228 @@ package DistGrep; import java.io.BufferedReader; import java.io.IOException; import java.io.I...
true
true
public void run() { System.out.println("[" + this.getClass().toString() + "]: Waiting to handle accepted connections: Started"); while(shouldRun) { // Poll the connection queue for an accepted connection. Socket clientSocket = null; InetAddress clientAddress = ...
public void run() { System.out.println("[" + this.getClass().toString() + "]: Waiting to handle accepted connections: Started"); while(shouldRun) { // Poll the connection queue for an accepted connection. Socket clientSocket = null; InetAddress clientAddress = ...
diff --git a/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java b/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java index ea9d7118f..a4b6b63eb 100644 --- a/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java +++ b/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java @@ -1,123 +1,123 @@ /* * JGraLab - T...
true
true
public JValue evaluate(Graph graph, AbstractGraphMarker<AttributedElement> subgraph, JValue[] arguments) throws EvaluateException { switch (checkArguments(arguments)) { case 0: return new JValueImpl(graph.getLastEdge()); case 1: Edge current = graph.getLastEdge(); JValueTypeCollection tc = argumen...
public JValue evaluate(Graph graph, AbstractGraphMarker<AttributedElement> subgraph, JValue[] arguments) throws EvaluateException { switch (checkArguments(arguments)) { case 0: return new JValueImpl(graph.getLastEdge()); case 1: Edge current = graph.getLastEdge(); JValueTypeCollection tc = argumen...
diff --git a/src/org/nutz/mvc/upload/FastUploading.java b/src/org/nutz/mvc/upload/FastUploading.java index 6686d6070..67f95f720 100644 --- a/src/org/nutz/mvc/upload/FastUploading.java +++ b/src/org/nutz/mvc/upload/FastUploading.java @@ -1,195 +1,196 @@ package org.nutz.mvc.upload; import java.io.BufferedOutputStrea...
false
true
public Map<String, Object> parse(HttpServletRequest req, String charset, FilePool tmps) throws UploadException { if (log.isDebugEnabled()) log.debug("FastUpload : " + Mvcs.getRequestPath(req)); /* * 创建进度对象 */ UploadInfo info = Uploads.createInfo(req); if (log.isDebugEnabled()) log.debug("info cr...
public Map<String, Object> parse(HttpServletRequest req, String charset, FilePool tmps) throws UploadException { if (log.isDebugEnabled()) log.debug("FastUpload : " + Mvcs.getRequestPath(req)); /* * 创建进度对象 */ UploadInfo info = Uploads.createInfo(req); if (log.isDebugEnabled()) log.debug("info cr...
diff --git a/src/pt/webdetails/cda/exporter/AbstractExporter.java b/src/pt/webdetails/cda/exporter/AbstractExporter.java index aaf941cb..df978787 100644 --- a/src/pt/webdetails/cda/exporter/AbstractExporter.java +++ b/src/pt/webdetails/cda/exporter/AbstractExporter.java @@ -1,55 +1,55 @@ package pt.webdetails.cda.expo...
true
true
protected String getColType(final Class<?> columnClass) throws ExporterException { if (columnClass.equals(String.class)) { return "String"; } else if (columnClass.equals(Integer.class)) { return "Integer"; } else if (columnClass.equals(Number.class) || columnClass.equals(Lon...
protected String getColType(final Class<?> columnClass) throws ExporterException { if (columnClass.equals(String.class)) { return "String"; } else if (columnClass.equals(Integer.class) || columnClass.equals(Short.class)) { return "Integer"; } else if (columnClass.equals(Numb...
diff --git a/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java b/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java index add3ae6..999d6b6 100644 --- a/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java +++ b/src/main/java/ru/urbanc...
true
true
private TreeMap<Integer, Integer> findLogestSubsequence(Integer[] fullArray, Integer[] subArray) { int[][] lengths = new int[fullArray.length + 1][subArray.length + 1]; int[] fullArrayIndexesOfSameWords = new int[subArray.length + 1]; // row 0 and column 0 are initialized to 0 ...
private TreeMap<Integer, Integer> findLogestSubsequence(Integer[] fullArray, Integer[] subArray) { int[][] lengths = new int[fullArray.length + 1][subArray.length + 1]; int[] fullArrayIndexesOfSameWords = new int[subArray.length + 1]; // row 0 and column 0 are initialized to 0 ...
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/stock/panes/UpdateStockPane.java b/OpERP/src/main/java/devopsdistilled/operp/client/stock/panes/UpdateStockPane.java index ac73bcb5..440b367b 100644 --- a/OpERP/src/main/java/devopsdistilled/operp/client/stock/panes/UpdateStockPane.java +++ b/OpERP/src/main/...
false
true
public UpdateStockPane() { pane = new JPanel(); pane.setLayout(new MigLayout("", "[]25[grow]", "[][][][][]")); JLabel lblItemName = new JLabel("Item Name"); pane.add(lblItemName, "cell 0 0,alignx trailing"); comboItems = new JComboBox<Item>(); comboItems.addItemListener(new ItemListener() { @Override ...
public UpdateStockPane() { pane = new JPanel(); pane.setLayout(new MigLayout("", "[]25[grow]", "[][][][][]")); JLabel lblItemName = new JLabel("Item Name"); pane.add(lblItemName, "cell 0 0,alignx trailing"); comboItems = new JComboBox<Item>(); comboItems.addItemListener(new ItemListener() { @Override ...
diff --git a/src/main/java/org/apache/flume/sink/hbase/SimpleAsyncHbaseEventSerializer.java b/src/main/java/org/apache/flume/sink/hbase/SimpleAsyncHbaseEventSerializer.java index 03676c5..9d955be 100644 --- a/src/main/java/org/apache/flume/sink/hbase/SimpleAsyncHbaseEventSerializer.java +++ b/src/main/java/org/apache/f...
false
true
public List<PutRequest> getActions() { List<PutRequest> actions = new ArrayList<PutRequest>(); if(payloadColumn != null){ byte[] rowKey; String srchost = (hbevent.getHeaders().containsKey("host"))?(hbevent.getHeaders().get("host")):(""); rowPrefix = rowPrefix + srchost + "-"; try { ...
public List<PutRequest> getActions() { List<PutRequest> actions = new ArrayList<PutRequest>(); if(payloadColumn != null){ byte[] rowKey; String srchost = (hbevent.getHeaders().containsKey("host"))?(hbevent.getHeaders().get("host")):(""); String rowPrefixHost = rowPrefix + srchost + "-"; ...
diff --git a/frost-wot/source/frost/util/gui/treetable/MessageTreeTable.java b/frost-wot/source/frost/util/gui/treetable/MessageTreeTable.java index 4814d12c..0a2fb2bd 100644 --- a/frost-wot/source/frost/util/gui/treetable/MessageTreeTable.java +++ b/frost-wot/source/frost/util/gui/treetable/MessageTreeTable.java @@ -1...
false
true
public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, /*hasFocus*/ false, row, col...
public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, /*hasFocus*/ false, row, col...
diff --git a/src/Main/ServerThread.java b/src/Main/ServerThread.java index c0c5ec7..00e344f 100644 --- a/src/Main/ServerThread.java +++ b/src/Main/ServerThread.java @@ -1,401 +1,408 @@ package Main; import java.io.IOException; import java.net.Socket; import java.net.SocketAddress; /** * Provides threads for ...
false
true
public void run() { // TODO Refactor so this can be used for both the SERVER and the DROPOFF // UID is just an iterator from the server side // It has no bearing on anything besides the raw question // "How many have connected to this single runtime?" mylog.out("INFO", "Establishing session with client numbe...
public void run() { // TODO Refactor so this can be used for both the SERVER and the DROPOFF // UID is just an iterator from the server side // It has no bearing on anything besides the raw question // "How many have connected to this single runtime?" mylog.out("INFO", "Establishing session with client numbe...
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/hmpp/transformations/PrepareHMPPAnnotations.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/hmpp/transformations/PrepareHMPPAnnotations.java index e3cc093f7..1156512fc 100644 --- a/eclipse/plugins/net.sf.orcc.backends/sr...
true
true
public Void caseBlockWhile(BlockWhile blockWhile) { super.caseBlockWhile(blockWhile); Attribute attribute = blockWhile.getAttribute("gridify"); ExprVarGetter exprVarGetter = new ExprVarGetter(); if (attribute != null && attribute.hasAttribute("params")) { List<String> varNames = Arrays.asList(attribute ...
public Void caseBlockWhile(BlockWhile blockWhile) { super.caseBlockWhile(blockWhile); Attribute attribute = blockWhile.getAttribute("gridify"); ExprVarGetter exprVarGetter = new ExprVarGetter(); if (attribute != null && attribute.hasAttribute("params")) { List<String> varNames = Arrays.asList(attribute ...
diff --git a/Cluster/PowerMaster/src/NodeJS/Statistics/AsyncStats.java b/Cluster/PowerMaster/src/NodeJS/Statistics/AsyncStats.java index 2a295c4..5cd1655 100644 --- a/Cluster/PowerMaster/src/NodeJS/Statistics/AsyncStats.java +++ b/Cluster/PowerMaster/src/NodeJS/Statistics/AsyncStats.java @@ -1,147 +1,148 @@ /* * To ...
true
true
public void run() { //Database db = new Database("power", "_p55!gv{7MJ]}dIpPk7n1*0-,hq(PD", "127.0.0.1"); Database db = new Database("power", "_p55!gv{7MJ]}dIpPk7n1*0-,hq(PD", "code.dei.estt.ipt.pt", "powercomputing"); try { Thread.sleep(2000); } catch (InterruptedExcep...
public void run() { //Database db = new Database("power", "_p55!gv{7MJ]}dIpPk7n1*0-,hq(PD", "127.0.0.1"); Database db = new Database("power", "_p55!gv{7MJ]}dIpPk7n1*0-,hq(PD", "code.dei.estt.ipt.pt", "powercomputing"); try { Thread.sleep(2000); } catch (InterruptedExcep...
diff --git a/core/src/main/java/org/jclouds/http/commands/callables/xml/ParseSax.java b/core/src/main/java/org/jclouds/http/commands/callables/xml/ParseSax.java index 8e70f69b9..281d4be06 100644 --- a/core/src/main/java/org/jclouds/http/commands/callables/xml/ParseSax.java +++ b/core/src/main/java/org/jclouds/http/comm...
true
true
private void parseAndCloseStream(InputStream xml, ContentHandler handler) throws HttpException { parser.setContentHandler(handler); String response = null; try { if (suckFirst) { response = IOUtils.toString(xml); logger.trace("received content %n%s", response); ...
private void parseAndCloseStream(InputStream xml, ContentHandler handler) throws HttpException { parser.setContentHandler(handler); String response = null; try { if (suckFirst) { response = IOUtils.toString(xml); logger.trace("received content %n%s", response); ...
diff --git a/common/logisticspipes/modules/ModuleQuickSort.java b/common/logisticspipes/modules/ModuleQuickSort.java index 8bc64082..aa3d141a 100644 --- a/common/logisticspipes/modules/ModuleQuickSort.java +++ b/common/logisticspipes/modules/ModuleQuickSort.java @@ -1,130 +1,130 @@ package logisticspipes.modules; i...
false
true
public void tick() { if (--currentTick > 0) return; if(stalled) currentTick = stalledDelay; else currentTick = normalDelay; //Extract Item IInventory targetInventory = _invProvider.getPointedInventory(); if (targetInventory == null) return; if (targetInventory.getSizeInventory() < 27) return; ...
public void tick() { if (--currentTick > 0) return; if(stalled) currentTick = stalledDelay; else currentTick = normalDelay; //Extract Item IInventory targetInventory = _invProvider.getPointedInventory(); if (targetInventory == null) return; if (targetInventory.getSizeInventory() < 27) return; ...
diff --git a/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansDriver.java b/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansDriver.java index 78aa4c09..f3c9d5eb 100644 --- a/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansDriver.java +++ b/core/src/mai...
true
true
public int run(String[] args) throws Exception { addInputOption(); addOutputOption(); addOption(DefaultOptionCreator.distanceMeasureOption().create()); addOption(DefaultOptionCreator.clustersInOption() .withDescription("The input centroids, as Vectors. Must be a SequenceFile of Writable, Clu...
public int run(String[] args) throws Exception { addInputOption(); addOutputOption(); addOption(DefaultOptionCreator.distanceMeasureOption().create()); addOption(DefaultOptionCreator.clustersInOption() .withDescription("The input centroids, as Vectors. Must be a SequenceFile of Writable, Clu...
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java index 0b0fe0d..7364a50 100644 --- a/src/com/android/stk/StkAppService.java +++ b/src/com/android/stk/StkAppService.java @@ -1,1105 +1,1104 @@ /* * Copyright (C) 2007 The Android Open Source Project * Copyright (c) 2009, Co...
true
true
private void handleCmd(CatCmdMessage cmdMsg) { if (cmdMsg == null) { return; } // save local reference for state tracking. mCurrentCmd = cmdMsg; boolean waitForUsersResponse = true; CatLog.d(this, cmdMsg.getCmdType().name()); switch (cmdMsg.getCmd...
private void handleCmd(CatCmdMessage cmdMsg) { if (cmdMsg == null) { return; } // save local reference for state tracking. mCurrentCmd = cmdMsg; boolean waitForUsersResponse = true; CatLog.d(this, cmdMsg.getCmdType().name()); switch (cmdMsg.getCmd...
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java index e7a03e4..6708ac0 100755 --- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1,2247 ...
false
true
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); // If screen is off then we treat the case where the keyguard is open but hidden // the same as if it were open and in front. /...
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); // If screen is off then we treat the case where the keyguard is open but hidden // the same as if it were open and in front. /...
diff --git a/src/org/GreenTeaScript/GreenTeaArray.java b/src/org/GreenTeaScript/GreenTeaArray.java index a89e4d5..ef23419 100644 --- a/src/org/GreenTeaScript/GreenTeaArray.java +++ b/src/org/GreenTeaScript/GreenTeaArray.java @@ -1,60 +1,58 @@ // *************************************************************************...
false
true
@Override public String toString() { /*local*/String s = "["; for(/*local*/int i = 0; i < this.ArrayBody.size(); i++) { /*local*/Object Value = this.ArrayBody.get(i); if(i > 0) { s += ", " + Value; } else { s += Value; } } return s + "]"; }
@Override public String toString() { /*local*/String s = "["; for(/*local*/int i = 0; i < this.ArrayBody.size(); i++) { /*local*/Object Value = this.ArrayBody.get(i); if(i > 0) { s += ", "; } s += LibGreenTea.Stringfy(Value); } return s + "]"; }
diff --git a/src/main/java/net/visualillusionsent/dconomy/addon/bank/dBankLiteBase.java b/src/main/java/net/visualillusionsent/dconomy/addon/bank/dBankLiteBase.java index 3619c36..0f140fd 100755 --- a/src/main/java/net/visualillusionsent/dconomy/addon/bank/dBankLiteBase.java +++ b/src/main/java/net/visualillusionsent/d...
true
true
public dBankLiteBase(dBankLite dbanklite) { $ = this; this.logger = dbanklite.getPluginLogger(); if (dCoBase.getVersion() > dCoVersion) { warning("dBankLite appears to be a newer version. Incompatibility could result."); } testdBankLiteProps(); dbanklite.c...
public dBankLiteBase(dBankLite dbanklite) { $ = this; this.logger = dbanklite.getPluginLogger(); if (dCoBase.getVersion() > dCoVersion) { warning("dConomy appears to be a newer version. Incompatibility could result."); } testdBankLiteProps(); dbanklite.che...
diff --git a/src/de/uni_koblenz/jgralab/greql2/evaluator/fa/EdgeTransition.java b/src/de/uni_koblenz/jgralab/greql2/evaluator/fa/EdgeTransition.java index 893541fb0..d6e801cfd 100644 --- a/src/de/uni_koblenz/jgralab/greql2/evaluator/fa/EdgeTransition.java +++ b/src/de/uni_koblenz/jgralab/greql2/evaluator/fa/EdgeTransit...
false
true
public boolean accepts(Vertex v, Edge e, BooleanGraphMarker subgraph) throws EvaluateException { if ( !super.accepts(v,e,subgraph) ) { return false; } //System.out.println("Checking edge path for Edge: " + e.toString()); // checks if only one edge is allowed an if e is this allowed edge if (allowedEdg...
public boolean accepts(Vertex v, Edge e, BooleanGraphMarker subgraph) throws EvaluateException { if ( !super.accepts(v,e,subgraph) ) { return false; } //System.out.println("Checking edge path for Edge: " + e.toString()); // checks if only one edge is allowed an if e is this allowed edge if (allowedEdg...
diff --git a/modules/foundation/hud/src/classes/org/jdesktop/wonderland/modules/hud/client/WonderlandHUDComponentManager.java b/modules/foundation/hud/src/classes/org/jdesktop/wonderland/modules/hud/client/WonderlandHUDComponentManager.java index 19e38019d..6d3f4bc8f 100644 --- a/modules/foundation/hud/src/classes/org/...
true
true
protected void componentVisible(HUDComponent2D component) { if (logger.isLoggable(Level.INFO)) { logger.info("showing HUD component on HUD: " + component); } HUDComponentState state = (HUDComponentState) hudStateMap.get(component); if (state == null) { retur...
protected void componentVisible(HUDComponent2D component) { if (logger.isLoggable(Level.INFO)) { logger.info("showing HUD component on HUD: " + component); } HUDComponentState state = (HUDComponentState) hudStateMap.get(component); if (state == null) { retur...
diff --git a/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java b/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java index d84e515..5788a40 100644 --- a/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java +++ b/src/main/java/org/dasein/cloud/openstack/nov...
true
true
private @Nullable VirtualMachine toVirtualMachine(@Nullable JSONObject server, @Nonnull Iterable<IpAddress> ipv4, @Nonnull Iterable<IpAddress> ipv6, @Nonnull Iterable<VLAN> networks) throws JSONException, InternalException, CloudException { if( server == null ) { return null; } V...
private @Nullable VirtualMachine toVirtualMachine(@Nullable JSONObject server, @Nonnull Iterable<IpAddress> ipv4, @Nonnull Iterable<IpAddress> ipv6, @Nonnull Iterable<VLAN> networks) throws JSONException, InternalException, CloudException { if( server == null ) { return null; } V...
diff --git a/net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/editors/haskell/text/ScionTokenScanner.java b/net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/editors/haskell/text/ScionTokenScanner.java index 1193c28f..ec34a2a8 100644 --- a/net.sf.eclipsefp.haskell.ui/src/net/sf/ec...
false
true
public void setRange( final IDocument document, final int offset, final int length ) { currentTokenDef = null; // currentToken=null; tokenDefs = null; occurrences.clear(); tokenLocations.clear(); if( file != null ) { String newContents = document.get(); if( !document.equals( doc ...
public void setRange( final IDocument document, final int offset, final int length ) { currentTokenDef = null; // currentToken=null; tokenDefs = null; occurrences.clear(); tokenLocations.clear(); if( file != null ) { String newContents = document.get(); if( !document.equals( doc ...
diff --git a/src/main/java/me/wizzledonker/plugins/telepads/telepadsPlayerListener.java b/src/main/java/me/wizzledonker/plugins/telepads/telepadsPlayerListener.java index 4683108..b685a80 100644 --- a/src/main/java/me/wizzledonker/plugins/telepads/telepadsPlayerListener.java +++ b/src/main/java/me/wizzledonker/plugins/...
true
true
public void whenPlayerMoves(PlayerMoveEvent event) { final Player player = event.getPlayer(); if (onPad.contains(player)) return; if (player.hasPermission("telepads.use")) { Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN); if (!checkPad(block...
public void whenPlayerMoves(PlayerMoveEvent event) { final Player player = event.getPlayer(); if (onPad.contains(player)) return; if (player.hasPermission("telepads.use")) { Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN); if (!checkPad(block...
diff --git a/ide/eclipse/dependencies/wso2-esb-template-plugin/src/main/java/org/wso2/maven/template/ESBTemplatePOMGenMojo.java b/ide/eclipse/dependencies/wso2-esb-template-plugin/src/main/java/org/wso2/maven/template/ESBTemplatePOMGenMojo.java index 7565a590c..dcde7fc58 100644 --- a/ide/eclipse/dependencies/wso2-esb-t...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { //Retrieving all the existing ESB Artifacts for the given Maven project List<ESBArtifact> artifacts = retrieveArtifacts(); //Artifact list List<Artifact> mappedArtifacts=new ArrayList<Artifact>(); //Mapping ESBArtifacts to C-A...
public void execute() throws MojoExecutionException, MojoFailureException { //Retrieving all the existing ESB Artifacts for the given Maven project List<ESBArtifact> artifacts = retrieveArtifacts(); //Artifact list List<Artifact> mappedArtifacts=new ArrayList<Artifact>(); //Mapping ESBArtifacts to C-A...
diff --git a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/AbstractProxyRuntimeSystem.java b/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/AbstractProxyRuntimeSystem.java index 73c6d81fe..f5d8d92f5 100644 --- a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/AbstractProxyRuntimeSystem.java +++ ...
false
true
private IAttributeDefinition<?,?,?> parseAttributeDefinition(String[] attrs, int start, int end) { int pos = start; IAttributeDefinition<?,?,?> attrDef = null; String attrId = attrs[pos++]; String attrType = attrs[pos++]; String attrName = attrs[pos++]; String attrDesc = attrs[pos++]; String attrDefau...
private IAttributeDefinition<?,?,?> parseAttributeDefinition(String[] attrs, int start, int end) { int pos = start; IAttributeDefinition<?,?,?> attrDef = null; String attrId = attrs[pos++]; String attrType = attrs[pos++]; String attrName = attrs[pos++]; String attrDesc = attrs[pos++]; String attrDefau...
diff --git a/ps3mediaserver/net/pms/newgui/FoldTab.java b/ps3mediaserver/net/pms/newgui/FoldTab.java index 4615a678..2a421a6a 100644 --- a/ps3mediaserver/net/pms/newgui/FoldTab.java +++ b/ps3mediaserver/net/pms/newgui/FoldTab.java @@ -1,574 +1,574 @@ /* * PS3 Media Server, for streaming any medias to your PS3. * C...
true
true
public JComponent build() { FormLayout layout = new FormLayout( "left:pref, 50dlu, pref, 150dlu, pref, 25dlu, pref, 0:grow", //$NON-NLS-1$ "p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 15dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 15dlu, fill:default:grow"); //$NON-NLS...
public JComponent build() { FormLayout layout = new FormLayout( "left:pref, 50dlu, pref, 150dlu, pref, 25dlu, pref, 0:grow", //$NON-NLS-1$ "p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 15dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 15dlu, fill:default:grow"); //$NON-NLS...
diff --git a/GPSLogger/src/com/mendhak/gpslogger/loggers/Gpx10FileLogger.java b/GPSLogger/src/com/mendhak/gpslogger/loggers/Gpx10FileLogger.java index 51afe6bd..e86cd33c 100644 --- a/GPSLogger/src/com/mendhak/gpslogger/loggers/Gpx10FileLogger.java +++ b/GPSLogger/src/com/mendhak/gpslogger/loggers/Gpx10FileLogger.java @...
true
true
public void run() { synchronized (Gpx10FileLogger.lock) { if (!gpxFile.exists()) { return; } if (!gpxFile.exists()) { return; } int startPosition = 323; String wpt ...
public void run() { synchronized (Gpx10FileLogger.lock) { if (!gpxFile.exists()) { return; } if (!gpxFile.exists()) { return; } int startPosition = 336; String wpt ...
diff --git a/src/common/basiccomponents/tile/TileEntityBatteryBox.java b/src/common/basiccomponents/tile/TileEntityBatteryBox.java index 16a7c8a..793aeb4 100644 --- a/src/common/basiccomponents/tile/TileEntityBatteryBox.java +++ b/src/common/basiccomponents/tile/TileEntityBatteryBox.java @@ -1,673 +1,673 @@ package ba...
false
true
public void updateEntity() { super.updateEntity(); if (!this.isDisabled()) { /** * Receive Electricity */ if (this.powerProvider != null) { double receivedElectricity = this.powerProvider.useEnergy(50, 50, true) * UniversalElectricity.BC3_RATIO; this.setJoules(this.joules + receivedEle...
public void updateEntity() { super.updateEntity(); if (!this.isDisabled()) { /** * Receive Electricity */ if (this.powerProvider != null) { double receivedElectricity = this.powerProvider.useEnergy(50, 50, true) * UniversalElectricity.BC3_RATIO; this.setJoules(this.joules + receivedEle...
diff --git a/src/com/android/phone/MSimNotificationMgr.java b/src/com/android/phone/MSimNotificationMgr.java index 805b8e0b..4d12433a 100644 --- a/src/com/android/phone/MSimNotificationMgr.java +++ b/src/com/android/phone/MSimNotificationMgr.java @@ -1,261 +1,265 @@ /* * Copyright (C) 2006 The Android Open Source Pr...
false
true
void updateMwi(boolean visible, Phone phone) { if (DBG) log("updateMwi(): " + visible); int subscription = phone.getSubscription(); if (visible) { int resId = android.R.drawable.stat_notify_voicemail; int[] iconId = {android.R.drawable.stat_notify_voicemail, ...
void updateMwi(boolean visible, Phone phone) { if (DBG) log("updateMwi(): " + visible); int subscription = phone.getSubscription(); if (visible) { int resId = android.R.drawable.stat_notify_voicemail; int[] iconId = {android.R.drawable.stat_notify_voicemail_sub1, ...
diff --git a/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java b/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java index 3d39bc6..56a8dd0 100755 --- a/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java +++ b/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java @@ -1,98 +1,99 @@ package com....
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.lockscreen_prefs); PreferenceScreen prefSet = getPreferenceScreen(); /* Rotary lockscreen */ mUseRotaryLockPref = (CheckBoxPreference)prefSet.findPreference(LOCKSCREEN_ROTARY_LOCK); ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.lockscreen_prefs); PreferenceScreen prefSet = getPreferenceScreen(); /* Rotary lockscreen */ mUseRotaryLockPref = (CheckBoxPreference)prefSet.findPreference(LOCKSCREEN_ROTARY_LOCK); ...
diff --git a/modules/quercus/src/com/caucho/quercus/lib/json/JsonDecoder.java b/modules/quercus/src/com/caucho/quercus/lib/json/JsonDecoder.java index ad3a42239..04292009c 100644 --- a/modules/quercus/src/com/caucho/quercus/lib/json/JsonDecoder.java +++ b/modules/quercus/src/com/caucho/quercus/lib/json/JsonDecoder.java...
false
true
private Value jsonDecodeImpl(Env env, boolean isTop) { skipWhitespace(); if (_len <= _offset) return errorReturn(env); char ch = _str.charAt(_offset); switch (ch) { case '"': { // "string" _offset++; return decodeString(env, true); } case 'T': case 't': ...
private Value jsonDecodeImpl(Env env, boolean isTop) { skipWhitespace(); if (_len <= _offset) return errorReturn(env); char ch = _str.charAt(_offset); switch (ch) { case '"': { // "string" _offset++; return decodeString(env, true); } case 'T': case 't': ...
diff --git a/src/org/cchmc/bmi/snpomics/SimpleVariant.java b/src/org/cchmc/bmi/snpomics/SimpleVariant.java index eb4f69a..8cef3c5 100644 --- a/src/org/cchmc/bmi/snpomics/SimpleVariant.java +++ b/src/org/cchmc/bmi/snpomics/SimpleVariant.java @@ -1,34 +1,34 @@ package org.cchmc.bmi.snpomics; /** * <p>A SimpleVarian...
true
true
public SimpleVariant(GenomicSpan pos, String refAllele, String altAllele) { position = pos.clone(); ref = refAllele; alt = altAllele; //Normalize! while (ref.length() > 1 && alt.length() > 1 && ref.charAt(0) == alt.charAt(0)) { ref = ref.substring(1); alt = alt.substring(1); pos.setStart(pos.ge...
public SimpleVariant(GenomicSpan pos, String refAllele, String altAllele) { position = pos.clone(); ref = refAllele; alt = altAllele; //Normalize! while (ref.length() > 1 && alt.length() > 1 && ref.charAt(0) == alt.charAt(0)) { ref = ref.substring(1); alt = alt.substring(1); position.setStart(p...
diff --git a/src/com/rb/sqlitefirst/MainActivity.java b/src/com/rb/sqlitefirst/MainActivity.java index 0b778e8..a03bf0d 100644 --- a/src/com/rb/sqlitefirst/MainActivity.java +++ b/src/com/rb/sqlitefirst/MainActivity.java @@ -1,77 +1,78 @@ package com.rb.sqlitefirst; import java.util.List; import android.app.Aler...
true
true
public void onClick(View view){ @SuppressWarnings("unchecked") ArrayAdapter<Comment> adapter = (ArrayAdapter<Comment>) getListAdapter(); Comment comment = null; switch(view.getId()){ case R.id.button_add: if(commentString.getText() != null){ String strComment = commentString.getText().toString(); ...
public void onClick(View view){ @SuppressWarnings("unchecked") ArrayAdapter<Comment> adapter = (ArrayAdapter<Comment>) getListAdapter(); Comment comment = null; switch(view.getId()){ case R.id.button_add: if(commentString.getText() != null){ String strComment = commentString.getText().toString(); ...
diff --git a/src/core/org/pathvisio/model/CurvedConnectorShape.java b/src/core/org/pathvisio/model/CurvedConnectorShape.java index f0bcae31..0b9391d7 100644 --- a/src/core/org/pathvisio/model/CurvedConnectorShape.java +++ b/src/core/org/pathvisio/model/CurvedConnectorShape.java @@ -1,221 +1,221 @@ // PathVisio, // a ...
false
true
public Shape calculateShape(Segment[] segments) { GeneralPath path = new GeneralPath(); CurvedSegment[] curvedSegments = calculateCurvedSegments(segments); path.moveTo( curvedSegments[0].getMStart().getX(), curvedSegments[0].getMStart().getY() ); Segment first = segments[0]; path.moveTo( ...
public Shape calculateShape(Segment[] segments) { GeneralPath path = new GeneralPath(); CurvedSegment[] curvedSegments = calculateCurvedSegments(segments); path.moveTo( (float)curvedSegments[0].getMStart().getX(), (float)curvedSegments[0].getMStart().getY() ); Segment first = segments[0]; pa...
diff --git a/src/org/jacorb/orb/util/FixIOR.java b/src/org/jacorb/orb/util/FixIOR.java index 77a07b1b..667f452c 100644 --- a/src/org/jacorb/orb/util/FixIOR.java +++ b/src/org/jacorb/orb/util/FixIOR.java @@ -1,143 +1,145 @@ /* * JacORB - a free Java ORB * * Copyright (C) 1997-2002 Gerald Brose. * * ...
false
true
public static void main (String args[]) throws Exception { org.omg.CORBA.ORB orb; String iorString; String host; BufferedReader br; BufferedWriter bw; CDRInputStream is; CDROutputStream os; ParsedIOR pior; IOR ior; TaggedPro...
public static void main (String args[]) throws Exception { org.omg.CORBA.ORB orb; String iorString; String host; BufferedReader br; BufferedWriter bw; CDRInputStream is; CDROutputStream os; ParsedIOR pior; IOR ior; TaggedPro...
diff --git a/samson-core/src/main/java/samson/form/WrapForm.java b/samson-core/src/main/java/samson/form/WrapForm.java index b2eb71c..624845c 100644 --- a/samson-core/src/main/java/samson/form/WrapForm.java +++ b/samson-core/src/main/java/samson/form/WrapForm.java @@ -1,149 +1,149 @@ package samson.form; import jav...
false
true
public Field getField(final String param) { final ElementRef ref = getElementRef(param); return new Field() { @Override public Element getElement() { if (ref != ElementRef.NULL_REF) { return ref.element; } ...
public Field getField(final String param) { final ElementRef ref = getElementRef(param); return new Field() { @Override public Element getElement() { if (ref != null) { return ref.element; } else { ...
diff --git a/core/src/test/java/org/apache/accumulo/core/security/crypto/BlockedIOStreamTest.java b/core/src/test/java/org/apache/accumulo/core/security/crypto/BlockedIOStreamTest.java index 6fb52dd54..b344fc33f 100644 --- a/core/src/test/java/org/apache/accumulo/core/security/crypto/BlockedIOStreamTest.java +++ b/core...
true
true
public void testSpillingOverOutputStream() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); // buffer will be size 12 BlockedOutputStream blockOut = new BlockedOutputStream(baos, 16, 16); Random r = new Random(22); byte[] undersized = new byte[11]; byte[] per...
public void testSpillingOverOutputStream() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); // buffer will be size 12 BlockedOutputStream blockOut = new BlockedOutputStream(baos, 16, 16); Random r = new Random(22); byte[] undersized = new byte[11]; byte[] per...
diff --git a/omod/src/test/java/org/openmrs/module/emr/fragment/controller/visit/VisitDetailsFragmentControllerTest.java b/omod/src/test/java/org/openmrs/module/emr/fragment/controller/visit/VisitDetailsFragmentControllerTest.java index 6dd8d679..7a638960 100644 --- a/omod/src/test/java/org/openmrs/module/emr/fragment/...
true
true
public void shouldReturnEncountersForVisit() throws ParseException { EmrContext emrContext = mock(EmrContext.class); UserContext userContext = mock(UserContext.class); User authenticatedUser = new User(); when(userContext.getAuthenticatedUser()).thenReturn(authenticatedUser); ...
public void shouldReturnEncountersForVisit() throws ParseException { EmrContext emrContext = mock(EmrContext.class); UserContext userContext = mock(UserContext.class); User authenticatedUser = new User(); when(userContext.getAuthenticatedUser()).thenReturn(authenticatedUser); ...
diff --git a/src/main/java/com/cloudera/crunch/io/seq/SeqFileTableReaderFactory.java b/src/main/java/com/cloudera/crunch/io/seq/SeqFileTableReaderFactory.java index 52179a33..06c68063 100644 --- a/src/main/java/com/cloudera/crunch/io/seq/SeqFileTableReaderFactory.java +++ b/src/main/java/com/cloudera/crunch/io/seq/SeqF...
true
true
public Iterator<Pair<K, V>> read(FileSystem fs, final Path path) { try { final SequenceFile.Reader reader = new SequenceFile.Reader(fs, path, conf); return new UnmodifiableIterator<Pair<K, V>>() { boolean nextChecked = false; boolean hasNext = false; @Override public boolean hasNext() { ...
public Iterator<Pair<K, V>> read(FileSystem fs, final Path path) { keyMapFn.setConfigurationForTest(conf); keyMapFn.initialize(); valueMapFn.setConfigurationForTest(conf); valueMapFn.initialize(); try { final SequenceFile.Reader reader = new SequenceFile.Reader(fs, path, conf); return new Unmod...
diff --git a/source/main/org/freecompany/redline/DumpPayload.java b/source/main/org/freecompany/redline/DumpPayload.java index fc022a5..542a032 100644 --- a/source/main/org/freecompany/redline/DumpPayload.java +++ b/source/main/org/freecompany/redline/DumpPayload.java @@ -1,19 +1,19 @@ package org.freecompany.redline;...
true
true
public static void main( String[] args) throws Exception { ReadableByteChannel in = Channels.newChannel( System.in); Format format = new Scanner().run( in); FileChannel out = new FileOutputStream( args[ 0]).getChannel(); long position = 0; long read; while (( read = out.transferFrom( in, position, 1024)...
public static void main( String[] args) throws Exception { ReadableByteChannel in = Channels.newChannel( System.in); Format format = new Scanner().run( new ReadableChannelWrapper( in)); FileChannel out = new FileOutputStream( args[ 0]).getChannel(); long position = 0; long read; while (( read = out.tran...
diff --git a/MPDroid/src/com/namelessdev/mpdroid/WebViewActivity.java b/MPDroid/src/com/namelessdev/mpdroid/WebViewActivity.java index aadadf19..387d3391 100644 --- a/MPDroid/src/com/namelessdev/mpdroid/WebViewActivity.java +++ b/MPDroid/src/com/namelessdev/mpdroid/WebViewActivity.java @@ -1,24 +1,25 @@ package com.na...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.donate); WebView webview = new WebView(this); this.setContentView(webview); final String url = getIntent().getStringExtra("url"); if (url != null) { webview.loadUrl(url); } else { // Defaut on th...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.donate); WebView webview = new WebView(this); webview.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); this.setContentView(webview); final String url = getIntent().getStringExtra("url"); if (url ...
diff --git a/src/net/rptools/maptool/client/functions/TokenPropertyFunctions.java b/src/net/rptools/maptool/client/functions/TokenPropertyFunctions.java index 8cb694b9..4e295ba9 100644 --- a/src/net/rptools/maptool/client/functions/TokenPropertyFunctions.java +++ b/src/net/rptools/maptool/client/functions/TokenProperty...
true
true
public Object childEvaluate(Parser parser, String functionName, List<Object> parameters) throws ParserException { MapToolVariableResolver resolver = (MapToolVariableResolver) parser.getVariableResolver(); // Cached for all those putToken() calls that are needed ZoneRenderer zoneR = MapTool.getFrame().get...
public Object childEvaluate(Parser parser, String functionName, List<Object> parameters) throws ParserException { MapToolVariableResolver resolver = (MapToolVariableResolver) parser.getVariableResolver(); // Cached for all those putToken() calls that are needed ZoneRenderer zoneR = MapTool.getFrame().get...
diff --git a/src/gov/nih/nci/cadsr/cdecurate/tool/DataElementConceptServlet.java b/src/gov/nih/nci/cadsr/cdecurate/tool/DataElementConceptServlet.java index ac8f2f72..9340c592 100644 --- a/src/gov/nih/nci/cadsr/cdecurate/tool/DataElementConceptServlet.java +++ b/src/gov/nih/nci/cadsr/cdecurate/tool/DataElementConceptSe...
false
true
private void doDECUseSelection(String nameAction) { try { HttpSession session = m_classReq.getSession(); String sSelRow = ""; boolean selectedOCQualifiers = false; boolean selectedPropQualifiers = false; // InsACService insAC = new InsACService(m_classReq, m_classRes, this); DEC_Bean m_DEC = ...
private void doDECUseSelection(String nameAction) { try { HttpSession session = m_classReq.getSession(); String sSelRow = ""; boolean selectedOCQualifiers = false; boolean selectedPropQualifiers = false; // InsACService insAC = new InsACService(m_classReq, m_classRes, this); DEC_Bean m_DEC = ...
diff --git a/Sudoku/src/nl/avans/IN13SAh/sudoku/SudokuView.java b/Sudoku/src/nl/avans/IN13SAh/sudoku/SudokuView.java index e6dff73..c2d1fb2 100644 --- a/Sudoku/src/nl/avans/IN13SAh/sudoku/SudokuView.java +++ b/Sudoku/src/nl/avans/IN13SAh/sudoku/SudokuView.java @@ -1,430 +1,434 @@ package nl.avans.IN13SAh.sudoku; im...
true
true
protected void onDraw(Canvas canvas) { Log.d("PuzzleView", "drawing bg"); // draw background Paint background = loadColor(R.color.puzzle_background); if (!listener.ShouldDrawSelection()) { // geen selectie, wel plaatje canvas.drawBitmap(this.background, 0f, 0f, background); } else { canvas.drawRect(0....
protected void onDraw(Canvas canvas) { Log.d("PuzzleView", "drawing bg"); // draw background Paint background = loadColor(R.color.puzzle_background); if (!listener.ShouldDrawSelection()) { // geen selectie, wel plaatje canvas.drawBitmap(this.background, 0f, 0f, background); } else { canvas.drawRect(0....
diff --git a/game/things/ShopKeeper.java b/game/things/ShopKeeper.java index 9d4d339..0aa931b 100644 --- a/game/things/ShopKeeper.java +++ b/game/things/ShopKeeper.java @@ -1,84 +1,84 @@ package game.things; import game.*; import java.util.*; import serialization.*; public class ShopKeeper extends Characte...
true
true
public static void makeSerializer(final SerializerUnion<GameThing> union, final GameWorld world){ union.addIdentifier(new SerializerUnion.Identifier<GameThing>(){ public String type(GameThing g){ return g instanceof ShopKeeper? "shopkeeper" : null; } }); union.addSerializer("shopkeeper", new Serialize...
public static void makeSerializer(final SerializerUnion<GameThing> union, final GameWorld world){ union.addIdentifier(new SerializerUnion.Identifier<GameThing>(){ public String type(GameThing g){ return g instanceof ShopKeeper? "shopkeeper" : null; } }); union.addSerializer("shopkeeper", new Serialize...
diff --git a/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCore.java b/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCore.java index 9cd55565..f699bedf 100644 --- a/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCore.java +++ b/src/powercrystals/minefactoryreloaded/MineFactoryReloadedCor...
true
true
public void init(FMLInitializationEvent evt) { instance = this; conveyorBlock = new BlockConveyor(conveyorBlockId.getInt()); machineBlocks.put(0, new BlockFactoryMachine(machineBlock0Id.getInt(), 0)); machineBlocks.put(1, new BlockFactoryMachine(machineBlock1Id.getInt(), 1)); factoryGlassBlock = new BlockF...
public void init(FMLInitializationEvent evt) { instance = this; conveyorBlock = new BlockConveyor(conveyorBlockId.getInt()); machineBlocks.put(0, new BlockFactoryMachine(machineBlock0Id.getInt(), 0)); machineBlocks.put(1, new BlockFactoryMachine(machineBlock1Id.getInt(), 1)); factoryGlassBlock = new BlockF...
diff --git a/src/main/java/archimulator/model/experiment/CheckpointedExperiment.java b/src/main/java/archimulator/model/experiment/CheckpointedExperiment.java index 950eb1cf..bf192ef5 100644 --- a/src/main/java/archimulator/model/experiment/CheckpointedExperiment.java +++ b/src/main/java/archimulator/model/experiment/C...
true
true
protected void doStart() { SimulationStartingImage simulationStartingImage = new SimulationStartingImage(); this.doSimulation(this.getTitle() + "/checkpointedSimulation/phase0", new RoiBasedRunToCheckpointFunctionalSimulationStrategy(this.getPhaser(), this.pthreadSpawnedIndex, simulationStartingIma...
protected void doStart() { SimulationStartingImage simulationStartingImage = new SimulationStartingImage(); this.doSimulation(this.getTitle() + "/checkpointedSimulation/phase0", new RoiBasedRunToCheckpointFunctionalSimulationStrategy(this.getPhaser(), this.pthreadSpawnedIndex, simulationStartingIma...
diff --git a/src/Model/Skills/Warrior/SkillGrapplingHook.java b/src/Model/Skills/Warrior/SkillGrapplingHook.java index a8c407a..0a967a8 100644 --- a/src/Model/Skills/Warrior/SkillGrapplingHook.java +++ b/src/Model/Skills/Warrior/SkillGrapplingHook.java @@ -1,43 +1,43 @@ package Model.Skills.Warrior; import org.newd...
true
true
public SkillGrapplingHook(){ //String name, int cd, int range, double speed, int aoe, int cost, int damage, StatusEffect SE super("Grappling hook", 11000, 400, 0.4, 3, 0, 150,"The wizard \n" + "Level 1: 15 damage\n" + "Level 2: 25 damage\n" + "Level 3: 35 damage\n" + "Level 4: 45 damage",...
public SkillGrapplingHook(){ //String name, int cd, int range, double speed, int aoe, int cost, int damage, StatusEffect SE super("Grappling hook", 11000, 400, 0.4, 3, 0, 150,"The wizard \n" + "Level 1: 15 damage\n" + "Level 2: 25 damage\n" + "Level 3: 35 damage\n" + "Level 4: 45 damage",...
diff --git a/src/org/openstreetmap/josm/plugins/notes/gui/NotesDialog.java b/src/org/openstreetmap/josm/plugins/notes/gui/NotesDialog.java index 5f4c08d..0b2fc9f 100644 --- a/src/org/openstreetmap/josm/plugins/notes/gui/NotesDialog.java +++ b/src/org/openstreetmap/josm/plugins/notes/gui/NotesDialog.java @@ -1,440 +1,44...
true
true
public NotesDialog(final NotesPlugin plugin) { super(tr("OpenStreetMap Notes"), "note_icon24.png", tr("Opens the OpenStreetMap Notes window and activates the automatic download"), Shortcut.registerShortcut( "view:osmnotes", tr("Toggle: {0}", tr("Open OpenStreetMap Not...
public NotesDialog(final NotesPlugin plugin) { super(tr("OpenStreetMap Notes"), "note_icon24.png", tr("Opens the OpenStreetMap Notes window and activates the automatic download"), Shortcut.registerShortcut( "view:osmnotes", tr("Toggle: {0}", tr("Open OpenStreetMap Not...
diff --git a/src/main/ed/db/DBCollection.java b/src/main/ed/db/DBCollection.java index 2958d6384..b4c79be54 100644 --- a/src/main/ed/db/DBCollection.java +++ b/src/main/ed/db/DBCollection.java @@ -1,773 +1,778 @@ // DBCollection.java package ed.db; import java.util.*; import java.lang.reflect.*; import ed.js...
true
true
protected DBCollection( DBBase base , String name ){ _base = base; _name = name; _fullName = _base.getName() + "." + name; _entries.put( "base" , _base.getName() ); _entries.put( "name" , _name ); _save = new JSFunctionCalls1() { public Object call( ...
protected DBCollection( DBBase base , String name ){ _base = base; _name = name; _fullName = _base.getName() + "." + name; _entries.put( "base" , _base.getName() ); _entries.put( "name" , _name ); _save = new JSFunctionCalls1() { public Object call( ...
diff --git a/src/powercrystals/minefactoryreloaded/core/TileEntityFactoryPowered.java b/src/powercrystals/minefactoryreloaded/core/TileEntityFactoryPowered.java index 3e0fa998..5a27b338 100644 --- a/src/powercrystals/minefactoryreloaded/core/TileEntityFactoryPowered.java +++ b/src/powercrystals/minefactoryreloaded/core...
true
true
public void updateEntity() { super.updateEntity(); if(_addToNetOnNextTick) { MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this)); _addToNetOnNextTick = false; _isAddedToIC2EnergyNet = true; } if(getPowerProvider() != null) { getPowerProvider().update(this); if(_energyStor...
public void updateEntity() { super.updateEntity(); if(_addToNetOnNextTick) { MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this)); _addToNetOnNextTick = false; _isAddedToIC2EnergyNet = true; } if(getPowerProvider() != null) { getPowerProvider().update(this); if(_energyStor...
diff --git a/src/org/red5/server/stream/consumer/ConnectionConsumer.java b/src/org/red5/server/stream/consumer/ConnectionConsumer.java index 69ed04a0..edae760f 100644 --- a/src/org/red5/server/stream/consumer/ConnectionConsumer.java +++ b/src/org/red5/server/stream/consumer/ConnectionConsumer.java @@ -1,188 +1,191 @@ ...
false
true
public void pushMessage(IPipe pipe, IMessage message) { if (message instanceof StatusMessage) { StatusMessage statusMsg = (StatusMessage) message; data.sendStatus(statusMsg.getBody()); } else if (message instanceof RTMPMessage) { RTMPMessage rtmpMsg = (RTMPMessage) message; IRTMPEvent msg = rtmpMsg.g...
public void pushMessage(IPipe pipe, IMessage message) { if (message instanceof StatusMessage) { StatusMessage statusMsg = (StatusMessage) message; data.sendStatus(statusMsg.getBody()); } else if (message instanceof RTMPMessage) { RTMPMessage rtmpMsg = (RTMPMessage) message; IRTMPEvent msg = rtmpMsg.g...
diff --git a/raven/src/main/java/net/kencochrane/raven/RavenFactory.java b/raven/src/main/java/net/kencochrane/raven/RavenFactory.java index 3f825254..f28abf24 100644 --- a/raven/src/main/java/net/kencochrane/raven/RavenFactory.java +++ b/raven/src/main/java/net/kencochrane/raven/RavenFactory.java @@ -1,104 +1,104 @@ ...
false
true
public static Raven ravenInstance(Dsn dsn, String ravenFactoryName) { //Loop through registered factories logger.info("Attempting to find a working Raven factory"); for (RavenFactory ravenFactory : getRegisteredFactories()) { if (ravenFactoryName != null && !ravenFactoryName.equa...
public static Raven ravenInstance(Dsn dsn, String ravenFactoryName) { //Loop through registered factories logger.info("Attempting to find a working Raven factory"); for (RavenFactory ravenFactory : getRegisteredFactories()) { if (ravenFactoryName != null && !ravenFactoryName.equa...
diff --git a/src/d2rq/generate_mapping.java b/src/d2rq/generate_mapping.java index 83f0835..8bb52a1 100644 --- a/src/d2rq/generate_mapping.java +++ b/src/d2rq/generate_mapping.java @@ -1,115 +1,117 @@ package d2rq; import java.io.*; import com.hp.hpl.jena.rdf.model.Model; import jena.cmdline.ArgDecl; import je...
false
true
public static void main(String[] args) { for (int i = 0; i < includedDrivers.length; i++) { Database.registerJDBCDriverIfPresent(includedDrivers[i]); } CommandLine cmd = new CommandLine(); ArgDecl userArg = new ArgDecl(true, "u", "user", "username"); ArgDecl passArg = new ArgDecl(true, "p", "pass", "passw...
public static void main(String[] args) { for (int i = 0; i < includedDrivers.length; i++) { Database.registerJDBCDriverIfPresent(includedDrivers[i]); } CommandLine cmd = new CommandLine(); ArgDecl userArg = new ArgDecl(true, "u", "user", "username"); ArgDecl passArg = new ArgDecl(true, "p", "pass", "passw...
diff --git a/jsf-api/src/main/java/javax/faces/component/UIData.java b/jsf-api/src/main/java/javax/faces/component/UIData.java index 8ffce66ff..dc16efb33 100644 --- a/jsf-api/src/main/java/javax/faces/component/UIData.java +++ b/jsf-api/src/main/java/javax/faces/component/UIData.java @@ -1,1877 +1,1877 @@ /* * DO NO...
true
true
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException { if (null == context || null == clientId || null == callback) { throw new NullPointerException(); } String myId...
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException { if (null == context || null == clientId || null == callback) { throw new NullPointerException(); } String myId...
diff --git a/src/Main.java b/src/Main.java index f874fab..0f401ae 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,30 +1,30 @@ import edu.uci.ics.jung.graph.*; import edu.uci.ics.jung.graph.util.*; class Main{ public static void main(String[] args){ // Graph<V, E> where V is the type of the vertices // /...
true
true
public static void main(String[] args){ // Graph<V, E> where V is the type of the vertices // // and E is the type of the edges Graph<Integer, String> g = new SparseMultigraph<Integer, String>(); // // Add some vertices. From above we defined these to be type Integer. g.addVertex((Integer)1); g.addVertex((...
public static void main(String[] args){ // Graph<V, E> where V is the type of the vertices // // and E is the type of the edges Graph<Integer, String> g = new SparseMultigraph<Integer, String>(); // // Add some vertices. From above we defined these to be type Integer. g.addVertex((Integer)1); g.addVertex((...
diff --git a/src/com/untamedears/xppylons/Pylon.java b/src/com/untamedears/xppylons/Pylon.java index faa3e3f..e5ea7fb 100644 --- a/src/com/untamedears/xppylons/Pylon.java +++ b/src/com/untamedears/xppylons/Pylon.java @@ -1,120 +1,120 @@ package com.untamedears.xppylons; import java.util.ArrayList; import rtree.AAB...
true
true
public double getShareAt(double x, double z) { double totalStrength = 0.0; double residual = 1.0; for (Pylon other : pylon.getCluster().pylonsInfluencing(x, z)) { double strengthAtPoint = other.getInfluence().getStrengthAt(x, z); t...
public double getShareAt(double x, double z) { double totalStrength = 0.0; double residual = 1.0; for (Pylon other : pylon.getCluster().pylonsInfluencing(x, z)) { double strengthAtPoint = other.getInfluence().getStrengthAt(x, z); t...
diff --git a/core/src/visad/trunk/formula/Postfix.java b/core/src/visad/trunk/formula/Postfix.java index 85394fbc7..13c7e7142 100644 --- a/core/src/visad/trunk/formula/Postfix.java +++ b/core/src/visad/trunk/formula/Postfix.java @@ -1,351 +1,351 @@ // // Postfix.java // /* VisAD system for interactive analysis...
false
true
Postfix(String formula, FormulaManager fm) throws FormulaException { // convert expression to postfix notation String[] postfix = null; int[] pfixcode = null; String infix; // convert string to char array char[] charStr = formula.toCharArray(); // remove spaces and check parentheses ...
Postfix(String formula, FormulaManager fm) throws FormulaException { // convert expression to postfix notation String[] postfix = null; int[] pfixcode = null; String infix; // convert string to char array char[] charStr = formula.toCharArray(); // remove spaces and check parentheses ...
diff --git a/ghana-national-web/src/test/java/org/motechproject/ghana/national/functional/mobile/RegisterCWCMobileUploadTest.java b/ghana-national-web/src/test/java/org/motechproject/ghana/national/functional/mobile/RegisterCWCMobileUploadTest.java index 1490cc94..ff60e12b 100644 --- a/ghana-national-web/src/test/java/...
false
true
public void shouldRegisterAPatientForCWCAndMobileMidwifeProgramUsingMobileDeviceAndSearchForItInWeb() { DataGenerator dataGenerator = new DataGenerator(); String staffId = staffGenerator.createStaff(browser, homePage); TestPatient testPatient = TestPatient.with("First Name" + dataGenerator....
public void shouldRegisterAPatientForCWCAndMobileMidwifeProgramUsingMobileDeviceAndSearchForItInWeb() { DataGenerator dataGenerator = new DataGenerator(); String staffId = staffGenerator.createStaff(browser, homePage); TestPatient testPatient = TestPatient.with("First Name" + dataGenerator....
diff --git a/Goobi/src/de/sub/goobi/config/DigitalCollections.java b/Goobi/src/de/sub/goobi/config/DigitalCollections.java index 1df835090..7c9607955 100644 --- a/Goobi/src/de/sub/goobi/config/DigitalCollections.java +++ b/Goobi/src/de/sub/goobi/config/DigitalCollections.java @@ -1,77 +1,77 @@ /* * This file is part...
true
true
public static List<String> possibleDigitalCollectionsForProcess( Prozess process) throws JDOMException, IOException { List<String> result = new ArrayList<String>(); String filename = ConfigMain.getParameter("KonfigurationVerzeichnis") + "digitalCollections.xml"; if (!(new File(filename).exists())) { thr...
public static List<String> possibleDigitalCollectionsForProcess( Prozess process) throws JDOMException, IOException { List<String> result = new ArrayList<String>(); String filename = ConfigMain.getParameter("KonfigurationVerzeichnis") + "goobi_digitalCollections.xml"; if (!(new File(filename).exists())) { ...
diff --git a/src/main/java/cellHTS/classes/RInterface.java b/src/main/java/cellHTS/classes/RInterface.java index 1c6dcea..15845fb 100755 --- a/src/main/java/cellHTS/classes/RInterface.java +++ b/src/main/java/cellHTS/classes/RInterface.java @@ -1,781 +1,781 @@ /* * // * // Copyright (C) 2009 Boutros-Labs(German ca...
true
true
public void run() { String queueFullMsg; queueFullMsg="99_queue is full, waiting for a free slot...hold on! (dont close the window)!"; threadID = getId(); //check if we still have place before running semaphore.p(progressPercentage,queueFullMsg,threadID); ...
public void run() { String queueFullMsg; queueFullMsg="99_queue is full, waiting for a free slot...hold on! (dont close the window)!"; threadID = getId(); //check if we still have place before running semaphore.p(progressPercentage,queueFullMsg,threadID); ...
diff --git a/src/com/project4/FilterPlayGround/AbstractFilterBox.java b/src/com/project4/FilterPlayGround/AbstractFilterBox.java index c9d0d47..819b0d4 100644 --- a/src/com/project4/FilterPlayGround/AbstractFilterBox.java +++ b/src/com/project4/FilterPlayGround/AbstractFilterBox.java @@ -1,154 +1,154 @@ package com.pr...
true
true
public boolean draw() { pushStyle(); background(COLOR); inputConnector.draw(); if (!isTerminal()) { outputConnector.draw(); } removeButton.draw(); popStyle(); if (dragging) { modifyPositionWithAbsoluteValue(m.touchX, m.touchY); } return false; }
public boolean draw() { pushStyle(); background(COLOR); inputConnector.draw(); if (!isTerminal()) { outputConnector.draw(); } removeButton.draw(); popStyle(); if (dragging) { modifyPositionWithAbsoluteValue(m.touchX - spanX, m.touchY - spanY); } return false; }
diff --git a/web/spring/src/test/java/org/appfuse/webapp/action/BaseControllerTestCase.java b/web/spring/src/test/java/org/appfuse/webapp/action/BaseControllerTestCase.java index a31c6d66..92da9c17 100644 --- a/web/spring/src/test/java/org/appfuse/webapp/action/BaseControllerTestCase.java +++ b/web/spring/src/test/java...
true
true
public void objectToRequestParameters(Object o, MockHttpServletRequest request, String prefix) throws Exception { Class clazz = o.getClass(); Field[] fields = getDeclaredFields(clazz); AccessibleObject.setAccessible(fields, true); for (int i = 0; i < fields.length; i++) { ...
public void objectToRequestParameters(Object o, MockHttpServletRequest request, String prefix) throws Exception { Class clazz = o.getClass(); Field[] fields = getDeclaredFields(clazz); AccessibleObject.setAccessible(fields, true); for (int i = 0; i < fields.length; i++) { ...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java index 9e761de0..a2fa3057 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java +++ b/src/checkstyle/com/pu...
true
true
public void visitToken(DetailAST aAST) { switch (aAST.getType()) { case TokenTypes.PARAMETER_DEF : case TokenTypes.VARIABLE_DEF : { final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT); this.mFrames.current().addName(nameAST.getText()); brea...
public void visitToken(DetailAST aAST) { switch (aAST.getType()) { case TokenTypes.PARAMETER_DEF : case TokenTypes.VARIABLE_DEF : { final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT); this.mFrames.current().addName(nameAST.getText()); brea...
diff --git a/src/com/cse454/nel/DocumentProcessor.java b/src/com/cse454/nel/DocumentProcessor.java index ca33079..1dcaa50 100644 --- a/src/com/cse454/nel/DocumentProcessor.java +++ b/src/com/cse454/nel/DocumentProcessor.java @@ -1,39 +1,39 @@ package com.cse454.nel; import java.sql.SQLException; import java.util.L...
true
true
public void run() throws SQLException { WikiConnect wiki = new WikiConnect(); List<Sentence> sentences = wiki.getFile(this.docID); AbstractEntityExtractor extractor = new EntityExtractor(); List<EntityMention> mentions = extractor.extract(sentences); AbstractSearcher searcher = new BasicSearcher(); for (...
public void run() throws SQLException { SentenceConnect docs = new SentenceConnect(); List<Sentence> sentences = docs.getDocument(this.docID); AbstractEntityExtractor extractor = new EntityExtractor(); List<EntityMention> mentions = extractor.extract(sentences); AbstractSearcher searcher = new BasicSearche...
diff --git a/src/resources/directory/src/java/org/wyona/yanel/impl/resources/DirectoryResource.java b/src/resources/directory/src/java/org/wyona/yanel/impl/resources/DirectoryResource.java index 20d76ddff..4ce49bc70 100644 --- a/src/resources/directory/src/java/org/wyona/yanel/impl/resources/DirectoryResource.java +++ ...
true
true
public View getView(String viewId) { View defaultView = new View(); StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>"); // sb.append("<?xml-stylesheet type=\"text/xsl\" // href=\"yanel/resources/directory/xslt/dir2xhtml.xsl\"?>"); Repository contentRepo = null; ...
public View getView(String viewId) { View defaultView = new View(); StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>"); // sb.append("<?xml-stylesheet type=\"text/xsl\" // href=\"yanel/resources/directory/xslt/dir2xhtml.xsl\"?>"); Repository contentRepo = null; ...
diff --git a/jsecurity/ri/business/src/org/jsecurity/ri/authc/module/activedirectory/ActiveDirectoryAuthenticationModule.java b/jsecurity/ri/business/src/org/jsecurity/ri/authc/module/activedirectory/ActiveDirectoryAuthenticationModule.java index de0418a2..668b6e15 100644 --- a/jsecurity/ri/business/src/org/jsecurity/r...
true
true
protected LdapDirectoryInfo performAuthentication(String username, char[] password) { if( searchBase == null ) { throw new IllegalStateException( "A search base must be specified." ); } if( url == null ) { throw new IllegalStateException( "An LDAP URL must be specifi...
protected LdapDirectoryInfo performAuthentication(String username, char[] password) { if( searchBase == null ) { throw new IllegalStateException( "A search base must be specified." ); } if( url == null ) { throw new IllegalStateException( "An LDAP URL must be specifi...
diff --git a/src/com/LRFLEW/PvP/Commands.java b/src/com/LRFLEW/PvP/Commands.java index 4e32caf..e973058 100644 --- a/src/com/LRFLEW/PvP/Commands.java +++ b/src/com/LRFLEW/PvP/Commands.java @@ -1,239 +1,239 @@ package com.LRFLEW.PvP; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command....
true
true
public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) { if (args.length >= 1 && args[0].equalsIgnoreCase("on")) { if (sender instanceof Player && args.length == 1) { Player player = (Player)sender; if (plugin.cooldown.get(player.getName()) != null && plugin.coold...
public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) { if (args.length >= 1 && args[0].equalsIgnoreCase("on")) { if (sender instanceof Player && args.length == 1) { Player player = (Player)sender; if (plugin.cooldown.get(player.getName()) != null && plugin.coold...
diff --git a/src/main/java/org/jfrog/hudson/util/PluginDependencyHelper.java b/src/main/java/org/jfrog/hudson/util/PluginDependencyHelper.java index 362cbf6a..aee552be 100644 --- a/src/main/java/org/jfrog/hudson/util/PluginDependencyHelper.java +++ b/src/main/java/org/jfrog/hudson/util/PluginDependencyHelper.java @@ -1...
false
true
public static FilePath getActualDependencyDirectory(AbstractBuild build, File localDependencyFile) throws IOException, InterruptedException { File localDependencyDir = localDependencyFile.getParentFile(); if (!(Computer.currentComputer() instanceof SlaveComputer)) { return n...
public static FilePath getActualDependencyDirectory(AbstractBuild build, File localDependencyFile) throws IOException, InterruptedException { File localDependencyDir = localDependencyFile.getParentFile(); // if (!(Computer.currentComputer() instanceof SlaveComputer)) { // retu...
diff --git a/src/com/android/wallpaper/nexus/NexusRS.java b/src/com/android/wallpaper/nexus/NexusRS.java index c16ea69..20b7dd3 100644 --- a/src/com/android/wallpaper/nexus/NexusRS.java +++ b/src/com/android/wallpaper/nexus/NexusRS.java @@ -1,180 +1,178 @@ /* * Copyright (C) 2009 The Android Open Source Project * ...
false
true
public Bundle onCommand(String action, int x, int y, int z, Bundle extras, boolean resultRequested) { final int dw = mWidth; final int bw = 960; // XXX: hardcoded width of background texture if (mWidth < mHeight) { // nexus.rs ignores the xOffset when rotated; we sha...
public Bundle onCommand(String action, int x, int y, int z, Bundle extras, boolean resultRequested) { if (mWidth < mHeight) { // nexus.rs ignores the xOffset when rotated; we shall endeavor to do so as well x = (int) (x + mXOffset * mWidth); } // android...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java index 05fb9825b..d888a2646 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListVi...
true
true
public void createPartControl(Composite parent) { themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); themeManager.addPropertyChangeListener(THEME_CHANGE_LISTENER); filteredTree = new TaskListFilteredTree(parent, SWT.MULTI | SWT.VERTICAL | /* SWT.H_SCROLL | */SWT.V_SCROLL | SWT.F...
public void createPartControl(Composite parent) { themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); themeManager.addPropertyChangeListener(THEME_CHANGE_LISTENER); filteredTree = new TaskListFilteredTree(parent, SWT.MULTI | SWT.VERTICAL | /* SWT.H_SCROLL | */SWT.V_SCROLL | SWT.NO_SC...
diff --git a/src/gamesincommon/GamesInCommon.java b/src/gamesincommon/GamesInCommon.java index f887411..68933e0 100644 --- a/src/gamesincommon/GamesInCommon.java +++ b/src/gamesincommon/GamesInCommon.java @@ -1,294 +1,299 @@ package gamesincommon; import java.io.BufferedReader; import java.io.File; import java.io...
false
true
public Collection<SteamGame> filterGames(Collection<SteamGame> gameList, List<FilterType> filterList) { Collection<SteamGame> result = new HashSet<SteamGame>(); // get list of tables ResultSet tableSet = null; Statement s = null; for (SteamGame game : gameList) { // first run a query through the local d...
public Collection<SteamGame> filterGames(Collection<SteamGame> gameList, List<FilterType> filterList) { Collection<SteamGame> result = new HashSet<SteamGame>(); // get list of tables Statement s = null; for (SteamGame game : gameList) { ResultSet tableSet = null; // first run a query through the local ...
diff --git a/src/java/org/infoglue/cms/util/RemoteCacheUpdater.java b/src/java/org/infoglue/cms/util/RemoteCacheUpdater.java index 7f2e94ffd..6ecd6a54f 100755 --- a/src/java/org/infoglue/cms/util/RemoteCacheUpdater.java +++ b/src/java/org/infoglue/cms/util/RemoteCacheUpdater.java @@ -1,326 +1,323 @@ /* ===============...
false
true
public void updateRemoteCaches(NotificationMessage notificationMessage) throws Exception { Hashtable hashedMessage = notificationMessageToHashtable(notificationMessage); List urls = new ArrayList(); if(notificationMessage.getType() == NotificationMessage.PUBLISHING || notificationMessage.getType() == N...
public void updateRemoteCaches(NotificationMessage notificationMessage) throws Exception { Hashtable hashedMessage = notificationMessageToHashtable(notificationMessage); List urls = new ArrayList(); if(notificationMessage.getType() == NotificationMessage.PUBLISHING || notificationMessage.getType() == N...
diff --git a/src/main/java/net/dandielo/citizens/trader/denizen/AbstractDenizenCommand.java b/src/main/java/net/dandielo/citizens/trader/denizen/AbstractDenizenCommand.java index 19708a1..0614404 100644 --- a/src/main/java/net/dandielo/citizens/trader/denizen/AbstractDenizenCommand.java +++ b/src/main/java/net/dandielo...
true
true
public static void initializeDenizenCommands(Denizen denizen) { if ( denizen != null ) { CitizensTrader.info("Hooked into " + denizen.getDescription().getFullName()); CitizensTrader.info("Registering commands... "); new TransactionCommand(); new TraderCreateCommand(); new TraderCommand(); } ...
public static void initializeDenizenCommands(Denizen denizen) { if ( denizen != null ) { CitizensTrader.info("Hooked into " + denizen.getDescription().getFullName()); CitizensTrader.info("Registering commands... "); new TransactionCommand().activate().as("TRANSACTION").withOptions("({SELL}|BUY) [ITEM...
diff --git a/code/app/src/ca/uwaterloo/lkc/WindowConfig.java b/code/app/src/ca/uwaterloo/lkc/WindowConfig.java index ec53faa..7bb3870 100644 --- a/code/app/src/ca/uwaterloo/lkc/WindowConfig.java +++ b/code/app/src/ca/uwaterloo/lkc/WindowConfig.java @@ -1,208 +1,211 @@ package ca.uwaterloo.lkc; import java.io.File; ...
false
true
public WindowConfig(final String gladeFile, final URI configFile) throws FileNotFoundException { final XML xmlWndConfig = Glade.parse(gladeFile, "wndConfig"); w = (Window) xmlWndConfig.getWidget("wndConfig"); w.connect(new Window.DeleteEvent() { @Override public boolean onDeleteEvent(Widget arg0, Event ...
public WindowConfig(final String gladeFile, final URI configFile) throws FileNotFoundException { final XML xmlWndConfig = Glade.parse(gladeFile, "wndConfig"); w = (Window) xmlWndConfig.getWidget("wndConfig"); w.connect(new Window.DeleteEvent() { @Override public boolean onDeleteEvent(Widget arg0, Event ...
diff --git a/src/it/crs4/seal/demux/DemuxOptionParser.java b/src/it/crs4/seal/demux/DemuxOptionParser.java index 11129a5..5665fae 100644 --- a/src/it/crs4/seal/demux/DemuxOptionParser.java +++ b/src/it/crs4/seal/demux/DemuxOptionParser.java @@ -1,123 +1,123 @@ // Copyright (C) 2011 CRS4. // // This file is part of ...
true
true
public void parse(Configuration conf, String[] args) throws IOException { try { CommandLine line = parser.parseOptions(conf, args); // options if (line.hasOption( sampleSheetOpt.getOpt() )) { sampleSheetPath = new Path(line.getOptionValue(sampleSheetOpt.getOpt())); if (sampleSheetPath.getFile...
public void parse(Configuration conf, String[] args) throws IOException { try { CommandLine line = parser.parseOptions(conf, args); // options if (line.hasOption( sampleSheetOpt.getOpt() )) { sampleSheetPath = new Path(line.getOptionValue(sampleSheetOpt.getOpt())); if (sampleSheetPath.getFile...
diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java index 4f545714..b0d9dacc 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAja...
true
true
public static Time getTime(WebInterface webInterface, long time) { if (time == 0) { return new Time(webInterface.getL10n().getString("View.Sone.Text.UnknownDate"), TimeUnit.HOURS.toMillis(12)); } long age = System.currentTimeMillis() - time; String text; long refresh; if (age < 0) { text = webInterfa...
public static Time getTime(WebInterface webInterface, long time) { if (time == 0) { return new Time(webInterface.getL10n().getString("View.Sone.Text.UnknownDate"), TimeUnit.HOURS.toMillis(12)); } long age = System.currentTimeMillis() - time; String text; long refresh; if (age < 0) { text = webInterfa...
diff --git a/drools-jbrms/src/main/java/org/drools/brms/client/ruleeditor/RuleViewer.java b/drools-jbrms/src/main/java/org/drools/brms/client/ruleeditor/RuleViewer.java index ed975d72a..5a4643958 100644 --- a/drools-jbrms/src/main/java/org/drools/brms/client/ruleeditor/RuleViewer.java +++ b/drools-jbrms/src/main/java/o...
true
true
private void doWidgets() { this.layout.clear(); metaWidget = new MetaDataWidget( this.asset.metaData, readOnly, this.asset.uuid, new Command() { public void execute...
private void doWidgets() { this.layout.clear(); metaWidget = new MetaDataWidget( this.asset.metaData, readOnly, this.asset.uuid, new Command() { public void execute...
diff --git a/webapp/src/main/java/com/seo/webapp/BaseController.java b/webapp/src/main/java/com/seo/webapp/BaseController.java index d5538e6..6421f48 100644 --- a/webapp/src/main/java/com/seo/webapp/BaseController.java +++ b/webapp/src/main/java/com/seo/webapp/BaseController.java @@ -1,80 +1,81 @@ package com.seo.weba...
true
true
public String result(@ModelAttribute("SpringWeb")Query q, ModelMap model) { //model.addAttribute("message", "Results page."); model.addAttribute("query", q.getQuery()); model.addAttribute("siteToCompare", q.getSiteToCompare()); try { model.addAttribute("json", q.HTTP_Request()); } catch (Exception e) { ...
public String result(@ModelAttribute("SpringWeb")Query q, ModelMap model) { //model.addAttribute("message", "Results page."); model.addAttribute("query", q.getQuery()); model.addAttribute("siteToCompare", q.getSiteToCompare()); try { model.addAttribute("json", q.HTTP_Request()); } catch (Exception e) { ...
diff --git a/src/main/java/org/spout/vanilla/material/block/Solid.java b/src/main/java/org/spout/vanilla/material/block/Solid.java index 052b3412..4b305864 100644 --- a/src/main/java/org/spout/vanilla/material/block/Solid.java +++ b/src/main/java/org/spout/vanilla/material/block/Solid.java @@ -1,80 +1,80 @@ /* * Thi...
true
true
public void onUpdate(World world, int x, int y, int z) { if (moving) { Block material = (Block) world.getBlockMaterial(x, y - 1, z); if (material == VanillaMaterials.AIR || material.isLiquid()) { if (world.setBlockId(x, y, z, (short) 0, world)) { world.createAndSpawnEntity(new Point(world, x, y, z), n...
public void onUpdate(World world, int x, int y, int z) { if (moving) { Block material = (Block) world.getBlockMaterial(x, y - 1, z); if (material == VanillaMaterials.AIR || material.isLiquid()) { if (world.setBlockId(x, y, z, (short) 0, world)) { // world.createAndSpawnEntity(new Point(world, x, y, z),...
diff --git a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java b/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java index 232066c..50c2ef9 100644 --- a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java +++ b/src/main/java/org/dasein/cloud/cloudstack/compute/...
false
true
private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException { if( node == null ) { return null; } HashMap<String,String> properties = new HashMap<String,String>(); VirtualMachine server = new VirtualMachine(); No...
private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException { if( node == null ) { return null; } HashMap<String,String> properties = new HashMap<String,String>(); VirtualMachine server = new VirtualMachine(); No...
diff --git a/servlet/src/main/java/com/redshape/servlet/core/format/JSONFormatProcessor.java b/servlet/src/main/java/com/redshape/servlet/core/format/JSONFormatProcessor.java index a2dc9781..ae4b8e19 100644 --- a/servlet/src/main/java/com/redshape/servlet/core/format/JSONFormatProcessor.java +++ b/servlet/src/main/java...
true
true
public SupportType check(IHttpRequest request) throws ProcessingException { try { if ( !request.isPost() ) { return SupportType.NO; } if ( request.getHeader(MARKER_HEADER) != null ) { return SupportType.SHOULD; } ...
public SupportType check(IHttpRequest request) throws ProcessingException { try { if ( !request.isPost() ) { return SupportType.NO; } String requestedWith = request.getHeader("X-Requested-With"); if ( requestedWith != null && requestedWith.eq...
diff --git a/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java b/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java index a50e2bc2..e13fcdc4 100644 --- a/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java +++ b/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java @@ -1,157 +1,157 @@ ...
false
true
public int doEndInputTag() throws JspException { // Find our mandatory enclosing select tag InputSelectTag selectTag = getParentTag(InputSelectTag.class); if (selectTag == null) { throw new StripesJspException ("Option tags must always be contained inside a se...
public int doEndInputTag() throws JspException { // Find our mandatory enclosing select tag InputSelectTag selectTag = getParentTag(InputSelectTag.class); if (selectTag == null) { throw new StripesJspException ("Option tags must always be contained inside a se...
diff --git a/src/java/org/wings/plaf/css/BorderLayoutCG.java b/src/java/org/wings/plaf/css/BorderLayoutCG.java index 8f86e7ee..1ea8494f 100644 --- a/src/java/org/wings/plaf/css/BorderLayoutCG.java +++ b/src/java/org/wings/plaf/css/BorderLayoutCG.java @@ -1,120 +1,121 @@ /* * $Id$ * Copyright 2000,2005 wingS develo...
false
true
public void write(Device d, SLayoutManager l) throws IOException { final SBorderLayout layout = (SBorderLayout) l; final SComponent north = (SComponent) layout.getComponents().get(SBorderLayout.NORTH); final SComponent east = (SComponent) layout.getComponents().get(SBorderLayout....
public void write(Device d, SLayoutManager l) throws IOException { final SBorderLayout layout = (SBorderLayout) l; final SComponent north = (SComponent) layout.getComponents().get(SBorderLayout.NORTH); final SComponent east = (SComponent) layout.getComponents().get(SBorderLayout....
diff --git a/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java b/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java index e243909c5..eef83d322 100644 --- a/src/contr...
false
true
private String getNodeAsXML(String path) { //private String getNodeAsXML(com.hp.hpl.jena.rdf.model.Resource resource) { //log.error("DEBUG: Path: " + path); Sitetree sitetree = getRealm().getRepoNavigation(); Node node = sitetree.getNode(getRealm(), path); StringBuffer sb = new S...
private String getNodeAsXML(String path) { //private String getNodeAsXML(com.hp.hpl.jena.rdf.model.Resource resource) { //log.error("DEBUG: Path: " + path); Sitetree sitetree = getRealm().getRepoNavigation(); Node node = sitetree.getNode(getRealm(), path); StringBuffer sb = new S...
diff --git a/src/com/anjlab/ping/pages/Feedback.java b/src/com/anjlab/ping/pages/Feedback.java index dbbe49b..17451a4 100644 --- a/src/com/anjlab/ping/pages/Feedback.java +++ b/src/com/anjlab/ping/pages/Feedback.java @@ -1,72 +1,74 @@ package com.anjlab.ping.pages; import org.apache.tapestry5.annotations.AfterRende...
true
true
public void onActivate() { String subject = request.getParameter("subject"); this.message = Utils.isNullOrEmpty(subject) ? null : subject + "\n\n"; if (!Utils.isNullOrEmpty(subject)) { this.note = "Please, provide more information so that we can help you"; } ...
public void onActivate() { String subject = request.getParameter("subject"); this.message = Utils.isNullOrEmpty(subject) ? null : subject + "\n\n"; if (!Utils.isNullOrEmpty(subject)) { this.note = "Please, provide more information so that we can help you"; } ...
diff --git a/aura-impl/src/test/java/org/auraframework/impl/context/AuraContextImplTest.java b/aura-impl/src/test/java/org/auraframework/impl/context/AuraContextImplTest.java index 95e6f87932..87d0ba3ef2 100644 --- a/aura-impl/src/test/java/org/auraframework/impl/context/AuraContextImplTest.java +++ b/aura-impl/src/tes...
false
true
public void testAttachingEvents() throws Exception { // Verify that nulls are filtered AuraContext lc = Aura.getContextService().getCurrentContext(); try { lc.addClientApplicationEvent(null); assertEquals("Should not be accepting null objects as events.", 0, lc.getCli...
public void testAttachingEvents() throws Exception { // Verify that nulls are filtered AuraContext lc = Aura.getContextService().getCurrentContext(); try { lc.addClientApplicationEvent(null); assertEquals("Should not be accepting null objects as events.", 0, lc.getCli...
diff --git a/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java b/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java index 0de3b7c32..06b4bdc3a 100644 --- a/policy/src/main/java/brooklyn/policy/autoscaling/AutoScalerPolicy.java +++ b/policy/src/main/java/brooklyn/policy/autoscali...
true
true
private void scheduleResize() { // TODO perhaps make concurrent calls, rather than waiting for first resize to entirely // finish? On ec2 for example, this can cause us to grow very slowly if first request is for // just one new VM to be provisioned. // Alex comments: yes, ...
private void scheduleResize() { // TODO perhaps make concurrent calls, rather than waiting for first resize to entirely // finish? On ec2 for example, this can cause us to grow very slowly if first request is for // just one new VM to be provisioned. // Alex comments: yes, ...
diff --git a/extensions/robospice-ormlite-content-provider-parent/robospice-ormlite-content-provider/src/main/java/com/octo/android/robospice/persistence/ormlite/RoboSpiceContentProvider.java b/extensions/robospice-ormlite-content-provider-parent/robospice-ormlite-content-provider/src/main/java/com/octo/android/robospi...
true
true
public boolean onCreate() { MatcherController controller = new MatcherController(); for (Class<?> clazz : getExposedClasses()) { try { if (!clazz.isAnnotationPresent(Contract.class)) { throw new Exception("Class " + clazz + " is not annotated with the ...
public boolean onCreate() { MatcherController controller = new MatcherController(); for (Class<?> clazz : getExposedClasses()) { try { if (!clazz.isAnnotationPresent(Contract.class)) { throw new Exception("Class " + clazz + " is not annotated with the ...
diff --git a/src/main/java/org/codehaus/larex/io/CachedByteBuffers.java b/src/main/java/org/codehaus/larex/io/CachedByteBuffers.java index 61ad3fb..436d052 100644 --- a/src/main/java/org/codehaus/larex/io/CachedByteBuffers.java +++ b/src/main/java/org/codehaus/larex/io/CachedByteBuffers.java @@ -1,89 +1,91 @@ /* * C...
true
true
public ByteBuffer acquire(int size, boolean direct) { int bucket = size / factor; ConcurrentMap<Integer, Queue<ByteBuffer>> buffers = direct ? directBuffers : heapBuffers; // Avoid to create a new queue every time, just to be discarded immediately Queue<ByteBuffer> byteBuffers =...
public ByteBuffer acquire(int size, boolean direct) { int bucket = size / factor; if (size % factor > 0) ++bucket; ConcurrentMap<Integer, Queue<ByteBuffer>> buffers = direct ? directBuffers : heapBuffers; // Avoid to create a new queue every time, just to be discarde...