Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/croo/szakdolgozat/server/TravelServiceImpl.java b/src/croo/szakdolgozat/server/TravelServiceImpl.java index 6324e3f..c8e8da6 100644 --- a/src/croo/szakdolgozat/server/TravelServiceImpl.java +++ b/src/croo/szakdolgozat/server/TravelServiceImpl.java @@ -1,36 +1,36 @@ package croo.szakdolgozat.server; ...
true
true
public TravelInfos getTravelInfos() throws Throwable { TravelInfos infos = ElviraApi.getTravelInfosFromJson(session(), getElviraJson()); return infos; }
public TravelInfos getTravelInfos() throws Exception { TravelInfos infos = ElviraApi.getTravelInfosFromJson(session(), getElviraJson()); return infos; }
diff --git a/src/anchovy/io/Parser.java b/src/anchovy/io/Parser.java index 2372ccb..5e82cd0 100644 --- a/src/anchovy/io/Parser.java +++ b/src/anchovy/io/Parser.java @@ -1,230 +1,230 @@ package anchovy.io; import java.io.FileNotFoundException; import java.util.StringTokenizer; import anchovy.GameEngine; import ...
true
true
public String parseCommand(String componentName, String command) { String result = new String(); //Check for for engine commands first if (componentName.contains("save as")) { return engine.saveGameState(engine.getAllComponentInfo(), command); } else if (componentName.equals("save")) { return engine.sa...
public String parseCommand(String componentName, String command) { String result = new String(); //Check for for engine commands first if (componentName.contains("save as")) { return engine.saveGameState(engine.getAllComponentInfo(), command); } else if (componentName.equals("save")) { return engine.sa...
diff --git a/src/java/GenDoco.java b/src/java/GenDoco.java index c24b09a..52b9c19 100644 --- a/src/java/GenDoco.java +++ b/src/java/GenDoco.java @@ -1,93 +1,92 @@ //The purpose of this class is create markdown documentation out of the inline comments. //I tried my damndest to get JSDoc or other alternatives to do wha...
false
true
public static void main(String[] args) { try { System.out.println("Generating Doco..."); ArrayList<String> inplin=getFileContents("../charFunk-1.1.0.js");//source javascript lines ArrayList<String> inpmkd=getFileContents("../../readme.md"); ArrayList<String> ...
public static void main(String[] args) { try { System.out.println("Generating Doco..."); ArrayList<String> inplin=getFileContents("../charFunk-1.1.0.js");//source javascript lines ArrayList<String> inpmkd=getFileContents("../../readme.md"); ArrayList<String> ...
diff --git a/main/src/cgeo/geocaching/maps/CachesOverlay.java b/main/src/cgeo/geocaching/maps/CachesOverlay.java index 35f12ae54..607a595b4 100644 --- a/main/src/cgeo/geocaching/maps/CachesOverlay.java +++ b/main/src/cgeo/geocaching/maps/CachesOverlay.java @@ -1,255 +1,255 @@ package cgeo.geocaching.maps; import cg...
true
true
private void drawInternal(Canvas canvas, MapProjectionImpl projection) { // prevent content changes getOverlayImpl().lock(); try { if (displayCircles) { if (blockedCircle == null) { blockedCircle = new Paint(); blockedCircl...
private void drawInternal(Canvas canvas, MapProjectionImpl projection) { // prevent content changes getOverlayImpl().lock(); try { if (displayCircles) { if (blockedCircle == null) { blockedCircle = new Paint(); blockedCircl...
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/MarkerSupportTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/MarkerSupportTest.java index 0e87e88f8..312263365 100644 --- a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/MarkerSup...
true
true
public void testDisabledMarker() throws Exception { final Label control = new Label(shell, SWT.None); Realm.runWithDefault(new Realm() { @Override public boolean isCurrent() { return true; } }, new Runnable() { public void run() { LabelRidget ridget = new LabelRidget(); ridget.setUICont...
public void testDisabledMarker() throws Exception { final Label control = new Label(shell, SWT.None); Realm.runWithDefault(new Realm() { @Override public boolean isCurrent() { return true; } }, new Runnable() { public void run() { LabelRidget ridget = new LabelRidget(); ridget.setUICont...
diff --git a/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/SWTBotJSPMultiPageEditor.java b/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/SWTBotJSPMultiPageEditor.java index 4f13a20e..12c1301c 100644 --- a/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/te...
true
true
public void selectTab(final String tabLabel) { bot.getDisplay().syncExec(new Runnable() { public void run() { Class<? extends JSPMultiPageEditorPart> cls = JSPMultiPageEditorPart.class; try { Field field = cls.getDeclaredField("container"); //$NON-NLS-1$ field.setAccessible(true); CTabF...
public void selectTab(final String tabLabel) { bot.getDisplay().syncExec(new Runnable() { public void run() { Class<? extends JSPMultiPageEditorPart> cls = JSPMultiPageEditorPart.class; try { Field field = cls.getDeclaredField("tabFolderContainer"); //$NON-NLS-1$ field.setAccessible(true); ...
diff --git a/src/main/java/com/datastax/hectorjpa/store/EntityFacade.java b/src/main/java/com/datastax/hectorjpa/store/EntityFacade.java index d28a562..0e7eb64 100755 --- a/src/main/java/com/datastax/hectorjpa/store/EntityFacade.java +++ b/src/main/java/com/datastax/hectorjpa/store/EntityFacade.java @@ -1,445 +1,445 @@...
true
true
public EntityFacade(ClassMetaData classMetaData, EmbeddedSerializer serializer) { CassandraClassMetaData cassMeta = (CassandraClassMetaData) classMetaData; this.columnFamilyName = MappingUtils.getColumnFamily(cassMeta); clazz = cassMeta.getDescribedType(); columnFieldIds = new HashMap<Integer, Str...
public EntityFacade(ClassMetaData classMetaData, EmbeddedSerializer serializer) { CassandraClassMetaData cassMeta = (CassandraClassMetaData) classMetaData; this.columnFamilyName = MappingUtils.getColumnFamily(cassMeta); clazz = cassMeta.getDescribedType(); columnFieldIds = new HashMap<Integer, Str...
diff --git a/src/pro/oneredpixel/deflektorclassic/GameState.java b/src/pro/oneredpixel/deflektorclassic/GameState.java index dc31ac4..9d2a747 100644 --- a/src/pro/oneredpixel/deflektorclassic/GameState.java +++ b/src/pro/oneredpixel/deflektorclassic/GameState.java @@ -1,837 +1,845 @@ package pro.oneredpixel.deflektorc...
true
true
void drawBeam(int beamX, int beamY, int beamAngle) { int newBeamX; int newBeamY; int oldBeamAngle; boolean endBeam=false; beamState = BEAMSTATE_NORMAL; while (!endBeam) { newBeamX = beamX+angleNodeSteps[beamAngle][0]; newBeamY = beamY+angleNodeSteps[beamAngle][1]; oldBeamAngle = beamAngl...
void drawBeam(int beamX, int beamY, int beamAngle) { int newBeamX; int newBeamY; int oldBeamAngle; boolean endBeam=false; beamState = BEAMSTATE_NORMAL; while (!endBeam) { newBeamX = beamX+angleNodeSteps[beamAngle][0]; newBeamY = beamY+angleNodeSteps[beamAngle][1]; oldBeamAngle = beamAngl...
diff --git a/src/main/java/org/jembi/rhea/transformers/QueryEncounterInjectECIDTransformer.java b/src/main/java/org/jembi/rhea/transformers/QueryEncounterInjectECIDTransformer.java index 5335fa5..ce293c4 100644 --- a/src/main/java/org/jembi/rhea/transformers/QueryEncounterInjectECIDTransformer.java +++ b/src/main/java/...
true
true
public Object transformMessage(MuleMessage msg, String enc) throws TransformerException { try { MuleClient client = new MuleClient(muleContext); RestfulHttpRequest req = (RestfulHttpRequest) msg.getPayload(); String path = req.getPath(); int beginIndex = path.indexOf("patient/") + 8; int...
public Object transformMessage(MuleMessage msg, String enc) throws TransformerException { try { MuleClient client = new MuleClient(muleContext); RestfulHttpRequest req = (RestfulHttpRequest) msg.getPayload(); String path = req.getPath(); int beginIndex = path.indexOf("patient/") + 8; int...
diff --git a/gson/src/main/java/com/google/gson/TypeInfoFactory.java b/gson/src/main/java/com/google/gson/TypeInfoFactory.java index e02b647d..deb88a2f 100644 --- a/gson/src/main/java/com/google/gson/TypeInfoFactory.java +++ b/gson/src/main/java/com/google/gson/TypeInfoFactory.java @@ -1,124 +1,130 @@ /* * Copyright...
true
true
private static Type getActualType( Type typeToEvaluate, Type parentType, Class<?> rawParentClass) { if (typeToEvaluate instanceof Class) { return typeToEvaluate; } else if (typeToEvaluate instanceof ParameterizedType) { ParameterizedType castedType = (ParameterizedType) typeToEvaluate; ...
private static Type getActualType( Type typeToEvaluate, Type parentType, Class<?> rawParentClass) { if (typeToEvaluate instanceof Class) { return typeToEvaluate; } else if (typeToEvaluate instanceof ParameterizedType) { ParameterizedType castedType = (ParameterizedType) typeToEvaluate; ...
diff --git a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java b/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java index feb60e767..6f1f19447 100644 --- a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java +++ b/dspace-jspui/src/main/java/org/dspace/ap...
false
true
private Channel generateFeed(Context context, DSpaceObject dso) throws IOException, SQLException { try { // container-level elements String dspaceUrl = ConfigurationManager.getProperty("dspace.url"); String type = null; String description = null; String title = n...
private Channel generateFeed(Context context, DSpaceObject dso) throws IOException, SQLException { try { // container-level elements String dspaceUrl = ConfigurationManager.getProperty("dspace.url"); String type = null; String description = null; String title = n...
diff --git a/src/edu/jhu/thrax/Thrax.java b/src/edu/jhu/thrax/Thrax.java index d0ed612..1dee45a 100644 --- a/src/edu/jhu/thrax/Thrax.java +++ b/src/edu/jhu/thrax/Thrax.java @@ -1,175 +1,177 @@ package edu.jhu.thrax; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Map; im...
false
true
public synchronized int run(String [] argv) throws Exception { if (argv.length < 1) { System.err.println("usage: Thrax <conf file> [output path]"); return 1; } // do some setup of configuration conf = getConf(); Map<String,String> options = ConfFil...
public synchronized int run(String [] argv) throws Exception { if (argv.length < 1) { System.err.println("usage: Thrax <conf file> [output path]"); return 1; } // do some setup of configuration conf = getConf(); Map<String,String> options = ConfFil...
diff --git a/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/VertexEvaluator.java b/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/VertexEvaluator.java index 155fbf8ee..140c1e5b7 100644 --- a/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/VertexEvaluator.java +++ b/src/de/uni_koblenz/jgralab/greq...
true
true
public JValue getResult(BooleanGraphMarker subgraphMarker) throws EvaluateException { // System.out.println("Try to retrieve result for: " + this); if (result != null && this.subgraph == subgraphMarker) { // greqlEvaluator.progress(1); return result; } // currentIndentation++; // printIndentation();...
public JValue getResult(BooleanGraphMarker subgraphMarker) throws EvaluateException { // System.out.println("Try to retrieve result for: " + this); if (result != null && this.subgraph == subgraphMarker) { // greqlEvaluator.progress(1); return result; } // currentIndentation++; // printIndentation();...
diff --git a/addon/src/main/java/com/vaadin/addon/charts/LicenseChecker.java b/addon/src/main/java/com/vaadin/addon/charts/LicenseChecker.java index 062d7988..e816b125 100644 --- a/addon/src/main/java/com/vaadin/addon/charts/LicenseChecker.java +++ b/addon/src/main/java/com/vaadin/addon/charts/LicenseChecker.java @@ -1...
true
true
private static void printCVALInformationAndHowToGetRidOfThisInformation() { try { List<String> readLines = IOUtils.readLines( LicenseChecker.class.getResourceAsStream("licensenag.txt"), "UTF-8"); for (String line : readLines) { ...
private static void printCVALInformationAndHowToGetRidOfThisInformation() { try { List<String> readLines = IOUtils.readLines( LicenseChecker.class.getResourceAsStream("licensenag.txt"), "UTF-8"); for (String line : readLines) { ...
diff --git a/Zones/src/info/tregmine/listeners/ZoneBlockListener.java b/Zones/src/info/tregmine/listeners/ZoneBlockListener.java index bfce6b9..2872dc7 100644 --- a/Zones/src/info/tregmine/listeners/ZoneBlockListener.java +++ b/Zones/src/info/tregmine/listeners/ZoneBlockListener.java @@ -1,339 +1,339 @@ package info.t...
true
true
public void mineForTreg(BlockBreakEvent event) { if(event.isCancelled()) { return; } TregminePlayer player = tregmine.getPlayer(event.getPlayer()); if (event.getBlock().getType().equals(Material.SPONGE)) { if(!event.getPlayer().isOp()) { event.setCancelled(true); return; } } if (even...
public void mineForTreg(BlockBreakEvent event) { if(event.isCancelled()) { return; } TregminePlayer player = tregmine.getPlayer(event.getPlayer()); if (event.getBlock().getType().equals(Material.SPONGE)) { if(!event.getPlayer().isOp()) { event.setCancelled(true); return; } } if (even...
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 9e222319..0c45075c 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -1,1444 +1,1444 @@ /* * Copyright (C) 2008 The Android Open Source Project * * ...
true
true
public boolean onKeyDown(int keyCode, KeyEvent event) { boolean handled = false; if (!isVisible()) { return false; } final int iconCount = mRollo.mState.iconCount; if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER) { i...
public boolean onKeyDown(int keyCode, KeyEvent event) { boolean handled = false; if (!isVisible()) { return false; } final int iconCount = mRollo.mState.iconCount; if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER) { i...
diff --git a/src/net/drmods/plugins/irc/Rank.java b/src/net/drmods/plugins/irc/Rank.java index c9f121e0..cb5cbc8a 100644 --- a/src/net/drmods/plugins/irc/Rank.java +++ b/src/net/drmods/plugins/irc/Rank.java @@ -1,134 +1,134 @@ /* * This file is part of DrFTPD, Distributed FTP Daemon. * * DrFTPD is free software;...
false
true
public ArrayList<String> doRank(String args, MessageCommand msgc) { ArrayList<String> out = new ArrayList<String>(); ReplacerEnvironment env = new ReplacerEnvironment(SiteBot.GLOBAL_ENV); env.add("ircnick", msgc.getSource().getNick()); FullNick fn = msgc.getSource(); String ident = fn.getNick() + "!" + f...
public ArrayList<String> doRank(String args, MessageCommand msgc) { ArrayList<String> out = new ArrayList<String>(); ReplacerEnvironment env = new ReplacerEnvironment(SiteBot.GLOBAL_ENV); env.add("ircnick", msgc.getSource().getNick()); FullNick fn = msgc.getSource(); String ident = fn.getNick() + "!" + f...
diff --git a/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/repeat/RepeatTestCase.java b/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/repeat/RepeatTestCase.java index 075bfc61..8149fc39 100644 --- a/samples/richfaces-demo/functional-t...
true
true
public void functionalTest() { int rows = getJQueryCount(format(LOC_INPUT_PROPOSED_PRICE_PREFORMATTED, 0)); String[] grossMargins = new String[rows]; // two run through all rows for (int instance = 0; instance < rows * 2; instance++) { final boolean isFirstIteration = (instance < rows); final int row =...
public void functionalTest() { int rows = getJQueryCount(format(LOC_INPUT_PROPOSED_PRICE_PREFORMATTED, 0)); String[] grossMargins = new String[rows]; // two run through all rows for (int instance = 0; instance < rows * 2; instance++) { final boolean isFirstIteration = (instance < rows); final int row =...
diff --git a/src/groovy/org/pillarone/riskanalytics/application/ui/parameterization/view/MultiDimensionalCellRenderer.java b/src/groovy/org/pillarone/riskanalytics/application/ui/parameterization/view/MultiDimensionalCellRenderer.java index 390f101b..bdb05249 100644 --- a/src/groovy/org/pillarone/riskanalytics/applicat...
true
true
private String createTooltip(MultiDimensionalParameterizationTableTreeNode node) { String toolTip = null; AbstractMultiDimensionalParameter value = node.getMultiDimensionalValue(columnIndex); if (value != null) { StringBuilder text = new StringBuilder(); text.append("...
private String createTooltip(MultiDimensionalParameterizationTableTreeNode node) { String toolTip = null; AbstractMultiDimensionalParameter value = node.getMultiDimensionalValue(columnIndex); if (value != null) { StringBuilder text = new StringBuilder(); text.append("...
diff --git a/src/com/koletar/jj/chestkeeper/CKFacilitator.java b/src/com/koletar/jj/chestkeeper/CKFacilitator.java index 9da6dba..feaa6b5 100644 --- a/src/com/koletar/jj/chestkeeper/CKFacilitator.java +++ b/src/com/koletar/jj/chestkeeper/CKFacilitator.java @@ -1,666 +1,670 @@ package com.koletar.jj.chestkeeper; imp...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase("chestkeeper")) { if (args.length == 0) { for (int i = 1; i <= 18; i++) { sender.sendMessage(phrase("help" + i)); ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase("chestkeeper")) { if (args.length == 0) { for (int i = 1; i <= 18; i++) { sender.sendMessage(phrase("help" + i)); ...
diff --git a/src/no/runsafe/creativetoolbox/database/PlotEntranceRepository.java b/src/no/runsafe/creativetoolbox/database/PlotEntranceRepository.java index eb382f2..65b5f19 100644 --- a/src/no/runsafe/creativetoolbox/database/PlotEntranceRepository.java +++ b/src/no/runsafe/creativetoolbox/database/PlotEntranceReposit...
true
true
public PlotEntrance get(String regionName) { if (cache.containsKey(regionName.toLowerCase())) return cache.get(regionName.toLowerCase()); IRow data = database.QueryRow("SELECT ? AS world, * FROM creativetoolbox_plot_entrance WHERE name=?", world.getName(), regionName); if (data == null) cache.put(region...
public PlotEntrance get(String regionName) { if (cache.containsKey(regionName.toLowerCase())) return cache.get(regionName.toLowerCase()); IRow data = database.QueryRow("SELECT ? AS world, e.* FROM creativetoolbox_plot_entrance AS e WHERE name=?", world.getName(), regionName); if (data == null) cache.put...
diff --git a/src/com/android/contacts/datepicker/DatePicker.java b/src/com/android/contacts/datepicker/DatePicker.java index fe2341526..d0510ab43 100644 --- a/src/com/android/contacts/datepicker/DatePicker.java +++ b/src/com/android/contacts/datepicker/DatePicker.java @@ -1,491 +1,489 @@ /* * Copyright (C) 2007 The ...
false
true
public DatePicker(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE); inflater.inflate(R.layout.date_picker, this, true); mPicker...
public DatePicker(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE); inflater.inflate(R.layout.date_picker, this, true); mPicker...
diff --git a/Android/MoreBluetoothTesting/src/com/example/morebluetoothtesting/MainService.java b/Android/MoreBluetoothTesting/src/com/example/morebluetoothtesting/MainService.java index d0a5fb5..24a0170 100644 --- a/Android/MoreBluetoothTesting/src/com/example/morebluetoothtesting/MainService.java +++ b/Android/MoreBl...
false
true
private void doAuthSeq() { int response = BluetoothConnection.RESPONSE_NONE; Log.v(CLASS_NAME, "Sending unlock command"); while (!(btConnection.write("dsadsa\r".getBytes()))); boolean miDataOK = false; byte miData[] = new byte[8]; /* Keep looping until we get an ACK back from door, meaning our response ...
private void doAuthSeq() { int response = BluetoothConnection.RESPONSE_NONE; Log.v(CLASS_NAME, "Sending unlock command"); while (!(btConnection.write("dsadsa\r".getBytes()))); boolean miDataOK = false; byte miData[] = new byte[8]; /* Keep looping until we get an ACK back from door, meaning our response ...
diff --git a/h2network/src/test/java/org/h2gis/network/graph_creator/GraphFunctionParserTest.java b/h2network/src/test/java/org/h2gis/network/graph_creator/GraphFunctionParserTest.java index 077d877f..ef23fa65 100644 --- a/h2network/src/test/java/org/h2gis/network/graph_creator/GraphFunctionParserTest.java +++ b/h2netw...
true
true
public void testWeightOrientationParser() { // D. TODO: Remove GraphFunctionParser p = new GraphFunctionParser(); p.parseWeightAndOrientation(null, null); checkWeightAndOrientation(p, null, null, null); // WD. TODO: Remove p = new GraphFunctionParser(); p.pars...
public void testWeightOrientationParser() { // D. TODO: Remove GraphFunctionParser p = new GraphFunctionParser(); p.parseWeightAndOrientation(null, null); checkWeightAndOrientation(p, null, null, null); // WD. TODO: Remove p = new GraphFunctionParser(); p.pars...
diff --git a/src/com/android/settings/TextToSpeechSettings.java b/src/com/android/settings/TextToSpeechSettings.java index 5366bd025..d6e11d7f4 100644 --- a/src/com/android/settings/TextToSpeechSettings.java +++ b/src/com/android/settings/TextToSpeechSettings.java @@ -1,721 +1,720 @@ /* * Copyright (C) 2009 The Andr...
false
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
diff --git a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandProvider.java b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandProvider.java index 630e2672..12189ad3 100644 --- a/bundles/org.eclipse.osgi/console/src/org/eclipse/os...
true
true
public void _bundle(CommandInterpreter intp) throws Exception { String nextArg = intp.nextArgument(); if (nextArg == null) { intp.println(ConsoleMsg.CONSOLE_NO_BUNDLE_SPECIFIED_ERROR); } while (nextArg != null) { AbstractBundle bundle = getBundleFromToken(intp, nextArg, true); if (bundle != null) { ...
public void _bundle(CommandInterpreter intp) throws Exception { String nextArg = intp.nextArgument(); if (nextArg == null) { intp.println(ConsoleMsg.CONSOLE_NO_BUNDLE_SPECIFIED_ERROR); } while (nextArg != null) { AbstractBundle bundle = getBundleFromToken(intp, nextArg, true); if (bundle != null) { ...
diff --git a/src/java/opennlp/tools/parser/BuildContextGenerator.java b/src/java/opennlp/tools/parser/BuildContextGenerator.java index 7658030..c17e8ac 100644 --- a/src/java/opennlp/tools/parser/BuildContextGenerator.java +++ b/src/java/opennlp/tools/parser/BuildContextGenerator.java @@ -1,656 +1,656 @@ //////////////...
false
true
public String[] getContext(Parse[] constituents, int index) { List features = new ArrayList(100); int ps = constituents.length; //default features.add("default"); // cons(-2), cons(-1), cons(0), cons(1), cons(2) // cons(-2) Parse p_2 = null; Parse p_1 = null; Parse p0 = null; ...
public String[] getContext(Parse[] constituents, int index) { List features = new ArrayList(100); int ps = constituents.length; //default features.add("default"); // cons(-2), cons(-1), cons(0), cons(1), cons(2) // cons(-2) Parse p_2 = null; Parse p_1 = null; Parse p0 = null; ...
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java index 48c410cc4a..13fa2554ae 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java +++ b/sonar-batch/src/main/java/org/sonar/batch...
true
true
public void saveOrUpdateViolation(Project project, Violation violation, RuleFailureModel model, String checksum) { Snapshot snapshot = resourcePersister.saveResource(project, violation.getResource()); if (model != null) { // update model = session.reattach(RuleFailureModel.class, model.getId()); ...
public void saveOrUpdateViolation(Project project, Violation violation, RuleFailureModel model, String checksum) { Snapshot snapshot = resourcePersister.saveResource(project, violation.getResource()); if (model != null) { // update model = session.reattach(RuleFailureModel.class, model.getId()); ...
diff --git a/src/org/eclipse/core/internal/localstore/UnifiedTree.java b/src/org/eclipse/core/internal/localstore/UnifiedTree.java index f10dbfcc..2011a42d 100644 --- a/src/org/eclipse/core/internal/localstore/UnifiedTree.java +++ b/src/org/eclipse/core/internal/localstore/UnifiedTree.java @@ -1,564 +1,566 @@ /*******...
true
true
protected void addChildren(UnifiedTreeNode node) { Resource parent = (Resource) node.getResource(); // is there a possibility to have children? int parentType = parent.getType(); if (parentType == IResource.FILE && !node.isFolder()) return; //don't refresh resources in closed or non-existent projects ...
protected void addChildren(UnifiedTreeNode node) { Resource parent = (Resource) node.getResource(); // is there a possibility to have children? int parentType = parent.getType(); if (parentType == IResource.FILE && !node.isFolder()) return; //don't refresh resources in closed or non-existent projects ...
diff --git a/core/src/test/java/org/fao/geonet/AbstractCoreIntegrationTest.java b/core/src/test/java/org/fao/geonet/AbstractCoreIntegrationTest.java index 160f692eea..603a6a2fbd 100644 --- a/core/src/test/java/org/fao/geonet/AbstractCoreIntegrationTest.java +++ b/core/src/test/java/org/fao/geonet/AbstractCoreIntegratio...
false
true
public void configureAppContext() throws Exception { System.setProperty(LuceneConfig.USE_NRT_MANAGER_REOPEN_THREAD, Boolean.toString(true)); // clear out datastore for (Name name : _datastore.getNames()) { ((FeatureStore<?,?>) _datastore.getFeatureSource(name)).removeFeatures(Fil...
public void configureAppContext() throws Exception { System.setProperty(LuceneConfig.USE_NRT_MANAGER_REOPEN_THREAD, Boolean.toString(true)); // clear out datastore for (Name name : _datastore.getNames()) { ((FeatureStore<?,?>) _datastore.getFeatureSource(name)).removeFeatures(Fil...
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java index 7035d6516..9286cdc7f 100644 --- a/main/src/cgeo/geocaching/cgCache.java +++ b/main/src/cgeo/geocaching/cgCache.java @@ -1,1636 +1,1636 @@ package cgeo.geocaching; import cgeo.geocaching.cgData.StorageLocation; import c...
false
true
public boolean gatherMissingFrom(final cgCache other) { if (other == null) { return false; } updated = System.currentTimeMillis(); if (!detailed && (other.detailed || zoomlevel < other.zoomlevel)) { detailed = other.detailed; detailedUpdate = othe...
public boolean gatherMissingFrom(final cgCache other) { if (other == null) { return false; } updated = System.currentTimeMillis(); if (!detailed && (other.detailed || zoomlevel < other.zoomlevel)) { detailed = other.detailed; detailedUpdate = othe...
diff --git a/frost-wot/source/frost/FileAccess.java b/frost-wot/source/frost/FileAccess.java index 53a366e8..e18b68e1 100644 --- a/frost-wot/source/frost/FileAccess.java +++ b/frost-wot/source/frost/FileAccess.java @@ -1,627 +1,633 @@ /* FileAccess.java / File Access Copyright (C) 2001 Jan-Thomas Czornack <jant...
false
true
public static void readKeyFile(File source, Map chk) { if (source.isFile() && source.length() > 0) { BufferedReader f; String line = new String(); String filename = new String(); String size = new String(); String date = new String(); ...
public static void readKeyFile(File source, Map chk) { if (source.isFile() && source.length() > 0) { BufferedReader f; String line = new String(); String filename = new String(); String size = new String(); String date = new String(); ...
diff --git a/src/com/normalexception/forum/rx8club/view/threadpost/PostViewArrayAdapter.java b/src/com/normalexception/forum/rx8club/view/threadpost/PostViewArrayAdapter.java index 5afcd9b..0a39492 100644 --- a/src/com/normalexception/forum/rx8club/view/threadpost/PostViewArrayAdapter.java +++ b/src/com/normalexception...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View vi = convertView; if(vi == null) { LayoutInflater vinf = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); vi = vinf.inflate(R.layout.view_newreply, null); ...
public View getView(int position, View convertView, ViewGroup parent) { View vi = convertView; if(vi == null) { LayoutInflater vinf = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); vi = vinf.inflate(R.layout.view_newreply, null); ...
diff --git a/src/com/avona/games/towerdefence/inputActors/MenuInputActor.java b/src/com/avona/games/towerdefence/inputActors/MenuInputActor.java index 406d448..9d697ea 100644 --- a/src/com/avona/games/towerdefence/inputActors/MenuInputActor.java +++ b/src/com/avona/games/towerdefence/inputActors/MenuInputActor.java @@ ...
true
true
public void mouseBtn1DownAt(final V2 location) { final float height = layer.region.y; final float fromTop = height - location.y; final int buttonCount = 4; final int btn = (int) (Math.floor(buttonCount * fromTop / height)); switch (btn) { case 0: case 1: case 2: if (!game.isPaused() && btn < game.l...
public void mouseBtn1DownAt(final V2 virtualLocation) { final float height = layer.virtualRegion.y; final float fromTop = height - virtualLocation.y; final int buttonCount = 4; final int btn = (int) (Math.floor(buttonCount * fromTop / height)); switch (btn) { case 0: case 1: case 2: if (!game.isPau...
diff --git a/resthub-apps/booking/booking-core/src/main/java/org/resthub/booking/service/HotelServiceImpl.java b/resthub-apps/booking/booking-core/src/main/java/org/resthub/booking/service/HotelServiceImpl.java index c8fd9036..233eed15 100644 --- a/resthub-apps/booking/booking-core/src/main/java/org/resthub/booking/ser...
true
true
public List<Hotel> find(final String query) { if (query == null || query.isEmpty()) { return this.findAll(); } else { Page<Hotel> resultList = this.repository.find(query, null); if (resultList == null) { return new ArrayList<Hotel>(); }...
public List<Hotel> find(final String query) { if (query == null || query.isEmpty()) { return this.findAll(); } else { Page<Hotel> resultList = this.repository.find(query, null); if (resultList == null) { return new ArrayList<Hotel>(); }...
diff --git a/src/be/ibridge/kettle/trans/step/mergerows/MergeRows.java b/src/be/ibridge/kettle/trans/step/mergerows/MergeRows.java index 02356381..015e4f6e 100644 --- a/src/be/ibridge/kettle/trans/step/mergerows/MergeRows.java +++ b/src/be/ibridge/kettle/trans/step/mergerows/MergeRows.java @@ -1,309 +1,306 @@ /******...
true
true
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { meta=(MergeRowsMeta)smi; data=(MergeRowsData)sdi; if (first) { first = false; // // Set the name of the "static" values used for the flag /...
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { meta=(MergeRowsMeta)smi; data=(MergeRowsData)sdi; if (first) { first = false; // // Set the name of the "static" values used for the flag /...
diff --git a/org.eclipse.mylyn.commons.notifications/src/org/eclipse/mylyn/internal/commons/ui/notifications/NotificationsPreferencesPage.java b/org.eclipse.mylyn.commons.notifications/src/org/eclipse/mylyn/internal/commons/ui/notifications/NotificationsPreferencesPage.java index 37b41e20..aad24b40 100644 --- a/org.ecl...
true
true
protected Control createContents(Composite parent) { model = NotificationsPlugin.getDefault().createModelWorkingCopy(); Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(2, false)); enableNotificationsButton = new Button(composite, SWT.CHECK); GridDataFactory.fillDef...
protected Control createContents(Composite parent) { model = NotificationsPlugin.getDefault().createModelWorkingCopy(); Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(2, false)); enableNotificationsButton = new Button(composite, SWT.CHECK); GridDataFactory.fillDef...
diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/TermComponentQuery.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/TermComponentQuery.java index 9c858793c..5a5196114 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/TermComponentQuery.java +++ b/KeywordSearch/src/org/sle...
false
true
public Collection<KeywordWriteResult> writeToBlackBoard(FsContent newFsHit, String listName) { final String MODULE_NAME = KeywordSearchIngestService.MODULE_NAME; Collection<KeywordWriteResult> writeResults = new ArrayList<KeywordWriteResult>(); //get case-insensitive term matches M...
public Collection<KeywordWriteResult> writeToBlackBoard(FsContent newFsHit, String listName) { final String MODULE_NAME = KeywordSearchIngestService.MODULE_NAME; Collection<KeywordWriteResult> writeResults = new ArrayList<KeywordWriteResult>(); //get unique term matches, all cases ...
diff --git a/preemptrseq.java b/preemptrseq.java index 2e7bc57..a80c503 100644 --- a/preemptrseq.java +++ b/preemptrseq.java @@ -1,66 +1,66 @@ package ajm; import java.util.ArrayList; import java.util.List; import ajm.seqsupport.Item; import com.cycling74.max.Atom; public class preemptrseq extends rseq { ...
true
true
private void setPreemptiveSeq() { seq.clear(); for (Item item : actualSeq) { Atom atom = item.getAtom(); if (isNumber(atom)) { int val = atom.toInt(); if (val > 0) { seq.add(new Item(-(val - 1))); seq.add(new Item(1)); } else { seq.add(item); } } else { seq.add(it...
private void setPreemptiveSeq() { seq.clear(); for (Item item : actualSeq) { Atom atom = item.getAtom(); if (isNumber(atom)) { int val = atom.toInt(); if (val > 1) { seq.add(new Item(-(val - 1))); seq.add(new Item(1)); } else { seq.add(item); } } else { seq.add(it...
diff --git a/onebusaway-nyc-webapp/src/main/java/org/onebusaway/nyc/webapp/actions/GaAction.java b/onebusaway-nyc-webapp/src/main/java/org/onebusaway/nyc/webapp/actions/GaAction.java index 0ac0877..eab63cb 100644 --- a/onebusaway-nyc-webapp/src/main/java/org/onebusaway/nyc/webapp/actions/GaAction.java +++ b/onebusaway-...
false
true
public String execute() throws Exception { HttpServletRequest request = ServletActionContext.getRequest(); HttpServletResponse response = ServletActionContext.getResponse(); String domainName = request.getServerName(); if (isEmpty(domainName)) { domainName = ""; } // Get the re...
public String execute() throws Exception { HttpServletRequest request = ServletActionContext.getRequest(); HttpServletResponse response = ServletActionContext.getResponse(); String domainName = request.getServerName(); if (isEmpty(domainName)) { domainName = ""; } // Get the re...
diff --git a/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java b/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java index b75374674..ce907ae71 100644 --- a/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java +++ b/router/java/src/net/i2p/rout...
true
true
public void runJob() { if (_log.shouldLog(Log.DEBUG)) _log.debug("Handling database lookup message for " + _message.getSearchKey()); Hash fromKey = _message.getFrom(); if (_log.shouldLog(Log.DEBUG)) { if (_message.getReplyTunnel() != null) _log.debug...
public void runJob() { if (_log.shouldLog(Log.DEBUG)) _log.debug("Handling database lookup message for " + _message.getSearchKey()); Hash fromKey = _message.getFrom(); if (_log.shouldLog(Log.DEBUG)) { if (_message.getReplyTunnel() != null) _log.debug...
diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java index c95906def..5c26cd5dd 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java +++ b/activem...
true
true
public void testHealthView() throws Exception{ Connection connection = connectionFactory.createConnection(); connection.start(); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); destination = createDestination(); MessageProduce...
public void testHealthView() throws Exception{ Connection connection = connectionFactory.createConnection(); connection.start(); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); destination = createDestination(); MessageProduce...
diff --git a/src/persistence/grails/orm/HibernateCriteriaBuilder.java b/src/persistence/grails/orm/HibernateCriteriaBuilder.java index 4cf8d7d90..94392d295 100644 --- a/src/persistence/grails/orm/HibernateCriteriaBuilder.java +++ b/src/persistence/grails/orm/HibernateCriteriaBuilder.java @@ -1,1213 +1,1213 @@ /* * C...
false
true
public Object invokeMethod(String name, Object obj) { Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj}; if(isCriteriaConstructionMethod(name, args)) { if(this.criteria != null) { throwRuntimeException( new IllegalArgumentException("c...
public Object invokeMethod(String name, Object obj) { Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj}; if(isCriteriaConstructionMethod(name, args)) { if(this.criteria != null) { throwRuntimeException( new IllegalArgumentException("c...
diff --git a/src/com/morphoss/acal/acaltime/AcalDateTimeFormatter.java b/src/com/morphoss/acal/acaltime/AcalDateTimeFormatter.java index b88e196..d7c83a3 100644 --- a/src/com/morphoss/acal/acaltime/AcalDateTimeFormatter.java +++ b/src/com/morphoss/acal/acaltime/AcalDateTimeFormatter.java @@ -1,207 +1,206 @@ package co...
false
true
public static String getDisplayTimeText(Context c, AcalDateTime viewDateStart, AcalDateTime viewDateEnd, AcalDateTime start, AcalDateTime end, boolean as24HourTime, boolean isAllDay) { String timeText = ""; String timeFormatString = (as24HourTime ? "HH:mm" : "hh:mmaa"); SimpleDateFormat timeFormatter = ...
public static String getDisplayTimeText(Context c, AcalDateTime viewDateStart, AcalDateTime viewDateEnd, AcalDateTime start, AcalDateTime end, boolean as24HourTime, boolean isAllDay) { String timeText = ""; String timeFormatString = (as24HourTime ? "HH:mm" : "hh:mmaa"); SimpleDateFormat timeFormatter = ...
diff --git a/modules/com.noelios.restlet/src/com/noelios/restlet/http/StreamClientCall.java b/modules/com.noelios.restlet/src/com/noelios/restlet/http/StreamClientCall.java index 18b209c6e..84c046ccd 100644 --- a/modules/com.noelios.restlet/src/com/noelios/restlet/http/StreamClientCall.java +++ b/modules/com.noelios.re...
false
true
public Status sendRequest(Request request) { Status result = null; try { // Extract the host info String hostDomain = request.getResourceRef().getHostDomain(); int hostPort = request.getResourceRef().getHostPort(); if (hostPort == -1) { ...
public Status sendRequest(Request request) { Status result = null; try { // Extract the host info String hostDomain = request.getResourceRef().getHostDomain(); int hostPort = request.getResourceRef().getHostPort(); if (hostPort == -1) { ...
diff --git a/core/src/visad/trunk/GraphicsModeControl.java b/core/src/visad/trunk/GraphicsModeControl.java index e04d63f2d..f25051234 100644 --- a/core/src/visad/trunk/GraphicsModeControl.java +++ b/core/src/visad/trunk/GraphicsModeControl.java @@ -1,476 +1,470 @@ // // GraphicsModeControl.java // /* VisAD syste...
true
true
public void setSaveString(String save) throws VisADException, RemoteException { if (save == null) throw new VisADException("Invalid save string"); StringTokenizer st = new StringTokenizer(save); int numTokens = st.countTokens(); if (numTokens < 10) throw new VisADException("Invalid save string")...
public void setSaveString(String save) throws VisADException, RemoteException { if (save == null) throw new VisADException("Invalid save string"); StringTokenizer st = new StringTokenizer(save); int numTokens = st.countTokens(); if (numTokens < 10) throw new VisADException("Invalid save string")...
diff --git a/samples/chat/src/main/java/org/atmosphere/wasync/wAsyncChat.java b/samples/chat/src/main/java/org/atmosphere/wasync/wAsyncChat.java index 8349439..1ea31cc 100644 --- a/samples/chat/src/main/java/org/atmosphere/wasync/wAsyncChat.java +++ b/samples/chat/src/main/java/org/atmosphere/wasync/wAsyncChat.java @@ ...
true
true
public static void main(String[] args) throws IOException { if (args.length == 0) { args = new String[] {"http://127.0.0.1:8080/chat"}; } Options options = new Options.OptionsBuilder().build(); AtmosphereClient client = ClientFactory.getDefault().newClient(AtmosphereCli...
public static void main(String[] args) throws IOException { if (args.length == 0) { args = new String[] {"http://127.0.0.1:8080"}; } Options options = new Options.OptionsBuilder().build(); AtmosphereClient client = ClientFactory.getDefault().newClient(AtmosphereClient.c...
diff --git a/src/com/android/apps/tag/MyTagList.java b/src/com/android/apps/tag/MyTagList.java index e4541c5..9186389 100644 --- a/src/com/android/apps/tag/MyTagList.java +++ b/src/com/android/apps/tag/MyTagList.java @@ -1,661 +1,661 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under t...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.my_tag_activity); if (savedInstanceState != null) { mTagIdInEdit = savedInstanceState.getLong(BUNDLE_KEY_TAG_ID_IN_EDIT, -1); } // Set up the check box...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.my_tag_activity); if (savedInstanceState != null) { mTagIdInEdit = savedInstanceState.getLong(BUNDLE_KEY_TAG_ID_IN_EDIT, -1); } // Set up the check box...
diff --git a/src/uk/org/ponder/rsf/components/ELReference.java b/src/uk/org/ponder/rsf/components/ELReference.java index 88d3ff5..79b0960 100644 --- a/src/uk/org/ponder/rsf/components/ELReference.java +++ b/src/uk/org/ponder/rsf/components/ELReference.java @@ -1,27 +1,31 @@ /* * Created on 13-Jan-2006 */ package ...
true
true
public ELReference(String value) { String stripped = BeanUtil.stripEL(value); this.value = stripped == null? value : stripped; }
public ELReference(String value) { String stripped = BeanUtil.stripEL(value); this.value = stripped == null? value : stripped; if ("".equals(value)) { throw new IllegalArgumentException( "Cannot issue an EL reference to an empty path. For an empty binding please either supply null, or else...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/task/FilterParameter.java b/ttools/src/main/uk/ac/starlink/ttools/task/FilterParameter.java index e3f1afa72..c202da05f 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/task/FilterParameter.java +++ b/ttools/src/main/uk/ac/starlink/ttools/task/FilterParameter.java @@ ...
false
true
public String getExtraUsage( TableEnvironment env ) { StringBuffer sbuf = new StringBuffer() .append( "\n Known filter commands:\n" ); ObjectFactory filterFactory = StepFactory.getInstance() .getFilterFactory(); String[] fnames =...
public String getExtraUsage( TableEnvironment env ) { StringBuffer sbuf = new StringBuffer() .append( "\n Known filter commands:\n" ); ObjectFactory filterFactory = StepFactory.getInstance() .getFilterFactory(); String[] fnames =...
diff --git a/src/main/java/com/censoredsoftware/demigods/listener/EntityListener.java b/src/main/java/com/censoredsoftware/demigods/listener/EntityListener.java index 7b029e0c..ac4eb7bf 100644 --- a/src/main/java/com/censoredsoftware/demigods/listener/EntityListener.java +++ b/src/main/java/com/censoredsoftware/demigod...
true
true
public static void entityDeath(EntityDeathEvent event) { if(Demigods.isDisabledWorld(event.getEntity().getLocation())) return; if(event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); DCharacter playerChar = DPlayer.Util.getPlayer(player).getCurrent(); playerChar.addDeath(...
public static void entityDeath(EntityDeathEvent event) { if(Demigods.isDisabledWorld(event.getEntity().getLocation())) return; if(event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); DCharacter playerChar = DPlayer.Util.getPlayer(player).getCurrent(); if(playerChar != nul...
diff --git a/src/main/java/net/aufdemrand/denizen/npc/dNPC.java b/src/main/java/net/aufdemrand/denizen/npc/dNPC.java index d879bedbb..af2efd139 100644 --- a/src/main/java/net/aufdemrand/denizen/npc/dNPC.java +++ b/src/main/java/net/aufdemrand/denizen/npc/dNPC.java @@ -1,186 +1,189 @@ package net.aufdemrand.denizen.npc...
false
true
public void action(String actionName, Player player) { if (getCitizen().hasTrait(AssignmentTrait.class)) DenizenAPI.getCurrentInstance().getNPCRegistry() .getActionHandler().doAction( actionName, this, player, ...
public void action(String actionName, Player player) { if (getCitizen() != null) { if (getCitizen().hasTrait(AssignmentTrait.class)) DenizenAPI.getCurrentInstance().getNPCRegistry() .getActionHandler().doAction( actionName, this, ...
diff --git a/src/java/net/sf/jabref/groups/GroupDialog.java b/src/java/net/sf/jabref/groups/GroupDialog.java index a95b10da3..66e7fda20 100644 --- a/src/java/net/sf/jabref/groups/GroupDialog.java +++ b/src/java/net/sf/jabref/groups/GroupDialog.java @@ -1,386 +1,388 @@ /* Copyright (C) 2003 Morten O. Alver, Nizar N. ...
true
true
public GroupDialog(JabRefFrame jabrefFrame, BasePanel basePanel, AbstractGroup editedGroup) { super(jabrefFrame, Globals.lang("Edit group"), true); m_basePanel = basePanel; m_parent = jabrefFrame; m_editedGroup = editedGroup; // set default values (overwritten if editedGroup...
public GroupDialog(JabRefFrame jabrefFrame, BasePanel basePanel, AbstractGroup editedGroup) { super(jabrefFrame, Globals.lang("Edit group"), true); m_basePanel = basePanel; m_parent = jabrefFrame; m_editedGroup = editedGroup; // set default values (overwritten if editedGroup...
diff --git a/src/main/java/org/mvel/MVELInterpretedRuntime.java b/src/main/java/org/mvel/MVELInterpretedRuntime.java index eee35578..41a38b1d 100644 --- a/src/main/java/org/mvel/MVELInterpretedRuntime.java +++ b/src/main/java/org/mvel/MVELInterpretedRuntime.java @@ -1,402 +1,402 @@ /** * MVEL (The MVFLEX Expression ...
true
true
private void parseAndExecuteInterpreted() { ASTNode tk = null; int operator; lastWasIdentifier = false; try { while ((tk = nextToken()) != null) { holdOverRegister = null; if (lastWasIdentifier && lastNode.isDiscard()) { ...
private void parseAndExecuteInterpreted() { ASTNode tk = null; int operator; lastWasIdentifier = false; try { while ((tk = nextToken()) != null) { holdOverRegister = null; if (lastWasIdentifier && lastNode.isDiscard()) { ...
diff --git a/src/main/java/com/github/miemiedev/mybatis/paginator/SortInfo.java b/src/main/java/com/github/miemiedev/mybatis/paginator/SortInfo.java index fbe9d2e..9377c4e 100644 --- a/src/main/java/com/github/miemiedev/mybatis/paginator/SortInfo.java +++ b/src/main/java/com/github/miemiedev/mybatis/paginator/SortInfo....
true
true
public static SortInfo parseSortColumn(String sortSegment) { if(sortSegment == null || sortSegment.trim().equals("")){ return null; } String[] injectStrings = INJECT_STRING.split("\\|"); for (int i=0 ; i < injectStrings.length ; i++ ){ if (sortSegment.toLow...
public static SortInfo parseSortColumn(String sortSegment) { if(sortSegment == null || sortSegment.trim().equals("") || sortSegment.startsWith("null.") || sortSegment.startsWith(".")){ return null; } String[] injectStrings = INJECT_STRING.split("\\|"); for (int i=0 ; i ...
diff --git a/src/main/java/com/github/ucchyocean/mdm/ManzoiDeathMessage.java b/src/main/java/com/github/ucchyocean/mdm/ManzoiDeathMessage.java index 01f08e1..d2d7e85 100644 --- a/src/main/java/com/github/ucchyocean/mdm/ManzoiDeathMessage.java +++ b/src/main/java/com/github/ucchyocean/mdm/ManzoiDeathMessage.java @@ -1,2...
true
true
public void onPlayerDeath(PlayerDeathEvent event){ // プレイヤーとプレイヤーが最後に受けたダメージイベントを取得 Player deader = event.getEntity(); final EntityDamageEvent cause = event.getEntity().getLastDamageCause(); // 死亡メッセージ String deathMessage = event.getDeathMessage(); // ダメージイベントを受けずに...
public void onPlayerDeath(PlayerDeathEvent event){ // プレイヤーとプレイヤーが最後に受けたダメージイベントを取得 Player deader = event.getEntity(); final EntityDamageEvent cause = event.getEntity().getLastDamageCause(); // 死亡メッセージ String deathMessage = event.getDeathMessage(); // ダメージイベントを受けずに...
diff --git a/src/java/net/sf/picard/reference/FastaSequenceFile.java b/src/java/net/sf/picard/reference/FastaSequenceFile.java index 7869864..a3128b4 100644 --- a/src/java/net/sf/picard/reference/FastaSequenceFile.java +++ b/src/java/net/sf/picard/reference/FastaSequenceFile.java @@ -1,197 +1,196 @@ /* * The MIT Lic...
true
true
FastaSequenceFile(final File file, final boolean truncateNamesAtWhitespace) { this.file = file; this.truncateNamesAtWhitespace = truncateNamesAtWhitespace; this.in = new FastLineReader(IoUtil.openFileForReading(file)); // Try and locate the dictionary String dictionaryName =...
FastaSequenceFile(final File file, final boolean truncateNamesAtWhitespace) { this.file = file; this.truncateNamesAtWhitespace = truncateNamesAtWhitespace; this.in = new FastLineReader(IoUtil.openFileForReading(file)); // Try and locate the dictionary String dictionaryName =...
diff --git a/source/org/jivesoftware/smack/Roster.java b/source/org/jivesoftware/smack/Roster.java index 5eebcba..8f2cd0e 100644 --- a/source/org/jivesoftware/smack/Roster.java +++ b/source/org/jivesoftware/smack/Roster.java @@ -1,896 +1,893 @@ /** * $RCSfile$ * $Revision$ * $Date$ * * Copyright 2003-2007 Ji...
true
true
public void processPacket(Packet packet) { // Keep a registry of the entries that were added, deleted or updated. An event // will be fired for each affected entry Collection<String> addedEntries = new ArrayList<String>(); Collection<String> updatedEntries = new A...
public void processPacket(Packet packet) { // Keep a registry of the entries that were added, deleted or updated. An event // will be fired for each affected entry Collection<String> addedEntries = new ArrayList<String>(); Collection<String> updatedEntries = new A...
diff --git a/scm-webapp/src/main/java/sonia/scm/web/security/DefaultAuthenticationHandler.java b/scm-webapp/src/main/java/sonia/scm/web/security/DefaultAuthenticationHandler.java index 33dec4464..2892d8d6e 100644 --- a/scm-webapp/src/main/java/sonia/scm/web/security/DefaultAuthenticationHandler.java +++ b/scm-webapp/sr...
true
true
public AuthenticationResult authenticate(HttpServletRequest request, HttpServletResponse response, String username, String password) { AuthenticationResult result = null; User user = userManager.get(username); // return not found, if the user is not active if (user != null && user.isActiv...
public AuthenticationResult authenticate(HttpServletRequest request, HttpServletResponse response, String username, String password) { AuthenticationResult result = null; User user = userManager.get(username); if (user != null) { if (userManager.getDefaultType().equals(user.getType(...
diff --git a/LighthouseCore/src/edu/uci/lighthouse/core/controller/UpdateLighthouseModel.java b/LighthouseCore/src/edu/uci/lighthouse/core/controller/UpdateLighthouseModel.java index 0c795e5f..e61eab59 100644 --- a/LighthouseCore/src/edu/uci/lighthouse/core/controller/UpdateLighthouseModel.java +++ b/LighthouseCore/src...
true
true
public void updateByEvents(Collection<LighthouseEvent> listEvents) { LighthouseModelManager LhManager = new LighthouseModelManager(model); Collection<String> listClassesToRemove = new LinkedHashSet<String>(); // for each entity event for (LighthouseEvent event : listEvents) { Object artifact = event.getArt...
public void updateByEvents(Collection<LighthouseEvent> listEvents) { LighthouseModelManager LhManager = new LighthouseModelManager(model); Collection<String> listClassesToRemove = new LinkedHashSet<String>(); // for each entity event for (LighthouseEvent event : listEvents) { Object artifact = event.getArt...
diff --git a/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java b/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java index 49d664e..043dcd1 100644 --- a/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java +++ b/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java @@ -1,185 +1,185 @@ /** ...
false
true
public void testNodeIndex() throws SyntaxException, Exception { Map<String, String> config = SpatialIndexProvider.SIMPLE_POINT_CONFIG; IndexManager indexMan = db.index(); Index<Node> index = indexMan.forNodes( "layer1", config ); assertNotNull( index ); Transaction tx = d...
public void testNodeIndex() throws SyntaxException, Exception { Map<String, String> config = SpatialIndexProvider.SIMPLE_POINT_CONFIG; IndexManager indexMan = db.index(); Index<Node> index = indexMan.forNodes( "layer1", config ); assertNotNull( index ); Transaction tx = d...
diff --git a/src/main/java/org/fcrepo/sequencer/archive/ArchiveSequencer.java b/src/main/java/org/fcrepo/sequencer/archive/ArchiveSequencer.java index 499cebc..c4117b9 100644 --- a/src/main/java/org/fcrepo/sequencer/archive/ArchiveSequencer.java +++ b/src/main/java/org/fcrepo/sequencer/archive/ArchiveSequencer.java @@ ...
true
true
public boolean execute(final Property inputProperty, final Node outputNode, final Context context) throws RepositoryException, IOException, ArchiveException, InvalidChecksumException { LOG.debug("Sequencing property change: \"{}\", expecting \"{}\"", inputProperty.get...
public boolean execute(final Property inputProperty, final Node outputNode, final Context context) throws RepositoryException, IOException, ArchiveException, InvalidChecksumException { LOG.debug("Sequencing property change: \"{}\", expecting \"{}\"", inputProperty.get...
diff --git a/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel.java b/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel.java index 7364b8f9ed2..c7429884137 100644 --- a/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel.java +++ b/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel....
false
true
public void sendResponse(RestResponse response) { // Decide whether to close the connection or not. boolean http10 = request.getProtocolVersion().equals(HttpVersion.HTTP_1_0); boolean close = HttpHeaders.Values.CLOSE.equalsIgnoreCase(request.getHeader(HttpHeaders.Names.CONNE...
public void sendResponse(RestResponse response) { // Decide whether to close the connection or not. boolean http10 = request.getProtocolVersion().equals(HttpVersion.HTTP_1_0); boolean close = HttpHeaders.Values.CLOSE.equalsIgnoreCase(request.getHeader(HttpHeaders.Names.CONNE...
diff --git a/Client/ChatterClient.java b/Client/ChatterClient.java index a7cea55..48a7dcd 100644 --- a/Client/ChatterClient.java +++ b/Client/ChatterClient.java @@ -1,68 +1,68 @@ import java.io.*; import java.net.*; public class ChatterClient { public static void main(String[] args) throws IOException { ...
false
true
public static void main(String[] args) throws IOException { boolean needHost = true; String host = "pod5-5.cs.purdue.edu"; Socket ccSocket = null; PrintWriter out = null; BufferedReader in = null; BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in...
public static void main(String[] args) throws IOException { boolean needHost = true; String host = "pod5-5.cs.purdue.edu"; Socket ccSocket = null; PrintWriter out = null; BufferedReader in = null; BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in...
diff --git a/tests/com.aptana.editor.erb.tests/src/com/aptana/editor/erb/RHTMLSourcePartitionScannerTest.java b/tests/com.aptana.editor.erb.tests/src/com/aptana/editor/erb/RHTMLSourcePartitionScannerTest.java index 67c29cc..5106058 100644 --- a/tests/com.aptana.editor.erb.tests/src/com/aptana/editor/erb/RHTMLSourcePart...
true
true
public void testPartition() { String source = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" //$NON-NLS-1$ + "<html>\n" //$NON-NLS-1$ + "<head><script><% print \"Hello, world!\" %></script></head>\n" //$NON-NLS-1$ + "<body>\n" //$NON...
public void testPartition() { String source = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" //$NON-NLS-1$ + "<html>\n" //$NON-NLS-1$ + "<head><script><% print \"Hello, world!\" %></script></head>\n" //$NON-NLS-1$ + "<body>\n" //$NON...
diff --git a/src/main/java/org/bioinfo/infrared/ws/server/rest/feature/GeneWSServer.java b/src/main/java/org/bioinfo/infrared/ws/server/rest/feature/GeneWSServer.java index 31c78ef..76d21de 100755 --- a/src/main/java/org/bioinfo/infrared/ws/server/rest/feature/GeneWSServer.java +++ b/src/main/java/org/bioinfo/infrared/...
false
true
public Response getFullInfoByEnsemblId(@PathParam("geneId") String query, @DefaultValue("") @QueryParam("sources") String sources) { try { List<Gene> genes = getGeneDBAdaptor().getAllByNameList(StringUtils.toList(query, ",")).get(0); List<List<Transcript>> transcriptList = getTranscriptDBAdaptor().getByEnsembl...
public Response getFullInfoByEnsemblId(@PathParam("geneId") String query, @DefaultValue("") @QueryParam("sources") String sources) { try { List<Gene> genes = getGeneDBAdaptor().getAllByNameList(StringUtils.toList(query, ",")).get(0); List<String> geneEnsemblStableIdList = new ArrayList<String>(genes.size()); ...
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
public void configure(Properties properties) { this.defaultAuthenticationProperties = properties; try { httpService.registerServlet("/auth2", new AuthInitServlet( //$NON-NLS-1$ properties), null, new BundleEntryHttpContext(Activator.getBundleContext().getBundle())); } catch (Exception e) { LogHelper.l...
public void configure(Properties properties) { this.defaultAuthenticationProperties = properties; try { httpService.registerServlet("/auth2", new AuthInitServlet( //$NON-NLS-1$ properties), null, new BundleEntryHttpContext(Activator.getBundleContext().getBundle())); httpService.registerResources("/authe...
diff --git a/src/test/java/com/github/croesch/partimana/view/listener/TableSelectOnClickListenerGUITest.java b/src/test/java/com/github/croesch/partimana/view/listener/TableSelectOnClickListenerGUITest.java index 9866793..13e27bd 100644 --- a/src/test/java/com/github/croesch/partimana/view/listener/TableSelectOnClickLi...
true
true
protected void before() { this.table = GuiActionRunner.execute(new GuiQuery<JTableFixture>() { @Override protected JTableFixture executeInEDT() throws Throwable { final JTable table = new JTable(new Object[][] { new Object[] { "Müller", "Hans" }, ...
protected void before() { this.table = GuiActionRunner.execute(new GuiQuery<JTableFixture>() { @Override protected JTableFixture executeInEDT() throws Throwable { final JTable table = new JTable(new Object[][] { new Object[] { "Müller", "Hans" }, ...
diff --git a/org.epic.debug/src/org/epic/debug/ui/ExpressionView.java b/org.epic.debug/src/org/epic/debug/ui/ExpressionView.java index 93db94dd..a5abe0b0 100644 --- a/org.epic.debug/src/org/epic/debug/ui/ExpressionView.java +++ b/org.epic.debug/src/org/epic/debug/ui/ExpressionView.java @@ -1,150 +1,154 @@ /* * Creat...
false
true
private void evaluateExpression() { IAdaptable a = DebugUITools.getDebugContext(); StackFrame stackFrame = (StackFrame) a.getAdapter(StackFrame.class); if (stackFrame != null) { try { PerlDebugThread thread = stackFrame.getPerlThread(); // TODO: this really should not run...
private void evaluateExpression() { IAdaptable a = DebugUITools.getDebugContext(); StackFrame stackFrame = a != null ? (StackFrame) a.getAdapter(StackFrame.class) : null; if (stackFrame != null) { try { PerlDebugThread thread = stackFrame.getPerlThread(); // TODO: this re...
diff --git a/gson/src/main/java/com/google/gson/UnsafeAllocator.java b/gson/src/main/java/com/google/gson/UnsafeAllocator.java index d84535d..b99ab21 100644 --- a/gson/src/main/java/com/google/gson/UnsafeAllocator.java +++ b/gson/src/main/java/com/google/gson/UnsafeAllocator.java @@ -1,104 +1,104 @@ /* * Copyright (...
true
true
public static UnsafeAllocator create() { // try JVM // public class Unsafe { // public Object allocateInstance(Class<?> type); // } try { Class<?> unsafeClass = Class.forName("sun.misc.Unsafe"); Field f = unsafeClass.getDeclaredField("theUnsafe"); f.setAccessible(true); f...
public static UnsafeAllocator create() { // try JVM // public class Unsafe { // public Object allocateInstance(Class<?> type); // } try { Class<?> unsafeClass = Class.forName("sun.misc.Unsafe"); Field f = unsafeClass.getDeclaredField("theUnsafe"); f.setAccessible(true); f...
diff --git a/guma/gui/SwingGameController.java b/guma/gui/SwingGameController.java index 7a19313..02e330a 100644 --- a/guma/gui/SwingGameController.java +++ b/guma/gui/SwingGameController.java @@ -1,122 +1,126 @@ /** *GUMA a simple math game for elementary school students * Copyright (C) 2012-1013 Dimitrios Desylla...
true
true
public void simulate() { try { Praxis p=paixnidi.getPraxis(true); SimulatorGui g= new SimulatorGui(p.getTelestis1(),p.getTelestis2(),p.getPraxisType()); g.showSimulator(null); } catch(NullPointerException n) { n.printStackTrace(); } }
public void simulate() { try { Praxis p=paixnidi.getPraxis(true); if(p==null) { p=paixnidi.getCurrentPraxis(); } SimulatorGui g= new SimulatorGui(p.getTelestis1(),p.getTelestis2(),p.getPraxisType()); g.showSimulator(null); } catch(NullPointerException n) { n.printStackTrace(); } ...
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog150.java b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog150.java index eb253a48f6..ee5acb5e51 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog150.java +++ b/ambar...
true
true
public void executeDDLUpdates() throws AmbariException, SQLException { LOG.debug("Upgrading schema..."); List<DBColumnInfo> columns = new ArrayList<DBColumnInfo>(); // ======================================================================== // Create tables // ClusterConfigMapping columns.a...
public void executeDDLUpdates() throws AmbariException, SQLException { LOG.debug("Upgrading schema..."); List<DBColumnInfo> columns = new ArrayList<DBColumnInfo>(); // ======================================================================== // Create tables // ClusterConfigMapping columns.a...
diff --git a/jpatchaca-model/src/main/java/version/PatchacaVersion.java b/jpatchaca-model/src/main/java/version/PatchacaVersion.java index 0de6f60..656d82a 100755 --- a/jpatchaca-model/src/main/java/version/PatchacaVersion.java +++ b/jpatchaca-model/src/main/java/version/PatchacaVersion.java @@ -1,9 +1,9 @@ package ve...
true
true
public static String getVersion(){ return "1.3"; }
public static String getVersion(){ return "1.4"; }
diff --git a/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java b/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java index fcd0cab..fb64b83 100644 --- a/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java +++ b/src/main/java/com/github/ucchyocean/ct/DelayedTeleportTask.java @@ -1,8...
true
true
public void run() { if ( players.isEmpty() ) { // プレイヤー表示パケットを送信する (see issue #78) int packetDelay = ColorTeaming.instance.getCTConfig().getTeleportVisiblePacketSendDelay(); if ( packetDelay > 0 ) { Bukkit.getScheduler()....
public void run() { if ( players.isEmpty() ) { // プレイヤー表示パケットを送信する (see issue #78) int packetDelay = ColorTeaming.instance.getCTConfig().getTeleportVisiblePacketSendDelay(); if ( packetDelay > 0 ) { Bukkit.getScheduler()....
diff --git a/src/com/android/music/MediaButtonIntentReceiver.java b/src/com/android/music/MediaButtonIntentReceiver.java index 76812df..44d76db 100644 --- a/src/com/android/music/MediaButtonIntentReceiver.java +++ b/src/com/android/music/MediaButtonIntentReceiver.java @@ -1,148 +1,148 @@ /* * Copyright (C) 2007 The ...
false
true
public void onReceive(Context context, Intent intent) { String intentAction = intent.getAction(); if (AudioManager.ACTION_AUDIO_BECOMING_NOISY.equals(intentAction)) { Intent i = new Intent(context, MediaPlaybackService.class); i.setAction(MediaPlaybackService.SERVICECMD); ...
public void onReceive(Context context, Intent intent) { String intentAction = intent.getAction(); if (AudioManager.ACTION_AUDIO_BECOMING_NOISY.equals(intentAction)) { Intent i = new Intent(context, MediaPlaybackService.class); i.setAction(MediaPlaybackService.SERVICECMD); ...
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/Repo2Runnable.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/Repo2Runnable.java index 8fa4e0c43..07815f15f 100644 --- a/bundles/org.eclipse.equin...
true
true
public IStatus run(IProgressMonitor monitor) throws ProvisionException { SubMonitor progress = SubMonitor.convert(monitor, 5); initializeRepos(progress); // ensure all the right parameters are set validate(); // figure out which IUs we need to process collectIUs(progress.newChild(1)); // create the o...
public IStatus run(IProgressMonitor monitor) throws ProvisionException { SubMonitor progress = SubMonitor.convert(monitor, 5); initializeRepos(progress); // ensure all the right parameters are set validate(); // figure out which IUs we need to process collectIUs(progress.newChild(1)); // create the o...
diff --git a/regression/jvm/ObjectCreationAndManipulationTest.java b/regression/jvm/ObjectCreationAndManipulationTest.java index 9d73ece9..e87c3267 100644 --- a/regression/jvm/ObjectCreationAndManipulationTest.java +++ b/regression/jvm/ObjectCreationAndManipulationTest.java @@ -1,175 +1,177 @@ /* * Copyright (C) 200...
false
true
public static void main(String[] args) { testNewObject(); testObjectInitialization(); testInstanceFieldAccess(); testNewArray(); testANewArray(); testArrayLength(); testMultiANewArray(); testIsInstanceOf(); testIntArrayLoadAndStore(); t...
public static void main(String[] args) { testNewObject(); testObjectInitialization(); testInstanceFieldAccess(); testNewArray(); testANewArray(); testArrayLength(); testMultiANewArray(); testIsInstanceOf(); /* FIXME: testIntArrayLoadAndStore();...
diff --git a/src/view/Controller.java b/src/view/Controller.java index e1d5ef6..c314e83 100644 --- a/src/view/Controller.java +++ b/src/view/Controller.java @@ -1,411 +1,412 @@ package view; import java.awt.Color; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; impor...
true
true
private void runDocEdit() { //this preserves the rep invariant that only one GUI element is seen docTableGUI.setVisible(false); currentDoc.setVisible(true); try { for (String line = serverInput.readLine(); line!=null; line=serverInput.readLine()) { //if the user exits the document, fire a thread to r...
private void runDocEdit() { //this preserves the rep invariant that only one GUI element is seen docTableGUI.setVisible(false); currentDoc.setVisible(true); try { for (String line = serverInput.readLine(); line!=null; line=serverInput.readLine()) { //if the user exits the document, fire a thread to r...
diff --git a/src/tool/romizer/classes/com/sun/midp/romization/Romizer.java b/src/tool/romizer/classes/com/sun/midp/romization/Romizer.java index 71c85dff..ebbb1f1f 100644 --- a/src/tool/romizer/classes/com/sun/midp/romization/Romizer.java +++ b/src/tool/romizer/classes/com/sun/midp/romization/Romizer.java @@ -1,374 +1,...
true
true
private void writeGetResourceMethod() { pl(""); pl("#include <string.h>"); pl("#include <kni.h>"); pl(""); pl("typedef struct _RESOURCES_LIST {"); pl(" const char* pResourceName;"); pl(" const unsigned char* pData;"); pl(" int dataSize;"); ...
private void writeGetResourceMethod() { pl(""); pl("#include <string.h>"); pl("#include <kni.h>"); pl(""); pl("typedef struct _RESOURCES_LIST {"); pl(" const char* pResourceName;"); pl(" const unsigned char* pData;"); pl(" int dataSize;"); ...
diff --git a/src/no/runsafe/UserControl/command/Whois.java b/src/no/runsafe/UserControl/command/Whois.java index 34b1b3e..8e9bdbf 100644 --- a/src/no/runsafe/UserControl/command/Whois.java +++ b/src/no/runsafe/UserControl/command/Whois.java @@ -1,84 +1,84 @@ package no.runsafe.UserControl.command; import no.runsafe...
true
true
public String OnAsyncExecute(ICommandExecutor executor, HashMap<String, String> parameters) { RunsafePlayer target = RunsafeServer.Instance.getPlayer(parameters.get("player")); if (target == null) return String.format("Could not locate a player using %s", parameters.get("player")); if (target instanceof Runs...
public String OnAsyncExecute(ICommandExecutor executor, HashMap<String, String> parameters) { RunsafePlayer target = RunsafeServer.Instance.getPlayer(parameters.get("player")); if (target == null) return String.format("Could not locate a player using %s", parameters.get("player")); if (target instanceof Runs...
diff --git a/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java b/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java index 0b709f8d45..610ba32670 100644 --- a/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java +++ b/sonar-core/src/main/java/org/sonar/core/user/AuthorDao.java @@ -1,79 +1,80 @@...
true
true
public void insert(AuthorDto authorDto) { SqlSession session = mybatis.openSession(); AuthorMapper mapper = session.getMapper(AuthorMapper.class); try { mapper.insert(authorDto); session.commit(); } catch (RuntimeException e) { // break the unique index on LOGIN ? AuthorDto per...
public void insert(AuthorDto authorDto) { SqlSession session = mybatis.openSession(); AuthorMapper mapper = session.getMapper(AuthorMapper.class); try { mapper.insert(authorDto); session.commit(); } catch (RuntimeException e) { // break the unique index on LOGIN ? session.rollb...
diff --git a/src/main/java/com/powertac/tourney/beans/Tournament.java b/src/main/java/com/powertac/tourney/beans/Tournament.java index c4d07d7..3dfac10 100644 --- a/src/main/java/com/powertac/tourney/beans/Tournament.java +++ b/src/main/java/com/powertac/tourney/beans/Tournament.java @@ -1,265 +1,266 @@ package com.po...
true
true
public Tournament(ResultSet rsTs){ try{ this.setTournamentId(rsTs.getInt("tourneyId")); this.setOpenRegistration(rsTs.getBoolean("openRegistration")); this.setMaxGames(rsTs.getInt("maxGames")); this.setPomUrl(rsTs.getString("pomUrl")); this.setMaxBrokers(rsTs.getInt("maxBrokers")); this.setStartTim...
public Tournament(ResultSet rsTs){ try{ this.setTournamentId(rsTs.getInt("tourneyId")); this.setTournamentName(rsTs.getString("tourneyName")); this.setOpenRegistration(rsTs.getBoolean("openRegistration")); this.setMaxGames(rsTs.getInt("maxGames")); this.setPomUrl(rsTs.getString("pomUrl")); this.set...
diff --git a/src/pimp/persistence/DBDataAccessor.java b/src/pimp/persistence/DBDataAccessor.java index 308cdcd..0e55bad 100644 --- a/src/pimp/persistence/DBDataAccessor.java +++ b/src/pimp/persistence/DBDataAccessor.java @@ -1,474 +1,476 @@ package pimp.persistence; import java.awt.Color; import java.lang.reflect....
false
true
protected void update(Product p) { long id = p.id; Class<?> c = p.getClass(); String sql = ""; Field[] fields = c.getFields(); try { if (fields.length > 1) { //More than just an id... sql = "UPDATE " + c.getSimpleName() + " SET "; for (int i = 0; i < fields.length; i++) { Field field ...
protected void update(Product p) { long id = p.id; Class<?> c = p.getClass(); String sql = ""; Field[] fields = c.getFields(); try { if (fields.length > 1) { //More than just an id... sql = "UPDATE " + c.getSimpleName() + " SET "; for (int i = 0; i < fields.length; i++) { Field field ...
diff --git a/libdexter/src/main/java/uk/ac/cam/db538/dexter/transform/taint/TestingTaintTransform.java b/libdexter/src/main/java/uk/ac/cam/db538/dexter/transform/taint/TestingTaintTransform.java index 99d478ea..31a4cc37 100644 --- a/libdexter/src/main/java/uk/ac/cam/db538/dexter/transform/taint/TestingTaintTransform.ja...
true
true
public DexMethod doLast(DexMethod method) { if (isGivenUtilsMethod(method, NAME_ISTAINTED, PROTOTYPE_ISTAINTED_PRIMITIVE)) { DexCode oldCode = method.getMethodBody(); DexRegister paramReg = oldCode.getParameters().get(0).getRegister(); List<DexCodeElement> newI...
public DexMethod doLast(DexMethod method) { if (isGivenUtilsMethod(method, NAME_ISTAINTED, PROTOTYPE_ISTAINTED_PRIMITIVE)) { DexCode oldCode = method.getMethodBody(); DexRegister paramReg = oldCode.getParameters().get(0).getRegister(); List<DexCodeElement> newI...
diff --git a/src/main/java/com/alecgorge/minecraft/jsonapi/stringifier/BukkitStringifier.java b/src/main/java/com/alecgorge/minecraft/jsonapi/stringifier/BukkitStringifier.java index 3248482..8db0e0f 100644 --- a/src/main/java/com/alecgorge/minecraft/jsonapi/stringifier/BukkitStringifier.java +++ b/src/main/java/com/al...
true
true
public static Object handle(Object obj) { if (obj instanceof World.Environment) { World.Environment e = (World.Environment) obj; return e.name().toLowerCase(); } else if (obj instanceof File) { return ((File) obj).toString(); } else if (obj instanceof Block) { Block b = (Block) obj; JSONObject o =...
public static Object handle(Object obj) { if (obj instanceof World.Environment) { World.Environment e = (World.Environment) obj; return e.name().toLowerCase(); } else if (obj instanceof File) { return ((File) obj).toString(); } else if (obj instanceof Block) { Block b = (Block) obj; JSONObject o =...
diff --git a/src/main/java/com/jcloisterzone/game/phase/AbbeyPhase.java b/src/main/java/com/jcloisterzone/game/phase/AbbeyPhase.java index ea4ad2d4..d1e42e2f 100644 --- a/src/main/java/com/jcloisterzone/game/phase/AbbeyPhase.java +++ b/src/main/java/com/jcloisterzone/game/phase/AbbeyPhase.java @@ -1,57 +1,58 @@ packag...
true
true
public void placeTile(Rotation rotation, Position position) { AbbeyAndMayorGame amGame = game.getAbbeyAndMayorGame(); amGame.useAbbey(getActivePlayer()); Tile nextTile = game.getTilePack().drawTile("inactive", Tile.ABBEY_TILE_ID); nextTile.setRotation(rotation); getBoard().a...
public void placeTile(Rotation rotation, Position position) { AbbeyAndMayorGame amGame = game.getAbbeyAndMayorGame(); amGame.useAbbey(getActivePlayer()); Tile nextTile = game.getTilePack().drawTile("inactive", Tile.ABBEY_TILE_ID); game.setCurrentTile(nextTile); nextTile.setR...
diff --git a/deegree-core/deegree-core-workspace/src/main/java/org/deegree/workspace/WorkspaceUtils.java b/deegree-core/deegree-core-workspace/src/main/java/org/deegree/workspace/WorkspaceUtils.java index 2a47b5586b..1daf47b717 100644 --- a/deegree-core/deegree-core-workspace/src/main/java/org/deegree/workspace/Workspa...
true
true
public static void reinitializeChain( Workspace workspace, ResourceIdentifier<? extends Resource> id ) { ResourceNode<? extends Resource> node = workspace.getDependencyGraph().getNode( id ); List<ResourceMetadata<? extends Resource>> list = new ArrayList<ResourceMetadata<? extends Resource>>(); ...
public static void reinitializeChain( Workspace workspace, ResourceIdentifier<? extends Resource> id ) { ResourceNode<? extends Resource> node = workspace.getDependencyGraph().getNode( id ); List<ResourceMetadata<? extends Resource>> list = new ArrayList<ResourceMetadata<? extends Resource>>(); ...
diff --git a/app/com/shopservice/modules/MServiceModule.java b/app/com/shopservice/modules/MServiceModule.java index 3247613..0e0967f 100644 --- a/app/com/shopservice/modules/MServiceModule.java +++ b/app/com/shopservice/modules/MServiceModule.java @@ -1,18 +1,17 @@ package com.shopservice.modules; import com.googl...
true
true
protected void configure() { bind(ProductGroupRepository.class).to(EbeanProductGroupRepository.class).in(Singleton.class); bind(Group2ProductRepository.class).to(EbeanGroup2ProductRepository.class).in(Singleton.class); bind(ProductEntryRepository.class).to(EbeanProductEntryRepository.class)....
protected void configure() { bind(ProductGroupRepository.class).to(EbeanProductGroupRepository.class).in(Singleton.class); bind(Group2ProductRepository.class).to(EbeanGroup2ProductRepository.class).in(Singleton.class); bind(ProductEntryRepository.class).to(EbeanProductEntryRepository.class)....
diff --git a/src/main/java/org/mozilla/gecko/sync/setup/activities/AccountActivity.java b/src/main/java/org/mozilla/gecko/sync/setup/activities/AccountActivity.java index 03c749f4a..980968309 100644 --- a/src/main/java/org/mozilla/gecko/sync/setup/activities/AccountActivity.java +++ b/src/main/java/org/mozilla/gecko/sy...
false
true
public static Intent createAccount(Context context, AccountManager accountManager, String username, String syncKey, String password, ...
public static Intent createAccount(Context context, AccountManager accountManager, String username, String syncKey, String password, ...
diff --git a/ccw.util/src/java/ccw/util/GenericExecutableExtension.java b/ccw.util/src/java/ccw/util/GenericExecutableExtension.java index cd98da98..cb749366 100644 --- a/ccw.util/src/java/ccw/util/GenericExecutableExtension.java +++ b/ccw.util/src/java/ccw/util/GenericExecutableExtension.java @@ -1,73 +1,72 @@ packag...
true
true
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException { assert data instanceof String; bundleName = config.getDeclaringExtension().getContributor().getName(); System.out.println("GenericExecutableExtension instance, bundleName=" + bundleName); ...
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException { bundleName = config.getDeclaringExtension().getContributor().getName(); System.out.println("GenericExecutableExtension instance, bundleName=" + bundleName); if (data instanceof String) { ...
diff --git a/src/klim/orthodox_calendar/Day.java b/src/klim/orthodox_calendar/Day.java index 2d9bc71..50207f7 100755 --- a/src/klim/orthodox_calendar/Day.java +++ b/src/klim/orthodox_calendar/Day.java @@ -1,257 +1,257 @@ package klim.orthodox_calendar; import java.io.BufferedReader; import java.io.IOException; im...
true
true
public String parseDay(Date day) { String ret=new String(); setCalendarDay(day); try { this.setCalendarDay(day); String toOpen="http://calendar.rop.ru/mes1/" + c.format(getCalendarDay().getTime()).toLowerCase() + ".html"; URL url = new URL(toOpen); HttpURLConnection connection = (HttpURLCon...
public String parseDay(Date day) { String ret=new String(); setCalendarDay(day); try { this.setCalendarDay(day); String toOpen="http://calendar.rop.ru/mes1/" + c.format(getCalendarDay().getTime()).toLowerCase() + ".html"; URL url = new URL(toOpen); HttpURLConnection connection = (HttpURLCon...
diff --git a/common/com/metatechcraft/block/MetaOreItem.java b/common/com/metatechcraft/block/MetaOreItem.java index f40f9e8..9047a64 100644 --- a/common/com/metatechcraft/block/MetaOreItem.java +++ b/common/com/metatechcraft/block/MetaOreItem.java @@ -1,24 +1,25 @@ package com.metatechcraft.block; import net.minec...
true
true
public MetaOreItem(int par1) { super(par1); }
public MetaOreItem(int par1) { super(par1); setHasSubtypes(true); }
diff --git a/router/java/src/net/i2p/router/transport/ntcp/Reader.java b/router/java/src/net/i2p/router/transport/ntcp/Reader.java index 969481545..f98cf7d40 100644 --- a/router/java/src/net/i2p/router/transport/ntcp/Reader.java +++ b/router/java/src/net/i2p/router/transport/ntcp/Reader.java @@ -1,174 +1,177 @@ packag...
true
true
private void processRead(NTCPConnection con) { if (con.isClosed()) return; ByteBuffer buf = null; while (!con.isClosed() && !con.isEstablished() && ( (buf = con.getNextReadBuf()) != null) ) { EstablishState est = con.getEstablishState(); if (_log.shouldLog...
private void processRead(NTCPConnection con) { if (con.isClosed()) return; ByteBuffer buf = null; while (!con.isClosed() && !con.isEstablished() && ( (buf = con.getNextReadBuf()) != null) ) { EstablishState est = con.getEstablishState(); if (_log.shouldLog...
diff --git a/src/raw/java/upload/UploadServer.java b/src/raw/java/upload/UploadServer.java index 4018114..13931fa 100644 --- a/src/raw/java/upload/UploadServer.java +++ b/src/raw/java/upload/UploadServer.java @@ -1,69 +1,73 @@ package upload; /* * Copyright 2011 the original author or authors. * * Licensed un...
false
true
public void start() { vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() { public void handle(final HttpServerRequest req) { // We first pause the request so we don't receive any data between now and when the file is opened req.pause(); final String filename ...
public void start() { vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() { public void handle(final HttpServerRequest req) { // We first pause the request so we don't receive any data between now and when the file is opened req.pause(); final String filename ...
diff --git a/src/test/java/com/github/zhongl/ipage/KVEngineBuilderTest.java b/src/test/java/com/github/zhongl/ipage/KVEngineBuilderTest.java index 65ee55f..35610c8 100644 --- a/src/test/java/com/github/zhongl/ipage/KVEngineBuilderTest.java +++ b/src/test/java/com/github/zhongl/ipage/KVEngineBuilderTest.java @@ -1,55 +1...
true
true
public void fullConfig() throws Exception { dir = testDir("fullConfig"); new KVEngineBuilder(new File(".")) .backlog(10) .initialBucketSize(256) .chunkCapacity(4096) .flushByCount(5) .flushByElapseMilliseconds(500L) ...
public void fullConfig() throws Exception { dir = testDir("fullConfig"); new KVEngineBuilder(dir) .backlog(10) .initialBucketSize(256) .chunkCapacity(4096) .flushByCount(5) .flushByElapseMilliseconds(500L) ...
diff --git a/branches/andpet/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/CacheListDelegateDI.java b/branches/andpet/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/CacheListDelegateDI.java index 87ab46f6..b016348a 100644 --- a/branches/andpet/GeoBeagle/di/com/google/code/geobeagle/activity/cache...
true
true
public static CacheListDelegate create(ListActivity listActivity, LayoutInflater layoutInflater) { final OnClickListener onClickListener = new OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }; final ErrorDisplayer errorDisplayer = new E...
public static CacheListDelegate create(ListActivity listActivity, LayoutInflater layoutInflater) { final OnClickListener onClickListener = new OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }; final ErrorDisplayer errorDisplayer = new E...
diff --git a/fest-swing/src/main/java/org/fest/swing/launcher/ApplicationLauncher.java b/fest-swing/src/main/java/org/fest/swing/launcher/ApplicationLauncher.java index 3a607a15..9dcfcc02 100644 --- a/fest-swing/src/main/java/org/fest/swing/launcher/ApplicationLauncher.java +++ b/fest-swing/src/main/java/org/fest/swing...
true
true
public static ApplicationLauncher application(String applicationTypeName) { try { Class<?> applicationType = ApplicationLauncher.class.getClassLoader().loadClass(applicationTypeName); return application(applicationType); } catch (ClassNotFoundException e) { throw new UnexpectedException(conc...
public static ApplicationLauncher application(String applicationTypeName) { try { Class<?> applicationType = Thread.currentThread().getContextClassLoader().loadClass(applicationTypeName); return application(applicationType); } catch (ClassNotFoundException e) { throw new UnexpectedException(...
diff --git a/core/src/com/google/zxing/multi/qrcode/QRCodeMultiReader.java b/core/src/com/google/zxing/multi/qrcode/QRCodeMultiReader.java index b51fbfe1..003cf8f5 100644 --- a/core/src/com/google/zxing/multi/qrcode/QRCodeMultiReader.java +++ b/core/src/com/google/zxing/multi/qrcode/QRCodeMultiReader.java @@ -1,82 +1,8...
true
true
public Result[] decodeMultiple(BinaryBitmap image, Map<DecodeHintType,?> hints) throws NotFoundException { List<Result> results = new ArrayList<Result>(); DetectorResult[] detectorResults = new MultiDetector(image.getBlackMatrix()).detectMulti(hints); for (DetectorResult detectorResult : detectorResults) ...
public Result[] decodeMultiple(BinaryBitmap image, Map<DecodeHintType,?> hints) throws NotFoundException { List<Result> results = new ArrayList<Result>(); DetectorResult[] detectorResults = new MultiDetector(image.getBlackMatrix()).detectMulti(hints); for (DetectorResult detectorResult : detectorResults) ...
diff --git a/src/main/java/no/kantega/blog/initializer/BlogInitializer.java b/src/main/java/no/kantega/blog/initializer/BlogInitializer.java index 547da16..dc65476 100644 --- a/src/main/java/no/kantega/blog/initializer/BlogInitializer.java +++ b/src/main/java/no/kantega/blog/initializer/BlogInitializer.java @@ -1,115 +...
true
true
private void createTables(DataSource dataSource) throws ServletException { try (Connection connection = dataSource.getConnection()) { List<String> statements = Arrays.asList( "create table blog (blogid integer NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY...
private void createTables(DataSource dataSource) throws ServletException { try (Connection connection = dataSource.getConnection()) { List<String> statements = Arrays.asList( "create table blog (blogid integer NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY...
diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java index fd0a05239..6a0439863 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java +...
true
true
public final void acknowledge(final ConnectionContext context,final MessageAck ack) throws Exception { // Handle the standard acknowledgment case. boolean callDispatchMatched = false; Destination destination = null; synchronized(dispatchLock) { if (ack.isStandardAck()) { ...
public final void acknowledge(final ConnectionContext context,final MessageAck ack) throws Exception { // Handle the standard acknowledgment case. boolean callDispatchMatched = false; Destination destination = null; synchronized(dispatchLock) { if (ack.isStandardAck()) { ...