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/WHPP-ejb/src/main/java/org/courses/whpp/session/WorktimeFacade.java b/WHPP-ejb/src/main/java/org/courses/whpp/session/WorktimeFacade.java index d85dbef..6805e69 100644 --- a/WHPP-ejb/src/main/java/org/courses/whpp/session/WorktimeFacade.java +++ b/WHPP-ejb/src/main/java/org/courses/whpp/session/WorktimeFac...
false
true
public Boolean logIn(Integer EmployeeId) { Boolean result = true; Employee employeeForId = employeeFacade.findById(EmployeeId); if(employeeForId == null) result = false; Worktime worktimeForId = findOpenedByEmployeeId(EmployeeId); if(worktimeForId != null ) ...
public Boolean logIn(Integer EmployeeId) { Boolean result = true; Employee employeeForId = employeeFacade.findById(EmployeeId); if(employeeForId == null) { result = false; return result; } Worktime worktimeForId = findOpenedByEmployeeId(E...
diff --git a/src/powercrystals/minefactoryreloaded/modhelpers/twilightforest/TwilightForestEggHandler.java b/src/powercrystals/minefactoryreloaded/modhelpers/twilightforest/TwilightForestEggHandler.java index b2266557..284e28b2 100644 --- a/src/powercrystals/minefactoryreloaded/modhelpers/twilightforest/TwilightForestE...
true
true
public EntityEggInfo getEgg(ItemStack safariNet) { try { Class<? extends Entity> entityClass = (Class<? extends Entity>)Class.forName(safariNet.getTagCompound().getString("_class")); EntityRegistration er = EntityRegistry.instance().lookupModSpawn(entityClass, true); if(er.getContainer() != null && er.ge...
public EntityEggInfo getEgg(ItemStack safariNet) { try { Class<? extends Entity> entityClass = (Class<? extends Entity>)Class.forName(safariNet.getTagCompound().getString("_class")); EntityRegistration er = EntityRegistry.instance().lookupModSpawn(entityClass, true); if(er != null && er.getContainer() ==...
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java index d4b7a55386..71edec05f8 100644 --- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java +++ b/plugins/sonar-cpd-plugin/src/...
false
true
public List<?> getExtensions() { return ImmutableList.of( PropertyDefinition.builder(CoreProperties.CPD_CROSS_RPOJECT) .defaultValue(CoreProperties.CPD_CROSS_RPOJECT_DEFAULT_VALUE + "") .name("Cross project duplication detection") .description("SonarQube supports the detection of cro...
public List<?> getExtensions() { return ImmutableList.of( PropertyDefinition.builder(CoreProperties.CPD_CROSS_RPOJECT) .defaultValue(CoreProperties.CPD_CROSS_RPOJECT_DEFAULT_VALUE + "") .name("Cross project duplication detection") .description("SonarQube supports the detection of cro...
diff --git a/tools/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java b/tools/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java index a9e8afae..6cae085a 100755 --- a/tools/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/Updat...
true
true
public void installArchives(final Collection<Archive> archives) { if (mTaskFactory == null) { throw new IllegalArgumentException("Task Factory is null"); } final boolean forceHttp = getSettingsController().getForceHttp(); mTaskFactory.start("Installing Archives", new IT...
public void installArchives(final Collection<Archive> archives) { if (mTaskFactory == null) { throw new IllegalArgumentException("Task Factory is null"); } final boolean forceHttp = getSettingsController().getForceHttp(); mTaskFactory.start("Installing Archives", new IT...
diff --git a/src/com/werebug/randomsequencegenerator/SaveDialog.java b/src/com/werebug/randomsequencegenerator/SaveDialog.java index 25611b6..88b0af6 100644 --- a/src/com/werebug/randomsequencegenerator/SaveDialog.java +++ b/src/com/werebug/randomsequencegenerator/SaveDialog.java @@ -1,63 +1,63 @@ package com.werebug....
false
true
public Dialog onCreateDialog(Bundle savedInstanceState) { // Build the dialog and set up the button click handlers AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); edit_name = new EditText(this.getActivity()); builder.setMessage(R.string...
public Dialog onCreateDialog(Bundle savedInstanceState) { // Build the dialog and set up the button click handlers AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); edit_name = new EditText(this.getActivity()); builder.setMessage(R.string...
diff --git a/src/com/sun/javanet/cvsnews/cli/UpdateCommand.java b/src/com/sun/javanet/cvsnews/cli/UpdateCommand.java index 851e6ff..9e6d400 100644 --- a/src/com/sun/javanet/cvsnews/cli/UpdateCommand.java +++ b/src/com/sun/javanet/cvsnews/cli/UpdateCommand.java @@ -1,311 +1,313 @@ /* * DO NOT ALTER OR REMOVE COPYRIGH...
false
true
public int execute() throws Exception { System.out.println("Parsing stdin"); Commit commit = parseStdin(); Set<Issue> issues = parseIssues(commit); System.out.println("Found "+issues); if(issues.isEmpty()) return 0; // no issue link String msg = create...
public int execute() throws Exception { System.out.println("Parsing stdin"); Commit commit = parseStdin(); Set<Issue> issues = parseIssues(commit); System.out.println("Found "+issues); if(issues.isEmpty()) return 0; // no issue link String msg = create...
diff --git a/src/ratSaccharine/PcoaViaTTest.java b/src/ratSaccharine/PcoaViaTTest.java index f837c2fc..6c8a7524 100644 --- a/src/ratSaccharine/PcoaViaTTest.java +++ b/src/ratSaccharine/PcoaViaTTest.java @@ -1,117 +1,117 @@ /** * Author: anthony.fodor@gmail.com * This code is free software; you can redistribu...
true
true
private static double getPValue( String tissue, int axisNum ) throws Exception { BufferedReader reader = new BufferedReader(new FileReader(new File( ConfigReader.getSaccharineRatDir() + File.separator + "mergedMapBrayCurtisPCOA.txt" ))); HashMap<String, List<Double>> highCages = new HashMap<String, List<Do...
private static double getPValue( String tissue, int axisNum ) throws Exception { BufferedReader reader = new BufferedReader(new FileReader(new File( ConfigReader.getSaccharineRatDir() + File.separator + "mergedMapBrayCurtisPCOA.txt" ))); HashMap<String, List<Double>> highCages = new HashMap<String, List<Do...
diff --git a/jamwiki-web/src/main/java/org/jamwiki/db/AnsiDataHandler.java b/jamwiki-web/src/main/java/org/jamwiki/db/AnsiDataHandler.java index 1f30dee5..09916c8b 100644 --- a/jamwiki-web/src/main/java/org/jamwiki/db/AnsiDataHandler.java +++ b/jamwiki-web/src/main/java/org/jamwiki/db/AnsiDataHandler.java @@ -1,2086 +1...
true
true
public void writeTopic(Topic topic, TopicVersion topicVersion, LinkedHashMap<String, String> categories, List<String> links) throws DataAccessException, WikiException { long start = System.currentTimeMillis(); TransactionStatus status = null; try { status = DatabaseConnection.startTransaction(); String key...
public void writeTopic(Topic topic, TopicVersion topicVersion, LinkedHashMap<String, String> categories, List<String> links) throws DataAccessException, WikiException { long start = System.currentTimeMillis(); TransactionStatus status = null; try { status = DatabaseConnection.startTransaction(); String key...
diff --git a/src/net/appositedesigns/fileexplorer/FileListAdapter.java b/src/net/appositedesigns/fileexplorer/FileListAdapter.java index 31f7117..fa609b0 100644 --- a/src/net/appositedesigns/fileexplorer/FileListAdapter.java +++ b/src/net/appositedesigns/fileexplorer/FileListAdapter.java @@ -1,112 +1,118 @@ package ne...
true
true
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder = null; if (convertView == null) { convertView = mInflater.inflate(R.layout.explorer_item, parent, false); holder = new ViewHolder(); holder.resName = (TextView)convertView.f...
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder = null; if (convertView == null) { convertView = mInflater.inflate(R.layout.explorer_item, parent, false); holder = new ViewHolder(); holder.resName = (TextView)convertView.f...
diff --git a/test/org/guanxi/test/common/filters/GenericDecoderTest.java b/test/org/guanxi/test/common/filters/GenericDecoderTest.java index c9a614b..bd320a1 100644 --- a/test/org/guanxi/test/common/filters/GenericDecoderTest.java +++ b/test/org/guanxi/test/common/filters/GenericDecoderTest.java @@ -1,203 +1,203 @@ /*...
true
true
public void testRandomEscapes() throws IOException { // This performs only encoding of the control character class GenericEncoder extends GenericEncoderSubclass { // This is the character that starts any escape sequence protected char controlCharacter; public GenericEncoder(Writer writer, char control...
public void testRandomEscapes() throws IOException { // This performs only encoding of the control character class GenericEncoder extends GenericEncoderSubclass { // This is the character that starts any escape sequence protected char controlCharacter; public GenericEncoder(Writer writer, char control...
diff --git a/corelib-solr/src/main/java/eu/europeana/corelib/solr/server/importer/util/EuropeanaAggregationFieldInput.java b/corelib-solr/src/main/java/eu/europeana/corelib/solr/server/importer/util/EuropeanaAggregationFieldInput.java index 1a9660ff..3f693d24 100644 --- a/corelib-solr/src/main/java/eu/europeana/corelib...
false
true
public EuropeanaAggregationImpl createAggregationMongoFields( eu.europeana.corelib.definitions.jibx.EuropeanaAggregationType aggregation, MongoServer mongoServer) throws InstantiationException, IllegalAccessException { EuropeanaAggregationImpl mongoAggregation = new EuropeanaAggregationImpl(); UpdateOpera...
public EuropeanaAggregationImpl createAggregationMongoFields( eu.europeana.corelib.definitions.jibx.EuropeanaAggregationType aggregation, MongoServer mongoServer) throws InstantiationException, IllegalAccessException { EuropeanaAggregationImpl mongoAggregation = new EuropeanaAggregationImpl(); UpdateOpera...
diff --git a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/io/DataInputStream.java b/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/io/DataInputStream.java index a89ea4b98..1c3b504c3 100644 --- a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/io/DataInp...
false
true
private int readUtfChar (StringBuilder sb) throws IOException { int a = readUnsignedByte(); if ((a & 0x80) == 0) { sb.append((char)a); return 1; } if ((a & 0xe0) == 0xb0) { int b = readUnsignedByte(); sb.append((char)(((a & 0x1F) << 6) | (b & 0x3F))); return 2; } if ((a & 0xf0) == 0xe0) { ...
private int readUtfChar (StringBuilder sb) throws IOException { int a = readUnsignedByte(); if ((a & 0x80) == 0) { sb.append((char)a); return 1; } if ((a & 0xe0) == 0xc0) { int b = readUnsignedByte(); sb.append((char)(((a & 0x1F) << 6) | (b & 0x3F))); return 2; } if ((a & 0xf0) == 0xe0) { ...
diff --git a/src/org/biojava/bio/alignment/SmithWaterman.java b/src/org/biojava/bio/alignment/SmithWaterman.java index 0ce2dd1d7..672f02c5f 100755 --- a/src/org/biojava/bio/alignment/SmithWaterman.java +++ b/src/org/biojava/bio/alignment/SmithWaterman.java @@ -1,411 +1,409 @@ /* * BioJava developm...
false
true
public double pairwiseAlignment(Sequence query, Sequence subject) throws BioRuntimeException { if (query.getAlphabet().equals(subject.getAlphabet()) && query.getAlphabet().equals(subMatrix.getAlphabet())) { long time = System.currentTimeMillis(); int i, j, maxI = 0, maxJ = 0, que...
public double pairwiseAlignment(Sequence query, Sequence subject) throws BioRuntimeException { if (query.getAlphabet().equals(subject.getAlphabet()) && query.getAlphabet().equals(subMatrix.getAlphabet())) { long time = System.currentTimeMillis(); int i, j, maxI = 0, maxJ = 0, que...
diff --git a/domino/eclipse/plugins/com.ibm.xsp.sbtsdk.playground/src/nsf/playground/playground/PreviewGadgetHandler.java b/domino/eclipse/plugins/com.ibm.xsp.sbtsdk.playground/src/nsf/playground/playground/PreviewGadgetHandler.java index 06d96f502..3cc1cbead 100644 --- a/domino/eclipse/plugins/com.ibm.xsp.sbtsdk.playg...
false
true
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String pathInfo = req.getPathInfo(); String[] parts = StringUtil.splitString(pathInfo.substring(1), '/', false); if(parts.length==3) { RequestParams requestParams = (RequestParams)requestParamsMap.get(pa...
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String pathInfo = req.getPathInfo(); String[] parts = StringUtil.splitString(pathInfo.substring(1), '/', false); if(parts.length==3) { RequestParams requestParams = (RequestParams)requestParamsMap.get(pa...
diff --git a/test/plugins/Freetalk/WoT/WoTMessageManagerTest.java b/test/plugins/Freetalk/WoT/WoTMessageManagerTest.java index 73053a23..93ae9828 100644 --- a/test/plugins/Freetalk/WoT/WoTMessageManagerTest.java +++ b/test/plugins/Freetalk/WoT/WoTMessageManagerTest.java @@ -1,447 +1,447 @@ /* This code is part of Free...
true
true
public void testOnMessageListFetchFailed() { WoTOwnIdentity author = mOwnIdentities[0]; Query q; ObjectSet<FetchFailedMarker> markers; ObjectSet<MessageList> messageLists; MessageListFetchFailedMarker marker; q = db.query(); q.constrain(FetchFailedMarker.class); assertEquals(0, q.execute().size()); ...
public void testOnMessageListFetchFailed() { WoTOwnIdentity author = mOwnIdentities[0]; Query q; ObjectSet<FetchFailedMarker> markers; ObjectSet<MessageList> messageLists; MessageListFetchFailedMarker marker; q = db.query(); q.constrain(FetchFailedMarker.class); assertEquals(0, q.execute().size()); ...
diff --git a/deegree-client/deegree-mdeditor/src/main/java/org/deegree/client/mdeditor/gui/NavigationBean.java b/deegree-client/deegree-mdeditor/src/main/java/org/deegree/client/mdeditor/gui/NavigationBean.java index 848176c1d1..c7f806a57b 100644 --- a/deegree-client/deegree-mdeditor/src/main/java/org/deegree/client/md...
true
true
public Object saveDataset() { FacesContext fc = FacesContext.getCurrentInstance(); fc.getELContext(); FormFieldBean formfields = (FormFieldBean) fc.getApplication().getELResolver().getValue( fc.getELContext(), ...
public Object saveDataset() { FacesContext fc = FacesContext.getCurrentInstance(); fc.getELContext(); FormFieldBean formfields = (FormFieldBean) fc.getApplication().getELResolver().getValue( fc.getELContext(), ...
diff --git a/src/main/java/org/madogiwa/plaintable/util/ReflectionUtils.java b/src/main/java/org/madogiwa/plaintable/util/ReflectionUtils.java index 1287290..dc733a7 100644 --- a/src/main/java/org/madogiwa/plaintable/util/ReflectionUtils.java +++ b/src/main/java/org/madogiwa/plaintable/util/ReflectionUtils.java @@ -1,1...
false
true
public static Schema findSchema(Class<?> clazz) { try { Schema schema = findSchemaFromStaticField(clazz); if (schema != null) { return schema; } Object instance = findInstance(clazz); if (instance == null) { Class scalaObject = findScalaObject(clazz); if (scalaObject == null) { retur...
public static Schema findSchema(Class<?> clazz) { try { Schema schema = findSchemaFromStaticField(clazz); if (schema != null) { return schema; } Object instance = findInstance(clazz); if (instance == null) { clazz = findScalaObject(clazz); if (clazz == null) { return null; } ...
diff --git a/scheduleevent/scheduleevent-jar/src/main/java/com/silverpeas/scheduleevent/service/model/beans/DateOptionsComparator.java b/scheduleevent/scheduleevent-jar/src/main/java/com/silverpeas/scheduleevent/service/model/beans/DateOptionsComparator.java index ffad5fba2..17f2ee884 100644 --- a/scheduleevent/schedul...
false
true
public int compare(DateOption date1, DateOption date2) { if (date1.getDay().compareTo(date2.getDay()) == 0) { if (date1.getHour() == date2.getHour()) { return 0; } else if (date1.getHour() > date2.getHour()) { return 1; } else { return -1; } } else { retur...
public int compare(DateOption date1, DateOption date2) { if (date1.getDay().compareTo(date2.getDay()) == 0) { if (date1.getHour() == date2.getHour()) { return 0; } if (date1.getHour() > date2.getHour()) { return 1; } return -1; } else { return date1.getDay()...
diff --git a/source/java/com/internetitem/sqshy/RunSqshy.java b/source/java/com/internetitem/sqshy/RunSqshy.java index 5a986c0..51ccd9b 100644 --- a/source/java/com/internetitem/sqshy/RunSqshy.java +++ b/source/java/com/internetitem/sqshy/RunSqshy.java @@ -1,143 +1,143 @@ package com.internetitem.sqshy; import java...
true
true
public static void main(String[] args) throws Exception { CommandLineParser parser = buildCommandLineParser(); ParsedCommandLine cmdline; try { cmdline = parser.parse(args); } catch (CommandLineParseException e) { System.err.println("Error: " + e.getMessage()); System.err.println(); System.err.prin...
public static void main(String[] args) throws Exception { CommandLineParser parser = buildCommandLineParser(); ParsedCommandLine cmdline; try { cmdline = parser.parse(args); } catch (CommandLineParseException e) { System.err.println("Error: " + e.getMessage()); System.err.println(); System.err.prin...
diff --git a/src/main/java/pl/llp/aircasting/helper/GaugeHelper.java b/src/main/java/pl/llp/aircasting/helper/GaugeHelper.java index 15dabd9d..74c6cd68 100644 --- a/src/main/java/pl/llp/aircasting/helper/GaugeHelper.java +++ b/src/main/java/pl/llp/aircasting/helper/GaugeHelper.java @@ -1,93 +1,93 @@ package pl.llp.air...
true
true
public void updateGauges(Sensor sensor, View view) { updateVisibility(view); int now = (int) sessionManager.getNow(sensor); updateGauge(view.findViewById(R.id.now_gauge), sensor, MarkerSize.BIG, now); updateLabel(sensor, view.findViewById(R.id.now_label), nowLabel); boolean hasStats = sessionM...
public void updateGauges(Sensor sensor, View view) { updateVisibility(view); int now = (int) sessionManager.getNow(sensor); updateGauge(view.findViewById(R.id.now_gauge), sensor, MarkerSize.BIG, now); updateLabel(sensor, view.findViewById(R.id.now_label), nowLabel); boolean hasStats = sessionM...
diff --git a/src/main/java/hudson/plugins/yammer/YammerPublisher.java b/src/main/java/hudson/plugins/yammer/YammerPublisher.java index 61304ab..6b2f6a0 100644 --- a/src/main/java/hudson/plugins/yammer/YammerPublisher.java +++ b/src/main/java/hudson/plugins/yammer/YammerPublisher.java @@ -1,413 +1,414 @@ package hudson...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException { DescriptorImpl descriptor = (DescriptorImpl) getDescriptor(); boolean sendMessage = false; switch (this.buildResultPostOption) { case ALL: sendMessage = true; break; case SUCCESS: ...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException { DescriptorImpl descriptor = (DescriptorImpl) getDescriptor(); boolean sendMessage = false; switch (this.buildResultPostOption) { case ALL: sendMessage = true; break; case SUCCESS: ...
diff --git a/tests/org/intellij/erlang/ErlangParserTest.java b/tests/org/intellij/erlang/ErlangParserTest.java index 150985fe..051b05dc 100644 --- a/tests/org/intellij/erlang/ErlangParserTest.java +++ b/tests/org/intellij/erlang/ErlangParserTest.java @@ -1,49 +1,49 @@ package org.intellij.erlang; import com.intelli...
true
true
protected void doTest(boolean checkResult) { OVERWRITE_TESTDATA = true; super.doTest(checkResult); assertFalse( "PsiFile contains error elements", toParseTreeText(myFile, skipSpaces(), includeRanges()).contains("PsiErrorElement") ); }
protected void doTest(boolean checkResult) { // OVERWRITE_TESTDATA = true; super.doTest(checkResult); assertFalse( "PsiFile contains error elements", toParseTreeText(myFile, skipSpaces(), includeRanges()).contains("PsiErrorElement") ); }
diff --git a/src/org/jruby/evaluator/EvaluationState.java b/src/org/jruby/evaluator/EvaluationState.java index ffc80edae..bed1bc9d8 100644 --- a/src/org/jruby/evaluator/EvaluationState.java +++ b/src/org/jruby/evaluator/EvaluationState.java @@ -1,1972 +1,1981 @@ /*******************************************************...
false
true
private static IRubyObject evalInternal(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block aBlock) { bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode iVisited = (Ali...
private static IRubyObject evalInternal(Ruby runtime, ThreadContext context, Node node, IRubyObject self, Block aBlock) { bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode iVisited = (Ali...
diff --git a/src/com/modcrafting/ultrabans/commands/Jail.java b/src/com/modcrafting/ultrabans/commands/Jail.java index fe0f906..85bb4bd 100644 --- a/src/com/modcrafting/ultrabans/commands/Jail.java +++ b/src/com/modcrafting/ultrabans/commands/Jail.java @@ -1,132 +1,134 @@ /* COPYRIGHT (c) 2012 Joshua McCurry * This ...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Track.track(command.getName()); if(!sender.hasPermission(command.getPermission())){ sender.sendMessage(ChatColor.RED+plugin.perms); return true; } YamlConfiguration config = (YamlConfiguration) plugin.getCon...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Track.track(command.getName()); if(!sender.hasPermission(command.getPermission())){ sender.sendMessage(ChatColor.RED+plugin.perms); return true; } YamlConfiguration config = (YamlConfiguration) plugin.getCon...
diff --git a/framework/src/play/libs/OpenID.java b/framework/src/play/libs/OpenID.java index 4d8fe67a..c29e2c81 100644 --- a/framework/src/play/libs/OpenID.java +++ b/framework/src/play/libs/OpenID.java @@ -1,346 +1,346 @@ package play.libs; import java.net.URI; import java.net.URLEncoder; import java.util.ArrayL...
false
true
public boolean verify() { try { // Normalize String claimedId = normalize(id); String server = null; String delegate = null; // Discover HttpResponse response = WS.url(claimedId).get(); // Try HTML (I know it's bad) ...
public boolean verify() { try { // Normalize String claimedId = normalize(id); String server = null; String delegate = null; // Discover HttpResponse response = WS.url(claimedId).get(); // Try HTML (I know it's bad) ...
diff --git a/api/src/main/java/org/xnio/streams/BufferPipeOutputStream.java b/api/src/main/java/org/xnio/streams/BufferPipeOutputStream.java index 17766f45..4a286c05 100644 --- a/api/src/main/java/org/xnio/streams/BufferPipeOutputStream.java +++ b/api/src/main/java/org/xnio/streams/BufferPipeOutputStream.java @@ -1,182...
true
true
private void send() throws IOException { final Pooled<ByteBuffer> pooledBuffer = buffer; final ByteBuffer buffer = pooledBuffer.getResource(); this.buffer = null; final boolean eof = this.eof; if (buffer != null && buffer.position() > 0) { buffer.flip(); ...
private void send() throws IOException { final Pooled<ByteBuffer> pooledBuffer = buffer; final ByteBuffer buffer = pooledBuffer == null ? null : pooledBuffer.getResource(); this.buffer = null; final boolean eof = this.eof; if (buffer != null && buffer.position() > 0) { ...
diff --git a/src/test/java/pl/psnc/dl/wf4ever/darceo/client/TestDArceoClient.java b/src/test/java/pl/psnc/dl/wf4ever/darceo/client/TestDArceoClient.java index 76d8d96..9b9641f 100644 --- a/src/test/java/pl/psnc/dl/wf4ever/darceo/client/TestDArceoClient.java +++ b/src/test/java/pl/psnc/dl/wf4ever/darceo/client/TestDArce...
false
true
private void crud(ResearchObjectSerializable ro, List<String> expectedResources) throws IOException, DArceoException, InterruptedException { //POST URI statusURI = DArceoClient.getInstance().post(ro); Assert.assertNotNull(statusURI); URI id = DArceoClient.getInstance().po...
private void crud(ResearchObjectSerializable ro, List<String> expectedResources) throws IOException, DArceoException, InterruptedException { //POST URI statusURI = DArceoClient.getInstance().post(ro); Assert.assertNotNull(statusURI); URI id = DArceoClient.getInstance().po...
diff --git a/src/main/java/ru/urbancamper/audiobookmarker/AudioBookMarkerUtil.java b/src/main/java/ru/urbancamper/audiobookmarker/AudioBookMarkerUtil.java index 8f2e6b3..a1e59aa 100644 --- a/src/main/java/ru/urbancamper/audiobookmarker/AudioBookMarkerUtil.java +++ b/src/main/java/ru/urbancamper/audiobookmarker/AudioBoo...
true
true
public MarkedDocument makeMarkers(String[] audioBookFilesPaths, String fullText){ this.bookTextAggregator.setFullText(fullText); HashMap<String, String> audioFilesIdentificatorMap = new HashMap<String, String>(); String audioFilePath; String fileName; for(Integer fileCounter ...
public MarkedDocument makeMarkers(String[] audioBookFilesPaths, String fullText){ this.bookTextAggregator.setFullText(fullText); HashMap<String, String> audioFilesIdentificatorMap = new HashMap<String, String>(); String audioFilePath; String fileName; for(Integer fileCounter ...
diff --git a/src/info/eigenein/openwifi/activities/MainActivity.java b/src/info/eigenein/openwifi/activities/MainActivity.java index 273bc0f..f53a583 100644 --- a/src/info/eigenein/openwifi/activities/MainActivity.java +++ b/src/info/eigenein/openwifi/activities/MainActivity.java @@ -1,443 +1,443 @@ package info.eigen...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Setup default values for the settings. PreferenceManager.setDefaultValues(this, R.xml.preferences, false); // Setup view. setContentView(R.layout.main); // Setup action bar. ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Setup default values for the settings. PreferenceManager.setDefaultValues(this, R.xml.preferences, false); // Setup view. setContentView(R.layout.main); // Setup action bar. ...
diff --git a/src/main/java/hudson/plugins/cppncss/parser/Statistic.java b/src/main/java/hudson/plugins/cppncss/parser/Statistic.java index f6ed1a9..ca0f06d 100644 --- a/src/main/java/hudson/plugins/cppncss/parser/Statistic.java +++ b/src/main/java/hudson/plugins/cppncss/parser/Statistic.java @@ -1,380 +1,380 @@ packag...
false
true
public static StatisticsResult parse(File inFile) throws IOException, XmlPullParserException { StatisticsResult result = new StatisticsResult(); Collection<Statistic> fileResults = new ArrayList<Statistic>(); Collection<Statistic> functionResults = new ArrayList<Statistic>(); F...
public static StatisticsResult parse(File inFile) throws IOException, XmlPullParserException { StatisticsResult result = new StatisticsResult(); Collection<Statistic> fileResults = new ArrayList<Statistic>(); Collection<Statistic> functionResults = new ArrayList<Statistic>(); F...
diff --git a/src/org/andengine/extension/rubeloader/factory/PhysicsWorldFactoryFixedStep.java b/src/org/andengine/extension/rubeloader/factory/PhysicsWorldFactoryFixedStep.java index a78851a..045a76d 100644 --- a/src/org/andengine/extension/rubeloader/factory/PhysicsWorldFactoryFixedStep.java +++ b/src/org/andengine/ex...
true
true
public PhysicsWorld populate(WorldDef pWorldDef) { PhysicsWorld ret = new FixedStepPhysicsWorld(mStepsPerSecond, pWorldDef.gravity, pWorldDef.allowSleep, pWorldDef.positionIterations, pWorldDef.velocityIterations); tuneParams(pWorldDef, ret); return ret; }
public PhysicsWorld populate(WorldDef pWorldDef) { PhysicsWorld ret = new FixedStepPhysicsWorld(mStepsPerSecond, pWorldDef.gravity, pWorldDef.allowSleep, pWorldDef.velocityIterations, pWorldDef.positionIterations); tuneParams(pWorldDef, ret); return ret; }
diff --git a/melati/src/main/java/org/melati/servlet/DefaultFileDataAdaptor.java b/melati/src/main/java/org/melati/servlet/DefaultFileDataAdaptor.java index f904b9170..932238f1c 100644 --- a/melati/src/main/java/org/melati/servlet/DefaultFileDataAdaptor.java +++ b/melati/src/main/java/org/melati/servlet/DefaultFileData...
true
true
public DefaultFileDataAdaptor(Melati melatiP, String uploadDir, String uploadURL, boolean makeUnique) { this.uploadDir = uploadDir; this.uploadURL = uploadURL; this.makeUnique = makeUnique; }
public DefaultFileDataAdaptor(Melati melatiP, String uploadDir, String uploadURL, boolean makeUnique) { this.melati = melatiP; this.uploadDir = uploadDir; this.uploadURL = uploadURL; this.makeUnique = makeUnique; }
diff --git a/src/main/java/org/concord/energy3d/logger/PostProcessor.java b/src/main/java/org/concord/energy3d/logger/PostProcessor.java index f9ac4aae..fb8edc26 100644 --- a/src/main/java/org/concord/energy3d/logger/PostProcessor.java +++ b/src/main/java/org/concord/energy3d/logger/PostProcessor.java @@ -1,150 +1,157 ...
false
true
public static void process(final File[] files, final File output, final Runnable update) { new Thread() { public void run() { final int n = files.length; PrintWriter logWriter = null; try { logWriter = new PrintWriter(output); } catch (final Exception ex) { ex.printStackTrace(); } ...
public static void process(final File[] files, final File output, final Runnable update) { new Thread() { public void run() { final int n = files.length; PrintWriter logWriter = null; try { logWriter = new PrintWriter(output); } catch (final Exception ex) { ex.printStackTrace(); } ...
diff --git a/aQute.libg/src/aQute/libg/cafs/CAFS.java b/aQute.libg/src/aQute/libg/cafs/CAFS.java index d7473918d..61233969d 100644 --- a/aQute.libg/src/aQute/libg/cafs/CAFS.java +++ b/aQute.libg/src/aQute/libg/cafs/CAFS.java @@ -1,414 +1,414 @@ package aQute.libg.cafs; import static aQute.lib.io.IO.*; import jav...
false
true
public SHA1 write(InputStream in) throws Exception { Deflater deflater = new Deflater(); MessageDigest md = MessageDigest.getInstance(ALGORITHM); DigestInputStream din = new DigestInputStream(in, md); DeflaterInputStream dfl = new DeflaterInputStream(din, deflater); ByteArrayOutputStream bout = new ByteArra...
public SHA1 write(InputStream in) throws Exception { Deflater deflater = new Deflater(); MessageDigest md = MessageDigest.getInstance(ALGORITHM); DigestInputStream din = new DigestInputStream(in, md); ByteArrayOutputStream bout = new ByteArrayOutputStream(); DeflaterOutputStream dout = new DeflaterOutputStr...
diff --git a/app/src/jiunling/pass/wifi/RegexNetwork.java b/app/src/jiunling/pass/wifi/RegexNetwork.java index dad90ac..1762cc4 100644 --- a/app/src/jiunling/pass/wifi/RegexNetwork.java +++ b/app/src/jiunling/pass/wifi/RegexNetwork.java @@ -1,75 +1,75 @@ package jiunling.pass.wifi; import java.util.regex.Matcher; ...
true
true
private JSONObject findSpecified(String command, String SSID) { Pattern mPattern = Pattern.compile("network=[{][^}]+[}]", Pattern.DOTALL | Pattern.MULTILINE); Matcher mMatcher = mPattern.matcher(command); while (mMatcher.find()) { String group = mMatcher.group(); group = group.replace("netwo...
private JSONObject findSpecified(String command, String SSID) { Pattern mPattern = Pattern.compile("network=[{][^}]+[}]", Pattern.DOTALL | Pattern.MULTILINE); Matcher mMatcher = mPattern.matcher(command); while (mMatcher.find()) { String group = mMatcher.group(); group = group.replace("netwo...
diff --git a/src/biz/bokhorst/xprivacy/PrivacyManager.java b/src/biz/bokhorst/xprivacy/PrivacyManager.java index 41b1296d..f8a410c1 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyManager.java +++ b/src/biz/bokhorst/xprivacy/PrivacyManager.java @@ -1,842 +1,843 @@ package biz.bokhorst.xprivacy; import java.lang.refle...
true
true
public static boolean getRestricted(XHook hook, Context context, int uid, String restrictionName, String methodName, boolean usage, boolean useCache) { try { long start = System.currentTimeMillis(); // Check uid if (uid <= 0) { Util.log(hook, Log.WARN, "uid <= 0"); Util.logStack(hook); retur...
public static boolean getRestricted(XHook hook, Context context, int uid, String restrictionName, String methodName, boolean usage, boolean useCache) { try { long start = System.currentTimeMillis(); // Check uid if (uid <= 0) { Util.log(hook, Log.WARN, "uid <= 0"); Util.logStack(hook); retur...
diff --git a/util/src/main/java/com/psddev/dari/util/CodeUtils.java b/util/src/main/java/com/psddev/dari/util/CodeUtils.java index dafe8202..ce92b63a 100644 --- a/util/src/main/java/com/psddev/dari/util/CodeUtils.java +++ b/util/src/main/java/com/psddev/dari/util/CodeUtils.java @@ -1,817 +1,813 @@ package com.psddev.d...
false
true
private static synchronized Class<?> getAgentClass() { try { AGENT_CLASS = ClassLoader.getSystemClassLoader().loadClass(Agent.class.getName()); return AGENT_CLASS; } catch (ClassNotFoundException ex) { } Class<?> vmClass = ObjectUtils.getClassByName("com.sun....
private static synchronized Class<?> getAgentClass() { try { AGENT_CLASS = ClassLoader.getSystemClassLoader().loadClass(Agent.class.getName()); return AGENT_CLASS; } catch (ClassNotFoundException ex) { } Class<?> vmClass = ObjectUtils.getClassByName("com.sun....
diff --git a/src/hello/FizzBuzz.java b/src/hello/FizzBuzz.java index b7e54ee..7892fb6 100644 --- a/src/hello/FizzBuzz.java +++ b/src/hello/FizzBuzz.java @@ -1,11 +1,11 @@ package hello; public class FizzBuzz { public String fizzbuzz(int i) { if (i % 3 == 0) return "Fizz"; - if (i == 5) return "Buzz"; + if ...
true
true
public String fizzbuzz(int i) { if (i % 3 == 0) return "Fizz"; if (i == 5) return "Buzz"; return null; }
public String fizzbuzz(int i) { if (i % 3 == 0) return "Fizz"; if (i % 5 == 0) return "Buzz"; return null; }
diff --git a/src/net/colar/netbeans/fan/FanParserTask.java b/src/net/colar/netbeans/fan/FanParserTask.java index c2d5ce1..3763c1f 100644 --- a/src/net/colar/netbeans/fan/FanParserTask.java +++ b/src/net/colar/netbeans/fan/FanParserTask.java @@ -1,1501 +1,1507 @@ /* * To change this template, choose Tools | Templates...
true
true
public void parseVars(AstNode node, FanResolvedType type) { if (invalidated) { throw new IllegalStateException("Parser task was invalidated"); } if (node == null) { return; } // If base type is unknown ... so are child if (type instanceof FanUnknownType) { node...
public void parseVars(AstNode node, FanResolvedType type) { if (invalidated) { throw new IllegalStateException("Parser task was invalidated"); } if (node == null) { return; } // If base type is unknown ... so are child if (type instanceof FanUnknownType) { node...
diff --git a/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java b/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java index a87af596..b7e867c2 100644 --- a/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java +++ b/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java @@ -1,154 +1,...
true
true
public void configureWebApp () throws Exception{ WebAppContext context = getWebAppContext(); if (context.isStarted()) { log.debug("Cannot configure webapp after it is started"); return; } Resource webInf = context.getWebInf(); if(webInf != null && ...
public void configureWebApp () throws Exception{ WebAppContext context = getWebAppContext(); if (context.isStarted()) { log.debug("Cannot configure webapp after it is started"); return; } Resource webInf = context.getWebInf(); if(webInf != null && ...
diff --git a/contentconnector-http/src/main/java/com/gentics/cr/http/HTTPClientRequestProcessor.java b/contentconnector-http/src/main/java/com/gentics/cr/http/HTTPClientRequestProcessor.java index bbf8f4b1..1a04d501 100644 --- a/contentconnector-http/src/main/java/com/gentics/cr/http/HTTPClientRequestProcessor.java +++...
false
true
public Collection<CRResolvableBean> getObjects(CRRequest request, boolean doNavigation) throws CRException { ArrayList<CRResolvableBean> resultlist = new ArrayList<CRResolvableBean>(); String additional = null; String filter = "filter="+encode(request.getRequestFilter()); String attributesstring = "";...
public Collection<CRResolvableBean> getObjects(CRRequest request, boolean doNavigation) throws CRException { ArrayList<CRResolvableBean> resultlist = new ArrayList<CRResolvableBean>(); String additional = null; String filter = "filter="+encode(request.getRequestFilter()); String attributesstring = "";...
diff --git a/src/com/android/exchange/adapter/EmailSyncAdapter.java b/src/com/android/exchange/adapter/EmailSyncAdapter.java index 2cd43c2a..18324ff4 100644 --- a/src/com/android/exchange/adapter/EmailSyncAdapter.java +++ b/src/com/android/exchange/adapter/EmailSyncAdapter.java @@ -1,698 +1,699 @@ /* * Copyright (C)...
false
true
public boolean sendLocalChanges(Serializer s) throws IOException { ContentResolver cr = mContext.getContentResolver(); // Find any of our deleted items Cursor c = cr.query(Message.DELETED_CONTENT_URI, Message.LIST_PROJECTION, MessageColumns.MAILBOX_KEY + '=' + mMailbox.mId, ...
public boolean sendLocalChanges(Serializer s) throws IOException { ContentResolver cr = mContext.getContentResolver(); // Find any of our deleted items Cursor c = cr.query(Message.DELETED_CONTENT_URI, Message.LIST_PROJECTION, MessageColumns.MAILBOX_KEY + '=' + mMailbox.mId, ...
diff --git a/core/src/com/google/zxing/oned/AbstractOneDReader.java b/core/src/com/google/zxing/oned/AbstractOneDReader.java index cca98784..a818cbb8 100644 --- a/core/src/com/google/zxing/oned/AbstractOneDReader.java +++ b/core/src/com/google/zxing/oned/AbstractOneDReader.java @@ -1,229 +1,246 @@ /* * Copyright 200...
false
true
private Result doDecode(MonochromeBitmapSource image, Hashtable hints, boolean tryHarder) throws ReaderException { int width = image.getWidth(); int height = image.getHeight(); BitArray row = new BitArray(width); // We're going to examine rows from the middle outward, searching alternately above an...
private Result doDecode(MonochromeBitmapSource image, Hashtable hints, boolean tryHarder) throws ReaderException { int width = image.getWidth(); int height = image.getHeight(); BitArray row = new BitArray(width); // We're going to examine rows from the middle outward, searching alternately above an...
diff --git a/components/bio-formats/src/loci/formats/in/MinimalTiffReader.java b/components/bio-formats/src/loci/formats/in/MinimalTiffReader.java index ae517fd9a..5088af9cc 100644 --- a/components/bio-formats/src/loci/formats/in/MinimalTiffReader.java +++ b/components/bio-formats/src/loci/formats/in/MinimalTiffReader....
false
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessInputStream(id); tiffParser = new TiffParser(in); tiffParser.setDoCaching(false); Boolean littleEndian = tiffParser.checkHeader(); if (littleEndian == null) { throw new Forma...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessInputStream(id); tiffParser = new TiffParser(in); tiffParser.setDoCaching(false); Boolean littleEndian = tiffParser.checkHeader(); if (littleEndian == null) { throw new Forma...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java index 9a9a14164..8c1d20a0c 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletReq...
false
true
public void send() { checkReadOnly(); final Request request = (Request) super.message; final MobicentsSipSession session = getSipSession(); try { ProxyImpl proxy = null; if(session != null) { proxy = session.getProxy(); } final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa...
public void send() { checkReadOnly(); final Request request = (Request) super.message; final MobicentsSipSession session = getSipSession(); try { ProxyImpl proxy = null; if(session != null) { proxy = session.getProxy(); } final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa...
diff --git a/demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java b/demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java index 9a9375c..06906ae 100755 --- a/demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java +++ b/de...
false
true
protected void runAmazonScript(String browser) { createDriver(4444, "http://amazon.com", browser); selenium.open("/"); selenium.type("twotabsearchtextbox", "refactoring"); selenium.click("Go"); selenium.waitForPageToLoad("60000"); assertTrue(selenium.getLocation().sta...
protected void runAmazonScript(String browser) { createDriver(4444, "http://amazon.com", browser); selenium.open("/"); selenium.type("twotabsearchtextbox", "refactoring"); selenium.click("navGoButtonPanel"); selenium.waitForPageToLoad("60000"); assertTrue(selenium.get...
diff --git a/SoundStream-test/src/com/lastcrusade/soundstream/net/message/FoundGuestsMessageTest.java b/SoundStream-test/src/com/lastcrusade/soundstream/net/message/FoundGuestsMessageTest.java index edf09cd..7ee3e9d 100644 --- a/SoundStream-test/src/com/lastcrusade/soundstream/net/message/FoundGuestsMessageTest.java ++...
true
true
public void testSerializeFoundGuestsMessage() throws IOException { //NOTE: no fields to check, and the base class will ensure we create the right class. List<FoundGuest> foundGuests = new ArrayList<FoundGuest>(); foundGuests.add(new FoundGuest("Test1", "00:11:22:33:44:55:66")); found...
public void testSerializeFoundGuestsMessage() throws IOException { //NOTE: no fields to check, and the base class will ensure we create the right class. List<FoundGuest> foundGuests = new ArrayList<FoundGuest>(); foundGuests.add(new FoundGuest("Test1", "00:11:22:33:44:55:66", true)); ...
diff --git a/src/org/dita/dost/writer/KeyrefPaser.java b/src/org/dita/dost/writer/KeyrefPaser.java index 2e651d40f..a1b02533b 100644 --- a/src/org/dita/dost/writer/KeyrefPaser.java +++ b/src/org/dita/dost/writer/KeyrefPaser.java @@ -1,786 +1,776 @@ /* * This file is part of the DITA Open Toolkit project hosted on ...
true
true
public void startElement(final String uri, final String localName, final String name, final Attributes atts) throws SAXException { currentElement = null; final String cls = atts.getValue(ATTRIBUTE_NAME_CLASS); for (final KeyrefInfo k: keyrefInfos) { if (k.type.matches...
public void startElement(final String uri, final String localName, final String name, final Attributes atts) throws SAXException { currentElement = null; final String cls = atts.getValue(ATTRIBUTE_NAME_CLASS); for (final KeyrefInfo k: keyrefInfos) { if (k.type.matches...
diff --git a/src/com/android/musicfx/ControlPanelEffect.java b/src/com/android/musicfx/ControlPanelEffect.java index 8abb4f3..db46c3e 100644 --- a/src/com/android/musicfx/ControlPanelEffect.java +++ b/src/com/android/musicfx/ControlPanelEffect.java @@ -1,1419 +1,1419 @@ /* * Copyright (C) 2010-2011 The Android Open ...
true
true
public static void openSession(final Context context, final String packageName, final int audioSession) { Log.v(TAG, "openSession(" + context + ", " + packageName + ", " + audioSession + ")"); final String methodTag = "openSession: "; // init preferences final SharedPref...
public static void openSession(final Context context, final String packageName, final int audioSession) { Log.v(TAG, "openSession(" + context + ", " + packageName + ", " + audioSession + ")"); final String methodTag = "openSession: "; // init preferences final SharedPref...
diff --git a/src/main/java/be/Balor/Player/sql/SQLPlayerFactory.java b/src/main/java/be/Balor/Player/sql/SQLPlayerFactory.java index f48128d8..09b662bd 100644 --- a/src/main/java/be/Balor/Player/sql/SQLPlayerFactory.java +++ b/src/main/java/be/Balor/Player/sql/SQLPlayerFactory.java @@ -1,189 +1,192 @@ /*This file is p...
false
true
private Long getPlayerID(final String playername) { Long id = playersID.get(playername); if (id != null) { return id; } Database.DATABASE.autoReconnect(); ResultSet rs = null; synchronized (doubleCheckPlayer) { try { doubleCheckPlayer.clearParameters(); doubleCheckPlayer.setString(1, playern...
private Long getPlayerID(final String playername) { Long id = playersID.get(playername); if (id != null) { return id; } try { Database.DATABASE.autoReconnect(); } catch (final Throwable e) { } ResultSet rs = null; synchronized (doubleCheckPlayer) { try { doubleCheckPlayer.clearParameters(...
diff --git a/src/com/android/contacts/detail/ContactDetailFragment.java b/src/com/android/contacts/detail/ContactDetailFragment.java index 87c321ef6..cde1215d6 100644 --- a/src/com/android/contacts/detail/ContactDetailFragment.java +++ b/src/com/android/contacts/detail/ContactDetailFragment.java @@ -1,2233 +1,2242 @@ ...
true
true
private final void buildEntries() { mHasPhone = PhoneCapabilityTester.isPhone(mContext); mHasSms = PhoneCapabilityTester.isSmsIntentRegistered(mContext); mHasSip = PhoneCapabilityTester.isSipPhone(mContext); // Clear out the old entries mAllEntries.clear(); mPrimary...
private final void buildEntries() { mHasPhone = PhoneCapabilityTester.isPhone(mContext); mHasSms = PhoneCapabilityTester.isSmsIntentRegistered(mContext); mHasSip = PhoneCapabilityTester.isSipPhone(mContext); // Clear out the old entries mAllEntries.clear(); mPrimary...
diff --git a/src/main/java/com/springrts/springls/commands/impl/ForceJoinBattleCommandProcessor.java b/src/main/java/com/springrts/springls/commands/impl/ForceJoinBattleCommandProcessor.java index ed28bd9..77b89a6 100644 --- a/src/main/java/com/springrts/springls/commands/impl/ForceJoinBattleCommandProcessor.java +++ b...
true
true
public boolean process(Client client, List<String> args) throws CommandProcessingException { boolean checksOk = super.process(client, args); if (!checksOk) { return false; } String userName = args.get(0); Client affectedClient = getContext().getClients().getClient(userName); if (affectedClient == n...
public boolean process(Client client, List<String> args) throws CommandProcessingException { boolean checksOk = super.process(client, args); if (!checksOk) { return false; } String userName = args.get(0); Client affectedClient = getContext().getClients().getClient(userName); if (affectedClient == n...
diff --git a/syncronizer/src/org/sync/GitImporter.java b/syncronizer/src/org/sync/GitImporter.java index ded5904..74cac74 100644 --- a/syncronizer/src/org/sync/GitImporter.java +++ b/syncronizer/src/org/sync/GitImporter.java @@ -1,481 +1,487 @@ /*************************************************************************...
false
true
public void generateFastImportStream(View view, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createCheckoutManager(...
public void generateFastImportStream(View view, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createCheckoutManager(...
diff --git a/net.sourceforge.eclipseccase.ui/src/net/sourceforge/eclipseccase/ui/actions/FindMergeAction.java b/net.sourceforge.eclipseccase.ui/src/net/sourceforge/eclipseccase/ui/actions/FindMergeAction.java index 5815173..1a8c7fc 100644 --- a/net.sourceforge.eclipseccase.ui/src/net/sourceforge/eclipseccase/ui/actions...
true
true
public void execute(IAction action) throws InvocationTargetException, InterruptedException { resources = getSelectedResources(); IWorkspaceRunnable runnable = new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { try { if (resources != null && resources.length !=...
public void execute(IAction action) throws InvocationTargetException, InterruptedException { resources = getSelectedResources(); IWorkspaceRunnable runnable = new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { try { if (resources != null && resources.length !=...
diff --git a/src/org/cyanogenmod/nemesis/CameraManager.java b/src/org/cyanogenmod/nemesis/CameraManager.java index 261a5c2..769d4b7 100644 --- a/src/org/cyanogenmod/nemesis/CameraManager.java +++ b/src/org/cyanogenmod/nemesis/CameraManager.java @@ -1,787 +1,787 @@ /** * Copyright (C) 2013 The CyanogenMod Project *...
true
true
public boolean open(final int cameraId) { if (mCamera != null) { if (mPreviewPauseListener != null) { mPreviewPauseListener.onPreviewPause(); } // Close the previous camera releaseCamera(); } mCameraReady = false; // ...
public boolean open(final int cameraId) { if (mCamera != null) { if (mPreviewPauseListener != null) { mPreviewPauseListener.onPreviewPause(); } // Close the previous camera releaseCamera(); } mCameraReady = false; // ...
diff --git a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBExportAction.java b/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBExportAction.java index dd118703e..b0a5dbc88 100644 --- a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBE...
true
true
public void run(IAction action) { // STEP 1: create Eagle script file from Fritzing files IDiagramWorkbenchPart editor = null; URI diagramUri = null; try { // use currently active diagram editor = FritzingDiagramEditorUtil.getActiveDiagramPart(); diagramUri = FritzingDiagramEditorUtil.getActiveD...
public void run(IAction action) { // STEP 1: create Eagle script file from Fritzing files IDiagramWorkbenchPart editor = null; URI diagramUri = null; try { // use currently active diagram editor = FritzingDiagramEditorUtil.getActiveDiagramPart(); diagramUri = FritzingDiagramEditorUtil.getActiveD...
diff --git a/src/android/src/pro/trousev/cleer/android/service/AndroidCleerService.java b/src/android/src/pro/trousev/cleer/android/service/AndroidCleerService.java index ace7707..92a413c 100644 --- a/src/android/src/pro/trousev/cleer/android/service/AndroidCleerService.java +++ b/src/android/src/pro/trousev/cleer/andr...
true
true
public void onCreate() { super.onCreate(); queue = new QueueImpl(new PlayerAndroid()); database = new DatabaseImpl(Constants.DATABASE_PATH); notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Messaging.subscribe(AndroidMessages.ServiceRequestMessage.class, new Mes...
public void onCreate() { super.onCreate(); queue = new QueueImpl(new PlayerAndroid()); //database = new DatabaseImpl(Constants.DATABASE_PATH); notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Messaging.subscribe(AndroidMessages.ServiceRequestMessage.class, new M...
diff --git a/src/org/fao/gast/lib/EmbeddedSCLib.java b/src/org/fao/gast/lib/EmbeddedSCLib.java index ab3b13db58..146317bcc3 100644 --- a/src/org/fao/gast/lib/EmbeddedSCLib.java +++ b/src/org/fao/gast/lib/EmbeddedSCLib.java @@ -1,177 +1,180 @@ //==========================================================================...
true
true
public EmbeddedSCLib(String appPath) throws JDOMException, IOException { this.appPath = appPath; jetty = Lib.xml.load(appPath + JETTY_FILE); webXml = Lib.xml.load(appPath + WEBXML_FILE); //--- retrieve 'host', 'port' and 'servlet' parameters from jetty for (Object call : jetty.getRootElement().getChildr...
public EmbeddedSCLib(String appPath) throws JDOMException, IOException { this.appPath = appPath; jetty = Lib.xml.load(appPath + JETTY_FILE); webXml = Lib.xml.load(appPath + WEBXML_FILE); //--- retrieve 'host', 'port' and 'servlet' parameters from jetty for (Object call : jetty.getRootElement().getChildr...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/RepositorySynchronizationManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/RepositorySynchronizationManager.java index 12a64b69f..ce500fd10 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/RepositorySynch...
true
true
public synchronized boolean updateOfflineState(final AbstractRepositoryTask repositoryTask, final RepositoryTaskData newTaskData, boolean forceSync) { RepositoryTaskSyncState startState = repositoryTask.getSyncState(); RepositoryTaskSyncState status = repositoryTask.getSyncState(); if (newTaskData == null) {...
public synchronized boolean updateOfflineState(final AbstractRepositoryTask repositoryTask, final RepositoryTaskData newTaskData, boolean forceSync) { RepositoryTaskSyncState startState = repositoryTask.getSyncState(); RepositoryTaskSyncState status = repositoryTask.getSyncState(); if (newTaskData == null) {...
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 65b7911e..59378810 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -1,4650 +1,4648 @@ /* * Copyright (C) 2006 The Android Open Source Project ...
true
true
@Override public void onCreate(Bundle icicle) { if (LOGV_ENABLED) { Log.v(LOGTAG, this + " onStart"); } super.onCreate(icicle); // test the browser in OpenGL // requestWindowFeature(Window.FEATURE_OPENGL); setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL); ...
@Override public void onCreate(Bundle icicle) { if (LOGV_ENABLED) { Log.v(LOGTAG, this + " onStart"); } super.onCreate(icicle); // test the browser in OpenGL // requestWindowFeature(Window.FEATURE_OPENGL); setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL); ...
diff --git a/Average_Calc/Average_Calc.java b/Average_Calc/Average_Calc.java index 08dac74..5e381a6 100644 --- a/Average_Calc/Average_Calc.java +++ b/Average_Calc/Average_Calc.java @@ -1,32 +1,32 @@ /* Author: Kyle Disc: Average_Calc :: finds the sum on num1, ... num5 and then displayes it to the user via. PrintLN....
false
true
public static void main (String args[]) { //add floats, num1, ... num5, ADV, sum float num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0, ADV = 0, sum = 0; //add Scaner Scanner keyboard = new Scanner (System.in); // System.out.println("Welcome!\n"); System.out.println("Number 1: "); num1 = keyboard.nextFloa...
public static void main (String args[]) { //add floats, num1, ... num5, ADV, sum float num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0, ADV = 0, sum = 0; //add Scaner Scanner keyboard = new Scanner (System.in); // System.out.println("Welcome!\n"); System.out.println("Number 1: "); ...
diff --git a/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/model/ProtectedItemWrapper.java b/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/model/ProtectedItemWrapper.java index 49a068f25..3e4600eb5 100644 --- a/aciitemeditor/src/main/java/org/apache/directory/studio/aciit...
true
true
public void setProtectedItem( ProtectedItem item ) { assert item.getClass() == getClazz(); // first clear values values.clear(); // switch on userClass type // no value in ProtectedItem.Entry, ProtectedItem.AllUserAttributeTypes and ProtectedItem.AllUserAttributeTypesAn...
public void setProtectedItem( ProtectedItem item ) { assert item.getClass() == getClazz(); // first clear values values.clear(); // switch on userClass type // no value in ProtectedItem.Entry, ProtectedItem.AllUserAttributeTypes and ProtectedItem.AllUserAttributeTypesAn...
diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index dc8a8f627..5f215dcf6 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPCli...
false
true
protected void clientConnectionRun(Socket s) { InputStream in = null; OutputStream out = null; String targetRequest = null; boolean usingWWWProxy = false; boolean usingInternalServer = false; String currentProxy = null; long requestId = ++__requestId; ...
protected void clientConnectionRun(Socket s) { InputStream in = null; OutputStream out = null; String targetRequest = null; boolean usingWWWProxy = false; boolean usingInternalServer = false; String currentProxy = null; long requestId = ++__requestId; ...
diff --git a/src/com/triposo/automator/androidmarket/HomePage.java b/src/com/triposo/automator/androidmarket/HomePage.java index c39a9bf..821defc 100644 --- a/src/com/triposo/automator/androidmarket/HomePage.java +++ b/src/com/triposo/automator/androidmarket/HomePage.java @@ -1,65 +1,65 @@ package com.triposo.automato...
false
true
public void printStats() { List<WebElement> rows = appsTable.findElements(By.className("listingRow")); for (WebElement row : rows) { String text = row.getText(); String name = null; String totalInstalls = null; String netInstalls = null; Iterable<String> lines = Splitter.on("\n")...
public void printStats() { List<WebElement> rows = appsTable.findElements(By.className("listingRow")); for (WebElement row : rows) { String text = row.getText(); String name = null; String totalInstalls = null; String netInstalls = null; Iterable<String> lines = Splitter.on("\n")...
diff --git a/app/program/program/src/main/java/org/jbundle/app/program/script/scan/DateOffsetScanListener.java b/app/program/program/src/main/java/org/jbundle/app/program/script/scan/DateOffsetScanListener.java index 76cc94ca..8a527526 100644 --- a/app/program/program/src/main/java/org/jbundle/app/program/script/scan/D...
true
true
public String convertString(String string) { if (string != null) { int startTag = string.indexOf('<'); int endTag = string.indexOf('>'); if (startTag > -1) if (endTag > startTag) { String tag = string.substring(start...
public String convertString(String string) { if (string != null) { int startTag = string.indexOf('<'); int endTag = string.indexOf('>'); if (startTag > -1) if (endTag > startTag) { String tag = string.substring(start...
diff --git a/slim3/src/main/java/org/slim3/controller/router/RouterFactory.java b/slim3/src/main/java/org/slim3/controller/router/RouterFactory.java index 7758e065..c3fa44e8 100644 --- a/slim3/src/main/java/org/slim3/controller/router/RouterFactory.java +++ b/slim3/src/main/java/org/slim3/controller/router/RouterFactor...
true
true
private static Router createRouter(ServletContext servletContext) { String rootPackageName = servletContext .getInitParameter(ControllerConstants.ROOT_PACKAGE_KEY); if (StringUtil.isEmpty(rootPackageName)) { throw new IllegalStateException("The context-param("...
private static Router createRouter(ServletContext servletContext) { String rootPackageName = servletContext .getInitParameter(ControllerConstants.ROOT_PACKAGE_KEY); if (StringUtil.isEmpty(rootPackageName)) { throw new IllegalStateException("The context-param("...
diff --git a/src/main/java/com/fasterxml/jackson/dataformat/smile/SmileParser.java b/src/main/java/com/fasterxml/jackson/dataformat/smile/SmileParser.java index 15a2ad2..82e6c2b 100644 --- a/src/main/java/com/fasterxml/jackson/dataformat/smile/SmileParser.java +++ b/src/main/java/com/fasterxml/jackson/dataformat/smile/...
false
true
public JsonToken nextToken() throws IOException, JsonParseException { _numTypesValid = NR_UNKNOWN; // For longer tokens (text, binary), we'll only read when requested if (_tokenIncomplete) { _skipIncomplete(); } _tokenInputTotal = _currInputProcessed + _inputP...
public JsonToken nextToken() throws IOException, JsonParseException { _numTypesValid = NR_UNKNOWN; // For longer tokens (text, binary), we'll only read when requested if (_tokenIncomplete) { _skipIncomplete(); } _tokenInputTotal = _currInputProcessed + _inputP...
diff --git a/src/main/java/org/dynmap/MapManager.java b/src/main/java/org/dynmap/MapManager.java index 90cd4be7..3c7b0019 100644 --- a/src/main/java/org/dynmap/MapManager.java +++ b/src/main/java/org/dynmap/MapManager.java @@ -1,808 +1,810 @@ package org.dynmap; import java.io.File; import java.util.ArrayList; im...
true
true
public void run() { long tstart = System.currentTimeMillis(); if(cancelled) { cleanup(); return; } if(tile0 == null) { /* Not single tile render */ /* If render queue is empty, start next map */ ...
public void run() { long tstart = System.currentTimeMillis(); if(cancelled) { cleanup(); return; } if(tile0 == null) { /* Not single tile render */ /* If render queue is empty, start next map */ ...
diff --git a/HDX-System/src/main/java/org/ocha/hdx/persistence/dao/view/IndicatorMaxDateDAOImpl.java b/HDX-System/src/main/java/org/ocha/hdx/persistence/dao/view/IndicatorMaxDateDAOImpl.java index 852c517..fa0700d 100644 --- a/HDX-System/src/main/java/org/ocha/hdx/persistence/dao/view/IndicatorMaxDateDAOImpl.java +++ b...
true
true
public List<IndicatorMaxDate> getValues(final List<String> entityCodes, final List<String> indicatorTypeCodes, final List<String> sourceCodes) { final StringBuilder builder = new StringBuilder("SELECT imd FROM IndicatorMaxDate imd WHERE "); boolean andNeeded = false; if (entityCodes != null && !entityCodes.isEm...
public List<IndicatorMaxDate> getValues(final List<String> entityCodes, final List<String> indicatorTypeCodes, final List<String> sourceCodes) { final StringBuilder builder = new StringBuilder("SELECT imd FROM IndicatorMaxDate imd WHERE "); boolean andNeeded = false; if (entityCodes != null && !entityCodes.isEm...
diff --git a/src/java/nl/b3p/viewer/admin/stripes/ApplicationStartMapActionBean.java b/src/java/nl/b3p/viewer/admin/stripes/ApplicationStartMapActionBean.java index 1640e45ae..a1ec8accf 100644 --- a/src/java/nl/b3p/viewer/admin/stripes/ApplicationStartMapActionBean.java +++ b/src/java/nl/b3p/viewer/admin/stripes/Applic...
false
true
public Resolution canContentBeSelected() { try { jsonContent = new JSONArray(selectedContent); if(jsonContent.length() == 0) { JSONObject obj = new JSONObject(); obj.put("result", true); return new StreamingResolution("appl...
public Resolution canContentBeSelected() { try { jsonContent = new JSONArray(selectedContent); if(jsonContent.length() == 0) { JSONObject obj = new JSONObject(); obj.put("result", true); return new StreamingResolution("appl...
diff --git a/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java b/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java index fdb6ff763..01b6a829b 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java +++ b/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java @@ -1,568 +1,568 @@ /* Tra...
true
true
public void run() { String infoHash = urlencode(snark.getInfoHash()); String peerID = urlencode(snark.getID()); // Construct the list of trackers for this torrent, // starting with the primary one listed in the metainfo, // followed by the secondary open trackers // It's painful, but try t...
public void run() { String infoHash = urlencode(snark.getInfoHash()); String peerID = urlencode(snark.getID()); // Construct the list of trackers for this torrent, // starting with the primary one listed in the metainfo, // followed by the secondary open trackers // It's painful, but try t...
diff --git a/app/controllers/Main.java b/app/controllers/Main.java index c17e5ac..320050a 100644 --- a/app/controllers/Main.java +++ b/app/controllers/Main.java @@ -1,146 +1,146 @@ package controllers; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.mail.EmailException;...
true
true
public static void newAccount(@Required(message = "Please enter a valid email address") String email, @Required(message = "Please enter a password") String password, @Required(message = "Please enter your first name") String firstName, @Required(message = "Please enter your last name") String lastName, @Re...
public static void newAccount(@Required(message = "Please enter a valid email address") String email, @Required(message = "Please enter a password") String password, @Required(message = "Please enter your first name") String firstName, @Required(message = "Please enter your last name") String lastName, @Re...
diff --git a/Factory/src/factory/graphics/GraphicLaneManager.java b/Factory/src/factory/graphics/GraphicLaneManager.java index 05ae6c1..603cbe5 100644 --- a/Factory/src/factory/graphics/GraphicLaneManager.java +++ b/Factory/src/factory/graphics/GraphicLaneManager.java @@ -1,647 +1,649 @@ //Minh La package factory.g...
false
true
public void processLane(){ if(lane1PurgeOn){ //If purge is on, empties the nest and destroys items on lane graphicPanel.getNest().get(laneManagerID * 2).clearItems(); for(int j = 0; j <lane1Items.size();j++){ if(lane1Items.get(j).getStepY() > 0){ lane1Items.get(j).setVY(-8); } else if(lane1I...
public void processLane(){ if(lane1PurgeOn){ //If purge is on, empties the nest and destroys items on lane graphicPanel.getNest().get(laneManagerID * 2).clearItems(); for(int j = 0; j <lane1Items.size();j++){ if(lane1Items.get(j).getStepY() > 0){ lane1Items.get(j).setVY(-8); } else if(lane1I...
diff --git a/src/info/yasskin/droidmuni/Compatibility.java b/src/info/yasskin/droidmuni/Compatibility.java index 01e17a7..0f58983 100644 --- a/src/info/yasskin/droidmuni/Compatibility.java +++ b/src/info/yasskin/droidmuni/Compatibility.java @@ -1,91 +1,91 @@ package info.yasskin.droidmuni; import java.lang.reflect....
true
true
public static void enableStrictMode() { if (Globals.DEVELOPER_MODE) { try { // StrictMode was added in Gingerbread, but I don't want to build // against the Gingerbread APIs, so I set it up with reflection, and // catch the exceptions on earlier platforms. Class<?> StrictMod...
public static void enableStrictMode() { if (Globals.DEVELOPER_MODE) { try { // StrictMode was added in Gingerbread, but I don't want to build // against the Gingerbread APIs, so I set it up with reflection, and // catch the exceptions on earlier platforms. Class<?> StrictMod...
diff --git a/src/com/turt2live/antishare/worldedit/ASRegion.java b/src/com/turt2live/antishare/worldedit/ASRegion.java index d5e2706a..6bd9403a 100644 --- a/src/com/turt2live/antishare/worldedit/ASRegion.java +++ b/src/com/turt2live/antishare/worldedit/ASRegion.java @@ -1,182 +1,191 @@ package com.turt2live.antishare....
false
true
public void saveToDisk(){ File saveFolder = new File(plugin.getDataFolder(), "regions"); saveFolder.mkdirs(); File regionFile = new File(saveFolder, id + ".yml"); if(!regionFile.exists()){ try{ regionFile.createNewFile(); }catch(Exception e){ e.printStackTrace(); } }else{ regionFile.delet...
public void saveToDisk(){ File saveFolder = new File(plugin.getDataFolder(), "regions"); saveFolder.mkdirs(); File regionFile = new File(saveFolder, id + ".yml"); if(!regionFile.exists()){ try{ regionFile.createNewFile(); }catch(Exception e){ e.printStackTrace(); } }else{ regionFile.delet...
diff --git a/sonar-server/src/main/java/org/sonar/server/search/SearchIndex.java b/sonar-server/src/main/java/org/sonar/server/search/SearchIndex.java index 622c2048c6..9f2774fa7e 100644 --- a/sonar-server/src/main/java/org/sonar/server/search/SearchIndex.java +++ b/sonar-server/src/main/java/org/sonar/server/search/Se...
false
true
public List<String> findDocumentIds(SearchQuery searchQuery) { List<String> result = Lists.newArrayList(); final int scrollTime = 100; SearchRequestBuilder builder = searchQuery.toBuilder(client); LOG.debug("findDocumentIds" + builder.internalBuilder().toString()); TimeProfiler profiler = newDebu...
public List<String> findDocumentIds(SearchQuery searchQuery) { List<String> result = Lists.newArrayList(); final int scrollTime = 100; final String methodName = "findDocumentIds"; SearchRequestBuilder builder = searchQuery.toBuilder(client); LOG.debug(methodName + builder.internalBuilder().toStri...
diff --git a/src/classifier/ResourceTypeClassify.java b/src/classifier/ResourceTypeClassify.java index 54577fe..ba11a19 100644 --- a/src/classifier/ResourceTypeClassify.java +++ b/src/classifier/ResourceTypeClassify.java @@ -1,74 +1,74 @@ import java.io.*; import java.util.*; import cc.mallet.classify.*; import cc....
false
true
public static void printLabelings(Classifier classifier, File vectorfile, String outputFilename) throws IOException { //format of data in vectorfile is: [name]\t[label]\t[data] CsvIterator reader = new CsvIterator(new FileReader(vectorfile), "(.+)\\t(.+)\\t(.*...
public static void printLabelings(Classifier classifier, File vectorfile, String outputFilename) throws IOException { //format of data in vectorfile is: [name]\t[label]\t[data] CsvIterator reader = new CsvIterator(new FileReader(vectorfile), "(.+)\\t(.*)\\t(.*...
diff --git a/trunk/org/xbill/DNS/NameSet.java b/trunk/org/xbill/DNS/NameSet.java index b61cce4..4ff7f1e 100644 --- a/trunk/org/xbill/DNS/NameSet.java +++ b/trunk/org/xbill/DNS/NameSet.java @@ -1,221 +1,219 @@ // Copyright (c) 1999-2001 Brian Wellington (bwelling@xbill.org) package org.xbill.DNS; import java.util...
false
true
protected Object findSets(Name name, short type) { Object bestns = null; Object o; Name tname; int labels; int olabels; int tlabels; if (!name.subdomain(origin)) return null; labels = name.labels(); olabels = origin.labels(); for (tlabels = olabels; tlabels <= labels; tlabels++) { if (tlabels == olabels...
protected Object findSets(Name name, short type) { Object bestns = null; Object o; Name tname; int labels; int olabels; int tlabels; if (!name.subdomain(origin)) return null; labels = name.labels(); olabels = origin.labels(); for (tlabels = olabels; tlabels <= labels; tlabels++) { if (tlabels == olabels...
diff --git a/plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/validate/ocl/OCLExpressionAdapter.java b/plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/validate/ocl/OCLExpressionAdapter.java index 1d329bd82..876e6dced 100644 --- a/plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/v...
true
true
public OCLExpressionAdapter(String body, EClassifier context, IParseEnvironment extEnv) { super(body, context, extEnv); try { org.eclipse.ocl.ecore.OCL ocl = null; if(extEnv != null) { EcoreEnvironmentFactory factory = EcoreEnvironmentFactory.INSTANCE; if(extEnv.getImportRegistry() != null) { ...
public OCLExpressionAdapter(String body, EClassifier context, IParseEnvironment extEnv) { super(body, context, extEnv); try { org.eclipse.ocl.ecore.OCL ocl = null; if(extEnv != null) { EcoreEnvironmentFactory factory = EcoreEnvironmentFactory.INSTANCE; if(extEnv.getImportRegistry() != null) { ...
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java index d0988eaab..9933efa8a 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor....
false
true
protected Annotation findAnnotation(final int offset, final int length, boolean forward, Position annotationPosition) { Annotation nextAnnotation= null; Position nextAnnotationPosition= null; Annotation containingAnnotation= null; Position containingAnnotationPosition= null; boolean currentAnnotation= false...
protected Annotation findAnnotation(final int offset, final int length, boolean forward, Position annotationPosition) { Annotation nextAnnotation= null; Position nextAnnotationPosition= null; Annotation containingAnnotation= null; Position containingAnnotationPosition= null; boolean currentAnnotation= false...
diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java index 14c6a42c3..b31e5643a 100644 --- a/htroot/yacysearchitem.java +++ b/htroot/yacysearchitem.java @@ -1,206 +1,208 @@ // yacysearchitem.java // (C) 2007 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany // first published 28.08.200...
false
true
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; final serverObjects prop = new serverObjects(); final String eventID = post.get("eventID", ""); fi...
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; final serverObjects prop = new serverObjects(); final String eventID = post.get("eventID", ""); fi...
diff --git a/alchemy-midlet/src/alchemy/libs/LibUI1Func.java b/alchemy-midlet/src/alchemy/libs/LibUI1Func.java index 913660a..c7d582c 100644 --- a/alchemy-midlet/src/alchemy/libs/LibUI1Func.java +++ b/alchemy-midlet/src/alchemy/libs/LibUI1Func.java @@ -1,387 +1,387 @@ /* * This file is a part of Alchemy OS project. ...
true
true
protected Object execNative(Context c, Object[] args) throws Exception { switch (index) { case 0: // new_image(w: Int, h: Int): Image return Image.createImage(ival(args[0]), ival(args[1])); case 1: // Image.graphics(): Graphics return ((Image)args[0]).getGraphics(); case 2: { // image_from_argb(argb...
protected Object execNative(Context c, Object[] args) throws Exception { switch (index) { case 0: // new_image(w: Int, h: Int): Image return Image.createImage(ival(args[0]), ival(args[1])); case 1: // Image.graphics(): Graphics return ((Image)args[0]).getGraphics(); case 2: { // image_from_argb(argb...
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIThread.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIThread.java index 1a8e046d9..3b42fbae9 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIThread.java +++ b/org....
true
true
protected synchronized List computeStackFrames(boolean refreshChildren) throws DebugException { if (isSuspended()) { if (isTerminated()) { fStackFrames = Collections.EMPTY_LIST; } else if (refreshChildren) { if (fStackFrames.isEmpty()) { fStackFrames = createAllStackFrames(); if (fStackFrames...
protected synchronized List computeStackFrames(boolean refreshChildren) throws DebugException { if (isSuspended()) { if (isTerminated()) { fStackFrames = Collections.EMPTY_LIST; } else if (refreshChildren) { if (fStackFrames.isEmpty()) { fStackFrames = createAllStackFrames(); if (fStackFrames...
diff --git a/src/cytoscape/util/CyFileFilter.java b/src/cytoscape/util/CyFileFilter.java index a4f51f150..f88e6b329 100644 --- a/src/cytoscape/util/CyFileFilter.java +++ b/src/cytoscape/util/CyFileFilter.java @@ -1,280 +1,280 @@ // CyFileFilter.java /** Copyright (c) 2002 Institute for Systems Biology and the White...
true
true
public String getDescription() { if(fullDescription == null) { if(description == null || isExtensionListInDescription()) { fullDescription = description==null ? "(" : description + " ("; // build the description from the extension list Enumeration extensions = filters.keys(); if(extensions != null) {...
public String getDescription() { if(fullDescription == null) { if(description == null || isExtensionListInDescription()) { fullDescription = description==null ? "(" : description + " ("; // build the description from the extension list Enumeration extensions = filters.keys(); if(extensions != null) {...
diff --git a/core/vdmj/src/main/java/org/overturetool/vdmj/values/TransactionValue.java b/core/vdmj/src/main/java/org/overturetool/vdmj/values/TransactionValue.java index 2b1eae0760..781925aaf1 100644 --- a/core/vdmj/src/main/java/org/overturetool/vdmj/values/TransactionValue.java +++ b/core/vdmj/src/main/java/org/over...
false
true
public void set(LexLocation location, Value newval, Context ctxt) { long current = BasicSchedulableThread.getThread(Thread.currentThread()).getId(); if (newthreadid > 0 && current != newthreadid) { throw new ContextException( 4142, "Value already updated by thread " + newthreadid, location, ctxt); } ...
public void set(LexLocation location, Value newval, Context ctxt) { long current = BasicSchedulableThread.getThread(Thread.currentThread()).getId(); if (newthreadid > 0 && current != newthreadid) { throw new ContextException( 4142, "Value already updated by thread " + newthreadid, location, ctxt); } ...
diff --git a/jOOQ-test/src/org/jooq/test/_/testcases/ResultSetTests.java b/jOOQ-test/src/org/jooq/test/_/testcases/ResultSetTests.java index d0f827176..5de0e9a23 100644 --- a/jOOQ-test/src/org/jooq/test/_/testcases/ResultSetTests.java +++ b/jOOQ-test/src/org/jooq/test/_/testcases/ResultSetTests.java @@ -1,182 +1,186 @@...
false
true
public void testResultSetConcurrency() throws Exception { if (asList(SQLITE).contains(dialect())) { log.info("SKIPPING", "ResultSet concurrency tests"); return; } jOOQAbstractTest.reset = false; assertEquals( asList("Title 1", "Title 2", "Title 3...
public void testResultSetConcurrency() throws Exception { switch (dialect()) { case SQLITE: log.info("SKIPPING", "ResultSet concurrency tests"); return; } jOOQAbstractTest.reset = false; assertEquals( asList("Title 1", "Title ...
diff --git a/src/com/orangeleap/tangerine/json/controller/PostbatchGiftListController.java b/src/com/orangeleap/tangerine/json/controller/PostbatchGiftListController.java index e2770d48..413aeb14 100644 --- a/src/com/orangeleap/tangerine/json/controller/PostbatchGiftListController.java +++ b/src/com/orangeleap/tangerin...
false
true
public ModelMap getPostbatchGiftList(HttpServletRequest request, SortInfo sortInfo) { List<Map> rows = new ArrayList<Map>(); try { String sid = request.getParameter("id"); if (sid == null || sid.trim().length() == 0) return new ModelMap("rows", rows); long postbatch...
public ModelMap getPostbatchGiftList(HttpServletRequest request, SortInfo sortInfo) { List<Map> rows = new ArrayList<Map>(); ModelMap map = new ModelMap("rows", rows); map.put("totalRows", 0); try { String sid = request.getParameter("id"); if (sid == null || ...
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/UnhandledDataStructure.java b/src/scratchpad/src/org/apache/poi/hwpf/model/UnhandledDataStructure.java index 6cf53f746..967f46e80 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/UnhandledDataStructure.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/m...
false
true
public UnhandledDataStructure(byte[] buf, int offset, int length) { // Sanity check the size they've asked for if (offset + length > buf.length) { throw new IndexOutOfBoundsException("Buffer Length is " + buf.length + " " + "but code is tried to read " + l...
public UnhandledDataStructure(byte[] buf, int offset, int length) { // Sanity check the size they've asked for int offsetEnd = offset + length; if (offsetEnd > buf.length || offsetEnd < 0) { throw new IndexOutOfBoundsException("Buffer Length is " + buf.length + " " + ...
diff --git a/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java b/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java index d9e7c388..4f44bcf9 100644 --- a/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java +++ b/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java @@ -1,1365 +1,1368 @@ package org.dynmap.hdmap; ...
true
true
public boolean render(MapChunkCache cache, HDMapTile tile, String mapname) { Color rslt = new Color(); MapIterator mapiter = cache.getIterator(0, 0, 0); /* Build shader state object for each shader */ HDShaderState[] shaderstate = MapManager.mapman.hdmapman.getShaderStateForTile(tile...
public boolean render(MapChunkCache cache, HDMapTile tile, String mapname) { Color rslt = new Color(); MapIterator mapiter = cache.getIterator(0, 0, 0); /* Build shader state object for each shader */ HDShaderState[] shaderstate = MapManager.mapman.hdmapman.getShaderStateForTile(tile...
diff --git a/src/com/matejdro/bukkit/portalstick/listeners/PortalStickEntityListener.java b/src/com/matejdro/bukkit/portalstick/listeners/PortalStickEntityListener.java index 50536be..3385bf8 100644 --- a/src/com/matejdro/bukkit/portalstick/listeners/PortalStickEntityListener.java +++ b/src/com/matejdro/bukkit/portalst...
true
true
public void despawn(EntityRemoveEvent event) { Entity entity = event.getEntity(); if(plugin.config.DisabledWorlds.contains(entity.getLocation().getWorld().getName())) return; if(plugin.gelManager.flyingGels.containsKey(entity.getUniqueId())) { V10Location from = plugin.gelManager.flyingGels.get(en...
public void despawn(EntityRemoveEvent event) { Entity entity = event.getEntity(); if(plugin.config.DisabledWorlds.contains(entity.getLocation().getWorld().getName())) return; if(plugin.gelManager.flyingGels.containsKey(entity.getUniqueId())) { V10Location from = plugin.gelManager.flyingGels.get(en...
diff --git a/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java b/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java index 38ba5dbaf..6e20b130c 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/NonLin...
true
true
protected RealPointValuePair doOptimize() { final ConvergenceChecker checker = getConvergenceChecker(); point = getStartPoint(); final GoalType goal = getGoalType(); final int n = point.length; double[] r = computeObjectiveGradient(point); if (goal == GoalType.MINIMIZ...
protected RealPointValuePair doOptimize() { final ConvergenceChecker<RealPointValuePair> checker = getConvergenceChecker(); point = getStartPoint(); final GoalType goal = getGoalType(); final int n = point.length; double[] r = computeObjectiveGradient(point); if (goal...
diff --git a/src/main/java/org/otherobjects/cms/controllers/SiteController.java b/src/main/java/org/otherobjects/cms/controllers/SiteController.java index 74bf86f1..688059c5 100644 --- a/src/main/java/org/otherobjects/cms/controllers/SiteController.java +++ b/src/main/java/org/otherobjects/cms/controllers/SiteControlle...
false
true
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { // Make sure folders end with slash String path = request.getPathInfo(); if (StringUtils.isEmpty(path)) path = "/"; else if (path.length() > 1 &...
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { // Make sure folders end with slash String path = request.getPathInfo(); if (StringUtils.isEmpty(path)) path = "/"; else if (path.length() > 1 &...
diff --git a/query/src/test/java/org/infinispan/query/distributed/MassIndexingTest.java b/query/src/test/java/org/infinispan/query/distributed/MassIndexingTest.java index d750bb48e1..8a5f3b6ddc 100644 --- a/query/src/test/java/org/infinispan/query/distributed/MassIndexingTest.java +++ b/query/src/test/java/org/infinisp...
false
true
public void testReindexing() throws Exception { for(int i = 0; i < 2000; i++) { caches.get(i % 2).getAdvancedCache().withFlags(Flag.SKIP_INDEXING).put(key("F" + i + "NUM"), new Car((i % 2 == 0 ? "megane" : "bmw"), "blue", ...
public void testReindexing() throws Exception { for(int i = 0; i < 200; i++) { caches.get(i % 2).getAdvancedCache().withFlags(Flag.SKIP_INDEXING).put(key("F" + i + "NUM"), new Car((i % 2 == 0 ? "megane" : "bmw"), "blue", 3...
diff --git a/src/ScheduleDisplay.java b/src/ScheduleDisplay.java index ebe22e6..24792c7 100644 --- a/src/ScheduleDisplay.java +++ b/src/ScheduleDisplay.java @@ -1,132 +1,132 @@ import java.awt.Color; import java.util.List; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JTable; ...
true
true
public void populateTable() { // TODO: constants for subjects and max students // table.setValueAt("Reading", 1, 0); data[1][0] = "Reading"; // table.setValueAt("LA", 8, 0); data[8][0] = "Language Arts"; // table.setValueAt("Math", 15, 0); data[15][0] = "Math"; // TODO: add rows for specials and homer...
public void populateTable() { // TODO: constants for subjects and max students // table.setValueAt("Reading", 1, 0); data[1][0] = "Reading"; // table.setValueAt("LA", 8, 0); data[8][0] = "Language Arts"; // table.setValueAt("Math", 15, 0); data[15][0] = "Math"; // TODO: add rows for specials and homer...
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/RemoveReferenceComponentOperation.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/RemoveReferenceComponentOperation.java i...
true
true
protected void removeReferencedComponents(IProgressMonitor monitor) { IVirtualComponent sourceComp = (IVirtualComponent) model.getProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT); if (!sourceComp.getProject().isAccessible()) return; List modList = (List) model.getProperty(ICre...
protected void removeReferencedComponents(IProgressMonitor monitor) { IVirtualComponent sourceComp = (IVirtualComponent) model.getProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT); if (!sourceComp.getProject().isAccessible()) return; List modList = (List) model.getProperty(ICre...
diff --git a/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java b/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java index d60e6bf..38311db 100644 --- a/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java +++ b/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java @@ -1,238 +1,243 @@ package org.smbarbour.mcu; impo...
false
true
public void run() { String javaBin = "java"; File binDir = (new File(jrePath)).toPath().resolve("bin").toFile(); if( binDir.exists() ) { javaBin = binDir.toPath().resolve("java").toString(); } List<String> args = new ArrayList<String>(); args.add(javaBin); args.add("-XX:+UseConcMarkSweepGC"); args.a...
public void run() { String javaBin = "java"; File binDir; if (System.getProperty("os.name").startsWith("Mac")) { binDir = (new File(jrePath)).toPath().resolve("Commands").toFile(); } else { binDir = (new File(jrePath)).toPath().resolve("bin").toFile(); } if( binDir.exists() ) { javaBin = binDir.to...
diff --git a/src/main/java/org/jboss/forge/scaffold/spring/metawidget/widgetbuilder/SpringEntityWidgetBuilder.java b/src/main/java/org/jboss/forge/scaffold/spring/metawidget/widgetbuilder/SpringEntityWidgetBuilder.java index 0572352..be5c2d2 100644 --- a/src/main/java/org/jboss/forge/scaffold/spring/metawidget/widgetbu...
true
true
public StaticXmlWidget buildWidget(String elementName, Map<String, String> attributes, StaticSpringMetawidget metawidget) { // Suppress nested INVERSE ONE_TO_ONE to avoid recursion. if (TRUE.equals(attributes.get(ONE_TO_ONE)) && TRUE.equals(attributes.get(INVERSE_RELATIONSHIP))) { ...
public StaticXmlWidget buildWidget(String elementName, Map<String, String> attributes, StaticSpringMetawidget metawidget) { // Suppress nested INVERSE ONE_TO_ONE to avoid recursion. if (TRUE.equals(attributes.get(ONE_TO_ONE)) && TRUE.equals(attributes.get(INVERSE_RELATIONSHIP))) { ...
diff --git a/src/java/org/infoglue/deliver/util/SelectiveLivePublicationThread.java b/src/java/org/infoglue/deliver/util/SelectiveLivePublicationThread.java index da9b1b5dc..fe2f63782 100755 --- a/src/java/org/infoglue/deliver/util/SelectiveLivePublicationThread.java +++ b/src/java/org/infoglue/deliver/util/SelectiveLi...
false
true
public void run() { logger.info("Run in SelectiveLivePublicationThread...."); int publicationDelay = 5000; String publicationThreadDelay = CmsPropertyHandler.getPublicationThreadDelay(); if(publicationThreadDelay != null && !publicationThreadDelay.equalsIgnoreCase("") && publicationThreadDelay.indexO...
public void run() { logger.info("Run in SelectiveLivePublicationThread...."); int publicationDelay = 5000; String publicationThreadDelay = CmsPropertyHandler.getPublicationThreadDelay(); if(publicationThreadDelay != null && !publicationThreadDelay.equalsIgnoreCase("") && publicationThreadDelay.indexO...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/AutocompleteVisitor.java b/src/main/java/com/redhat/ceylon/compiler/js/AutocompleteVisitor.java index 4d84194d..5c999fa1 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/AutocompleteVisitor.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/Autocomple...
true
true
public List<String> getCompletions() { Map<String, DeclarationWithProximity> comps = new HashMap<String, DeclarationWithProximity>(); if (node != null) { HashSet<PhasedUnit> units = new HashSet<PhasedUnit>(); HashSet<com.redhat.ceylon.compiler.typechecker.model.Package> packs...
public List<String> getCompletions() { Map<String, DeclarationWithProximity> comps = new HashMap<String, DeclarationWithProximity>(); if (node != null) { HashSet<PhasedUnit> units = new HashSet<PhasedUnit>(); HashSet<com.redhat.ceylon.compiler.typechecker.model.Package> packs...
diff --git a/src/main/java/org/perfcake/validation/ValidatorManager.java b/src/main/java/org/perfcake/validation/ValidatorManager.java index cdacd60b..0699864b 100644 --- a/src/main/java/org/perfcake/validation/ValidatorManager.java +++ b/src/main/java/org/perfcake/validation/ValidatorManager.java @@ -1,266 +1,266 @@ ...
true
true
public void run() { boolean isMessageValid = false; ReceivedMessage receivedMessage = null; finished = false; allMessagesValid = true; fastForward = false; if (validators.isEmpty()) { log.warn("No validators set in scenario."); return;...
public void run() { boolean isMessageValid = false; ReceivedMessage receivedMessage = null; finished = false; allMessagesValid = true; fastForward = false; if (validators.isEmpty()) { log.warn("No validators set in scenario."); return;...