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/main/java/tconstruct/client/ArmorControls.java b/src/main/java/tconstruct/client/ArmorControls.java index d0a7a39ea..ce72ed124 100644 --- a/src/main/java/tconstruct/client/ArmorControls.java +++ b/src/main/java/tconstruct/client/ArmorControls.java @@ -1,222 +1,223 @@ package tconstruct.client; impo...
false
true
private void keyPressed(KeyBinding key) { if (key == ArmorControls.armorKey) { openArmorGui(); } if (key == ArmorControls.jumpKey) { if (mc.thePlayer.capabilities.isCreativeMode) return; if (jumping && midairJumps > 0) { mc.thePlayer.motionY = 0.42D; mc.thePlayer.fallDistance = 0; if (...
private void keyPressed(KeyBinding key) { if (key == ArmorControls.armorKey) { openArmorGui(); } if (key == ArmorControls.jumpKey) { if (mc.thePlayer.capabilities.isCreativeMode) return; if (jumping && midairJumps > 0) { mc.thePlayer.motionY = 0.42D; mc.thePlayer.fallDistance = 0; if (...
diff --git a/org.cloudsmith.geppetto.validation.tests/src/test/java/org/cloudsmith/geppetto/validation/tests/TestForgeModules.java b/org.cloudsmith.geppetto.validation.tests/src/test/java/org/cloudsmith/geppetto/validation/tests/TestForgeModules.java index 4f1ae60a..2b7dea26 100644 --- a/org.cloudsmith.geppetto.validat...
true
true
public void validateForge() throws Exception { File root = new File("/Users/henrik/gitrepos/forge-modules"); if(!root.isDirectory()) return; // TestDataProvider.getTestFile(new Path( // "testData/test-modules/")); ValidationService vs = getValidationService(); Diagnostic chain = new Diagnostic(); Val...
public void validateForge() throws Exception { File root = new File("/Users/henrik/gitrepos/forge-modules"); if(!root.isDirectory()) return; // TestDataProvider.getTestFile(new Path( // "testData/test-modules/")); ValidationService vs = getValidationService(); Diagnostic chain = new Diagnostic(); Val...
diff --git a/src/edu/stuy/commands/Autonomous.java b/src/edu/stuy/commands/Autonomous.java index 055a2ef..cc31cc5 100644 --- a/src/edu/stuy/commands/Autonomous.java +++ b/src/edu/stuy/commands/Autonomous.java @@ -1,54 +1,54 @@ /* * To change this template, choose Tools | Templates * and open the template in the ed...
false
true
public Autonomous() { addSequential(new DrivetrainSetGear(true)); switch(CommandBase.oi.getAutonSetting()){ case 1: addSequential(new AutonSetting1()); break; case 2: addSequential(new AutonSetting2()); break; ...
public Autonomous() { addSequential(new DrivetrainSetGear(true)); switch(CommandBase.oi.getAutonSetting()){ case 0: addSequential(new AutonSetting1()); break; case 1: addSequential(new AutonSetting2()); break; ...
diff --git a/modules/org.pathvisio.gui/src/org/pathvisio/gui/dialogs/AboutDlg.java b/modules/org.pathvisio.gui/src/org/pathvisio/gui/dialogs/AboutDlg.java index 9417199e..5080c5b4 100644 --- a/modules/org.pathvisio.gui/src/org/pathvisio/gui/dialogs/AboutDlg.java +++ b/modules/org.pathvisio.gui/src/org/pathvisio/gui/dia...
true
true
public void createAndShowGUI() { final JFrame aboutDlg = new JFrame(); FormLayout layout = new FormLayout( "4dlu, pref, 4dlu, fill:160dlu:grow, 4dlu", "4dlu, 220dlu:grow, 4dlu, pref, 4dlu, pref, 4dlu"); JLabel versionLabel = new JLabel (swingEngine.getEngine().getApplicationName()); JLabel revisionL...
public void createAndShowGUI() { final JFrame aboutDlg = new JFrame(); FormLayout layout = new FormLayout( "4dlu, pref, 4dlu, fill:160dlu:grow, 4dlu", "4dlu, 220dlu:grow, 4dlu, pref, 4dlu, pref, 4dlu"); JLabel versionLabel = new JLabel (swingEngine.getEngine().getApplicationName()); JLabel revisionL...
diff --git a/engine/extensions-mondrian/test/org/pentaho/reporting/engine/classic/extensions/datasources/mondrian/MondrianDataFactoryWriteTest.java b/engine/extensions-mondrian/test/org/pentaho/reporting/engine/classic/extensions/datasources/mondrian/MondrianDataFactoryWriteTest.java index 4b5a3745d..bd30c961a 100644 -...
true
true
public void testWriteBandedNullCubeName() throws Exception { final BandedMDXDataFactory df = new BandedMDXDataFactory(); df.setCubeFileProvider(new DefaultCubeFileProvider("path/to/cube.xml", null)); df.setDataSourceProvider(new JndiDataSourceProvider("dummy")); df.setGlobalScript("GlobalScript"); ...
public void testWriteBandedNullCubeName() throws Exception { final BandedMDXDataFactory df = new BandedMDXDataFactory(); df.setCubeFileProvider(new DefaultCubeFileProvider("path/to/cube.xml", null)); df.setDataSourceProvider(new JndiDataSourceProvider("dummy")); df.setGlobalScript("GlobalScript"); ...
diff --git a/src/java/main/ca/nengo/ui/actions/PlotTimeSeries.java b/src/java/main/ca/nengo/ui/actions/PlotTimeSeries.java index 87796dfd..0f6bc2b4 100644 --- a/src/java/main/ca/nengo/ui/actions/PlotTimeSeries.java +++ b/src/java/main/ca/nengo/ui/actions/PlotTimeSeries.java @@ -1,119 +1,120 @@ /* The contents of this...
true
true
protected void action() throws ActionException { try { PFloat pTauFilter = new PFloat("Time constant of display filter [0 = off]", tauFilter); PInt pSubSampling = new PInt("Subsampling [0 = off]", subSampling); if (showUserConfigDialog) { ConfigResult result; try { result = UserConfigurer.conf...
protected void action() throws ActionException { try { PFloat pTauFilter = new PFloat("Time constant of display filter [0 = off]", tauFilter); PInt pSubSampling = new PInt("Subsampling [0 = off]", subSampling); if (showUserConfigDialog) { ConfigResult result; try { result = UserConfigurer.conf...
diff --git a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java index 10b65cfc..613348a7 100644 --- a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java @@ -1,3349 +1,3352 @@ /* * Copyright 2...
true
true
private QueryTripsResult queryTrips(final String uri, final InputStream is) throws XmlPullParserException, IOException { // System.out.println(uri); final XmlPullParser pp = parserFactory.newPullParser(); pp.setInput(is, null); final ResultHeader header = enterItdRequest(pp); final Object context = header....
private QueryTripsResult queryTrips(final String uri, final InputStream is) throws XmlPullParserException, IOException { // System.out.println(uri); final XmlPullParser pp = parserFactory.newPullParser(); pp.setInput(is, null); final ResultHeader header = enterItdRequest(pp); final Object context = header....
diff --git a/component/src/main/java/com/celements/photo/service/ImageService.java b/component/src/main/java/com/celements/photo/service/ImageService.java index 32e4eef..4c4299b 100644 --- a/component/src/main/java/com/celements/photo/service/ImageService.java +++ b/component/src/main/java/com/celements/photo/service/I...
true
true
public boolean addSlideFromTemplate(DocumentReference galleryDocRef, String slideBaseName, String attFullName) { try { DocumentReference slideTemplateRef = getImageSlideTemplateRef(); String gallerySpaceName = getPhotoAlbumSpaceRef(galleryDocRef).getName(); String filename = attFullName.re...
public boolean addSlideFromTemplate(DocumentReference galleryDocRef, String slideBaseName, String attFullName) { try { DocumentReference slideTemplateRef = getImageSlideTemplateRef(); String gallerySpaceName = getPhotoAlbumSpaceRef(galleryDocRef).getName(); String filename = attFullName.re...
diff --git a/src/main/java/org/basex/query/util/format/FormatterDE.java b/src/main/java/org/basex/query/util/format/FormatterDE.java index fa121ecf8..ed0194095 100644 --- a/src/main/java/org/basex/query/util/format/FormatterDE.java +++ b/src/main/java/org/basex/query/util/format/FormatterDE.java @@ -1,187 +1,189 @@ pa...
false
true
private static void word(final TokenBuilder tb, final long n, final byte[] ord) { if(n == 0) { if(ord != null) tb.add("st").add(ord.length == 0 ? E : ord); } else if(n < 20) { if(ord == null) tb.add(WORDS[(int) n]); else tb.add(ORDINALS[(int) n]).add(ord.length == 0 ? E : ord); } else if...
private static void word(final TokenBuilder tb, final long n, final byte[] ord) { if(n == 0) { if(ord != null) tb.add("st").add(ord.length == 0 ? E : ord); } else if(n < 20) { if(ord == null) tb.add(WORDS[(int) n]); else tb.add(ORDINALS[(int) n]).add(ord.length == 0 ? E : ord); } else if...
diff --git a/frontend/grisu-client-slim/src/main/java/org/vpac/grisu/client/control/example/JobSubmissionNew.java b/frontend/grisu-client-slim/src/main/java/org/vpac/grisu/client/control/example/JobSubmissionNew.java index 644d8fbc..f8e09ee0 100644 --- a/frontend/grisu-client-slim/src/main/java/org/vpac/grisu/client/co...
false
true
public static void main(String[] args) throws Exception { String username = args[0]; char[] password = args[1].toCharArray(); LoginParams loginParams = new LoginParams( // "http://localhost:8080/grisu-ws/services/grisu", // "https://ngportaldev.vpac.org/grisu-ws/services/grisu", "Local", username,...
public static void main(String[] args) throws Exception { String username = args[0]; char[] password = args[1].toCharArray(); LoginParams loginParams = new LoginParams( // "http://localhost:8080/grisu-ws/services/grisu", // "https://ngportaldev.vpac.org/grisu-ws/services/grisu", "Local", username,...
diff --git a/src/main/java/hudson/remoting/ProxyOutputStream.java b/src/main/java/hudson/remoting/ProxyOutputStream.java index 9a29588a..66d2143a 100644 --- a/src/main/java/hudson/remoting/ProxyOutputStream.java +++ b/src/main/java/hudson/remoting/ProxyOutputStream.java @@ -1,160 +1,160 @@ package hudson.remoting; ...
true
true
synchronized void connect(Channel channel, int oid) throws IOException { if(this.channel!=null) throw new IllegalStateException("Cannot connect twice"); this.channel = channel; this.oid = oid; // if we already have bytes to write, do so now. if(tmp!=null) { ...
synchronized void connect(Channel channel, int oid) throws IOException { if(this.channel!=null) throw new IllegalStateException("Cannot connect twice"); this.channel = channel; this.oid = oid; // if we already have bytes to write, do so now. if(tmp!=null) { ...
diff --git a/runtime/ceylon/language/copyArray_.java b/runtime/ceylon/language/copyArray_.java index 8cb1f25f..107b4510 100644 --- a/runtime/ceylon/language/copyArray_.java +++ b/runtime/ceylon/language/copyArray_.java @@ -1,38 +1,38 @@ package ceylon.language; import com.redhat.ceylon.compiler.java.metadata.Ceylon...
true
true
public static <Element> void copyArray( @TypeInfo("ceylon.language::Array<Element>") @Name("source") final Array<Element> source, @TypeInfo("ceylon.language::Array<Element>") @Name("target") final Array<Element> target, @Name("from") @TypeInfo("ceylon.language::Integer") final lo...
public static <Element> void copyArray( @TypeInfo("ceylon.language::Array<Element>") @Name("source") final Array<Element> source, @TypeInfo("ceylon.language::Array<Element>") @Name("target") final Array<Element> target, @Name("from") @TypeInfo("ceylon.language::Integer") final lo...
diff --git a/forms/src/org/riotfamily/forms/AbstractElement.java b/forms/src/org/riotfamily/forms/AbstractElement.java index dc457295e..8ee78a86b 100644 --- a/forms/src/org/riotfamily/forms/AbstractElement.java +++ b/forms/src/org/riotfamily/forms/AbstractElement.java @@ -1,251 +1,254 @@ /* ***** BEGIN LICENSE BLOCK *...
false
true
public final void render(PrintWriter writer) { if (wrap) { TagWriter div = new TagWriter(writer); div.start(inline ? Html.SPAN: Html.DIV); div.attribute(Html.COMMON_ID, getId()); div.body(); if (isVisible()) { renderInternal(writer); } div.closeAll(); } else { renderInternal(writer...
public final void render(PrintWriter writer) { if (wrap) { TagWriter wrapper = new TagWriter(writer); wrapper.start(inline ? Html.SPAN: Html.DIV); wrapper.attribute(Html.COMMON_ID, getId()); if (getStyleClass() != null) { wrapper.attribute(Html.COMMON_CLASS, getStyleClass() + "-wrapper"); } wra...
diff --git a/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java b/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java index 5ea09cf..3dbdedb 100644 --- a/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java +++ b/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java @@ -1,51 +1...
true
true
public static boolean refreshEffects() { // To optimize performance, we only check effects when it changes. Player[] players = Bukkit.getServer().getOnlinePlayers(); Map<String, Float> data = new HashMap<String, Float>(); Logger log = Logger.getLogger("RealSleepEffect"); try { data = (Map) SLAPI.loa...
public static boolean refreshEffects() { // To optimize performance, we only check effects when it changes. Player[] players = Bukkit.getServer().getOnlinePlayers(); Map<String, Float> data = new HashMap<String, Float>(); Logger log = Logger.getLogger("RealSleepEffect"); try { data = (Map) SLAPI.loa...
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/ui/UpcomingFragment.java b/SeriesGuide/src/com/battlelancer/seriesguide/ui/UpcomingFragment.java index 3c07be168..bf213dfe3 100644 --- a/SeriesGuide/src/com/battlelancer/seriesguide/ui/UpcomingFragment.java +++ b/SeriesGuide/src/com/battlelancer/seriesguide/ui/U...
false
true
public View getView(int position, View convertView, ViewGroup parent) { if (!mDataValid) { throw new IllegalStateException( "this should only be called when the cursor is valid"); } if (!mCursor.moveToPosition(position)) { ...
public View getView(int position, View convertView, ViewGroup parent) { if (!mDataValid) { throw new IllegalStateException( "this should only be called when the cursor is valid"); } if (!mCursor.moveToPosition(position)) { ...
diff --git a/apidb/src/main/java/org/openstreetmap/osmosis/apidb/v0_6/impl/TimeDao.java b/apidb/src/main/java/org/openstreetmap/osmosis/apidb/v0_6/impl/TimeDao.java index f7bc4acc..14f745ad 100644 --- a/apidb/src/main/java/org/openstreetmap/osmosis/apidb/v0_6/impl/TimeDao.java +++ b/apidb/src/main/java/org/openstreetma...
true
true
public Date getSystemTime() { // The timeofday function is the only one that returns wall clock time. // Others return the time of the start of the transaction. return jdbcTemplate.queryForObject("SELECT CAST(timeofday() as timestamp) AS SystemTime", Date.class); }
public Date getSystemTime() { // The timeofday function is the only one that returns wall clock time. // Others return the time of the start of the transaction. return jdbcTemplate.queryForObject("SELECT clock_timestamp()", Date.class); }
diff --git a/Blessings/src/me/Nekoyoubi/Blessings/Gods/Athena.java b/Blessings/src/me/Nekoyoubi/Blessings/Gods/Athena.java index 123e9af..7e9d80e 100644 --- a/Blessings/src/me/Nekoyoubi/Blessings/Gods/Athena.java +++ b/Blessings/src/me/Nekoyoubi/Blessings/Gods/Athena.java @@ -1,48 +1,48 @@ package me.Nekoyoubi.Blessin...
true
true
public Athena() { colorCode = "&e"; displayName = "Athena"; msgGiven = colorName()+" smiles fortune upon you."; msgDisappoint = colorName()+" tests your loyalty and faith."; msgNull = colorName()+"is simply too busy for you now."; shrineBases = new ArrayList<Material>(2); shrineBases.add(Material.BRICK);...
public Athena() { colorCode = "&e"; displayName = "Athena"; msgGiven = colorName()+" smiles fortune upon you."; msgDisappoint = colorName()+" tests your loyalty and faith."; msgNull = colorName()+" is simply too busy for you now."; shrineBases = new ArrayList<Material>(2); shrineBases.add(Material.BRICK)...
diff --git a/teeda/teeda-extension/src/main/java/org/seasar/teeda/extension/render/html/THtmlOutputLinkRenderer.java b/teeda/teeda-extension/src/main/java/org/seasar/teeda/extension/render/html/THtmlOutputLinkRenderer.java index dba84ec1d..e23a8ff79 100644 --- a/teeda/teeda-extension/src/main/java/org/seasar/teeda/exte...
true
true
protected String buildHref(FacesContext context, HtmlOutputLink htmlOutputLink, String encoding) throws IOException { final String base = ValueHolderUtil.getValueForRender(context, htmlOutputLink); // PortletSupport if (PortletUtil.isPortlet(context)) { ...
protected String buildHref(FacesContext context, HtmlOutputLink htmlOutputLink, String encoding) throws IOException { final String base = ValueHolderUtil.getValueForRender(context, htmlOutputLink); // PortletSupport if (PortletUtil.isPortlet(context)) { ...
diff --git a/de.gebit.integrity.runner/src/de/gebit/integrity/runner/comparator/DefaultResultComparator.java b/de.gebit.integrity.runner/src/de/gebit/integrity/runner/comparator/DefaultResultComparator.java index 6c99f497..9961996d 100644 --- a/de.gebit.integrity.runner/src/de/gebit/integrity/runner/comparator/DefaultR...
true
true
public boolean compareResult(Object aFixtureResult, ValueOrEnumValueOrOperationCollection anExpectedResult, FixtureWrapper<?> aFixtureInstance, MethodReference aFixtureMethod, String aPropertyName) throws ClassNotFoundException, UnexecutableException, InstantiationException { if (anExpectedResult != null) { ...
public boolean compareResult(Object aFixtureResult, ValueOrEnumValueOrOperationCollection anExpectedResult, FixtureWrapper<?> aFixtureInstance, MethodReference aFixtureMethod, String aPropertyName) throws ClassNotFoundException, UnexecutableException, InstantiationException { if (anExpectedResult != null) { ...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java index 552414118..87d5a015d 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/rep...
true
true
public void updateRow( RowArea row, int specifiedHeight ) { ArrayList dropCells = this.dropList; CellWrapper[] cells = currentRowContent; // first calculate row height Iterator iter = row.getChildren( ); int height = specifiedHeight; boolean[] hasCell = new boolean[columnNumber]; while ( iter.hasNext( )...
public void updateRow( RowArea row, int specifiedHeight ) { ArrayList dropCells = this.dropList; CellWrapper[] cells = currentRowContent; // first calculate row height Iterator iter = row.getChildren( ); int height = specifiedHeight; boolean[] hasCell = new boolean[columnNumber]; while ( iter.hasNext( )...
diff --git a/elastic-runtime2/src/main/java/com/vmware/vhadoop/vhm/strategy/ManualScaleStrategy.java b/elastic-runtime2/src/main/java/com/vmware/vhadoop/vhm/strategy/ManualScaleStrategy.java index 348668c..ccd2722 100644 --- a/elastic-runtime2/src/main/java/com/vmware/vhadoop/vhm/strategy/ManualScaleStrategy.java +++ b...
false
true
public ClusterScaleCompletionEvent localCall() throws Exception { CompoundStatus tlStatus = getCompoundStatus(); ClusterScaleDecision returnEvent = null; if (_events.size() != 1) { throw new RuntimeException("Manual scale strategy should only have one SerengetiLimitInstructi...
public ClusterScaleCompletionEvent localCall() throws Exception { CompoundStatus tlStatus = getCompoundStatus(); ClusterScaleDecision returnEvent = null; if (_events.size() != 1) { throw new RuntimeException("Manual scale strategy should only have one SerengetiLimitInstructi...
diff --git a/src/test/java/org/bnl/gov/unitconversion/DataTypeTest.java b/src/test/java/org/bnl/gov/unitconversion/DataTypeTest.java index eba2cb9..2c3e7a6 100644 --- a/src/test/java/org/bnl/gov/unitconversion/DataTypeTest.java +++ b/src/test/java/org/bnl/gov/unitconversion/DataTypeTest.java @@ -1,520 +1,521 @@ /** ...
true
true
public void testConversionData() { // preliminary test // ConversionDataBuilder.conversionDataOfType(type) /** * Example: Standard { "BS-Q1BD1": { "name": "BS-Q1BD1", "system": * "BST", * * "cmpnt_type": "BST Quadrupole 5200", * * "municonv": * * {"standard": { * * "direction": ["Up", "Up...
public void testConversionData() { // preliminary test // ConversionDataBuilder.conversionDataOfType(type) /** * Example: Standard { "BS-Q1BD1": { "name": "BS-Q1BD1", "system": * "BST", * * "cmpnt_type": "BST Quadrupole 5200", * * "municonv": * * {"standard": { * * "direction": ["Up", "Up...
diff --git a/beginning/src/Main.java b/beginning/src/Main.java index e1b5660..8c2cd34 100644 --- a/beginning/src/Main.java +++ b/beginning/src/Main.java @@ -1,228 +1,229 @@ import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.zip.GZIPInputStream; import java.util...
false
true
public static void main(final String[] args) { ErrorLogger logger = new ErrorLogger(); Scanner inputScanner = null; try { InputStream fileStream = new FileInputStream(args[0]); InputStream gzipStream = new GZIPInputStream(fileStream); inputScanner = new Scanner(gzipStream); } catch (IOException i...
public static void main(final String[] args) { ErrorLogger logger = new ErrorLogger(); Scanner inputScanner = null; try { InputStream fileStream = new FileInputStream(args[0]); InputStream gzipStream = new GZIPInputStream(fileStream); inputScanner = new Scanner(gzipStream); } catch (IOException i...
diff --git a/Frontend/src/main/com/sk/frontend/web/controller/BonusPaymentController.java b/Frontend/src/main/com/sk/frontend/web/controller/BonusPaymentController.java index c448495..fe14b81 100644 --- a/Frontend/src/main/com/sk/frontend/web/controller/BonusPaymentController.java +++ b/Frontend/src/main/com/sk/fronten...
true
true
public ModelAndView query(@RequestParam("creditCardNumber") String creditCardNumber,HttpServletRequest request) { ModelAndView mav = new ModelAndView("bonusQuery"); VPOSResponse vposResponse = garantiVPOSService.queryBonus(creditCardNumber); mav.addObject("abonus",vposResponse.getDetailMessage()); return m...
public ModelAndView query(@RequestParam("creditCardNumber") String creditCardNumber,HttpServletRequest request) { ModelAndView mav = new ModelAndView("bonusQuery"); VPOSResponse vposResponse = garantiVPOSService.queryBonus(creditCardNumber); mav.addObject("bonus",vposResponse.getDetailMessage()); return ma...
diff --git a/MuseumServer/src/java/servlets/AddExhibit.java b/MuseumServer/src/java/servlets/AddExhibit.java index e2f0ef4..ffb3ba6 100644 --- a/MuseumServer/src/java/servlets/AddExhibit.java +++ b/MuseumServer/src/java/servlets/AddExhibit.java @@ -1,137 +1,137 @@ /* * To change this template, choose Tools | Templat...
true
true
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String exhibitName = request.getParameter("name"); String exhibitDescription = request.getParameter("description"); String audioLevel1ID = request.getPar...
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String exhibitName = request.getParameter("name"); String exhibitDescription = request.getParameter("description"); String audioLevel1ID = request.getPar...
diff --git a/src/directi/androidteam/training/db/DBManager.java b/src/directi/androidteam/training/db/DBManager.java index eccdba8..832ba26 100644 --- a/src/directi/androidteam/training/db/DBManager.java +++ b/src/directi/androidteam/training/db/DBManager.java @@ -1,61 +1,61 @@ package directi.androidteam.training.db;...
false
true
public void onCreate(SQLiteDatabase sqLiteDatabase) { String CREATE_TABLE = "CREATE TABLE " + TABLE_1_NAME + "(" + KEY_1_JID_SENDER + " TEXT," + KEY_1_JID_RECEIVER + " TEXT," + KEY_1_MESSAGE + " TEXT," + KEY_1_ID + " TEXT" + KEY_1_TIME + "INTEGER" + ")"; sqLiteDatabase.execSQL(CREATE_TABLE); ...
public void onCreate(SQLiteDatabase sqLiteDatabase) { String CREATE_TABLE = "CREATE TABLE " + TABLE_1_NAME + "(" + KEY_1_JID_SENDER + " TEXT, " + KEY_1_JID_RECEIVER + " TEXT, " + KEY_1_MESSAGE + " TEXT, " + KEY_1_ID + " TEXT, " + KEY_1_TIME + " INTEGER" + ")"; sqLiteDatabase.execSQL(CREATE_TABLE); ...
diff --git a/org.eclipse.emf.emfstore.client/src/org/eclipse/emf/emfstore/client/model/controller/UpdateController.java b/org.eclipse.emf.emfstore.client/src/org/eclipse/emf/emfstore/client/model/controller/UpdateController.java index 1c0c6e0ea..e944f11f4 100644 --- a/org.eclipse.emf.emfstore.client/src/org/eclipse/emf...
true
true
private PrimaryVersionSpec doUpdate(VersionSpec version) throws EmfStoreException { getProgressMonitor().beginTask("Updating Project", 100); getProgressMonitor().worked(1); getProgressMonitor().subTask("Resolving new version"); final PrimaryVersionSpec resolvedVersion = getProjectSpace().resolveVersionSpec(ver...
private PrimaryVersionSpec doUpdate(VersionSpec version) throws EmfStoreException { getProgressMonitor().beginTask("Updating Project", 100); getProgressMonitor().worked(1); getProgressMonitor().subTask("Resolving new version"); final PrimaryVersionSpec resolvedVersion = getProjectSpace().resolveVersionSpec(ver...
diff --git a/src/org/mozilla/javascript/TokenStream.java b/src/org/mozilla/javascript/TokenStream.java index 852c4a4d..7ae7099b 100644 --- a/src/org/mozilla/javascript/TokenStream.java +++ b/src/org/mozilla/javascript/TokenStream.java @@ -1,1365 +1,1362 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
false
true
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
diff --git a/contrib/MiscMsg.java b/contrib/MiscMsg.java index ff364ca..87cc45b 100644 --- a/contrib/MiscMsg.java +++ b/contrib/MiscMsg.java @@ -1,561 +1,561 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net....
true
true
public String commandTarot(final String mes) { // http://en.wikipedia.org/wiki/Major_Arcana return randomReply(new String[] { "The Fool", "The Magician", "The High Priestess", "The Empress", "The Emperor", "The Hierophant", "The Pope", "The Lovers", "The Chariot", "Strength", "The Hermit", "Wheel of Fortu...
public String commandTarot(final String mes) { // http://en.wikipedia.org/wiki/Major_Arcana return randomReply(new String[] { "The Fool", "The Magician", "The High Priestess", "The Empress", "The Emperor", "The Hierophant", "The Pope", "The Lovers", "The Chariot", "Strength", "The Hermit", "Wheel of Fortu...
diff --git a/src/com/jme/renderer/lwjgl/LWJGLRenderer.java b/src/com/jme/renderer/lwjgl/LWJGLRenderer.java index a0a3fde98..8200d3555 100644 --- a/src/com/jme/renderer/lwjgl/LWJGLRenderer.java +++ b/src/com/jme/renderer/lwjgl/LWJGLRenderer.java @@ -1,1857 +1,1857 @@ /* * Copyright (c) 2003-2009 jMonkeyEngine * All...
false
true
protected boolean predrawGeometry(Geometry g) { RenderContext<?> context = DisplaySystem.getDisplaySystem() .getCurrentContext(); RendererRecord rendRecord = (RendererRecord) context .getRendererRecord(); VBOInfo vbo = !generatingDisplayList ? g.getVBOInfo() ...
protected boolean predrawGeometry(Geometry g) { RenderContext<?> context = DisplaySystem.getDisplaySystem() .getCurrentContext(); RendererRecord rendRecord = (RendererRecord) context .getRendererRecord(); VBOInfo vbo = !generatingDisplayList ? g.getVBOInfo() ...
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java index d8d986fb..2bf8160e 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java @...
true
true
private void copyAsIs2(PackOutputStream out, LocalObjectToPack src, boolean validate, WindowCursor curs) throws IOException, StoredObjectRepresentationNotAvailableException { final CRC32 crc1 = validate ? new CRC32() : null; final CRC32 crc2 = validate ? new CRC32() : null; final byte[] buf = out.getCopyBu...
private void copyAsIs2(PackOutputStream out, LocalObjectToPack src, boolean validate, WindowCursor curs) throws IOException, StoredObjectRepresentationNotAvailableException { final CRC32 crc1 = validate ? new CRC32() : null; final CRC32 crc2 = validate ? new CRC32() : null; final byte[] buf = out.getCopyBu...
diff --git a/exchange2/src/com/android/exchange/EasAccountService.java b/exchange2/src/com/android/exchange/EasAccountService.java index 58ddaf37..533a5df5 100644 --- a/exchange2/src/com/android/exchange/EasAccountService.java +++ b/exchange2/src/com/android/exchange/EasAccountService.java @@ -1,882 +1,882 @@ /* * C...
false
true
private void runPingLoop() throws IOException, StaleFolderListException, IllegalHeartbeatException, CommandStatusException { int pingHeartbeat = mPingHeartbeat; userLog("runPingLoop"); // Do push for all sync services here long endTime = System.currentTimeMillis() + (30*M...
private void runPingLoop() throws IOException, StaleFolderListException, IllegalHeartbeatException, CommandStatusException { int pingHeartbeat = mPingHeartbeat; userLog("runPingLoop"); // Do push for all sync services here long endTime = System.currentTimeMillis() + (30*M...
diff --git a/src/edu/sc/seis/sod/database/HSqlDbManager.java b/src/edu/sc/seis/sod/database/HSqlDbManager.java index 83a0389f9..3b3b81fbe 100644 --- a/src/edu/sc/seis/sod/database/HSqlDbManager.java +++ b/src/edu/sc/seis/sod/database/HSqlDbManager.java @@ -1,96 +1,97 @@ package edu.sc.seis.sod.database; import java...
true
true
public Connection getConnection() { try { if(connection == null) { String driverName = new String("org.hsqldb.jdbcDriver"); Class.forName(driverName).newInstance(); connection = DriverManager.getConnection("jdbc:hsqldb:.", "sa", ""); } return connection; } catch(Exception sqle) { // ...
public Connection getConnection() { try { if(connection == null) { String driverName = new String("org.hsqldb.jdbcDriver"); Class.forName(driverName).newInstance(); System.out.println("The database name is "+getDatabaseName()); connection = DriverManager.getConnection("jdbc:hsqldb:"+getDatabaseN...
diff --git a/src/java/org/jivesoftware/sparkimpl/settings/local/SettingsManager.java b/src/java/org/jivesoftware/sparkimpl/settings/local/SettingsManager.java index d59d7492..ff4f86a5 100644 --- a/src/java/org/jivesoftware/sparkimpl/settings/local/SettingsManager.java +++ b/src/java/org/jivesoftware/sparkimpl/settings/...
false
true
public static void saveSettings() { final Properties props = localPreferences.getProperties(); try { props.store(new FileOutputStream(getSettingsFile()), "Spark Settings"); } catch (Exception e) { Log.error("Error saving settings.", e); } ...
public static void saveSettings() { final Properties props = localPreferences.getProperties(); try { props.store(new FileOutputStream(getSettingsFile()), "Spark Settings"); } catch (Exception e) { Log.error("Error saving settings.", e); } ...
diff --git a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java index 008da21d..e22d00c1 100644 --- a/bindings/java/src/net/hyperic/sigar/OperatingSystem.java +++ b/bindings/java/src/net/hyperic/sigar/OperatingSystem.java @@ -1,334 +1,334 @@ package net....
false
true
public static synchronized OperatingSystem getInstance() { if (instance == null) { OperatingSystem os = new OperatingSystem(); Properties props = System.getProperties(); os.name = props.getProperty("os.name"); os.vendorName = os.name; os.version = ...
public static synchronized OperatingSystem getInstance() { if (instance == null) { OperatingSystem os = new OperatingSystem(); Properties props = System.getProperties(); os.name = props.getProperty("os.name"); os.vendorName = os.name; os.version = ...
diff --git a/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java b/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java index e858273cf..3321cc325 100644 --- a/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java +++ b/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java @@ -1,81 +1...
true
true
Object parse(StaplerRequest request, QueryParameter a, Class type, String parameterName) throws ServletException { String name = a.value(); if(name.length()==0) name=parameterName; if(name==null) throw new IllegalArgumentException("Param...
Object parse(StaplerRequest request, QueryParameter a, Class type, String parameterName) throws ServletException { String name = a.value(); if(name.length()==0) name=parameterName; if(name==null) throw new IllegalArgumentException("Param...
diff --git a/src/edu/calpoly/csc/pulseman/World.java b/src/edu/calpoly/csc/pulseman/World.java index 410f9f2..a8585d6 100644 --- a/src/edu/calpoly/csc/pulseman/World.java +++ b/src/edu/calpoly/csc/pulseman/World.java @@ -1,318 +1,318 @@ package edu.calpoly.csc.pulseman; import java.util.ArrayList; import java.util...
true
true
private void PixelToObject(Color color, int xPos, int yPos, Image map) throws SlickException { BlockType type = ColorMap.get(color.getRed()); Orientation orient; if(type == null) { throw new RuntimeException("Color not found in color map, red: " + color.getRed()); } switch(type) { case kNothing: ...
private void PixelToObject(Color color, int xPos, int yPos, Image map) throws SlickException { BlockType type = ColorMap.get(color.getRed()); Orientation orient; if(type == null) { throw new RuntimeException("Color not found in color map, red: " + color.getRed()); } switch(type) { case kNothing: ...
diff --git a/src/de/danoeh/antennapod/service/download/HttpDownloader.java b/src/de/danoeh/antennapod/service/download/HttpDownloader.java index 200e25ac..a4fdefbe 100644 --- a/src/de/danoeh/antennapod/service/download/HttpDownloader.java +++ b/src/de/danoeh/antennapod/service/download/HttpDownloader.java @@ -1,149 +1,...
true
true
protected void download() { HttpURLConnection connection = null; OutputStream out = null; try { URL url = new URL(status.getFeedFile().getDownload_url()); connection = (HttpURLConnection) url.openConnection(); connection.setConnectTimeout(CONNECTION_TIMEOUT); int responseCode = connection.getResponse...
protected void download() { HttpURLConnection connection = null; OutputStream out = null; try { URL url = new URL(status.getFeedFile().getDownload_url()); connection = (HttpURLConnection) url.openConnection(); connection.setConnectTimeout(CONNECTION_TIMEOUT); connection.setInstanceFollowRedirects(tru...
diff --git a/src/org/mozilla/javascript/optimizer/Optimizer.java b/src/org/mozilla/javascript/optimizer/Optimizer.java index d08eb40f..f4392e74 100644 --- a/src/org/mozilla/javascript/optimizer/Optimizer.java +++ b/src/org/mozilla/javascript/optimizer/Optimizer.java @@ -1,1047 +1,1048 @@ /* * The contents of this fi...
true
true
int rewriteForNumberVariables(Node n) { switch (n.getType()) { case TokenStream.POP : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) n.putIntP...
int rewriteForNumberVariables(Node n) { switch (n.getType()) { case TokenStream.POP : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) n.putIntP...
diff --git a/sdk-common/src/main/java/com/android/ide/common/resources/configuration/DeviceConfigHelper.java b/sdk-common/src/main/java/com/android/ide/common/resources/configuration/DeviceConfigHelper.java index 27eaa01..98cb979 100644 --- a/sdk-common/src/main/java/com/android/ide/common/resources/configuration/Devic...
true
true
public static FolderConfiguration getFolderConfig(@Nullable State state) { if (state == null) { return null; } Hardware hw = state.getHardware(); FolderConfiguration config = new FolderConfiguration(); config.createDefault(); Screen screen = hw.getScreen...
public static FolderConfiguration getFolderConfig(@Nullable State state) { if (state == null) { return null; } Hardware hw = state.getHardware(); FolderConfiguration config = new FolderConfiguration(); config.createDefault(); Screen screen = hw.getScreen...
diff --git a/src/com/sonyericsson/chkbugreport/plugins/battery/ScreenOnPlugin.java b/src/com/sonyericsson/chkbugreport/plugins/battery/ScreenOnPlugin.java index c342d72..d94e908 100644 --- a/src/com/sonyericsson/chkbugreport/plugins/battery/ScreenOnPlugin.java +++ b/src/com/sonyericsson/chkbugreport/plugins/battery/Scr...
true
true
public boolean init(Module mod, ChartGenerator chart) { mEventLog = (LogLines) mod.getInfo(EventLogPlugin.INFO_ID_LOG); if (mEventLog == null || mEventLog.size() == 0) { return false; } // Collect data DataSet ds = new DataSet(DataSet.Type.STATE, "screen"); ...
public boolean init(Module mod, ChartGenerator chart) { mEventLog = (LogLines) mod.getInfo(EventLogPlugin.INFO_ID_LOG); if (mEventLog == null || mEventLog.size() == 0) { return false; } // Collect data DataSet ds = new DataSet(DataSet.Type.STATE, "screen"); ...
diff --git a/core/src/main/java/org/modelinglab/ocl/core/ast/expressions/IteratorExp.java b/core/src/main/java/org/modelinglab/ocl/core/ast/expressions/IteratorExp.java index 53755f1..714f2c1 100644 --- a/core/src/main/java/org/modelinglab/ocl/core/ast/expressions/IteratorExp.java +++ b/core/src/main/java/org/modelingl...
true
true
public String toText() { checkIsValid(); StringBuilder sb = new StringBuilder(); assert getSource() != null; sb.append(source.toString()); sb.append("->"); sb.append(getName()).append('('); if (!getIterators().isEmpty()) { ...
public String toText() { checkIsValid(); StringBuilder sb = new StringBuilder(); assert getSource() != null; sb.append(source.toString()); sb.append("->"); sb.append(getName()).append('('); if (!getIterators().isEmpty()) { ...
diff --git a/source/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java b/source/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java index f7fba71..3616fa4 100644 --- a/source/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java +++ b/source/org/jfree/chart/renderer/category/BoxAndWhiskerRende...
false
true
public void drawVerticalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column) { BoxAndWhiskerCategoryDataset bawDataset = (BoxAndWhiskerCategor...
public void drawVerticalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column) { BoxAndWhiskerCategoryDataset bawDataset = (BoxAndWhiskerCategor...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ANTLRGrammarGenerator.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ANTLRGrammarGenerator.java index ccf77fe3d..3deedf780 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ANTLRGrammarGenerator.java +++ b/org.emftext.s...
true
true
public boolean generate(PrintWriter pw){ initOptions(); initCaches(); String csName = getResourceClassName(); String lexerName = getLexerName(csName); String parserName = getParserName(csName); boolean backtracking = OptionManager.INSTANCE.getBooleanOptionValue(conrceteSyntax, Op...
public boolean generate(PrintWriter pw){ initOptions(); initCaches(); String csName = getResourceClassName(); String lexerName = getLexerName(csName); String parserName = getParserName(csName); boolean backtracking = OptionManager.INSTANCE.getBooleanOptionValue(conrceteSyntax, Op...
diff --git a/araqne-logstorage/src/main/java/org/araqne/logstorage/TableSchema.java b/araqne-logstorage/src/main/java/org/araqne/logstorage/TableSchema.java index 651351e8..7055f3b4 100644 --- a/araqne-logstorage/src/main/java/org/araqne/logstorage/TableSchema.java +++ b/araqne-logstorage/src/main/java/org/araqne/logst...
true
true
public TableSchema clone() { TableSchema c = new TableSchema(); c.setName(name); c.setId(id); c.setPrimaryStorage(primaryStorage.clone()); if (replicaStorage != null) c.setReplicaStorage(replicaStorage.clone()); List<StorageConfig> l = new ArrayList<StorageConfig>(); for (StorageConfig s : secondary...
public TableSchema clone() { TableSchema c = new TableSchema(); c.setName(name); c.setId(id); c.setPrimaryStorage(primaryStorage.clone()); if (replicaStorage != null) c.setReplicaStorage(replicaStorage.clone()); List<StorageConfig> l = new ArrayList<StorageConfig>(); for (StorageConfig s : secondary...
diff --git a/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java b/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java index 72c6008b..2728c206 100644 --- a/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java +++ b/src/main/java/org/got5/tapestry5/...
true
true
public JSONObject getResponse(GridDataSource source){ response.put("sEcho", request.getParameter(DataTableConstants.ECHO)); int records = source.getAvailableRows(); response.put("iTotalDisplayRecords", records); response.put("iTotalRecords", records); String displayStart = reques...
public JSONObject getResponse(GridDataSource source){ response.put("sEcho", request.getParameter(DataTableConstants.ECHO)); int records = source.getAvailableRows(); response.put("iTotalDisplayRecords", records); response.put("iTotalRecords", records); String displayStart = reques...
diff --git a/src/java/TestFilter.java b/src/java/TestFilter.java index 9afe3f9..a1dc617 100644 --- a/src/java/TestFilter.java +++ b/src/java/TestFilter.java @@ -1,136 +1,136 @@ import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.sq...
true
true
public static void main(String[] args) throws Exception { FilterApplier command = new FilterWriteApplier("2013-04-10_13:54", "", "FilterTest.txt" ); System.out.println( command.execute() ); fileCompare("FilterTest.txt", "FilterPass.txt"); Connection conn = null; Statement stmt = null; try { Cla...
public static void main(String[] args) throws Exception { FilterApplier command = new FilterWriteApplier("2013-04-10_13:54", "", "FilterTest.txt" ); System.out.println( command.execute() ); fileCompare("FilterTest.txt", "FilterPass.txt"); Connection conn = null; Statement stmt = null; try { Cla...
diff --git a/editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/dialogs/AboutDartDialog.java b/editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/dialogs/AboutDartDialog.java index c0cf3ec2..1eb067bc 100644 --- a/editor/tools/plugins/com.google.dart.tools.deploy/s...
true
true
protected void createContents() { setSize(new Point(394, 420)); addCopyDetailsPopup(this); setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE)); Label graphic = newLabel(SWT.SHADOW_NONE | SWT.CENTER); GridDataFactory.fillDefaults().grab(true, true).align(SWT.FILL, SWT.FILL).hint...
protected void createContents() { setSize(new Point(394, 440)); addCopyDetailsPopup(this); setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE)); Label graphic = newLabel(SWT.SHADOW_NONE | SWT.CENTER); GridDataFactory.fillDefaults().grab(true, true).align(SWT.FILL, SWT.FILL).hint...
diff --git a/src/com/redhat/qe/auto/testng/TestNGUtils.java b/src/com/redhat/qe/auto/testng/TestNGUtils.java index 43d6b05..aede0b3 100644 --- a/src/com/redhat/qe/auto/testng/TestNGUtils.java +++ b/src/com/redhat/qe/auto/testng/TestNGUtils.java @@ -1,24 +1,20 @@ package com.redhat.qe.auto.testng; import java.util.L...
false
true
public static Object[][] convertListOfListsTo2dArray(List<List<Object>> list) { if (list.size() == 0) return new Object[0][0]; // avoid a null pointer exception //convert list to 2-d array Object[][] array = new Object[list.size()][ list.get(0).size()]; int i=0; for (List<Object> item: list){ int j=0; ...
public static Object[][] convertListOfListsTo2dArray(List<List<Object>> list) { if (list.size() == 0) return new Object[0][0]; // avoid a null pointer exception //convert list to 2-d array Object[][] array = new Object[list.size()][]; int i=0; for (List<Object> item: list){ array[i] = item.toArray(); ...
diff --git a/src/ufly/frs/CustomerProfile.java b/src/ufly/frs/CustomerProfile.java index 70f3db8..692d3dd 100644 --- a/src/ufly/frs/CustomerProfile.java +++ b/src/ufly/frs/CustomerProfile.java @@ -1,94 +1,94 @@ package ufly.frs; import java.io.IOException; import javax.servlet.ServletException; import javax.ser...
true
true
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException,ServletException { String pageToInclude= getServletConfig().getInitParameter("action"); if (pageToInclude.equals("edit") ) { if (getLoggedInUser(req.getSession())!=null) { Customer loggedInCustomer = Customer.get...
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException,ServletException { String pageToInclude= getServletConfig().getInitParameter("action"); if (pageToInclude.equals("edit") ) { if (getLoggedInUser(req.getSession())!=null) { Customer loggedInCustomer = Customer.get...
diff --git a/src/xds/src/com/vangent/hieos/services/xds/registry/transactions/RegistryPatientIdentityFeed.java b/src/xds/src/com/vangent/hieos/services/xds/registry/transactions/RegistryPatientIdentityFeed.java index a76edab0..e3492c3c 100644 --- a/src/xds/src/com/vangent/hieos/services/xds/registry/transactions/Regist...
false
true
private OMElement generateACK(OMElement request, String errorString) { OMFactory omfactory = OMAbstractFactory.getOMFactory(); OMNamespace ns = omfactory.createOMNamespace("urn:hl7-org:v3", "ns"); // MCCI_IN000002UV01: OMElement ackResponseNode = omfactory.createOMElement("MCCI_IN00...
private OMElement generateACK(OMElement request, String errorString) { OMFactory omfactory = OMAbstractFactory.getOMFactory(); OMNamespace ns = omfactory.createOMNamespace("urn:hl7-org:v3", "ns"); // MCCI_IN000002UV01: OMElement ackResponseNode = omfactory.createOMElement("MCCI_IN00...
diff --git a/content-types/src/java/org/sakaiproject/content/types/FileUploadType.java b/content-types/src/java/org/sakaiproject/content/types/FileUploadType.java index 5e3fdb6e..744c726a 100644 --- a/content-types/src/java/org/sakaiproject/content/types/FileUploadType.java +++ b/content-types/src/java/org/sakaiproject...
true
true
public FileUploadType() { this.userDirectoryService = (UserDirectoryService) ComponentManager.get("org.sakaiproject.user.api.UserDirectoryService"); this.contentTypeImageService = (ContentTypeImageService) ComponentManager.get("org.sakaiproject.content.api.ContentTypeImageService"); BaseInteractionAction cre...
public FileUploadType() { this.userDirectoryService = (UserDirectoryService) ComponentManager.get("org.sakaiproject.user.api.UserDirectoryService"); this.contentTypeImageService = (ContentTypeImageService) ComponentManager.get("org.sakaiproject.content.api.ContentTypeImageService"); BaseInteractionAction cre...
diff --git a/modules/activiti-rest/src/main/java/org/activiti/rest/api/process/ProcessInstanceVariablesDeleteResource.java b/modules/activiti-rest/src/main/java/org/activiti/rest/api/process/ProcessInstanceVariablesDeleteResource.java index a353a5cfd..e0fdd2d0e 100644 --- a/modules/activiti-rest/src/main/java/org/activ...
true
true
public ObjectNode deleteProcessInstanceVariables(Representation entity) { try { if (authenticate() == false) { return null; } String processInstanceId = (String) getRequest().getAttributes() .get("processInstanceId"); if (processInstanceId == null) { throw new ActivitiException("No process...
public ObjectNode deleteProcessInstanceVariables(Representation entity) { try { if (authenticate() == false) { return null; } String processInstanceId = (String) getRequest().getAttributes() .get("processInstanceId"); if (processInstanceId == null) { throw new ActivitiException("No process...
diff --git a/src/main/java/com/runetooncraft/plugins/CostDistanceTeleporter/Teleportlistener.java b/src/main/java/com/runetooncraft/plugins/CostDistanceTeleporter/Teleportlistener.java index dde9626..c3213cf 100644 --- a/src/main/java/com/runetooncraft/plugins/CostDistanceTeleporter/Teleportlistener.java +++ b/src/main...
true
true
public void onCommand(PlayerCommandPreprocessEvent event) { if(CDT.perms.has(event.getPlayer(), "cdt.bypass") == false) { String Cvalue = CDT.econ.currencyNamePlural(); if(event.getMessage().startsWith("/warp") && config.getbool("CDT.Commandsenabled.warp")) { Player p = event.getPlayer(); String input = event...
public void onCommand(PlayerCommandPreprocessEvent event) { if(CDT.perms.has(event.getPlayer(), "cdt.bypass") == false) { String Cvalue = CDT.econ.currencyNamePlural(); if(event.getMessage().startsWith("/warp") && config.getbool("CDT.Commandsenabled.warp")) { Player p = event.getPlayer(); String input = event...
diff --git a/source/RMG/jing/rxnSys/SeedMechanism.java b/source/RMG/jing/rxnSys/SeedMechanism.java index bc2bc641..a9db16dc 100644 --- a/source/RMG/jing/rxnSys/SeedMechanism.java +++ b/source/RMG/jing/rxnSys/SeedMechanism.java @@ -1,606 +1,606 @@ ////////////////////////////////////////////////////////////////////////...
true
true
public LinkedHashSet readPdepReactions(String pdepFileName, String p_name, HashMap allSpecies, String source, boolean pkl) throws IOException { LinkedHashSet localReactions = new LinkedHashSet(); LinkedList pdepNetworks = getPDepNetworks(); try { FileReader in = new FileReader(pdepFileName);...
public LinkedHashSet readPdepReactions(String pdepFileName, String p_name, HashMap allSpecies, String source, boolean pkl) throws IOException { LinkedHashSet localReactions = new LinkedHashSet(); LinkedList pdepNetworks = getPDepNetworks(); try { FileReader in = new FileReader(pdepFileName);...
diff --git a/components/bio-formats/src/loci/formats/in/MinimalTiffReader.java b/components/bio-formats/src/loci/formats/in/MinimalTiffReader.java index 2e65f7ffc..70af0392b 100644 --- a/components/bio-formats/src/loci/formats/in/MinimalTiffReader.java +++ b/components/bio-formats/src/loci/formats/in/MinimalTiffReader....
true
true
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); lastPlane = no; tiffParser.getSamples(ifds.get(no), buf, x, y, w, h); boolean float16 = getPixelType() == FormatTool...
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); lastPlane = no; tiffParser.getSamples(ifds.get(no), buf, x, y, w, h); boolean float16 = getPixelType() == FormatTool...
diff --git a/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java b/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java index 7822a783..a204e7b7 100644 --- a/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java +++ b/source/org/jivesoftware/smackx/provider/MUCOwnerProvider.java @@ -1,143 +1,...
false
true
public IQ parseIQ(XmlPullParser parser) throws Exception { MUCOwner mucOwner = new MUCOwner(); boolean done = false; MUCOwner.Item item = null; while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parse...
public IQ parseIQ(XmlPullParser parser) throws Exception { MUCOwner mucOwner = new MUCOwner(); boolean done = false; MUCOwner.Item item = null; while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parse...
diff --git a/src/main/java/org/krall/security/timer/FreeSpaceTimer.java b/src/main/java/org/krall/security/timer/FreeSpaceTimer.java index 1721d9b..12a5a9d 100644 --- a/src/main/java/org/krall/security/timer/FreeSpaceTimer.java +++ b/src/main/java/org/krall/security/timer/FreeSpaceTimer.java @@ -1,70 +1,74 @@ package ...
false
true
public void run() { try { Path outputDirectory = AppOptions.getInstance().getOutputDirectory().toPath(); FileStore fileStore = Files.getFileStore(outputDirectory); double bytesFree = fileStore.getUnallocatedSpace(); double totalSpace = fileStore.getTotalSpace...
public void run() { try { Path outputDirectory = AppOptions.getInstance().getOutputDirectory().toPath(); FileStore fileStore = Files.getFileStore(outputDirectory); double bytesFree = fileStore.getUnallocatedSpace(); double totalSpace = fileStore.getTotalSpace...
diff --git a/pages/src/org/riotfamily/pages/dao/AbstractPageDao.java b/pages/src/org/riotfamily/pages/dao/AbstractPageDao.java index 4d4ae5de1..5c478f22f 100644 --- a/pages/src/org/riotfamily/pages/dao/AbstractPageDao.java +++ b/pages/src/org/riotfamily/pages/dao/AbstractPageDao.java @@ -1,373 +1,374 @@ /* ***** BEGIN...
true
true
public void deletePage(Page page) { log.info("Deleting page " + page); List<Page> childPages = page.getChildPages(); if (childPages != null) { for (Page child : childPages) { deletePage(child); } } clearAliases(page); PageNode node = page.getNode(); PageNode parentNode = node.getParent(); ...
public void deletePage(Page page) { log.info("Deleting page " + page); List<Page> childPages = page.getChildPages(); if (childPages != null) { for (Page child : childPages) { deletePage(child); } } clearAliases(page); PageNode node = page.getNode(); PageNode parentNode = node.getParent(); ...
diff --git a/access/access-core/src/main/java/com/bhle/access/util/OlefNamespaceContext.java b/access/access-core/src/main/java/com/bhle/access/util/OlefNamespaceContext.java index 6e47614d..ff555ec1 100644 --- a/access/access-core/src/main/java/com/bhle/access/util/OlefNamespaceContext.java +++ b/access/access-core/sr...
true
true
public String getNamespaceURI(String prefix) { if (prefix.equals("mods")) { return "http://www.loc.gov/mods/v3"; } else if (prefix.equals("dwc")) { return "http://rs.tdwg.org/dwc/terms/"; } else if (prefix.equals("olef")) { return "http://www.bhl-europe.eu/bhl-schema/v0.3/"; } return null; }
public String getNamespaceURI(String prefix) { if (prefix.equals("mods")) { return "http://www.loc.gov/mods/v3"; } else if (prefix.equals("dwc")) { return "http://rs.tdwg.org/dwc/terms/"; } else if (prefix.equals("olef")) { return "http://www.bhl-europe.eu/bhl-schema/v1/"; } return null; }
diff --git a/src/main/java/nl/vu/datalayer/hbase/sail/HBaseSailConnection.java b/src/main/java/nl/vu/datalayer/hbase/sail/HBaseSailConnection.java index 6ccad55..e32076a 100644 --- a/src/main/java/nl/vu/datalayer/hbase/sail/HBaseSailConnection.java +++ b/src/main/java/nl/vu/datalayer/hbase/sail/HBaseSailConnection.java...
true
true
protected ArrayList<Statement> evaluateInternal(TupleExpr arg0, Dataset context) throws SailException { ArrayList<Statement> result = new ArrayList(); try { ArrayList<ArrayList<Var>> statements = HBaseQueryVisitor.convertToStatements(arg0, null, null); // System.out.println("StatementPatterns: " + statement...
protected ArrayList<Statement> evaluateInternal(TupleExpr arg0, Dataset context) throws SailException { ArrayList<Statement> result = new ArrayList(); try { ArrayList<ArrayList<Var>> statements = HBaseQueryVisitor.convertToStatements(arg0, null, null); // System.out.println("StatementPatterns: " + statement...
diff --git a/application/src/com/ferg/awfulapp/thread/AwfulPagedItem.java b/application/src/com/ferg/awfulapp/thread/AwfulPagedItem.java index ad654e23..ec2d228b 100644 --- a/application/src/com/ferg/awfulapp/thread/AwfulPagedItem.java +++ b/application/src/com/ferg/awfulapp/thread/AwfulPagedItem.java @@ -1,149 +1,156 ...
false
true
public static int parseLastPage(Document pagedItem){ int pagesTop, pagesBottom; try{ Elements pages = pagedItem.getElementsByClass("pages"); pagesTop = Integer.parseInt(pages.first().getElementsByTag("a").last().html().replaceAll("[^\\d.]", "")); pagesBottom = Integer.parseInt(pages.l...
public static int parseLastPage(Document pagedItem){ int pagesTop, pagesBottom; try{ Elements pages = pagedItem.getElementsByClass("pages"); pagesTop = Integer.parseInt(pages.first().getElementsByTag("a").last().html().replaceAll("[^\\d.]", "")); pagesBottom = Integer.parseInt(pages.l...
diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/CUBRIDDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/CUBRIDDialect.java index e0859d18f3..ac27d4723e 100755 --- a/hibernate-core/src/main/java/org/hibernate/dialect/CUBRIDDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dial...
true
true
public CUBRIDDialect() { super(); registerColumnType( Types.BIGINT, "bigint" ); registerColumnType( Types.BIT, "bit(8)" ); registerColumnType( Types.BLOB, "bit varying(65535)" ); registerColumnType( Types.BOOLEAN, "bit(1)"); registerColumnType( Types.CHAR, "char(1)" ); registerColumn...
public CUBRIDDialect() { super(); registerColumnType( Types.BIGINT, "bigint" ); registerColumnType( Types.BIT, "bit(8)" ); registerColumnType( Types.BLOB, "bit varying(65535)" ); registerColumnType( Types.BOOLEAN, "bit(8)"); registerColumnType( Types.CHAR, "char(1)" ); registerColumn...
diff --git a/webcam-capture/src/main/java/com/github/sarxos/webcam/WebcamUpdater.java b/webcam-capture/src/main/java/com/github/sarxos/webcam/WebcamUpdater.java index b73e44c..09516e4 100644 --- a/webcam-capture/src/main/java/com/github/sarxos/webcam/WebcamUpdater.java +++ b/webcam-capture/src/main/java/com/github/sarx...
true
true
public void run() { if (!running) { return; } long t1 = 0; long t2 = 0; // Calculate time required to fetch 1 picture. WebcamDriver driver = Webcam.getDriver(); WebcamDevice device = webcam.getDevice(); assert driver != null; assert device != null; BufferedImage img = null; t1 = System....
public void run() { if (!running) { return; } long t1 = 0; long t2 = 0; // Calculate time required to fetch 1 picture. WebcamDriver driver = Webcam.getDriver(); WebcamDevice device = webcam.getDevice(); assert driver != null; assert device != null; BufferedImage img = null; t1 = System....
diff --git a/MuleGame/src/gameObjects/Player.java b/MuleGame/src/gameObjects/Player.java index a30f974..1544ea0 100644 --- a/MuleGame/src/gameObjects/Player.java +++ b/MuleGame/src/gameObjects/Player.java @@ -1,72 +1,72 @@ package gameObjects; import com.badlogic.gdx.graphics.Color; /** * Represents a single p...
true
true
public boolean setRace(String s){ if(s.toLowerCase().equals("human")){ race = Race.HUMAN; return true; } else if(s.toLowerCase().equals("FLAPPER")){ race = Race.FLAPPER; return true; } return false; }
public boolean setRace(String s){ if(s.toLowerCase().equals("human")){ race = Race.HUMAN; return true; } else if(s.toLowerCase().equals("flapper")){ race = Race.FLAPPER; return true; } return false; }
diff --git a/maven-project/src/main/java/org/apache/maven/project/builder/ArtifactModelContainerFactory.java b/maven-project/src/main/java/org/apache/maven/project/builder/ArtifactModelContainerFactory.java index 6eca64094..b3c0debda 100644 --- a/maven-project/src/main/java/org/apache/maven/project/builder/ArtifactMode...
true
true
private ArtifactModelContainer( List<ModelProperty> properties ) { this.properties = new ArrayList<ModelProperty>( properties ); this.properties = Collections.unmodifiableList( this.properties ); String uri = findBaseUriFrom( this.properties ); for ( Mode...
private ArtifactModelContainer( List<ModelProperty> properties ) { this.properties = new ArrayList<ModelProperty>( properties ); this.properties = Collections.unmodifiableList( this.properties ); String uri = findBaseUriFrom( this.properties ); for ( Mode...
diff --git a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/creators/AntlrPluginContentCreator.java b/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/creators/AntlrPluginContentCreator.java index 767964e4f..3bec64865 100644 --- a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/creators/AntlrPluginContentCr...
false
true
public void generate(GenerationContext context, IProgressMonitor monitor) throws IOException { SubMonitor progress = SubMonitor.convert(monitor, "generating antlr common plug-in...", 100); List<IArtifactCreator> creators = new ArrayList<IArtifactCreator>(); File sourceFolder = context.getSourceFolder(EP...
public void generate(GenerationContext context, IProgressMonitor monitor) throws IOException { SubMonitor progress = SubMonitor.convert(monitor, "generating antlr common plug-in...", 100); List<IArtifactCreator> creators = new ArrayList<IArtifactCreator>(); File sourceFolder = context.getSourceFolder(EP...
diff --git a/src/com/android/exchange/provider/ExchangeDirectoryProvider.java b/src/com/android/exchange/provider/ExchangeDirectoryProvider.java index 11b72303..b267da9d 100644 --- a/src/com/android/exchange/provider/ExchangeDirectoryProvider.java +++ b/src/com/android/exchange/provider/ExchangeDirectoryProvider.java @...
true
true
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int match = sURIMatcher.match(uri); MatrixCursor cursor; Object[] row; PackedString ps; String lookupKey; switch (match) { case GAL...
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int match = sURIMatcher.match(uri); MatrixCursor cursor; Object[] row; PackedString ps; String lookupKey; switch (match) { case GAL...
diff --git a/src/cytoscape/data/readers/GMLTree.java b/src/cytoscape/data/readers/GMLTree.java index 39dfd8b59..5eb5cb929 100644 --- a/src/cytoscape/data/readers/GMLTree.java +++ b/src/cytoscape/data/readers/GMLTree.java @@ -1,321 +1,325 @@ package cytoscape.data.readers; import java.util.*; import java.io.FileWrite...
true
true
public GMLTree(NetworkView networkView){ //DecimalFormat cf = new DecimalFormat("00"); DecimalFormat df = new DecimalFormat("####0.0#"); GraphView myView = networkView.getView(); //create a new root root = new GMLNode(); //add the base level mappings root.addMapping("Creator",new GMLNode("\"Cytoscape\"")); ...
public GMLTree(NetworkView networkView){ //DecimalFormat cf = new DecimalFormat("00"); DecimalFormat df = new DecimalFormat("####0.0#"); GraphView myView = networkView.getView(); //create a new root root = new GMLNode(); //add the base level mappings root.addMapping("Creator",new GMLNode("\"Cytoscape\"")); ...
diff --git a/src/main/java/org/jbasics/types/container/ChainedMap.java b/src/main/java/org/jbasics/types/container/ChainedMap.java index b973293..4f8e209 100644 --- a/src/main/java/org/jbasics/types/container/ChainedMap.java +++ b/src/main/java/org/jbasics/types/container/ChainedMap.java @@ -1,144 +1,144 @@ /* * Cop...
true
true
public ChainedMap(Delegate<Map<K, V>> parentMapDelegate, Map<K, V> map) { this.parentMapDelegate = parentMapDelegate; this.map = map == null ? map : MapFactory.<K, V> unorderedMapFactory().newInstance(); }
public ChainedMap(Delegate<Map<K, V>> parentMapDelegate, Map<K, V> map) { this.parentMapDelegate = parentMapDelegate; this.map = map != null ? map : MapFactory.<K, V> unorderedMapFactory().newInstance(); }
diff --git a/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java b/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java index 5123a42faa..1c85946b5f 100644 --- a/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java +++ b/src/org/rascalmpl/library/experiments/Com...
true
true
private Object executeProgram(Frame root, Frame cf) { Object[] stack = cf.stack; // current stack int sp = cf.function.nlocals; // current stack pointer int [] instructions = cf.function.codeblock.getInstructions(); // current instruction sequence int pc ...
private Object executeProgram(Frame root, Frame cf) { Object[] stack = cf.stack; // current stack int sp = cf.function.nlocals; // current stack pointer int [] instructions = cf.function.codeblock.getInstructions(); // current instruction sequence int pc ...
diff --git a/source/de/anomic/plasma/plasmaSearchRankingProcess.java b/source/de/anomic/plasma/plasmaSearchRankingProcess.java index de9ca3836..22f527a71 100644 --- a/source/de/anomic/plasma/plasmaSearchRankingProcess.java +++ b/source/de/anomic/plasma/plasmaSearchRankingProcess.java @@ -1,504 +1,505 @@ // plasmaSearc...
true
true
public void insertRanked(final ReferenceContainer<WordReference> index, final boolean local, final int fullResource) { // we collect the urlhashes and construct a list with urlEntry objects // attention: if minEntries is too high, this method will not terminate within the maxTime assert (in...
public void insertRanked(final ReferenceContainer<WordReference> index, final boolean local, final int fullResource) { // we collect the urlhashes and construct a list with urlEntry objects // attention: if minEntries is too high, this method will not terminate within the maxTime assert (in...
diff --git a/src/com/android/providers/contacts/ContactAggregator.java b/src/com/android/providers/contacts/ContactAggregator.java index 1df98ec..3f043a5 100644 --- a/src/com/android/providers/contacts/ContactAggregator.java +++ b/src/com/android/providers/contacts/ContactAggregator.java @@ -1,1625 +1,1625 @@ /* * C...
true
true
private void computeAggregateData(final SQLiteDatabase db, String sql, String[] sqlArgs, SQLiteStatement statement) { long currentRawContactId = -1; long bestPhotoId = -1; boolean foundSuperPrimaryPhoto = false; String photoAccount = null; int totalRowCount = 0; ...
private void computeAggregateData(final SQLiteDatabase db, String sql, String[] sqlArgs, SQLiteStatement statement) { long currentRawContactId = -1; long bestPhotoId = -1; boolean foundSuperPrimaryPhoto = false; String photoAccount = null; int totalRowCount = 0; ...
diff --git a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/restAPI/service/PluggableRestletService.java b/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/restAPI/service/PluggableRestletService.java index f5982f20..0b26077b 100644 --- a/nuxeo-platform-ui-web/src/main/java/org/nuxeo...
true
true
public Restlet getContributedRestletByName(String name) { if (restletsDescriptors.containsKey(name)) { RestletPluginDescriptor rpd = restletsDescriptors.get(name); if (rpd == null) { log.error("Error while creating Restlet instance. Cannot get RestletPluginDescriptor...
public Restlet getContributedRestletByName(String name) { if (restletsDescriptors.containsKey(name)) { RestletPluginDescriptor rpd = restletsDescriptors.get(name); if (rpd == null) { log.error("Error while creating Restlet instance. Cannot get RestletPluginDescriptor...
diff --git a/theogony/src/com/censoredsoftware/Demigods/Theogony/Handlers/DMetricsHandler.java b/theogony/src/com/censoredsoftware/Demigods/Theogony/Handlers/DMetricsHandler.java index 5ac2224e..e7a91e94 100644 --- a/theogony/src/com/censoredsoftware/Demigods/Theogony/Handlers/DMetricsHandler.java +++ b/theogony/src/co...
true
true
public static void report() { try { Metrics metrics = new Metrics(instance); // Battles Graph Graph battles = metrics.createGraph("Battles"); battles.addPlotter(new Metrics.Plotter("Active") { @Override public int getValue() { return API.battle.getAllActiveBattles().size(); } ...
public static void report() { try { Metrics metrics = new Metrics(instance); // Battles Graph Graph battles = metrics.createGraph("Battles"); battles.addPlotter(new Metrics.Plotter("Active") { @Override public int getValue() { return API.battle.getAllActiveBattles().size(); } ...
diff --git a/BukkitInventoryTools/src/dk/gabriel333/Library/BITPermissions.java b/BukkitInventoryTools/src/dk/gabriel333/Library/BITPermissions.java index 0937644..c9ccc71 100644 --- a/BukkitInventoryTools/src/dk/gabriel333/Library/BITPermissions.java +++ b/BukkitInventoryTools/src/dk/gabriel333/Library/BITPermissions....
true
true
public static boolean hasPerm(CommandSender sender, String label, Boolean not_quiet) { if (BITConfig.DEBUG_PERMISSIONS) { sender.sendMessage("Testing permission: " + (PERMISSION_NODE + label).toLowerCase()); } // How to hook into PermissionsBukkit // Basic Permission Check // In this example (MyP...
public static boolean hasPerm(CommandSender sender, String label, Boolean not_quiet) { if (BITConfig.DEBUG_PERMISSIONS) { sender.sendMessage("Testing permission: " + (PERMISSION_NODE + label).toLowerCase()); } // How to hook into PermissionsBukkit // Basic Permission Check // In this example (MyP...
diff --git a/src/ca/strangebrew/ui/swing/dialogs/StrangeBrew.java b/src/ca/strangebrew/ui/swing/dialogs/StrangeBrew.java index ccd57e8..3537a0a 100644 --- a/src/ca/strangebrew/ui/swing/dialogs/StrangeBrew.java +++ b/src/ca/strangebrew/ui/swing/dialogs/StrangeBrew.java @@ -1,141 +1,141 @@ /* * @(#)Splash.java 2.0 J...
true
true
public static void main(String[] args) { opts = Options.getInstance(); // check if this is a mac/osx machine, and deal accordingly String lcOSName = System.getProperty("os.name").toLowerCase(); Debug.print("OS is: " + lcOSName); //Debug.flush(); if (lcOSName.indexOf("mac") ...
public static void main(String[] args) { opts = Options.getInstance(); // check if this is a mac/osx machine, and deal accordingly String lcOSName = System.getProperty("os.name").toLowerCase(); Debug.print("OS is: " + lcOSName); //Debug.flush(); if (lcOSName.indexOf("mac") ...
diff --git a/src/main/java/me/raino/totalwar/TotalTeam.java b/src/main/java/me/raino/totalwar/TotalTeam.java index 7b55599..974be59 100644 --- a/src/main/java/me/raino/totalwar/TotalTeam.java +++ b/src/main/java/me/raino/totalwar/TotalTeam.java @@ -1,100 +1,100 @@ package me.raino.totalwar; import java.util.List; ...
true
true
public TotalTeam getTeam(String name) { for (TotalTeam tt: teams) { if (tt.getName().equals(name)){ return tt; } } return null; }
public static TotalTeam getTeam(String name) { for (TotalTeam tt: teams) { if (tt.getName().equals(name)){ return tt; } } return null; }
diff --git a/DHNSGraph/src/org/gephi/graph/dhns/core/GraphStructure.java b/DHNSGraph/src/org/gephi/graph/dhns/core/GraphStructure.java index 654c5f926..fba7d82db 100644 --- a/DHNSGraph/src/org/gephi/graph/dhns/core/GraphStructure.java +++ b/DHNSGraph/src/org/gephi/graph/dhns/core/GraphStructure.java @@ -1,413 +1,413 @@...
true
true
public GraphViewImpl copyView(GraphViewImpl view) { GraphViewImpl viewCopy = new GraphViewImpl(dhns, viewId.getAndIncrement()); TreeStructure newStructure = viewCopy.getStructure(); dhns.writeLock(); for (TreeListIterator itr = new TreeListIterator(view.getStructure().getTree(), 1);...
public GraphViewImpl copyView(GraphViewImpl view) { GraphViewImpl viewCopy = new GraphViewImpl(dhns, viewId.getAndIncrement()); TreeStructure newStructure = viewCopy.getStructure(); dhns.writeLock(); for (TreeListIterator itr = new TreeListIterator(view.getStructure().getTree(), 1);...
diff --git a/src/org/jruby/RubyDigest.java b/src/org/jruby/RubyDigest.java index ffb94151f..2176fd2ad 100644 --- a/src/org/jruby/RubyDigest.java +++ b/src/org/jruby/RubyDigest.java @@ -1,226 +1,231 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject t...
true
true
public static void createDigest(Ruby runtime) { java.security.Security.insertProviderAt(new org.bouncycastle.jce.provider.BouncyCastleProvider(),2); RubyModule mDigest = runtime.defineModule("Digest"); RubyClass cDigestBase = mDigest.defineClassUnder("Base",runtime.getObject(), Base.BASE_AL...
public static void createDigest(Ruby runtime) { try { Class c = Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); java.security.Security.insertProviderAt((java.security.Provider)c.newInstance(),2); } catch(Exception e) { runtime.getWarnings().wa...
diff --git a/web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html/result/HtmlSearchResultTag.java b/web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html/result/HtmlSearchResultTag.java index 1bab7ad03d..7b09874c38 100644 --- a/web-core/src/main/java/com/stratelia/webactiv/util/viewGene...
true
true
private String generateHTMLSearchResult(ResourcesWrapper settings, String componentName, String extraInformation) { // initialize html result StringBuilder result = new StringBuilder(); String downloadSrc = "<img src=\"" + settings.getIcon("pdcPeas.download") + "\" class=\"fileDownload\" alt...
private String generateHTMLSearchResult(ResourcesWrapper settings, String componentName, String extraInformation) { // initialize html result StringBuilder result = new StringBuilder(); String downloadSrc = "<img src=\"" + settings.getIcon("pdcPeas.download") + "\" class=\"fileDownload\" alt...
diff --git a/examples/undocumented/java_modular/ClassifierLibsvmMinimalModular.java b/examples/undocumented/java_modular/ClassifierLibsvmMinimalModular.java index f86299c0a..39cf00f01 100644 --- a/examples/undocumented/java_modular/ClassifierLibsvmMinimalModular.java +++ b/examples/undocumented/java_modular/ClassifierL...
false
true
public static void main(String argv[]) { Features.init_shogun(); int num = 1000; int dist = 1; double width = 2.1; double C = 1.0; DoubleMatrix x = DoubleMatrix.randn(2, num).sub(DoubleMatrix.ones(2, num)); DoubleMatrix y = DoubleMatrix.randn(2, num).add(DoubleMatrix.ones(2, num)); DoubleMatrix traind...
public static void main(String argv[]) { Features.init_shogun(); int num = 1000; int dist = 1; double width = 2.1; double C = 1.0; DoubleMatrix x = DoubleMatrix.randn(2, num).sub(DoubleMatrix.ones(2, num)); DoubleMatrix y = DoubleMatrix.randn(2, num).add(DoubleMatrix.ones(2, num)); DoubleMatrix traind...
diff --git a/GAE/src/org/waterforpeople/mapping/dataexport/GraphicalSurveySummaryExporter.java b/GAE/src/org/waterforpeople/mapping/dataexport/GraphicalSurveySummaryExporter.java index 423882471..b63f53a8d 100644 --- a/GAE/src/org/waterforpeople/mapping/dataexport/GraphicalSurveySummaryExporter.java +++ b/GAE/src/org/w...
true
true
private void writeSummaryReport( Map<QuestionGroupDto, List<QuestionDto>> questionMap, SummaryModel summaryModel, String sector, HSSFWorkbook wb) throws Exception { HSSFSheet sheet = wb.createSheet(sector == null ? SUMMARY_LABEL .get(locale) : sector); HSSFPatriarch patriarch = sheet.createDrawingPat...
private void writeSummaryReport( Map<QuestionGroupDto, List<QuestionDto>> questionMap, SummaryModel summaryModel, String sector, HSSFWorkbook wb) throws Exception { HSSFSheet sheet = wb.createSheet(sector == null ? SUMMARY_LABEL .get(locale) : sector); HSSFPatriarch patriarch = sheet.createDrawingPat...
diff --git a/jfugue/src/org/jfugue/extras/Midi2JFugue.java b/jfugue/src/org/jfugue/extras/Midi2JFugue.java index 2a7decb..ec28364 100644 --- a/jfugue/src/org/jfugue/extras/Midi2JFugue.java +++ b/jfugue/src/org/jfugue/extras/Midi2JFugue.java @@ -1,63 +1,63 @@ /* * JFugue - API for Music Programming * Copyright (C) ...
false
true
public static void main(String[] args) { if (args.length < 3) { printUsage(); System.exit(0); } Player player = new Player(); PatternInterface pattern = null; try { pattern = player.loadMidi(new File(args[1])); ...
public static void main(String[] args) { if (args.length < 2) { printUsage(); System.exit(0); } Player player = new Player(); PatternInterface pattern = null; try { pattern = player.loadMidi(new File(args[0])); ...
diff --git a/src/test/java/BiddingTest.java b/src/test/java/BiddingTest.java index 706f5f8..0abbaca 100644 --- a/src/test/java/BiddingTest.java +++ b/src/test/java/BiddingTest.java @@ -1,27 +1,27 @@ package test.java; import org.junit.*; import static org.junit.Assert.*; import main.java.Auction; public clas...
true
true
public void AllowBidder() { //Given Auction auction = new Auction(); String bidder = "Moneybags"; int amount = 10; //When boolean result = auction.makeBid(bidder, amount); Assert.assertTrue(result); }
public void AllowBidder() { //Given Auction auction = new Auction("seller"); String bidder = "Moneybags"; int amount = 10; //When boolean result = auction.makeBid(bidder, amount); Assert.assertTrue(result); }
diff --git a/src/main/java/net/md_5/mc/protocol/PacketDefinitions.java b/src/main/java/net/md_5/mc/protocol/PacketDefinitions.java index 8ac0176d..c3dcd20b 100644 --- a/src/main/java/net/md_5/mc/protocol/PacketDefinitions.java +++ b/src/main/java/net/md_5/mc/protocol/PacketDefinitions.java @@ -1,360 +1,360 @@ package ...
true
true
void read(DataInput in) throws IOException { byte x = in.readByte(); while (x != 127) { int type = x >> 5; switch (type) { case 0: BYTE.read(in); break; case 1: ...
void read(DataInput in) throws IOException { int x = in.readUnsignedByte(); while (x != 127) { int type = x >> 5; switch (type) { case 0: BYTE.read(in); break; case 1: ...
diff --git a/io/plugins/eu.esdihumboldt.hale.io.oml/src/eu/esdihumboldt/hale/io/oml/helper/NetworkExpansionTranslator.java b/io/plugins/eu.esdihumboldt.hale.io.oml/src/eu/esdihumboldt/hale/io/oml/helper/NetworkExpansionTranslator.java index 80e01665d..b3fa25f3f 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.oml/src/eu...
true
true
public List<ParameterValue> getNewParameters(List<ParameterValue> params, CellBean cellBean, IOReporter reporter, ICell cell) { List<ParameterValue> newList = new ArrayList<ParameterValue>(); for (ParameterValue val : params) { if (val.getName().equals("CAPSSTYLE") && val.getValue() != null) { reporter....
public List<ParameterValue> getNewParameters(List<ParameterValue> params, CellBean cellBean, IOReporter reporter, ICell cell) { List<ParameterValue> newList = new ArrayList<ParameterValue>(); for (ParameterValue val : params) { if (val.getName().equals("CAPSSTYLE") && val.getValue() != null) { reporter....
diff --git a/core/src/test/java/ch/trick17/betterchecks/util/SimpleThreadLocalTest.java b/core/src/test/java/ch/trick17/betterchecks/util/SimpleThreadLocalTest.java index 982cb45..02162a5 100644 --- a/core/src/test/java/ch/trick17/betterchecks/util/SimpleThreadLocalTest.java +++ b/core/src/test/java/ch/trick17/betterch...
false
true
public void testNoArgConstructorThreadLocal() { new SimpleThreadLocal<Object>(Object.class).get(); new SimpleThreadLocal<Object>(String.class).get(); new SimpleThreadLocal<Object>(ObjectCheck.class).get(); RuntimeException thrown = null; try { final Objec...
public void testNoArgConstructorThreadLocal() { new SimpleThreadLocal<Object>(Object.class).get(); new SimpleThreadLocal<Object>(String.class).get(); new SimpleThreadLocal<Object>(ObjectCheck.class).get(); RuntimeException thrown = null; try { final Objec...
diff --git a/Core/src/java/ho/core/gui/model/UserColumnFactory.java b/Core/src/java/ho/core/gui/model/UserColumnFactory.java index e4192a1f..e4e13660 100644 --- a/Core/src/java/ho/core/gui/model/UserColumnFactory.java +++ b/Core/src/java/ho/core/gui/model/UserColumnFactory.java @@ -1,726 +1,730 @@ package ho.core.gui....
false
true
public static PlayerColumn[] createPlayerAdditionalArray(){ final PlayerColumn [] playerAdditionalArray = new PlayerColumn[12]; playerAdditionalArray[0] =new PlayerColumn(10," "," ",0){ @Override public IHOTableEntry getTableEntry(Spieler player,Spieler playerCompare){ int sort = player.getTrikotnu...
public static PlayerColumn[] createPlayerAdditionalArray(){ final PlayerColumn [] playerAdditionalArray = new PlayerColumn[12]; playerAdditionalArray[0] =new PlayerColumn(10," "," ",0){ @Override public IHOTableEntry getTableEntry(Spieler player,Spieler playerCompare){ int sort = player.getTrikotnu...
diff --git a/GnuBackgammon/src/it/alcacoop/backgammon/GnuBackgammon.java b/GnuBackgammon/src/it/alcacoop/backgammon/GnuBackgammon.java index a0e56eb..ed1a273 100644 --- a/GnuBackgammon/src/it/alcacoop/backgammon/GnuBackgammon.java +++ b/GnuBackgammon/src/it/alcacoop/backgammon/GnuBackgammon.java @@ -1,217 +1,217 @@ /*...
true
true
public void goToScreen(int s) { switch (s) { case 0: currentScreen = welcomeScreen; myRequestHandler.showAds(false); setScreen(welcomeScreen); break; case 1: currentScreen = optionsScreen; myRequestHandler.showAds(false); setScreen(optio...
public void goToScreen(int s) { switch (s) { case 0: currentScreen = welcomeScreen; myRequestHandler.showAds(false); setScreen(welcomeScreen); break; case 1: currentScreen = optionsScreen; myRequestHandler.showAds(false); setScreen(optio...
diff --git a/src/Exec.java b/src/Exec.java index a03644f..8fc9bba 100644 --- a/src/Exec.java +++ b/src/Exec.java @@ -1,67 +1,68 @@ import java.io.OutputStream; /** * @author E. Javier Figueroa * COP5615 Spring 2011 * University of Florida * */ public class Exec implements Runnable { private Stri...
true
true
public void run() { String path = System.getProperty("user.dir"); Log.write("Starting Remote Process: Client ID: " + this.id + " on " + this.host); String[] command = { "-i", "id_rsa", "figueroa@" + this.host, "~/.ssh/id_rsa", // "javier.figueroa@" + this.host, "cd " + path + " ; java start ...
public void run() { String path = System.getProperty("user.dir"); Log.write("Starting Remote Process: Client ID: " + this.id + " on " + this.host); String[] command = { "ssh", "-i", "id_rsa", "figueroa@" + this.host, "~/.ssh/id_rsa", // "javier.figueroa@" + this.host, "cd " + path ...
diff --git a/src/infinitedog/frisky/gui/Button.java b/src/infinitedog/frisky/gui/Button.java index 474aa85..f9c3db0 100644 --- a/src/infinitedog/frisky/gui/Button.java +++ b/src/infinitedog/frisky/gui/Button.java @@ -1,33 +1,33 @@ package infinitedog.frisky.gui; import infinitedog.frisky.entities.Sprite; import or...
false
true
public Button(String textureName, String label, Vector2f labelPosition) { this.setTexture(textureName); this.label = label; this.labelPosition = labelPosition; //this.name = C.Entities.BULLET.name + id++; //this.group = C.Groups.BUTTONS.name; }
public Button(String textureName, String name, String group, String label, Vector2f labelPosition) { this.setTexture(textureName); this.label = label; this.labelPosition = labelPosition; this.name = name; this.group = group; }
diff --git a/src/java/org/jdesktop/swingx/decorator/Selection.java b/src/java/org/jdesktop/swingx/decorator/Selection.java index 8e697782..42c01386 100644 --- a/src/java/org/jdesktop/swingx/decorator/Selection.java +++ b/src/java/org/jdesktop/swingx/decorator/Selection.java @@ -1,230 +1,235 @@ /* * Created on 14.07....
true
true
public void restoreSelection() { lock(); viewSelection.setValueIsAdjusting(true); viewSelection.clearSelection(); // RG: calculate rowCount once, not inside a loop final int rowCount = pipeline != null ? pipeline.getInputSize() : Integer.MAX_VALUE; int[] selected = g...
public void restoreSelection() { lock(); viewSelection.setValueIsAdjusting(true); viewSelection.clearSelection(); // RG: calculate rowCount once, not inside a loop final int rowCount = pipeline != null ? pipeline.getInputSize() : Integer.MAX_VALUE; int[] selected = g...
diff --git a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/i18n/TranslationsUtils.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/i18n/TranslationsUtils.java index d8fab586c..748681b32 100644 --- a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/i18n/Translations...
false
true
public static String replaceArguments(String msg, List<String> args) { if(args != null) { for(int i = 0; i < args.size(); i++) { msg = msg.replace("{" + i + "}", args.get(i)); } } return msg; }
public static String replaceArguments(String msg, List<String> args) { String message = msg; if(args != null) { for(int i = 0; i < args.size(); i++) { message = message.replace("{" + i + "}", args.get(i)); } } return message; }
diff --git a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/commands/SubmissionHandler.java b/com.uwusoft.timesheet/src/com/uwusoft/timesheet/commands/SubmissionHandler.java index 1e85e02..4573aae 100644 --- a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/commands/SubmissionHandler.java +++ b/com.uwusoft.timesheet/s...
true
true
public Object execute(ExecutionEvent event) throws ExecutionException { IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); StorageService storageService = new ExtensionManager<StorageService>(StorageService.SERVICE_ID) .getService(preferenceStore.getString(StorageService.PROPERTY))...
public Object execute(ExecutionEvent event) throws ExecutionException { IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); StorageService storageService = new ExtensionManager<StorageService>(StorageService.SERVICE_ID) .getService(preferenceStore.getString(StorageService.PROPERTY))...
diff --git a/src/hsun324/cpsensors/sensors/handlers/TimeSensorHandler.java b/src/hsun324/cpsensors/sensors/handlers/TimeSensorHandler.java index 7b6e0e8..85158db 100644 --- a/src/hsun324/cpsensors/sensors/handlers/TimeSensorHandler.java +++ b/src/hsun324/cpsensors/sensors/handlers/TimeSensorHandler.java @@ -1,58 +1,58 ...
false
true
public Map<String, Object> getData(TileBlockSensor caller) { Map<String, Object> dataMap = new HashMap<String, Object>(); long worldTime = caller.worldObj.getTotalWorldTime(); dataMap.put("mcTotalTick", worldTime); dataMap.put("mcMinute", (int)((worldTime % 1000) / 1000d * 60)); dataMap.put("mcHour", (i...
public Map<String, Object> getData(TileBlockSensor caller) { Map<String, Object> dataMap = new HashMap<String, Object>(); long worldTime = caller.worldObj.getWorldTime() + 6000; // add 6000 because tick 0 for the day is actually 6:00AM dataMap.put("mcTotalTick", worldTime - 6000); // remove 6000 because it ...
diff --git a/src/haven/Makewindow.java b/src/haven/Makewindow.java index 58867ece..c99e578a 100644 --- a/src/haven/Makewindow.java +++ b/src/haven/Makewindow.java @@ -1,114 +1,114 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
false
true
public void uimsg(String msg, Object... args) { if(msg == "inpop") { if(inputs != null) { for(Widget w : inputs) w.unlink(); } inputs = new LinkedList<Widget>(); Coord c = new Coord(xoff, 0); for(int i = 0; i < args.length; i += 2) { Widget box = new Inventory(c, new Coord(1, 1),...
public void uimsg(String msg, Object... args) { if(msg == "inpop") { if(inputs != null) { for(Widget w : inputs) w.unlink(); } inputs = new LinkedList<Widget>(); Coord c = new Coord(xoff, 0); for(int i = 0; i < args.length; i += 2) { Widget box = new Inventory(c, new Coord(1, 1),...
diff --git a/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java b/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java index b010acf26..9c8d226ac 100644 --- a/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java +++ b/runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java @@ -1,194 +1,196 @@ /*...
true
true
Class makeClass(String s) { if (s.equals("*")) return null; Class ret = (Class)prims.get(s); if (ret != null) return ret; try { /* The documentation of Class.forName explains why this is the right thing * better than I could here. */ ...
Class makeClass(String s) { if (s.equals("*")) return null; Class ret = (Class)prims.get(s); if (ret != null) return ret; try { /* The documentation of Class.forName explains why this is the right thing * better than I could here. */ ...
diff --git a/SecurityTestApp/src/main/java/com/github/wolf480pl/test/app/AppClass.java b/SecurityTestApp/src/main/java/com/github/wolf480pl/test/app/AppClass.java index 575075f..f0a642c 100644 --- a/SecurityTestApp/src/main/java/com/github/wolf480pl/test/app/AppClass.java +++ b/SecurityTestApp/src/main/java/com/github/...
true
true
public static void main(String[] args) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException { boolean restrict= false; if (args.length > 1) { restrict = Boolean.parseBoolean(args[1]); } Policy.setPolicy(new MyPolicy(restrict)); System.setSecurityManager(new ...
public static void main(String[] args) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException { boolean restrict= false; if (args.length > 1) { restrict = Boolean.parseBoolean(args[1]); } Policy.setPolicy(new MyPolicy(restrict)); System.setSecurityManager(new ...
diff --git a/src/test/java/mock/VoteActionHandlerMockTest.java b/src/test/java/mock/VoteActionHandlerMockTest.java index 8e25c16..3834c60 100644 --- a/src/test/java/mock/VoteActionHandlerMockTest.java +++ b/src/test/java/mock/VoteActionHandlerMockTest.java @@ -1,109 +1,112 @@ package mock; import junit.framework.Te...
true
true
public void handleTest() throws UnavailableServiceException { context.setImposteriser(ClassImposteriser.INSTANCE); final NomicAgent mockAgent = context.mock(NomicAgent.class); final NomicService service = context.mock(NomicService.class); final Vote yes = new Vote(mockAgent, VoteType.YES); final Vote n...
public void handleTest() throws UnavailableServiceException { context.setImposteriser(ClassImposteriser.INSTANCE); final NomicAgent mockAgent = context.mock(NomicAgent.class); final NomicService service = context.mock(NomicService.class); final Vote yes = new Vote(mockAgent, VoteType.YES); final Vote n...