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/nuget-tests/src/jetbrains/buildServer/nuget/tests/util/BuildProcessTestCase.java b/nuget-tests/src/jetbrains/buildServer/nuget/tests/util/BuildProcessTestCase.java index a959135e..490bcd4f 100644 --- a/nuget-tests/src/jetbrains/buildServer/nuget/tests/util/BuildProcessTestCase.java +++ b/nuget-tests/src/je...
true
true
protected void assertRunSuccessfully(@NotNull BuildProcess proc, @NotNull BuildFinishedStatus result) { BuildFinishedStatus status = null; try { proc.start(); status = proc.waitFor(); } catch (RunBuildException e) { Assert.fail("Failed with exception " + e); } Assert.assertEqual...
protected void assertRunSuccessfully(@NotNull BuildProcess proc, @NotNull BuildFinishedStatus result) { BuildFinishedStatus status = null; try { proc.start(); status = proc.waitFor(); } catch (RunBuildException e) { Assert.fail("Failed with exception " + e); } Assert.assertEqual...
diff --git a/wms/src/main/java/org/vfny/geoserver/wms/responses/featureInfo/AbstractFeatureInfoResponse.java b/wms/src/main/java/org/vfny/geoserver/wms/responses/featureInfo/AbstractFeatureInfoResponse.java index ca5a851234..ccc534bfb4 100644 --- a/wms/src/main/java/org/vfny/geoserver/wms/responses/featureInfo/Abstract...
false
true
protected void execute(FeatureTypeInfo[] requestedLayers, Query[] queries, int x, int y) throws WmsException { GetFeatureInfoRequest request = getRequest(); this.format = request.getInfoFormat(); GetMapRequest getMapReq = request.getGetMapRequest(); CoordinateReferenceSystem...
protected void execute(FeatureTypeInfo[] requestedLayers, Query[] queries, int x, int y) throws WmsException { GetFeatureInfoRequest request = getRequest(); this.format = request.getInfoFormat(); GetMapRequest getMapReq = request.getGetMapRequest(); CoordinateReferenceSystem...
diff --git a/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java b/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java index 374e5ee51..3e0c3774e 100644 --- a/java/test/org/broadinstitute/sting/alignment/AlignerIntegrationTest.java +++ b/java/test/org/broadinstitute/sting/align...
true
true
public void testBasicAlignment() { String md5 = "c6d95d8ae707e78fefdaa7375f130995"; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-R /humgen/gsa-scr1/GATK_Data/bwa/human_b36_both.fasta" + " -T Align" + " -I " + valida...
public void testBasicAlignment() { String md5 = "c6d95d8ae707e78fefdaa7375f130995"; WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-R /humgen/gsa-scr1/GATK_Data/bwa/human_b36_both.fasta" + " -T Align" + " -I " + valida...
diff --git a/src/main/java/de/cismet/cismap/cids/geometryeditor/FeatureComboBoxRenderer.java b/src/main/java/de/cismet/cismap/cids/geometryeditor/FeatureComboBoxRenderer.java index cdb820a..1b22228 100644 --- a/src/main/java/de/cismet/cismap/cids/geometryeditor/FeatureComboBoxRenderer.java +++ b/src/main/java/de/cismet...
true
true
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.getListCellRendererComponent(list,value,index,isSelected,cellHasFocus); try { if (value!=null) { if (value instanceof CidsFeature&&((CidsFe...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.getListCellRendererComponent(list,value,index,isSelected,cellHasFocus); try { if (value!=null) { if (value instanceof CidsFeature&&((CidsFe...
diff --git a/demos/rtm/src/com/badlogic/rtm/LevelRenderer.java b/demos/rtm/src/com/badlogic/rtm/LevelRenderer.java index ed8e92d20..f8ea5dd46 100644 --- a/demos/rtm/src/com/badlogic/rtm/LevelRenderer.java +++ b/demos/rtm/src/com/badlogic/rtm/LevelRenderer.java @@ -1,251 +1,251 @@ package com.badlogic.rtm; import ja...
true
true
private void load () { try { tiles = Gdx.graphics.newTexture( Gdx.files.getFileHandle("data/tiles-3.png", FileType.Internal), TextureFilter.MipMapLinearNearest, TextureFilter.Nearest, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge ); TextureAtlas atlas = new TextureAtlas(tile...
private void load () { try { tiles = Gdx.graphics.newTexture( Gdx.files.getFileHandle("data/tiles-3.png", FileType.Internal), TextureFilter.MipMapLinearNearest, TextureFilter.Nearest, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge ); TextureAtlas atlas = new TextureAtlas(tile...
diff --git a/runner/src/com/zutubi/android/junitreport/JUnitListener.java b/runner/src/com/zutubi/android/junitreport/JUnitListener.java index f0d7c89..b3a3707 100644 --- a/runner/src/com/zutubi/android/junitreport/JUnitListener.java +++ b/runner/src/com/zutubi/android/junitreport/JUnitListener.java @@ -1,468 +1,469 @@...
true
true
public void close(){ Iterator<String> suiteIterator = suiteMap.keySet().iterator(); String state = Environment.getExternalStorageState(); if(Environment.MEDIA_MOUNTED.equals(state)&&!Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)){ File f = mContext.getExternalFilesDir("junit"); if(f.exis...
public void close(){ Iterator<String> suiteIterator = suiteMap.keySet().iterator(); String state = Environment.getExternalStorageState(); if(Environment.MEDIA_MOUNTED.equals(state)&&!Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)){ File f = mContext.getExternalFilesDir("junit"); if(f.exis...
diff --git a/test/models/BaseDataUnitTest.java b/test/models/BaseDataUnitTest.java index 0a749fd..3f29703 100644 --- a/test/models/BaseDataUnitTest.java +++ b/test/models/BaseDataUnitTest.java @@ -1,25 +1,27 @@ package models; import org.junit.After; import org.junit.Before; import play.test.Fixtures; import p...
true
true
public void setUp() { Fixtures.deleteAllModels(); Fixtures.loadModels("data.yml"); }
public void setUp() { // CLA 10/04/2012 : Fix https://play.lighthouseapp.com/projects/57987/tickets/425-error-in-reloading-a-yml-file before Play! 1.2.5 release. // cf. http://stackoverflow.com/questions/6266684/cannot-load-fixture-because-of-wrong-duplicate-id-detection Fixtures.deleteDatab...
diff --git a/atlas-loader/src/main/java/uk/ac/ebi/gxa/loader/service/AtlasNetCDFUpdaterService.java b/atlas-loader/src/main/java/uk/ac/ebi/gxa/loader/service/AtlasNetCDFUpdaterService.java index 6fffb4beb..f9f12ab52 100644 --- a/atlas-loader/src/main/java/uk/ac/ebi/gxa/loader/service/AtlasNetCDFUpdaterService.java +++ ...
true
true
public void process(UpdateNetCDFForExperimentCommand cmd, AtlasLoaderServiceListener listener) throws AtlasLoaderException { String experimentAccession = cmd.getAccession(); listener.setAccession(experimentAccession); List<Assay> assays = getAtlasDAO().getAssaysByExperimentAccession(experi...
public void process(UpdateNetCDFForExperimentCommand cmd, AtlasLoaderServiceListener listener) throws AtlasLoaderException { String experimentAccession = cmd.getAccession(); listener.setAccession(experimentAccession); List<Assay> assays = getAtlasDAO().getAssaysByExperimentAccession(experi...
diff --git a/loci/formats/out/AVIWriter.java b/loci/formats/out/AVIWriter.java index d358a5529..6c18c42a1 100644 --- a/loci/formats/out/AVIWriter.java +++ b/loci/formats/out/AVIWriter.java @@ -1,543 +1,543 @@ // // AVIWriter.java // /* LOCI Bio-Formats package for reading and converting biological file formats. ...
true
true
public void save(String id, Image image, boolean last) throws FormatException, IOException { if (image == null) { throw new FormatException("Image is null"); } BufferedImage img = null; if (cm != null) img = ImageTools.makeBuffered(image, cm); else img = ImageTools.makeBuffered(image);...
public void save(String id, Image image, boolean last) throws FormatException, IOException { if (image == null) { throw new FormatException("Image is null"); } BufferedImage img = null; if (cm != null) img = ImageTools.makeBuffered(image, cm); else img = ImageTools.makeBuffered(image);...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/hints/MarkOverriddenTaskFactory.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/hints/MarkOverriddenTaskFactory.java index f915ff7c..7aeed9d5 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/hints/MarkOverriddenTaskFactory.ja...
false
true
protected CancellableTask<CompilationInfo> createTask(final FileObject file) { final Collection<Element> classes = new HashSet<Element>(); final Map<Element, List<MethodSymbol>> overriddenMethods = new HashMap<Element, List<MethodSymbol>>(); final Collection<OverriddeAnnotation> addedAnotati...
protected CancellableTask<CompilationInfo> createTask(final FileObject file) { final Collection<Element> classes = new HashSet<Element>(); final Map<Element, List<MethodSymbol>> overriddenMethods = new HashMap<Element, List<MethodSymbol>>(); final Collection<OverriddeAnnotation> addedAnotati...
diff --git a/src/org/fox/ttrss/ApiRequest.java b/src/org/fox/ttrss/ApiRequest.java index d1b832c..bea5ce5 100644 --- a/src/org/fox/ttrss/ApiRequest.java +++ b/src/org/fox/ttrss/ApiRequest.java @@ -1,250 +1,250 @@ package org.fox.ttrss; import java.io.BufferedReader; import java.io.IOException; import java.io.Inpu...
true
true
protected JsonElement doInBackground(HashMap<String, String>... params) { Gson gson = new Gson(); String requestStr = gson.toJson(new HashMap<String,String>(params[0])); if (m_transportDebugging) Log.d(TAG, ">>> (" + requestStr + ") " + m_api); DefaultHttpClient client; if (m_trustAny) { Sche...
protected JsonElement doInBackground(HashMap<String, String>... params) { Gson gson = new Gson(); String requestStr = gson.toJson(new HashMap<String,String>(params[0])); if (m_transportDebugging) Log.d(TAG, ">>> (" + requestStr + ") " + m_api); DefaultHttpClient client; if (m_trustAny) { Sche...
diff --git a/javasrc/src/org/ccnx/ccn/profiles/security/access/KeyCache.java b/javasrc/src/org/ccnx/ccn/profiles/security/access/KeyCache.java index 2f7e6d5f2..474cc4e9e 100644 --- a/javasrc/src/org/ccnx/ccn/profiles/security/access/KeyCache.java +++ b/javasrc/src/org/ccnx/ccn/profiles/security/access/KeyCache.java @@ ...
true
true
public void loadKeyStore(KeyStoreInfo keyStoreInfo, char [] password, KeyRepository publicKeyCache) throws KeyStoreException { Enumeration<String> aliases = keyStoreInfo.getKeyStore().aliases(); String alias; KeyStore.PrivateKeyEntry entry = null; KeyStore.PasswordProtection passwordProtection = new KeyStore.P...
public void loadKeyStore(KeyStoreInfo keyStoreInfo, char [] password, KeyRepository publicKeyCache) throws KeyStoreException { Enumeration<String> aliases = keyStoreInfo.getKeyStore().aliases(); String alias; KeyStore.PrivateKeyEntry entry = null; KeyStore.PasswordProtection passwordProtection = new KeyStore.P...
diff --git a/src/main/java/net/daboross/bukkitdev/fixstrength/FixStrength.java b/src/main/java/net/daboross/bukkitdev/fixstrength/FixStrength.java index 4ff6429..48842a3 100644 --- a/src/main/java/net/daboross/bukkitdev/fixstrength/FixStrength.java +++ b/src/main/java/net/daboross/bukkitdev/fixstrength/FixStrength.java...
true
true
public void onHit(EntityDamageByEntityEvent evt) { if (!evt.isCancelled()) { if (evt.getDamager() instanceof Player) { double addition = 0; double multiplication = 1; Player player = (Player) evt.getDamager(); for (PotionEffect potionEffect : player.getActivePotionEffects()) { if (potionEffec...
public void onHit(EntityDamageByEntityEvent evt) { if (!evt.isCancelled()) { if (evt.getDamager() instanceof Player) { double addition = 0; double multiplication = 1; Player player = (Player) evt.getDamager(); for (PotionEffect potionEffect : player.getActivePotionEffects()) { if (potionEffec...
diff --git a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/FabricServiceImpl.java b/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/FabricServiceImpl.java index eec6332b7..e45054604 100644 --- a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/FabricServiceImpl.java +++ ...
true
true
public Container[] createContainers(final CreateContainerOptions options) { Container[] containers = new Container[options.getNumber()]; if (options.getZookeeperUrl() == null && !options.isDebugContainer()) { options.setZookeeperUrl(getZookeeperUrl()); } if (options.get...
public Container[] createContainers(final CreateContainerOptions options) { Container[] containers = new Container[options.getNumber()]; if (options.getZookeeperUrl() == null && !options.isDebugContainer()) { options.setZookeeperUrl(getZookeeperUrl()); } if (options.get...
diff --git a/client/ui/src/main/java/de/objectcode/time4u/client/ui/preferences/UIPreferencesPage.java b/client/ui/src/main/java/de/objectcode/time4u/client/ui/preferences/UIPreferencesPage.java index aa2b3327..1f1946b1 100644 --- a/client/ui/src/main/java/de/objectcode/time4u/client/ui/preferences/UIPreferencesPage.ja...
true
true
protected void createFieldEditors() { addField(new BooleanFieldEditor(PreferenceConstants.UI_SHOW_TRAY_ICON, "Show &Tray icon", getFieldEditorParent())); final IntegerFieldEditor taskHistory = new IntegerFieldEditor(PreferenceConstants.UI_TASK_HISTORY_SIZE, "&Task histroy size", getFieldEditorParen...
protected void createFieldEditors() { addField(new BooleanFieldEditor(PreferenceConstants.UI_SHOW_TRAY_ICON, "Show &Tray icon", getFieldEditorParent())); final IntegerFieldEditor taskHistory = new IntegerFieldEditor(PreferenceConstants.UI_TASK_HISTORY_SIZE, "&Task history size", getFieldEditorParen...
diff --git a/biz.aQute.bndlib/src/aQute/lib/osgi/CommandResource.java b/biz.aQute.bndlib/src/aQute/lib/osgi/CommandResource.java index 3c30308ee..c9e3c8a4f 100644 --- a/biz.aQute.bndlib/src/aQute/lib/osgi/CommandResource.java +++ b/biz.aQute.bndlib/src/aQute/lib/osgi/CommandResource.java @@ -1,67 +1,69 @@ /* * Copyr...
false
true
public void write(OutputStream out) throws IOException, Exception { StringBuilder errors = new StringBuilder(); StringBuilder stdout = new StringBuilder(); try { Command cmd = new Command("sh -l"); cmd.inherit(); String oldpath = cmd.var("PATH"); String path = domain.getProperty("PATH"); if (p...
public void write(OutputStream out) throws IOException, Exception { StringBuilder errors = new StringBuilder(); StringBuilder stdout = new StringBuilder(); try { domain.trace("executing command %s", command); Command cmd = new Command("sh -l"); cmd.inherit(); String oldpath = cmd.var("PATH"); ...
diff --git a/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0079Test.java b/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0079Test.java index 7c7233752..2fd8bf82b 100644 --- a/maven-core-integration-tests/src/test/java/org/apache/maven/integrati...
true
true
public void testit0079() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0079" ); Verifier verifier = new Verifier( testDir.getAbsolutePath() ); verifier.executeGoal( "deploy" ); verifier.assertFilePresent( "target/test-repo/org...
public void testit0079() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0079" ); Verifier verifier = new Verifier( testDir.getAbsolutePath() ); verifier.executeGoal( "deploy" ); verifier.assertFilePresent( "target/test-repo/org...
diff --git a/test/src/org/bouncycastle/jce/provider/test/AlgorithmParametersTest.java b/test/src/org/bouncycastle/jce/provider/test/AlgorithmParametersTest.java index c616c3e8..72f38854 100644 --- a/test/src/org/bouncycastle/jce/provider/test/AlgorithmParametersTest.java +++ b/test/src/org/bouncycastle/jce/provider/tes...
true
true
private void basicTest(String algorithm, Class algorithmParameterSpec, byte[] asn1Encoded) throws Exception { AlgorithmParameters alg = AlgorithmParameters.getInstance(algorithm, "BC"); alg.init(asn1Encoded); try { alg.init(asn1Encoded); fail("en...
private void basicTest(String algorithm, Class algorithmParameterSpec, byte[] asn1Encoded) throws Exception { AlgorithmParameters alg = AlgorithmParameters.getInstance(algorithm, "BC"); alg.init(asn1Encoded); try { alg.init(asn1Encoded); fail("en...
diff --git a/src/main/javassist/bytecode/CodeAttribute.java b/src/main/javassist/bytecode/CodeAttribute.java index 5a423ef..35ab7dd 100644 --- a/src/main/javassist/bytecode/CodeAttribute.java +++ b/src/main/javassist/bytecode/CodeAttribute.java @@ -1,417 +1,419 @@ /* * Javassist, a Java-bytecode translator toolkit. ...
true
true
private static LdcEntry copyCode(byte[] code, int beginPos, int endPos, ConstPool srcCp, byte[] newcode, ConstPool destCp, Map classnameMap) throws BadBytecode { int i2, index; LdcEntry ldcEntry = null; fo...
private static LdcEntry copyCode(byte[] code, int beginPos, int endPos, ConstPool srcCp, byte[] newcode, ConstPool destCp, Map classnameMap) throws BadBytecode { int i2, index; LdcEntry ldcEntry = null; fo...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/taplint/VotLintTapRunner.java b/ttools/src/main/uk/ac/starlink/ttools/taplint/VotLintTapRunner.java index aef13e207..eaadda64a 100644 --- a/ttools/src/main/uk/ac/starlink/ttools/taplint/VotLintTapRunner.java +++ b/ttools/src/main/uk/ac/starlink/ttools/taplint/VotLintTa...
true
true
protected StarTable readResultVOTable( Reporter reporter, InputStream in ) throws IOException, SAXException { /* Set up a SAX event handler to create a DOM. */ VOTableDOMBuilder domHandler = new VOTableDOMBuilder( StoragePolicy.getDefaultPolicy(), true ); /* Set up ...
protected StarTable readResultVOTable( Reporter reporter, InputStream in ) throws IOException, SAXException { /* Set up a SAX event handler to create a DOM. */ VOTableDOMBuilder domHandler = new VOTableDOMBuilder( StoragePolicy.getDefaultPolicy(), true ); /* Set up ...
diff --git a/src/edu/cmu/hcii/novo/kadarbra/ProcedureFactory.java b/src/edu/cmu/hcii/novo/kadarbra/ProcedureFactory.java index 1fff3fb..fb6c71f 100644 --- a/src/edu/cmu/hcii/novo/kadarbra/ProcedureFactory.java +++ b/src/edu/cmu/hcii/novo/kadarbra/ProcedureFactory.java @@ -1,842 +1,842 @@ package edu.cmu.hcii.novo.kada...
true
true
private static Step readStep(XmlPullParser parser) throws XmlPullParserException, IOException { Log.d(TAG, "Parsing step"); String number = null; String text = null; String consequent = null; List<Callout> callouts = new ArrayList<Callout>(); List<ProcedureItem> children = new ArrayList<Proc...
private static Step readStep(XmlPullParser parser) throws XmlPullParserException, IOException { Log.d(TAG, "Parsing step"); String number = null; String text = null; String consequent = null; List<Callout> callouts = new ArrayList<Callout>(); List<ProcedureItem> children = new ArrayList<Proc...
diff --git a/km/com/hifiremote/jp1/DeviceUpgrade.java b/km/com/hifiremote/jp1/DeviceUpgrade.java index 79de4ea..a3dc28b 100644 --- a/km/com/hifiremote/jp1/DeviceUpgrade.java +++ b/km/com/hifiremote/jp1/DeviceUpgrade.java @@ -1,1535 +1,1536 @@ package com.hifiremote.jp1; import java.util.*; import java.io.*; impor...
false
true
public void importUpgrade( BufferedReader in, boolean loadButtons ) throws Exception { String line = in.readLine(); // line 1 String token = line.substring( 0, 5 ); if ( !token.equals( "Name:" )) { JOptionPane.showMessageDialog( KeyMapMaster.getKeyMapMaster(), ...
public void importUpgrade( BufferedReader in, boolean loadButtons ) throws Exception { String line = in.readLine(); // line 1 String token = line.substring( 0, 5 ); if ( !token.equals( "Name:" )) { JOptionPane.showMessageDialog( KeyMapMaster.getKeyMapMaster(), ...
diff --git a/src/ArithmeticOperatorNode.java b/src/ArithmeticOperatorNode.java index fd2c278..30883c0 100644 --- a/src/ArithmeticOperatorNode.java +++ b/src/ArithmeticOperatorNode.java @@ -1,190 +1,190 @@ /* * Implements Semantic checking and code output generation for * Addition and Subtraction. * * Exampl...
true
true
public void checkSemantics() throws Exception { // TODO Auto-generated method stub this.getChildAt(0).checkSemantics(); if (this.getChildCount() > 1) this.getChildAt(1).checkSemantics(); /* * The grammar should look into that only boolean expressions or relational expressions are executed. */ //fo...
public void checkSemantics() throws Exception { // TODO Auto-generated method stub this.getChildAt(0).checkSemantics(); if (this.getChildCount() > 1) this.getChildAt(1).checkSemantics(); /* * The grammar should look into that only boolean expressions or relational expressions are executed. */ //fo...
diff --git a/src/main/java/me/m0r13/maptools/MarkerUpdateTask.java b/src/main/java/me/m0r13/maptools/MarkerUpdateTask.java index fa6beea..bc2ae1e 100644 --- a/src/main/java/me/m0r13/maptools/MarkerUpdateTask.java +++ b/src/main/java/me/m0r13/maptools/MarkerUpdateTask.java @@ -1,77 +1,78 @@ /* * Copyright 2013 Moritz...
true
true
public void writePlayers(Player[] players) { JSONArray playersJson = new JSONArray(); for (Player player : players) { JSONObject json = new JSONObject(); Location pos = player.getLocation(); json.put("username", player.getName()); json.put("x", pos.g...
public void writePlayers(Player[] players) { JSONArray playersJson = new JSONArray(); for (Player player : players) { JSONObject json = new JSONObject(); Location pos = player.getLocation(); World world = player.getWorld(); json.put("username", playe...
diff --git a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/product/BambooProductHandler.java b/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/product/BambooProductHandler.java index aebf4f84..d12da512 100644 --- a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/prod...
true
true
public void processHomeDirectory(final Product ctx, final File homeDir) throws MojoExecutionException { ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "@project-dir@", homeDir.getParent()); ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "/bamboo-home/", "/home/"); ...
public void processHomeDirectory(final Product ctx, final File homeDir) throws MojoExecutionException { ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "@project-dir@", homeDir.getParent()); ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "/bamboo-home/", "/home/"); ...
diff --git a/src/de/dhbw/wbs/Seminarplanung.java b/src/de/dhbw/wbs/Seminarplanung.java index e5267ba..383638c 100644 --- a/src/de/dhbw/wbs/Seminarplanung.java +++ b/src/de/dhbw/wbs/Seminarplanung.java @@ -1,162 +1,162 @@ package de.dhbw.wbs; import java.io.BufferedReader; import java.io.FileNotFoundException; imp...
true
true
public static void main(String[] args) { HashMap<Integer, Lecture> lectures = new HashMap<Integer, Lecture>(); HashMap<Integer, Group> groups = new HashMap<Integer, Group>(); if (args.length != 3) { System.err.println("Expecting three file names as arguments."); System.exit(1); } String lectureFileNa...
public static void main(String[] args) { HashMap<Integer, Lecture> lectures = new HashMap<Integer, Lecture>(); HashMap<Integer, Group> groups = new HashMap<Integer, Group>(); if (args.length != 3) { System.err.println("Expecting three file names as arguments."); System.exit(1); } String lectureFileNa...
diff --git a/deegree-services/deegree-services-commons/src/main/java/org/deegree/services/ows/OWS110ExceptionReportSerializer.java b/deegree-services/deegree-services-commons/src/main/java/org/deegree/services/ows/OWS110ExceptionReportSerializer.java index c40e92905e..40081eadbb 100644 --- a/deegree-services/deegree-se...
true
true
public void serializeExceptionToXML( XMLStreamWriter writer, OWSException ex ) throws XMLStreamException { if ( ex == null || writer == null ) { return; } writer.writeStartElement( "ows", "ExceptionReport", OWS_NS ); writer.writeNamespace( "ows...
public void serializeExceptionToXML( XMLStreamWriter writer, OWSException ex ) throws XMLStreamException { if ( ex == null || writer == null ) { return; } writer.writeStartElement( "ows", "ExceptionReport", OWS_NS ); writer.writeNamespace( "ows...
diff --git a/src/org/joni/Matcher.java b/src/org/joni/Matcher.java index 215f0da..b55b0b4 100644 --- a/src/org/joni/Matcher.java +++ b/src/org/joni/Matcher.java @@ -1,581 +1,581 @@ /* * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation fil...
true
true
public final int search(int start, int range, int option) { int s, prev; int origStart = start; int origRange = range; if (Config.DEBUG_SEARCH) { Config.log.println("onig_search (entry point): "+ "str: " + str + ", end: " + (end...
public final int search(int start, int range, int option) { int s, prev; int origStart = start; int origRange = range; if (Config.DEBUG_SEARCH) { Config.log.println("onig_search (entry point): "+ "str: " + str + ", end: " + (end...
diff --git a/src/com/jcope/vnc/server/screen/Monitor.java b/src/com/jcope/vnc/server/screen/Monitor.java index 8fe2ad1..40ad308 100644 --- a/src/com/jcope/vnc/server/screen/Monitor.java +++ b/src/com/jcope/vnc/server/screen/Monitor.java @@ -1,301 +1,301 @@ package com.jcope.vnc.server.screen; import java.awt.Rectan...
false
true
public void run() { // detect change in a segment of the configured screen // notify all listeners of the changed segment boolean changed; int[] buffer = new int[segInfo.maxSegmentNumPixels]; int[] segmentDim = new int[2]; int x, y; long startAt, timeConsumed; ArrayList<ClientHandler> newClients...
public void run() { // detect change in a segment of the configured screen // notify all listeners of the changed segment boolean changed; int[] buffer = new int[segInfo.maxSegmentNumPixels]; int[] segmentDim = new int[2]; int x, y; long startAt, timeConsumed; ArrayList<ClientHandler> newClients...
diff --git a/gsf-facades/src/main/java/com/fatwire/gst/foundation/facade/runtag/TagRunnerRuntimeException.java b/gsf-facades/src/main/java/com/fatwire/gst/foundation/facade/runtag/TagRunnerRuntimeException.java index 910b11cf..b2cce3b7 100644 --- a/gsf-facades/src/main/java/com/fatwire/gst/foundation/facade/runtag/TagR...
false
true
public String getMessage() { StringBuilder builder = new StringBuilder(); builder.append(super.getMessage()); builder.append("|"); builder.append(arguments); builder.append("|"); builder.append(getPageName()); builder.append("|"); builder.append(getEle...
public String getMessage() { StringBuilder builder = new StringBuilder(); builder.append(super.getMessage()); builder.append("|"); builder.append(arguments); builder.append("|"); builder.append(getPageName()); builder.append("|"); builder.append(getEle...
diff --git a/sahi/src/main/java/com/redhat/qe/jon/sahi/tests/plugins/eap6/domain/DeploymentTest.java b/sahi/src/main/java/com/redhat/qe/jon/sahi/tests/plugins/eap6/domain/DeploymentTest.java index d47f6336..6fbfb83c 100644 --- a/sahi/src/main/java/com/redhat/qe/jon/sahi/tests/plugins/eap6/domain/DeploymentTest.java +++...
true
true
public void deployToServerGroup() { Operations operations = controller.child(war).operations(); Operation op = operations.newOperation("Deploy to Server-Group"); sahiTasks.radio(serverGroup.getName()).check(); sahiTasks.waitFor(waitTime); op.assertRequiredInputs(); op.schedule(); operations.assertOpe...
public void deployToServerGroup() { Operations operations = controller.child(war).operations(); Operation op = operations.newOperation("Assign to Server-Group"); sahiTasks.radio(serverGroup.getName()).check(); sahiTasks.waitFor(waitTime); op.assertRequiredInputs(); op.schedule(); operations.assertOpe...
diff --git a/src/main/java/org/train/state/GameState.java b/src/main/java/org/train/state/GameState.java index 412584e..f515405 100644 --- a/src/main/java/org/train/state/GameState.java +++ b/src/main/java/org/train/state/GameState.java @@ -1,268 +1,263 @@ package org.train.state; import java.awt.Dimension; import...
true
true
public void update(final GameContainer container, final StateBasedGame game, int delta) throws SlickException { Input input = container.getInput(); if (!this.menu.isShowed() && input.isKeyPressed(Input.KEY_ESCAPE) && !this.level.isFinished() && !this.level.isOver()) { ...
public void update(final GameContainer container, final StateBasedGame game, int delta) throws SlickException { Input input = container.getInput(); if (!this.menu.isShowed() && input.isKeyPressed(Input.KEY_ESCAPE) && !this.level.isFinished() && !this.level.isOver()) { ...
diff --git a/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java b/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java index 40cbbfedf..8b3afa953 100644 --- a/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java +++ b/signserver/src/java/org/signserver/ejb/WorkerSessionBean.java @@ -1,433 +...
true
true
public ProcessResponse process(int workerId, ProcessRequest request, RequestContext requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException { log.debug(">process: "+workerId); IWorker worker = WorkerFactory.getInstance().getWorker(workerId, workerConfigService, globalConf...
public ProcessResponse process(int workerId, ProcessRequest request, RequestContext requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException { log.debug(">process: "+workerId); IWorker worker = WorkerFactory.getInstance().getWorker(workerId, workerConfigService, globalConf...
diff --git a/src/uk/ac/cam/db538/dexter/dex/method/DexMethodWithCode.java b/src/uk/ac/cam/db538/dexter/dex/method/DexMethodWithCode.java index 6a3954a3..80401677 100644 --- a/src/uk/ac/cam/db538/dexter/dex/method/DexMethodWithCode.java +++ b/src/uk/ac/cam/db538/dexter/dex/method/DexMethodWithCode.java @@ -1,219 +1,223 ...
true
true
protected CodeItem generateCodeItem(DexFile outFile, DexAssemblingCache cache) { // do register allocation // note that this changes the code itself // (adds temporaries, inserts move instructions) val codeColoring = new GraphColoring(code); // changes the code itself (potentially) // add paramet...
protected CodeItem generateCodeItem(DexFile outFile, DexAssemblingCache cache) { // do register allocation // note that this changes the code itself // (adds temporaries, inserts move instructions) val codeColoring = new GraphColoring(code); // changes the code itself (potentially) // add paramet...
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitJob.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitJob.java index 601a674e..38613b15 100644 --- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitJob...
true
true
public static IStatus getJGitInternalExceptionStatus(JGitInternalException e, String message) { JSchException jschEx = getJSchException(e); if (jschEx != null && jschEx instanceof HostFingerprintException) { HostFingerprintException cause = (HostFingerprintException) jschEx; return new ServerStatus(IStatus.E...
public static IStatus getJGitInternalExceptionStatus(JGitInternalException e, String message) { JSchException jschEx = getJSchException(e); if (jschEx != null && jschEx instanceof HostFingerprintException) { HostFingerprintException cause = (HostFingerprintException) jschEx; return new ServerStatus(IStatus.E...
diff --git a/ext/java/nokogiri/XmlNode.java b/ext/java/nokogiri/XmlNode.java index 8eab2596..263fdbd8 100644 --- a/ext/java/nokogiri/XmlNode.java +++ b/ext/java/nokogiri/XmlNode.java @@ -1,801 +1,813 @@ package nokogiri; import nokogiri.internals.NokogiriHelpers; import nokogiri.internals.XmlNodeImpl; import java...
false
true
public IRubyObject native_write_to(ThreadContext context, IRubyObject[] args) {//IRubyObject io, IRubyObject encoding, IRubyObject indentString, IRubyObject options) { IRubyObject io = args[0]; IRubyObject encoding = args[1]; IRubyObject indentString = args[2]; IRubyObject options = ...
public IRubyObject native_write_to(ThreadContext context, IRubyObject[] args) {//IRubyObject io, IRubyObject encoding, IRubyObject indentString, IRubyObject options) { IRubyObject io = args[0]; IRubyObject encoding = args[1]; IRubyObject indentString = args[2]; IRubyObject options = ...
diff --git a/src/test/java/net/codjo/tools/github/GithubCommandToolTest.java b/src/test/java/net/codjo/tools/github/GithubCommandToolTest.java index 7df839e..13409ea 100644 --- a/src/test/java/net/codjo/tools/github/GithubCommandToolTest.java +++ b/src/test/java/net/codjo/tools/github/GithubCommandToolTest.java @@ -1,2...
true
true
public void test_postIssue() throws Exception { final String issueTitle = "myFirstIssue"; File issueContentFile = new File(getClass().getResource("/" + issueTitle).toURI()); String[] args = new String[]{"postIssue", "codjo", "password", "monRepo", issueTitle, "closed", ...
public void test_postIssue() throws Exception { final String issueTitle = "myFirstIssue"; File issueContentFile = new File(getClass().getResource("/" + issueTitle).toURI()); String[] args = new String[]{"postIssue", "codjo", "password", "monRepo", issueTitle, "closed", ...
diff --git a/HelloWorld/src/com/Rally/demo/Start.java b/HelloWorld/src/com/Rally/demo/Start.java index 038f459..3a2a14e 100644 --- a/HelloWorld/src/com/Rally/demo/Start.java +++ b/HelloWorld/src/com/Rally/demo/Start.java @@ -1,14 +1,14 @@ package com.Rally.demo; public class Start { /** * @param args */ ...
true
true
public static void main(String[] args) { // TODO Auto-generated method stub // This is java System.out.println("Hello..."); }
public static void main(String[] args) { // TODO Auto-generated method stub // This is java System.out.println("Hello."); }
diff --git a/reactor-spring/src/main/java/reactor/spring/context/ConsumerBeanPostProcessor.java b/reactor-spring/src/main/java/reactor/spring/context/ConsumerBeanPostProcessor.java index 91ca16ad..25a7b1e0 100644 --- a/reactor-spring/src/main/java/reactor/spring/context/ConsumerBeanPostProcessor.java +++ b/reactor-spri...
true
true
public Object postProcessBeforeInitialization(final Object bean, String beanName) throws BeansException { ReflectionUtils.doWithMethods( bean.getClass(), new ReflectionUtils.MethodCallback() { @Override public void doWith(final Method method) throws Il...
public Object postProcessBeforeInitialization(final Object bean, String beanName) throws BeansException { ReflectionUtils.doWithMethods( bean.getClass(), new ReflectionUtils.MethodCallback() { @Override public void doWith(final Method method) throws Il...
diff --git a/src/main/java/net/krinsoft/privileges/commands/ListCommand.java b/src/main/java/net/krinsoft/privileges/commands/ListCommand.java index 536b8bf..c60bae0 100644 --- a/src/main/java/net/krinsoft/privileges/commands/ListCommand.java +++ b/src/main/java/net/krinsoft/privileges/commands/ListCommand.java @@ -1,1...
false
true
public void runCommand(CommandSender sender, List<String> args) { CommandSender target = sender; String name = "Console"; int pageNum = 0; List<String> list = new ArrayList<String>(); if (args.size() == 1) { try { pageNum = Integer.parseInt(args.ge...
public void runCommand(CommandSender sender, List<String> args) { CommandSender target = sender; String name = "Console"; int pageNum = 0; List<String> list = new ArrayList<String>(); if (args.size() == 1) { try { pageNum = Integer.parseInt(args.ge...
diff --git a/src/main/edu/iastate/music/marching/attendance/servlets/FormsServlet.java b/src/main/edu/iastate/music/marching/attendance/servlets/FormsServlet.java index 9a329fe2..6258bd55 100644 --- a/src/main/edu/iastate/music/marching/attendance/servlets/FormsServlet.java +++ b/src/main/edu/iastate/music/marching/att...
false
true
private void handleFormB(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String department = null; String course = null; String section = null; String building = null; Date startDate = null; Date endDate = null; Date fromTime = null; Date toTime = null; int...
private void handleFormB(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String department = null; String course = null; String section = null; String building = null; Date startDate = null; Date endDate = null; Date fromTime = null; Date toTime = null; int...
diff --git a/src/info/guardianproject/otr/app/im/ui/AccountWizardActivity.java b/src/info/guardianproject/otr/app/im/ui/AccountWizardActivity.java index ab491374..6fedc47f 100644 --- a/src/info/guardianproject/otr/app/im/ui/AccountWizardActivity.java +++ b/src/info/guardianproject/otr/app/im/ui/AccountWizardActivity.ja...
true
true
private void parseAccount () { boolean isGood = false; EditText editAccountId = ((EditText)findViewById(R.id.edit1)); editAccountId.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);// | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); accountId = editAccountId.getText().toString(); String[] split = ...
private void parseAccount () { boolean isGood = false; EditText editAccountId = ((EditText)findViewById(R.id.edit1)); // InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS would also be nice but Android 2.x only editAccountId.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS); accountId = editAccountId...
diff --git a/src/main/java/javax/time/period/field/PeriodField.java b/src/main/java/javax/time/period/field/PeriodField.java index 27d9995a..b1dd191f 100644 --- a/src/main/java/javax/time/period/field/PeriodField.java +++ b/src/main/java/javax/time/period/field/PeriodField.java @@ -1,233 +1,233 @@ /* * Copyright (c)...
true
true
public boolean equals(Object other) { if (this == other) { return true; } if (other instanceof PeriodView) { PeriodView otherPeriod = (PeriodView) other; return getPeriodViewMap().equals(otherPeriod); } return false; }
public boolean equals(Object other) { if (this == other) { return true; } if (other instanceof PeriodView) { PeriodView otherPeriod = (PeriodView) other; return getPeriodViewMap().equals(otherPeriod.getPeriodViewMap()); } return false; }...
diff --git a/src/main/java/com/haakenstad/potwater/scheduler/PotwaterScheduler.java b/src/main/java/com/haakenstad/potwater/scheduler/PotwaterScheduler.java index f25deae..bfcd1fe 100644 --- a/src/main/java/com/haakenstad/potwater/scheduler/PotwaterScheduler.java +++ b/src/main/java/com/haakenstad/potwater/scheduler/Po...
true
true
public static void main(String[] args) throws Exception { System.out.println("*********** Starting PotWater ****************"); System.out.println("Args:" + StringUtils.join(args)); boolean debug = false; if (args.length > 0) { if ("debug".equalsIgnoreCase(args[0])) { ...
public static void main(String[] args) throws Exception { System.out.println("*********** Starting PotWater ****************"); System.out.println("Args:" + StringUtils.join(args)); boolean debug = false; if (args.length > 0) { if ("debug".equalsIgnoreCase(args[0])) { ...
diff --git a/src/main/java/hudson/ivy/IvyModuleSet.java b/src/main/java/hudson/ivy/IvyModuleSet.java index 36352f8..c58f1aa 100644 --- a/src/main/java/hudson/ivy/IvyModuleSet.java +++ b/src/main/java/hudson/ivy/IvyModuleSet.java @@ -1,733 +1,733 @@ /* * The MIT License * * Copyright (c) 2004-2009, Sun Microsyste...
true
true
protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req,rsp); JSONObject json = req.getSubmittedForm(); ignoreUpstreamChanges = !json.has("triggerByDependency"); ivyFilePattern = Util.fixEmptyAndTrim(json....
protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req,rsp); JSONObject json = req.getSubmittedForm(); ignoreUpstreamChanges = !json.has("triggerByDependency"); ivyFilePattern = Util.fixEmptyAndTrim(json....
diff --git a/src/main/java/de/lemo/dms/processing/questions/QPerformanceHistogram.java b/src/main/java/de/lemo/dms/processing/questions/QPerformanceHistogram.java index 93cfc6b3..b37c3a99 100644 --- a/src/main/java/de/lemo/dms/processing/questions/QPerformanceHistogram.java +++ b/src/main/java/de/lemo/dms/processing/qu...
false
true
public ResultListLongObject compute( @FormParam(COURSE_IDS) List<Long> courses, @FormParam(USER_IDS) List<Long> users, @FormParam(QUIZ_IDS) List<Long> quizzes, @FormParam(RESOLUTION) int resolution, @FormParam(START_TIME) Long startTime, @FormParam(END_TIME) Long endTime) { ...
public ResultListLongObject compute( @FormParam(COURSE_IDS) List<Long> courses, @FormParam(USER_IDS) List<Long> users, @FormParam(QUIZ_IDS) List<Long> quizzes, @FormParam(RESOLUTION) int resolution, @FormParam(START_TIME) Long startTime, @FormParam(END_TIME) Long endTime) { ...
diff --git a/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java b/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java index d6493443..617c32cd 100644 --- a/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java +++ b/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java @@ -1,217 +1,217 ...
true
true
public Marker createMarker(WayPoint wpt, File relativePath, MarkerLayer parentLayer, double time, double offset) { String uri = null; // cheapest way to check whether "link" object exists and is a non-empty // collection of GpxLink objects... try { for (GpxLink oneLink : (Collection<GpxLink>) wp...
public Marker createMarker(WayPoint wpt, File relativePath, MarkerLayer parentLayer, double time, double offset) { String uri = null; // cheapest way to check whether "link" object exists and is a non-empty // collection of GpxLink objects... try { for (GpxLink oneLink : (Collection<GpxLink>) wp...
diff --git a/src/ca/uwaterloo/joos/weeder/IntegerChecker.java b/src/ca/uwaterloo/joos/weeder/IntegerChecker.java index c2b9f63..01abd07 100644 --- a/src/ca/uwaterloo/joos/weeder/IntegerChecker.java +++ b/src/ca/uwaterloo/joos/weeder/IntegerChecker.java @@ -1,56 +1,59 @@ /** * */ package ca.uwaterloo.joos.weeder;...
false
true
private void checkIntRange(String intString, String intergerThreshold) throws Exception { if (intString.length() == intergerThreshold.length()) { for (int i = 0; i < intergerThreshold.length(); i++) { if ((int) intString.charAt(i) > (int) intergerThreshold.charAt(i)) { throw new Exception("Interger out...
private void checkIntRange(String intString, String intergerThreshold) throws Exception { if (intString.length() == intergerThreshold.length()) { for (int i = 0; i < intergerThreshold.length(); i++) { if ((int) intString.charAt(i) > (int) intergerThreshold.charAt(i)) { throw new Exception(intString + "...
diff --git a/src/org/ojim/client/ai/valuation/Valuator.java b/src/org/ojim/client/ai/valuation/Valuator.java index e37534b..df72465 100644 --- a/src/org/ojim/client/ai/valuation/Valuator.java +++ b/src/org/ojim/client/ai/valuation/Valuator.java @@ -1,411 +1,412 @@ /* Copyright (C) 2010 - 2011 Fabian Neundorf, Philip...
true
true
public Command returnBestCommand(int position) { assert(this.getNumberOfGetOutOfJailCards(playerID) == 0); assert (position >= 0); Field field = getGameState().getFieldAt(Math.abs(position)); for (ValuationFunction function : valuationFunctions) { assert (function != null); function.setParameters(logic);...
public Command returnBestCommand(int position) { assert(this.getNumberOfGetOutOfJailCards(playerID) == 0); assert (position >= 0); Field field = getGameState().getFieldAt(Math.abs(position)); for (ValuationFunction function : valuationFunctions) { assert (function != null); function.setParameters(logic);...
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refresh/DartPackagesFolderMatcher.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refresh/DartPackagesFolderMatcher.java index 1228cd15..46d6de62 100644 --- a/editor/tools/plugins/com.google...
false
true
public boolean matches(IContainer parent, IFileInfo fileInfo) throws CoreException { // suppress self link // TODO(keertip): this does not work on Windows, replace it. if (!DartCore.isWindows() && parent.getParent() != null && parent.getParent().getName().equals(DartCore.PACKAGES_DIRECTORY_NAME)...
public boolean matches(IContainer parent, IFileInfo fileInfo) throws CoreException { // suppress self link - test for self link only in pacakges that is next to pubspec.yaml // TODO(keertip): this does not work on Windows, replace it. if (!DartCore.isWindows() && parent.getParent() != null) { ICont...
diff --git a/src/main/java/com/xebialabs/overthere/cifs/winrm/WinRmClient.java b/src/main/java/com/xebialabs/overthere/cifs/winrm/WinRmClient.java index 7f5a977..e7b75a2 100644 --- a/src/main/java/com/xebialabs/overthere/cifs/winrm/WinRmClient.java +++ b/src/main/java/com/xebialabs/overthere/cifs/winrm/WinRmClient.java...
true
true
private void getCommandOutput(OverthereProcessOutputHandler handler) { logger.debug("getCommandOutput shellId {} commandId {} ", shellId, commandId); final Element bodyContent = DocumentHelper.createElement(QName.get("Receive", NS_WIN_SHELL)); bodyContent.addElement(QName.get("DesiredStream"...
private void getCommandOutput(OverthereProcessOutputHandler handler) { logger.debug("getCommandOutput shellId {} commandId {} ", shellId, commandId); final Element bodyContent = DocumentHelper.createElement(QName.get("Receive", NS_WIN_SHELL)); bodyContent.addElement(QName.get("DesiredStream"...
diff --git a/src/com/bretth/osmosis/core/TaskRegistrar.java b/src/com/bretth/osmosis/core/TaskRegistrar.java index 9755bf9d..9a843e61 100644 --- a/src/com/bretth/osmosis/core/TaskRegistrar.java +++ b/src/com/bretth/osmosis/core/TaskRegistrar.java @@ -1,185 +1,185 @@ // License: GPL. Copyright 2007-2008 by Brett Hender...
true
true
public static void initialize() { EntitySorterFactory entitySorterFactory05; ChangeSorterFactory changeSorterFactory05; // Configure factories that require additional information. entitySorterFactory05 = new EntitySorterFactory(); entitySorterFactory05.registerComparator("TypeThenId", new EntityByTypeThen...
public static void initialize() { EntitySorterFactory entitySorterFactory05; ChangeSorterFactory changeSorterFactory05; // Configure factories that require additional information. entitySorterFactory05 = new EntitySorterFactory(); entitySorterFactory05.registerComparator("TypeThenId", new EntityByTypeThen...
diff --git a/src/com/cole2sworld/ColeBans/GlobalConf.java b/src/com/cole2sworld/ColeBans/GlobalConf.java index 3729821..e387292 100644 --- a/src/com/cole2sworld/ColeBans/GlobalConf.java +++ b/src/com/cole2sworld/ColeBans/GlobalConf.java @@ -1,273 +1,273 @@ package com.cole2sworld.ColeBans; import java.io.File; imp...
false
true
public static void loadConfig() throws RuntimeException { File confFile = new File("./plugins/ColeBans/config.yml"); try { if (confFile.exists()) { conf.load(confFile); try { settings = conf.getConfigurationSection("settings"); allowTempBans = settings.getBoolean("allowTempBans"); banMess...
public static void loadConfig() throws RuntimeException { File confFile = new File("./plugins/ColeBans/config.yml"); try { if (confFile.exists()) { conf.load(confFile); try { settings = conf.getConfigurationSection("settings"); allowTempBans = settings.getBoolean("allowTempBans"); banMess...
diff --git a/framework/src/play/i18n/Lang.java b/framework/src/play/i18n/Lang.java index bf79156c..bb99aca5 100644 --- a/framework/src/play/i18n/Lang.java +++ b/framework/src/play/i18n/Lang.java @@ -1,157 +1,157 @@ package play.i18n; import java.util.Locale; import play.Logger; import play.Play; import play.mvc....
true
true
private static void resolvefrom(Request request) { // Check a cookie String cn = Play.configuration.getProperty("application.lang.cookie", "PLAY_LANG"); if (request.cookies.containsKey(cn)) { String localeFromCookie = request.cookies.get(cn).value; if (localeFromCooki...
private static void resolvefrom(Request request) { // Check a cookie String cn = Play.configuration.getProperty("application.lang.cookie", "PLAY_LANG"); if (request.cookies.containsKey(cn)) { String localeFromCookie = request.cookies.get(cn).value; if (localeFromCooki...
diff --git a/src/ch06/pp6_11/LinesPanel.java b/src/ch06/pp6_11/LinesPanel.java index e748bce..4333f34 100644 --- a/src/ch06/pp6_11/LinesPanel.java +++ b/src/ch06/pp6_11/LinesPanel.java @@ -1,61 +1,61 @@ /* Copyright (C) 2013 Travis Mosley <tprowx@gmail.com> * * PP 6.11 Design and implement a program that draws 20...
true
true
public void paintComponent(Graphics page) { super.paintComponent(page); int lines_drawn = 0; int x = 0; int line_height; page.setColor(Color.white); while(lines_drawn < 20) { goddamn_solution = gen.nextInt(MAX_LENGTH+2) + 2; page.fillRect(x, window_dim_y+line_height, 2, line_h...
public void paintComponent(Graphics page) { super.paintComponent(page); int lines_drawn = 0; int x = 0; int line_height; page.setColor(Color.white); while(lines_drawn < 20) { line_height = gen.nextInt(MAX_LENGTH+2) + 2; page.fillRect(x, window_dim_y+line_height, 2, line_height...
diff --git a/AI.java b/AI.java index fa3b0e2..e536f24 100644 --- a/AI.java +++ b/AI.java @@ -1,287 +1,287 @@ import java.awt.Point; import java.util.*; import java.util.ArrayList; import java.util.List; import java.util.Random; public class AI { AI() {} static private final int BLACKPIECE = -1; ...
false
true
static ArrayList<Move> getValidMoves(int[][] gameState) {//{{{ int movingColor = 0; int fwdColor = 0; int bkwdColor = 0; ArrayList<Point> blackPawnLocations = new ArrayList<Point>(); ArrayList<Move> validMoves = new ArrayList<Move>(); //For our current board, we want to fi...
static ArrayList<Move> getValidMoves(int[][] gameState) {//{{{ int movingColor = 0; int fwdColor = 0; int bkwdColor = 0; ArrayList<Point> blackPawnLocations = new ArrayList<Point>(); ArrayList<Move> validMoves = new ArrayList<Move>(); //For our current board, we want to fi...
diff --git a/src/Quote.java b/src/Quote.java index 19b7035..e6d363d 100644 --- a/src/Quote.java +++ b/src/Quote.java @@ -1,121 +1,121 @@ import java.sql.Date; import java.sql.SQLException; import plugin.PluginTemp; import program.Database; import program.IRC; public class Quote implements PluginTemp { ...
true
true
public void onMessage(String in_str) { String temp[] = in_str.split(":"), message, host, user, channel; message = temp[2]; temp = temp[1].split("!"); user = temp[0]; temp = temp[1].split(" "); host = temp[0]; channel = temp[2]; try { if (message.matches("^[A-Za-z0-9]+([\\+]){2,2}")) { ...
public void onMessage(String in_str) { String temp[] = in_str.split(":"), message, host, user, channel; message = temp[2]; temp = temp[1].split("!"); user = temp[0]; temp = temp[1].split(" "); host = temp[0]; channel = temp[2]; try { if (message.matches("^[A-Za-z0-9]+([\\+]){2,2}")) { ...
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/common/ConsoleProgressDialog.java b/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/common/ConsoleProgressDialog.java index f1fb608b7d..5b775470e9 100644 --- a/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/common/ConsoleProgres...
true
true
public ConsoleProgressDialog(String title, ConsoleProcess consoleProcess, String initialOutput, Integer exitCode, CryptoServerOperations server) { if (consoleProcess == null && exi...
public ConsoleProgressDialog(String title, ConsoleProcess consoleProcess, String initialOutput, Integer exitCode, CryptoServerOperations server) { if (consoleProcess == null && exi...
diff --git a/src/java/org/rapidcontext/core/data/DynamicObject.java b/src/java/org/rapidcontext/core/data/DynamicObject.java index 6f79ae3..6970012 100644 --- a/src/java/org/rapidcontext/core/data/DynamicObject.java +++ b/src/java/org/rapidcontext/core/data/DynamicObject.java @@ -1,61 +1,61 @@ /* * RapidContext <htt...
true
true
public DynamicObject(String type) { dict.add(KEY_TYPE, type); }
protected DynamicObject(String type) { dict.add(KEY_TYPE, type); }
diff --git a/Tools/org.jcryptool.doc.tools/src/org/jcryptool/algorithms/AlgorithmParser.java b/Tools/org.jcryptool.doc.tools/src/org/jcryptool/algorithms/AlgorithmParser.java index 1b8f1c2..1f2b947 100644 --- a/Tools/org.jcryptool.doc.tools/src/org/jcryptool/algorithms/AlgorithmParser.java +++ b/Tools/org.jcryptool.doc...
false
true
public static void main(String[] args) throws XPathExpressionException, SAXException, IOException, ParseException, ParserConfigurationException{ CommandLineParser cmdParser = new PosixParser(); Options options = new Options(); options.addOption("help", false, "prints this message"); options.addOption("in",...
public static void main(String[] args) throws XPathExpressionException, SAXException, IOException, ParseException, ParserConfigurationException{ CommandLineParser cmdParser = new PosixParser(); Options options = new Options(); options.addOption("help", false, "prints this message"); options.addOption("in",...
diff --git a/src/main/java/com/impetus/kundera/cassandra/ColumnFamilyDataAccessor.java b/src/main/java/com/impetus/kundera/cassandra/ColumnFamilyDataAccessor.java index 06f4a919e..f0eeffb1f 100644 --- a/src/main/java/com/impetus/kundera/cassandra/ColumnFamilyDataAccessor.java +++ b/src/main/java/com/impetus/kundera/cas...
false
true
private <E> E fromThriftRow(Class<E> clazz, EntityMetadata m, BaseDataAccessor.ThriftRow<SuperColumn> cr) throws Exception { // Instantiate a new instance E e = clazz.newInstance(); // Set row-key. Note: @Id is always String. PropertyAccessorHelper.set(e, m.getIdPro...
private <E> E fromThriftRow(Class<E> clazz, EntityMetadata m, BaseDataAccessor.ThriftRow<SuperColumn> cr) throws Exception { // Instantiate a new instance E e = clazz.newInstance(); // Set row-key. Note: @Id is always String. PropertyAccessorHelper.set(e, m.getIdPro...
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 29b62957..93933f1b 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -1,585 +1,575 @@ /* * Copyright (C) 2008 The An...
false
true
public SuggestedWords.Builder getSuggestedWordBuilder(final View view, final WordComposer wordComposer, CharSequence prevWordForBigram, final ProximityInfo proximityInfo) { LatinImeLogger.onStartSuggestion(prevWordForBigram); mAutoCorrection.init(); mIsFirstCharCapita...
public SuggestedWords.Builder getSuggestedWordBuilder(final View view, final WordComposer wordComposer, CharSequence prevWordForBigram, final ProximityInfo proximityInfo) { LatinImeLogger.onStartSuggestion(prevWordForBigram); mAutoCorrection.init(); mIsFirstCharCapita...
diff --git a/TargetClassification/src/featureselection/BackwardsElimination.java b/TargetClassification/src/featureselection/BackwardsElimination.java index fc3d2ae..ca6cf56 100644 --- a/TargetClassification/src/featureselection/BackwardsElimination.java +++ b/TargetClassification/src/featureselection/BackwardsEliminat...
false
true
public static void main(String[] args) { // Required inputs. String inputLocation = args[0]; // The location of the file containing the dataset to use in the feature selection. File inputFile = new File(inputLocation); if (!inputFile.isFile()) { System.out.println("The first argument must be a valid fil...
public static void main(String[] args) { // Required inputs. String inputLocation = args[0]; // The location of the file containing the dataset to use in the feature selection. File inputFile = new File(inputLocation); if (!inputFile.isFile()) { System.out.println("The first argument must be a valid fil...
diff --git a/src/com/hdweiss/codemap/view/CodeMapView.java b/src/com/hdweiss/codemap/view/CodeMapView.java index 054772e..0d31197 100644 --- a/src/com/hdweiss/codemap/view/CodeMapView.java +++ b/src/com/hdweiss/codemap/view/CodeMapView.java @@ -1,195 +1,196 @@ package com.hdweiss.codemap.view; import java.util.Arra...
true
true
public boolean moveMapFragmentToEmptyPosition(CodeMapFunction function) { Rect rect = new Rect(); function.getDrawingRect(rect); final int offset = 5; boolean foundEmpty = false; while (foundEmpty == false) { foundEmpty = true; for (CodeMapFunction view : views) { Log.d("CodeMap", "Comparing " +...
public boolean moveMapFragmentToEmptyPosition(CodeMapFunction function) { Rect rect = function.getBounds(); rect.bottom += 1; rect.right += 1; final int offset = 5; boolean foundEmpty = false; while (foundEmpty == false) { foundEmpty = true; for (CodeMapFunction view : views) { Log.d("CodeMap"...
diff --git a/src/main/java/com/authdb/scripts/forum/MyBB.java b/src/main/java/com/authdb/scripts/forum/MyBB.java index 0026fe2..5eeaadd 100644 --- a/src/main/java/com/authdb/scripts/forum/MyBB.java +++ b/src/main/java/com/authdb/scripts/forum/MyBB.java @@ -1,102 +1,103 @@ /** (C) Copyright 2011 CraftFire <dev@craftfi...
true
true
public static void adduser(int checkid, String player, String email, String password, String ipAddress) throws SQLException { if (checkid == 1) { long timestamp = System.currentTimeMillis()/1000; String salt = Encryption.hash(8, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0...
public static void adduser(int checkid, String player, String email, String password, String ipAddress) throws SQLException { if (checkid == 1) { long timestamp = System.currentTimeMillis()/1000; String salt = Encryption.hash(8, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0...
diff --git a/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java b/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java index 3bcd15b80..72c03e1e7 100644 --- a/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java +++ b/activit...
true
true
protected void tearDown() throws Exception { wiser.stop(); // Fix for slow Jenkins while (wiser.getServer().isRunning()) { Thread.sleep(100L); } super.tearDown(); }
protected void tearDown() throws Exception { wiser.stop(); // Fix for slow Jenkins Thread.sleep(250L); super.tearDown(); }
diff --git a/DbstarDVB/src/com/dbstar/DbstarDVB/VideoPlayer/alert/NormalState.java b/DbstarDVB/src/com/dbstar/DbstarDVB/VideoPlayer/alert/NormalState.java index 732262e5..99216c61 100644 --- a/DbstarDVB/src/com/dbstar/DbstarDVB/VideoPlayer/alert/NormalState.java +++ b/DbstarDVB/src/com/dbstar/DbstarDVB/VideoPlayer/aler...
false
true
public void updateView(Dialog dlg) { if (mMediaData != null) { if (mMediaData.Title != null) { mMovieTitle.setText(mMediaData.Title); } if (mMediaData.Description != null) { mMovieDescription.setText(mMediaData.Description); } Resources res = dlg.getContext().getResources(); String direct...
public void updateView(Dialog dlg) { if (mMediaData != null) { if (mMediaData.Title != null) { mMovieTitle.setText(mMediaData.Title); } if (mMediaData.Description != null) { mMovieDescription.setText(mMediaData.Description); } Resources res = dlg.getContext().getResources(); String direct...
diff --git a/src/cwcore/ComplexAgent.java b/src/cwcore/ComplexAgent.java index ec123f6..ff23436 100644 --- a/src/cwcore/ComplexAgent.java +++ b/src/cwcore/ComplexAgent.java @@ -1,1185 +1,1184 @@ package cwcore; import java.awt.Color; import java.io.Serializable; import java.util.Collection; import java.util.Link...
true
true
public void step() { cobweb.Agent adjAgent; mustFlip = getPosition().checkFlip(facing); cobweb.Environment.Location destPos = getPosition().getAdjacent(facing); if (canStep(destPos)) { // Check for food... cobweb.Environment.Location breedPos = null; if (destPos.testFlag(ComplexEnvironment.FLAG_FOOD...
public void step() { cobweb.Agent adjAgent; mustFlip = getPosition().checkFlip(facing); cobweb.Environment.Location destPos = getPosition().getAdjacent(facing); if (canStep(destPos)) { // Check for food... cobweb.Environment.Location breedPos = null; if (destPos.testFlag(ComplexEnvironment.FLAG_FOOD...
diff --git a/rwiki-tool/tool/src/java/uk/ac/cam/caret/sakai/rwiki/tool/RWikiServlet.java b/rwiki-tool/tool/src/java/uk/ac/cam/caret/sakai/rwiki/tool/RWikiServlet.java index 44e6ad5c..79e30149 100644 --- a/rwiki-tool/tool/src/java/uk/ac/cam/caret/sakai/rwiki/tool/RWikiServlet.java +++ b/rwiki-tool/tool/src/java/uk/ac/ca...
true
true
public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (wac == null) { wac = WebApplicationContextUtils .getRequiredWebApplicationContext(this.getServletContext()); if (wac == null) { response.sendError(HttpServletResponse.S...
public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (wac == null) { wac = WebApplicationContextUtils .getRequiredWebApplicationContext(this.getServletContext()); if (wac == null) { response.sendError(HttpServletResponse.S...
diff --git a/common/src/main/java/org/jboss/capedwarf/common/servlet/ServletUtils.java b/common/src/main/java/org/jboss/capedwarf/common/servlet/ServletUtils.java index 43fa2d83..4cc85d7b 100644 --- a/common/src/main/java/org/jboss/capedwarf/common/servlet/ServletUtils.java +++ b/common/src/main/java/org/jboss/capedwar...
true
true
public static String getFileName(Part part) { // TODO: surely, there is an existing servlet api method that does this. Googled it, but found nothing (!?) String contentDisposition = part.getHeader("content-disposition"); for (String token : contentDisposition.split(";")) { if (to...
public static String getFileName(Part part) { // TODO: surely, there is an existing servlet api method that does this. Googled it, but found nothing (!?) String contentDisposition = part.getHeader("content-disposition"); for (String token : contentDisposition.split(";")) { if (to...
diff --git a/src/org/dancres/paxos/Leader.java b/src/org/dancres/paxos/Leader.java index 9be0b2a..bdfd1b2 100644 --- a/src/org/dancres/paxos/Leader.java +++ b/src/org/dancres/paxos/Leader.java @@ -1,636 +1,638 @@ package org.dancres.paxos; import org.dancres.paxos.messages.*; import org.slf4j.Logger; import org.s...
false
true
private void process() { switch(_state) { case ABORT : { assert (_queue.size() != 0); _logger.info(this + ": ABORT " + _event, new RuntimeException()); _messages.clear(); if (_membership != null) _membership.disp...
private void process() { switch(_state) { case ABORT : { assert (_queue.size() != 0); _logger.info(this + ": ABORT " + _event, new RuntimeException()); _messages.clear(); if (_membership != null) _membership.disp...
diff --git a/FinProj/src/tw/edu/ntu/fortour/LocMap.java b/FinProj/src/tw/edu/ntu/fortour/LocMap.java index 6481709..59bbb64 100644 --- a/FinProj/src/tw/edu/ntu/fortour/LocMap.java +++ b/FinProj/src/tw/edu/ntu/fortour/LocMap.java @@ -1,458 +1,458 @@ package tw.edu.ntu.fortour; import java.util.ArrayList; import jav...
true
true
private void setButtonListener() { mButtonLMHelp.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass( LocMap.this, LocMapInfo.class ); startActivity( intent ); overridePendingTransition( android.R.an...
private void setButtonListener() { mButtonLMHelp.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass( LocMap.this, LocMapInfo.class ); startActivity( intent ); overridePendingTransition( android.R.an...
diff --git a/src/plugins/android.win32.x86/src/com/motorola/studio/android/nativeos/NativeUI.java b/src/plugins/android.win32.x86/src/com/motorola/studio/android/nativeos/NativeUI.java index c70f3a5..f1780b9 100644 --- a/src/plugins/android.win32.x86/src/com/motorola/studio/android/nativeos/NativeUI.java +++ b/src/plug...
true
true
public long getWindowHandle(String windowName) { StudioLogger.debug(this, "Get native window handler for: " + windowName); int windowHandle = 0; try { TCHAR className = null; TCHAR tChrTitle = new TCHAR(0, windowName, true); windowHandle = OS.F...
public long getWindowHandle(String windowName) { StudioLogger.debug(this, "Get native window handler for: " + windowName); long windowHandle = 0; try { TCHAR className = null; TCHAR tChrTitle = new TCHAR(0, windowName, true); windowHandle = OS....
diff --git a/src/uk/co/ipodling/skeuosc/MainActivity.java b/src/uk/co/ipodling/skeuosc/MainActivity.java index 852a103..4f0fdef 100644 --- a/src/uk/co/ipodling/skeuosc/MainActivity.java +++ b/src/uk/co/ipodling/skeuosc/MainActivity.java @@ -1,277 +1,277 @@ package uk.co.ipodling.skeuosc; import java.net.SocketExcep...
false
true
protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); //kinda not good way to do it if it takes a second to load but gets the job done final java.lang.Object[] args = {"hello"}; prefs = new SkeuOSCPrefs(getApplicationContext()); grid = new GridSystem(getApplication...
protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); //kinda not good way to do it if it takes a second to load but gets the job done final java.lang.Object[] args = {"hello"}; prefs = new SkeuOSCPrefs(getApplicationContext()); grid = new GridSystem(getApplication...
diff --git a/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java b/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java index cc0f54fd..dc9320fd 100644 --- a/sahi/src/main/java/com/redhat/qe/jon/sahi/base/inventory/Operations.java +++ b/sahi/src/main/java/com/redhat/qe/jon/sahi/...
true
true
public Map<String, String> assertOperationResult(Operation op, boolean success) { String opName = op.name; String resultImage = "Operation_failed_16.png"; String succ = "Failed"; if (success) { resultImage = "Operation_ok_16.png"; succ = "Success"; } ...
public Map<String, String> assertOperationResult(Operation op, boolean success) { String opName = op.name; String resultImage = "Operation_failed_16.png"; String succ = "Failed"; if (success) { resultImage = "Operation_ok_16.png"; succ = "Success"; } ...
diff --git a/org.osate.imv.aadldiagram/src/org/osate/imv/aadldiagram/util/ErrorUtil.java b/org.osate.imv.aadldiagram/src/org/osate/imv/aadldiagram/util/ErrorUtil.java index a8b985e..9faaf2b 100644 --- a/org.osate.imv.aadldiagram/src/org/osate/imv/aadldiagram/util/ErrorUtil.java +++ b/org.osate.imv.aadldiagram/src/org/o...
true
true
public static int getFactor (ComponentInstance source, ComponentInstance dest) { ComponentInstance boundProcessor; List<ComponentInstance> boundProcessors; System.out.println("source=" + source); System.out.println("dest =" + dest); if ( (source == null) || (dest == null)) { return -1; } if...
public static int getFactor (ComponentInstance source, ComponentInstance dest) { ComponentInstance boundProcessor; List<ComponentInstance> boundProcessors; //System.out.println("source=" + source); //System.out.println("dest =" + dest); if ( (source == null) || (dest == null)) { return -1; } ...
diff --git a/commons/src/main/java/org/soluvas/commons/NameUtils.java b/commons/src/main/java/org/soluvas/commons/NameUtils.java index 9404ad7f..e67e93d8 100644 --- a/commons/src/main/java/org/soluvas/commons/NameUtils.java +++ b/commons/src/main/java/org/soluvas/commons/NameUtils.java @@ -1,81 +1,85 @@ package org.so...
true
true
public static String formatClassAnsi(final String name) { // Split into segments final List<String> split = Lists.newArrayList(Splitter.on('.').split(name)); split.set(split.size() - 1, "@|bold " + split.get(split.size() - 1) + "|@"); // final List<String> highlight = Lists.transform(split, new Function<String,...
public static String formatClassAnsi(final String name) { // Split into segments final List<String> split = Lists.newArrayList(Splitter.on('.').split(name)); final String lastSegment = split.get(split.size() - 1); final String boldedLastSegment = "…".equals(lastSegment.substring(0, 1)) ? "…" + "@|bold " + ...
diff --git a/src/se/kth/ssvl/tslab/wsn/general/servlib/contacts/interfaces/InterfaceTable.java b/src/se/kth/ssvl/tslab/wsn/general/servlib/contacts/interfaces/InterfaceTable.java index 2842f33..61f008b 100644 --- a/src/se/kth/ssvl/tslab/wsn/general/servlib/contacts/interfaces/InterfaceTable.java +++ b/src/se/kth/ssvl/t...
false
true
public static void init() { List<InterfaceEntry> EntriesList = BPF.getInstance().getConfig() .interfaces_setting().interface_entries(); Iterator<InterfaceEntry> i = EntriesList.iterator(); Interface.set_iface_counter(0); while (i.hasNext()) { InterfaceEntry element = i.next(); String conv_layer_t...
public static void init() { List<InterfaceEntry> EntriesList = BPF.getInstance().getConfig() .interfaces_setting().interface_entries(); Iterator<InterfaceEntry> i = EntriesList.iterator(); Interface.set_iface_counter(0); while (i.hasNext()) { InterfaceEntry element = i.next(); String conv_layer_t...
diff --git a/org.eclipse.mylyn.team.ui/src/org/eclipse/mylyn/internal/team/ui/actions/OpenCorrespondingTaskAction.java b/org.eclipse.mylyn.team.ui/src/org/eclipse/mylyn/internal/team/ui/actions/OpenCorrespondingTaskAction.java index 23f2aaf76..4b082afff 100644 --- a/org.eclipse.mylyn.team.ui/src/org/eclipse/mylyn/inter...
true
true
private void run(StructuredSelection selection) { Object element = selection.getFirstElement(); boolean opened = false; if (element instanceof ChangeSetDiffNode) { ChangeSetDiffNode diffNode = (ChangeSetDiffNode) element; if (diffNode.getSet() instanceof ContextChangeSet) { ITask task = ((ContextChang...
private void run(StructuredSelection selection) { Object element = selection.getFirstElement(); boolean opened = false; if (element instanceof ChangeSetDiffNode) { ChangeSetDiffNode diffNode = (ChangeSetDiffNode) element; if (diffNode.getSet() instanceof ContextChangeSet) { ITask task = ((ContextChang...
diff --git a/twitter-adapter/src/main/java/com/esri/geoevent/adapter/twitter/TweetStatusAdapter.java b/twitter-adapter/src/main/java/com/esri/geoevent/adapter/twitter/TweetStatusAdapter.java index 02203b5..916b5a0 100644 --- a/twitter-adapter/src/main/java/com/esri/geoevent/adapter/twitter/TweetStatusAdapter.java +++ b...
true
true
private GeoEvent buildGeoEvent() throws Exception { // 3 lines below are not necessary I think. These were added when I // was having problems with encoding // //byte[] strBytes = sb.toString().getBytes("UTF-8"); // //String s = new String(strBytes,"UTF-8"); // //Tweet jsonTweet = ...
private GeoEvent buildGeoEvent() throws Exception { // 3 lines below are not necessary I think. These were added when I // was having problems with encoding // //byte[] strBytes = sb.toString().getBytes("UTF-8"); // //String s = new String(strBytes,"UTF-8"); // //Tweet jsonTweet = ...
diff --git a/src/com/omartech/tdg/service/ItemService.java b/src/com/omartech/tdg/service/ItemService.java index cb8a347..2201c6e 100644 --- a/src/com/omartech/tdg/service/ItemService.java +++ b/src/com/omartech/tdg/service/ItemService.java @@ -1,116 +1,120 @@ package com.omartech.tdg.service; import java.util.Date...
true
true
public float getPriceByItemId(int id, int count){ Item item = getItemById(id); Date now = new Date(System.currentTimeMillis()); Date begin = item.getPromotionTime(); Date end = item.getPromotionEnd(); int min = item.getMinimumQuantity(); int max = item.getMaximumAcceptQuantity(); float result = 0f; if(...
public float getPriceByItemId(int id, int count){ Item item = getItemById(id); Date now = new Date(System.currentTimeMillis()); Date begin = item.getPromotionTime(); Date end = item.getPromotionEnd(); int min = item.getMinimumQuantity(); int max = item.getMaximumAcceptQuantity(); float result = 0f; if(...
diff --git a/src/com/joshuawise/dumload/Uploader.java b/src/com/joshuawise/dumload/Uploader.java index e7725e9..d81441a 100644 --- a/src/com/joshuawise/dumload/Uploader.java +++ b/src/com/joshuawise/dumload/Uploader.java @@ -1,406 +1,410 @@ package com.joshuawise.dumload; import java.io.InputStream; import java.io...
false
true
public void run() { Looper.prepare(); Log.e("Dumload.Uploader[thread]", "This brought to you from the new thread."); set_up_notif("Dumload upload: " + dest); try { say("Uploading "+(Integer.toString(is.available()))+" bytes"); update_notif("Connecting..."); JSch jsch = new JSch(); j...
public void run() { Looper.prepare(); Log.e("Dumload.Uploader[thread]", "This brought to you from the new thread."); set_up_notif("Dumload upload: " + dest); try { say("Uploading "+(Integer.toString(is.available()))+" bytes"); update_notif("Connecting..."); JSch jsch = new JSch(); j...
diff --git a/sos/sos-platform/src/main/java/sorcer/core/dispatch/ProvisionManager.java b/sos/sos-platform/src/main/java/sorcer/core/dispatch/ProvisionManager.java index b5b2f7ec..6d24465a 100755 --- a/sos/sos-platform/src/main/java/sorcer/core/dispatch/ProvisionManager.java +++ b/sos/sos-platform/src/main/java/sorcer/c...
false
true
public void run() { Provisioner provisioner = Accessor.getService(Provisioner.class); while (true) { if (!servicesToProvision.isEmpty()) { LinkedHashSet<SignatureElement> copy ; synchronized (servicesToProvision){ ...
public void run() { Provisioner provisioner = Accessor.getService(Provisioner.class); while (true) { if (!servicesToProvision.isEmpty()) { LinkedHashSet<SignatureElement> copy ; synchronized (servicesToProvision){ ...
diff --git a/src/main/java/crowdtrust/BinaryAccuracy.java b/src/main/java/crowdtrust/BinaryAccuracy.java index db69a92..c810ee6 100644 --- a/src/main/java/crowdtrust/BinaryAccuracy.java +++ b/src/main/java/crowdtrust/BinaryAccuracy.java @@ -1,101 +1,101 @@ package crowdtrust; import java.util.ArrayList; import jav...
true
true
protected double variance() { double alphaPos = truePositive * positiveN + 1; double betaPos = positiveN - alphaPos + 1; double alphaNeg = trueNegative * negativeN + 1; double betaNeg = negativeN - alphaNeg + 1; BetaDistribution posCurve = new BetaDistribution(alphaPos, betaPos); BetaDistribution neg...
protected double variance() { double alphaPos = truePositive * positiveN + 1; double betaPos = positiveN - alphaPos + 1; double alphaNeg = trueNegative * negativeN + 1; double betaNeg = negativeN - alphaNeg + 1; BetaDistribution posCurve = new BetaDistribution(alphaPos, betaPos); BetaDistribution neg...
diff --git a/src/com/vesalaakso/rbb/model/TileMapObject.java b/src/com/vesalaakso/rbb/model/TileMapObject.java index 0b0f007..7cbe14b 100644 --- a/src/com/vesalaakso/rbb/model/TileMapObject.java +++ b/src/com/vesalaakso/rbb/model/TileMapObject.java @@ -1,112 +1,112 @@ package com.vesalaakso.rbb.model; import java.u...
true
true
public TileMapObject(GroupObject obj) throws MapException { groupObject = obj; index = obj.index; name = obj.name; try { type = TileMapObjectType.valueOf(obj.name.toUpperCase()); } catch (IllegalArgumentException e) { throw new MapException("Unknown object type: " + obj.type, e); } objectType = ...
public TileMapObject(GroupObject obj) throws MapException { groupObject = obj; index = obj.index; name = obj.name; try { type = TileMapObjectType.valueOf(obj.type.toUpperCase()); } catch (IllegalArgumentException e) { throw new MapException("Unknown object type: " + obj.type, e); } objectType = ...
diff --git a/src/org/pit/fetegeo/importer/processors/TagProcessor.java b/src/org/pit/fetegeo/importer/processors/TagProcessor.java index 0a5a1e9..8f9018c 100644 --- a/src/org/pit/fetegeo/importer/processors/TagProcessor.java +++ b/src/org/pit/fetegeo/importer/processors/TagProcessor.java @@ -1,196 +1,207 @@ package or...
true
true
private void processPlace(Entity entity) { Place place = new Place(); List<Name> nameList = new ArrayList<Name>(); String key, value; boolean isCountry = false, isBoundary = false; place.setId(entity.getId()); place.setOriginEntity(entity.getType()); for (Tag tag : entity.getTags()) { ...
private void processPlace(Entity entity) { Place place = new Place(); List<Name> nameList = new ArrayList<Name>(); String key, value; boolean isCountry = false, isBoundary = false; place.setId(entity.getId()); place.setOriginEntity(entity.getType()); for (Tag tag : entity.getTags()) { ...
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/gateways/transports/TransportUtils.java b/src/java/org/jivesoftware/sparkimpl/plugin/gateways/transports/TransportUtils.java index 00bbbfe6..5ef3f21b 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/gateways/transports/TransportUtils.java +++ b/src/java/org...
true
true
public static void registerUser(XMPPConnection con, String gatewayDomain, String username, String password, String nickname) throws XMPPException { Registration registration = new Registration(); registration.setType(IQ.Type.SET); registration.setTo(gatewayDomain); registration.addEx...
public static void registerUser(XMPPConnection con, String gatewayDomain, String username, String password, String nickname) throws XMPPException { Registration registration = new Registration(); registration.setType(IQ.Type.SET); registration.setTo(gatewayDomain); registration.addEx...
diff --git a/src/java/drbd/utilities/Tools.java b/src/java/drbd/utilities/Tools.java index 743decca..4eb8578d 100644 --- a/src/java/drbd/utilities/Tools.java +++ b/src/java/drbd/utilities/Tools.java @@ -1,2658 +1,2660 @@ /* * This file is part of DRBD Management Console by LINBIT HA-Solutions GmbH * written by Ras...
true
true
public static JScrollPane getScrollingMenu( final MyMenu menu, final DefaultListModel dlm, final MyList list, final Map<MyMenuItem, ButtonCallback> callbackHash) { prevScrollingMenuIndex = -1; list.setFix...
public static JScrollPane getScrollingMenu( final MyMenu menu, final DefaultListModel dlm, final MyList list, final Map<MyMenuItem, ButtonCallback> callbackHash) { prevScrollingMenuIndex = -1; list.setFix...
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java index bb5e854cb..eb86b3296 100644 --- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/e...
false
true
public ProvisioningPlan getProvisioningPlan(ProfileChangeRequest profileChangeRequest, ProvisioningContext context, IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor, ExpandWork); sub.setTaskName(Messages.Director_Task_Resolving_Dependencies); try { IProfile profile = profileChangeReques...
public ProvisioningPlan getProvisioningPlan(ProfileChangeRequest profileChangeRequest, ProvisioningContext context, IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor, ExpandWork); sub.setTaskName(Messages.Director_Task_Resolving_Dependencies); try { IProfile profile = profileChangeReques...
diff --git a/src/main/java/com/mozilla/bagheera/consumer/KafkaReplayConsumer.java b/src/main/java/com/mozilla/bagheera/consumer/KafkaReplayConsumer.java index 7cb5c1d..7e3d059 100644 --- a/src/main/java/com/mozilla/bagheera/consumer/KafkaReplayConsumer.java +++ b/src/main/java/com/mozilla/bagheera/consumer/KafkaReplayC...
true
true
public static void main(String[] args) { OptionFactory optFactory = OptionFactory.getInstance(); Options options = KafkaConsumer.getOptions(); options.addOption(optFactory.create("k", "copy-keys", true, "Whether or not to copy keys from the source data").required()); options.addOptio...
public static void main(String[] args) { OptionFactory optFactory = OptionFactory.getInstance(); Options options = KafkaConsumer.getOptions(); options.addOption(optFactory.create("k", "copy-keys", true, "Whether or not to copy keys from the source data")); options.addOption(optFactor...
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/MessageStoreTransformer.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/Messag...
false
true
public static OMElement createMessageStore(MessageStore model) throws Exception { Map<String, Object> parameters = new HashMap<String, Object>(); // Fixing TOOLS-2026. //String className = "org.apache.synapse.message.store.InMemoryMessageStore"; //String className = "org.apache.synapse.message.store.impl.me...
public static OMElement createMessageStore(MessageStore model) throws Exception { Map<String, Object> parameters = new HashMap<String, Object>(); // Fixing TOOLS-2026. //String className = "org.apache.synapse.message.store.InMemoryMessageStore"; //String className = "org.apache.synapse.message.store.impl.me...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/StreetVertexIndexServiceImpl.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/StreetVertexIndexServiceImpl.java index d888753af..b5cb4ad36 100644 --- a/opentripplanner-routing/src/main/java/org/opentripplann...
false
true
public Vertex getClosestVertex(final Coordinate coordinate, String name, RoutingRequest options, List<Edge> extraEdges) { _log.debug("Looking for/making a vertex near {}", coordinate); // first, check for intersections very close by List<StreetVertex> vertices = getIntersectionAt(coordinate...
public Vertex getClosestVertex(final Coordinate coordinate, String name, RoutingRequest options, List<Edge> extraEdges) { _log.debug("Looking for/making a vertex near {}", coordinate); // first, check for intersections very close by List<StreetVertex> vertices = getIntersectionAt(coordinate...
diff --git a/src/php/runtime/memory/support/MemoryUtils.java b/src/php/runtime/memory/support/MemoryUtils.java index 951bc2f7..fb247f7a 100644 --- a/src/php/runtime/memory/support/MemoryUtils.java +++ b/src/php/runtime/memory/support/MemoryUtils.java @@ -1,341 +1,341 @@ package php.runtime.memory.support; import ph...
false
true
public static Memory valueOf(Environment env, Object value){ if (value == null) return Memory.NULL; Unconverter unconverter = getUnconverter(value.getClass()); if (unconverter != null) { return unconverter.run(value); } else { if (value instanceof...
public static Memory valueOf(Environment env, Object value){ if (value == null) return Memory.NULL; Unconverter unconverter = getUnconverter(value.getClass()); if (unconverter != null) { return unconverter.run(value); } else { if (value instanceof...
diff --git a/src/dit/DEIDGUI.java b/src/dit/DEIDGUI.java index 2d580fb..424c5fe 100644 --- a/src/dit/DEIDGUI.java +++ b/src/dit/DEIDGUI.java @@ -1,653 +1,654 @@ package dit; import dit.panels.UserPanel; import dit.panels.WizardPanel; import java.awt.Toolkit; import java.awt.event.WindowAdapter; import java.awt....
false
true
private void unpackTools() { String[] toolNames = new String[]{ "bet", "bet2", "dcm2nii", "mricron", "mricron_64", "fslchfiletype", "fslchfiletype_exe", "imtest", "remove_ext", ...
private void unpackTools() { String[] toolNames = new String[]{ "bet", "bet2", "dcm2nii", "mricron", "mricron_64", "fslchfiletype", "fslchfiletype_exe", "imtest", "remove_ext", ...
diff --git a/android/src/org/thinkfree/NFC/TagViewer.java b/android/src/org/thinkfree/NFC/TagViewer.java index e4d1bda..31d3e21 100755 --- a/android/src/org/thinkfree/NFC/TagViewer.java +++ b/android/src/org/thinkfree/NFC/TagViewer.java @@ -1,224 +1,224 @@ /* * Copyright (C) 2010 The Android Open Source Project * ...
true
true
protected Object doInBackground(String... params) { Properties prop = new Properties(); try { prop.load(new FileInputStream(Environment.getExternalStorageDirectory().toString() + "/.on-domo-qt/config.ini")); } catch (FileNotFoundException e1) { ...
protected Object doInBackground(String... params) { Properties prop = new Properties(); try { prop.load(new FileInputStream(Environment.getExternalStorageDirectory().toString() + "/.axihome/config.ini")); } catch (FileNotFoundException e1) { ...
diff --git a/luni/src/main/java/java/util/Random.java b/luni/src/main/java/java/util/Random.java index 7ce74cc95..cc9de5883 100644 --- a/luni/src/main/java/java/util/Random.java +++ b/luni/src/main/java/java/util/Random.java @@ -1,205 +1,201 @@ /* * Licensed to the Apache Software Foundation (ASF) under one or more...
false
true
public synchronized double nextGaussian() { if (haveNextNextGaussian) { // if X1 has been returned, return the // second Gaussian haveNextNextGaussian = false; return nextNextGaussian; } double v1, v2, s; do { v...
public synchronized double nextGaussian() { if (haveNextNextGaussian) { haveNextNextGaussian = false; return nextNextGaussian; } double v1, v2, s; do { v1 = 2 * nextDouble() - 1; v2 = 2 * nextDouble() - 1; s = v1 * v1 + v2 ...
diff --git a/source/de/anomic/htmlFilter/htmlFilterInputStream.java b/source/de/anomic/htmlFilter/htmlFilterInputStream.java index 5f3c55439..5d28f6537 100644 --- a/source/de/anomic/htmlFilter/htmlFilterInputStream.java +++ b/source/de/anomic/htmlFilter/htmlFilterInputStream.java @@ -1,169 +1,169 @@ // htmlFilterInput...
true
true
public htmlFilterInputStream( final InputStream inStream, final String inputStreamCharset, final yacyURL rooturl, final htmlFilterTransformer transformer, final boolean passbyIfBinarySuspect ) { // create a input stream for buffereing t...
public htmlFilterInputStream( final InputStream inStream, final String inputStreamCharset, final yacyURL rooturl, final htmlFilterTransformer transformer, final boolean passbyIfBinarySuspect ) { // create a input stream for buffereing t...
diff --git a/src/org/netbeans/modules/php/wordpress/WordPressPhpModuleExtender.java b/src/org/netbeans/modules/php/wordpress/WordPressPhpModuleExtender.java index 8cd89b4..58a53f7 100644 --- a/src/org/netbeans/modules/php/wordpress/WordPressPhpModuleExtender.java +++ b/src/org/netbeans/modules/php/wordpress/WordPressPh...
true
true
public Set<FileObject> extend(PhpModule pm) throws ExtendingException { panel.setAllEnabled(panel, false); panel.setAllEnabled(panel.getWpConfigPanel(), false); FileObject sourceDirectory = pm.getSourceDirectory(); if (panel.useUrl()) { // url String urlPath ...
public Set<FileObject> extend(PhpModule pm) throws ExtendingException { panel.setAllEnabled(panel, false); panel.setAllEnabled(panel.getWpConfigPanel(), false); FileObject sourceDirectory = pm.getSourceDirectory(); if (panel.useUrl()) { // url String urlPath ...
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java index b511ea1b8..586804cdb 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping...
true
true
public void refresh(ResourceMapping[] mappings, IProgressMonitor monitor) throws CoreException { monitor.beginTask(null, 100); SynchronizationScopeManager manager = null; //getScopeManager(); if (manager == null) { // The scope manager is missing so just refresh everything refresh(getScope().getTraversals(...
public void refresh(ResourceMapping[] mappings, IProgressMonitor monitor) throws CoreException { monitor.beginTask(null, 100); ISynchronizationScopeManager manager = getScopeManager(); if (manager == null) { // The scope manager is missing so just refresh everything refresh(getScope().getTraversals(), IRes...
diff --git a/src/me/ellbristow/greylistVote/greylistVote.java b/src/me/ellbristow/greylistVote/greylistVote.java index 0f76dde..02a603c 100644 --- a/src/me/ellbristow/greylistVote/greylistVote.java +++ b/src/me/ellbristow/greylistVote/greylistVote.java @@ -1,704 +1,704 @@ package me.ellbristow.greylistVote; import ...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("glv")) { if (args.length == 0) { PluginDescriptionFile pdfFile = this.getDescription(); sender.sendMessage(ChatColor.GOLD + pdfFile.getName() + " version " + pdfFile.getVers...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("glv")) { if (args.length == 0) { PluginDescriptionFile pdfFile = this.getDescription(); sender.sendMessage(ChatColor.GOLD + pdfFile.getName() + " version " + pdfFile.getVers...