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/ecologylab/generic/ConfParser.java b/ecologylab/generic/ConfParser.java index 0cfbe007..737ffbb6 100644 --- a/ecologylab/generic/ConfParser.java +++ b/ecologylab/generic/ConfParser.java @@ -1,65 +1,66 @@ package ecologylab.generic; import java.io.File; import java.io.FileNotFoundException; import jav...
true
true
public HashMap<String, String> parse() throws FileNotFoundException { confMap = new HashMap<String, String>(); if (!confFile.exists() || !confFile.canRead()) { throw new FileNotFoundException(); } //go line by line and add to the hash map if it's not a comment; Scanner scanner = new Scanner(confF...
public HashMap<String, String> parse() throws FileNotFoundException { confMap = new HashMap<String, String>(); if (!confFile.exists() || !confFile.canRead()) { System.err.println("Failed to parse conf file: " + confFile); throw new FileNotFoundException(); } //go line by line and add to the hash...
diff --git a/src/com/thomasbiddle/puppywood/WebcamActivity.java b/src/com/thomasbiddle/puppywood/WebcamActivity.java index b59762e..557e1b7 100644 --- a/src/com/thomasbiddle/puppywood/WebcamActivity.java +++ b/src/com/thomasbiddle/puppywood/WebcamActivity.java @@ -1,91 +1,91 @@ package com.thomasbiddle.puppywood; imp...
true
true
public void goToCamera(View v) { Spinner sp = (Spinner) findViewById(R.id.Spinner_Webcam); String currentWebcam = sp.getSelectedItem().toString(); Toast t = Toast.makeText(getApplicationContext(), currentWebcam, Toast.LENGTH_SHORT); t.show(); Intent intent = new Intent(); // Can't have...
public void goToCamera(View v) { Spinner sp = (Spinner) findViewById(R.id.Spinner_Webcam); String currentWebcam = sp.getSelectedItem().toString(); Toast t = Toast.makeText(getApplicationContext(), currentWebcam, Toast.LENGTH_SHORT); t.show(); Intent intent = new Intent(); // Can't have...
diff --git a/org.jcryptool.core/src/org/jcryptool/core/preferences/pages/GeneralPage.java b/org.jcryptool.core/src/org/jcryptool/core/preferences/pages/GeneralPage.java index 3eb09a96..c66059fd 100644 --- a/org.jcryptool.core/src/org/jcryptool/core/preferences/pages/GeneralPage.java +++ b/org.jcryptool.core/src/org/jcr...
true
true
private void setLanguage(String language) throws Exception { String path = Platform.getInstallLocation().getURL().toExternalForm(); String fileNameOrg = Platform.getProduct().getName() + ".ini"; //$NON-NLS-1$ String fileNameBak = fileNameOrg + ".bak"; //$NON-NLS-1$ if ("macosx".equa...
private void setLanguage(String language) throws Exception { String path = Platform.getInstallLocation().getURL().toExternalForm(); String fileNameOrg = Platform.getProduct().getName() + ".ini"; //$NON-NLS-1$ String fileNameBak = fileNameOrg + ".bak"; //$NON-NLS-1$ if ("macosx".equa...
diff --git a/src/test/java/com/wikia/webdriver/TestCases/ArticleCRUDTests/ArticleCRUDTestsAnonymous.java b/src/test/java/com/wikia/webdriver/TestCases/ArticleCRUDTests/ArticleCRUDTestsAnonymous.java index e20c5b1..10d618a 100644 --- a/src/test/java/com/wikia/webdriver/TestCases/ArticleCRUDTests/ArticleCRUDTestsAnonymou...
true
true
public void ArticleCRUDAnon_003_CreateEditArticle() { CommonFunctions.logOut(driver); WikiBasePageObject wiki = new WikiBasePageObject(driver, Global.DOMAIN); pageName = "QAarticle"+wiki.getTimeStamp(); wiki.openWikiPage(); WikiArticleEditMode edit = wiki.createNewArticle(pageName, 1); edit.deleteArticleC...
public void ArticleCRUDAnon_003_CreateEditArticle() { CommonFunctions.logOut(driver); WikiBasePageObject wiki = new WikiBasePageObject(driver, Global.DOMAIN); pageName = "QAarticle"+wiki.getTimeStamp(); wiki.openWikiPage(); WikiArticleEditMode edit = wiki.createNewArticle(pageName, 1); edit.deleteArticleC...
diff --git a/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java b/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java index 6bff117..f700a69 100644 --- a/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java +++ b/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java...
true
true
protected void paintComponent(final Graphics g) { super.paintComponent(g); if (!splinePainted) { // nothing to do, bail out return; } final Collection<JSlider> sliders = sliderMap.values(); Double[] p = new Double[slid...
protected void paintComponent(final Graphics g) { super.paintComponent(g); if (!splinePainted || model.getEqualizerCategoryCount() < 2) { // nothing to do, bail out return; } final Collection<JSlider> sliders = sliderMap.values();...
diff --git a/src/main/java/com/griefcraft/modules/doors/DoorsModule.java b/src/main/java/com/griefcraft/modules/doors/DoorsModule.java index dd5ddf04..3e5e5de2 100644 --- a/src/main/java/com/griefcraft/modules/doors/DoorsModule.java +++ b/src/main/java/com/griefcraft/modules/doors/DoorsModule.java @@ -1,281 +1,281 @@ ...
true
true
public void onProtectionInteract(LWCProtectionInteractEvent event) { if (event.getResult() == Result.CANCEL || !isEnabled()) { return; } // The more important check if (!event.canAccess()) { return; } Protection protection = event.getProtecti...
public void onProtectionInteract(LWCProtectionInteractEvent event) { if (event.getResult() == Result.CANCEL || !isEnabled()) { return; } // The more important check if (!event.canAccess()) { return; } Protection protection = event.getProtecti...
diff --git a/src/net/ishchenko/idea/navigatefromliteral/FileReferenceContributor.java b/src/net/ishchenko/idea/navigatefromliteral/FileReferenceContributor.java index fd0e44f..8e89633 100644 --- a/src/net/ishchenko/idea/navigatefromliteral/FileReferenceContributor.java +++ b/src/net/ishchenko/idea/navigatefromliteral/F...
false
true
public void registerReferenceProviders(PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(PsiJavaPatterns.psiLiteral(), new PsiReferenceProvider() { @NotNull public PsiReference[] getReferencesByElement(@NotNull PsiElement element, @NotNull ProcessingContext conte...
public void registerReferenceProviders(PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(PsiJavaPatterns.psiLiteral(), new PsiReferenceProvider() { @NotNull public PsiReference[] getReferencesByElement(@NotNull PsiElement element, @NotNull ProcessingContext conte...
diff --git a/source/net/sourceforge/fullsync/ui/ProfileDetails.java b/source/net/sourceforge/fullsync/ui/ProfileDetails.java index a37d5b1..458bcf5 100644 --- a/source/net/sourceforge/fullsync/ui/ProfileDetails.java +++ b/source/net/sourceforge/fullsync/ui/ProfileDetails.java @@ -1,664 +1,664 @@ package net.sourceforg...
false
true
public void initGUI(){ try { preInitGUI(); GridLayout thisLayout = new GridLayout(7, true); thisLayout.marginWidth = 10; thisLayout.marginHeight = 10; thisLayout.numColumns = 7; thisLayout.makeColumnsEqualWidth = false; thisLayout.horizontalSpacing = 5; thisLayout.verticalSpacing = 5; thi...
public void initGUI(){ try { preInitGUI(); GridLayout thisLayout = new GridLayout(7, true); thisLayout.marginWidth = 10; thisLayout.marginHeight = 10; thisLayout.numColumns = 7; thisLayout.makeColumnsEqualWidth = false; thisLayout.horizontalSpacing = 5; thisLayout.verticalSpacing = 5; thi...
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persistence/TestResultPM.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persistence/TestResultPM.java index 86eb7440f..d73146426 100644 --- a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persist...
true
true
private static void deleteMonitoringReports( EntityManager session, Long summaryId) { ITestResultSummaryPO summaryPo = null; if (summaryId != null) { summaryPo = session.find( PoMaker.getTestResultSummaryClass(), summaryId); if (summar...
private static void deleteMonitoringReports( EntityManager session, Long summaryId) { ITestResultSummaryPO summaryPo = null; if (summaryId != null) { summaryPo = session.find( PoMaker.getTestResultSummaryClass(), summaryId); if (summar...
diff --git a/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/TypeIdEvaluator.java b/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/TypeIdEvaluator.java index f653c801d..23ebd5ddd 100644 --- a/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/TypeIdEvaluator.java +++ b/src/de/uni_koblenz/jgralab/greq...
true
true
protected List<AttributedElementClass> createTypeList(Schema schema) throws EvaluateException { ArrayList<AttributedElementClass> returnTypes = new ArrayList<AttributedElementClass>(); AttributedElementClass elemClass = (AttributedElementClass) schema .getAttributedElementClass(new QualifiedName(vertex.getNam...
protected List<AttributedElementClass> createTypeList(Schema schema) throws EvaluateException { ArrayList<AttributedElementClass> returnTypes = new ArrayList<AttributedElementClass>(); AttributedElementClass elemClass = (AttributedElementClass) schema .getAttributedElementClass(new QualifiedName(vertex.getNam...
diff --git a/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java b/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java index 5be0bad7e..f5eca9b7d 100644 --- a/continuum-api/src/main/java/org/apache/maven/cont...
true
true
protected File createMetadataFile( URL metadata, String username, String password ) throws IOException { getLogger().info( "Downloading " + metadata.toExternalForm() ); InputStream is = null; if ( metadata.getProtocol().startsWith( "http" ) ) { is = new Mung...
protected File createMetadataFile( URL metadata, String username, String password ) throws IOException { getLogger().info( "Downloading " + metadata.toExternalForm() ); InputStream is = null; if ( metadata.getProtocol().startsWith( "http" ) ) { is = new Mung...
diff --git a/game/screen/ScreenMainMenu.java b/game/screen/ScreenMainMenu.java index cac1654..fcd225b 100644 --- a/game/screen/ScreenMainMenu.java +++ b/game/screen/ScreenMainMenu.java @@ -1,96 +1,96 @@ package game.screen; import game.Game; import game.Map; import game.utils.FileSaver; import game.utils.SpriteS...
true
true
public void render(Graphics g) { this.g = g; this.drawBackgroundScreen(); // this.drawAnimatedBackground(); //game.getFontRenderer().drawCenteredString(Game.TITLE, 36, 3); g.drawImage(game.logo, (game.getWidth()/2)-164, 36, 328, 66, game); ScreenTools.drawButton((game.getWidth()/2)-116, 116, 232, 25, "Sing...
public void render(Graphics g) { this.g = g; this.drawBackgroundScreen(); // this.drawAnimatedBackground(); //game.getFontRenderer().drawCenteredString(Game.TITLE, 36, 3); g.drawImage(game.logo, (game.getWidth()/2)-164, 36, 328, 66, game); ScreenTools.drawButton((game.getWidth()/2)-116, 116, 232, 25, "Sing...
diff --git a/master/src/com/indago/helpme/gui/dashboard/HelpEEDashboardActivity.java b/master/src/com/indago/helpme/gui/dashboard/HelpEEDashboardActivity.java index a259c4b..c15dc05 100644 --- a/master/src/com/indago/helpme/gui/dashboard/HelpEEDashboardActivity.java +++ b/master/src/com/indago/helpme/gui/dashboard/Help...
true
true
private void init() { final MediaPlayer player = MediaPlayer.create(this, R.raw.callcenter); mHelpMeLogo.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if(mStateMachine.getState() == STATES.HELP_INCOMMING) { mStateMachine.nextState(); } } }); mButton...
private void init() { final MediaPlayer player = MediaPlayer.create(this, R.raw.callcenter); mHelpMeLogo.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if(mStateMachine.getState() == STATES.HELP_INCOMMING) { mStateMachine.setState(STATES.HELP_ARRIVED); } ...
diff --git a/libraries/javalib/org/tritonus/midi/device/alsa/AlsaMidiIn.java b/libraries/javalib/org/tritonus/midi/device/alsa/AlsaMidiIn.java index 9f2701a83..53f098af9 100644 --- a/libraries/javalib/org/tritonus/midi/device/alsa/AlsaMidiIn.java +++ b/libraries/javalib/org/tritonus/midi/device/alsa/AlsaMidiIn.java @@ ...
true
true
private MidiEvent getEvent() { if (TDebug.TraceAlsaMidiIn) { TDebug.out("AlsaMidiIn.getEvent(): before eventInput()"); } while (true) { int nReturn = getAlsaSeq().eventInput(m_event); if (nReturn >= 0) { break; } /* * Sleep for 1 ms to enable scheduling. */ if (TDebug.TraceAlsaMid...
private MidiEvent getEvent() { if (TDebug.TraceAlsaMidiIn) { TDebug.out("AlsaMidiIn.getEvent(): before eventInput()"); } while (true) { int nReturn = getAlsaSeq().eventInput(m_event); if (nReturn >= 0) { break; } /* * Sleep for 1 ms to enable scheduling. */ if (TDebug.TraceAlsaMid...
diff --git a/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java b/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java index ee88bdd2a..ace323291 100644 --- a/java/modules/transports/core/nhttp/src/main/java/org/...
true
true
public HttpRequest getRequest() throws IOException { String httpMethod = (String) msgContext.getProperty(Constants.Configuration.HTTP_METHOD); if (httpMethod == null) { httpMethod = "POST"; } endpointURLPrefix = (String) msgContext.getProperty(NhttpConstants.ENDPOINT_PRE...
public HttpRequest getRequest() throws IOException { String httpMethod = (String) msgContext.getProperty(Constants.Configuration.HTTP_METHOD); if (httpMethod == null) { httpMethod = "POST"; } endpointURLPrefix = (String) msgContext.getProperty(NhttpConstants.ENDPOINT_PRE...
diff --git a/HUD.java b/HUD.java index 9a42fea..c2a8a0e 100644 --- a/HUD.java +++ b/HUD.java @@ -1,347 +1,347 @@ import java.io.*; import java.awt.*; import java.applet.*; import javax.swing.*; import java.util.*; import java.awt.image.*; import java.net.*; import javax.imageio.*; import java.util.Random; imp...
true
true
public void drawInventory(Graphics g, Pointer c) { this.c=c; if (c.getPointer()==2) { if (selectedItem<10) selectedItem++; c.setPointer(6); } if (c.getPointer()==0) { if (selectedItem>0) selectedItem--; c.setPointer(6); } if (c.getPointer()==10) { if (selectedItem<10) { ...
public void drawInventory(Graphics g, Pointer c) { this.c=c; if (c.getPointer()==2) { if (selectedItem<10) selectedItem++; c.setPointer(6); } if (c.getPointer()==0) { if (selectedItem>0) selectedItem--; c.setPointer(6); } if (c.getPointer()==10) { if (selectedItem<10) { ...
diff --git a/src/main/java/eu/neq/mais/request/comet/EchoService.java b/src/main/java/eu/neq/mais/request/comet/EchoService.java index 22d37af..1650ba8 100644 --- a/src/main/java/eu/neq/mais/request/comet/EchoService.java +++ b/src/main/java/eu/neq/mais/request/comet/EchoService.java @@ -1,146 +1,146 @@ package eu.neq...
true
true
void pulse(final ServerSession remote, final ServerMessage.Mutable message) { if (request.containsKey(message.getChannel())) { request.get(message.getChannel()).stop(); request.remove(message.getChannel()); System.out.println("pulse request on channel:" + message.getChannel()+" | receivers: "+request.siz...
void pulse(final ServerSession remote, final ServerMessage.Mutable message) { if (request.containsKey(message.getChannel())) { request.get(message.getChannel()).stop(); request.remove(message.getChannel()); System.out.println("pulse request on channel:" + message.getChannel()+" | receivers: "+request.siz...
diff --git a/riot/src/org/riotfamily/riot/security/policy/LoggingPolicy.java b/riot/src/org/riotfamily/riot/security/policy/LoggingPolicy.java index e0c972ccf..dcf19ec6f 100644 --- a/riot/src/org/riotfamily/riot/security/policy/LoggingPolicy.java +++ b/riot/src/org/riotfamily/riot/security/policy/LoggingPolicy.java @@ ...
true
true
public int checkPermission(RiotUser user, String action, Object object) { if (log.isDebugEnabled()) { StringBuffer message = new StringBuffer(); message.append("user: [").append(user.getUserId()).append("], "); message.append("action: [").append(action).append("], "); message.append("object: "); if (o...
public int checkPermission(RiotUser user, String action, Object object) { if (log.isDebugEnabled()) { StringBuffer message = new StringBuffer(); message.append("user: [").append(user.getUserId()).append("], "); message.append("action: [").append(action).append("], "); message.append("object: "); if (o...
diff --git a/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/data/std/accessors/KmerHashPartitioncomputerFactory.java b/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/data/std/accessors/KmerHashPartitioncomputerFactory.java index 53eafaac1..231470abb 100644 --- a/genomix/genomix-hyracks/src/main/ja...
false
true
public ITuplePartitionComputer createPartitioner() { return new ITuplePartitionComputer() { @Override public int partition(IFrameTupleAccessor accessor, int tIndex, int nParts) { if (nParts == 1) { return 0; } int startOffset = accessor.getTupleStartOffset(tIndex); int fieldOffset = a...
public ITuplePartitionComputer createPartitioner() { return new ITuplePartitionComputer() { @Override public int partition(IFrameTupleAccessor accessor, int tIndex, int nParts) { int startOffset = accessor.getTupleStartOffset(tIndex); int fieldOffset = accessor.getFieldStartOffset(tIndex, 0); ...
diff --git a/src/com/vodafone360/people/service/transport/DecoderThread.java b/src/com/vodafone360/people/service/transport/DecoderThread.java index 2e2dfb5..ee1ee43 100644 --- a/src/com/vodafone360/people/service/transport/DecoderThread.java +++ b/src/com/vodafone360/people/service/transport/DecoderThread.java @@ -1,3...
true
true
public void run() { LogUtils.logI("DecoderThread.run() [Start thread]"); while (mRunning) { EngineId engineId = EngineId.UNDEFINED; Type type = Type.PUSH_MSG; int reqId = -1; try { if (mResponses.size() > 0) { LogUti...
public void run() { LogUtils.logI("DecoderThread.run() [Start thread]"); while (mRunning) { EngineId engineId = EngineId.UNDEFINED; Type type = Type.PUSH_MSG; int reqId = -1; try { if (mResponses.size() > 0) { LogUti...
diff --git a/geotools2/geotools-src/filter/src/org/geotools/filter/ExpressionXmlParser.java b/geotools2/geotools-src/filter/src/org/geotools/filter/ExpressionXmlParser.java index e70def665..62563d75b 100644 --- a/geotools2/geotools-src/filter/src/org/geotools/filter/ExpressionXmlParser.java +++ b/geotools2/geotools-src...
false
true
public static Expression parseExpression(Node root){ LOGGER.finer("parsingExpression "+root.getNodeName()); //NodeList children = root.getChildNodes(); //LOGGER.finest("children "+children); if(root == null || root.getNodeType() != Node.ELEMENT_NODE){ LO...
public static Expression parseExpression(Node root){ LOGGER.finer("parsingExpression "+root.getNodeName()); //NodeList children = root.getChildNodes(); //LOGGER.finest("children "+children); if(root == null || root.getNodeType() != Node.ELEMENT_NODE){ LO...
diff --git a/src/main/java/de/cismet/cismap/commons/gui/piccolo/PFeature.java b/src/main/java/de/cismet/cismap/commons/gui/piccolo/PFeature.java index f19562e2..9a6503fd 100755 --- a/src/main/java/de/cismet/cismap/commons/gui/piccolo/PFeature.java +++ b/src/main/java/de/cismet/cismap/commons/gui/piccolo/PFeature.java @...
true
true
public Feature[] split() { if (isSplittable()) { final PureNewFeature[] ret = new PureNewFeature[2]; int from = ((Integer)(splitPolygonFromHandle.getClientProperty("coordinate_position_in_arr"))).intValue(); // NOI18N int to = ((Integer)(splitPolygonToHandle.getClientProp...
public Feature[] split() { if (isSplittable()) { final PureNewFeature[] ret = new PureNewFeature[2]; int from = ((Integer)(splitPolygonFromHandle.getClientProperty("coordinate_position_coord"))).intValue(); // NOI18N int to = ((Integer)(splitPolygonToHandle.getClientPrope...
diff --git a/src/share/classes/sun/java2d/cmm/lcms/LCMS.java b/src/share/classes/sun/java2d/cmm/lcms/LCMS.java index 4ce85425f..c089ba66f 100644 --- a/src/share/classes/sun/java2d/cmm/lcms/LCMS.java +++ b/src/share/classes/sun/java2d/cmm/lcms/LCMS.java @@ -1,104 +1,104 @@ /* * Copyright (c) 2007, 2010, Oracle and/or...
true
true
public Object run() { /* We need to load awt here because of usage trace and * disposer frameworks */ System.loadLibrary("awt"); System.loadLibrary("lcms"); return null; ...
public Object run() { /* We need to load awt here because of usage trace and * disposer frameworks */ System.loadLibrary("awt"); System.loadLibrary("javalcms"); return null; ...
diff --git a/src/share/classes/com/sun/tools/javafx/main/Main.java b/src/share/classes/com/sun/tools/javafx/main/Main.java index 2f124655a..28e42913d 100644 --- a/src/share/classes/com/sun/tools/javafx/main/Main.java +++ b/src/share/classes/com/sun/tools/javafx/main/Main.java @@ -1,743 +1,737 @@ /* * Copyright 1999-...
true
true
public int compile(String[] args, Context context, List<JavaFileObject> fileObjects) { String[] args2 = new String[args.length + 1]; for (int i = 0; i < args.length; ++i) { args2[i+1] = args[i]; } args2[0] = "-XDdumpjava=I:\\work"; ...
public int compile(String[] args, Context context, List<JavaFileObject> fileObjects) { registerServices(context, args); if (options == null) options = Options.instance(context); // creates a new one filenames = new ListBuffer<Fil...
diff --git a/thirdparties-extension/org.apache.poi.xwpf.converter.pdf/src/main/java/org/apache/poi/xwpf/converter/pdf/internal/elements/StylableDocument.java b/thirdparties-extension/org.apache.poi.xwpf.converter.pdf/src/main/java/org/apache/poi/xwpf/converter/pdf/internal/elements/StylableDocument.java index 91f2d704....
false
true
protected ExtendedHeaderFooter createExtendedHeaderFooter() { return new ExtendedHeaderFooter( this ) { @Override public void onStartPage( PdfWriter writer, Document doc ) { super.onStartPage( writer, doc ); StylableDocument.thi...
protected ExtendedHeaderFooter createExtendedHeaderFooter() { return new ExtendedHeaderFooter( this ) { @Override public void onStartPage( PdfWriter writer, Document doc ) { super.onStartPage( writer, doc ); StylableDocument.thi...
diff --git a/jason/asSemantics/TransitionSystem.java b/jason/asSemantics/TransitionSystem.java index 1eb5f91..b8fd482 100644 --- a/jason/asSemantics/TransitionSystem.java +++ b/jason/asSemantics/TransitionSystem.java @@ -1,1122 +1,1124 @@ // ---------------------------------------------------------------------------- ...
false
true
private void applyExecInt() throws JasonException { confP.step = State.ClrInt; // default next step if (conf.C.SI.isFinished()) { return; } // get next formula in the body of the intended means // on the top of the selected intention Int...
private void applyExecInt() throws JasonException { confP.step = State.ClrInt; // default next step if (conf.C.SI.isFinished()) { return; } // get next formula in the body of the intended means // on the top of the selected intention Int...
diff --git a/src/jp/atr/unr/pf/gui/KnowRobGuiMain.java b/src/jp/atr/unr/pf/gui/KnowRobGuiMain.java index 6cae95f..634b006 100644 --- a/src/jp/atr/unr/pf/gui/KnowRobGuiMain.java +++ b/src/jp/atr/unr/pf/gui/KnowRobGuiMain.java @@ -1,251 +1,251 @@ /* * Copyright (C) 2012 * ATR Intelligent Robotics and Communi...
true
true
public void setup () { size(1250, 750, P2D); frameRate(10); background(40); //initLocalProlog("prolog/init.pl"); PrologInterface.initJPLProlog("re_comm"); new jpl.Query("use_module(library('knowrob_coordinates'))").oneSolution(); new jpl.Query("use_module(library('comp_similarity'))").oneSolution()...
public void setup () { size(1250, 750, P2D); frameRate(10); background(40); //initLocalProlog("prolog/init.pl"); PrologInterface.initJPLProlog("mod_vis"); new jpl.Query("use_module(library('knowrob_coordinates'))").oneSolution(); new jpl.Query("use_module(library('comp_similarity'))").oneSolution()...
diff --git a/vagrant/src/org/netbeans/modules/vagrant/boxes/VagrantBoxesSupport.java b/vagrant/src/org/netbeans/modules/vagrant/boxes/VagrantBoxesSupport.java index 6093bfa..20d01f8 100644 --- a/vagrant/src/org/netbeans/modules/vagrant/boxes/VagrantBoxesSupport.java +++ b/vagrant/src/org/netbeans/modules/vagrant/boxes/...
true
true
public static List<VagrantBoxItem> getCommunityBoxes() { LinkedList<VagrantBoxItem> boxes = new LinkedList<VagrantBoxItem>(); String boxesUrl = VagrantOptions.getInstance().getBoxesUrl(); try { // parse HTML Document doc = Jsoup.connect(boxesUrl).get(); E...
public static List<VagrantBoxItem> getCommunityBoxes() { LinkedList<VagrantBoxItem> boxes = new LinkedList<VagrantBoxItem>(); String boxesUrl = VagrantOptions.getInstance().getBoxesUrl(); try { // parse HTML Document doc = Jsoup.connect(boxesUrl).get(); E...
diff --git a/src/test/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehaviorTestCase.java b/src/test/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehaviorTestCase.java index 2e0a4bed..bf09293f 100644 --- a/src/test/java/org/odlabs/wiquery/ui/selectable/SelectableAjaxBehaviorTestCase.java +++ b/src/test/jav...
true
true
public void testStatement() { InnerSelectableAjaxBehavior selectableAjaxBehavior = new InnerSelectableAjaxBehavior(); WebMarkupContainer component = new WebMarkupContainer("anId"); component.setMarkupId("anId"); component.add(selectableAjaxBehavior); WebPage webPage = new InnerPage(); webPage.add(componen...
public void testStatement() { InnerSelectableAjaxBehavior selectableAjaxBehavior = new InnerSelectableAjaxBehavior(); WebMarkupContainer component = new WebMarkupContainer("anId"); component.setMarkupId("anId"); component.add(selectableAjaxBehavior); WebPage webPage = new InnerPage(); webPage.add(componen...
diff --git a/examples/Java/identity.java b/examples/Java/identity.java index df8552bd..07e75ab4 100644 --- a/examples/Java/identity.java +++ b/examples/Java/identity.java @@ -1,36 +1,36 @@ import org.zeromq.ZMQ; import org.zeromq.ZMQ.Context; import org.zeromq.ZMQ.Socket; /** * Demonstrate identities as used by...
false
true
public static void main (String[] args) throws InterruptedException { Context context = ZMQ.context(1); Socket sink = context.socket(ZMQ.ROUTER); sink.bind("inproc://example"); // First allow 0MQ to set the identity, [00] + random 4byte Socket anonymous = context.socket(ZM...
public static void main (String[] args) throws InterruptedException { Context context = ZMQ.context(1); Socket sink = context.socket(ZMQ.ROUTER); sink.bind("inproc://example"); // First allow 0MQ to set the identity, [00] + random 4byte Socket anonymous = context.socket(ZM...
diff --git a/DistFileSystem/src/distserver/ServCheckPosition.java b/DistFileSystem/src/distserver/ServCheckPosition.java index 990daf0..32af7d3 100644 --- a/DistFileSystem/src/distserver/ServCheckPosition.java +++ b/DistFileSystem/src/distserver/ServCheckPosition.java @@ -1,180 +1,178 @@ /** * @author paul */ pac...
false
true
public void run() { try { System.out.println("In thread for check position"); this.distConfig = DistConfig.get_Instance(); // Get the input stream for the client BufferedReader inStream = new BufferedReader ( new Input...
public void run() { try { System.out.println("In thread for check position"); this.distConfig = DistConfig.get_Instance(); // Get the input stream for the client BufferedReader inStream = new BufferedReader ( new Input...
diff --git a/src/me/comp/cPlugin/PlayerListener.java b/src/me/comp/cPlugin/PlayerListener.java index 8a397a2..b1fcbab 100644 --- a/src/me/comp/cPlugin/PlayerListener.java +++ b/src/me/comp/cPlugin/PlayerListener.java @@ -1,59 +1,61 @@ package me.comp.cPlugin; import org.bukkit.Bukkit; import org.bukkit.ChatColor...
false
true
public void onPlayerJoin(PlayerJoinEvent e){ //define string, constants, and other. String modsMessage = ChatColor.RED + "This string is for mod news"; String retModMessage = ChatColor.RED + "This string is for retired mod news"; Player player = e.getPlayer(); GameMode gamemode = player.getGameMode(); Str...
public void onPlayerJoin(PlayerJoinEvent e){ //define string, constants, and other. String modsMessage = ChatColor.RED + "This string is for mod news"; String retModMessage = ChatColor.RED + "This string is for retired mod news"; Player player = e.getPlayer(); GameMode gamemode = player.getGameMode(); Str...
diff --git a/ghana-national-functional-tests/src/main/java/org/motechproject/functional/base/FireFoxWebDriver.java b/ghana-national-functional-tests/src/main/java/org/motechproject/functional/base/FireFoxWebDriver.java index bc19fe60..cd2e4844 100644 --- a/ghana-national-functional-tests/src/main/java/org/motechproject...
true
true
public WebDriver getDriver() { FirefoxBinary firefoxBinary = new FirefoxBinary(new File(firefoxLocation)); firefoxBinary.setEnvironmentProperty("DISPLAY", System.getProperty("display", ":0.0")); return new FirefoxDriver(firefoxBinary, new FirefoxProfile()); }
public WebDriver getDriver() { FirefoxBinary firefoxBinary = new FirefoxBinary(new File(firefoxLocation)); firefoxBinary.setEnvironmentProperty("DISPLAY", System.getProperty("functional.test.display", ":0.0")); return new FirefoxDriver(firefoxBinary, new FirefoxProfile()); }
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/ContactInfoPane.java b/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/ContactInfoPane.java index 60486859..543bd273 100644 --- a/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/ContactInfoPane.java +++ b/OpERP/src...
true
true
public ContactInfoPane() { pane = new JPanel(); pane.setLayout(new MigLayout("", "[][grow]", "[][][][][][][][][]")); JLabel lblAddress = new JLabel("Address"); pane.add(lblAddress, "flowx,cell 0 0"); addressPanel = new JPanel(); pane.add(addressPanel, "cell 0 1,grow,span"); JLabel lblEmail = new JLabe...
public ContactInfoPane() { pane = new JPanel(); pane.setLayout(new MigLayout("", "[][grow]", "[][][][][][][][][]")); JLabel lblAddress = new JLabel("Address"); pane.add(lblAddress, "flowx,cell 0 0"); addressPanel = new JPanel(); pane.add(addressPanel, "cell 0 1,grow,span"); JLabel lblEmail = new JLabe...
diff --git a/activeweb/src/test/java/activeweb/ControllerClassLoaderSpec.java b/activeweb/src/test/java/activeweb/ControllerClassLoaderSpec.java index 27dab84..738e002 100644 --- a/activeweb/src/test/java/activeweb/ControllerClassLoaderSpec.java +++ b/activeweb/src/test/java/activeweb/ControllerClassLoaderSpec.java @@ ...
true
true
public void test() throws ClassNotFoundException { String className = "activeweb.mock.MockController"; ControllerClassLoader cl1 = new ControllerClassLoader(ControllerClassLoaderSpec.class.getClassLoader(), "target/test-classes"); ControllerClassLoader cl2 = new ControllerClassLoader(Contr...
public void test() throws ClassNotFoundException { String className = "app.controllers.BlahController"; ControllerClassLoader cl1 = new ControllerClassLoader(ControllerClassLoaderSpec.class.getClassLoader(), "target/test-classes"); ControllerClassLoader cl2 = new ControllerClassLoader(Cont...
diff --git a/Search/src/ru/chuprikov/search/search/Search.java b/Search/src/ru/chuprikov/search/search/Search.java index 70bd86c..1809003 100644 --- a/Search/src/ru/chuprikov/search/search/Search.java +++ b/Search/src/ru/chuprikov/search/search/Search.java @@ -1,179 +1,179 @@ package ru.chuprikov.search.search; imp...
true
true
private Iterator<PostingInfo> getWildcardIterator(String token, List<CloseableIterator<Datatypes.Posting>> openedIterators, Suggestions sugest) throws Exception { final String stemmedToken = Normalize.getBasisWord(token); final String suffix = token.substring(stemmedToken.length(), token.length()); ...
private Iterator<PostingInfo> getWildcardIterator(String token, List<CloseableIterator<Datatypes.Posting>> openedIterators, Suggestions sugest) throws Exception { final String stemmedToken = Normalize.getBasisWord(token); final String suffix = token.substring(stemmedToken.length(), token.length()); ...
diff --git a/src/Fast.java b/src/Fast.java index 9a77654..84acaef 100644 --- a/src/Fast.java +++ b/src/Fast.java @@ -1,109 +1,113 @@ import java.util.Arrays; import java.util.Collections; public class Fast { public static void main(String[] args) { // rescale coordinates and turn on animation mode ...
false
true
public static void main(String[] args) { // rescale coordinates and turn on animation mode StdDraw.setXscale(0, 32768); StdDraw.setYscale(0, 32768); StdDraw.show(0); //input processing. String filename = args[0]; In in = new In(filename); int N = in.readInt();...
public static void main(String[] args) { // rescale coordinates and turn on animation mode StdDraw.setXscale(0, 32768); StdDraw.setYscale(0, 32768); StdDraw.show(0); //input processing. String filename = args[0]; In in = new In(filename); int N = in.readInt();...
diff --git a/rameses-osiris3-core2/src/com/rameses/osiris3/activedb/ActiveDBInvoker.java b/rameses-osiris3-core2/src/com/rameses/osiris3/activedb/ActiveDBInvoker.java index 2a0ba5eb..fdbe0801 100644 --- a/rameses-osiris3-core2/src/com/rameses/osiris3/activedb/ActiveDBInvoker.java +++ b/rameses-osiris3-core2/src/com/ram...
true
true
public Object invokeMethod(String methodName, Object[] args) { try { String n = schemaName; String subSchema = ""; Map m = null; if( args!=null ) { m = (Map)args[0]; //used for subschema for entity managers. ...
public Object invokeMethod(String methodName, Object[] args) { try { String n = schemaName; String subSchema = ""; Map m = null; if( args!=null ) { if( args.length > 0 ) { m = (Map)args[0]; ...
diff --git a/src/com/simplechat/server/CommandHandler.java b/src/com/simplechat/server/CommandHandler.java index abf250c..07df489 100644 --- a/src/com/simplechat/server/CommandHandler.java +++ b/src/com/simplechat/server/CommandHandler.java @@ -1,435 +1,437 @@ /* * To change this template, choose Tools | Templates ...
true
true
public void parseCommand(String cmd, String[] args) { PacketHandler ph = new PacketHandler(); DataManager dm = new DataManager(); if(cmd.equalsIgnoreCase("quit")) { String msg = ""; for(int i = 0; i < args.length; i++) msg += args[i] + " "; msg = ...
public void parseCommand(String cmd, String[] args) { PacketHandler ph = new PacketHandler(); DataManager dm = new DataManager(); if(cmd.equalsIgnoreCase("quit")) { String msg = ""; for(int i = 0; i < args.length; i++) msg += args[i] + " "; msg = ...
diff --git a/src/actions/commons/src/main/java/it/geosolutions/geobatch/actions/commons/ExtractAction.java b/src/actions/commons/src/main/java/it/geosolutions/geobatch/actions/commons/ExtractAction.java index 313ebad7..125a1128 100644 --- a/src/actions/commons/src/main/java/it/geosolutions/geobatch/actions/commons/Extr...
true
true
public Queue<EventObject> execute(Queue<EventObject> events) throws ActionException { listenerForwarder.started(); listenerForwarder.setTask("build the output absolute file name"); // return final Queue<EventObject> ret = new LinkedList<EventObject>(); listenerForwarder.se...
public Queue<EventObject> execute(Queue<EventObject> events) throws ActionException { listenerForwarder.started(); listenerForwarder.setTask("build the output absolute file name"); // return final Queue<EventObject> ret = new LinkedList<EventObject>(); listenerForwarder.se...
diff --git a/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java b/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java index da199fd..ed7d548 100644 --- a/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java +++ b/sr...
true
true
public void testUnpackOverWriteIfNewer() throws IOException, MojoExecutionException, InterruptedException { mojo.silent = false; stubFactory.setCreateFiles( true ); Artifact artifact = stubFactory.getSnapshotArtifact(); assertTrue( artifact.getFile().setLastModified( Syst...
public void testUnpackOverWriteIfNewer() throws IOException, MojoExecutionException, InterruptedException { mojo.silent = false; stubFactory.setCreateFiles( true ); Artifact artifact = stubFactory.getSnapshotArtifact(); assertTrue( artifact.getFile().setLastModified( Syst...
diff --git a/srcj/com/sun/electric/tool/EThread.java b/srcj/com/sun/electric/tool/EThread.java index e649530c8..216d0d7a9 100644 --- a/srcj/com/sun/electric/tool/EThread.java +++ b/srcj/com/sun/electric/tool/EThread.java @@ -1,265 +1,266 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: ...
true
true
public void run() { Job.logger.logp(Level.FINE, CLASS_NAME, "run", getName()); EJob finishedEJob = null; for (;;) { ejob = Job.jobManager.selectEJob(finishedEJob); Job.logger.logp(Level.FINER, CLASS_NAME, "run", "selectedJob {0}", ejob.jobName); isServerTh...
public void run() { Job.logger.logp(Level.FINE, CLASS_NAME, "run", getName()); EJob finishedEJob = null; for (;;) { ejob = Job.jobManager.selectEJob(finishedEJob); Job.logger.logp(Level.FINER, CLASS_NAME, "run", "selectedJob {0}", ejob.jobName); isServerTh...
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/model/NodePO.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/model/NodePO.java index 09542c822..bf87ed031 100644 --- a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/model/NodePO.java +++ b/org.ecl...
true
true
public void addTrackedChange(String optionalComment) { final boolean isTrackingChanges = GeneralStorage.getInstance() .getProject().getIsTrackingActivated(); if (isTrackingChanges) { final long timestamp = new Date().getTime(); // remove tracked changes, if th...
public void addTrackedChange(String optionalComment) { final IProjectPO project = GeneralStorage.getInstance().getProject(); boolean isTrackingChanges = false; if (project != null) { isTrackingChanges = project.getIsTrackingActivated(); } if (isTrackingChanges) { ...
diff --git a/src/com/time/master/view/TabTextView.java b/src/com/time/master/view/TabTextView.java index 87b8f7a..0ba4961 100644 --- a/src/com/time/master/view/TabTextView.java +++ b/src/com/time/master/view/TabTextView.java @@ -1,125 +1,125 @@ package com.time.master.view; import com.time.master.TimeMasterApplicat...
true
true
protected void onDraw(Canvas canvas) { // canvas.drawRect(0, 0, gap, unit_width*0.75f, marginPaint);//��߿� // canvas.drawRect(gap, 0, gap+unit_width, unit_width*0.75f, mPaint);//���о��� // if(hasRightEdge) // canvas.drawRect(gap+unit_width, 0, gap+gap+unit_width, unit_width*0.75f, marginPaint);//�ұ߿� // /...
protected void onDraw(Canvas canvas) { // canvas.drawRect(0, 0, gap, unit_width*0.75f, marginPaint);//��߿� // canvas.drawRect(gap, 0, gap+unit_width, unit_width*0.75f, mPaint);//���о��� // if(hasRightEdge) // canvas.drawRect(gap+unit_width, 0, gap+gap+unit_width, unit_width*0.75f, marginPaint);//�ұ߿� // /...
diff --git a/src/com/mcprohosting/plugins/imraising/WhitelistHandler.java b/src/com/mcprohosting/plugins/imraising/WhitelistHandler.java index 2d7bdd1..259e4f2 100644 --- a/src/com/mcprohosting/plugins/imraising/WhitelistHandler.java +++ b/src/com/mcprohosting/plugins/imraising/WhitelistHandler.java @@ -1,48 +1,48 @@ ...
true
true
public static void whitelistFromJSON(JSONObject jsonObject) { JSONArray donationJSON = jsonObject.getJSONArray("donation"); for (int i = 0; i < donationJSON.length(); i++) { String jsonObjectString = donationJSON.get(i).toString(); String playerName = jsonObjectString.substring(jsonObjectString.indexOf(...
public static void whitelistFromJSON(JSONObject jsonObject) { JSONArray donationJSON = jsonObject.getJSONArray("donation"); for (int i = 0; i < donationJSON.length(); i++) { String jsonObjectString = donationJSON.get(i).toString(); String playerName = jsonObjectString.substring(jsonObjectString.indexOf(...
diff --git a/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui/views/ResultViewController.java b/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui/views/ResultViewController.java index 03b48f31..fcad83b8 100644 --- a/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui...
true
true
private void handleTerminateEvent(final MakeGoodLaunch launch) { // TODO This code is to avoid calling terminate() twice by PDT. if (terminateEventFired(launch)) { return; } markAsTerminateEventFired(launch); if (!createEventFired(launch)) { return; ...
private void handleTerminateEvent(final MakeGoodLaunch launch) { // TODO This code is to avoid calling terminate() twice by PDT. if (terminateEventFired(launch)) { return; } markAsTerminateEventFired(launch); if (!createEventFired(launch)) { TestLifec...
diff --git a/surefire/src/main/java/org/codehaus/surefire/report/XMLReporter.java b/surefire/src/main/java/org/codehaus/surefire/report/XMLReporter.java index 249f92d9..66d2c061 100644 --- a/surefire/src/main/java/org/codehaus/surefire/report/XMLReporter.java +++ b/surefire/src/main/java/org/codehaus/surefire/report/XM...
false
true
public void testError( ReportEntry report, String stdOut, String stdErr ) { super.testError(report, stdOut, stdErr); String stackTrace = getStackTrace(report); Xpp3Dom error = createElement (testCase, "error"); String message = StringUtils.replace(repor...
public void testError( ReportEntry report, String stdOut, String stdErr ) { super.testError(report, stdOut, stdErr); String stackTrace = getStackTrace(report); Xpp3Dom error = createElement (testCase, "error"); String message = StringUtils.replace(repor...
diff --git a/qcadoo-view/src/main/java/com/qcadoo/view/api/utils/FormUtils.java b/qcadoo-view/src/main/java/com/qcadoo/view/api/utils/FormUtils.java index d176cddd2..d4d8ece12 100644 --- a/qcadoo-view/src/main/java/com/qcadoo/view/api/utils/FormUtils.java +++ b/qcadoo-view/src/main/java/com/qcadoo/view/api/utils/FormUt...
true
true
public static final void setFormEntity(final FormComponent form, final Entity entity) { form.setEntity(entity); }
public static void setFormEntity(final FormComponent form, final Entity entity) { form.setEntity(entity); }
diff --git a/src/main/java/org/cc/exception/JsonView.java b/src/main/java/org/cc/exception/JsonView.java index caf961d..6a59d29 100644 --- a/src/main/java/org/cc/exception/JsonView.java +++ b/src/main/java/org/cc/exception/JsonView.java @@ -1,48 +1,49 @@ package org.cc.exception; import com.fasterxml.jackson.databi...
true
true
public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception { Object data = model.get(DATA_FIELD_NAME); OutputStream ostream = response.getOutputStream(); if (data == null) { String err = "Model doesn'...
public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception { Object data = model.get(DATA_FIELD_NAME); response.setContentType("application/json"); OutputStream ostream = response.getOutputStream(); if (d...
diff --git a/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java b/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java index 2eff29bc..52f35396 100644 --- a/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java +++ b/src/main/java/net/nunneryco...
true
true
private List<String> generateLore(ItemStack itemStack) { List<String> lore = new ArrayList<String>(); if (itemStack == null || tier == null) { return lore; } List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat(); String minecraft...
private List<String> generateLore(ItemStack itemStack) { List<String> lore = new ArrayList<String>(); if (itemStack == null || tier == null) { return lore; } List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat(); String minecraft...
diff --git a/dao-jpa/src/main/java/org/apache/ode/dao/jpa/MessageExchangeDAOImpl.java b/dao-jpa/src/main/java/org/apache/ode/dao/jpa/MessageExchangeDAOImpl.java index 292d09371..b540dae8d 100644 --- a/dao-jpa/src/main/java/org/apache/ode/dao/jpa/MessageExchangeDAOImpl.java +++ b/dao-jpa/src/main/java/org/apache/ode/dao...
true
true
public Collection<CorrelationKey> getCorrelationKeys() { ArrayList<CorrelationKey> correlationKeys = new ArrayList<CorrelationKey>(); if (_correlationKeys.indexOf("^") > 0) { for (StringTokenizer tokenizer = new StringTokenizer(_correlationKeys, "^"); tokenizer.hasMoreTokens();) { ...
public Collection<CorrelationKey> getCorrelationKeys() { ArrayList<CorrelationKey> correlationKeys = new ArrayList<CorrelationKey>(); if (_correlationKeys != null) { if (_correlationKeys.indexOf("^") > 0) { for (StringTokenizer tokenizer = new StringTokenizer(_correlationKey...
diff --git a/luni/src/main/java/java/lang/ref/FinalizerReference.java b/luni/src/main/java/java/lang/ref/FinalizerReference.java index a3f90248d..2d5cef20b 100644 --- a/luni/src/main/java/java/lang/ref/FinalizerReference.java +++ b/luni/src/main/java/java/lang/ref/FinalizerReference.java @@ -1,76 +1,76 @@ /* * Copyr...
true
true
public static void remove(FinalizerReference reference) { synchronized (FinalizerReference.class) { FinalizerReference next = reference.next; FinalizerReference prev = reference.prev; reference.next = null; reference.prev = null; if (prev != null) ...
public static void remove(FinalizerReference reference) { synchronized (FinalizerReference.class) { FinalizerReference next = reference.next; FinalizerReference prev = reference.prev; reference.next = null; reference.prev = null; if (prev != null) ...
diff --git a/src/edu/umw/cpsc/collegesim/Decay.java b/src/edu/umw/cpsc/collegesim/Decay.java index d02a482..cd03bf4 100644 --- a/src/edu/umw/cpsc/collegesim/Decay.java +++ b/src/edu/umw/cpsc/collegesim/Decay.java @@ -1,120 +1,120 @@ package edu.umw.cpsc.collegesim; import java.util.ArrayList; import sim.engine.*; ...
true
true
public void step(SimState state){ //People is a bag of all people Bag people = Sim.instance( ).people.getAllNodes( ); //We're going to print out the people for sanity check System.out.println("The contents of the bag: "); for(int m=0; m<people.size( ); m++){ Person mP = (Person) people.get(m); System.o...
public void step(SimState state){ //People is a bag of all people Bag people = Sim.instance( ).people.getAllNodes( ); //We're going to print out the people for sanity check System.out.println("The contents of the bag: "); for(int m=0; m<people.size( ); m++){ Person mP = (Person) people.get(m); System.o...
diff --git a/src/edu/pitt/isp/sverchkov/scorecalculator/ScoreFileV1Writer.java b/src/edu/pitt/isp/sverchkov/scorecalculator/ScoreFileV1Writer.java index 20c52d5..8cba27a 100644 --- a/src/edu/pitt/isp/sverchkov/scorecalculator/ScoreFileV1Writer.java +++ b/src/edu/pitt/isp/sverchkov/scorecalculator/ScoreFileV1Writer.java...
false
true
public void writeScores(RecordSet rs, ScoreFunction sf) { Variable[] variables = rs.getVariableArray(); if( variables.length > 31 ) throw new UnsupportedOperationException("Current implementation does not support more than 31 variables."); long[] bitmas...
public void writeScores(RecordSet rs, ScoreFunction sf) { Variable[] variables = rs.getVariableArray(); if( variables.length > 31 ) throw new UnsupportedOperationException("Current implementation does not support more than 31 variables."); final long[] ...
diff --git a/SolarPanelApp/src/com/example/calendar/BasicCalendar.java b/SolarPanelApp/src/com/example/calendar/BasicCalendar.java index 228cb35..9ee01e8 100644 --- a/SolarPanelApp/src/com/example/calendar/BasicCalendar.java +++ b/SolarPanelApp/src/com/example/calendar/BasicCalendar.java @@ -1,54 +1,56 @@ package com....
false
true
private static boolean isOverlap(Event e1, Event e2) { Calendar newDay = Calendar.getInstance(); long newStart = ((newDay.get(Calendar.HOUR) * 60 + newDay.get(Calendar.MINUTE)) * 60 * 1000) % DAY_MILLIS; long newEnd = (newStart + e1.getDuration()) % DAY_MILLIS; Calendar oldDay = Calendar.getInstance(); lo...
private static boolean isOverlap(Event e1, Event e2) { Calendar newDay = Calendar.getInstance(); newDay.setTimeInMillis(e1.getFirstTime()); long newStart = ((newDay.get(Calendar.HOUR) * 60 + newDay.get(Calendar.MINUTE)) * 60 * 1000) % DAY_MILLIS; long newEnd = (newStart + e1.getDuration()) % DAY_MILLIS; C...
diff --git a/cis-modules/cis-management/cis-manager/cis-manager/src/main/java/org/societies/cis/manager/Cis.java b/cis-modules/cis-management/cis-manager/cis-manager/src/main/java/org/societies/cis/manager/Cis.java index c8619c10a..f179b14ef 100644 --- a/cis-modules/cis-management/cis-manager/cis-manager/src/main/java/...
false
true
public Object getQuery(Stanza stanza, Object payload) { // all received IQs contain a community element LOG.info("get Query received"); if (payload.getClass().equals(CommunityMethods.class)) { LOG.info("community type received"); CommunityMethods c = (CommunityMethods) payload; // JOIN if (c.getJoin...
public Object getQuery(Stanza stanza, Object payload) { // all received IQs contain a community element LOG.info("get Query received"); if (payload.getClass().equals(CommunityMethods.class)) { LOG.info("community type received"); CommunityMethods c = (CommunityMethods) payload; // JOIN if (c.getJoin...
diff --git a/src/powercrystals/minefactoryreloaded/gui/control/ButtonLogicBufferSelect.java b/src/powercrystals/minefactoryreloaded/gui/control/ButtonLogicBufferSelect.java index 7cf640c6..0a567654 100644 --- a/src/powercrystals/minefactoryreloaded/gui/control/ButtonLogicBufferSelect.java +++ b/src/powercrystals/minefa...
true
true
public ButtonLogicBufferSelect(GuiRedNetLogic containerScreen, int x, int y, int pinIndex, LogicButtonType buttonType, int rotation) { super(containerScreen, x, y, 30, 14); _logicScreen = containerScreen; _buttonType = buttonType; _pinIndex = pinIndex; char[] dir = {'F','R','B','L'}; char[] dirMap = ne...
public ButtonLogicBufferSelect(GuiRedNetLogic containerScreen, int x, int y, int pinIndex, LogicButtonType buttonType, int rotation) { super(containerScreen, x, y, 30, 14); _logicScreen = containerScreen; _buttonType = buttonType; _pinIndex = pinIndex; char[] dir = {'L','B','R','F',}; char[] dirMap = n...
diff --git a/src/main/java/org/ebayopensource/turmeric/tools/annoparser/outputgenerator/impl/ToStringOutputGenerator.java b/src/main/java/org/ebayopensource/turmeric/tools/annoparser/outputgenerator/impl/ToStringOutputGenerator.java index 0867aff..47ce22b 100644 --- a/src/main/java/org/ebayopensource/turmeric/tools/ann...
true
true
private void printToFileIfApplicable(Object doc, OutputGenaratorParam outputGenaratorParam,String fileName) throws WsdlDocException { if (outputGenaratorParam.getParameters() != null) { if (outputGenaratorParam.getParameters().get("writeToFile") != null && "true".equals(outputGenaratorParam.getParameters(...
private void printToFileIfApplicable(Object doc, OutputGenaratorParam outputGenaratorParam,String fileName) throws WsdlDocException { if (outputGenaratorParam.getParameters() != null) { if (outputGenaratorParam.getParameters().get("writeToFile") != null && "true".equals(outputGenaratorParam.getParameters(...
diff --git a/src/main/java/com/mashape/client/http/HttpClient.java b/src/main/java/com/mashape/client/http/HttpClient.java index 91dfcc3..c1bb538 100644 --- a/src/main/java/com/mashape/client/http/HttpClient.java +++ b/src/main/java/com/mashape/client/http/HttpClient.java @@ -1,231 +1,231 @@ /* * * Mashape Java Cl...
true
true
public static <T> MashapeResponse<T> doRequest (Class<T> clazz, HttpMethod httpMethod, String url, Map<String, Object> parameters, ContentType contentType, ResponseType responseType, List<Authentication> authenticationHandlers) { if (authenticationHandlers == null) authenticationHandlers = new ArrayList<Authenticati...
public static <T> MashapeResponse<T> doRequest (Class<T> clazz, HttpMethod httpMethod, String url, Map<String, Object> parameters, ContentType contentType, ResponseType responseType, List<Authentication> authenticationHandlers) { if (authenticationHandlers == null) authenticationHandlers = new ArrayList<Authenticati...
diff --git a/app/utils/HttpUtil.java b/app/utils/HttpUtil.java index 82277e10..7dc8c909 100644 --- a/app/utils/HttpUtil.java +++ b/app/utils/HttpUtil.java @@ -1,97 +1,97 @@ package utils; import org.apache.commons.lang3.StringUtils; import play.api.http.MediaRange; import play.mvc.Http; import scala.Option; i...
true
true
public static String removeQueryString(String url, String ... keys) throws URISyntaxException, UnsupportedEncodingException { URI aURI = new URI(url); List<String> pairStrings = new ArrayList<String>(); Set<String> keySet = new HashSet(Arrays.asList(keys)); for (String p...
public static String removeQueryString(String url, String ... keys) throws URISyntaxException, UnsupportedEncodingException { URI aURI = new URI(url); List<String> pairStrings = new ArrayList<>(); Set<String> keySet = new HashSet<>(Arrays.asList(keys)); for (String pairS...
diff --git a/integration/src/main/java/org/jboss/errai/cdi/server/EventSubscriptionListener.java b/integration/src/main/java/org/jboss/errai/cdi/server/EventSubscriptionListener.java index 66dacb1fb..aaca27d8e 100644 --- a/integration/src/main/java/org/jboss/errai/cdi/server/EventSubscriptionListener.java +++ b/integra...
true
true
public void onSubscribe(SubscriptionEvent event) { if (event.isLocalOnly() || !event.isRemote() || !event.getSubject().startsWith("cdi.event:")) return; String name = event.getSubject().substring("cdi.event:".length()); try { if (observedEvents.containsKey(name) && event.getCoun...
public void onSubscribe(SubscriptionEvent event) { if (event.isLocalOnly() || !event.isRemote() || !event.getSubject().startsWith("cdi.event:")) return; String name = event.getSubject().substring("cdi.event:".length()); try { if (observedEvents.containsKey(name) && event.getCoun...
diff --git a/components/patient-data/api/src/main/java/edu/toronto/cs/phenotips/data/internal/PhenoTipsPhenotype.java b/components/patient-data/api/src/main/java/edu/toronto/cs/phenotips/data/internal/PhenoTipsPhenotype.java index eb7929f0f..9aca8ddd1 100644 --- a/components/patient-data/api/src/main/java/edu/toronto/c...
true
true
PhenoTipsPhenotype(XWikiDocument doc, DBStringListProperty property, String value) { this.id = value; this.propertyName = property.getName(); Matcher nameMatch = NEGATIVE_PREFIX.matcher(this.propertyName); this.present = !nameMatch.lookingAt(); this.type = nameMatch.repla...
PhenoTipsPhenotype(XWikiDocument doc, DBStringListProperty property, String value) { this.id = value; this.propertyName = property.getName(); Matcher nameMatch = NEGATIVE_PREFIX.matcher(this.propertyName); this.present = !nameMatch.lookingAt(); this.type = nameMatch.repla...
diff --git a/src/net/java/sip/communicator/impl/growlnotification/GrowlNotificationServiceImpl.java b/src/net/java/sip/communicator/impl/growlnotification/GrowlNotificationServiceImpl.java index 0bc0b5b80..426362441 100644 --- a/src/net/java/sip/communicator/impl/growlnotification/GrowlNotificationServiceImpl.java +++ ...
true
true
public void start(BundleContext bc) throws Exception { logger.debug("Starting the Growl Notification implementation."); this.bundleContext = bc; /* Register to Growl */ try { Constructor constructor = Growl.class.getConstructor(new Class[] ...
public void start(BundleContext bc) throws Exception { logger.debug("Starting the Growl Notification implementation."); this.bundleContext = bc; /* Register to Growl */ try { Constructor constructor = Growl.class.getConstructor(new Class[] ...
diff --git a/src/main/java/com/threerings/getdown/net/HTTPDownloader.java b/src/main/java/com/threerings/getdown/net/HTTPDownloader.java index f8884d9..2f387a7 100644 --- a/src/main/java/com/threerings/getdown/net/HTTPDownloader.java +++ b/src/main/java/com/threerings/getdown/net/HTTPDownloader.java @@ -1,126 +1,126 @@...
true
true
protected void doDownload (Resource rsrc) throws IOException { // download the resource from the specified URL URLConnection conn = rsrc.getRemote().openConnection(); conn.connect(); // make sure we got a satisfactory response code if (conn instanceof HttpURLConn...
protected void doDownload (Resource rsrc) throws IOException { // download the resource from the specified URL URLConnection conn = rsrc.getRemote().openConnection(); conn.connect(); // make sure we got a satisfactory response code if (conn instanceof HttpURLConn...
diff --git a/src/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionConditionsListPanel.java b/src/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionConditionsListPanel.java index b624b18bf..7de0380eb 100644 --- a/src/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionConditionsListPanel.java +++ b/src/com/dm...
false
true
private void layoutComponents() { setVisible(false); removeAll(); int index = 0; if (trigger == null) { add(new TextLabel("You must add at least one trigger before you can add conditions."), "alignx center, aligny top, grow, push, w 90%!"); } e...
private void layoutComponents() { setVisible(false); removeAll(); int index = 0; if (trigger == null) { add(new TextLabel("You must add at least one trigger before you can add conditions."), "alignx center, aligny top, grow, push, w 90%!"); } e...
diff --git a/src/com/hlidskialf/android/alarmclock/AlarmAlert.java b/src/com/hlidskialf/android/alarmclock/AlarmAlert.java index 664d006..237568c 100644 --- a/src/com/hlidskialf/android/alarmclock/AlarmAlert.java +++ b/src/com/hlidskialf/android/alarmclock/AlarmAlert.java @@ -1,232 +1,235 @@ /* * Copyright (C) 2007 ...
true
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); /* FIXME Intentionally verbose: always log this until we've fully debugged the app failing to start up */ Log.v("AlarmAlert.onCreate()"); setContentView(R.layout.alarm_alert); mKlaxon = AlarmKlaxon...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); /* FIXME Intentionally verbose: always log this until we've fully debugged the app failing to start up */ Log.v("AlarmAlert.onCreate()"); setContentView(R.layout.alarm_alert); mKlaxon = AlarmKlaxon...
diff --git a/src/test/java/sequenceplanner/editor/PropertyTests.java b/src/test/java/sequenceplanner/editor/PropertyTests.java index cf20313..2565564 100644 --- a/src/test/java/sequenceplanner/editor/PropertyTests.java +++ b/src/test/java/sequenceplanner/editor/PropertyTests.java @@ -1,146 +1,146 @@ package sequencepl...
true
true
public void id85() { //Create data------------------------------------------------------------ SP sp = new SP(); sp.loadFromTemplateSOPXFile("resources/filesForTesting/fileForTesting.sopx"); //Create properties GlobalProperty gpColor = new GlobalProperty("Color"); Va...
public void id85() { //Create data------------------------------------------------------------ SP sp = new SP(); sp.loadFromTemplateSOPXFile("resources/filesForTesting/fileForTesting.sopx"); //Create properties GlobalProperty gpColor = new GlobalProperty("Color"); Va...
diff --git a/src/core/interviews/sorts/BSTTraversalsort.java b/src/core/interviews/sorts/BSTTraversalsort.java index 22508a2..cc5dc5e 100644 --- a/src/core/interviews/sorts/BSTTraversalsort.java +++ b/src/core/interviews/sorts/BSTTraversalsort.java @@ -1,17 +1,20 @@ package interviews.sorts; import interviews.trees...
false
true
public static <E> void f(List<E> list, Comparator<E> comparator) { BST<E> tree = new BST<E>(list, comparator); list = tree.traversalInOrderRecursive(); }
public static <E> void f(final List<E> list, Comparator<E> comparator) { BST<E> tree = new BST<E>(list, comparator); List<E> tmp = tree.traversalInOrderRecursive(); for (int i = 0; i < list.size(); i++) { list.set(i, tmp.get(i)); } }
diff --git a/WEB-INF/src/org/cdlib/xtf/util/DirSync.java b/WEB-INF/src/org/cdlib/xtf/util/DirSync.java index 2d5b4ed5..0641e17a 100644 --- a/WEB-INF/src/org/cdlib/xtf/util/DirSync.java +++ b/WEB-INF/src/org/cdlib/xtf/util/DirSync.java @@ -1,192 +1,195 @@ package org.cdlib.xtf.util; import java.io.File; import java...
true
true
public void runRsync(File src, File dst, List<String> subDirs, String[] extraArgs) throws IOException { try { // First the basic arguments ArrayList<String> args = new ArrayList(6); args.add("rsync"); args.add("-av"); //args....
public void runRsync(File src, File dst, List<String> subDirs, String[] extraArgs) throws IOException { try { // First the basic arguments ArrayList<String> args = new ArrayList(6); args.add("rsync"); args.add("-av"); //args....
diff --git a/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java b/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java index ea3a17f..34e4d2c 100644 --- a/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java +++ b/src/com/palmergames/bukkit/TownyChat/Command/JoinCommand.java @@ -1,84 +1,84 ...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { // If not our command if ((!label.equalsIgnoreCase("join") || args.length != 1) && (!label.equalsIgnoreCase("ch") || args.length != 2 || !args[0].equalsIgnoreCase("join"))) { TownyMessaging.sendErrorMsg(sender, "[Town...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { // If not our command if ((!label.equalsIgnoreCase("join") || args.length != 1) && (!label.equalsIgnoreCase("ch") || args.length != 2 || !args[0].equalsIgnoreCase("join"))) { TownyMessaging.sendErrorMsg(sender, "[Town...
diff --git a/src/uk/ac/ed/inf/Metabolic/sbmlexport/SBMLExportService.java b/src/uk/ac/ed/inf/Metabolic/sbmlexport/SBMLExportService.java index 393e848..3ae2a81 100644 --- a/src/uk/ac/ed/inf/Metabolic/sbmlexport/SBMLExportService.java +++ b/src/uk/ac/ed/inf/Metabolic/sbmlexport/SBMLExportService.java @@ -1,148 +1,154 @@...
false
true
public void exportMap(IMap map, File exportFile) throws ExportServiceException { FileOutputStream fos = null; try { checkArgs(map, exportFile); generator = getGenerator();//new MetabolicSBMLExportAdapter<IModel>(); IContextAdapterValidationService validator = serviceProvider .getValidationServi...
public void exportMap(IMap map, File exportFile) throws ExportServiceException { if(map == null || exportFile == null){ throw new IllegalArgumentException("parameters map or exportFile canot be null"); } FileOutputStream fos = null; try { checkArgs(map, exportFile); generator = getGenerator();//new M...
diff --git a/src/core/java/org/wyona/yanel/core/ResourceConfiguration.java b/src/core/java/org/wyona/yanel/core/ResourceConfiguration.java index e03e2b3bd..20ee83a39 100644 --- a/src/core/java/org/wyona/yanel/core/ResourceConfiguration.java +++ b/src/core/java/org/wyona/yanel/core/ResourceConfiguration.java @@ -1,238 +...
true
true
public org.w3c.dom.Document getCustomConfiguration() { Configuration customConfig = config.getChild("custom-config", false); if (customConfig != null) { org.w3c.dom.Document doc = null; javax.xml.parsers.DocumentBuilderFactory dbf= javax.xml.parsers.DocumentBuilderFactory.new...
public org.w3c.dom.Document getCustomConfiguration() { Configuration customConfig = config.getChild("custom-config", false); if (customConfig != null) { org.w3c.dom.Document doc = null; javax.xml.parsers.DocumentBuilderFactory dbf= javax.xml.parsers.DocumentBuilderFactory.new...
diff --git a/src/TreeWalker.java b/src/TreeWalker.java index 8b5613e..d33b86d 100644 --- a/src/TreeWalker.java +++ b/src/TreeWalker.java @@ -1,156 +1,157 @@ import org.antlr.runtime.ANTLRStringStream; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.RecognitionException; import org.antlr.runtime...
true
true
public void printTree(CommonTree t) { if ( t != null ) { for ( int i = 0; i < t.getChildCount(); i++ ) { switch(t.getType()){ //TODO: Add Code case TanGParser.ADDSUB: //print out ruby code to a file break; case TanGParser.AND: break; case TanGParser.ASSERT: break...
public void printTree(CommonTree t) { if ( t != null ) { for ( int i = 0; i < t.getChildCount(); i++ ) { System.out.println("node text:"+t.getText()); switch(t.getType()){ //TODO: Add Code case TanGParser.ADDSUB: //print out ruby code to a file break; case TanGParser.AND:...
diff --git a/org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/widgets/helpers/PackageExplorerView.java b/org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/widgets/helpers/PackageExplorerView.java index 49549c9..70619fe 100644 --- a/org.eclipse.swtbot.eclipse.finder...
true
true
public void deleteProject(String projectName) throws Exception { SWTBotTree tree = tree(); tree.setFocus(); tree.select(projectName); bot.menu("Edit").menu("Delete").click(); String version = (String) Platform.getBundle("org.eclipse.core.runtime").getHeaders().get("Bundle-Version"); if (version.startsWith(...
public void deleteProject(String projectName) throws Exception { SWTBotTree tree = tree(); tree.setFocus(); tree.select(projectName); bot.menu("Edit").menu("Delete").click(); String version = (String) Platform.getBundle("org.eclipse.core.runtime").getHeaders().get("Bundle-Version"); if (version.startsWith(...
diff --git a/src/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java b/src/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java index 4ae1d9cde..3c194f512 100755 --- a/src/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java +++ b/src/org/sakaiproject/tool/assessment/ui/bea...
true
true
public String addMediaToItemGrading(javax.faces.event.ValueChangeEvent e) { GradingService gradingService = new GradingService(); PublishedAssessmentService publishedService = new PublishedAssessmentService(); PublishedAssessmentFacade publishedAssessment = publishedService.getPublishedAssessment(assess...
public String addMediaToItemGrading(javax.faces.event.ValueChangeEvent e) { GradingService gradingService = new GradingService(); PublishedAssessmentService publishedService = new PublishedAssessmentService(); PublishedAssessmentFacade publishedAssessment = publishedService.getPublishedAssessment(assess...
diff --git a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/gendoc/html/ConfigHtmlGenerator.java b/cruisecontrol/main/src/net/sourceforge/cruisecontrol/gendoc/html/ConfigHtmlGenerator.java index 7f077ea7..28aa15c0 100644 --- a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/gendoc/html/ConfigHtmlGenerator.ja...
true
true
public ConfigHtmlGenerator() throws Exception { final VelocityEngine engine = getVelocityEngine(); final String myTemplateBody = getTemplateFromJar(); final StringResourceRepository repository = StringResourceLoader.getRepository(); repository.putStringResource("myTemplate", myTemp...
public ConfigHtmlGenerator() throws Exception { getVelocityEngine(); final String myTemplateBody = getTemplateFromJar(); final StringResourceRepository repository = StringResourceLoader.getRepository(); repository.putStringResource("myTemplate", myTemplateBody); template =...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/compare/GitCompareInput.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/compare/GitCompareInput.java index d31da74a..b6e44ee9 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/compare/GitCom...
true
true
public GitCompareInput(Repository repo, ComparisonDataSource ancestroDataSource, ComparisonDataSource baseDataSource, ComparisonDataSource remoteDataSource, String gitPath) { this.repo = repo; this.gitPath = gitPath; this.baseId = baseDataSource.getObjectId(); this.remoteId = remoteDataSource.getObjec...
public GitCompareInput(Repository repo, ComparisonDataSource ancestroDataSource, ComparisonDataSource baseDataSource, ComparisonDataSource remoteDataSource, String gitPath) { this.repo = repo; this.gitPath = gitPath; this.baseId = baseDataSource.getObjectId(); this.remoteId = remoteDataSource.getObjec...
diff --git a/wayback-core/src/main/java/org/archive/wayback/resourceindex/cdxserver/CDXToCaptureSearchResultsWriter.java b/wayback-core/src/main/java/org/archive/wayback/resourceindex/cdxserver/CDXToCaptureSearchResultsWriter.java index ba7deac31..fce886b58 100644 --- a/wayback-core/src/main/java/org/archive/wayback/re...
false
true
public int writeLine(CDXLine line) { FastCaptureSearchResult result = new FastCaptureSearchResult(); String timestamp = line.getTimestamp(); if (lastResult != null) { if (lastResult.getCaptureTimestamp().equals(timestamp)) { // Skip this return 0; } } result.setUrlKey(line.getUrlK...
public int writeLine(CDXLine line) { FastCaptureSearchResult result = new FastCaptureSearchResult(); String timestamp = line.getTimestamp(); String originalUrl = line.getOriginalUrl(); String statusCode = line.getStatusCode(); if (lastResult != null) { if (lastResult.getCaptureTimestamp().equals(...
diff --git a/src/main/web/tool-editor/src/fi/csc/chipster/web/tooledit/ConfirmClearAll.java b/src/main/web/tool-editor/src/fi/csc/chipster/web/tooledit/ConfirmClearAll.java index e51664697..0c3794d7c 100644 --- a/src/main/web/tool-editor/src/fi/csc/chipster/web/tooledit/ConfirmClearAll.java +++ b/src/main/web/tool-edit...
true
true
private void initButtonsListener() { ok.addClickListener(new ClickListener() { private static final long serialVersionUID = 6970174755245561409L; @Override public void buttonClick(ClickEvent event) { root.getToolEditor().removeAllComponents(); root.getTreeToolEditor().removeAllChildren(); root....
private void initButtonsListener() { ok.addClickListener(new ClickListener() { private static final long serialVersionUID = 6970174755245561409L; @Override public void buttonClick(ClickEvent event) { root.getToolEditor().removeAllComponents(); root.getTreeToolEditor().removeAllChildren(); root....
diff --git a/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/MethodInvokingJobDetailFactoryBean.java b/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/MethodInvokingJobDetailFactoryBean.java index bd0c5b6f6..d5b77b257 100644 --- a/org.sprin...
true
true
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchMethodException { prepare(); // Use specific name if given, else fall back to bean name. String name = (this.name != null ? this.name : this.beanName); // Consider the concurrent flag to choose between stateful and stateless job. Class j...
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchMethodException { prepare(); // Use specific name if given, else fall back to bean name. String name = (this.name != null ? this.name : this.beanName); // Consider the concurrent flag to choose between stateful and stateless job. Class j...
diff --git a/src/net/slipcor/pvparena/commands/PAG_Arenaclass.java b/src/net/slipcor/pvparena/commands/PAG_Arenaclass.java index ca5b0c9e..3eb992f0 100644 --- a/src/net/slipcor/pvparena/commands/PAG_Arenaclass.java +++ b/src/net/slipcor/pvparena/commands/PAG_Arenaclass.java @@ -1,71 +1,71 @@ package net.slipcor.pvpare...
true
true
public void commit(final Arena arena, final CommandSender sender, final String[] args) { if (!this.hasPerms(sender, arena) || !arena.getArenaConfig().getBoolean(CFG.USES_INGAMECLASSSWITCH)) { return; } if (!argCountValid(sender, arena, args, new Integer[]{1})) { return; } if (!(sender instanceof ...
public void commit(final Arena arena, final CommandSender sender, final String[] args) { if (!this.hasPerms(sender, arena) || !arena.getArenaConfig().getBoolean(CFG.USES_INGAMECLASSSWITCH)) { return; } if (!argCountValid(sender, arena, args, new Integer[]{1})) { return; } if (!(sender instanceof ...
diff --git a/sonar-server/src/test/java/org/sonar/server/startup/JdbcDriverDeployerTest.java b/sonar-server/src/test/java/org/sonar/server/startup/JdbcDriverDeployerTest.java index eeb5a76ef2..f9d5b64c79 100644 --- a/sonar-server/src/test/java/org/sonar/server/startup/JdbcDriverDeployerTest.java +++ b/sonar-server/src/...
true
true
public void test_deploy() throws Exception { DefaultServerFileSystem fs = mock(DefaultServerFileSystem.class); File initialDriver = TestUtils.getResource(getClass(), "deploy/my-driver.jar"); when(fs.getJdbcDriver()).thenReturn(initialDriver); File deployDir = TestUtils.getTestTempDir(getClass(), "dep...
public void test_deploy() throws Exception { DefaultServerFileSystem fs = mock(DefaultServerFileSystem.class); File initialDriver = TestUtils.getResource(getClass(), "deploy/my-driver.jar"); when(fs.getJdbcDriver()).thenReturn(initialDriver); File deployDir = TestUtils.getTestTempDir(getClass(), "dep...
diff --git a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/MultipleRoiComputePanel.java b/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/MultipleRoiComputePanel.java index 1bd18540c..7980205bb 100644 --- a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/MultipleRoiCompute...
false
true
MultipleRoiComputePanel(final ComputeMasks method, final RasterDataNode rasterDataNode) { productNodeListener = new PNL(); final Icon icon = UIUtils.loadImageIcon("icons/ViewRefresh16.png"); DefaultListModel maskNameListModel = new DefaultListModel(); maskNameSearchField = new Quic...
MultipleRoiComputePanel(final ComputeMasks method, final RasterDataNode rasterDataNode) { productNodeListener = new PNL(); final Icon icon = UIUtils.loadImageIcon("icons/ViewRefresh16.png"); DefaultListModel maskNameListModel = new DefaultListModel(); maskNameSearchField = new Quic...
diff --git a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTOpenExt.java b/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTOpenExt.java index 9954dcb3..ff5f445a 100644 --- a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTOpenExt.java +++ b/tests/org.jboss.tools...
false
true
public void finish(SWTBot bot, String finishButtonText, boolean autoCloseShells) { long timeout = 480 * 1000; SWTBotShell activeShell = bot.activeShell(); String activeShellStr = bot.activeShell().getText(); bot.button(finishButtonText).click(); SWTEclipseExt.hideWarningIfDisplayed(bot); long time = Sy...
public void finish(SWTBot bot, String finishButtonText, boolean autoCloseShells) { long timeout = 480 * 1000; SWTBotShell activeShell = bot.activeShell(); String activeShellStr = bot.activeShell().getText(); bot.button(finishButtonText).click(); SWTEclipseExt.hideWarningIfDisplayed(bot); long time = Sy...
diff --git a/grisu-commons/src/main/java/org/vpac/grisu/settings/Environment.java b/grisu-commons/src/main/java/org/vpac/grisu/settings/Environment.java index 1082b52b..6fefa008 100644 --- a/grisu-commons/src/main/java/org/vpac/grisu/settings/Environment.java +++ b/grisu-commons/src/main/java/org/vpac/grisu/settings/En...
true
true
public static File getGrisuDirectory() { grisuDirectoryAccessed = true; if (GRISU_DIRECTORY == null) { File grisuDir = null; if (StringUtils.isNotBlank(USER_SET_GRISU_DIRECTORY)) { // first, check whether user specified his own directory grisuDir = new File(USER_SET_GRISU_DIRECTORY); } else { ...
public static File getGrisuDirectory() { grisuDirectoryAccessed = true; if (GRISU_DIRECTORY == null) { File grisuDir = null; if (StringUtils.isNotBlank(USER_SET_GRISU_DIRECTORY)) { // first, check whether user specified his own directory grisuDir = new File(USER_SET_GRISU_DIRECTORY); GRISU_DIR...
diff --git a/bundles/org.eclipse.orion.server.authentication.formopenid/src/org/eclipse/orion/server/authentication/formopenid/FormOpenIdAuthenticationService.java b/bundles/org.eclipse.orion.server.authentication.formopenid/src/org/eclipse/orion/server/authentication/formopenid/FormOpenIdAuthenticationService.java ind...
true
true
private void setNotAuthenticated(HttpServletRequest req, HttpServletResponse resp, Properties properties) throws IOException { resp.setHeader("WWW-Authenticate", HttpServletRequest.FORM_AUTH); //$NON-NLS-1$ resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED); // redirection from FormAuthenticationService.setNot...
private void setNotAuthenticated(HttpServletRequest req, HttpServletResponse resp, Properties properties) throws IOException { resp.setHeader("WWW-Authenticate", HttpServletRequest.FORM_AUTH); //$NON-NLS-1$ resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED); // redirection from FormAuthenticationService.setNot...
diff --git a/src/tests/TestingUtils.java b/src/tests/TestingUtils.java index f9e54b1..a87717a 100644 --- a/src/tests/TestingUtils.java +++ b/src/tests/TestingUtils.java @@ -1,76 +1,76 @@ package tests; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.io.InputStrea...
true
true
public static void generateCocoaClasses(SimplTypesScope typeScope) throws SIMPLTranslationException { CocoaTranslator ct = new CocoaTranslator(); try { ct.translateToObjC(new File("/Users/nabeelshahzad/Desktop/TestCases"), typeScope); } catch (IOException e) { // TODO Auto-generated catch block e...
public static void generateCocoaClasses(SimplTypesScope typeScope) throws SIMPLTranslationException { CocoaTranslator ct = new CocoaTranslator(); try { ct.translateToObjC(new File("/Users/nskhan84/Desktop/TestCases"), typeScope); } catch (IOException e) { // TODO Auto-generated catch block e.prin...
diff --git a/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/Java2WSDLCodeGenConfigWidget.java b/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/Java2WSDLCodeGenConfigWidget.java index 21817321..52411593 100644 --- a/plugins/org.jboss.tools.ws.creation...
true
true
public WidgetDataEvents addControls(Composite parent, Listener statusListener) { Composite configCom = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(2, false); configCom.setLayout(layout); configCom.setLayoutData(new GridData(GridData.FILL_BOTH)); //choose source folder sourceC...
public WidgetDataEvents addControls(Composite parent, Listener statusListener) { Composite configCom = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(2, false); configCom.setLayout(layout); configCom.setLayoutData(new GridData(GridData.FILL_BOTH)); //choose source folder sourceC...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java index 02131757..12b23586 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java @@ -1,1881 +1,1881 @@ /*...
true
true
private void exportLegend(String path) { FileOutputStream foi; String outputMedia; Configuration.mapFlags = 0L; // FIXME add .properties & GUI user interface for telling map data source Configuration.mapFlags |= LEGEND_MAPFLAG_SOURCE_OSM_CC_BY_SA; // Configuration.mapFlags |= LEGEND_MAPFLAG_SOURCE_OSM_O...
private void exportLegend(String path) { FileOutputStream foi; String outputMedia; Configuration.mapFlags = 0L; // FIXME add .properties & GUI user interface for telling map data source Configuration.mapFlags |= LEGEND_MAPFLAG_SOURCE_OSM_CC_BY_SA; // Configuration.mapFlags |= LEGEND_MAPFLAG_SOURCE_OSM_O...
diff --git a/src/main/java/com/epam/adzhiametov/controller/AddAdvertController.java b/src/main/java/com/epam/adzhiametov/controller/AddAdvertController.java index eb18573..a49fb1c 100644 --- a/src/main/java/com/epam/adzhiametov/controller/AddAdvertController.java +++ b/src/main/java/com/epam/adzhiametov/controller/AddA...
true
true
public String addAdvert(@Valid @ModelAttribute("advert") Advert advert, BindingResult result, Model model) { if(result.hasErrors()) { model.addAttribute("sectionValues", Section.values()); model.addAttribute("operationValues", Operation.values()); return "add_advert"; ...
public String addAdvert(@Valid @ModelAttribute("advert") Advert advert, BindingResult result, Model model) { if(result.hasErrors()) { model.addAttribute("sectionValues", Section.values()); model.addAttribute("operationValues", Operation.values()); return "add_advert"; ...
diff --git a/java/src/org/pocketworkstation/pckeyboard/LatinIME.java b/java/src/org/pocketworkstation/pckeyboard/LatinIME.java index 86d2c7d..ec9d379 100644 --- a/java/src/org/pocketworkstation/pckeyboard/LatinIME.java +++ b/java/src/org/pocketworkstation/pckeyboard/LatinIME.java @@ -1,3911 +1,3914 @@ /* * Copyright...
true
true
public void onStartInputView(EditorInfo attribute, boolean restarting) { sKeyboardSettings.editorPackageName = attribute.packageName; sKeyboardSettings.editorFieldName = attribute.fieldName; sKeyboardSettings.editorFieldId = attribute.fieldId; sKeyboardSettings.editorInputType = attr...
public void onStartInputView(EditorInfo attribute, boolean restarting) { sKeyboardSettings.editorPackageName = attribute.packageName; sKeyboardSettings.editorFieldName = attribute.fieldName; sKeyboardSettings.editorFieldId = attribute.fieldId; sKeyboardSettings.editorInputType = attr...
diff --git a/projects/android/classygames/src/edu/selu/android/classygames/CheckersGameActivity.java b/projects/android/classygames/src/edu/selu/android/classygames/CheckersGameActivity.java index dc023a5..f17ecef 100644 --- a/projects/android/classygames/src/edu/selu/android/classygames/CheckersGameActivity.java +++ b...
true
true
public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.checkers_game_activity); Utilities.styleActionBar(getResources(), getSupportActionBar()); // retrieve data passed to this activity final Bundle bundle = getIntent().getExtras(); if (bun...
public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.checkers_game_activity); Utilities.styleActionBar(getResources(), getSupportActionBar()); // retrieve data passed to this activity final Bundle bundle = getIntent().getExtras(); if (bun...
diff --git a/src/info/plagiatsjaeger/SourceLoader.java b/src/info/plagiatsjaeger/SourceLoader.java index 5dc2c3f..9d63af2 100644 --- a/src/info/plagiatsjaeger/SourceLoader.java +++ b/src/info/plagiatsjaeger/SourceLoader.java @@ -1,269 +1,269 @@ package info.plagiatsjaeger; import java.io.BufferedInputStream; impor...
false
true
public static String loadFile(String filePath) { String result = ""; FileInputStream inputStream = null; DataInputStream dataInputStream = null; StringBuilder stringBuilder = new StringBuilder(); String charset = "ISO-8859-1"; try { inputStream = new FileInputStream(filePath); String line = ""; ...
public static String loadFile(String filePath) { String result = ""; FileInputStream inputStream = null; DataInputStream dataInputStream = null; StringBuilder stringBuilder = new StringBuilder(); String charset = "ISO-8859-1"; try { inputStream = new FileInputStream(filePath); String line = ""; ...
diff --git a/src/main/java/org/jskat/gui/swing/table/SkatTablePanel.java b/src/main/java/org/jskat/gui/swing/table/SkatTablePanel.java index 2141cc2..c1f3b95 100644 --- a/src/main/java/org/jskat/gui/swing/table/SkatTablePanel.java +++ b/src/main/java/org/jskat/gui/swing/table/SkatTablePanel.java @@ -1,1147 +1,1135 @@ ...
false
true
public void setGameState(final GameState state) { log.debug(".setGameState(" + state + ")"); //$NON-NLS-1$ //$NON-NLS-2$ gameInfoPanel.setGameState(state); switch (state) { case GAME_START: setContextPanel(ContextPanelType.START); resetGameData(); break; case DEALING: setContextPanel(ContextPa...
public void setGameState(final GameState state) { log.debug(".setGameState(" + state + ")"); //$NON-NLS-1$ //$NON-NLS-2$ gameInfoPanel.setGameState(state); switch (state) { case GAME_START: setContextPanel(ContextPanelType.START); resetGameData(); break; case DEALING: setContextPanel(ContextPa...
diff --git a/src/com/ichi2/themes/Themes.java b/src/com/ichi2/themes/Themes.java index 2c1c81e7..60fcd436 100644 --- a/src/com/ichi2/themes/Themes.java +++ b/src/com/ichi2/themes/Themes.java @@ -1,884 +1,884 @@ /*************************************************************************************** * Copyright (c) 2...
true
true
public static void loadTheme(){ SharedPreferences preferences = PrefSettings.getSharedPrefs(mContext); mCurrentTheme = Integer.parseInt(preferences.getString("theme", "2")); switch (mCurrentTheme) { case THEME_ANDROID_DARK: mDialogBackgroundColor = R.color.card_browser_background; mProgressbarsBack...
public static void loadTheme(){ SharedPreferences preferences = PrefSettings.getSharedPrefs(mContext); mCurrentTheme = Integer.parseInt(preferences.getString("theme", "2")); switch (mCurrentTheme) { case THEME_ANDROID_DARK: mDialogBackgroundColor = R.color.card_browser_background; mProgressbarsBack...
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java index 2dd7ff5f..9d4d44d7 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java +++ b/src/java/org/jivesoftware/sparkimpl/plu...
true
true
public void initialize() { // Listen for right-clicks on ContactItem final ContactList contactList = SparkManager.getWorkspace().getContactList(); final Action listenAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { ContactItem item = (...
public void initialize() { // Listen for right-clicks on ContactItem final ContactList contactList = SparkManager.getWorkspace().getContactList(); final Action listenAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { ContactItem item = (...
diff --git a/src/main/java/com/cathive/fx/guice/FxApplicationThreadMethodInterceptor.java b/src/main/java/com/cathive/fx/guice/FxApplicationThreadMethodInterceptor.java index 6675fa9..6256304 100755 --- a/src/main/java/com/cathive/fx/guice/FxApplicationThreadMethodInterceptor.java +++ b/src/main/java/com/cathive/fx/gui...
true
true
public Object invoke(MethodInvocation invocation) throws Throwable { final FxApplicationThread annotation = invocation.getMethod().getAnnotation(FxApplicationThread.class); final FxTask fxTask = new FxTask(invocation); if (annotation == null) { throw new IllegalStateException("...
public Object invoke(MethodInvocation invocation) throws Throwable { final FxApplicationThread annotation = invocation.getMethod().getAnnotation(FxApplicationThread.class); final FxTask fxTask = new FxTask(invocation); if (annotation == null) { throw new IllegalStateException("...
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java index d6ebb0a5..c7d85830 100644 --- a/src/com/android/camera/Util.java +++ b/src/com/android/camera/Util.java @@ -1,718 +1,718 @@ /* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version...
true
true
public static Size getOptimalPreviewSize(Activity currentActivity, List<Size> sizes, double targetRatio) { // Use a very small tolerance because we want an exact match. final double ASPECT_TOLERANCE = 0.001; if (sizes == null) return null; Size optimalSize = null; ...
public static Size getOptimalPreviewSize(Activity currentActivity, List<Size> sizes, double targetRatio) { // Not too small tolerance, some camera use 848, 854 or 864 for 480p final double ASPECT_TOLERANCE = 0.05; if (sizes == null) return null; Size optimalSize = null; ...
diff --git a/src/ch/rollis/emma/RequestHandler.java b/src/ch/rollis/emma/RequestHandler.java index 12001e4..01cd66c 100644 --- a/src/ch/rollis/emma/RequestHandler.java +++ b/src/ch/rollis/emma/RequestHandler.java @@ -1,246 +1,247 @@ /** * Copyright (c) 2012 Michael Rolli - github.com/mrolli/emma * All rights reser...
true
true
public void run() { logger.log(Level.INFO, Thread.currentThread().getName() + " started."); InetAddress client = comSocket.getInetAddress(); try { InputStream input = comSocket.getInputStream(); OutputStream output = comSocket.getOutputStream(); while (...
public void run() { logger.log(Level.INFO, Thread.currentThread().getName() + " started."); InetAddress client = comSocket.getInetAddress(); try { InputStream input = comSocket.getInputStream(); OutputStream output = comSocket.getOutputStream(); while (...
diff --git a/ide/src/wombat/gui/actions/Connect.java b/ide/src/wombat/gui/actions/Connect.java index a2b44b0..a20ac51 100644 --- a/ide/src/wombat/gui/actions/Connect.java +++ b/ide/src/wombat/gui/actions/Connect.java @@ -1,126 +1,126 @@ /* * License: source-license.txt * If this code is used independently, copy t...
true
true
public void actionPerformed(ActionEvent event) { // Are they going to host or join? final JDialog hostOptions = new JDialog(MainFrame.Singleton(), "Sharing..."); hostOptions.setLayout(new GridLayout(4, 1)); hostOptions.setModal(true); hostOptions.setLocationByPlatform(true); final JButton host = new JBu...
public void actionPerformed(ActionEvent event) { // Are they going to host or join? final JDialog hostOptions = new JDialog(MainFrame.Singleton(), "Sharing..."); hostOptions.setLayout(new GridLayout(4, 1)); hostOptions.setModal(true); hostOptions.setLocationByPlatform(true); final JButton host = new JBu...