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/pcgen/code/src/java/pcgen/gui2/PCGenFrame.java b/pcgen/code/src/java/pcgen/gui2/PCGenFrame.java index 9ccf562b..03c9e12e 100644 --- a/pcgen/code/src/java/pcgen/gui2/PCGenFrame.java +++ b/pcgen/code/src/java/pcgen/gui2/PCGenFrame.java @@ -1,2030 +1,2037 @@ /* * PCGenFrame.java * Copyright 2008 Connor P...
false
true
public void loadCharacterFromFile(final File pcgFile) { if (!PCGFile.isPCGenCharacterFile(pcgFile)) { JOptionPane.showMessageDialog(this, LanguageBundle.getFormattedString("in_loadPcInvalid", pcgFile), //$NON-NLS-1$ LanguageBundle.getString("in_loadPcFailTtile"), //$NON-NLS-1$ JOptionPane.ERROR_MES...
public void loadCharacterFromFile(final File pcgFile) { if (!PCGFile.isPCGenCharacterFile(pcgFile)) { JOptionPane.showMessageDialog(this, LanguageBundle.getFormattedString("in_loadPcInvalid", pcgFile), //$NON-NLS-1$ LanguageBundle.getString("in_loadPcFailTtile"), //$NON-NLS-1$ JOptionPane.ERROR_MES...
diff --git a/src/org/opensolaris/opengrok/web/DirectoryListing.java b/src/org/opensolaris/opengrok/web/DirectoryListing.java index 26e5038..b5fabbd 100644 --- a/src/org/opensolaris/opengrok/web/DirectoryListing.java +++ b/src/org/opensolaris/opengrok/web/DirectoryListing.java @@ -1,150 +1,150 @@ /* * CDDL HEADER STA...
true
true
public List listTo(File dir, Writer out, String path, String[] files) throws IOException { Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); boolean alt = true; Format dateFormatter = new SimpleDateFormat("dd-MMM-yyyy", Locale.getDefault()); out.write("<table cellspacing=\"0\" borde...
public List<String> listTo(File dir, Writer out, String path, String[] files) throws IOException { Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); boolean alt = true; Format dateFormatter = new SimpleDateFormat("dd-MMM-yyyy", Locale.getDefault()); out.write("<table cellspacing=\"0...
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/http/HTTPConnection.java b/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/http/HTTPConnection.java index fa365c7f8..d2892a265 100644 --- a/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/http/HTTPConnection.java +++ b/javasvn/src/org/tmatesoft/svn/c...
true
true
public HTTPStatus request(String method, String path, Map header, InputStream body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) throws SVNException { if (myCredentialsChallenge != null) { myCredentialsChallenge.put("methodname", method); myCredentialsChallenge.put("ur...
public HTTPStatus request(String method, String path, Map header, InputStream body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) throws SVNException { if (myCredentialsChallenge != null) { myCredentialsChallenge.put("methodname", method); myCredentialsChallenge.put("ur...
diff --git a/source/RMG/jing/rxn/ArrheniusEPKinetics.java b/source/RMG/jing/rxn/ArrheniusEPKinetics.java index f9e3b3ab..3a87d5fe 100644 --- a/source/RMG/jing/rxn/ArrheniusEPKinetics.java +++ b/source/RMG/jing/rxn/ArrheniusEPKinetics.java @@ -1,158 +1,158 @@ ////////////////////////////////////////////////////////////...
true
true
public ArrheniusKinetics fixBarrier(double p_Hrxn){ // create a new ArrheniusKinetics object with a corrected barrier and return it. double al = alpha.getValue(); double Eo = E.getValue(); double Ea = Eo + al * p_Hrxn; UncertainDouble newEa = getE(); String newComment = getComment(); String warn...
public ArrheniusKinetics fixBarrier(double p_Hrxn){ // create a new ArrheniusKinetics object with a corrected barrier and return it. double al = alpha.getValue(); double Eo = E.getValue(); double Ea = Eo + al * p_Hrxn; UncertainDouble newEa = getE(); String newComment = getComment(); String warn...
diff --git a/4490/src/project/Assembler.java b/4490/src/project/Assembler.java index c7bf51a..f124c62 100644 --- a/4490/src/project/Assembler.java +++ b/4490/src/project/Assembler.java @@ -1,1092 +1,1092 @@ package project; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; imp...
true
true
public void runVM(List<Instruction> instructionList, int startInstructionAt, int endInstr) { preloadReg(); boolean stopVM = false; String lastRegUsedInt = ""; String lastRegUsedChar = ""; for (int i = startInstructionAt; i < endInstr; i++) { Integer newValue; ...
public void runVM(List<Instruction> instructionList, int startInstructionAt, int endInstr) { preloadReg(); boolean stopVM = false; String lastRegUsedInt = ""; String lastRegUsedChar = ""; for (int i = startInstructionAt; i < endInstr; i++) { Integer newValue; ...
diff --git a/test/org/jrobin/cmd/RrdGraphCmdTest.java b/test/org/jrobin/cmd/RrdGraphCmdTest.java index ff46846..1daf6f3 100644 --- a/test/org/jrobin/cmd/RrdGraphCmdTest.java +++ b/test/org/jrobin/cmd/RrdGraphCmdTest.java @@ -1,224 +1,218 @@ package org.jrobin.cmd; import java.io.IOException; import org.jrobin.co...
false
true
public void setUp() throws RrdException, IOException { // Don't use stdout; this silences output if we're outputting to "-" // If debugging, you may wish to turn this to true, in case there's // output that is helpful in figuring // But, note that then you'll get the GIF file printed to stdout as well RrdToo...
public void setUp() throws RrdException, IOException { // Don't use stdout; this silences output if we're outputting to "-" // If debugging, you may wish to turn this to true, in case there's // output that is helpful in figuring // But, note that then you'll get the GIF file printed to stdout as well RrdToo...
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index 71c4896a..d23b8ff0 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -1,909 +1,909 @@ ...
true
true
private static void onBufferDrawKey(final Key key, final Canvas canvas, Paint paint, KeyDrawParams params, boolean isManualTemporaryUpperCase) { final boolean debugShowAlign = LatinImeLogger.sVISUALDEBUG; // Draw key background. final int bgWidth = key.mWidth - key.mVisualInsetsL...
private static void onBufferDrawKey(final Key key, final Canvas canvas, Paint paint, KeyDrawParams params, boolean isManualTemporaryUpperCase) { final boolean debugShowAlign = LatinImeLogger.sVISUALDEBUG; // Draw key background. final int bgWidth = key.mWidth - key.mVisualInsetsL...
diff --git a/devel/web/web-application/src/main/java/net/contextfw/web/application/internal/WebResponder.java b/devel/web/web-application/src/main/java/net/contextfw/web/application/internal/WebResponder.java index 7bdfe0a..14730cd 100644 --- a/devel/web/web-application/src/main/java/net/contextfw/web/application/inter...
true
true
protected String getXSLDocumentContent() { List<ResourceEntry> rootResources = ResourceScanner.findResources( rootResourcePaths, XSL_ACCEPTOR); ResourceEntry root = null; Iterator<ResourceEntry> iter = rootResources.iterator(); while (iter.hasNext()) { ...
protected String getXSLDocumentContent() { List<ResourceEntry> rootResources = ResourceScanner.findResources( rootResourcePaths, XSL_ACCEPTOR); ResourceEntry root = null; Iterator<ResourceEntry> iter = rootResources.iterator(); while (iter.hasNext()) { ...
diff --git a/dspace/src/org/dspace/search/Harvest.java b/dspace/src/org/dspace/search/Harvest.java index 617a32ec1..b19bc2c7d 100644 --- a/dspace/src/org/dspace/search/Harvest.java +++ b/dspace/src/org/dspace/search/Harvest.java @@ -1,300 +1,300 @@ /* * Harvest.java * * Version: $Revision$ * * Date: $Date$ ...
true
true
public static List harvest(Context context, Collection scope, String startDate, String endDate, int offset, int limit, boolean items, boolean collections, boolean withdrawn) throws SQLException { // SQL to add to the list of tables ...
public static List harvest(Context context, Collection scope, String startDate, String endDate, int offset, int limit, boolean items, boolean collections, boolean withdrawn) throws SQLException { // SQL to add to the list of tables ...
diff --git a/wings/src/org/wings/table/SDefaultTableCellRenderer.java b/wings/src/org/wings/table/SDefaultTableCellRenderer.java index 43d6145a..55ef826c 100644 --- a/wings/src/org/wings/table/SDefaultTableCellRenderer.java +++ b/wings/src/org/wings/table/SDefaultTableCellRenderer.java @@ -1,127 +1,127 @@ /* * $Id$ ...
true
true
public SComponent getTableCellRendererComponent(STable table, Object value, boolean selected, int row, int c...
public SComponent getTableCellRendererComponent(STable table, Object value, boolean selected, int row, int c...
diff --git a/target_explorer/plugins/org.eclipse.tm.te.ui.terminals/src/org/eclipse/tm/te/ui/terminals/activator/UIPlugin.java b/target_explorer/plugins/org.eclipse.tm.te.ui.terminals/src/org/eclipse/tm/te/ui/terminals/activator/UIPlugin.java index a919f570e..f746882b0 100644 --- a/target_explorer/plugins/org.eclipse.t...
true
true
protected void initializeImageRegistry(ImageRegistry registry) { Bundle bundle = Platform.getBundle("org.eclipse.ui.console"); //$NON-NLS-1$ if (bundle != null && (bundle.getState() == Bundle.RESOLVED || bundle.getState() == Bundle.ACTIVE)) { URL url = bundle.getEntry(ImageConsts.IMAGE_DIR_ROOT + "full/" + Imag...
protected void initializeImageRegistry(ImageRegistry registry) { Bundle bundle = Platform.getBundle("org.eclipse.ui.console"); //$NON-NLS-1$ if (bundle != null) { URL url = bundle.getEntry(ImageConsts.IMAGE_DIR_ROOT + "full/" + ImageConsts.IMAGE_DIR_EVIEW + "console_view.gif"); //$NON-NLS-1$ //$NON-NLS-2$ re...
diff --git a/src/freemail/AccountManager.java b/src/freemail/AccountManager.java index 74bd83a..66a7818 100644 --- a/src/freemail/AccountManager.java +++ b/src/freemail/AccountManager.java @@ -1,440 +1,440 @@ /* * AccountManager.java * This file is part of Freemail * Copyright (C) 2006,2007,2008 Dave Baker * C...
true
true
public static boolean addShortAddress(FreemailAccount account, String alias) throws Exception { String invalid=validateShortAddress(alias); if(!invalid.equals("")) { throw new IllegalArgumentException("The short address may not contain the character '"+invalid+"'"); } alias = alias.toLowerCase(); Ma...
public static boolean addShortAddress(FreemailAccount account, String alias) throws Exception { String invalid=validateShortAddress(alias); if(!invalid.equals("")) { throw new IllegalArgumentException("The short address may not contain the character '"+invalid+"'"); } alias = alias.toLowerCase(); Ma...
diff --git a/plugins/wyclipse.core/src/wyclipse/core/builder/WhileyPath.java b/plugins/wyclipse.core/src/wyclipse/core/builder/WhileyPath.java index 47fa994..9c739a8 100644 --- a/plugins/wyclipse.core/src/wyclipse/core/builder/WhileyPath.java +++ b/plugins/wyclipse.core/src/wyclipse/core/builder/WhileyPath.java @@ -1,4...
true
true
public static final WhileyPath fromXmlDocument(Document xmldoc) { WhileyPath whileypath = new WhileyPath(); // First, check whether or not a bindir attribute is given on the root // of the whileypath file. Node root = xmldoc.getFirstChild(); Node globalBinDir = root.getAttributes().getNamedItem("bindir");...
public static final WhileyPath fromXmlDocument(Document xmldoc) { WhileyPath whileypath = new WhileyPath(); // First, check whether or not a bindir attribute is given on the root // of the whileypath file. Node root = xmldoc.getFirstChild(); Node globalBinDir = root.getAttributes().getNamedItem("bindir");...
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java b/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java index 29e738564..da03af90b 100644...
true
true
private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command, IProgressMonitor monitor, boolean retry) { String errorMessage = ""; //$NON-NLS-1$ try { File workDir = getWorkingDirectory(config); if (workDir == null) { workDir = new File(System.getProperty("user.home", ".")); ...
private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command, IProgressMonitor monitor, boolean retry) { String errorMessage = ""; //$NON-NLS-1$ try { File workDir = getWorkingDirectory(config); if (workDir == null) { workDir = new File(System.getProperty("user.home", ".")); ...
diff --git a/votable/src/main/uk/ac/starlink/votable/VOSAXDocumentBuilder.java b/votable/src/main/uk/ac/starlink/votable/VOSAXDocumentBuilder.java index 5c6593e81..a7416c241 100644 --- a/votable/src/main/uk/ac/starlink/votable/VOSAXDocumentBuilder.java +++ b/votable/src/main/uk/ac/starlink/votable/VOSAXDocumentBuilder....
false
true
public void startElement( String namespaceURI, String localName, String qName, Attributes atts ) throws SAXParseException { try { /* Create a DOM element. */ Element el; if ( localName != null && localName.length() > 0 ) { ...
public void startElement( String namespaceURI, String localName, String qName, Attributes atts ) throws SAXParseException { try { /* Create a DOM element. */ Element el; if ( localName != null && localName.length() > 0 ) { ...
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/PropertyTemplateModel.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/PropertyTemplateModel.java index eb3bf29ca..1ac77ae7c 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/...
true
true
protected void setVerboseDisplayValues(Property property) { // No verbose display for vitro and vitro public properties. // This models previous behavior. In theory the verbose display can be provided, but we may not want // to give anyone access to these properties, since the app...
protected void setVerboseDisplayValues(Property property) { // No verbose display for vitro and vitro public properties. // This models previous behavior. In theory the verbose display can be provided, but we may not want // to give anyone access to these properties, since the app...
diff --git a/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameMethodParticipant.java b/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameMethodParticipant.java index 34b2e6c6e..6d7525bb7 100644 --- a/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tool...
true
true
public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException { if(searcher == null) return status; if(element instanceof IMethod) { IMethod method = (IMethod)element; IMethod anotherMethod = getAnotherMethod(); if(method != null){ ...
public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException { if(searcher == null) return status; if(element instanceof IMethod) { IMethod method = (IMethod)element; IMethod anotherMethod = getAnotherMethod(); if(method != null){ ...
diff --git a/trunk/java/com/tigervnc/vncviewer/OptionsDialog.java b/trunk/java/com/tigervnc/vncviewer/OptionsDialog.java index 7854b49f..8cf0b1b1 100644 --- a/trunk/java/com/tigervnc/vncviewer/OptionsDialog.java +++ b/trunk/java/com/tigervnc/vncviewer/OptionsDialog.java @@ -1,406 +1,406 @@ /* Copyright (C) 2002-2005 R...
true
true
public OptionsDialog(OptionsDialogCallback cb_) { super(false); cb = cb_; setResizable(false); setTitle("VNC Viewer Options"); defaults = new UserPrefs("vncviewer"); getContentPane().setLayout( new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS)); JTabbedPane tabPane = new JTabb...
public OptionsDialog(OptionsDialogCallback cb_) { super(false); cb = cb_; setResizable(false); setTitle("VNC Viewer Options"); defaults = new UserPrefs("vncviewer"); getContentPane().setLayout( new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS)); JTabbedPane tabPane = new JTabb...
diff --git a/org.agileware.natural.cucumber.ui/src/org/agileware/natural/cucumber/ui/contentassist/CucumberProposalProvider.java b/org.agileware.natural.cucumber.ui/src/org/agileware/natural/cucumber/ui/contentassist/CucumberProposalProvider.java index 4b00111..d7b042f 100644 --- a/org.agileware.natural.cucumber.ui/src...
true
true
public void complete_StepDescription(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { Collection<String> proposals = matcher.findProposals(); for (String entry : proposals) { if (entry.charAt(0) == '^') { entry = entry.substring(1); } if (entry.ch...
public void complete_StepDescription(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { Collection<String> proposals = matcher.findProposals(); for (String entry : proposals) { if (entry.charAt(0) == '^') { entry = entry.substring(1); } if (entry.ch...
diff --git a/src/com/android/camera/ui/CameraRootView.java b/src/com/android/camera/ui/CameraRootView.java index 0cff14480..e49ac59a6 100644 --- a/src/com/android/camera/ui/CameraRootView.java +++ b/src/com/android/camera/ui/CameraRootView.java @@ -1,114 +1,116 @@ /* * Copyright (C) 2013 The Android Open Source Proj...
true
true
public void onLayout(boolean changed, int l, int t, int r, int b) { int rotation = Util.getDisplayRotation((Activity) getContext()); // all the layout code assumes camera device orientation to be portrait // adjust rotation for landscape int orientation = getResources().getConfigurat...
public void onLayout(boolean changed, int l, int t, int r, int b) { int rotation = Util.getDisplayRotation((Activity) getContext()); // all the layout code assumes camera device orientation to be portrait // adjust rotation for landscape int orientation = getResources().getConfigurat...
diff --git a/src/main/java/com/bluesmoke/farm/correlator/CrossOverCorrelator.java b/src/main/java/com/bluesmoke/farm/correlator/CrossOverCorrelator.java index cd53a6d..a3471a9 100644 --- a/src/main/java/com/bluesmoke/farm/correlator/CrossOverCorrelator.java +++ b/src/main/java/com/bluesmoke/farm/correlator/CrossOverCor...
false
true
public String createState() { String state = null; try{ int timeSpan = (Integer) config.get("timeSpan"); if(!config.containsKey("aggressiveUnderlying") || !aggressiveParent.currentUnderlyingComponents.containsKey(config.get("aggressiveUnderlying"))) { ...
public String createState() { String state = null; try{ int timeSpan = (Integer) config.get("timeSpan"); if(!config.containsKey("aggressiveUnderlying")) { killLineage(); return null; } Object o = aggressiveP...
diff --git a/src/main/java/pl/psnc/dl/wf4ever/ResearchObjectResource.java b/src/main/java/pl/psnc/dl/wf4ever/ResearchObjectResource.java index bb2d69d7..60347a01 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/ResearchObjectResource.java +++ b/src/main/java/pl/psnc/dl/wf4ever/ResearchObjectResource.java @@ -1,166 +1,166 ...
true
true
public Response createVersion(@PathParam("W_ID") String workspaceId, @PathParam("RO_ID") String researchObjectId, String data) throws DLibraException, IOException, TransformerException, URISyntaxException { DLibraDataSource dLibraDataSource = (DLibraDataSource) request .getAttribute(Constants.DLIBRA_DATA_S...
public Response createVersion(@PathParam("W_ID") String workspaceId, @PathParam("RO_ID") String researchObjectId, String data) throws DLibraException, IOException, TransformerException, URISyntaxException { DLibraDataSource dLibraDataSource = (DLibraDataSource) request .getAttribute(Constants.DLIBRA_DATA_S...
diff --git a/src/java/main/ca/nengo/ui/models/nodes/UIEnsemble.java b/src/java/main/ca/nengo/ui/models/nodes/UIEnsemble.java index 4ce2f0d9..a0840703 100644 --- a/src/java/main/ca/nengo/ui/models/nodes/UIEnsemble.java +++ b/src/java/main/ca/nengo/ui/models/nodes/UIEnsemble.java @@ -1,182 +1,182 @@ /* The contents of ...
true
true
public void collectSpikes(boolean collect) { if (collect) { if (spikeCollector == null || spikeCollector.isDestroyed()) { spikeCollector = new UISpikeProbe(this); newProbeAdded(spikeCollector); } } else { if (spikeCollector != null) { spikeCollector.destroy(); spikeCollector = null; } ...
public void collectSpikes(boolean collect) { if (collect) { if (spikeCollector == null || spikeCollector.isDestroyed()) { spikeCollector = new UISpikeProbe(this); newProbeAdded(spikeCollector); } } else { if (spikeCollector != null) { spikeCollector.destroyModel(); spikeCollector = null; ...
diff --git a/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java b/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java index 62ce82a..eefa768 100644 --- a/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java +++ b/src/main/java/bspkrs/armorstatushud/ArmorStatusHUD.java @@ -1,272 +1,274 @@ package bspkrs.arm...
false
true
private static void displayArmorStatus(Minecraft mc) { if (playerHasArmorEquipped(mc.thePlayer) || (showEquippedItem && canDisplayItem(mc.thePlayer.getCurrentEquippedItem()))) { int yOffset = enableItemName ? 18 : 16; int yBase = getY(countOfDisplaya...
private static void displayArmorStatus(Minecraft mc) { if (playerHasArmorEquipped(mc.thePlayer) || (showEquippedItem && canDisplayItem(mc.thePlayer.getCurrentEquippedItem()))) { int yOffset = enableItemName ? 18 : 16; int yBase = getY(countOfDisplaya...
diff --git a/src_new/org/argouml/ui/SplashScreen.java b/src_new/org/argouml/ui/SplashScreen.java index 9ba7ef0..a24b9ea 100644 --- a/src_new/org/argouml/ui/SplashScreen.java +++ b/src_new/org/argouml/ui/SplashScreen.java @@ -1,113 +1,114 @@ // Copyright (c) 1996-99 The Regents of the University of California. All // ...
false
true
public SplashScreen(String title, String iconName) { super(title); ImageIcon splashImage = Util.loadIconResource(iconName); JLabel splashButton = new JLabel(""); if (splashImage != null) { int imgWidth = splashImage.getIconWidth(); int imgHeight = splashImage.getIconHeight(); Dimensi...
public SplashScreen(String title, String iconName) { super(); ImageIcon splashImage = Util.loadIconResource(iconName); JLabel splashButton = new JLabel(""); if (splashImage != null) { int imgWidth = splashImage.getIconWidth(); int imgHeight = splashImage.getIconHeight(); Dimension sc...
diff --git a/MovieMobile/src/com/moviemobile/utils/ImageLoader.java b/MovieMobile/src/com/moviemobile/utils/ImageLoader.java index 5f36a0c..5a7f6e8 100644 --- a/MovieMobile/src/com/moviemobile/utils/ImageLoader.java +++ b/MovieMobile/src/com/moviemobile/utils/ImageLoader.java @@ -1,191 +1,191 @@ package com.moviemobil...
false
true
private Bitmap decodeFile(File f){ try { //decode image size BitmapFactory.Options o = new BitmapFactory.Options(); o.inJustDecodeBounds = true; FileInputStream stream1=new FileInputStream(f); BitmapFactory.decodeStream(stream1,null,o); ...
private Bitmap decodeFile(File f){ try { //decode image size BitmapFactory.Options o = new BitmapFactory.Options(); o.inJustDecodeBounds = true; FileInputStream stream1=new FileInputStream(f); BitmapFactory.decodeStream(stream1,null,o); ...
diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/SendToMyMaps.java b/MyTracks/src/com/google/android/apps/mytracks/io/SendToMyMaps.java index a5a89564..5b3d4818 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/io/SendToMyMaps.java +++ b/MyTracks/src/com/google/android/apps/mytracks/io/SendToMyMap...
true
true
private boolean uploadAllTrackPoints(final Track track) { int totalLocationsRead = 0; // TODO: This might not actually be accurate. long totalLocations = track.getStopId() - track.getStartId(); // Limit the number of elevation readings. Ideally we would want around 250. int elevationSamplingFrequ...
private boolean uploadAllTrackPoints(final Track track) { int totalLocationsRead = 0; // TODO: This might not actually be accurate. long totalLocations = track.getStopId() - track.getStartId(); // Limit the number of elevation readings. Ideally we would want around 250. int elevationSamplingFrequ...
diff --git a/hazelcast/src/main/java/com/hazelcast/instance/DefaultAddressPicker.java b/hazelcast/src/main/java/com/hazelcast/instance/DefaultAddressPicker.java index 09f0853d1f..4037115efd 100644 --- a/hazelcast/src/main/java/com/hazelcast/instance/DefaultAddressPicker.java +++ b/hazelcast/src/main/java/com/hazelcast/...
false
true
public void pickAddress() throws Exception { if (publicAddress != null || bindAddress != null) { return; } try { final NetworkConfig networkConfig = node.getConfig().getNetworkConfig(); final AddressDefinition bindAddressDef = pickAddress(networkConfig); ...
public void pickAddress() throws Exception { if (publicAddress != null || bindAddress != null) { return; } try { final NetworkConfig networkConfig = node.getConfig().getNetworkConfig(); final AddressDefinition bindAddressDef = pickAddress(networkConfig); ...
diff --git a/geogebra/geogebra/kernel/commands/AlgebraProcessor.java b/geogebra/geogebra/kernel/commands/AlgebraProcessor.java index dbb4a6c5e..7aaa610f9 100644 --- a/geogebra/geogebra/kernel/commands/AlgebraProcessor.java +++ b/geogebra/geogebra/kernel/commands/AlgebraProcessor.java @@ -1,1126 +1,1128 @@ package geog...
true
true
public GeoElement[] processValidExpression( ValidExpression ve, boolean redefineIndependent) throws MyError, Exception { // check for existing labels String[] labels = ve.getLabels(); GeoElement replaceable = null; if (labels != null && labels.length > 0) { boolean firstTime = true; for (int ...
public GeoElement[] processValidExpression( ValidExpression ve, boolean redefineIndependent) throws MyError, Exception { // check for existing labels String[] labels = ve.getLabels(); GeoElement replaceable = null; if (labels != null && labels.length > 0) { boolean firstTime = true; for (int ...
diff --git a/taskmodel/taskmodel-core-view/src/de/thorstenberger/taskmodel/view/statistics/ExcelReportServlet.java b/taskmodel/taskmodel-core-view/src/de/thorstenberger/taskmodel/view/statistics/ExcelReportServlet.java index 1d788d8..c58d052 100644 --- a/taskmodel/taskmodel-core-view/src/de/thorstenberger/taskmodel/vie...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { String uri = request.getRequestURI(); if( !uri.endsWith( ".xls" ) ) throw new ServletException( "Invalid URI!" ); int indexOfLastSlash = uri.lastIndexOf( '/' ); String fileName = uri.subst...
protected void doGet(HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { String uri = request.getRequestURI(); if( !uri.endsWith( ".xls" ) ) throw new ServletException( "Invalid URI!" ); int indexOfLastSlash = uri.lastIndexOf( '/' ); String fileName = uri.subst...
diff --git a/server/src/com/mwr/mercury/Shell.java b/server/src/com/mwr/mercury/Shell.java index b17c227..04edf29 100644 --- a/server/src/com/mwr/mercury/Shell.java +++ b/server/src/com/mwr/mercury/Shell.java @@ -1,100 +1,100 @@ // License: Refer to the README in the root directory package com.mwr.mercury; impor...
true
true
public String read() { String returnVal = ""; BufferedInputStream termIn = new BufferedInputStream(new FileInputStream(termFd)); try { int newByte = 0; while (!returnVal.endsWith("$ ") && !returnVal.contains("# ") && (newByte != -1)) { newByte = termIn.read(); returnVal += (char)newByt...
public String read() { String returnVal = ""; BufferedInputStream termIn = new BufferedInputStream(new FileInputStream(termFd)); try { int newByte = 0; while (!returnVal.endsWith("$ ") && !returnVal.endsWith("# ") && (newByte != -1)) { newByte = termIn.read(); returnVal += (char)newByt...
diff --git a/eureka-core/src/main/java/com/netflix/eureka/util/EIPManager.java b/eureka-core/src/main/java/com/netflix/eureka/util/EIPManager.java index 4c4839fb..0cda2455 100644 --- a/eureka-core/src/main/java/com/netflix/eureka/util/EIPManager.java +++ b/eureka-core/src/main/java/com/netflix/eureka/util/EIPManager.ja...
true
true
public String getCandidateEIP(String myInstanceId, String myZone, String myPublicIP) { if (myZone == null) { myZone = "us-east-1d"; myPublicIP = "us-east-1d"; } Collection<String> eipCandidates = (DiscoveryManager.getInstance() .getEurekaC...
public String getCandidateEIP(String myInstanceId, String myZone, String myPublicIP) { if (myZone == null) { myZone = "us-east-1d"; myPublicIP = "us-east-1d"; } Collection<String> eipCandidates = (DiscoveryManager.getInstance() .getEurekaC...
diff --git a/jmx-collector/src/main/java/com/objectstyle/appfirst/jmx/collector/result/Primitives.java b/jmx-collector/src/main/java/com/objectstyle/appfirst/jmx/collector/result/Primitives.java index f305b40..3b5ea80 100644 --- a/jmx-collector/src/main/java/com/objectstyle/appfirst/jmx/collector/result/Primitives.java...
true
true
public static boolean isWrapperType(Class<?> clazz) { return clazz.equals(Boolean.class) || clazz.equals(Integer.class) || clazz.equals(Character.class) || clazz.equals(Byte.class) || clazz.equals(Short.class) || clazz.equals(Double....
public static boolean isWrapperType(Class<?> clazz) { return clazz.equals(Boolean.class) || clazz.equals(Integer.class) || clazz.equals(Character.class) || clazz.equals(Byte.class) || clazz.equals(Short.class) || clazz.equals(Double....
diff --git a/src/java/is/idega/idegaweb/member/presentation/UserEditor.java b/src/java/is/idega/idegaweb/member/presentation/UserEditor.java index ab16796..3b83687 100644 --- a/src/java/is/idega/idegaweb/member/presentation/UserEditor.java +++ b/src/java/is/idega/idegaweb/member/presentation/UserEditor.java @@ -1,1127 ...
true
true
protected void presentateUserInfo(IWContext iwc) throws RemoteException { UserBusiness userService = getUserService(iwc); Table infoTable = new Table(); Table addressTable = new Table(); int row = 1; addressTable.setCellspacing(4); Address primaryAddress = userService.getUsersMainAddress(user); Address c...
protected void presentateUserInfo(IWContext iwc) throws RemoteException { UserBusiness userService = getUserService(iwc); Table infoTable = new Table(); Table addressTable = new Table(); int row = 1; addressTable.setCellspacing(4); Address primaryAddress = userService.getUsersMainAddress(user); Address c...
diff --git a/src/cytoscape/util/NestedNetworkViewUpdater.java b/src/cytoscape/util/NestedNetworkViewUpdater.java index a2d2c4480..b66388424 100644 --- a/src/cytoscape/util/NestedNetworkViewUpdater.java +++ b/src/cytoscape/util/NestedNetworkViewUpdater.java @@ -1,53 +1,53 @@ package cytoscape.util; import giny.view....
true
true
public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_CREATED) || evt.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_DESTROYED)) { final boolean created = evt.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_CREATED); ...
public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_CREATED) || evt.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_DESTROYED)) { final boolean created = evt.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_CREATED); ...
diff --git a/noc-screens/src/main/java/com/appnomic/noc/action/transaction/TransactionAction.java b/noc-screens/src/main/java/com/appnomic/noc/action/transaction/TransactionAction.java index 8e7ab9e..4aaa84c 100644 --- a/noc-screens/src/main/java/com/appnomic/noc/action/transaction/TransactionAction.java +++ b/noc-scre...
true
true
public String transactionAppData() { param = getParameters(); String keyVal = "Transaction App Data: "; for(String key : parameters.keySet()) { keyVal += "[ " + key + " = "; for(String value : parameters.get(key)) { keyVal += value + ", "; } keyVal += "] "; } System.out.println("key value ...
public String transactionAppData() { param = getParameters(); String keyVal = "Transaction App Data: "; for(String key : parameters.keySet()) { keyVal += "[ " + key + " = "; for(String value : parameters.get(key)) { keyVal += value + ", "; } keyVal += "] "; } System.out.println("key value ...
diff --git a/e/hu.e.compiler/src/hu/e/compiler/internal/OperationFinder.java b/e/hu.e.compiler/src/hu/e/compiler/internal/OperationFinder.java index 39f5f8a0..25650810 100644 --- a/e/hu.e.compiler/src/hu/e/compiler/internal/OperationFinder.java +++ b/e/hu.e.compiler/src/hu/e/compiler/internal/OperationFinder.java @@ -1...
true
true
private boolean checkOperation(Operation op, ISymbol...symbols) throws ECompilerException{ if (op.eIsProxy()) op = (Operation) EcoreUtil2.resolve(op, pack); if (op.getParams().size() != symbols.length) return false; for(int i=0;i<symbols.length;i++){ ParameterVariable pv = op.getParams().get(i); ISymbol s ...
private boolean checkOperation(Operation op, ISymbol...symbols) throws ECompilerException{ if (op.eIsProxy()) op = (Operation) EcoreUtil2.resolve(op, pack); if (op.getParams().size() != symbols.length) return false; for(int i=0;i<symbols.length;i++){ ParameterVariable pv = op.getParams().get(i); ISymbol s ...
diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index 02838a6..c08c391 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -1,231 +1,231 @@ package me.libraryaddict.disguise; import j...
true
true
private void registerValues() { for (DisguiseType disguiseType : DisguiseType.values()) { Class watcherClass = null; try { switch (disguiseType) { case MINECART_FURNACE: case MINECART_HOPPER: case MINECART_MOB_SPAWNER: ...
private void registerValues() { for (DisguiseType disguiseType : DisguiseType.values()) { Class watcherClass = null; try { switch (disguiseType) { case MINECART_FURNACE: case MINECART_HOPPER: case MINECART_MOB_SPAWNER: ...
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/editor/quickfix/IntentSynchronizationCompletionProposal.java b/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/editor/quickfix/IntentSynchronizationCompletionProposal.java...
true
true
public void apply(IDocument document) { // Step 1 : getting the resources to compare URI String generatedResourceURI = syncAnnotation.getAdditionalInformations().iterator().next(); String workingCopyResourceURI = ((String)syncAnnotation.getAdditionalInformations().toArray()[1]) .replace("\"", ""); // Step...
public void apply(IDocument document) { // Step 1 : getting the resources to compare URI String generatedResourceURI = syncAnnotation.getAdditionalInformations().iterator().next() .replace("\"", ""); String workingCopyResourceURI = ((String)syncAnnotation.getAdditionalInformations().toArray()[1]) .replac...
diff --git a/vizmap-api/src/test/java/org/cytoscape/view/vizmap/AbstractVisualStyleTest.java b/vizmap-api/src/test/java/org/cytoscape/view/vizmap/AbstractVisualStyleTest.java index 3b8dffe2..d25289fb 100644 --- a/vizmap-api/src/test/java/org/cytoscape/view/vizmap/AbstractVisualStyleTest.java +++ b/vizmap-api/src/test/j...
false
true
public void testVisualStyle() { assertNotNull(style); assertNotNull(originalTitle); assertNotNull(newTitle); assertNotNull(network); assertNotNull(networkView); // assertNotNull(colorMapping1); assertNotNull(networkView.getNodeView(node1)); assertNotNull(networkView.getNodeView(node2)); assertNotNull(...
public void testVisualStyle() { assertNotNull(style); assertNotNull(originalTitle); assertNotNull(newTitle); assertNotNull(network); assertNotNull(networkView); // assertNotNull(colorMapping1); assertNotNull(networkView.getNodeView(node1)); assertNotNull(networkView.getNodeView(node2)); assertNotNull(...
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1713Test.java b/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1713Test.java index 7eddc2dad..9252989f7 100644 --- a/jsf/tests/org.jboss.tools.jsf.v...
true
true
public void testJBIDE_1713() throws Throwable { // wait TestUtil.waitForJobs(); // set exception setException(null); // get test page path IFile file = (IFile) TestUtil.getComponentPath(TEST_PAGE_NAME, IMPORT_PROJECT_NAME); assertNotNull("Could not open specified file. componentPage = " + TEST_PAGE...
public void testJBIDE_1713() throws Throwable { // wait TestUtil.waitForJobs(); // set exception setException(null); // get test page path IFile file = (IFile) TestUtil.getComponentPath(TEST_PAGE_NAME, IMPORT_PROJECT_NAME); assertNotNull("Could not open specified file. componentPage = " + TEST_PAGE...
diff --git a/src/test/functional/java/org/sukrupa/app/students/ViewStudentPage.java b/src/test/functional/java/org/sukrupa/app/students/ViewStudentPage.java index 6436160d..d4e43748 100644 --- a/src/test/functional/java/org/sukrupa/app/students/ViewStudentPage.java +++ b/src/test/functional/java/org/sukrupa/app/student...
true
true
public String getStudentName() { List<WebElement> elements = driver.findElements(By.xpath("//p[@class='name']")); WebElement nameElement = elements.get(0); return nameElement.getText(); }
public String getStudentName() { List<WebElement> elements = driver.findElements(By.xpath("//span[@class='name']")); WebElement nameElement = elements.get(0); return nameElement.getText(); }
diff --git a/src/front/VCGPrinter.java b/src/front/VCGPrinter.java index 4e50ce4..acfc4f3 100644 --- a/src/front/VCGPrinter.java +++ b/src/front/VCGPrinter.java @@ -1,160 +1,160 @@ package front; import ir.cfg.BasicBlock; import ir.cfg.CFG; import ir.instructions.Instruction; import java.io.FileNotFoundExcepti...
false
true
public void generateCFGs() throws IOException { String testFilesFolder = "src/testCases"; String[] testFiles = TestUtils.listFiles(testFilesFolder, ".tst");// Edit here to run one test for (String testFile : testFiles) { // init output file and scanner PrintStream o...
public void generateCFGs() throws IOException { String testFilesFolder = "src/testCases"; String[] testFiles = TestUtils.listFiles(testFilesFolder, ".tst");// Edit here to run one test for (String testFile : testFiles) { // init output file and scanner PrintStream o...
diff --git a/pf-src/net/minecraft/src/PFReaderMLP.java b/pf-src/net/minecraft/src/PFReaderMLP.java index 67c6c29..6ecc714 100644 --- a/pf-src/net/minecraft/src/PFReaderMLP.java +++ b/pf-src/net/minecraft/src/PFReaderMLP.java @@ -1,38 +1,38 @@ package net.minecraft.src; /* DO WHAT THE FUCK YOU WANT TO P...
true
true
public void frame(EntityPlayer ply) { if (true) throw new Minecraft161NotYetFixedRuntimeException(); // recomment on fix //Pony pony = Pony.getPonyFromRegistry(ply, this.mod.manager().getMinecraft().renderEngine); //this.isPegasus = pony != null ? pony.isPegasus() : false; super.frame(ply); }
public void frame(EntityPlayer ply) { //if (true) // throw new Minecraft161NotYetFixedRuntimeException(); // recomment on fix //Pony pony = Pony.getPonyFromRegistry(ply, this.mod.manager().getMinecraft().renderEngine); //this.isPegasus = pony != null ? pony.isPegasus() : false; super.frame(ply); }
diff --git a/src/main/java/org/apache/ibatis/scripting/defaults/RawSqlSource.java b/src/main/java/org/apache/ibatis/scripting/defaults/RawSqlSource.java index 0d13d9489c..50655d3404 100644 --- a/src/main/java/org/apache/ibatis/scripting/defaults/RawSqlSource.java +++ b/src/main/java/org/apache/ibatis/scripting/defaults...
true
true
private static String getString(XNode script) { StringBuilder contents = new StringBuilder(); NodeList children = script.getNode().getChildNodes(); for (int i = 0; i < children.getLength(); i++) { XNode child = script.newXNode(children.item(i)); if (child.getNode().getNodeType() == Node.CDATA_...
private static String getString(XNode script) { StringBuilder contents = new StringBuilder(); NodeList children = script.getNode().getChildNodes(); for (int i = 0; i < children.getLength(); i++) { XNode child = script.newXNode(children.item(i)); if (child.getNode().getNodeType() == Node.CDATA_...
diff --git a/src/web/org/openmrs/web/servlet/LoginServlet.java b/src/web/org/openmrs/web/servlet/LoginServlet.java index 7ce23c6c..121c6e72 100644 --- a/src/web/org/openmrs/web/servlet/LoginServlet.java +++ b/src/web/org/openmrs/web/servlet/LoginServlet.java @@ -1,227 +1,227 @@ /** * The contents of this file are su...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession httpSession = request.getSession(); String ipAddress = request.getLocalAddr(); Integer loginAttempts = loginAttemptsByIP.get(ipAddress); if (loginAttempts == null) loginAt...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession httpSession = request.getSession(); String ipAddress = request.getRemoteAddr(); Integer loginAttempts = loginAttemptsByIP.get(ipAddress); if (loginAttempts == null) loginA...
diff --git a/BoatSpeed/src/me/shock/boatspeed/SpeedListener.java b/BoatSpeed/src/me/shock/boatspeed/SpeedListener.java index c6dd701..2cff845 100644 --- a/BoatSpeed/src/me/shock/boatspeed/SpeedListener.java +++ b/BoatSpeed/src/me/shock/boatspeed/SpeedListener.java @@ -1,47 +1,47 @@ package me.shock.boatspeed; impor...
true
true
public void interact(PlayerInteractEvent event) { Player player = event.getPlayer(); ItemStack item = player.getItemInHand(); Material mat = item.getType(); Action action = event.getAction(); Boolean inBoat = player.isInsideVehicle(); if(action == Action.LEFT_CLICK_AIR && inBoat == true && player.getVehic...
public void interact(PlayerInteractEvent event) { Player player = event.getPlayer(); ItemStack item = player.getItemInHand(); Material mat = item.getType(); Action action = event.getAction(); Boolean inBoat = player.isInsideVehicle(); if(action == Action.LEFT_CLICK_AIR && inBoat == true && player.getVehic...
diff --git a/src/uk/org/ponder/rsf/components/UILink.java b/src/uk/org/ponder/rsf/components/UILink.java index d235047..baca8de 100644 --- a/src/uk/org/ponder/rsf/components/UILink.java +++ b/src/uk/org/ponder/rsf/components/UILink.java @@ -1,47 +1,47 @@ /* * Created on Jul 27, 2005 */ package uk.org.ponder.rsf.c...
false
true
public static UILink make(UIContainer parent, String ID, String text, String target) { UILink togo = new UILink(); togo.ID = ID; togo.target = new UIOutput(); if (target != null) { togo.target.setValue(target); } togo.linktext = new UIOutput(); if (text != null) { togo.linktext...
public static UILink make(UIContainer parent, String ID, String text, String target) { UILink togo = new UILink(); togo.ID = ID; togo.target = new UIOutput(); if (target != null) { togo.target.setValue(target); } if (text != null) { togo.linktext = new UIOutput(); togo.linkte...
diff --git a/src/com/example/webphotos/MainWebActivity.java b/src/com/example/webphotos/MainWebActivity.java index f856957..bd28bef 100644 --- a/src/com/example/webphotos/MainWebActivity.java +++ b/src/com/example/webphotos/MainWebActivity.java @@ -1,426 +1,425 @@ package com.example.webphotos; import java.io.Buffe...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main_web); // jsonTestRead(); new RestaurantInfoTask().execute("http://18.238.2.68/cuisinestream/phonedata.cgi?user=jes&location=42.358506...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main_web); // jsonTestRead(); new RestaurantInfoTask().execute("http://18.238.2.68/cuisinestream/phonedata.cgi?user=jes&location=42.358506...
diff --git a/src/main/java/org/graphwalker/generators/AllPathPermutationsGenerator.java b/src/main/java/org/graphwalker/generators/AllPathPermutationsGenerator.java index 64a9ab6..2884d12 100644 --- a/src/main/java/org/graphwalker/generators/AllPathPermutationsGenerator.java +++ b/src/main/java/org/graphwalker/generato...
true
true
public String[] getNext() throws InterruptedException { Set<Edge> availableEdges; try { availableEdges = getMachine().getCurrentOutEdges(); } catch (FoundNoEdgeException e) { throw new RuntimeException("No possible edges available for path", e); } Set<Edge> selectedEdges = new HashSet<Edge>(); int ...
public String[] getNext() throws InterruptedException { Set<Edge> availableEdges; try { availableEdges = getMachine().getCurrentOutEdges(); } catch (FoundNoEdgeException e) { throw new RuntimeException("No possible edges available for path", e); } Set<Edge> selectedEdges = new HashSet<Edge>(); int ...
diff --git a/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java b/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java index a7b54be8..408a3cc2 100644 --- a/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java +++ b/illaeasynpc/src/illarion/easynpc/parser/talk/TalkingLine.java @@ -1,291 +1,...
false
true
public TalkingLine() { condPar = new ArrayList<ConditionParser>(); consPar = new ArrayList<ConsequenceParser>(); condPar.add(new illarion.easynpc.parser.talk.conditions.State()); condPar.add(new illarion.easynpc.parser.talk.conditions.Skill()); condPar.add(new illarion.easyn...
public TalkingLine() { condPar = new ArrayList<ConditionParser>(); consPar = new ArrayList<ConsequenceParser>(); condPar.add(new illarion.easynpc.parser.talk.conditions.State()); condPar.add(new illarion.easynpc.parser.talk.conditions.Skill()); condPar.add(new illarion.easyn...
diff --git a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/MavenGoals.java b/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/MavenGoals.java index 385aac7c..01440b6e 100644 --- a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/MavenGoals.java +++ b/maven-amps-plugin/...
true
true
public int startWebapp(final String productId, final File war, final Map<String, String> systemProperties, final List<ProductArtifact> extraContainerDependencies, final Product webappContext) throws MojoExecutionException { final Container container = findContainer(webappConte...
public int startWebapp(final String productId, final File war, final Map<String, String> systemProperties, final List<ProductArtifact> extraContainerDependencies, final Product webappContext) throws MojoExecutionException { final Container container = findContainer(webappConte...
diff --git a/src/groovy/org/pillarone/riskanalytics/graph/pc/components/claims/LognormalClaimsGenerator.java b/src/groovy/org/pillarone/riskanalytics/graph/pc/components/claims/LognormalClaimsGenerator.java index 018d919..2cec29c 100644 --- a/src/groovy/org/pillarone/riskanalytics/graph/pc/components/claims/LognormalCl...
true
true
RandomVariateGen getSeverityGenerator() { return new LognormalGen(MathUtils.getRandomStreamBase(), parmMean, parmStdev); }
RandomVariateGen getSeverityGenerator() { double variance = parmStdev * parmStdev; double meanSquare = parmMean * parmMean; double t = Math.log(1 + (variance / meanSquare)); double sigma = Math.sqrt(t); double mu = Math.log(parmMean) - 0.5 * t; if (mu == Double.NaN ||...
diff --git a/java/com/vexsoftware/votifier/Votifier.java b/java/com/vexsoftware/votifier/Votifier.java index 3381d1c..b447555 100644 --- a/java/com/vexsoftware/votifier/Votifier.java +++ b/java/com/vexsoftware/votifier/Votifier.java @@ -1,230 +1,231 @@ /* * Copyright (C) 2012 Vex Software LLC * This file is part o...
true
true
public void onEnable() { Votifier.instance = this; // Handle configuration. if (!getDataFolder().exists()) { getDataFolder().mkdir(); } File config = new File(getDataFolder() + "/config.yml"); YamlConfiguration cfg = YamlConfiguration.loadConfiguration(config); File rsaDirectory = new File(getDataFolde...
public void onEnable() { Votifier.instance = this; // Handle configuration. if (!getDataFolder().exists()) { getDataFolder().mkdir(); } File config = new File(getDataFolder() + "/config.yml"); YamlConfiguration cfg = YamlConfiguration.loadConfiguration(config); File rsaDirectory = new File(getDataFolde...
diff --git a/htroot/Status.java b/htroot/Status.java index 7ec67754e..0a3e838c7 100644 --- a/htroot/Status.java +++ b/htroot/Status.java @@ -1,323 +1,323 @@ // Status.java // ----------------------- // part of YaCy // (C) by Michael Peter Christen; mc@yacy.net // first published on http://www.anomic.de // Frankf...
true
true
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { // return variable that accumulates replacements final serverObjects prop = new serverObjects(); final Switchboard sb = (Switchboard) env; if (post != null) { ...
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { // return variable that accumulates replacements final serverObjects prop = new serverObjects(); final Switchboard sb = (Switchboard) env; if (post != null) { ...
diff --git a/src/de/fhpotsdam/unfolding/data/GeoJSONReader.java b/src/de/fhpotsdam/unfolding/data/GeoJSONReader.java index f98e884..d3cdfb4 100644 --- a/src/de/fhpotsdam/unfolding/data/GeoJSONReader.java +++ b/src/de/fhpotsdam/unfolding/data/GeoJSONReader.java @@ -1,191 +1,191 @@ package de.fhpotsdam.unfolding.data; ...
true
true
private static Feature getFeatureByType(JSONObject geometry, JSONObject properties) throws JSONException { Feature feature = null; String featureType = geometry.getString("type"); if (featureType.equals("Point")) { feature = new PointFeature(); PointFeature pointFeature = (PointFeature) feature; JSONA...
private static Feature getFeatureByType(JSONObject geometry, JSONObject properties) throws JSONException { Feature feature = null; String featureType = geometry.getString("type"); if (featureType.equals("Point")) { feature = new PointFeature(); PointFeature pointFeature = (PointFeature) feature; JSONA...
diff --git a/src/com/podevs/android/pokemononline/NetworkService.java b/src/com/podevs/android/pokemononline/NetworkService.java index 1c95f610..252039a1 100644 --- a/src/com/podevs/android/pokemononline/NetworkService.java +++ b/src/com/podevs/android/pokemononline/NetworkService.java @@ -1,1308 +1,1320 @@ package co...
false
true
public void handleMsg(Bais msg) { byte i = msg.readByte(); if (i < 0 || i >= Command.values().length) { Log.w(TAG, "Command out of bounds: " +i); } Command c = Command.values()[i]; //Log.d(TAG, "Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel:{ Ch...
public void handleMsg(Bais msg) { byte i = msg.readByte(); if (i < 0 || i >= Command.values().length) { Log.w(TAG, "Command out of bounds: " +i); } Command c = Command.values()[i]; //Log.d(TAG, "Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel:{ Ch...
diff --git a/src/main/java/org/esa/beam/meris/l2auxdata/DpmConfig.java b/src/main/java/org/esa/beam/meris/l2auxdata/DpmConfig.java index 6753f5a..efcfeed 100644 --- a/src/main/java/org/esa/beam/meris/l2auxdata/DpmConfig.java +++ b/src/main/java/org/esa/beam/meris/l2auxdata/DpmConfig.java @@ -1,209 +1,207 @@ /* * $Id...
true
true
public DpmConfig() throws DpmConfigException { String auxdataSrcPath = "auxdata" + File.separator + AUXDATA_DIRNAME; final String auxdataDestPath = ".beam" + File.separator + SYMBOLIC_NAME + File.separator + auxdataSrcPath; auxdataTargetDir = new File(SystemUt...
public DpmConfig() throws DpmConfigException { String auxdataSrcPath = "auxdata/" + AUXDATA_DIRNAME; final String auxdataDestPath = ".beam/" + SYMBOLIC_NAME + "/" + auxdataSrcPath; auxdataTargetDir = new File(SystemUtils.getUserHomeDir(), auxdataDestPath); URL sourceUrl = ResourceIns...
diff --git a/src/Trainer.java b/src/Trainer.java index 4cd8f7f..02f8318 100644 --- a/src/Trainer.java +++ b/src/Trainer.java @@ -1,912 +1,912 @@ import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import jav...
true
true
private static void fixSpecialTrainers() { Pokemon p; Moveset m; //BROCK if(Settings.isRB) { Trainer brock = getTrainer(0x3A3B5); p = brock.pokes.get(1); //ONIX m = new Moveset(); m.addMove("TACKLE"); m.addMove("SCREECH"); ...
private static void fixSpecialTrainers() { Pokemon p; Moveset m; //BROCK if(Settings.isRB) { Trainer brock = getTrainer(0x3A3B5); p = brock.pokes.get(1); //ONIX m = new Moveset(); m.addMove("TACKLE"); m.addMove("SCREECH"); ...
diff --git a/sonar-update-center-server/src/main/java/org/sonar/updatecenter/server/HttpDownloader.java b/sonar-update-center-server/src/main/java/org/sonar/updatecenter/server/HttpDownloader.java index 44aad96..59026bb 100644 --- a/sonar-update-center-server/src/main/java/org/sonar/updatecenter/server/HttpDownloader.j...
true
true
File downloadFile(URI fileURI, File toFile, String login, String password) { LOG.error("Download " + fileURI + " in " + toFile); DefaultHttpClient client = new DefaultHttpClient(); try { if (StringUtils.isNotBlank(login)) { client.getCredentialsProvider().setCredentials( new Auth...
File downloadFile(URI fileURI, File toFile, String login, String password) { LOG.info("Download " + fileURI + " in " + toFile); DefaultHttpClient client = new DefaultHttpClient(); try { if (StringUtils.isNotBlank(login)) { client.getCredentialsProvider().setCredentials( new AuthS...
diff --git a/src/main/java/org/async/web/http/core/Request.java b/src/main/java/org/async/web/http/core/Request.java index aba8cd1..1db07cd 100644 --- a/src/main/java/org/async/web/http/core/Request.java +++ b/src/main/java/org/async/web/http/core/Request.java @@ -1,142 +1,147 @@ package org.async.web.http.core; im...
true
true
public String getCookieValue(String name) { String cookie = getCookie(); if (cookie != null) { int i = cookie.indexOf(name); if (i > 0) { String prev = cookie.substring(i - 1, i); if (!prev.equals(";")) { return null; } } i = i + name.length() + 1; if (i < cookie.length()) { St...
public String getCookieValue(String name) { String cookie = getCookie(); if (cookie != null) { int i = cookie.indexOf(name); if (i > 0) { for (int j = i - 1; j >= 0; j--) { char c = cookie.charAt(j); if (!Character.isWhitespace(c)) { if (c == ';') break; else return n...
diff --git a/com.piece_framework.makegood.core/src/com/piece_framework/makegood/core/TestClass.java b/com.piece_framework.makegood.core/src/com/piece_framework/makegood/core/TestClass.java index 043d9e28..858a418f 100644 --- a/com.piece_framework.makegood.core/src/com/piece_framework/makegood/core/TestClass.java +++ b/...
true
true
public IModelElement[] getChildren() throws ModelException { if (this.children != null) return this.children; List<IModelElement> children = new ArrayList<IModelElement>(); if ((getFlags() & Modifiers.AccNameSpace) == 0) { children.addAll(Arrays.asList(getMethods())); ...
public IModelElement[] getChildren() throws ModelException { if (this.children != null) return this.children; List<IModelElement> children = new ArrayList<IModelElement>(); if ((getFlags() & Modifiers.AccNameSpace) == 0) { children.addAll(Arrays.asList(getMethods())); ...
diff --git a/client/jme/src/remuco/client/jme/util/JMETools.java b/client/jme/src/remuco/client/jme/util/JMETools.java index 89eac5e..ae04763 100644 --- a/client/jme/src/remuco/client/jme/util/JMETools.java +++ b/client/jme/src/remuco/client/jme/util/JMETools.java @@ -1,136 +1,136 @@ /* * Remuco - A remote cont...
true
true
public static ClientInfo buildClientInfo(Config config, boolean extra) { final Hashtable info; if (extra) { info = new Hashtable(); info.put("name", Config.DEVICE_NAME); info.put("touch", Config.TOUCHSCREEN ? "yes" : "no"); info.put("utf8", Config.UTF8 ? "yes" : "no"); } else { info = null; ...
public static ClientInfo buildClientInfo(Config config, boolean extra) { final Hashtable info; if (extra) { info = new Hashtable(); info.put("name", Config.DEVICE_NAME); info.put("touch", Config.TOUCHSCREEN ? "yes" : "no"); info.put("utf8", Config.UTF8 ? "yes" : "no"); } else { info = null; ...
diff --git a/dinaBOT/navigation/Navigator.java b/dinaBOT/navigation/Navigator.java index 6fe7933..06f9b28 100644 --- a/dinaBOT/navigation/Navigator.java +++ b/dinaBOT/navigation/Navigator.java @@ -1,85 +1,84 @@ package dinaBOT.navigation; import dinaBOT.mech.*; import lejos.nxt.*; public class Navigator imp...
false
true
public boolean goTo(double x, double y) { double[] position = new double[3]; position = odometer.getPosition(); path = pather.generatePath(position[0], position[1], position[2], x, y); if(path != null) { for(node = 0; node < path.length; node++) { position = odometer.getPosition(); ...
public boolean goTo(double x, double y) { double[] position = new double[3]; position = odometer.getPosition(); path = pather.generatePath(position[0], position[1], position[2], x, y); for(node = 0; (path != null) && (node < path.length); node++) { position = odometer.getPosition(); ...
diff --git a/workspace/enwida/src/test/java/de/enwida/web/AdminPanel.java b/workspace/enwida/src/test/java/de/enwida/web/AdminPanel.java index 29545da7..9317a02d 100644 --- a/workspace/enwida/src/test/java/de/enwida/web/AdminPanel.java +++ b/workspace/enwida/src/test/java/de/enwida/web/AdminPanel.java @@ -1,197 +1,197 ...
true
true
public void registerUser(String userName,String password) throws Exception { //first log out webClient.getPage(webSiteLink+"j_spring_security_logout"); // Get the register page final HtmlPage page1 = webClient.getPage(webSiteLink+"user/register"); // Get the form th...
public void registerUser(String userName,String password) throws Exception { //first log out webClient.getPage(webSiteLink+"j_spring_security_logout"); // Get the register page final HtmlPage page1 = webClient.getPage(webSiteLink+"user/register"); // Get the form th...
diff --git a/src/org/protege/editor/core/ui/action/start/ResetPreferencesAction.java b/src/org/protege/editor/core/ui/action/start/ResetPreferencesAction.java index f8ec46f..2446c7c 100644 --- a/src/org/protege/editor/core/ui/action/start/ResetPreferencesAction.java +++ b/src/org/protege/editor/core/ui/action/start/Res...
true
true
public void actionPerformed(ActionEvent e) { try { JTextPane pane = new JTextPane(); pane.setPreferredSize(new Dimension(400,400)); URL u = getClass().getResource("ResetPreferencesExplanation.html"); pane.setPage(u); Font font = UIManager.getFont("TextArea.font"); if (font != null) { // modifie...
public void actionPerformed(ActionEvent e) { try { JTextPane pane = new JTextPane(); pane.setPreferredSize(new Dimension(400,400)); pane.setEditable(false); URL u = getClass().getResource("ResetPreferencesExplanation.html"); pane.setPage(u); Font font = UIManager.getFont("TextArea.font"); if (fo...
diff --git a/src/net/invisioncraft/plugins/salesmania/configuration/AuctionSettings.java b/src/net/invisioncraft/plugins/salesmania/configuration/AuctionSettings.java index cab8aa8..e191d5c 100644 --- a/src/net/invisioncraft/plugins/salesmania/configuration/AuctionSettings.java +++ b/src/net/invisioncraft/plugins/sales...
true
true
public boolean isBlacklisted(ItemStack itemStack) { List<String> blacklist = getBlacklist(); if(blacklist.contains(String.valueOf(itemStack.getTypeId()))) return true; if(blacklist.contains(itemStack.getType().name())) return true; try { if(blacklist.contains(Items.itemBy...
public boolean isBlacklisted(ItemStack itemStack) { List<String> blacklist = getBlacklist(); if(blacklist.contains(String.valueOf(itemStack.getTypeId()))) return true; if(blacklist.contains(itemStack.getType().name())) return true; try { if(blacklist.contains(Items.itemBy...
diff --git a/src/haveric/stackableItems/SIItems.java b/src/haveric/stackableItems/SIItems.java index 1cafaa7..1bb45ec 100644 --- a/src/haveric/stackableItems/SIItems.java +++ b/src/haveric/stackableItems/SIItems.java @@ -1,213 +1,213 @@ package haveric.stackableItems; import java.io.File; import java.io.FileNotFou...
false
true
private static int getMaxFromMap(String file, Material mat, short dur){ int max = ITEM_DEFAULT; List<String> groups = null; if (itemGroups.containsKey(mat.name() + " " + dur)){ groups = itemGroups.get(mat.name() + " " + dur); } else if (itemGroups.containsKey(mat.getId() + " " + dur)){ groups = it...
private static int getMaxFromMap(String file, Material mat, short dur){ int max = ITEM_DEFAULT; List<String> groups = null; if (itemGroups.containsKey(mat.name() + " " + dur)){ groups = itemGroups.get(mat.name() + " " + dur); } else if (itemGroups.containsKey(mat.getId() + " " + dur)){ groups = it...
diff --git a/src/powercrystals/minefactoryreloaded/entity/EntitySafariNet.java b/src/powercrystals/minefactoryreloaded/entity/EntitySafariNet.java index 89a08a75..dc3aef2a 100644 --- a/src/powercrystals/minefactoryreloaded/entity/EntitySafariNet.java +++ b/src/powercrystals/minefactoryreloaded/entity/EntitySafariNet.ja...
false
true
protected void onImpact(MovingObjectPosition mop) { ItemStack storedEntity = dataWatcher.getWatchableObjectItemStack(13); if(mop.typeOfHit == EnumMovingObjectType.TILE) { if(ItemSafariNet.isEmpty(storedEntity)) { dropAsStack(storedEntity); } else { ItemSafariNet.releaseEntity(storedEnt...
protected void onImpact(MovingObjectPosition mop) { ItemStack storedEntity = dataWatcher.getWatchableObjectItemStack(13); if(mop.typeOfHit == EnumMovingObjectType.TILE) { if(ItemSafariNet.isEmpty(storedEntity)) { dropAsStack(storedEntity); } else { ItemSafariNet.releaseEntity(storedEnt...
diff --git a/src/main/java/org/primefaces/extensions/component/ajaxerrorhandler/AjaxExceptionHandler.java b/src/main/java/org/primefaces/extensions/component/ajaxerrorhandler/AjaxExceptionHandler.java index 07ed8651..368b25fb 100644 --- a/src/main/java/org/primefaces/extensions/component/ajaxerrorhandler/AjaxExceptionH...
true
true
private void handlePartialResponseError(final FacesContext context, final Throwable t) { if (context.getResponseComplete()) { return; // don't write anything if the response is complete } if (!context.getExternalContext().isResponseCommitted()) { context.getExternalContext().responseReset(); } try { ...
private void handlePartialResponseError(final FacesContext context, final Throwable t) { if (context.getResponseComplete()) { return; // don't write anything if the response is complete } if (!context.getExternalContext().isResponseCommitted()) { context.getExternalContext().responseReset(); } try { ...
diff --git a/src/org/openstreetmap/josm/actions/search/SearchAction.java b/src/org/openstreetmap/josm/actions/search/SearchAction.java index 09400c95..405f70e9 100644 --- a/src/org/openstreetmap/josm/actions/search/SearchAction.java +++ b/src/org/openstreetmap/josm/actions/search/SearchAction.java @@ -1,115 +1,116 @@ ...
true
true
public void actionPerformed(ActionEvent e) { if (Main.map == null) { JOptionPane.showMessageDialog(Main.parent, tr("No data loaded.")); return; } JLabel label = new JLabel(tr("Please enter a search string.")); final JTextField input = new JTextField(lastSearch); input.setToolTip...
public void actionPerformed(ActionEvent e) { if (Main.map == null) { JOptionPane.showMessageDialog(Main.parent, tr("No data loaded.")); return; } JLabel label = new JLabel(tr("Please enter a search string.")); final JTextField input = new JTextField(lastSearch); input.setToolTip...
diff --git a/JavascriptProcess/JavascriptProcess/src/com/objectcloud/javascriptprocess/CompiledJavascriptTracker.java b/JavascriptProcess/JavascriptProcess/src/com/objectcloud/javascriptprocess/CompiledJavascriptTracker.java index c142324..d47178d 100644 --- a/JavascriptProcess/JavascriptProcess/src/com/objectcloud/jav...
true
true
private JSONObject compile(JSONObject data) throws Exception { String script = data.getString("Script"); int scriptId = data.getInt("ScriptID"); String uniqueName = new Long(Math.abs(random.nextLong())).toString() + new Long(Math.abs(random.nextLong())).toString(); Object[] classFiles; ...
private JSONObject compile(JSONObject data) throws Exception { String script = data.getString("Script"); int scriptId = data.getInt("ScriptID"); String uniqueName; synchronized (random) { uniqueName = new Long(Math.abs(random.nextLong())).toString() + new Long(Math.abs(random.nextLong())).toString() +...
diff --git a/src/com/jidesoft/swing/CheckBoxListCellRenderer.java b/src/com/jidesoft/swing/CheckBoxListCellRenderer.java index 3743a168..5f2e00d6 100644 --- a/src/com/jidesoft/swing/CheckBoxListCellRenderer.java +++ b/src/com/jidesoft/swing/CheckBoxListCellRenderer.java @@ -1,211 +1,212 @@ /* * @(#)CheckBoxtListCell...
true
true
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellH...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellH...
diff --git a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java index 5a6f21a..58ec65f 100644 --- a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java +++ b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java...
true
true
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/generator/AllTests.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/generator/AllTests.java index 334fadc9c..991a1a196 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/generat...
true
true
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTestSuite(EclipseSDK33Test.class); suite.addTestSuite(FeatureToIU.class); suite.addTestSuite(SiteParserTest.class); suite.addTestSuite(GeneratorTests.class); return suite; }
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTestSuite(GeneratorTests.class); return suite; }
diff --git a/core/vdmj/src/main/java/org/overturetool/vdmj/statements/BlockStatement.java b/core/vdmj/src/main/java/org/overturetool/vdmj/statements/BlockStatement.java index 71c7d3982c..d6d3b595eb 100644 --- a/core/vdmj/src/main/java/org/overturetool/vdmj/statements/BlockStatement.java +++ b/core/vdmj/src/main/java/or...
true
true
public Type typeCheck(Environment env, NameScope scope) { // Each dcl definition is in scope for later definitions... Environment local = env; for (Definition d: assignmentDefs) { local = new FlatCheckedEnvironment(d, local, scope); // cumulative d.implicitDefinitions(local); d.typeCheck(local, sco...
public Type typeCheck(Environment env, NameScope scope) { // Each dcl definition is in scope for later definitions... Environment local = env; for (Definition d: assignmentDefs) { local = new FlatCheckedEnvironment(d, local, scope); // cumulative d.implicitDefinitions(local); d.typeCheck(local, sco...
diff --git a/gdx/src/com/badlogic/gdx/physics/box2d/Fixture.java b/gdx/src/com/badlogic/gdx/physics/box2d/Fixture.java index 664abf181..59fe1b7a5 100644 --- a/gdx/src/com/badlogic/gdx/physics/box2d/Fixture.java +++ b/gdx/src/com/badlogic/gdx/physics/box2d/Fixture.java @@ -1,246 +1,247 @@ /*****************************...
true
true
public Shape getShape () { if (shape == null) { long shapeAddr = jniGetShape(addr); int type = Shape.jniGetType(shapeAddr); switch(type) { case 0: shape = new CircleShape(shapeAddr); break; case 1: shape = new EdgeShape(shapeAddr); break; case 2: shape = new PolygonShape(shapeA...
public Shape getShape () { if (shape == null) { long shapeAddr = jniGetShape(addr); if (shapeAddr == 0) throw new GdxRuntimeException("Null shape address!"); int type = Shape.jniGetType(shapeAddr); switch(type) { case 0: shape = new CircleShape(shapeAddr); break; case 1: shape = new Ed...
diff --git a/app/controllers/RatingApp.java b/app/controllers/RatingApp.java index dea500f..42fbab7 100644 --- a/app/controllers/RatingApp.java +++ b/app/controllers/RatingApp.java @@ -1,141 +1,143 @@ package controllers; import java.util.Date; import java.util.List; import models.Game; import models.Player; ...
false
true
public static void create( @Required(message = "A game should at least have players") String playerOneName, @Required(message = "A game should at least have players") String playerTwoName, Date playedAt, String winnerName) { Game g = new Game(new Date()); Player playerOne = Player.find("byName", ...
public static void create( @Required(message = "A game should at least have players") String playerOneName, @Required(message = "A game should at least have players") String playerTwoName, Date playedAt, String winnerName) { Game g = new Game(new Date()); Player playerOne = Player.find("byName", ...
diff --git a/deegree-client/deegree-jsf-core/src/main/java/org/deegree/client/core/filter/InputFileWrapper.java b/deegree-client/deegree-jsf-core/src/main/java/org/deegree/client/core/filter/InputFileWrapper.java index 0bdc6331ca..ef6b655db9 100644 --- a/deegree-client/deegree-jsf-core/src/main/java/org/deegree/client/...
false
true
public InputFileWrapper( HttpServletRequest request ) throws ServletException { super( request ); try { ServletFileUpload upload = new ServletFileUpload(); DiskFileItemFactory factory = new DiskFileItemFactory(); upload.setFileItemFactory( factory ); L...
public InputFileWrapper( HttpServletRequest request ) throws ServletException { super( request ); try { ServletFileUpload upload = new ServletFileUpload(); DiskFileItemFactory factory = new DiskFileItemFactory(); upload.setFileItemFactory( factory ); L...
diff --git a/table/src/main/uk/ac/starlink/table/RandomRowSequence.java b/table/src/main/uk/ac/starlink/table/RandomRowSequence.java index 00b3e908a..eae5d228b 100644 --- a/table/src/main/uk/ac/starlink/table/RandomRowSequence.java +++ b/table/src/main/uk/ac/starlink/table/RandomRowSequence.java @@ -1,91 +1,91 @@ pack...
false
true
public RandomRowSequence( StarTable startab ) { this.startab = startab; long nrow = startab.getRowCount(); if ( ! startab.isRandom() ) { throw new IllegalArgumentException( "Table " + startab + " is not random access" ); } if ( startab.getColumnCo...
public RandomRowSequence( StarTable startab ) { this.startab = startab; if ( ! startab.isRandom() ) { throw new IllegalArgumentException( "Table " + startab + " is not random access" ); } long nrow = startab.getRowCount(); if ( nrow < 0L ) { ...
diff --git a/src/com/task/FriendListFragment.java b/src/com/task/FriendListFragment.java index 58040e3..b3a494a 100644 --- a/src/com/task/FriendListFragment.java +++ b/src/com/task/FriendListFragment.java @@ -1,224 +1,224 @@ package com.task; import android.content.Context; import android.content.Intent; import a...
true
true
public View getView(int position, View convertView, ViewGroup parent) { GraphUser user = getItem(position); ViewHolder holder; if (convertView == null) { holder = new ViewHolder(); convertView = LayoutInflater.from(getContext()).inflate(R.layou...
public View getView(int position, View convertView, ViewGroup parent) { GraphUser user = getItem(position); ViewHolder holder; if (convertView == null) { holder = new ViewHolder(); convertView = LayoutInflater.from(getContext()).inflate(R.layou...
diff --git a/src/main/java/de/deepamehta/plugins/workspaces/migrations/Migration1.java b/src/main/java/de/deepamehta/plugins/workspaces/migrations/Migration1.java index 9bf009d..e56fe48 100644 --- a/src/main/java/de/deepamehta/plugins/workspaces/migrations/Migration1.java +++ b/src/main/java/de/deepamehta/plugins/works...
false
true
private void createWorkspaceTopicType() { DataField nameField = new DataField("Name", "text"); nameField.setUri("de/deepamehta/core/property/Name"); // nameField.setIndexingMode("FULLTEXT_KEY"); nameField.setRendererClass("TitleRenderer"); // DataField descriptionFiel...
private void createWorkspaceTopicType() { DataField nameField = new DataField("Name", "text"); nameField.setUri("de/deepamehta/core/property/Name"); nameField.setRendererClass("TitleRenderer"); nameField.setIndexingMode("FULLTEXT"); // DataField descriptionField = new...
diff --git a/src/gov/nih/nci/ncicb/cadsr/loader/UMLLoader.java b/src/gov/nih/nci/ncicb/cadsr/loader/UMLLoader.java index 6df9fcd7..9d9759dd 100755 --- a/src/gov/nih/nci/ncicb/cadsr/loader/UMLLoader.java +++ b/src/gov/nih/nci/ncicb/cadsr/loader/UMLLoader.java @@ -1,278 +1,283 @@ /* * Copyright 2000-2003 Oracle, Inc. ...
true
true
private void run(String fileDir, String projectName, Float projectVersion) throws Exception { prefs.setUsePrivateApi(true); InitClass initClass = new InitClass(this); Thread t = new Thread(initClass); t.setPriority(Thread.MAX_PRIORITY); t.start(); // try { // Thread.currentThread().sle...
private void run(String fileDir, String projectName, Float projectVersion) throws Exception { prefs.setUsePrivateApi(true); InitClass initClass = new InitClass(this); Thread t = new Thread(initClass); t.setPriority(Thread.MAX_PRIORITY); t.start(); // try { // Thread.currentThread().sle...
diff --git a/couteau-reflection/src/main/java/com/agileapes/couteau/reflection/property/impl/AbstractMethodPropertyAccessor.java b/couteau-reflection/src/main/java/com/agileapes/couteau/reflection/property/impl/AbstractMethodPropertyAccessor.java index 1d8c8ca..a97ffb8 100644 --- a/couteau-reflection/src/main/java/com/...
true
true
public AbstractMethodPropertyAccessor(Method method, Object target) { this.method = method; this.target = target; }
public AbstractMethodPropertyAccessor(Method method, Object target) { this.method = method; this.target = target; this.method.setAccessible(true); }
diff --git a/com.heroku.eclipse.ui.junit/src/com/heroku/eclipse/ui/junit/NewFromTemplate.java b/com.heroku.eclipse.ui.junit/src/com/heroku/eclipse/ui/junit/NewFromTemplate.java index 523c10d..12660ee 100644 --- a/com.heroku.eclipse.ui.junit/src/com/heroku/eclipse/ui/junit/NewFromTemplate.java +++ b/com.heroku.eclipse.u...
true
true
public void testCreateNewProjectFromTemplate() throws Exception { // close the welcome tab bot.viewByTitle("Welcome").close(); bot.menu("File").menu("New").menu("Other...").click(); bot.tree().getTreeItem(Messages.getString("HerokuUI.heroku")).expand().getNode(Messages.getString("HerokuUI.CreateWizardName"))....
public void testCreateNewProjectFromTemplate() throws Exception { // close the welcome tab if (Boolean.TRUE.toString().equals(System.getProperty("heroku.devel"))) { bot.viewByTitle("Welcome").close(); } bot.menu("File").menu("New").menu("Other...").click(); bot.tree().getTreeItem(Messages.getString("Hero...
diff --git a/src/de/saces/fnplugins/Shoeshop/StaticToadlet.java b/src/de/saces/fnplugins/Shoeshop/StaticToadlet.java index 7edc451..18e247a 100644 --- a/src/de/saces/fnplugins/Shoeshop/StaticToadlet.java +++ b/src/de/saces/fnplugins/Shoeshop/StaticToadlet.java @@ -1,107 +1,107 @@ /* This code is part of Freenet. It is...
false
true
public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException { String path = normalizePath(request.getPath()); if (logDEBUG) Logger.debug(this, "Requested ressource: "+path); int lastSlash = path.lastIndexOf('/'); String filename = path.substr...
public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException { String path = normalizePath(request.getPath()); if (logDEBUG) Logger.debug(this, "Requested ressource: "+path+" ("+uri+')'); int lastSlash = path.lastIndexOf('/'); String filename ...
diff --git a/ZombieSushi/src/com/reaction/zombiesushi/GameScreen.java b/ZombieSushi/src/com/reaction/zombiesushi/GameScreen.java index 007c24e..67370ec 100644 --- a/ZombieSushi/src/com/reaction/zombiesushi/GameScreen.java +++ b/ZombieSushi/src/com/reaction/zombiesushi/GameScreen.java @@ -1,190 +1,190 @@ package com.re...
true
true
public GameScreen(SimpleBaseGameActivity game) { super(game); scene.registerUpdateHandler(new GameScreenUpdateHandler(this)); this.font = FontFactory.create(this.game.getFontManager(), this.game.getTextureManager(), 256, 128, Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 32); this.font.load(); ...
public GameScreen(SimpleBaseGameActivity game) { super(game); scene.registerUpdateHandler(new GameScreenUpdateHandler(this)); this.font = FontFactory.create(this.game.getFontManager(), this.game.getTextureManager(), 256, 128, Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 32); this.font.load(); ...
diff --git a/Test2.java b/Test2.java index aeaeedb..20f733c 100644 --- a/Test2.java +++ b/Test2.java @@ -1,177 +1,177 @@ // CSI4107 Assignment 2 // 5572999 KEVIN FONG // 5567184 DANIEL ST JULES import weka.core.*; import weka.core.converters.*; import weka.classifiers.trees.*; import weka.filters.*; import...
true
true
public static void main(String[] args) throws Exception { // Store hashmaps and buffered readers so we can iterate over them String[] types= {"Positive", "Negative"}; Map<String,BufferedReader> reader = new HashMap<String,BufferedReader>(); reader.put("Positive", new BufferedReader(new FileReader("Positiv...
public static void main(String[] args) throws Exception { // Store hashmaps and buffered readers so we can iterate over them String[] types= {"Positive", "Negative"}; Map<String,BufferedReader> reader = new HashMap<String,BufferedReader>(); reader.put("Positive", new BufferedReader(new FileReader("Positiv...
diff --git a/src/jpcsp/graphics/VideoEngine.java b/src/jpcsp/graphics/VideoEngine.java index c0ec7ae8..3c6d33d9 100644 --- a/src/jpcsp/graphics/VideoEngine.java +++ b/src/jpcsp/graphics/VideoEngine.java @@ -1,3357 +1,3360 @@ /* Parts based on soywiz's pspemulator. This file is part of jpcsp. Jpcsp is free softw...
true
true
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); float floatArgument = floatArgument(instruction); int command = command(instruction); commandStatistics[command].start(); switch (command) { case END: lis...
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); float floatArgument = floatArgument(instruction); int command = command(instruction); commandStatistics[command].start(); switch (command) { case END: lis...
diff --git a/simulator/code/simulator/elevatorcontrol/DriveControl.java b/simulator/code/simulator/elevatorcontrol/DriveControl.java index d0ee5cd..04a54dc 100644 --- a/simulator/code/simulator/elevatorcontrol/DriveControl.java +++ b/simulator/code/simulator/elevatorcontrol/DriveControl.java @@ -1,379 +1,381 @@ /* 186...
false
true
public void timerExpired(Object callbackData) { State newState = state; desiredDir = Direction.UP; switch (state) { case STATE_DRIVE_STOPPED: desiredDir = getDesiredDir(); //state actions for DRIVE_STOPPED localD...
public void timerExpired(Object callbackData) { State newState = state; desiredDir = Direction.UP; switch (state) { case STATE_DRIVE_STOPPED: desiredDir = getDesiredDir(); //state actions for DRIVE_STOPPED localD...
diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksLegacyMigrator.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksLegacyMigrator.java index d3586d855..3eced32f1 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksLegacyMigrator.java +++ b/astrid/plugin-src/com/todoroo/astr...
true
true
public void checkAndMigrateLegacy() throws IOException { if (!gtasksPreferenceService.migrationHasOccurred()) { //Fetch all tasks that have associated gtask metadata String defaultListTitle = gtasksListService.getListName(Preferences.getStringValue(GtasksPreferenceService.PREF_DEFAU...
public void checkAndMigrateLegacy() throws IOException { if (!gtasksPreferenceService.migrationHasOccurred()) { //Fetch all tasks that have associated gtask metadata String defaultListTitle = gtasksListService.getListName(Preferences.getStringValue(GtasksPreferenceService.PREF_DEFAU...
diff --git a/src/VASSAL/counters/PieceDefiner.java b/src/VASSAL/counters/PieceDefiner.java index 282f5315..0789ca7e 100644 --- a/src/VASSAL/counters/PieceDefiner.java +++ b/src/VASSAL/counters/PieceDefiner.java @@ -1,713 +1,714 @@ /* * $Id$ * * Copyright (c) 2000-2003 by Rodney Kinney * * This library is fre...
true
true
private void initComponents() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(slot.getComponent()); JPanel controls = new JPanel(); controls.setLayout(new BoxLayout(controls, BoxLayout.X_AXIS)); availablePanel = new JPanel(); availableScroll = new JScrollPane(); availableList = n...
private void initComponents() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(slot.getComponent()); JPanel controls = new JPanel(); controls.setLayout(new BoxLayout(controls, BoxLayout.X_AXIS)); availablePanel = new JPanel(); availableScroll = new JScrollPane(); availableList = n...
diff --git a/gui/src/main/java/com/doublesignal/sepm/jake/gui/JakeGui.java b/gui/src/main/java/com/doublesignal/sepm/jake/gui/JakeGui.java index 63ce20ac..45dbb965 100644 --- a/gui/src/main/java/com/doublesignal/sepm/jake/gui/JakeGui.java +++ b/gui/src/main/java/com/doublesignal/sepm/jake/gui/JakeGui.java @@ -1,1027 +1...
false
true
private void initComponents() { mainFrame = new JFrame(); statusPanel = new StatusPanel(this); mainPanel = new JPanel(); mainTabbedPane = new JTabbedPane(); peoplePanel = new JPanel(); peopleScrollPane = new JScrollPane(); peopleTable = new JXTable(); filesPanel = new FilesPanel(this); notesPanel = n...
private void initComponents() { mainFrame = new JFrame(); statusPanel = new StatusPanel(this); mainPanel = new JPanel(); mainTabbedPane = new JTabbedPane(); peoplePanel = new JPanel(); peopleScrollPane = new JScrollPane(); peopleTable = new JXTable(); filesPanel = new FilesPanel(this); notesPanel = n...
diff --git a/src/main/java/uk/ac/ebi/fgpt/webapp/SubmissionController.java b/src/main/java/uk/ac/ebi/fgpt/webapp/SubmissionController.java index 20cfa5b..0132c8b 100644 --- a/src/main/java/uk/ac/ebi/fgpt/webapp/SubmissionController.java +++ b/src/main/java/uk/ac/ebi/fgpt/webapp/SubmissionController.java @@ -1,174 +1,17...
true
true
public @ResponseBody Outcome doAccession(@RequestBody SampleTabRequest sampletab) { // setup an overall try/catch to catch and report all errors try { //setup parser to listen for errors SampleTabParser<SampleData> parser = new SampleTabParser<SampleData>(); ...
public @ResponseBody Outcome doAccession(@RequestBody SampleTabRequest sampletab) { // setup an overall try/catch to catch and report all errors try { //setup parser to listen for errors SampleTabParser<SampleData> parser = new SampleTabParser<SampleData>(); ...
diff --git a/src/com/shade/controls/LevelLock.java b/src/com/shade/controls/LevelLock.java index dea21f8..54b4508 100644 --- a/src/com/shade/controls/LevelLock.java +++ b/src/com/shade/controls/LevelLock.java @@ -1,196 +1,196 @@ package com.shade.controls; import java.util.prefs.Preferences; import com.shade.lev...
true
true
public boolean newLevelUnlocked() { int clear123 = 0; clear123 += SerialStats.read("level-1-clear"); clear123 += SerialStats.read("level-2-clear"); clear123 += SerialStats.read("level-3-clear"); if (!isUnlocked(5) && clear123 >= 1) { return true; // beat ...
public boolean newLevelUnlocked() { int clear123 = 0; clear123 += SerialStats.read("level-1-clear"); clear123 += SerialStats.read("level-2-clear"); clear123 += SerialStats.read("level-3-clear"); if (!isUnlocked(5) && clear123 >= 1) { return true; // beat ...
diff --git a/src/main/java/org/graylog2/Main.java b/src/main/java/org/graylog2/Main.java index 6cc7376b9..88bd45d9d 100644 --- a/src/main/java/org/graylog2/Main.java +++ b/src/main/java/org/graylog2/Main.java @@ -1,245 +1,246 @@ /** * Copyright 2010, 2011 Lennart Koopmann <lennart@socketfeed.com> * * This file ...
true
true
public static void main(String[] args) { System.out.println("[x] Graylog2 starting up. (JRE: " + Tools.getSystemInformation() + ")"); // Read config. System.out.println("[x] Reading config."); Main.masterConfig = new Properties(); // Allow -DconfigPath=/some/different/config...
public static void main(String[] args) { System.out.println("[x] Graylog2 starting up. (JRE: " + Tools.getSystemInformation() + ")"); // Read config. System.out.println("[x] Reading config."); Main.masterConfig = new Properties(); // Allow -DconfigPath=/some/different/config...
diff --git a/src/ch/amana/android/cputuner/view/activity/ProfilesListActivity.java b/src/ch/amana/android/cputuner/view/activity/ProfilesListActivity.java index d6284a46..aec8be11 100644 --- a/src/ch/amana/android/cputuner/view/activity/ProfilesListActivity.java +++ b/src/ch/amana/android/cputuner/view/activity/Profile...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle("Profiles"); Cursor c = managedQuery(DB.CpuProfile.CONTENT_URI, DB.CpuProfile.PROJECTION_DEFAULT, null, null, DB.CpuProfile.SORTORDER_DEFAULT); SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.p...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle("Profiles"); Cursor c = managedQuery(DB.CpuProfile.CONTENT_URI, DB.CpuProfile.PROJECTION_DEFAULT, null, null, DB.CpuProfile.SORTORDER_DEFAULT); SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.p...
diff --git a/src/main/java/com/eightysteve/KISSmetrics/KISSmetricsAPI.java b/src/main/java/com/eightysteve/KISSmetrics/KISSmetricsAPI.java index 6c41f13..ba39bc1 100644 --- a/src/main/java/com/eightysteve/KISSmetrics/KISSmetricsAPI.java +++ b/src/main/java/com/eightysteve/KISSmetrics/KISSmetricsAPI.java @@ -1,316 +1,31...
true
true
private KISSmetricsAPI(String apiKey, Context context, boolean secure) { this._apiKey = apiKey; this._context = context; if (this._context == null) return; this.currentScheme = (secure)?HTTPS:HTTP; SharedPreferences pref = this._context.getSharedPreferences(IDENTITY_PREF, Activity.MODE_PRIVATE); SharedPref...
private KISSmetricsAPI(String apiKey, Context context, boolean secure) { this._apiKey = apiKey; this._context = context; if (this._context == null) return; this.currentScheme = (secure)?HTTPS:HTTP; SharedPreferences pref = this._context.getSharedPreferences(IDENTITY_PREF, Activity.MODE_PRIVATE); SharedPref...
diff --git a/src/at/roadrunner/android/activity/SystemTest.java b/src/at/roadrunner/android/activity/SystemTest.java index 56ce638..79bd458 100644 --- a/src/at/roadrunner/android/activity/SystemTest.java +++ b/src/at/roadrunner/android/activity/SystemTest.java @@ -1,246 +1,249 @@ package at.roadrunner.android.activity...
false
true
private void fixUpProblems() { int problemIndex = 0; // for all entries in the adapter for (HashMap<String, String> map : _testList) { if (map.get(RESULT).equals(getString(R.string.systemtest_fail) ) ) { switch (problemIndex) { case 0: downloadCouchDB(); break; case 1: installCou...
private void fixUpProblems() { int problemIndex = 0; // for all entries in the adapter for (HashMap<String, String> map : _testList) { if (map.get(RESULT).equals(getString(R.string.systemtest_fail) ) ) { switch (problemIndex) { case 0: downloadCouchDB(); break; case 1: installCou...
diff --git a/src/de/lemo/dms/processing/questions/QCourseUsers.java b/src/de/lemo/dms/processing/questions/QCourseUsers.java index 61be0afb..d1097322 100644 --- a/src/de/lemo/dms/processing/questions/QCourseUsers.java +++ b/src/de/lemo/dms/processing/questions/QCourseUsers.java @@ -1,89 +1,89 @@ package de.lemo.dms.pr...
true
true
public ResultListLongObject compute( @FormParam(COURSE_IDS) List<Long> courseIds, @FormParam(START_TIME) long startTime, @FormParam(END_TIME) long endTime) { // Check arguments if(startTime >= endTime) return null; // Set up db-connection ...
public ResultListLongObject compute( @FormParam(COURSE_IDS) List<Long> courseIds, @FormParam(START_TIME) long startTime, @FormParam(END_TIME) long endTime) { // Check arguments if(startTime >= endTime) return null; // Set up db-connection ...