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/any23-core/src/main/java/org/deri/any23/extractor/rdf/TurtleExtractor.java b/any23-core/src/main/java/org/deri/any23/extractor/rdf/TurtleExtractor.java index aa547cc0..284793f6 100644 --- a/any23-core/src/main/java/org/deri/any23/extractor/rdf/TurtleExtractor.java +++ b/any23-core/src/main/java/org/deri/an...
false
true
public void run(InputStream in, URI documentURI, ExtractionResult out) throws IOException, ExtractionException { try { TurtleParser parser = new TurtleParser(); parser.setDatatypeHandling( RDFParser.DatatypeHandling.VERIFY ); parser.setStopAtFirstError(stopAtFirstErro...
public void run(InputStream in, URI documentURI, final ExtractionResult out) throws IOException, ExtractionException { try { TurtleParser parser = new TurtleParser(); parser.setDatatypeHandling( RDFParser.DatatypeHandling.VERIFY ); parser.setStopAtFirstError(stopAtFir...
diff --git a/Sendgrid.java b/Sendgrid.java index 7cec0be..f307624 100644 --- a/Sendgrid.java +++ b/Sendgrid.java @@ -1,674 +1,674 @@ package googleSendgridJava; import java.net.HttpURLConnection; import java.util.*; import java.io.IOException; import java.util.Iterator; import java.net.MalformedURLException; i...
false
true
public void send() throws JSONException { Map<String,String> data = new HashMap<String, String>(); data = this._prepMessageData(); StringBuffer requestParams = new StringBuffer(); Iterator<String> paramIterator = data.keySet().iterator(); while (paramIterator.hasNext()) { ...
public void send() throws JSONException { Map<String,String> data = new HashMap<String, String>(); data = this._prepMessageData(); StringBuffer requestParams = new StringBuffer(); Iterator<String> paramIterator = data.keySet().iterator(); while (paramIterator.hasNext()) { ...
diff --git a/src/TreeWalker.java b/src/TreeWalker.java index 8228c09..3b8886f 100644 --- a/src/TreeWalker.java +++ b/src/TreeWalker.java @@ -1,451 +1,451 @@ import org.antlr.runtime.ANTLRStringStream; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.RecognitionException; import org.antlr.runtime...
true
true
public void walk(CommonTree t, BufferedWriter out) { try{ if ( t != null ) { // every unary operator needs to be preceded by a open parenthesis and ended with a closed parenthesis switch(t.getType()) { case TanGParser.ADDSUB: //if the operation is binary, read the two children and output...
public void walk(CommonTree t, BufferedWriter out) { try{ if ( t != null ) { // every unary operator needs to be preceded by a open parenthesis and ended with a closed parenthesis switch(t.getType()) { case TanGParser.ADDSUB: //if the operation is binary, read the two children and output...
diff --git a/src/simpleserver/stream/StreamTunnel.java b/src/simpleserver/stream/StreamTunnel.java index ee9a9ca..a11118b 100644 --- a/src/simpleserver/stream/StreamTunnel.java +++ b/src/simpleserver/stream/StreamTunnel.java @@ -1,1527 +1,1525 @@ /* * Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS) * ...
false
true
private void handlePacket() throws IOException { Byte packetId = in.readByte(); // System.out.println((isServerTunnel ? "server " : "client ") + // String.format("%02x", packetId)); int x; byte y; int z; byte dimension; Coordinate coordinate; switch (packetId) { case 0x00: //...
private void handlePacket() throws IOException { Byte packetId = in.readByte(); // System.out.println((isServerTunnel ? "server " : "client ") + // String.format("%02x", packetId)); int x; byte y; int z; byte dimension; Coordinate coordinate; switch (packetId) { case 0x00: //...
diff --git a/src/ojc/ahni/util/ParameterTuner.java b/src/ojc/ahni/util/ParameterTuner.java index c963ddc7..7e9b8f9a 100644 --- a/src/ojc/ahni/util/ParameterTuner.java +++ b/src/ojc/ahni/util/ParameterTuner.java @@ -1,215 +1,215 @@ package ojc.ahni.util; import java.lang.management.ManagementFactory; import java.ut...
true
true
public static void main(String[] args) { if (args.length == 0) { usage(); System.exit(-1); } try { Properties props = new Properties(args[0]); String[] propsToTune = props.getProperty("parametertuner.totune").replaceAll("\\s", "").split(","); int propCount = propsToTune.length; double[] curre...
public static void main(String[] args) { if (args.length == 0) { usage(); System.exit(-1); } try { Properties props = new Properties(args[0]); String[] propsToTune = props.getProperty("parametertuner.totune").replaceAll("\\s", "").split(","); int propCount = propsToTune.length; double[] curre...
diff --git a/src/org/fao/geonet/kernel/schema/SchemaLoader.java b/src/org/fao/geonet/kernel/schema/SchemaLoader.java index 67754f1148..b5ef3bdf25 100644 --- a/src/org/fao/geonet/kernel/schema/SchemaLoader.java +++ b/src/org/fao/geonet/kernel/schema/SchemaLoader.java @@ -1,1108 +1,1118 @@ //============================...
false
true
private void handleRefElement(Integer elementNr,String schemaId,String baseName,boolean choiceType,ElementEntry ee,MetadataType mdt,MetadataSchema mds) { String type = (String) hmElements.get(ee.ref); boolean isAbstract = hmAbsElems.containsKey(ee.ref); // If we have user specified substitutions then use them ...
private void handleRefElement(Integer elementNr,String schemaId,String baseName,boolean choiceType,ElementEntry ee,MetadataType mdt,MetadataSchema mds) { String type = (String) hmElements.get(ee.ref); boolean isAbstract = hmAbsElems.containsKey(ee.ref); // If we have user specified substitutions then use them ...
diff --git a/src/ibis/ipl/impl/Ibis.java b/src/ibis/ipl/impl/Ibis.java index 14e0c2d5..33bccac8 100644 --- a/src/ibis/ipl/impl/Ibis.java +++ b/src/ibis/ipl/impl/Ibis.java @@ -1,550 +1,550 @@ /* $Id$ */ package ibis.ipl.impl; import ibis.io.IbisIOException; import ibis.ipl.IbisCapabilities; import ibis.ipl.Ibis...
true
true
protected Ibis(RegistryEventHandler registryHandler, IbisCapabilities capabilities, PortType[] portTypes, Properties userProperties) { this.capabilities = capabilities; this.portTypes = portTypes; this.properties = new TypedProperties(); // bottom up add pr...
protected Ibis(RegistryEventHandler registryHandler, IbisCapabilities capabilities, PortType[] portTypes, Properties userProperties) { this.capabilities = capabilities; this.portTypes = portTypes; this.properties = new TypedProperties(); // bottom up add pr...
diff --git a/packages/SystemUI/src/com/android/systemui/SearchPanelView.java b/packages/SystemUI/src/com/android/systemui/SearchPanelView.java index df8175e6..6c9a616d 100644 --- a/packages/SystemUI/src/com/android/systemui/SearchPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/SearchPanelView.java @@ -1...
true
true
private void setDrawables() { mLongPress = false; mSearchPanelLock = false; String target3 = Settings.System.getString(mContext.getContentResolver(), Settings.System.SYSTEMUI_NAVRING[0]); if (target3 == null || target3.equals("")) { Settings.System.putString(mContext.getC...
private void setDrawables() { mLongPress = false; mSearchPanelLock = false; String target3 = Settings.System.getString(mContext.getContentResolver(), Settings.System.SYSTEMUI_NAVRING[0]); if (target3 == null || target3.equals("")) { Settings.System.putString(mContext.getC...
diff --git a/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/project/export/RegistryArtifactHandler.java b/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/project...
false
true
public List<IResource> exportArtifact(IProject project) throws Exception { if (project.hasNature(GENERAL_PROJECT_NATURE)) { NullProgressMonitor nullProgressMonitor = new NullProgressMonitor(); project.build(IncrementalProjectBuilder.FULL_BUILD, nullProgressMonitor); IFile RegistryResourceFile = project....
public List<IResource> exportArtifact(IProject project) throws Exception { if (project.hasNature(GENERAL_PROJECT_NATURE)) { NullProgressMonitor nullProgressMonitor = new NullProgressMonitor(); project.build(IncrementalProjectBuilder.FULL_BUILD, nullProgressMonitor); IFile RegistryResourceFile = project....
diff --git a/src/com/mojang/mojam/entity/building/CatacombTreasure.java b/src/com/mojang/mojam/entity/building/CatacombTreasure.java index b38d15c2..0ab1d1c4 100644 --- a/src/com/mojang/mojam/entity/building/CatacombTreasure.java +++ b/src/com/mojang/mojam/entity/building/CatacombTreasure.java @@ -1,43 +1,47 @@ packag...
true
true
public CatacombTreasure(double x, double y) { //always Neutral super(x, y, Team.Neutral); }
public CatacombTreasure(double x, double y) { //always Neutral super(x, y, Team.Neutral); setStartHealth(20); freezeTime=20; isImmortal = true; yOffs=-8; }
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java index d511d5a98..ae2ceaf0e 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInfo...
true
true
public BrowserInformationControl(Shell parent, int shellStyle, int style, String statusFieldText) { fStatusFieldText= statusFieldText; fShell= new Shell(parent, SWT.NO_FOCUS | SWT.ON_TOP | shellStyle); Display display= fShell.getDisplay(); fShell.setBackground(display.getSystemColor(SWT.COLOR_BLACK)); fTe...
public BrowserInformationControl(Shell parent, int shellStyle, int style, String statusFieldText) { fStatusFieldText= statusFieldText; fShell= new Shell(parent, SWT.NO_FOCUS | SWT.ON_TOP | shellStyle); Display display= fShell.getDisplay(); fShell.setBackground(display.getSystemColor(SWT.COLOR_BLACK)); Co...
diff --git a/com.ibm.wala.core/src/com/ibm/wala/eclipse/util/EclipseProjectPath.java b/com.ibm.wala.core/src/com/ibm/wala/eclipse/util/EclipseProjectPath.java index f4756762d..a33e9acd6 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/eclipse/util/EclipseProjectPath.java +++ b/com.ibm.wala.core/src/com/ibm/wala/eclipse/...
true
true
private void resolveClasspathEntry(IClasspathEntry entry, Loader loader) throws JavaModelException, IOException { IClasspathEntry e = JavaCore.getResolvedClasspathEntry(entry); if (alreadyResolved.contains(e)) { return; } else { alreadyResolved.add(e); } if (e.getEntryKind() == IClass...
private void resolveClasspathEntry(IClasspathEntry entry, Loader loader) throws JavaModelException, IOException { IClasspathEntry e = JavaCore.getResolvedClasspathEntry(entry); if (alreadyResolved.contains(e)) { return; } else { alreadyResolved.add(e); } if (e.getEntryKind() == IClass...
diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/DiscoveredServerView.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/DiscoveredServerView.java index fdb4c53c..8516d1db 100644 --- a/src/com.gluster.storage.management.gui/src/com/...
true
true
private void createServerSummarySection() { Composite section = guiHelper.createSection(form, toolkit, "Summary", null, 2, false); toolkit.createLabel(section, "Number of CPUs: ", SWT.NONE); toolkit.createLabel(section, "" + server.getNumOfCPUs(), SWT.NONE); toolkit.createLabel(section, "Total Memory (GB): "...
private void createServerSummarySection() { Composite section = guiHelper.createSection(form, toolkit, "Summary", null, 2, false); toolkit.createLabel(section, "Number of CPUs: ", SWT.NONE); toolkit.createLabel(section, "" + server.getNumOfCPUs(), SWT.NONE); toolkit.createLabel(section, "Total Memory (GB): "...
diff --git a/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java b/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java index dec310beb..bb7960b19 100644 --- a/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java +++ b/src/main/java/org/apache/...
true
true
private Integer getPivotRow(SimplexTableau tableau, final int col) { // create a list of all the rows that tie for the lowest score in the minimum ratio test List<Integer> minRatioPositions = new ArrayList<Integer>(); double minRatio = Double.MAX_VALUE; for (int i = tableau.getNumObj...
private Integer getPivotRow(SimplexTableau tableau, final int col) { // create a list of all the rows that tie for the lowest score in the minimum ratio test List<Integer> minRatioPositions = new ArrayList<Integer>(); double minRatio = Double.MAX_VALUE; for (int i = tableau.getNumObj...
diff --git a/src/view/GamePanel.java b/src/view/GamePanel.java index f6ef81e..2c12ddc 100644 --- a/src/view/GamePanel.java +++ b/src/view/GamePanel.java @@ -1,297 +1,297 @@ package view; import java.awt.Color; import java.awt.Cursor; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2...
false
true
public void render(Graphics g) { Graphics2D g2d = (Graphics2D)g; //Turn on anti alignment //Note: setting the hints to KEY_ANTIALIASING won't render the rotated images as such! g2d.setRenderingHint( RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); //Draws all the sta...
public void render(Graphics g) { Graphics2D g2d = (Graphics2D)g; //Turn on anti alignment //Note: setting the hints to KEY_ANTIALIASING won't render the rotated images as such! g2d.setRenderingHint( RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); //Draws all the sta...
diff --git a/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java b/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java index f472d803..97247644 100644 --- a/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java +++ b/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactor...
true
true
protected OMElement createElement( QName qname, OMContainer parent, OMFactory factory, Object objecttype) { OMElement element = null; OMNamespace namespace = this.createOMNamespace( qname.getNamespaceURI(), qname.getPrefix()); if (FEED.equals(q...
protected OMElement createElement( QName qname, OMContainer parent, OMFactory factory, Object objecttype) { OMElement element = null; OMNamespace namespace = this.createOMNamespace( qname.getNamespaceURI(), qname.getPrefix()); if (FEED.equals(q...
diff --git a/src/com/tortel/syslog/MainActivity.java b/src/com/tortel/syslog/MainActivity.java index c4762bb..54012fd 100644 --- a/src/com/tortel/syslog/MainActivity.java +++ b/src/com/tortel/syslog/MainActivity.java @@ -1,610 +1,616 @@ /* SysLog - A simple logging tool * Copyright (C) 2013 Scott Warner <Tortel1210...
true
true
protected Result doInBackground(RunCommand... params) { RunCommand command = params[0]; Result result = new Result(false); result.setRoot(root); result.setCommand(command); try{ if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { //Commands to execute ...
protected Result doInBackground(RunCommand... params) { RunCommand command = params[0]; Result result = new Result(false); result.setRoot(root); result.setCommand(command); try{ if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { //Commands to execute ...
diff --git a/src/com/ds/avare/WeatherCache.java b/src/com/ds/avare/WeatherCache.java index 570357a5..b344f1c8 100644 --- a/src/com/ds/avare/WeatherCache.java +++ b/src/com/ds/avare/WeatherCache.java @@ -1,108 +1,114 @@ /* Copyright (c) 2012, Zubair Khan (governer@gmail.com) All rights reserved. Redistribution an...
true
true
public String get(String id) { /* * Remove all entries older than update time. */ String weather = null; /* * Save concurrent mod as many tasks update mMap. */ synchronized(mMap) { Iterator<Entry<String, String>> it = mMap.entry...
public String get(String id) { /* * Remove all entries older than update time. */ String weather = null; /* * Save concurrent mod as many tasks update mMap. */ synchronized(mMap) { Iterator<Entry<String, String>> it = mMap.entry...
diff --git a/src/com/android/settings/ChooseLockSettingsHelper.java b/src/com/android/settings/ChooseLockSettingsHelper.java index 5fe3118fb..6382891fe 100644 --- a/src/com/android/settings/ChooseLockSettingsHelper.java +++ b/src/com/android/settings/ChooseLockSettingsHelper.java @@ -1,86 +1,87 @@ /* * Copyright (C)...
true
true
protected boolean launchConfirmationActivity(int request) { boolean launched = false; switch (mLockPatternUtils.getKeyguardStoredPasswordQuality()) { case DevicePolicyManager.PASSWORD_QUALITY_SOMETHING: launched = confirmPattern(request); break; ...
protected boolean launchConfirmationActivity(int request) { boolean launched = false; switch (mLockPatternUtils.getKeyguardStoredPasswordQuality()) { case DevicePolicyManager.PASSWORD_QUALITY_SOMETHING: launched = confirmPattern(request); break; ...
diff --git a/src/java/davmail/ui/tray/SwtGatewayTray.java b/src/java/davmail/ui/tray/SwtGatewayTray.java index 787ee6c..1e4a890 100644 --- a/src/java/davmail/ui/tray/SwtGatewayTray.java +++ b/src/java/davmail/ui/tray/SwtGatewayTray.java @@ -1,355 +1,361 @@ /* * DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway * ...
true
true
public void init() { // set native look and feel try { String lafClassName = UIManager.getSystemLookAndFeelClassName(); // workaround for bug when SWT and AWT both try to access Gtk if (lafClassName.indexOf("gtk") > 0) { lafClassName = UIManager.ge...
public void init() { // set native look and feel try { String lafClassName = UIManager.getSystemLookAndFeelClassName(); // workaround for bug when SWT and AWT both try to access Gtk if (lafClassName.indexOf("gtk") > 0) { lafClassName = UIManager.ge...
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/ViewInHierarchyUtils.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/ViewInHierarchyUtils.java index a5fffa6c..f8f73a0d 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/ViewInHierarchyUtils.java +++ b/sof...
false
true
private void printTreeNode(PrintWriter out, String indent, String focus_code, LexEvsTreeNode node, LexEvsTreeNode parent) { if (node == null) return; try { LexEvsTreeNode.ExpandableStatus node_status = node.getExpandableStatus(); String image = "[+]"; boolean expandable = true; if (node_status != ...
private void printTreeNode(PrintWriter out, String indent, String focus_code, LexEvsTreeNode node, LexEvsTreeNode parent) { if (node == null) return; try { LexEvsTreeNode.ExpandableStatus node_status = node.getExpandableStatus(); String image = "[+]"; boolean expandable = true; if (node_status != ...
diff --git a/GAE/src/org/waterforpeople/mapping/portal/client/widgets/component/SurveyedLocaleManager.java b/GAE/src/org/waterforpeople/mapping/portal/client/widgets/component/SurveyedLocaleManager.java index 0a164db4c..4b8c56df9 100644 --- a/GAE/src/org/waterforpeople/mapping/portal/client/widgets/component/SurveyedLo...
true
true
public void bindRow(final Grid grid, final SurveyedLocaleDto item,final int row) { Label keyIdLabel = new Label(item.getKeyId().toString()); grid.setWidget(row, 0, keyIdLabel); if (item.getIdentifier() != null) { String communityCode = item.getIdentifier(); if (communityCode.length() > 10) communityCod...
public void bindRow(final Grid grid, final SurveyedLocaleDto item,final int row) { Label keyIdLabel = new Label(item.getKeyId().toString()); grid.setWidget(row, 0, keyIdLabel); if (item.getIdentifier() != null) { String communityCode = item.getIdentifier(); if (communityCode.length() > 10) communityCod...
diff --git a/src/edu/sc/seis/sod/tools/find_events.java b/src/edu/sc/seis/sod/tools/find_events.java index 3804c654a..16c167222 100644 --- a/src/edu/sc/seis/sod/tools/find_events.java +++ b/src/edu/sc/seis/sod/tools/find_events.java @@ -1,62 +1,62 @@ package edu.sc.seis.sod.tools; import java.text.DateFormat; impo...
true
true
protected void addParams() throws JSAPException { super.addParams(); add(ServerParser.createParam("edu/iris/dmc/IRIS_EventDC", "The event server to use.")); add(BoxAreaParser.createParam("A box the events must be in. It's specified as west/east/north/sou...
protected void addParams() throws JSAPException { super.addParams(); add(ServerParser.createParam("edu/iris/dmc/IRIS_EventDC", "The event server to use.")); add(BoxAreaParser.createParam("A box the events must be in. It's specified as west/east/north/sou...
diff --git a/JavaSource/org/unitime/timetable/action/SolutionChangesAction.java b/JavaSource/org/unitime/timetable/action/SolutionChangesAction.java index 2ea0a962..04db3fd8 100644 --- a/JavaSource/org/unitime/timetable/action/SolutionChangesAction.java +++ b/JavaSource/org/unitime/timetable/action/SolutionChangesActio...
false
true
public String getChangesTable(boolean simple, boolean reversed, HttpServletRequest request, String name, Vector changes) { if (changes==null || changes.isEmpty()) return null; WebTable.setOrder(request.getSession(),"solutionChanges.ord",request.getParameter("ord"),1); WebTable webTable = (si...
public String getChangesTable(boolean simple, boolean reversed, HttpServletRequest request, String name, Vector changes) { if (changes==null || changes.isEmpty()) return null; WebTable.setOrder(request.getSession(),"solutionChanges.ord",request.getParameter("ord"),1); WebTable webTable = (si...
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java index 3035908c2..a550889b5 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java +++ b/openjpa-kerne...
false
true
public void makeReadOnly() { if (_readOnly) return; lock(); try { // check again if (_readOnly) return; _readOnly = true; Log log = _conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); if (log.isInfoEnabled(...
public void makeReadOnly() { if (_readOnly) return; lock(); try { // check again if (_readOnly) return; _readOnly = true; Log log = _conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); if (log.isInfoEnabled(...
diff --git a/Project3/src/Parser.java b/Project3/src/Parser.java index 0bbf25b..0589673 100644 --- a/Project3/src/Parser.java +++ b/Project3/src/Parser.java @@ -1,291 +1,291 @@ import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap...
false
true
public boolean parsePublications() throws IOException { if(isValidSearchName(getFileLoc())) { FileReader DBReader = new FileReader(getFileLoc()); BufferedReader DBReaderBuffered = new BufferedReader(DBReader); String next_line=""; int partNum = 1; String type = ""; ArrayList<Str...
public boolean parsePublications() throws IOException { if(isValidSearchName(getFileLoc())) { FileReader DBReader = new FileReader(getFileLoc()); BufferedReader DBReaderBuffered = new BufferedReader(DBReader); String next_line=""; int partNum = 1; String type = ""; ArrayList<Str...
diff --git a/dalvik-explorer/src/org/jessies/dalvikexplorer/DeviceActivity.java b/dalvik-explorer/src/org/jessies/dalvikexplorer/DeviceActivity.java index 643cb70..f70ec50 100644 --- a/dalvik-explorer/src/org/jessies/dalvikexplorer/DeviceActivity.java +++ b/dalvik-explorer/src/org/jessies/dalvikexplorer/DeviceActivity....
true
true
static String getDeviceDetailsAsString(Activity context, WindowManager wm) { final StringBuilder result = new StringBuilder(); String[] procCpuLines = Utils.readFile("/proc/cpuinfo").split("\n"); String processor = valueForKey(procCpuLines, "Processor"); if (processor == nul...
static String getDeviceDetailsAsString(Activity context, WindowManager wm) { final StringBuilder result = new StringBuilder(); String[] procCpuLines = Utils.readFile("/proc/cpuinfo").split("\n"); String processor = valueForKey(procCpuLines, "Processor"); if (processor == nul...
diff --git a/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java b/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java index 8d17889..b4224f5 100644 --- a/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java +++ b/src/impl/java/org/wyona/security/impl/util/PolicyAggregator.java @@ ...
false
true
public static Policy aggregatePolicy(String path, PolicyManager pm) throws AuthorizationException { Policy policy = pm.getPolicy(path, false); if (policy == null) { if (!path.equals("/")) { return aggregatePolicy(PathUtil.getParent(path), pm); } else { ...
public static Policy aggregatePolicy(String path, PolicyManager pm) throws AuthorizationException { Policy policy = pm.getPolicy(path, false); if (policy == null) { if (!path.equals("/")) { return aggregatePolicy(PathUtil.getParent(path), pm); } else { ...
diff --git a/zico-core/src/main/java/com/jitlogic/zico/core/rest/SystemService.java b/zico-core/src/main/java/com/jitlogic/zico/core/rest/SystemService.java index 22a96cd3..db7600d9 100644 --- a/zico-core/src/main/java/com/jitlogic/zico/core/rest/SystemService.java +++ b/zico-core/src/main/java/com/jitlogic/zico/core/r...
true
true
public List<String> systemInfo() { List<String> info = new ArrayList<String>(); // TODO use agent to present these things - it's already there :) info.add("Version: " + config.stringCfg("zico.version", "<null>")); MemoryMXBean mem = ManagementFactory.getMemoryMXBean(); Mem...
public List<String> systemInfo() { List<String> info = new ArrayList<String>(); // TODO use agent to present these things - it's already there :) info.add("Version: " + config.stringCfg("zico.version", "<null>")); MemoryMXBean mem = ManagementFactory.getMemoryMXBean(); Mem...
diff --git a/src/xandrew/game/light/LightBeam.java b/src/xandrew/game/light/LightBeam.java index 0a05fa9..b174c62 100644 --- a/src/xandrew/game/light/LightBeam.java +++ b/src/xandrew/game/light/LightBeam.java @@ -1,106 +1,106 @@ package xandrew.game.light; import javax.media.opengl.GL; import scene.GLRenderabl...
true
true
public void draw(GL gl) { square.setColour(new float[] {1.0f, 1.0f, 0.0f, 1.0f}); gl.glPushMatrix(); gl.glTranslatef(xPos, yPos, 0.0f); if(!isEmitting()) gl.glTranslatef(0.0f, 0.0f, -6f); //square.setColour(new float[] {0.0f, 0.0f, 0.0f,...
public void draw(GL gl) { square.setColour(new float[] {1.0f, 1.0f, 0.0f, 1.0f}); gl.glPushMatrix(); gl.glTranslatef(xPos, yPos, 0.0f); if(!isEmitting()) gl.glTranslatef(0.0f, 0.0f, -1f); //square.setColour(new float[] {0.0f, 0.0f, 0.0f,...
diff --git a/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java b/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java index e011dc421..f45749c42 100644 --- a/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java +++ b/core/src/main/java/...
true
true
protected void setup(Context context) throws IOException, InterruptedException { super.setup(context); Configuration conf = context.getConfiguration(); try { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); DistanceMeasure measure = ccl.loadClass(conf.get(KMeansConfigKeys.DIST...
protected void setup(Context context) throws IOException, InterruptedException { super.setup(context); Configuration conf = context.getConfiguration(); try { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); DistanceMeasure measure = ccl.loadClass(conf.get(KMeansConfigKeys.DIST...
diff --git a/src/main/ed/lang/python/Python.java b/src/main/ed/lang/python/Python.java index e834d8546..ba9a46c4d 100644 --- a/src/main/ed/lang/python/Python.java +++ b/src/main/ed/lang/python/Python.java @@ -1,487 +1,493 @@ // Python.java /** * Copyright (C) 2008 10gen Inc. * * This program is free softwa...
true
true
public static Object toJS( Object p ){ if( D ) System.out.println( "toJS " + p + " " + p.getClass()); if ( p == null || p instanceof PyNone ) return null; if ( p instanceof JSObject || p instanceof JSString || p instanceof ed.log.Level || ...
public static Object toJS( Object p ){ if( D ) System.out.println( "toJS " + p + " " + p.getClass()); if ( p == null || p instanceof PyNone ) return null; if ( p instanceof JSObject || p instanceof JSString || p instanceof ed.log.Level || ...
diff --git a/src/main/java/pl/gsobczyk/rtconnector/ui/MainWindow.java b/src/main/java/pl/gsobczyk/rtconnector/ui/MainWindow.java index d9e0338..29220bf 100644 --- a/src/main/java/pl/gsobczyk/rtconnector/ui/MainWindow.java +++ b/src/main/java/pl/gsobczyk/rtconnector/ui/MainWindow.java @@ -1,249 +1,249 @@ package pl.gso...
true
true
private void initialize() { frmRtConnector = new JFrame(); frmRtConnector.setTitle(Messages.getString("MainWindow.title")); //$NON-NLS-1$ frmRtConnector.setBounds(100, 100, 650, 300); frmRtConnector.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmRtConnector.addWindowListener(exitAction); GridBagLayout ...
private void initialize() { frmRtConnector = new JFrame(); frmRtConnector.setTitle(Messages.getString("MainWindow.title")); //$NON-NLS-1$ frmRtConnector.setBounds(100, 100, 650, 300); frmRtConnector.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmRtConnector.addWindowListener(exitAction); GridBagLayout ...
diff --git a/src/paulscode/android/mupen64plusae/persistent/AppData.java b/src/paulscode/android/mupen64plusae/persistent/AppData.java index 26ff803f..cfdb4a07 100644 --- a/src/paulscode/android/mupen64plusae/persistent/AppData.java +++ b/src/paulscode/android/mupen64plusae/persistent/AppData.java @@ -1,511 +1,491 @@ ...
true
true
public HardwareInfo() { // Identify the hardware, features, and processor strings { // Temporaries since we can't assign the final fields this way String _hardware = ""; String _features = ""; String _processor = "";...
public HardwareInfo() { // Identify the hardware, features, and processor strings { // Temporaries since we can't assign the final fields this way String _hardware = ""; String _features = ""; String _processor = "";...
diff --git a/src/org/mozilla/javascript/TokenStream.java b/src/org/mozilla/javascript/TokenStream.java index e8beda37..172a0876 100644 --- a/src/org/mozilla/javascript/TokenStream.java +++ b/src/org/mozilla/javascript/TokenStream.java @@ -1,1391 +1,1385 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
true
true
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
diff --git a/crypto/src/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java b/crypto/src/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java index abafe4bd..910081e8 100644 --- a/crypto/src/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java +++ b/crypto/src/org/bouncycastle/crypto/params/...
true
true
public DHKeyGenerationParameters( SecureRandom random, DHParameters params) { super(random, (params.getJ() != 0) ? params.getJ() : params.getP().bitLength() - 1); this.params = params; }
public DHKeyGenerationParameters( SecureRandom random, DHParameters params) { super(random, params.getP().bitLength()); this.params = params; }
diff --git a/src/sai_cas/servlet/CrossMatchServlet.java b/src/sai_cas/servlet/CrossMatchServlet.java index ec11895..a9cbc54 100644 --- a/src/sai_cas/servlet/CrossMatchServlet.java +++ b/src/sai_cas/servlet/CrossMatchServlet.java @@ -1,287 +1,288 @@ package sai_cas.servlet; import java.io.IOException; import java...
true
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { PrintWriter out = response.getWriter(); String cat = null, tab = null, radString = null, raColumn = null, decColumn = null, formatString = null; formats format; List<FileItem...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { PrintWriter out = response.getWriter(); String cat = null, tab = null, radString = null, raColumn = null, decColumn = null, formatString = null; formats format; List<FileItem...
diff --git a/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java b/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java index 50f0d43..530fac3 100644 --- a/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java +++ b/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java @@ -1,638 +1,643 @@ packag...
true
true
protected void configure(final CompilationUnitTree cu, final HtmlGenerator gen) throws IOException { final LineMap lineMap = cu.getLineMap(); // add lexical markers JavaLexer lexer = new JavaLexer(new CharSequenceReader(gen.sourceFile)); lexer.setTabSize(tabWidth); try { ...
protected void configure(final CompilationUnitTree cu, final HtmlGenerator gen) throws IOException { final LineMap lineMap = cu.getLineMap(); // add lexical markers JavaLexer lexer = new JavaLexer(new CharSequenceReader(gen.sourceFile)); lexer.setTabSize(tabWidth); try { ...
diff --git a/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java b/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java index cde23984..71d9978d 100644 --- a/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java +++ b/sahi/src/main/java/com/redhat/qe/jon/sahi/...
true
true
public Map<String, String> assertOperationResult(Operation op, boolean success) { String opName = op.name; String resultImage = "Operation_failed_16.png"; String succ = "Failed"; if (success) { resultImage = "Operation_ok_16.png"; succ = "Success"; } ...
public Map<String, String> assertOperationResult(Operation op, boolean success) { String opName = op.name; String resultImage = "Operation_failed_16.png"; String succ = "Failed"; if (success) { resultImage = "Operation_ok_16.png"; succ = "Success"; } ...
diff --git a/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java b/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java index c1ce5cb30..492985fb4 100755 --- a/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java +++ b/activemq-core/src/main/java/...
true
true
public ActiveMQMessageConsumer(ActiveMQSession session, ConsumerId consumerId, ActiveMQDestination dest, String name, String selector, int prefetch, int maximumPendingMessageCount, boolean noLocal, boolean browser, boolean dispatchAsync, MessageListener messageListener) throws JM...
public ActiveMQMessageConsumer(ActiveMQSession session, ConsumerId consumerId, ActiveMQDestination dest, String name, String selector, int prefetch, int maximumPendingMessageCount, boolean noLocal, boolean browser, boolean dispatchAsync, MessageListener messageListener) throws JM...
diff --git a/src/main/java/hudson/plugins/phing/PhingBuilder.java b/src/main/java/hudson/plugins/phing/PhingBuilder.java index d7b16b2..47ebee0 100644 --- a/src/main/java/hudson/plugins/phing/PhingBuilder.java +++ b/src/main/java/hudson/plugins/phing/PhingBuilder.java @@ -1,267 +1,267 @@ /* * The MIT License * *...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { ArgumentListBuilder args = new ArgumentListBuilder(); final EnvVars env = build.getEnvironment(listener); final PhingInstallation pi = getPhin...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { ArgumentListBuilder args = new ArgumentListBuilder(); final EnvVars env = build.getEnvironment(listener); final PhingInstallation pi = getPhin...
diff --git a/VASSAL/counters/BasicPiece.java b/VASSAL/counters/BasicPiece.java index d75b5d95..e142216f 100644 --- a/VASSAL/counters/BasicPiece.java +++ b/VASSAL/counters/BasicPiece.java @@ -1,709 +1,709 @@ /* * $Id$ * * Copyright (c) 2000-2003 by Rodney Kinney * * This library is free software; you can redi...
false
true
public Command keyEvent(KeyStroke stroke) { getKeyCommands(); if (!isEnabled(stroke)) { return null; } Command comm = null; GamePiece outer = Decorator.getOutermost(this); if (KeyStroke.getKeyStroke(cloneKey, InputEvent.CTRL_MASK).equals(stroke)) { GamePiece newPiece = ...
public Command keyEvent(KeyStroke stroke) { getKeyCommands(); if (!isEnabled(stroke)) { return null; } Command comm = null; GamePiece outer = Decorator.getOutermost(this); if (KeyStroke.getKeyStroke(cloneKey, InputEvent.CTRL_MASK).equals(stroke)) { GamePiece newPiece = ...
diff --git a/core/java/src/net/i2p/client/BWLimitsMessageHandler.java b/core/java/src/net/i2p/client/BWLimitsMessageHandler.java index be00d3fff..34fa81ec8 100644 --- a/core/java/src/net/i2p/client/BWLimitsMessageHandler.java +++ b/core/java/src/net/i2p/client/BWLimitsMessageHandler.java @@ -1,27 +1,27 @@ package net....
true
true
public void handleMessage(I2CPMessage message, I2PSessionImpl session) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Handle message " + message); BandwidthLimitsMessage msg = (BandwidthLimitsMessage) message; ((I2PSimpleSession)session).bwReceived(msg.getLimits()); }
public void handleMessage(I2CPMessage message, I2PSessionImpl session) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Handle message " + message); BandwidthLimitsMessage msg = (BandwidthLimitsMessage) message; session.bwReceived(msg.getLimits()); }
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java index 0bd803ec8..a6ec87916 100644 --- a/src/java/org/apache/fop/apps/FOUserAgent.java +++ b/src/java/org/apache/fop/apps/FOUserAgent.java @@ -1,655 +1,655 @@ /* * Copyright 1999-2005 The Apache Software Foundat...
true
true
public void initUserConfig() throws ConfigurationException { log.debug("Initializing User Agent Configuration"); if (userConfig.getChild("base", false) != null) { try { String cfgBaseDir = userConfig.getChild("base").getValue(null); if (cfgBaseDir != null)...
public void initUserConfig() throws ConfigurationException { log.debug("Initializing User Agent Configuration"); if (userConfig.getChild("base", false) != null) { try { String cfgBaseDir = userConfig.getChild("base").getValue(null); if (cfgBaseDir != null)...
diff --git a/src/com/anysoftkeyboard/dictionaries/ExternalDictionaryFactory.java b/src/com/anysoftkeyboard/dictionaries/ExternalDictionaryFactory.java index 96188f17..5662e5c1 100644 --- a/src/com/anysoftkeyboard/dictionaries/ExternalDictionaryFactory.java +++ b/src/com/anysoftkeyboard/dictionaries/ExternalDictionaryFa...
true
true
protected DictionaryAddOnAndBuilder createConcreateAddOn(Context context, String prefId, int nameId, String description, int sortIndex, AttributeSet attrs) { final String language = attrs.getAttributeValue(null, XML_LANGUAGE_ATTRIBUTE); final String assets = attrs.getAttributeValue(null, XML_ASSETS_ATTRIB...
protected DictionaryAddOnAndBuilder createConcreateAddOn(Context context, String prefId, int nameId, String description, int sortIndex, AttributeSet attrs) { final String language = attrs.getAttributeValue(null, XML_LANGUAGE_ATTRIBUTE); final String assets = attrs.getAttributeValue(null, XML_ASSETS_ATTRIB...
diff --git a/src/main/java/org/seforge/monitor/web/MetricController.java b/src/main/java/org/seforge/monitor/web/MetricController.java index 79e835e..4a430a9 100644 --- a/src/main/java/org/seforge/monitor/web/MetricController.java +++ b/src/main/java/org/seforge/monitor/web/MetricController.java @@ -1,99 +1,101 @@ pac...
false
true
public ResponseEntity<String> listAllMetrics(@RequestParam("groupId") Integer groupId, @RequestParam("resourcePrototypeId") Integer resourcePrototypeId) { HttpStatus returnStatus; JsonObjectResponse response = new JsonObjectResponse(); if( groupId == null){ returnStatus = HttpStatus.BAD_REQUEST...
public ResponseEntity<String> listAllMetrics(@RequestParam("groupId") Integer groupId, @RequestParam("resourcePrototypeId") Integer resourcePrototypeId, @RequestParam("start") Integer start, @RequestParam("limit") Integer limit ) { HttpStatus returnStatus; JsonObjectResponse response = new JsonObjec...
diff --git a/src/test/java/javax/time/calendar/format/TestDateTimeFormatters.java b/src/test/java/javax/time/calendar/format/TestDateTimeFormatters.java index 0b451cfc..fb9ff21b 100644 --- a/src/test/java/javax/time/calendar/format/TestDateTimeFormatters.java +++ b/src/test/java/javax/time/calendar/format/TestDateTimeF...
true
true
Iterator<Object[]> weekDate() { return new Iterator<Object[]>() { private ZonedDateTime date = ZonedDateTime.dateTime(LocalDateTime.dateTime(2003, 12, 29, 11, 5, 30), TimeZone.UTC); private ZonedDateTime endDate = date.withDate(2005, 1, 2); private int week = 1; ...
Iterator<Object[]> weekDate() { return new Iterator<Object[]>() { private ZonedDateTime date = ZonedDateTime.dateTime(LocalDateTime.dateTime(2003, 12, 29, 11, 5, 30), TimeZone.UTC); private ZonedDateTime endDate = date.withDate(2005, 1, 2); private int week = 1; ...
diff --git a/src/main/org/codehaus/groovy/ast/CompileUnit.java b/src/main/org/codehaus/groovy/ast/CompileUnit.java index 674397a92..eae0c9f16 100644 --- a/src/main/org/codehaus/groovy/ast/CompileUnit.java +++ b/src/main/org/codehaus/groovy/ast/CompileUnit.java @@ -1,175 +1,175 @@ /* * Copyright 2003-2007 the origina...
true
true
public void addClass(ClassNode node) { node = node.redirect(); String name = node.getName(); ClassNode stored = (ClassNode) classes.get(name); if (stored != null && stored != node) { // we have a duplicate class! // One possibility for this is, that we delcared a...
public void addClass(ClassNode node) { node = node.redirect(); String name = node.getName(); ClassNode stored = (ClassNode) classes.get(name); if (stored != null && stored != node) { // we have a duplicate class! // One possibility for this is, that we delcared a...
diff --git a/src/org/coronastreet/gpxconverter/MainWindow.java b/src/org/coronastreet/gpxconverter/MainWindow.java index 0ccf757..915eb99 100644 --- a/src/org/coronastreet/gpxconverter/MainWindow.java +++ b/src/org/coronastreet/gpxconverter/MainWindow.java @@ -1,301 +1,301 @@ package org.coronastreet.gpxconverter; ...
true
true
private void initialize() { frmStravaGpxConverter = new JFrame(); frmStravaGpxConverter.getContentPane().setFont(new Font("Tahoma", Font.BOLD, 11)); frmStravaGpxConverter.setTitle("Garmin GPX Importer for Strava"); frmStravaGpxConverter.setBounds(100, 100, 441, 426); frmStravaGpxConverter.setDefaultCloseOper...
private void initialize() { frmStravaGpxConverter = new JFrame(); frmStravaGpxConverter.getContentPane().setFont(new Font("Tahoma", Font.BOLD, 11)); frmStravaGpxConverter.setTitle("Garmin GPX Importer for Strava"); frmStravaGpxConverter.setBounds(100, 100, 441, 426); frmStravaGpxConverter.setDefaultCloseOper...
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/JSONElementConverter.java b/CubicRecorder/src/main/java/org/cubictest/recorder/JSONElementConverter.java index b2539647..b2524221 100644 --- a/CubicRecorder/src/main/java/org/cubictest/recorder/JSONElementConverter.java +++ b/CubicRecorder/src/main/java/or...
false
true
public PageElement createElementFromJson(JSONObject element) { try { JSONObject properties = getJSONObject(element, "properties"); if(pageElements.get(getString(properties, "cubicId")) != null) { return pageElements.get(getString(properties, "cubicId")); } PageElement pe = null; //creatin...
public PageElement createElementFromJson(JSONObject element) { try { JSONObject properties = getJSONObject(element, "properties"); if(pageElements.get(getString(properties, "cubicId")) != null) { return pageElements.get(getString(properties, "cubicId")); } PageElement pe = null; //creatin...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/internal/PersistenceDelegateBindingExtensionPointManager.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/internal/PersistenceDelegateBin...
true
true
public PersistenceDelegateBinding[] getApplicableBindings(Object context, Object container) { List<PersistenceDelegateBinding> applicable = new ArrayList<PersistenceDelegateBinding>(); for (PersistenceDelegateBinding binding : getBindings()) { Expression enablement = binding.getEnablement(); // The binding...
public PersistenceDelegateBinding[] getApplicableBindings(Object context, Object container) { List<PersistenceDelegateBinding> applicable = new ArrayList<PersistenceDelegateBinding>(); for (PersistenceDelegateBinding binding : getBindings()) { Expression enablement = binding.getEnablement(); // The binding...
diff --git a/src/com/mpower/controller/validator/PaymentSourceValidator.java b/src/com/mpower/controller/validator/PaymentSourceValidator.java index b404c324..892c2726 100644 --- a/src/com/mpower/controller/validator/PaymentSourceValidator.java +++ b/src/com/mpower/controller/validator/PaymentSourceValidator.java @@ -1...
true
true
public static void validatePaymentSource(Object target, Errors errors) { String inPath = errors.getNestedPath(); if (target instanceof PaymentSource) { errors.setNestedPath("paymentSource"); } PaymentSource source = (PaymentSource) target; if ("ACH".equals(source....
public static void validatePaymentSource(Object target, Errors errors) { String inPath = errors.getNestedPath(); if (!(target instanceof PaymentSource)) { errors.setNestedPath("paymentSource"); } PaymentSource source = (PaymentSource) target; if ("ACH".equals(sour...
diff --git a/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/keyboard/KeyboardTest.java b/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/keyboard/KeyboardTest.java index 143eb44..546625a 100644 --- a/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/keyboard...
true
true
public void setUp() throws Exception { super.setUp(); bot = new SWTBot(); keyboard = new Keyboard(display); bot.shell("SWT Custom Controls").activate(); bot.tabItem("StyledText").activate(); bot.checkBox("Horizontal Fill").select(); bot.checkBox("Vertical Fill").select(); bot.checkBox("Listen").deselec...
public void setUp() throws Exception { super.setUp(); bot = new SWTBot(); keyboard = new Keyboard(); bot.shell("SWT Custom Controls").activate(); bot.tabItem("StyledText").activate(); bot.checkBox("Horizontal Fill").select(); bot.checkBox("Vertical Fill").select(); bot.checkBox("Listen").deselect(); ...
diff --git a/src/java/org/apache/poi/hssf/dev/BiffViewer.java b/src/java/org/apache/poi/hssf/dev/BiffViewer.java index 12267d23d..ff2997884 100644 --- a/src/java/org/apache/poi/hssf/dev/BiffViewer.java +++ b/src/java/org/apache/poi/hssf/dev/BiffViewer.java @@ -1,713 +1,713 @@ /* =======================================...
true
true
private static Record[] createRecord(short rectype, short size, byte[] data) { Record retval = null; Record[] realretval = null; // int irectype = rectype; switch (rectype) { case ChartRecord.sid: retv...
private static Record[] createRecord(short rectype, short size, byte[] data) { Record retval = null; Record[] realretval = null; // int irectype = rectype; switch (rectype) { case ChartRecord.sid: retv...
diff --git a/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/LinkChecker.java b/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/LinkChecker.java index b85ac9794..0115d7326 100644 --- a/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/LinkChecker....
true
true
public void startElement(String namespaceURI, String localName, String qName, Attributes attrs) throws SAXException { String eName = ("".equals(localName)) ? qName : localName; transformedXmlAsBuffer.append("<" + eName); if(eName.equals("Link")) { for(int i = 0;...
public void startElement(String namespaceURI, String localName, String qName, Attributes attrs) throws SAXException { String eName = ("".equals(localName)) ? qName : localName; transformedXmlAsBuffer.append("<" + eName); if(eName.equals("Link")) { for(int i = 0;...
diff --git a/src/com/jpii/navalbattle/game/gui/RightHud.java b/src/com/jpii/navalbattle/game/gui/RightHud.java index 347bbd8a..f2ff973a 100644 --- a/src/com/jpii/navalbattle/game/gui/RightHud.java +++ b/src/com/jpii/navalbattle/game/gui/RightHud.java @@ -1,112 +1,112 @@ package com.jpii.navalbattle.game.gui; import...
true
true
public void update(){ boxx = boxy = boxheight = boxwidth = 0; missiles = health = movement = ""; if(display!=null){ if (display.getHandle()%10 == 2) { PortEntity display = (PortEntity)this.display; entityImg = display.getIcon(); } else entityImg = FileUtils.getImage(display.imgLocation); ...
public void update(){ boxx = boxy = boxheight = boxwidth = 0; missiles = health = movement = ""; if(display!=null){ if (display.getHandle()%10 == 2) { PortEntity display = (PortEntity)this.display; entityImg = display.getIcon(); } else entityImg = FileUtils.getImage(display.imgLocation); ...
diff --git a/source/ch/ethz/ssh2/sftp/SFTPv3Client.java b/source/ch/ethz/ssh2/sftp/SFTPv3Client.java index a75debba4..bd9a46d56 100644 --- a/source/ch/ethz/ssh2/sftp/SFTPv3Client.java +++ b/source/ch/ethz/ssh2/sftp/SFTPv3Client.java @@ -1,1378 +1,1365 @@ package ch.ethz.ssh2.sftp; import ch.ethz.ssh2.Connection; i...
false
true
public int download(SFTPv3FileHandle handle, long fileOffset, byte[] dst, int dstoff, int len) throws IOException { boolean errorOccured = false; int errorCode = 0; String errorMessage = null; int errorClientOffset = 0; checkHandleValidAndOpen(handle); int remaining...
public int download(SFTPv3FileHandle handle, long fileOffset, byte[] dst, int dstoff, int len) throws IOException { boolean errorOccured = false; checkHandleValidAndOpen(handle); int remaining = len * parallelism; int clientOffset = dstoff; long serverOffset = fileOffset; ...
diff --git a/java/src/main/java/com/flexpoker/bso/DeckBsoImpl.java b/java/src/main/java/com/flexpoker/bso/DeckBsoImpl.java index fd16fc4a..81c68130 100644 --- a/java/src/main/java/com/flexpoker/bso/DeckBsoImpl.java +++ b/java/src/main/java/com/flexpoker/bso/DeckBsoImpl.java @@ -1,131 +1,131 @@ package com.flexpoker.bs...
true
true
public DeckBsoImpl() { cardList = Arrays.asList(new Card[]{ new Card(0, CardRank.TWO, CardSuit.HEARTS), new Card(1, CardRank.THREE, CardSuit.HEARTS), new Card(2, CardRank.FOUR, CardSuit.HEARTS), new Card(3, CardRank.FIVE, CardSuit.HEARTS), new Card...
public DeckBsoImpl() { cardList = Arrays.asList(new Card[]{ new Card(0, CardRank.TWO, CardSuit.HEARTS), new Card(1, CardRank.THREE, CardSuit.HEARTS), new Card(2, CardRank.FOUR, CardSuit.HEARTS), new Card(3, CardRank.FIVE, CardSuit.HEARTS), new Card...
diff --git a/src/com/stumbleupon/hbaseadmin/HBaseCompact.java b/src/com/stumbleupon/hbaseadmin/HBaseCompact.java index f1d4946..daae06b 100644 --- a/src/com/stumbleupon/hbaseadmin/HBaseCompact.java +++ b/src/com/stumbleupon/hbaseadmin/HBaseCompact.java @@ -1,228 +1,228 @@ /** * This file is part of hbaseadmin. * C...
false
true
private static JSAP prepCmdLineParser() throws Exception { final JSAP jsap = new JSAP(); final FlaggedOption site_xml = new FlaggedOption("hbase_site") .setStringParser(JSAP.STRING_PARSER) .setDefault("") .setRequired(true) .setShortFlag('c') .setLongFlag(JSAP.NO_LONGFLAG); ...
private static JSAP prepCmdLineParser() throws Exception { final JSAP jsap = new JSAP(); final FlaggedOption site_xml = new FlaggedOption("hbase_site") .setStringParser(JSAP.STRING_PARSER) .setDefault("") .setRequired(true) .setShortFlag('c') .setLongFlag(JSAP.NO_LONGFLAG); ...
diff --git a/src/main/java/com/hydrasmp/godPowers/MaimCommand.java b/src/main/java/com/hydrasmp/godPowers/MaimCommand.java index f01bf88..8addc1a 100755 --- a/src/main/java/com/hydrasmp/godPowers/MaimCommand.java +++ b/src/main/java/com/hydrasmp/godPowers/MaimCommand.java @@ -1,48 +1,48 @@ package com.hydrasmp.godPowe...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { String[] split = args; if (sender instanceof Player) { player = (Player) sender; if (player.hasPermission("godpowers.maim")) { if (split.length == 1) { ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { String[] split = args; if (sender instanceof Player) { player = (Player) sender; if (player.hasPermission("godpowers.maim")) { if (split.length == 1) { ...
diff --git a/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java b/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java index 6fa76e0d4..6f2644489 100644 --- a/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java +++ b/htmlunit/src/java/com/gargoylesoftware/htmlunit/html...
true
true
public HtmlUnitDOMBuilder(final WebResponse webResponse, final WebWindow webWindow) { super(new HTMLConfiguration()); webResponse_ = webResponse; webWindow_ = webWindow; scriptFilter_ = new ScriptFilter((HTMLConfiguration)fConfiguration); try { ...
public HtmlUnitDOMBuilder(final WebResponse webResponse, final WebWindow webWindow) { super(new HTMLConfiguration()); webResponse_ = webResponse; webWindow_ = webWindow; scriptFilter_ = new ScriptFilter((HTMLConfiguration)fConfiguration); try { ...
diff --git a/MultiROMMgr/src/main/java/com/tassadar/multirommgr/MultiROMInstallTask.java b/MultiROMMgr/src/main/java/com/tassadar/multirommgr/MultiROMInstallTask.java index 87f5c07..3393ac5 100644 --- a/MultiROMMgr/src/main/java/com/tassadar/multirommgr/MultiROMInstallTask.java +++ b/MultiROMMgr/src/main/java/com/tassa...
true
true
protected Void doInBackground(Void... results) { String dest = Utils.getDownloadDir(); File destDir = new File(dest); destDir.mkdirs(); Log.d("MultiROMInstallTask", "Using download directory: " + dest); ArrayList<Manifest.InstallationFile> files = new ArrayList<Manifest.Ins...
protected Void doInBackground(Void... results) { String dest = Utils.getDownloadDir(); File destDir = new File(dest); destDir.mkdirs(); Log.d("MultiROMInstallTask", "Using download directory: " + dest); ArrayList<Manifest.InstallationFile> files = new ArrayList<Manifest.Ins...
diff --git a/src/cn/edu/tsinghua/academic/c00740273/magictower/standard/FightMixin.java b/src/cn/edu/tsinghua/academic/c00740273/magictower/standard/FightMixin.java index 1567cc8..d0777d4 100644 --- a/src/cn/edu/tsinghua/academic/c00740273/magictower/standard/FightMixin.java +++ b/src/cn/edu/tsinghua/academic/c00740273...
true
true
public boolean enter(StandardEvent event, Coordinate coord, RegularTile tile, Coordinate sourceCoord, CharacterTile sourceTile, StandardGame game) { long opponentAttack = this.opponentInitialAttack; long opponentDefense = this.opponentInitialDefense; long opponentHealth = this.opponentInitialHealth; long...
public boolean enter(StandardEvent event, Coordinate coord, RegularTile tile, Coordinate sourceCoord, CharacterTile sourceTile, StandardGame game) { long opponentAttack = this.opponentInitialAttack; long opponentDefense = this.opponentInitialDefense; long opponentHealth = this.opponentInitialHealth; long...
diff --git a/src/main/java/org/atlasapi/feeds/radioplayer/upload/CachingFTPUploadResultStore.java b/src/main/java/org/atlasapi/feeds/radioplayer/upload/CachingFTPUploadResultStore.java index 2071de95..b26e3ab0 100644 --- a/src/main/java/org/atlasapi/feeds/radioplayer/upload/CachingFTPUploadResultStore.java +++ b/src/ma...
true
true
private void loadCache() { for (final RadioPlayerService service : RadioPlayerServices.services) { cache.put(service, new MapMaker().softValues().expireAfterWrite(30, TimeUnit.MINUTES).makeComputingMap(new Function<LocalDate, Set<RadioPlayerFTPUploadResult>>() { @Override ...
private void loadCache() { for (final RadioPlayerService service : RadioPlayerServices.services) { cache.put(service, new MapMaker().softValues().expireAfterWrite(30, TimeUnit.MINUTES).<LocalDate, Set<RadioPlayerFTPUploadResult>>makeComputingMap(new Function<LocalDate, Set<RadioPlayerFTPUploadRe...
diff --git a/org.eclipse.virgo.kernel.smoketest/src/test/java/org/eclipse/virgo/kernel/smoketest/KernelStartupAndShutdownTests.java b/org.eclipse.virgo.kernel.smoketest/src/test/java/org/eclipse/virgo/kernel/smoketest/KernelStartupAndShutdownTests.java index 95c515be..2797a028 100644 --- a/org.eclipse.virgo.kernel.smok...
true
true
public void testKernelStartUpStatus() throws Exception { new Thread(new KernelStartUpThread()).start(); AbstractKernelTests.waitForKernelStartFully(); assertEquals(STATUS_STARTED, getKernelStartUpStatus()); }
public void testKernelStartUpStatus() throws Exception { new Thread(new KernelStartUpThread()).start(); AbstractKernelTests.waitForKernelStartFully(); Thread.sleep(20000); // wait for startup to complete in case it fails assertEquals(STATUS_STARTED, getKernelStartUpStatus()); }
diff --git a/src/main/java/stirling/fix/messages/Parser.java b/src/main/java/stirling/fix/messages/Parser.java index 806c0062..f03e97a8 100644 --- a/src/main/java/stirling/fix/messages/Parser.java +++ b/src/main/java/stirling/fix/messages/Parser.java @@ -1,84 +1,87 @@ /* * Copyright 2010 the original author or autho...
true
true
private static void parse(MessageFactory messageFactory, ByteBuffer b, Callback callback, DateTime receiveTime) { MessageHeader header = null; try { header = messageFactory.createHeader(); header.parse(b); header.validate(); Message msg = messageFactor...
private static void parse(MessageFactory messageFactory, ByteBuffer b, Callback callback, DateTime receiveTime) { MessageHeader header = null; try { header = messageFactory.createHeader(); header.parse(b); header.validate(); Message msg = messageFactor...
diff --git a/JsTestDriver/src/com/google/jstestdriver/output/FileNameFormatter.java b/JsTestDriver/src/com/google/jstestdriver/output/FileNameFormatter.java index 2bf4a94..3e69aab 100644 --- a/JsTestDriver/src/com/google/jstestdriver/output/FileNameFormatter.java +++ b/JsTestDriver/src/com/google/jstestdriver/output/Fi...
true
true
public String format(String path, String format) { String escaped = path .replace('/', 'a') .replace('\\', 'a') .replace(">", "a") .replace(".", "a") .replace(":", "a") .replace(":", "a") .replace(";", "a") .replace("+", "a") .replace(",", "a...
public String format(String path, String format) { String escaped = path .replace('/', 'a') .replace('\\', 'a') .replace(">", "a") .replace(":", "a") .replace(":", "a") .replace(";", "a") .replace("+", "a") .replace(",", "a") .replace("<", "a...
diff --git a/servicemix-common/src/main/java/org/apache/servicemix/common/ManagementSupport.java b/servicemix-common/src/main/java/org/apache/servicemix/common/ManagementSupport.java index c828c1d95..e270aa262 100644 --- a/servicemix-common/src/main/java/org/apache/servicemix/common/ManagementSupport.java +++ b/service...
false
true
public static String createComponentMessage(Message msg) { try { StringBuffer sw = new StringBuffer(); // component-task-result sw.append("<component-task-result "); sw.append("xmlns=\"http://java.sun.com/xml/ns/jbi/management-message\">"); sw.appe...
public static String createComponentMessage(Message msg) { try { StringBuffer sw = new StringBuffer(); // component-task-result sw.append("<component-task-result "); sw.append("xmlns=\"http://java.sun.com/xml/ns/jbi/management-message\">"); sw.appe...
diff --git a/hudson-core/src/main/java/hudson/model/ItemGroupMixIn.java b/hudson-core/src/main/java/hudson/model/ItemGroupMixIn.java index 3d22a2d2..93633496 100644 --- a/hudson-core/src/main/java/hudson/model/ItemGroupMixIn.java +++ b/hudson-core/src/main/java/hudson/model/ItemGroupMixIn.java @@ -1,303 +1,303 @@ /***...
true
true
public synchronized TopLevelItem createTopLevelItem(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { acl.checkPermission(Job.CREATE); TopLevelItem result; String requestContentType = req.getContentType(); if (requestContentType == null) { ...
public synchronized TopLevelItem createTopLevelItem(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { acl.checkPermission(Job.CREATE); TopLevelItem result; String requestContentType = req.getContentType(); if (requestContentType == null) { ...
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 46436bbea..b0cb3527b 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1,1687 +1,1687 @@ package cgeo.geocaching.maps; import cgeo.geocaching.Directio...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // class init res = this.getResources(); activity = this.getActivity(); app = (cgeoapplication) activity.getApplication(); int countBubbleCnt = app.getAllStoredCachesCount(true, Ca...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // class init res = this.getResources(); activity = this.getActivity(); app = (cgeoapplication) activity.getApplication(); int countBubbleCnt = app.getAllStoredCachesCount(true, Ca...
diff --git a/src/main/java/com/github/kpacha/jkata/anagram/Anagram.java b/src/main/java/com/github/kpacha/jkata/anagram/Anagram.java index 988f278..a1891ae 100644 --- a/src/main/java/com/github/kpacha/jkata/anagram/Anagram.java +++ b/src/main/java/com/github/kpacha/jkata/anagram/Anagram.java @@ -1,13 +1,16 @@ package ...
true
true
public static Set<String> generate(String source) { Set<String> result = new HashSet<String>(); result.add(source); return result; }
public static Set<String> generate(String source) { Set<String> result = new HashSet<String>(); if (source.length() == 2) { result.add(source.substring(1) + source.substring(0, 1)); } result.add(source); return result; }
diff --git a/src/cc/hughes/droidchatty/SingleThreadView.java b/src/cc/hughes/droidchatty/SingleThreadView.java index 882fc98..1d1883c 100644 --- a/src/cc/hughes/droidchatty/SingleThreadView.java +++ b/src/cc/hughes/droidchatty/SingleThreadView.java @@ -1,22 +1,21 @@ package cc.hughes.droidchatty; import android.os....
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // create the fragment, and show it! ThreadViewFragment frag = new ThreadViewFragment(); frag.setArguments(getIntent().getExtras()); getSupportFragmentManager().beginTransact...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // create the fragment, and show it! ThreadViewFragment frag = new ThreadViewFragment(); frag.setArguments(getIntent().getExtras()); getSupportFragmentManager().beginTransact...
diff --git a/Android/on.hovercraft.android/src/on/hovercraft/android/BtService.java b/Android/on.hovercraft.android/src/on/hovercraft/android/BtService.java index 4920b6c..ad11f66 100644 --- a/Android/on.hovercraft.android/src/on/hovercraft/android/BtService.java +++ b/Android/on.hovercraft.android/src/on/hovercraft/an...
true
true
public void onReceive(Context context, Intent intent) { String action = intent.getAction(); //function called if(action.equalsIgnoreCase("callFunction")) { //witch function if(intent.hasExtra("setupServer")) { Log.d(TAG, "BtService: setupServer"); if( !bluetoothServerUp ) s...
public void onReceive(Context context, Intent intent) { String action = intent.getAction(); //function called if(action.equalsIgnoreCase("callFunction")) { //witch function if(intent.hasExtra("setupServer")) { Log.d(TAG, "BtService: setupServer"); if( !bluetoothServerUp ) s...
diff --git a/src/fresco/Main.java b/src/fresco/Main.java index 540ae4e..4db8389 100644 --- a/src/fresco/Main.java +++ b/src/fresco/Main.java @@ -1,22 +1,23 @@ /* * Part of Fresco software under GPL licence * http://www.gnu.org/licenses/gpl-3.0.txt */ package fresco; import fresco.swing.CAppWindow; /** *...
true
true
public static void main(String[] args) { CData.mainFrame = new CAppWindow("Fresco"); CData.mainFrame.setVisible(true); }
public static void main(String[] args) { System.setProperty("apple.laf.useScreenMenuBar", "true"); CData.mainFrame = new CAppWindow("Fresco"); CData.mainFrame.setVisible(true); }
diff --git a/code/src/java/edu/stanford/cs224u/disentanglement/features/TFIDFFeatureFactory.java b/code/src/java/edu/stanford/cs224u/disentanglement/features/TFIDFFeatureFactory.java index 8437c13..96700c4 100644 --- a/code/src/java/edu/stanford/cs224u/disentanglement/features/TFIDFFeatureFactory.java +++ b/code/src/ja...
false
true
public Feature createFeature(List<Message> messages) { final ImmutableMap.Builder<String, Multiset<String>> tfCounterBuilder = ImmutableMap.builder(); final ImmutableMultiset.Builder<String> dfCounterBuilder = ImmutableMultiset.builder(); final int numMessages = messages.size(); for...
public Feature createFeature(List<Message> messages) { final ImmutableMap.Builder<String, Multiset<String>> tfCounterBuilder = ImmutableMap.builder(); final ImmutableMultiset.Builder<String> dfCounterBuilder = ImmutableMultiset.builder(); final int numMessages = messages.size(); for...
diff --git a/crescent_core_web/src/test/java/com/tistory/devyongsik/index/CrescentIndexerExecutorTest.java b/crescent_core_web/src/test/java/com/tistory/devyongsik/index/CrescentIndexerExecutorTest.java index 8db96b6..c35091d 100644 --- a/crescent_core_web/src/test/java/com/tistory/devyongsik/index/CrescentIndexerExecu...
true
true
public void execute() { CrescentCollections crescentCollections = CrescentCollectionHandler.getInstance().getCrescentCollections(); Map<String, CrescentCollection> collections = crescentCollections.getCrescentCollectionsMap(); CrescentCollection sampleCollection = collections.get("sample_wiki"); Handler hand...
public void execute() { CrescentCollections crescentCollections = CrescentCollectionHandler.getInstance().getCrescentCollections(); Map<String, CrescentCollection> collections = crescentCollections.getCrescentCollectionsMap(); CrescentCollection sampleCollection = collections.get("sample_wiki"); Handler hand...
diff --git a/winstone/src/main/java/net/winstone/core/HostConfiguration.java b/winstone/src/main/java/net/winstone/core/HostConfiguration.java index 6232511..373cac5 100644 --- a/winstone/src/main/java/net/winstone/core/HostConfiguration.java +++ b/winstone/src/main/java/net/winstone/core/HostConfiguration.java @@ -1,3...
false
true
protected final File getWebRoot(final String requestedWebroot, final String warfileName) throws IOException { if (warfileName != null) { HostConfiguration.logger.info("Beginning extraction from war file"); // open the war file final File warfileRef = new File(warfileName); if (!warfileRef.exists() || !w...
protected final File getWebRoot(final String requestedWebroot, final String warfileName) throws IOException { if (warfileName != null) { HostConfiguration.logger.info("Beginning extraction from war file"); // open the war file final File warfileRef = new File(warfileName); if (!warfileRef.exists() || !w...
diff --git a/src/com/oreilly/common/text/Translater.java b/src/com/oreilly/common/text/Translater.java index bc7369f..216e35f 100644 --- a/src/com/oreilly/common/text/Translater.java +++ b/src/com/oreilly/common/text/Translater.java @@ -1,120 +1,122 @@ package com.oreilly.common.text; import java.io.File; import j...
false
true
public Translater( File translationDirectory, Logger errorLog ) { // load the contents of the translation files.. List< YamlConfiguration > files = Yaml.loadYamlDirectory( translationDirectory, errorLog ); for ( YamlConfiguration config : files ) { String name = config.getString( TranslationFileConstants.name...
public Translater( File translationDirectory, Logger errorLog ) { // load the contents of the translation files.. List< YamlConfiguration > files = Yaml.loadYamlDirectory( translationDirectory, errorLog ); for ( YamlConfiguration config : files ) { String name = config.getString( TranslationFileConstants.name...
diff --git a/qa/app/controllers/Application.java b/qa/app/controllers/Application.java index 923ece9..1fbeb4c 100644 --- a/qa/app/controllers/Application.java +++ b/qa/app/controllers/Application.java @@ -1,108 +1,109 @@ package controllers; import java.util.ArrayList; import java.util.Calendar; import java.util....
false
true
public static void search(String text, String menu) { // When site is first time loaded if (text == null) { render(); } boolean isQuestion = menu.equals("search"); boolean isUserByTag = menu.equals("similarUserByTag"); boolean isUserByContent = menu.equals("similarUserByContent"); User currentUser = ...
public static void search(String text, String menu) { // When site is first time loaded if (text == null) { render(); } boolean isQuestion = menu.equals("search"); boolean isUserByTag = menu.equals("similarUserByTag"); boolean isUserByContent = menu.equals("similarUserByContent"); User currentUser = ...
diff --git a/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/XPath20ExpressionRuntime.java b/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/XPath20ExpressionRuntime.java index d5678ceea..3f00c7d44 100644 --- a/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath...
true
true
private Object evaluate(OExpression cexp, EvaluationContext ctx, QName type) throws FaultException, EvaluationException { try { net.sf.saxon.xpath.XPathFactoryImpl xpf = new net.sf.saxon.xpath.XPathFactoryImpl(); OXPath20ExpressionBPEL20 oxpath20 = ((OXPath20ExpressionBPEL20) cexp);...
private Object evaluate(OExpression cexp, EvaluationContext ctx, QName type) throws FaultException, EvaluationException { try { net.sf.saxon.xpath.XPathFactoryImpl xpf = new net.sf.saxon.xpath.XPathFactoryImpl(); OXPath20ExpressionBPEL20 oxpath20 = ((OXPath20ExpressionBPEL20) cexp);...
diff --git a/src/widgets/Graphical_Boolean.java b/src/widgets/Graphical_Boolean.java index 69b28c6b..2ed48a78 100644 --- a/src/widgets/Graphical_Boolean.java +++ b/src/widgets/Graphical_Boolean.java @@ -1,275 +1,275 @@ /* * This file is part of Domodroid. * * Domodroid is Copyright (C) 2011 Pierre LAINE, Maxime...
false
true
public Graphical_Boolean(tracerengine Trac, Activity context, String address, String name, int id,int dev_id, String state_key, final String usage, String parameters, String model_id, int update, int widgetSize) throws JSONException { super(context); this.Tracer = Trac; this.state_key = st...
public Graphical_Boolean(tracerengine Trac, Activity context, String address, String name, int id,int dev_id, String state_key, final String usage, String parameters, String model_id, int update, int widgetSize) throws JSONException { super(context); this.Tracer = Trac; this.state_key = st...
diff --git a/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java b/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java index 3bcd15b80..72c03e1e7 100644 --- a/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTes...
true
true
protected void tearDown() throws Exception { wiser.stop(); // Fix for slow Jenkins while (wiser.getServer().isRunning()) { Thread.sleep(100L); } super.tearDown(); }
protected void tearDown() throws Exception { wiser.stop(); // Fix for slow Jenkins Thread.sleep(250L); super.tearDown(); }
diff --git a/src/edu/cornell/mannlib/vitro/webapp/visualization/utilities/UtilitiesRequestHandler.java b/src/edu/cornell/mannlib/vitro/webapp/visualization/utilities/UtilitiesRequestHandler.java index 52714cdb..bc8b003f 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/visualization/utilities/UtilitiesRequestHandler.ja...
true
true
public Object generateAjaxVisualization(VitroRequest vitroRequest, Log log, Dataset dataset) throws MalformedQueryParametersException { String individualURI = vitroRequest.getParameter( VisualizationFrameworkConstants.INDIVIDUAL_URI_KEY); String visMode = v...
public Object generateAjaxVisualization(VitroRequest vitroRequest, Log log, Dataset dataset) throws MalformedQueryParametersException { String individualURI = vitroRequest.getParameter( VisualizationFrameworkConstants.INDIVIDUAL_URI_KEY); String visMode = v...
diff --git a/src/main/java/net/frontlinesms/ui/handler/email/EmailAccountDialogHandler.java b/src/main/java/net/frontlinesms/ui/handler/email/EmailAccountDialogHandler.java index 78afebe..484f315 100644 --- a/src/main/java/net/frontlinesms/ui/handler/email/EmailAccountDialogHandler.java +++ b/src/main/java/net/frontlin...
true
true
public void saveEmailAccount(Object dialog) { LOG.trace("ENTER"); String server = ui.getText(ui.find(dialog, COMPONENT_TF_MAIL_SERVER)); String accountName = ui.getText(ui.find(dialog, COMPONENT_TF_ACCOUNT)); String password = ui.getText(ui.find(dialog, COMPONENT_TF_ACCOUNT_PASS)); boolean useSSL = ui.isSele...
public void saveEmailAccount(Object dialog) { LOG.trace("ENTER"); String server = ui.getText(ui.find(dialog, COMPONENT_TF_MAIL_SERVER)); String accountName = ui.getText(ui.find(dialog, COMPONENT_TF_ACCOUNT)); String password = ui.getText(ui.find(dialog, COMPONENT_TF_ACCOUNT_PASS)); boolean useSSL = ui.isSele...
diff --git a/plugins/cloud/src/main/java/org/elasticsearch/discovery/cloud/CloudDiscovery.java b/plugins/cloud/src/main/java/org/elasticsearch/discovery/cloud/CloudDiscovery.java index efce1dbc466..a85dd1f538a 100644 --- a/plugins/cloud/src/main/java/org/elasticsearch/discovery/cloud/CloudDiscovery.java +++ b/plugins/c...
true
true
@Inject public CloudDiscovery(Settings settings, ClusterName clusterName, ThreadPool threadPool, TransportService transportService, ClusterService clusterService, ZenPingService pingService, CloudComputeService computeService) { super(settings, clusterName, threadPool, tran...
@Inject public CloudDiscovery(Settings settings, ClusterName clusterName, ThreadPool threadPool, TransportService transportService, ClusterService clusterService, ZenPingService pingService, CloudComputeService computeService) { super(settings, clusterName, threadPool, tran...
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/AndroidLaunchController.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/AndroidLaunchController.java index 38d2397f2..16dad906e 100644 --- a/eclipse/plugins/com.and...
true
true
public void launch(final IProject project, String mode, IFile apk, String packageName, String debugPackageName, Boolean debuggable, String requiredApiVersionNumber, final IAndroidLaunchAction launchAction, final AndroidLaunchConfiguration config, final AndroidLaunch launch, ...
public void launch(final IProject project, String mode, IFile apk, String packageName, String debugPackageName, Boolean debuggable, String requiredApiVersionNumber, final IAndroidLaunchAction launchAction, final AndroidLaunchConfiguration config, final AndroidLaunch launch, ...
diff --git a/service/src/main/java/org/openengsb/labs/delegation/service/internal/Activator.java b/service/src/main/java/org/openengsb/labs/delegation/service/internal/Activator.java index 3ed55cb..8bbd39e 100644 --- a/service/src/main/java/org/openengsb/labs/delegation/service/internal/Activator.java +++ b/service/src...
true
true
private synchronized void handleBundleInstall(Bundle b) { LOGGER.info("injecting ClassProvider-Service into bundle {}.", b.getSymbolicName()); Enumeration<String> keys = b.getHeaders().keys(); while (keys.hasMoreElements()) { String key = keys.nextElement(); if (key.e...
private synchronized void handleBundleInstall(Bundle b) { LOGGER.info("injecting ClassProvider-Service into bundle {}.", b.getSymbolicName()); @SuppressWarnings("unchecked") Enumeration<String> keys = b.getHeaders().keys(); while (keys.hasMoreElements()) { String key = ke...
diff --git a/src/org/openstreetmap/josm/actions/search/SearchAction.java b/src/org/openstreetmap/josm/actions/search/SearchAction.java index 219a0c4b..7fe2ff36 100644 --- a/src/org/openstreetmap/josm/actions/search/SearchAction.java +++ b/src/org/openstreetmap/josm/actions/search/SearchAction.java @@ -1,340 +1,341 @@ ...
false
true
public static SearchSetting showSearchDialog(SearchSetting initialValues) { // -- prepare the combo box with the search expressions // JLabel label = new JLabel( initialValues instanceof Filter ? tr("Please enter a filter string.") : tr("Please enter a search string.")); final Histo...
public static SearchSetting showSearchDialog(SearchSetting initialValues) { // -- prepare the combo box with the search expressions // JLabel label = new JLabel( initialValues instanceof Filter ? tr("Please enter a filter string.") : tr("Please enter a search string.")); final Histo...
diff --git a/src/com/android/calendar/event/CreateEventDialogFragment.java b/src/com/android/calendar/event/CreateEventDialogFragment.java index 868cb3a5..5eb69a10 100644 --- a/src/com/android/calendar/event/CreateEventDialogFragment.java +++ b/src/com/android/calendar/event/CreateEventDialogFragment.java @@ -1,315 +1,...
true
true
private void setDefaultCalendarView(Cursor cursor) { if (cursor == null || cursor.getCount() == 0) { // Create an error message for the user that, when clicked, // will exit this activity without saving the event. dismiss(); AlertDialog.Builder builder = new A...
private void setDefaultCalendarView(Cursor cursor) { if (cursor == null || cursor.getCount() == 0) { // Create an error message for the user that, when clicked, // will exit this activity without saving the event. dismiss(); AlertDialog.Builder builder = new A...
diff --git a/examples/org.eclipse.ocl.examples.xtext.base/src/org/eclipse/ocl/examples/xtext/base/attributes/PathElementCSAttribution.java b/examples/org.eclipse.ocl.examples.xtext.base/src/org/eclipse/ocl/examples/xtext/base/attributes/PathElementCSAttribution.java index 76e433d195..19d1889adf 100644 --- a/examples/or...
true
true
public ScopeView computeLookup(@NonNull EObject target, @NonNull EnvironmentView environmentView, @NonNull ScopeView scopeView) { PathElementCS csPathElement = (PathElementCS)target; EClassifier eClassifier = csPathElement.getElementType(); if (eClassifier == null) { // If this is actually a definition ...
public ScopeView computeLookup(@NonNull EObject target, @NonNull EnvironmentView environmentView, @NonNull ScopeView scopeView) { PathElementCS csPathElement = (PathElementCS)target; EClassifier eClassifier = csPathElement.getElementType(); if (eClassifier == null) { // If this is actually a definition ...
diff --git a/src/com/weibogrep/user/Updater.java b/src/com/weibogrep/user/Updater.java index e55cf72..cf36e55 100644 --- a/src/com/weibogrep/user/Updater.java +++ b/src/com/weibogrep/user/Updater.java @@ -1,23 +1,30 @@ package com.weibogrep.user; import java.io.*; import com.weibogrep.util.*; public class Updat...
true
true
public static void updateAll() { File baseDir = new File(UserMgmt.BASE_DIR); String[] users = baseDir.list(); for (int i = 0; i < users.length; i++) { long uid = Long.parseLong(users[i]); UserMgmt um = new UserMgmt(uid); ZLog.info("updating " + uid + " , l...
public static void updateAll() { File baseDir = new File(UserMgmt.BASE_DIR); File[] files = baseDir.listFiles(); for (int i = 0; i < files.length; i++) { if (files[i].isDirectory()) { try { long uid = Long.parseLong(files[i].getName()); ...
diff --git a/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java b/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java index 1e275c8..fd2aed4 100644 --- a/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java +++ b/src/net/appositedesigns/fileexplorer/quickac...
true
true
public void showQuickActions(final View view, final FileListEntry entry) { final File file = entry.getPath(); final QuickAction actions = new QuickAction(view); int[] availableActions = FileActionsHelper.getContextMenuOptions(file, mContext); ActionItem action = null; for(int i=availableActions.le...
public void showQuickActions(final View view, final FileListEntry entry) { final File file = entry.getPath(); final QuickAction actions = new QuickAction(view); int[] availableActions = FileActionsHelper.getContextMenuOptions(file, mContext); ActionItem action = null; for(int i=availableActions.le...
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ElementType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ElementType.java index 9a48c6f..e2dd308 100644 --- a/bundles/org.eclipse.wst.xml.xpath...
true
true
public ResultSequence typed_value() { ResultSequence rs = ResultSequenceFactory.create_new(); PSVIElementNSImpl psviElem = (PSVIElementNSImpl)_value; XSTypeDefinition typeDef = psviElem.getTypeDefinition(); if (XSCtrLibrary.XML_SCHEMA_NS.equals(typeDef.getNamespace())) { Object schemaTypeValue = get...
public ResultSequence typed_value() { ResultSequence rs = ResultSequenceFactory.create_new(); PSVIElementNSImpl psviElem = (PSVIElementNSImpl)_value; XSTypeDefinition typeDef = psviElem.getTypeDefinition(); if (typeDef != null && XSCtrLibrary.XML_SCHEMA_NS.equals(typeDef.getNamespace())) { Object sc...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/synchronize/StopManager.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/synchronize/StopManager.java index 80b8bde1e..24e8834da 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/synchronize/StopManager.java +++ b/de.fu_berlin.inf.dpp/src/de/fu_ber...
true
true
public void receive(final StopActivity stopActivity) { if (sharedProject == null) throw new IllegalStateException( "Cannot receive StopActivities without a shared project"); User user = sharedProject.getUser(stopActivity.getRecipient()); ...
public void receive(final StopActivity stopActivity) { if (sharedProject == null) throw new IllegalStateException( "Cannot receive StopActivities without a shared project"); User user = sharedProject.getUser(stopActivity.getRecipient()); ...
diff --git a/src/main/java/com/gitblit/wicket/pages/BlamePage.java b/src/main/java/com/gitblit/wicket/pages/BlamePage.java index ef023b75..ae85c433 100644 --- a/src/main/java/com/gitblit/wicket/pages/BlamePage.java +++ b/src/main/java/com/gitblit/wicket/pages/BlamePage.java @@ -1,286 +1,289 @@ /* * Copyright 2011 gi...
false
true
public BlamePage(PageParameters params) { super(params); final String blobPath = WicketUtils.getPath(params); final String blameTypeParam = params.getString("blametype", BlameType.COMMIT.toString()); final BlameType activeBlameType = BlameType.get(blameTypeParam); RevCommit commit = getCommit(); add(ne...
public BlamePage(PageParameters params) { super(params); final String blobPath = WicketUtils.getPath(params); final String blameTypeParam = params.getString("blametype", BlameType.COMMIT.toString()); final BlameType activeBlameType = BlameType.get(blameTypeParam); RevCommit commit = getCommit(); add(ne...
diff --git a/samples/tinycloud/org.kevoree.modeling.genetic.tinycloud.sample/src/main/java/org/kevoree/modeling/genetic/tinycloud/SampleRunnerEpsilonMOEAD_Darwin.java b/samples/tinycloud/org.kevoree.modeling.genetic.tinycloud.sample/src/main/java/org/kevoree/modeling/genetic/tinycloud/SampleRunnerEpsilonMOEAD_Darwin.ja...
true
true
public static void main(String[] args) throws Exception { GeneticEngine<Cloud> engine = new GeneticEngine<Cloud>(); engine.setMutationSelectionStrategy(MutationSelectionStrategy.RANDOM); engine.addOperator(new AddNodeMutator()); engine.addOperator(new RemoveNodeMutator()); ...
public static void main(String[] args) throws Exception { GeneticEngine<Cloud> engine = new GeneticEngine<Cloud>(); engine.setMutationSelectionStrategy(MutationSelectionStrategy.RANDOM); engine.addOperator(new AddNodeMutator()); engine.addOperator(new RemoveNodeMutator()); ...
diff --git a/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java b/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java index a50e2bc..e13fcdc 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/Java_CCN/com/parc/ccn/library/profiles/VersioningProfile.java b/Java_CCN/com/parc/ccn/library/profiles/VersioningProfile.java index f03343478..eb80063f2 100644 --- a/Java_CCN/com/parc/ccn/library/profiles/VersioningProfile.java +++ b/Java_CCN/com/parc/ccn/library/profiles/VersioningProfile.java @@ -1,529 +...
true
true
public static ContentObject getFirstBlockOfLatestVersionAfter(ContentName startingVersion, Long startingSegmentNumber, long timeout, ContentVerifier verifier, CCNLibrary library) throws IOException { Library.logger().info("getFirstBlockOfLatestVe...
public static ContentObject getFirstBlockOfLatestVersionAfter(ContentName startingVersion, Long startingSegmentNumber, long timeout, ContentVerifier verifier, CCNLibrary library) throws IOException { Library.logger().info("getFirstBlockOfLatestVe...
diff --git a/src/main/java/com/socialsite/BasePage.java b/src/main/java/com/socialsite/BasePage.java index 7af3567..e30ef03 100644 --- a/src/main/java/com/socialsite/BasePage.java +++ b/src/main/java/com/socialsite/BasePage.java @@ -1,116 +1,116 @@ /** * Copyright SocialSite (C) 2009 * * This program is ...
true
true
public void renderHead(final IHeaderResponse response) { // NOTE add all the css references here.Don't add css link in the other // pages or panel.This will help in combing all the css files into // single file during deployment response.renderCSSReference("css/libraries.css"); response.renderCSSReference...
public void renderHead(final IHeaderResponse response) { // NOTE add all the css references here.Don't add css link in the other // pages or panel.This will help in combing all the css files into // single file during deployment response.renderCSSReference("css/libraries.css"); response.renderCSSReference...
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java index c3c6fdaef..6be9dbdd3 100644 --- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java +++ ...
true
true
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence(); double previousElevation = Double.MAX_VALUE; dou...
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence(); double previousElevation = Double.MAX_VALUE; dou...