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/simulator-ui/src/java/main/ca/nengo/ui/configurable/PropertyInputPanel.java b/simulator-ui/src/java/main/ca/nengo/ui/configurable/PropertyInputPanel.java index 98bbd61a..f25887a9 100644 --- a/simulator-ui/src/java/main/ca/nengo/ui/configurable/PropertyInputPanel.java +++ b/simulator-ui/src/java/main/ca/nen...
true
true
public PropertyInputPanel(Property property) { super(); this.propDescriptor = property; outerPanel = new JPanel(); outerPanel.setName(property.getName()); outerPanel.setToolTipText(property.getTooltip()); outerPanel.setLayout(new BoxLayout(outerPanel, BoxLayout.Y_AXI...
public PropertyInputPanel(Property property) { super(); this.propDescriptor = property; outerPanel = new JPanel(); outerPanel.setName(property.getName()); outerPanel.setToolTipText(property.getTooltip()); outerPanel.setLayout(new BoxLayout(outerPanel, BoxLayout.Y_AXI...
diff --git a/src/main/java/com/lair/mtduck/irc/TickerIRCMessenger.java b/src/main/java/com/lair/mtduck/irc/TickerIRCMessenger.java index cf06a59..b1d7e70 100644 --- a/src/main/java/com/lair/mtduck/irc/TickerIRCMessenger.java +++ b/src/main/java/com/lair/mtduck/irc/TickerIRCMessenger.java @@ -1,95 +1,95 @@ package com....
true
true
protected void onMessage(String channel, String sender, String login, String hostname, String message) { switch(message) { case "!price": sendMessage(channel, "Price is currently " + currentPrice); break; case "!refprices": sendMessage(...
protected void onMessage(String channel, String sender, String login, String hostname, String message) { switch(message) { case "!price": sendMessage(channel, "Price is currently " + currentPrice); break; case "!refprices": sendMessage(...
diff --git a/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java b/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java index 027469f..dca0999 100644 --- a/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java +++ b/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy"); // Setup caldroid fragment // **** If you want normal CaldroidFragment, use below line **** caldroidFrag...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy"); // Setup caldroid fragment // **** If you want normal CaldroidFragment, use below line **** caldroidFrag...
diff --git a/src/main/java/AssistedScene/GiftHouse.java b/src/main/java/AssistedScene/GiftHouse.java index 934e8a3..8588783 100644 --- a/src/main/java/AssistedScene/GiftHouse.java +++ b/src/main/java/AssistedScene/GiftHouse.java @@ -1,34 +1,34 @@ package AssistedScene; import Application.GameException; import Esta...
true
true
private void handleInput(String roleName) { try { factory.get(commandLine.waitForInput("请输入您要选择的礼品编号:")).select(roleName); } catch (GameException e) { commandLine.output(e.getMessage()); } }
private void handleInput(String roleName) { try { factory.get(commandLine.waitForInput("请输入您要选择的礼品编号:")).select(roleName); } catch (GameException e) { commandLine.outputInNewline(e.toString()); } }
diff --git a/src/com/orangeleap/tangerine/service/rule/DroolsRuleAgent.java b/src/com/orangeleap/tangerine/service/rule/DroolsRuleAgent.java index 7679818c..0c93d89b 100644 --- a/src/com/orangeleap/tangerine/service/rule/DroolsRuleAgent.java +++ b/src/com/orangeleap/tangerine/service/rule/DroolsRuleAgent.java @@ -1,58 ...
true
true
public static Properties getDroolsProperties() { String host = System.getProperty("drools.host"); String port = System.getProperty("drools.port"); // String url = "http://"+host+":"+port+"/drools/org.drools.brms.JBRMS/package/com.mpower/NEWEST"; // logger.debug("Setting Drools URL to "+url); Properties props =...
public static Properties getDroolsProperties() { String host = System.getProperty("drools.host"); String port = System.getProperty("drools.port"); // String url = "http://"+host+":"+port+"/drools/org.drools.brms.JBRMS/package/com.mpower/NEWEST"; // logger.debug("Setting Drools URL to "+url); Properties props =...
diff --git a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/JavaImageSaver.java b/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/JavaImageSaver.java index 128a792cc..aaaf8d3ca 100644 --- a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/JavaImageSaver.jav...
true
true
public void saveFile(DataHolder dh) throws ScanFileHolderException { File f = null; if (numBits <= 0) { throw new ScanFileHolderException( "Number of bits specified must be greater than 0"); } for (int i = 0, imax = dh.size(); i < imax; i++) { try { String name = null; if (imax == 1) { ...
public void saveFile(DataHolder dh) throws ScanFileHolderException { File f = null; if (numBits <= 0) { throw new ScanFileHolderException( "Number of bits specified must be greater than 0"); } for (int i = 0, imax = dh.size(); i < imax; i++) { try { String name = null; if (imax == 1) { ...
diff --git a/src/main/java/de/uniba/wiai/dsg/betsy/virtual/host/engines/VirtualActiveBpelEngine.java b/src/main/java/de/uniba/wiai/dsg/betsy/virtual/host/engines/VirtualActiveBpelEngine.java index dbe4ec26..0bf955b6 100644 --- a/src/main/java/de/uniba/wiai/dsg/betsy/virtual/host/engines/VirtualActiveBpelEngine.java +++...
true
true
public List<ServiceAddress> getVerifiableServiceAddresses() { List<ServiceAddress> saList = new LinkedList<>(); saList.add(new ServiceAddress( "http://localhost:8080/active-bpel/services", "Running")); return saList; }
public List<ServiceAddress> getVerifiableServiceAddresses() { List<ServiceAddress> saList = new LinkedList<>(); saList.add(new ServiceAddress( "http://localhost:8080/active-bpel/services")); saList.add(new ServiceAddress("http://localhost:8080/BpelAdmin/", "Running")); return saList; }
diff --git a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/study/StudyFile.java b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/study/StudyFile.java index c7ed5596f..7af2f3796 100644 --- a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/study/StudyFile.java +++ b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/study/StudyFile....
true
true
public boolean isFileRestrictedForUser(VDCUser user, VDC vdc, UserGroup ipUserGroup) { // the restrictions should be checked on the owner of the study, not the currentVDC (needs cleanup) vdc = this.getStudy().getOwner(); // first check if study is restricted, regardless of file permission...
public boolean isFileRestrictedForUser(VDCUser user, VDC vdc, UserGroup ipUserGroup) { // the restrictions should be checked on the owner of the study, not the currentVDC (needs cleanup) vdc = this.getStudy().getOwner(); // first check if study is restricted, regardless of file permission...
diff --git a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/internal/ContainerProviderUtils.java b/fabric/fabric-core/src/main/scala/org/fusesource/fabric/internal/ContainerProviderUtils.java index 82513edc2..b0965b40b 100644 --- a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/internal/ContainerProvi...
true
true
public static String buildStartupScript(URI proxy, String name, String path, String zooKeeperUrl, int sshPort, boolean isClusterServer, boolean debugContainer) throws MalformedURLException { StringBuilder sb = new StringBuilder(); sb.append("function run { echo \"Running: $*\" ; $* ; rc=$? ; if [ \...
public static String buildStartupScript(URI proxy, String name, String path, String zooKeeperUrl, int sshPort, boolean isClusterServer, boolean debugContainer) throws MalformedURLException { StringBuilder sb = new StringBuilder(); sb.append("function run { echo \"Running: $*\" ; $* ; rc=$? ; if [ \...
diff --git a/org.spoofax.interpreter.library.jsglr/src/main/java/org/spoofax/interpreter/library/jsglr/STRSGLR_open_parse_table.java b/org.spoofax.interpreter.library.jsglr/src/main/java/org/spoofax/interpreter/library/jsglr/STRSGLR_open_parse_table.java index 8507d6d9..ad1714b9 100644 --- a/org.spoofax.interpreter.lib...
true
true
public boolean call(IContext env, Strategy[] svars, IStrategoTerm[] tvars) throws InterpreterException { Map<IStrategoTerm, IStrategoInt> cache = getLibrary(env).getParseTableCache(); IStrategoInt cached = cache.get(tvars[0]); if (cached != null) { env.setCurrent(cached); if(!cache.cont...
public boolean call(IContext env, Strategy[] svars, IStrategoTerm[] tvars) throws InterpreterException { Map<IStrategoTerm, IStrategoInt> cache = getLibrary(env).getParseTableCache(); IStrategoInt cached = cache.get(tvars[0]); if (cached != null) { env.setCurrent(cached); if(!cache.cont...
diff --git a/src/me/ellbristow/greylistVote/greylistVote.java b/src/me/ellbristow/greylistVote/greylistVote.java index c238ee2..6a41e70 100644 --- a/src/me/ellbristow/greylistVote/greylistVote.java +++ b/src/me/ellbristow/greylistVote/greylistVote.java @@ -1,630 +1,632 @@ package me.ellbristow.greylistVote; import ...
true
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...
diff --git a/eXoApplication/poll/service/src/main/java/org/exoplatform/poll/service/Poll.java b/eXoApplication/poll/service/src/main/java/org/exoplatform/poll/service/Poll.java index 444895e9e..7674f5035 100755 --- a/eXoApplication/poll/service/src/main/java/org/exoplatform/poll/service/Poll.java +++ b/eXoApplication/p...
true
true
public void setInfoVote() { String[] userVotes = userVote; long size = 0 , temp = 1; if(!this.getIsMultiCheck()) { size = userVote.length ; } else { for (int i = 0; i < userVote.length; i++) { size += userVote[i].split(":").length -1 ;// root:1:2:4 --> user root checked option 1, 2 and 4 --> checked ...
public void setInfoVote() { String[] userVotes = userVote; long size = 0 , temp = 1; if(!this.getIsMultiCheck()) { size = userVote.length ; } else { for (int i = 0; i < userVote.length; i++) { size += userVote[i].split(":").length -1 ;// root:1:2:4 --> user root checked option 1, 2 and 4 --> checked ...
diff --git a/src/pl/linet/Generuj.java b/src/pl/linet/Generuj.java index 539c6d5..8273580 100644 --- a/src/pl/linet/Generuj.java +++ b/src/pl/linet/Generuj.java @@ -1,315 +1,315 @@ package pl.linet; import com.lowagie.text.pdf.*; import com.lowagie.text.*; import com.lowagie.text.pdf.PdfPTable; import java.io.*;...
false
true
public void generatePdf(String k_nazwa, String k_adres, String k_nip, String k_kod, String k_miesc, String usluga, String pkwiu, String ilosc, float netto, int vat, String platnosc, String termin, String numer_f, String data, String slownie) { // przeliczenia podatku float brutto = Przelicz.brutto(netto,...
public void generatePdf(String k_nazwa, String k_adres, String k_nip, String k_kod, String k_miesc, String usluga, String pkwiu, String ilosc, float netto, int vat, String platnosc, String termin, String numer_f, String data, String slownie) { // przeliczenia podatku float brutto = Przelicz.brutto(netto,...
diff --git a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java index dcd453fa6..ddd8e598e 100644 --- a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java @@ -1,617 +1,621 @@ /* ***********...
true
true
protected boolean matchesSubtypes(ResolvedType type) { //System.out.println("matching: " + this + " to " + type); if (matchesExactly(type)) { //System.out.println(" true"); return true; } // pr124808 Iterator typesIterator = null; if (type.isTypeVariableReference()) { typesIterator = ((TypeVari...
protected boolean matchesSubtypes(ResolvedType type) { //System.out.println("matching: " + this + " to " + type); if (matchesExactly(type)) { //System.out.println(" true"); return true; } // pr124808 Iterator typesIterator = null; if (type.isTypeVariableReference()) { typesIterator = ((TypeVari...
diff --git a/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ErrorCodeTest.java b/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ErrorCodeTest.java index c6a56c38b..500d14514 100644 --- a/java/testing/org/apache/derbyTesting/functionTests/tests/lang/ErrorCodeTest.java +++ b/java/testing/org...
true
true
public void test_errorcode() throws Exception { ResultSet rs = null; Statement s = createStatement(); s.executeUpdate( "create table t(i int, s smallint)"); s.executeUpdate( "insert into t values (1,2)"); s.executeUpdate("insert i...
public void test_errorcode() throws Exception { ResultSet rs = null; Statement s = createStatement(); s.executeUpdate( "create table t(i int, s smallint)"); s.executeUpdate( "insert into t values (1,2)"); s.executeUpdate("insert i...
diff --git a/app/scm/GitVersionControlSystem.java b/app/scm/GitVersionControlSystem.java index 6c03093..e4744a9 100644 --- a/app/scm/GitVersionControlSystem.java +++ b/app/scm/GitVersionControlSystem.java @@ -1,55 +1,56 @@ /* * Copyright 2011 Matthias van der Vlies * * Licensed under the Apache License, Version...
false
true
public String cleanup(final String pid) throws Exception { final String checkoutPid = "git-checkout-" + pid; final StringBuffer output = new StringBuffer(); output.append(ProcessManager.executeCommand(checkoutPid, getFullGitPath() + " --git-dir=apps/" + pid + "/.git --work-tree=apps/" + pid + " checkout -- conf/...
public String cleanup(final String pid) throws Exception { final String cleanupPid = "git-cleanup-" + pid; final StringBuffer output = new StringBuffer(); output.append(ProcessManager.executeCommand(cleanupPid, getFullGitPath() + " --git-dir=apps/" + pid + "/.git --work-tree=apps/" + pid + " checkout -- conf/app...
diff --git a/org.amanzi.awe.views.reuse/src/org/amanzi/awe/views/reuse/views/Column.java b/org.amanzi.awe.views.reuse/src/org/amanzi/awe/views/reuse/views/Column.java index 8d57692fa..8ee37240b 100644 --- a/org.amanzi.awe.views.reuse/src/org/amanzi/awe/views/reuse/views/Column.java +++ b/org.amanzi.awe.views.reuse/src/...
true
true
private String getColumnName() { String nameCol; BigDecimal minValue = new BigDecimal(this.minValue); BigDecimal maxValue = new BigDecimal(this.minValue + this.range); if (propertyValue instanceof String) { return propertyValue.toString(); } if (distribut...
private String getColumnName() { String nameCol; BigDecimal minValue = new BigDecimal(this.minValue); BigDecimal maxValue = new BigDecimal(this.minValue + this.range); if (propertyValue instanceof String) { return propertyValue.toString(); } if (distribut...
diff --git a/pages/src/org/riotfamily/pages/riot/security/SiteUserPolicy.java b/pages/src/org/riotfamily/pages/riot/security/SiteUserPolicy.java index e0cd908ee..b6c7a7d02 100644 --- a/pages/src/org/riotfamily/pages/riot/security/SiteUserPolicy.java +++ b/pages/src/org/riotfamily/pages/riot/security/SiteUserPolicy.java...
true
true
public int checkPermission(RiotUser riotUser, String action, Object object) { if (riotUser instanceof SiteUser) { SiteUser user = (SiteUser) riotUser; if (isLimited(user)) { boolean denied = false; if (object.getClass().isArray()) { Object[] objects = (Object[]) object; for (Object o : ob...
public int checkPermission(RiotUser riotUser, String action, Object object) { if (riotUser instanceof SiteUser) { SiteUser user = (SiteUser) riotUser; if (isLimited(user)) { boolean denied = false; if (object != null && object.getClass().isArray()) { Object[] objects = (Object[]) object; ...
diff --git a/src/main/java/org/bloodtorrent/repository/SuccessStoryRepository.java b/src/main/java/org/bloodtorrent/repository/SuccessStoryRepository.java index e723955..dce7b7f 100644 --- a/src/main/java/org/bloodtorrent/repository/SuccessStoryRepository.java +++ b/src/main/java/org/bloodtorrent/repository/SuccessStor...
true
true
public List<SuccessStory> list() { Query query = currentSession().createQuery("from SuccessStory s where s.showMainPage like 'Y' order by s.createDate"); return list(query); }
public List<SuccessStory> list() { Query query = currentSession().createQuery("from SuccessStory s where s.showMainPage like 'Y' order by s.createDate desc"); return list(query); }
diff --git a/ace/component/src/org/icefaces/ace/component/dataexporter/DataExporter.java b/ace/component/src/org/icefaces/ace/component/dataexporter/DataExporter.java index b83a13de9..c19ff59ce 100644 --- a/ace/component/src/org/icefaces/ace/component/dataexporter/DataExporter.java +++ b/ace/component/src/org/icefaces/...
true
true
public void broadcast(FacesEvent event) throws AbortProcessingException { super.broadcast(event); if (event != null) { try { FacesContext facesContext = getFacesContext(); Exporter exporter = ExporterFactory.getExporterForType(getType()); UIComponent targetComponent = event.getCompon...
public void broadcast(FacesEvent event) throws AbortProcessingException { super.broadcast(event); if (event != null) { try { FacesContext facesContext = getFacesContext(); Exporter exporter = ExporterFactory.getExporterForType(getType()); UIComponent targetComponent = event.getCompon...
diff --git a/src/groovy/org/pillarone/riskanalytics/application/ui/parameterization/view/ErrorPane.java b/src/groovy/org/pillarone/riskanalytics/application/ui/parameterization/view/ErrorPane.java index 82a45a65..4f05c5c2 100644 --- a/src/groovy/org/pillarone/riskanalytics/application/ui/parameterization/view/ErrorPane...
true
true
private ULCComponent createLabel(ParameterValidationError error) { ULCBoxPane pane = new ULCBoxPane(1, 1); pane.setBackground(Color.white); final String errorPath = model.findNodeForPath(error.getPath()).getDisplayPath(); final ULCTitledBorder border = BorderFactory.createTitledBorde...
private ULCComponent createLabel(ParameterValidationError error) { ULCBoxPane pane = new ULCBoxPane(1, 1); pane.setBackground(Color.white); final ULCTitledBorder border = BorderFactory.createTitledBorder(model.findNodeForPath(error.getPath()).getDisplayPath()); border.setTitleFont(bo...
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/utils/FileUtils.java b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/utils/FileUtils.java index 8a1891a3d..3395e919a 100644 --- a/bundles/o...
true
true
private static String getEclipseJarNamingVersion(URL url, final String pluginName) { String location = Utils.replaceAll(url.getFile(), File.separator, "/"); String filename = null; if (location.indexOf(":") == -1) filename = location; else filename = location.substring(location.lastIndexOf(":") + 1); ...
private static String getEclipseJarNamingVersion(URL url, final String pluginName) { String location = url.getFile(); if (!File.separator.equals("/")) location = Utils.replaceAll(location, File.separator, "/"); String filename = null; if (location.indexOf(":") == -1) filename = location; else filena...
diff --git a/core/src/test/java/brooklyn/event/feed/shell/ShellFeedIntegrationTest.java b/core/src/test/java/brooklyn/event/feed/shell/ShellFeedIntegrationTest.java index 1326d5ae1..1bd484792 100644 --- a/core/src/test/java/brooklyn/event/feed/shell/ShellFeedIntegrationTest.java +++ b/core/src/test/java/brooklyn/event/...
true
true
public void testDiskUsage() throws Exception { feed = ShellFeed.builder() .entity(entity) .poll(new ShellPollConfig<Long>(SENSOR_LONG) .command("df -P | tail -1") .failOnNonZeroResultCode(true) .onSuccess...
public void testDiskUsage() throws Exception { feed = ShellFeed.builder() .entity(entity) .poll(new ShellPollConfig<Long>(SENSOR_LONG) .command("df -P | tail -1") .failOnNonZeroResultCode(true) .onSuccess...
diff --git a/java/src/org/broadinstitute/sting/gatk/datasources/simpleDataSources/ResourcePool.java b/java/src/org/broadinstitute/sting/gatk/datasources/simpleDataSources/ResourcePool.java index 90564444a..19f1c96b5 100755 --- a/java/src/org/broadinstitute/sting/gatk/datasources/simpleDataSources/ResourcePool.java +++ ...
false
true
public I iterator( DataStreamSegment segment ) { // Grab the first iterator in the list whose position is before the requested position. T selectedResource = null; synchronized (this) { selectedResource = selectBestExistingResource(segment, availableResources); // No...
public I iterator( DataStreamSegment segment ) { // Grab the first iterator in the list whose position is before the requested position. T selectedResource = null; synchronized (this) { selectedResource = selectBestExistingResource(segment, availableResources); // No...
diff --git a/src/org/griphyn/cPlanner/transfer/implementation/Windward.java b/src/org/griphyn/cPlanner/transfer/implementation/Windward.java index d4d1a4816..7132d65f4 100644 --- a/src/org/griphyn/cPlanner/transfer/implementation/Windward.java +++ b/src/org/griphyn/cPlanner/transfer/implementation/Windward.java @@ -1,5...
true
true
public TransferJob createTransferJob( SubInfo job, Collection files, Collection execFiles, String txJobName, int jobClass) { //iterate thr...
public TransferJob createTransferJob( SubInfo job, Collection files, Collection execFiles, String txJobName, int jobClass) { //iterate thr...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageWatchpointActionDelegate.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageWatchpointActionDelegate.java index 7d3a69c8d..77ff6ca22 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/...
true
true
protected List searchForDeclaringType(IJavaFieldVariable variable) { List types= new ArrayList(); ILaunch launch = variable.getDebugTarget().getLaunch(); if (launch == null) { return types; } ILaunchConfiguration configuration= launch.getLaunchConfiguration(); IJavaProject[] javaProjects = null; IW...
protected List searchForDeclaringType(IJavaFieldVariable variable) { List types= new ArrayList(); ILaunch launch = variable.getDebugTarget().getLaunch(); if (launch == null) { return types; } ILaunchConfiguration configuration= launch.getLaunchConfiguration(); IJavaProject[] javaProjects = null; IW...
diff --git a/choco-parser/src/main/java/parser/flatzinc/ast/FGoal.java b/choco-parser/src/main/java/parser/flatzinc/ast/FGoal.java index 3657fc438..41a3e7b2b 100755 --- a/choco-parser/src/main/java/parser/flatzinc/ast/FGoal.java +++ b/choco-parser/src/main/java/parser/flatzinc/ast/FGoal.java @@ -1,237 +1,237 @@ /* *...
true
true
public static void define_goal(GoalConf gc, Solver aSolver, List<EAnnotation> annotations, ResolutionPolicy type, Expression expr) { // First define solving process AbstractSearchLoop search = aSolver.getSearchLoop(); switch (type) { case SATISF...
public static void define_goal(GoalConf gc, Solver aSolver, List<EAnnotation> annotations, ResolutionPolicy type, Expression expr) { // First define solving process AbstractSearchLoop search = aSolver.getSearchLoop(); switch (type) { case SATISF...
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java b/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java index 848a7364d..c6dbdd682 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java +++ b/lucene/test-framework/src/java/org/apache/lucene/uti...
true
true
public static String randomHtmlishString(Random random, int numElements) { final int end = random.nextInt(numElements); if (end == 0) { // allow 0 length return ""; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < end; i++) { int val = random.nextInt(25); switc...
public static String randomHtmlishString(Random random, int numElements) { final int end = random.nextInt(numElements); if (end == 0) { // allow 0 length return ""; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < end; i++) { int val = random.nextInt(25); switc...
diff --git a/DistributedGroupMembership/src/ConnectionHandler.java b/DistributedGroupMembership/src/ConnectionHandler.java index b1de6b8..e50ed6f 100644 --- a/DistributedGroupMembership/src/ConnectionHandler.java +++ b/DistributedGroupMembership/src/ConnectionHandler.java @@ -1,127 +1,127 @@ import java.io.IOException...
true
true
public void run() { int port = Integer.parseInt(conf.valueFor("contactPort"));/*0; try { port = Integer.parseInt(conf.valueFor("contactPort")); } catch (IOException e) { System.out.println(e); return; }*/ DatagramSocket rcvSocket ...
public void run() { int port = Integer.parseInt(conf.valueFor("contactPort"));/*0; try { port = Integer.parseInt(conf.valueFor("contactPort")); } catch (IOException e) { System.out.println(e); return; }*/ DatagramSocket rcvSocket ...
diff --git a/src/org/intellij/erlang/ErlangCompletionContributor.java b/src/org/intellij/erlang/ErlangCompletionContributor.java index 27350a55..1628c7b1 100644 --- a/src/org/intellij/erlang/ErlangCompletionContributor.java +++ b/src/org/intellij/erlang/ErlangCompletionContributor.java @@ -1,157 +1,160 @@ /* * Copyr...
true
true
public ErlangCompletionContributor() { extend(CompletionType.BASIC, psiElement().inFile(instanceOf(ErlangFileImpl.class)), new CompletionProvider<CompletionParameters>() { @Override protected void addCompletions(@NotNull CompletionParameters parameters, ProcessingContext context, @NotNull CompletionRe...
public ErlangCompletionContributor() { extend(CompletionType.BASIC, psiElement().inFile(instanceOf(ErlangFileImpl.class)), new CompletionProvider<CompletionParameters>() { @Override protected void addCompletions(@NotNull CompletionParameters parameters, ProcessingContext context, @NotNull CompletionRe...
diff --git a/src/uk/me/parabola/mkgmap/main/Main.java b/src/uk/me/parabola/mkgmap/main/Main.java index bfaf53ed..cba28192 100644 --- a/src/uk/me/parabola/mkgmap/main/Main.java +++ b/src/uk/me/parabola/mkgmap/main/Main.java @@ -1,370 +1,371 @@ /* * Copyright (C) 2007 Steve Ratcliffe * * This program is free sof...
false
true
public void endOptions(CommandArgs args) { List<String> filenames = new ArrayList<String>(); if(threadPool != null) { threadPool.shutdown(); while(!futures.isEmpty()) { try { try { // don't call get() until a job has finished if(futures.get(0).isDone()) filenames.add(futures.rem...
public void endOptions(CommandArgs args) { List<String> filenames = new ArrayList<String>(); if(threadPool != null) { threadPool.shutdown(); while(!futures.isEmpty()) { try { try { // don't call get() until a job has finished if(futures.get(0).isDone()) filenames.add(futures.rem...
diff --git a/src/main/java/name/richardson/james/bukkit/utilities/command/HelpCommand.java b/src/main/java/name/richardson/james/bukkit/utilities/command/HelpCommand.java index 82438f4..286b4fe 100644 --- a/src/main/java/name/richardson/james/bukkit/utilities/command/HelpCommand.java +++ b/src/main/java/name/richardson...
true
true
public void execute(final List<String> arguments, final CommandSender sender) { this.sender = new WeakReference<CommandSender>(sender); this.parseArguments(arguments); if (commands.containsKey(commandName) && commands.get(commandName).isAuthorized(sender)) { Command command = commands.get(commandName); Str...
public void execute(final List<String> arguments, final CommandSender sender) { this.sender = new WeakReference<CommandSender>(sender); this.parseArguments(arguments); if (commands.containsKey(commandName) && commands.get(commandName).isAuthorized(sender)) { Command command = commands.get(commandName); Str...
diff --git a/source/src/net/grinder/engine/agent/AgentImplementation.java b/source/src/net/grinder/engine/agent/AgentImplementation.java index f1209bc1..5b76cf19 100644 --- a/source/src/net/grinder/engine/agent/AgentImplementation.java +++ b/source/src/net/grinder/engine/agent/AgentImplementation.java @@ -1,514 +1,514 ...
true
true
public void run() throws GrinderException { StartGrinderMessage startMessage = null; ConsoleCommunication consoleCommunication = null; try { while (true) { m_logger.output(GrinderBuild.getName()); ScriptLocation script = null; GrinderProperties properties; do { ...
public void run() throws GrinderException { StartGrinderMessage startMessage = null; ConsoleCommunication consoleCommunication = null; try { while (true) { m_logger.output(GrinderBuild.getName()); ScriptLocation script = null; GrinderProperties properties; do { ...
diff --git a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java b/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java index 058432ca8..97c3d92b1 100644 --- a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/Km...
true
true
public String getDestination(String function, ComponentSessionController componentSC, HttpServletRequest request) { SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "function = " + function); String destination = ""; String rootDestination = "/km...
public String getDestination(String function, ComponentSessionController componentSC, HttpServletRequest request) { SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "function = " + function); String destination = ""; String rootDestination = "/km...
diff --git a/dspace/src/org/dspace/app/itemimport/ItemImport.java b/dspace/src/org/dspace/app/itemimport/ItemImport.java index a583373dc..61adaf15a 100755 --- a/dspace/src/org/dspace/app/itemimport/ItemImport.java +++ b/dspace/src/org/dspace/app/itemimport/ItemImport.java @@ -1,840 +1,840 @@ /* * ItemImport.java *...
true
true
public static void main(String argv[]) throws Exception { // create an options object and populate it CommandLineParser parser = new PosixParser(); Options options = new Options(); options.addOption( "a", "add", false, "add items to DSpace"); options.ad...
public static void main(String argv[]) throws Exception { // create an options object and populate it CommandLineParser parser = new PosixParser(); Options options = new Options(); options.addOption( "a", "add", false, "add items to DSpace"); options.ad...
diff --git a/test/testline.java b/test/testline.java index c3a5cf6..6d16ee1 100644 --- a/test/testline.java +++ b/test/testline.java @@ -1,189 +1,189 @@ import java.io.OutputStream; import java.io.FileOutputStream; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.io.IOException; impor...
false
true
static void output(Line line, String filename) { LinePoints3D pts = line.getPoints(); // Icy XML format. try { FileOutputStream ficy; ficy = new FileOutputStream(filename + ".xml"); new PrintStream(ficy).printf("<?xml version=\...
static void output(Line line, String filename) { LinePoints3D pts = line.getPoints(); // Icy XML format. try { FileOutputStream ficy; ficy = new FileOutputStream(filename + ".xml"); new PrintStream(ficy).printf("<?xml version=\...
diff --git a/src/com/vorsk/crossfitr/TimerActivity.java b/src/com/vorsk/crossfitr/TimerActivity.java index b0d9d63..d145cd7 100644 --- a/src/com/vorsk/crossfitr/TimerActivity.java +++ b/src/com/vorsk/crossfitr/TimerActivity.java @@ -1,337 +1,337 @@ package com.vorsk.crossfitr; import com.vorsk.crossfitr.models.Work...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.timer_tab); setVolumeControlStream(AudioManager.STREAM_MUSIC); cdRun = false; // create model object WorkoutModel model = new WorkoutModel(this); // get the id passed from previous activity (work...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.timer_tab); setVolumeControlStream(AudioManager.STREAM_MUSIC); cdRun = false; // create model object WorkoutModel model = new WorkoutModel(this); // get the id passed from previous activity (work...
diff --git a/lab2/src/Main.java b/lab2/src/Main.java index 314b95d..c10344e 100644 --- a/lab2/src/Main.java +++ b/lab2/src/Main.java @@ -1,58 +1,58 @@ import java.util.ArrayList; import java.util.Iterator; public class Main { public static void main(String [ ] args) { boolean showItemsets = true; b...
false
true
public static void main(String [ ] args) { boolean showItemsets = true; boolean showRules = true; boolean aprioriSkyLine = true; String fileName = "data/out1.csv"; if(args.length == 1){ fileName = args[0]; } ArrayList<Vector> vecList = null; vecList = MyParser.parseSparseVectorC...
public static void main(String [ ] args) { boolean showItemsets = true; boolean showRules = true; boolean aprioriSkyLine = true; String fileName = "data/out1.csv"; if(args.length >= 1){ fileName = args[0]; } ArrayList<Vector> vecList = null; vecList = MyParser.parseSparseVectorC...
diff --git a/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyProvider.java b/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyProvider.java index 8f5981bb1..078ad3137 100644 --- a/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyProvider.java +++ b/impl/src/main/java/org/jboss/webbeans...
false
true
private static <T> T createClientProxy(Bean<T> bean, BeanManagerImpl manager, int beanIndex) throws RuntimeException { try { ClientProxyMethodHandler proxyMethodHandler = new ClientProxyMethodHandler(bean, manager, beanIndex); Set<Type> classes = new LinkedHashSet<Type>(bean.g...
private static <T> T createClientProxy(Bean<T> bean, BeanManagerImpl manager, int beanIndex) throws RuntimeException { try { ClientProxyMethodHandler proxyMethodHandler = new ClientProxyMethodHandler(bean, manager, beanIndex); Set<Type> classes = new LinkedHashSet<Type>(bean.g...
diff --git a/src/org/python/core/PyModule.java b/src/org/python/core/PyModule.java index 5ccef86c..643f3087 100644 --- a/src/org/python/core/PyModule.java +++ b/src/org/python/core/PyModule.java @@ -1,182 +1,185 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.core; import org.p...
true
true
protected PyObject impAttr(String name) { PyObject path = __dict__.__finditem__("__path__"); PyObject pyName = __dict__.__finditem__("__name__"); if (path == null || pyName == null) { return null; } PyObject attr = null; String fullName = (pyName.__str__(...
protected PyObject impAttr(String name) { if (__dict__ == null) { return null; } PyObject path = __dict__.__finditem__("__path__"); PyObject pyName = __dict__.__finditem__("__name__"); if (path == null || pyName == null) { return null; } ...
diff --git a/src/community/web2/core/src/test/java/org/geoserver/web/wicket/EnvelopePanelTest.java b/src/community/web2/core/src/test/java/org/geoserver/web/wicket/EnvelopePanelTest.java index 0fbae959a7..ad60f93b5d 100644 --- a/src/community/web2/core/src/test/java/org/geoserver/web/wicket/EnvelopePanelTest.java +++ b...
false
true
public void test() throws Exception { tester.assertComponent( "form", Form.class ); FormTester ft = tester.newFormTester( "form"); assertEquals( "-180", ft.getTextComponentValue( "content:minX") ); assertEquals( "-90", ft.getTextComponentValue( "content:minY") ); ass...
public void test() throws Exception { tester.assertComponent( "form", Form.class ); FormTester ft = tester.newFormTester( "form"); assertEquals( "-180", ft.getTextComponentValue( "panel:minX") ); assertEquals( "-90", ft.getTextComponentValue( "panel:minY") ); assertE...
diff --git a/AStar/AStar.java b/AStar/AStar.java index f74709a..aaa9f72 100644 --- a/AStar/AStar.java +++ b/AStar/AStar.java @@ -1,166 +1,166 @@ package AStar; import java.util.ArrayList; import java.util.Comparator; import java.util.PriorityQueue; import java.util.Collections; import AStar.ISearchNode; /** ...
true
true
public ISearchNode search(ISearchNode initialNode, IGoalNode goalNode) { PriorityQueue<ISearchNode> openSet = new PriorityQueue<ISearchNode>(); openSet.add(initialNode); ArrayList<ISearchNode> closedSet = new ArrayList<ISearchNode>(); // current iteration of the search ...
public ISearchNode search(ISearchNode initialNode, IGoalNode goalNode) { PriorityQueue<ISearchNode> openSet = new PriorityQueue<ISearchNode>(1000, new SearchNodeComparator()); openSet.add(initialNode); ArrayList<ISearchNode> closedSet = new ArrayList<ISearchNode>(); // current ...
diff --git a/imap2/src/com/android/imap2/Imap2SyncService.java b/imap2/src/com/android/imap2/Imap2SyncService.java index 8f069d9c2..82a5ffa95 100644 --- a/imap2/src/com/android/imap2/Imap2SyncService.java +++ b/imap2/src/com/android/imap2/Imap2SyncService.java @@ -1,2469 +1,2469 @@ /* Copyright (C) 2012 The Android Op...
false
true
void readFolderList () throws IOException { String tag = writeCommand(mWriter, "list \"\" *"); String line; char dchar = '/'; userLog("Loading folder list..."); ArrayList<String> parentList = new ArrayList<String>(); ArrayList<Mailbox> mailboxList = new ArrayList<Ma...
void readFolderList () throws IOException { String tag = writeCommand(mWriter, "list \"\" *"); String line; char dchar = '/'; userLog("Loading folder list..."); ArrayList<String> parentList = new ArrayList<String>(); ArrayList<Mailbox> mailboxList = new ArrayList<Ma...
diff --git a/src/examples/simple/src/main/java/org/apache/accumulo/examples/simple/isolation/InterferenceTest.java b/src/examples/simple/src/main/java/org/apache/accumulo/examples/simple/isolation/InterferenceTest.java index b9bee2133..e569b27eb 100644 --- a/src/examples/simple/src/main/java/org/apache/accumulo/example...
true
true
public void run() { while (stop) { ByteSequence row = null; int count = 0; // all columns in a row should have the same value, // use this hash set to track that HashSet<String> values = new HashSet<String>(); for (Entry<Key,Value> entry : scan...
public void run() { while (!stop) { ByteSequence row = null; int count = 0; // all columns in a row should have the same value, // use this hash set to track that HashSet<String> values = new HashSet<String>(); for (Entry<Key,Value> entry : sca...
diff --git a/server/src/main/java/com/metamx/druid/master/SegmentReplicantLookup.java b/server/src/main/java/com/metamx/druid/master/SegmentReplicantLookup.java index 41553b4f7c..560787247f 100644 --- a/server/src/main/java/com/metamx/druid/master/SegmentReplicantLookup.java +++ b/server/src/main/java/com/metamx/druid/...
true
true
public static SegmentReplicantLookup make(DruidCluster cluster) { final Table<String, String, Integer> segmentsInCluster = HashBasedTable.create(); final Table<String, String, Integer> loadingSegments = HashBasedTable.create(); for (MinMaxPriorityQueue<ServerHolder> serversByType : cluster.getSortedSer...
public static SegmentReplicantLookup make(DruidCluster cluster) { final Table<String, String, Integer> segmentsInCluster = HashBasedTable.create(); final Table<String, String, Integer> loadingSegments = HashBasedTable.create(); for (MinMaxPriorityQueue<ServerHolder> serversByType : cluster.getSortedSer...
diff --git a/Jabref_Beta_2_7_Docear/src/java/net/sf/jabref/plugin/PluginCore.java b/Jabref_Beta_2_7_Docear/src/java/net/sf/jabref/plugin/PluginCore.java index 3065f4470..3bae5d0d8 100644 --- a/Jabref_Beta_2_7_Docear/src/java/net/sf/jabref/plugin/PluginCore.java +++ b/Jabref_Beta_2_7_Docear/src/java/net/sf/jabref/plugin...
false
true
static PluginManager initialize() { // We do not want info messages from JPF. Logger.getLogger("org.java.plugin").setLevel(Level.WARNING); Logger log = Logger.getLogger(PluginCore.class.getName()); ObjectFactory objectFactory = ObjectFactory.newInstance(); PluginManager re...
static PluginManager initialize() { // We do not want info messages from JPF. Logger.getLogger("org.java.plugin").setLevel(Level.WARNING); Logger log = Logger.getLogger(PluginCore.class.getName()); ObjectFactory objectFactory = ObjectFactory.newInstance(); PluginManager re...
diff --git a/geogebra/geogebra3D/euclidian3D/DrawVector3D.java b/geogebra/geogebra3D/euclidian3D/DrawVector3D.java index 5a34af105..64246deb7 100644 --- a/geogebra/geogebra3D/euclidian3D/DrawVector3D.java +++ b/geogebra/geogebra3D/euclidian3D/DrawVector3D.java @@ -1,88 +1,93 @@ package geogebra3D.euclidian3D; imp...
true
true
protected void updateForItSelf(){ GeoVector3D geo = ((GeoVector3D) getGeoElement()); geo.updateStartPointPosition(); Renderer renderer = getView3D().getRenderer(); renderer.getGeometryManager().remove(geometryIndex); GgbVector p1 = geo.getStartPoint().getInhomCoords(); GgbVector p2 = (GgbVector...
protected void updateForItSelf(){ GeoVector3D geo = ((GeoVector3D) getGeoElement()); geo.updateStartPointPosition(); Renderer renderer = getView3D().getRenderer(); renderer.getGeometryManager().remove(geometryIndex); GgbVector p1; if (geo.getStartPoint()==null){ p1 = new GgbVector(4); p1....
diff --git a/grails/src/commons/org/codehaus/groovy/grails/commons/GrailsResourceLoader.java b/grails/src/commons/org/codehaus/groovy/grails/commons/GrailsResourceLoader.java index 47fdb6428..169b4b65b 100644 --- a/grails/src/commons/org/codehaus/groovy/grails/commons/GrailsResourceLoader.java +++ b/grails/src/commons/...
true
true
public URL loadGroovySource(String className) throws MalformedURLException { if(className == null) return null; String groovyFile = className.replace('.', '/') + ".groovy"; Resource foundResource = null; for (int i = 0; resources != null && i < resources.length; i++) { if (r...
public URL loadGroovySource(String className) throws MalformedURLException { if(className == null) return null; String groovyFile = className.replace('.', '/') + ".groovy"; Resource foundResource = null; for (int i = 0; resources != null && i < resources.length; i++) { if (r...
diff --git a/src/main/java/org/atlasapi/equiv/generators/FilmEquivalenceGenerator.java b/src/main/java/org/atlasapi/equiv/generators/FilmEquivalenceGenerator.java index 054f63c5f..f267ef678 100644 --- a/src/main/java/org/atlasapi/equiv/generators/FilmEquivalenceGenerator.java +++ b/src/main/java/org/atlasapi/equiv/gene...
true
true
public ScoredEquivalents<Film> generate(Film film, ResultDescription desc) { ScoredEquivalentsBuilder<Film> scores = DefaultScoredEquivalents.<Film> fromSource("Film"); desc.startStage("Film equivalence generator"); if (film.getYear() == null || Strings.isNullOrEmpty(film.getTitle(...
public ScoredEquivalents<Film> generate(Film film, ResultDescription desc) { ScoredEquivalentsBuilder<Film> scores = DefaultScoredEquivalents.<Film> fromSource("Film"); desc.startStage("Film equivalence generator"); if (film.getYear() == null || Strings.isNullOrEmpty(film.getTitle(...
diff --git a/Seng271_LudoGame/src/LudoGame.java b/Seng271_LudoGame/src/LudoGame.java index a339bec..b3d084c 100644 --- a/Seng271_LudoGame/src/LudoGame.java +++ b/Seng271_LudoGame/src/LudoGame.java @@ -1,165 +1,165 @@ import java.awt.Dimension; import java.awt.Point; import java.awt.image.BufferedImage; import java....
true
true
public LudoGame() { setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); final ImageIcon boardBackground = createImageIcon("src\\game_board.png"); final ImageIcon bluePawnImg = createImageIcon("src\\blue_pawn.png"); final ImageIcon redPawnImg = createImageIcon("src\\red_pawn.png"); final ImageIcon greenPawnI...
public LudoGame() { setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); final ImageIcon boardBackground = createImageIcon("src/game_board.png"); final ImageIcon bluePawnImg = createImageIcon("src/blue_pawn.png"); final ImageIcon redPawnImg = createImageIcon("src/red_pawn.png"); final ImageIcon greenPawnImg ...
diff --git a/alitheia/db/src/eu/sqooss/impl/service/DBActivator.java b/alitheia/db/src/eu/sqooss/impl/service/DBActivator.java index 26ad0939..f0dc1b5c 100644 --- a/alitheia/db/src/eu/sqooss/impl/service/DBActivator.java +++ b/alitheia/db/src/eu/sqooss/impl/service/DBActivator.java @@ -1,55 +1,55 @@ /* * This file i...
true
true
public void start(BundleContext bc) throws Exception { registration = bc.registerService(DBServiceImpl.class.getName(), new DBServiceImpl(), null); }
public void start(BundleContext bc) throws Exception { registration = bc.registerService(DBServiceImpl.class.getName(), new DBServiceImpl(bc), null); }
diff --git a/src/com/fsck/k9/mail/store/WebDavStore.java b/src/com/fsck/k9/mail/store/WebDavStore.java index df1f0a3..4deb228 100644 --- a/src/com/fsck/k9/mail/store/WebDavStore.java +++ b/src/com/fsck/k9/mail/store/WebDavStore.java @@ -1,2665 +1,2666 @@ package com.fsck.k9.mail.store; import android.util.Log; i...
true
true
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
diff --git a/generic.sesam/search-command-config/src/main/java/no/sesat/search/mode/config/SolrCommandConfig.java b/generic.sesam/search-command-config/src/main/java/no/sesat/search/mode/config/SolrCommandConfig.java index 8b3054f33..a8a13a55d 100644 --- a/generic.sesam/search-command-config/src/main/java/no/sesat/sear...
true
true
public SearchConfiguration readSearchConfiguration( final Element element, final SearchConfiguration inherit, final Context context) { if(null!=inherit && inherit instanceof SolrCommandConfig){ sort.putAll(((SolrCommandConfig)inherit).getSortMap()); }...
public SearchConfiguration readSearchConfiguration( final Element element, final SearchConfiguration inherit, final Context context) { if(null!=inherit && inherit instanceof SolrCommandConfig){ sort.putAll(((SolrCommandConfig)inherit).getSortMap()); }...
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/embedded/CEmbeddedBackend.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/embedded/CEmbeddedBackend.java index 0df05423d..492b2991b 100644 --- a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/c/embedded/CE...
true
true
protected void doXdfCodeGeneration(Network network) { // Transform all actors of the network transformActors(network.getAllActors()); printActors(network.getAllActors()); StandardPrinter printer = new StandardPrinter( "net/sf/orcc/backends/c/embedded/Network.stg"); printer.setTypePrinter(new CTypePrinte...
protected void doXdfCodeGeneration(Network network) { // Transform all actors of the network transformActors(network.getAllActors()); printActors(network.getAllActors()); StandardPrinter printer = new StandardPrinter( "net/sf/orcc/backends/c/embedded/Network.stg"); printer.setTypePrinter(new CTypePrinte...
diff --git a/src/edu/gatech/oad/antlab/person/Person2.java b/src/edu/gatech/oad/antlab/person/Person2.java index 108e9b4..fadcc34 100644 --- a/src/edu/gatech/oad/antlab/person/Person2.java +++ b/src/edu/gatech/oad/antlab/person/Person2.java @@ -1,63 +1,63 @@ package edu.gatech.oad.antlab.person; /** * A simple c...
true
true
private String calc(String input) { //Person 2 put your implementation here char[] charArray = input.toCharArray(); int shuffle = input.length(); for (int i = 0; i < shuffle; i++) { int index1 = (int) (Math.random() * charArray.length); int index2 = (int) (Math.random() * charArray.length); char te...
private String calc(String input) { //Person 2 put your implementation here char[] charArray = input.toCharArray(); int shuffle = input.length(); for (int i = 0; i < shuffle; i++) { int index1 = (int) (Math.random() * charArray.length); int index2 = (int) (Math.random() * charArray.length); char te...
diff --git a/src/org/joval/plugin/RemotePlugin.java b/src/org/joval/plugin/RemotePlugin.java index 1d969723..a02b3b1d 100755 --- a/src/org/joval/plugin/RemotePlugin.java +++ b/src/org/joval/plugin/RemotePlugin.java @@ -1,193 +1,193 @@ // Copyright (C) 2011 jOVAL.org. All rights reserved. // This software is licensed...
true
true
public boolean configure(String[] args, IJovaldiConfiguration jDIconfig) { if (jDIconfig.printingHelp()) return true; String hostname = null; boolean redirect64 = true; String domain=null, username=null, password=null, passphrase=null, rootPassword=null; File privateKey = null; for (int i=0; i < args.length...
public boolean configure(String[] args, IJovaldiConfiguration jDIconfig) { if (jDIconfig.printingHelp()) return true; String hostname = null; boolean redirect64 = true; String domain=null, username=null, password=null, passphrase=null, rootPassword=null; File privateKey = null; for (int i=0; i < args.length...
diff --git a/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java b/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java index a062d8c..4c4216c 100644 --- a/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java +++ b/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java @@ -1,266 +1,266 @@ // // CppWrap...
true
true
private List<String> getLibraryJars() throws MojoExecutionException { final List<String> jars = new ArrayList<String>(); // add project artifacts final File projectArtifact = project.getArtifact().getFile(); if (projectArtifact == null || !projectArtifact.exists()) { throw new MojoExecutionException("Must ...
private List<String> getLibraryJars() throws MojoExecutionException { final List<String> jars = new ArrayList<String>(); // add project artifacts final File projectArtifact = project.getArtifact().getFile(); if (projectArtifact == null || !projectArtifact.exists()) { throw new MojoExecutionException("Must ...
diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java index 09f7944be..cf1947908 100644 --- a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java +...
true
true
public Object[] toArray(Object[] result){ List list=container.getItemList(); synchronized(list){ if(result.length<list.size()){ int count=0; result=(Object[]) java.lang.reflect.Array.newInstance(result.getClass().getComponentType(),list.size()); ...
public Object[] toArray(Object[] result){ List list=container.getItemList(); synchronized(list){ if(result.length<=list.size()){ int count=0; result=(Object[]) java.lang.reflect.Array.newInstance(result.getClass().getComponentType(),list.size()); ...
diff --git a/us7638/client/src/main/java/com/funambol/client/test/media/MediaRobot.java b/us7638/client/src/main/java/com/funambol/client/test/media/MediaRobot.java index 8c901023..9d6ab7cc 100755 --- a/us7638/client/src/main/java/com/funambol/client/test/media/MediaRobot.java +++ b/us7638/client/src/main/java/com/funa...
true
true
public void leaveFreeServerQuota(String type, long byteToLeaveFree) throws Throwable { // get free quota for the current user SapiSyncHandler sapiHandler = getSapiSyncHandler(); sapiHandler.logout(); long availableSpace = sapiHandler .getUserAvailableServe...
public void leaveFreeServerQuota(String type, long byteToLeaveFree) throws Throwable { // get free quota for the current user SapiSyncHandler sapiHandler = getSapiSyncHandler(); sapiHandler.login(null); long availableSpace = sapiHandler .getUserAvailableSe...
diff --git a/src/main/java/org/apache/hadoop/hive/ql/udf/generic/UDFSplitWithLimit.java b/src/main/java/org/apache/hadoop/hive/ql/udf/generic/UDFSplitWithLimit.java index b3634e1..5bda5f5 100644 --- a/src/main/java/org/apache/hadoop/hive/ql/udf/generic/UDFSplitWithLimit.java +++ b/src/main/java/org/apache/hadoop/hive/q...
false
true
public static String[] split(String str, String regex, int limit) { /* fastpath if the regex is a (1)one-char String and this character is not one of the RegEx's meta characters ".$|()[{^?*+\\", or (2)two-char String and the first char is the backslash and the second is not the...
public static String[] split(String str, String regex, int limit) { /* fastpath if the regex is a (1)one-char String and this character is not one of the RegEx's meta characters ".$|()[{^?*+\\", or (2)two-char String and the first char is the backslash and the second is not the...
diff --git a/PullPit/src/kea/kme/pullpit/server/podio/ArrayParser.java b/PullPit/src/kea/kme/pullpit/server/podio/ArrayParser.java index c8aa1c0..32c5f24 100644 --- a/PullPit/src/kea/kme/pullpit/server/podio/ArrayParser.java +++ b/PullPit/src/kea/kme/pullpit/server/podio/ArrayParser.java @@ -1,95 +1,101 @@ package kea...
false
true
protected ArrayList<PodioBand> parseBands(ItemsResponse ir) { ArrayList<PodioBand> bands = new ArrayList<PodioBand>(); List<ItemBadge> items = ir.getItems(); for (ItemBadge ib : items) { int itemID = ib.getId(); String name = null; String country = null; int agentID = 0; int promoID = 0; Timest...
protected ArrayList<PodioBand> parseBands(ItemsResponse ir) { ArrayList<PodioBand> bands = new ArrayList<PodioBand>(); List<ItemBadge> items = ir.getItems(); for (ItemBadge ib : items) { int itemID = ib.getId(); String name = null; String country = null; int agentID = 0; int promoID = 0; PodioA...
diff --git a/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/reports/tests/ContextParsingTest.java b/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/reports/tests/ContextParsingTest.java index cdb41dd4..bc11961e 100644 --- a/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/repor...
true
true
public void testHistoryParsingWithDecayReset() { ScalingFactors scalingFactors = new ScalingFactors(); // scalingFactors.setDecay(new ScalingFactor("decay", .05f)); MylarContext context = new MylarContext("test", scalingFactors); int numEvents = 0; for (InteractionEvent event : events) { if (SelectionMoni...
public void testHistoryParsingWithDecayReset() { ScalingFactors scalingFactors = new ScalingFactors(); // scalingFactors.setDecay(new ScalingFactor("decay", .05f)); MylarContext context = new MylarContext("test", scalingFactors); int numEvents = 0; for (InteractionEvent event : events) { if (SelectionMoni...
diff --git a/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java b/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java index eecc74646..273e7e29b 100644 --- a/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java +++ b/gdx/src/com/badlogic/gdx/utils/GdxNativesLoader.java @@ -1,122 +1,122 @@ /*************************...
false
true
static public void load () { if (disableNativesLoading) { System.out .println("So you don't like our native lib loading? Good, you are on your own now. We don't give support from here on out"); return; } if (nativesLoaded) return; String vm = System.getProperty("java.vm.name"); if (vm == null || !...
static public void load () { if (disableNativesLoading) { System.out .println("So you don't like our native lib loading? Good, you are on your own now. We don't give support from here on out"); return; } if (nativesLoaded) return; String vm = System.getProperty("java.vm.name"); if (vm == null || !...
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java index 1bffe6c2..aa5bab1a 100644 --- a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java +++ b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java @@ -1,938 +1,938 @@ /* * Copyright...
true
true
void addRoadWithoutLoops(Way way, GType gt) { List<Integer> nodeIndices = new ArrayList<Integer>(); List<Coord> points = way.getPoints(); Way trailingWay = null; String debugWayName = getDebugName(way); // make sure the way has nodes at each end points.get(0).incHighwayCount(); points.get(points.size() ...
void addRoadWithoutLoops(Way way, GType gt) { List<Integer> nodeIndices = new ArrayList<Integer>(); List<Coord> points = way.getPoints(); Way trailingWay = null; String debugWayName = getDebugName(way); // make sure the way has nodes at each end points.get(0).incHighwayCount(); points.get(points.size() ...
diff --git a/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java b/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java index a0428157..acd7f5f8 100644 --- a/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java +++ b/core/src/test/java/org/apache/commons/vfs2/test/...
false
true
public void testSetLastModified() throws Exception { final long now = System.currentTimeMillis(); if (getReadFolder().getFileSystem().hasCapability(Capability.SET_LAST_MODIFIED_FILE)) { // Try a file final FileObject file = getReadFolder().resolveFile("file1.txt"...
public void testSetLastModified() throws Exception { final long now = System.currentTimeMillis(); if (getReadFolder().getFileSystem().hasCapability(Capability.SET_LAST_MODIFIED_FILE)) { // Try a file final FileObject file = getReadFolder().resolveFile("file1.txt"...
diff --git a/src/test/java/com/github/detro/rps/http/test/RouterTest.java b/src/test/java/com/github/detro/rps/http/test/RouterTest.java index 8d1e6a3..6f365fc 100644 --- a/src/test/java/com/github/detro/rps/http/test/RouterTest.java +++ b/src/test/java/com/github/detro/rps/http/test/RouterTest.java @@ -1,150 +1,150 @@...
true
true
public void shouldAllowToPlayAMatch() { HttpClient client1 = new HttpClient(); HttpClient client2 = new HttpClient(); PostMethod createMatch = null; PutMethod joinMatch = null; PutMethod setWeapon = null; PutMethod restartMatch = null; GetMethod getMatchInfo =...
public void shouldAllowToPlayAMatch() { HttpClient client1 = new HttpClient(); HttpClient client2 = new HttpClient(); PostMethod createMatch = null; PutMethod joinMatch = null; PutMethod setWeapon = null; PutMethod restartMatch = null; GetMethod getMatchInfo =...
diff --git a/src/VASSAL/chat/ui/SimpleStatusControlsInitializer.java b/src/VASSAL/chat/ui/SimpleStatusControlsInitializer.java index 2c35b3a4..b5ac6182 100644 --- a/src/VASSAL/chat/ui/SimpleStatusControlsInitializer.java +++ b/src/VASSAL/chat/ui/SimpleStatusControlsInitializer.java @@ -1,91 +1,91 @@ /* * * Copyrig...
false
true
public void initializeControls(final ChatServerControls controls) { lookingBox = new JButton(Resources.getString("Chat.looking_for_a_game")); //$NON-NLS-1$ lookingBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { if (client != null) { Player p ...
public void initializeControls(final ChatServerControls controls) { lookingBox = new JButton(Resources.getString("Chat.looking_for_a_game")); //$NON-NLS-1$ lookingBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { if (client != null) { Player p ...
diff --git a/packetcable/src/main/java/org/opendaylight/controller/protocol_plugin/packetcable/internal/FlowConverter.java b/packetcable/src/main/java/org/opendaylight/controller/protocol_plugin/packetcable/internal/FlowConverter.java index 49b7872..a5d9da6 100644 --- a/packetcable/src/main/java/org/opendaylight/contro...
false
true
public IPCMMGate getServiceFlow() { IPCMMGate gate = new PCMMGateReq(); // ITransactionID trID = new TransactionID(); IAMID amid = new AMID(); ISubscriberID subscriberID = new SubscriberID(); IGateSpec gateSpec = new GateSpec(); IClassifier classifier = new Classifi...
public IPCMMGate getServiceFlow() { IPCMMGate gate = new PCMMGateReq(); // ITransactionID trID = new TransactionID(); IAMID amid = new AMID(); ISubscriberID subscriberID = new SubscriberID(); IGateSpec gateSpec = new GateSpec(); IClassifier classifier = new Classifi...
diff --git a/src/org/newdawn/slick/opengl/PNGImageData.java b/src/org/newdawn/slick/opengl/PNGImageData.java index 1ec7e41..4d3cafe 100644 --- a/src/org/newdawn/slick/opengl/PNGImageData.java +++ b/src/org/newdawn/slick/opengl/PNGImageData.java @@ -1,787 +1,791 @@ package org.newdawn.slick.opengl; import java.io.EO...
true
true
public ByteBuffer loadImage(InputStream fis, boolean flipped, boolean forceAlpha, int[] transparent) throws IOException { if (transparent != null) { forceAlpha = true; } init(fis); if (!isRGB()) { throw new IOException("Only RGB formatted images are supported by the PNGLoader"); } texWidth =...
public ByteBuffer loadImage(InputStream fis, boolean flipped, boolean forceAlpha, int[] transparent) throws IOException { if (transparent != null) { forceAlpha = true; } init(fis); if (!isRGB()) { throw new IOException("Only RGB formatted images are supported by the PNGLoader"); } texWidth =...
diff --git a/Exploratory/TEB2FMI/ac.soton.fmusim.codegen/src/ac/soton/fmusim/codegen/FMUTranslator.java b/Exploratory/TEB2FMI/ac.soton.fmusim.codegen/src/ac/soton/fmusim/codegen/FMUTranslator.java index e018e0f..f4634a2 100644 --- a/Exploratory/TEB2FMI/ac.soton.fmusim.codegen/src/ac/soton/fmusim/codegen/FMUTranslator.j...
true
true
private void createModelDescriptionFile(Program program) throws IOException, TaskingTranslationException, CModelException, CoreException { ArrayList<Machine> fmuMachineList = taskingTranslationManager .getFMUMachineList(); for (Machine fmuMachine : fmuMachineList) { // Reset the value reference array...
private void createModelDescriptionFile(Program program) throws IOException, TaskingTranslationException, CModelException, CoreException { ArrayList<Machine> fmuMachineList = taskingTranslationManager .getFMUMachineList(); for (Machine fmuMachine : fmuMachineList) { // Reset the value reference array...
diff --git a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/MylarChangeSetManager.java b/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/MylarChangeSetManager.java index c50c5100f..0465753fc 100644 --- a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/MylarChangeSetManager.java +++ b/org.eclipse.mylyn.j...
true
true
public void interestChanged(IMylarElement element) { System.err.println(">>> " + element); IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType()); if (bridge.isDocument(element.getHandleIdentifier())) { IResource resource = MylarIdePlugin.getDefault().getResourceF...
public void interestChanged(IMylarElement element) { IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType()); if (bridge.isDocument(element.getHandleIdentifier())) { IResource resource = MylarIdePlugin.getDefault().getResourceForElement(element); if (resource != n...
diff --git a/src/org/geworkbench/bison/datastructure/complex/panels/CSPanel.java b/src/org/geworkbench/bison/datastructure/complex/panels/CSPanel.java index e3ddb3ae..59f4c8d9 100755 --- a/src/org/geworkbench/bison/datastructure/complex/panels/CSPanel.java +++ b/src/org/geworkbench/bison/datastructure/complex/panels/CS...
true
true
public DSPanel<T> activeSubset() { /* * I simplified the code based on the existing behavior, which may not * be completely intentional in the first place: activePanels returned * from this method is really different from those constructed * otherwise, summarized in the class comment I wrote. It has s...
public DSPanel<T> activeSubset() { /* * I simplified the code based on the existing behavior, which may not * be completely intentional in the first place: activePanels returned * from this method is really different from those constructed * otherwise, summarized in the class comment I wrote. It has s...
diff --git a/core/src/main/java/org/seventyeight/web/actions/AbstractUploadAction.java b/core/src/main/java/org/seventyeight/web/actions/AbstractUploadAction.java index 03a2f87..e4f8e19 100644 --- a/core/src/main/java/org/seventyeight/web/actions/AbstractUploadAction.java +++ b/core/src/main/java/org/seventyeight/web/a...
true
true
public void doUpload( Request request, Response response ) throws Exception { request.checkAuthorization( getParent(), getUploadAuthorization() ); logger.debug( "Uploading file" ); //String relativePath = request.getUser().getIdentifier(); File path = new File( getPath(), getRelativ...
public void doUpload( Request request, Response response ) throws Exception { request.checkAuthorization( getParent(), getUploadAuthorization() ); logger.debug( "Uploading file" ); //String relativePath = request.getUser().getIdentifier(); File path = new File( getPath(), getRelativ...
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/editor/XSDEditorPlugin.java b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/editor/XSDEditorPlugin.java index e0a601708..573714969 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/...
true
true
protected void initializeDefaultPreferences(IPreferenceStore store) { store.setDefault(CONST_SHOW_INHERITED_CONTENT, false); store.setDefault(CONST_XSD_DEFAULT_PREFIX_TEXT, "xsd"); //Even the last item in the list must contain a trailing List separator store.setDefault(CONST_PREFERED_BUILT_IN_T...
protected void initializeDefaultPreferences(IPreferenceStore store) { store.setDefault(CONST_SHOW_INHERITED_CONTENT, false); store.setDefault(CONST_XSD_DEFAULT_PREFIX_TEXT, "xsd"); store.setDefault(CONST_XSD_LANGUAGE_QUALIFY, false); store.setDefault(CONST_DEFAULT_TARGET_NAMESPACE, DEFAULT_TARGET_NA...
diff --git a/impl/src/main/java/ceylon/modules/jboss/runtime/AbstractJBossRuntime.java b/impl/src/main/java/ceylon/modules/jboss/runtime/AbstractJBossRuntime.java index 71f7205..4f404b9 100644 --- a/impl/src/main/java/ceylon/modules/jboss/runtime/AbstractJBossRuntime.java +++ b/impl/src/main/java/ceylon/modules/jboss/r...
false
true
public ClassLoader createClassLoader(String name, String version, Configuration conf) throws Exception { ModuleLoader moduleLoader = createModuleLoader(conf); ModuleIdentifier moduleIdentifier; try{ moduleIdentifier = ModuleIdentifier.fromString(name + ":" + version); }ca...
public ClassLoader createClassLoader(String name, String version, Configuration conf) throws Exception { ModuleLoader moduleLoader = createModuleLoader(conf); ModuleIdentifier moduleIdentifier; try{ moduleIdentifier = ModuleIdentifier.fromString(name + ":" + version); }ca...
diff --git a/src/test/org/apache/hadoop/util/TestQueueProcessingStatistics.java b/src/test/org/apache/hadoop/util/TestQueueProcessingStatistics.java index 9a404fc29..2c32bf9e2 100644 --- a/src/test/org/apache/hadoop/util/TestQueueProcessingStatistics.java +++ b/src/test/org/apache/hadoop/util/TestQueueProcessingStatist...
false
true
public void assertExpectedValues( boolean inCycle, QueueProcessingStatistics.State state, Integer workItemCount, Integer cycleCount) { //Check implicit arguments assertTrue(cycleDuration >= 0L); assertTrue(cycleDelay >= 0L); //Asserts based on expected values if (state != null) ...
public void assertExpectedValues( boolean inCycle, QueueProcessingStatistics.State state, Integer workItemCount, Integer cycleCount) { //Check implicit arguments assertTrue(cycleDuration >= 0L); assertTrue(cycleDelay >= 0L); //Asserts based on expected values if (state != null) ...
diff --git a/src/net/rcode/wsclient/WebSocket.java b/src/net/rcode/wsclient/WebSocket.java index 49be52b..8cfd614 100644 --- a/src/net/rcode/wsclient/WebSocket.java +++ b/src/net/rcode/wsclient/WebSocket.java @@ -1,571 +1,571 @@ package net.rcode.wsclient; import java.io.BufferedInputStream; import java.io.Buffere...
false
true
public void abort() { if (socket!=null) { try { socket.close(); // This will stop anything blocked on read or write } catch (IOException e) { // Not much else to do e.printStackTrace(); } socket=null; } Thread localReaderThread=null, localWriterThread=null; synchronized (this) { ...
public void abort() { if (socket!=null) { try { socket.close(); // This will stop anything blocked on read or write } catch (IOException e) { // Not much else to do e.printStackTrace(); } socket=null; } Thread localReaderThread=null, localWriterThread=null; synchronized (this) { ...
diff --git a/src/main/java/org/atlasapi/persistence/CassandraPersistenceModule.java b/src/main/java/org/atlasapi/persistence/CassandraPersistenceModule.java index 370380c9..cba60171 100644 --- a/src/main/java/org/atlasapi/persistence/CassandraPersistenceModule.java +++ b/src/main/java/org/atlasapi/persistence/Cassandra...
true
true
private @Bean CassandraContentStore cassandraContentStore() { return new CassandraContentStore(Lists.newArrayList(Splitter.on(',').split(seeds)), port, Runtime.getRuntime().availableProcessors() * 10, connectionTimeout, requestTimeout); }
public @Bean CassandraContentStore cassandraContentStore() { return new CassandraContentStore(Lists.newArrayList(Splitter.on(',').split(seeds)), port, Runtime.getRuntime().availableProcessors() * 10, connectionTimeout, requestTimeout); }
diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java index 1b33306b5..e89ca927e 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/Sele...
true
true
public void doSelect() throws IOException { try { _selecting=Thread.currentThread(); List<?> changes; final Selector selector; synchronized (_changes) { changes=_changes[_change]; ...
public void doSelect() throws IOException { try { _selecting=Thread.currentThread(); List<?> changes; final Selector selector; synchronized (_changes) { changes=_changes[_change]; ...
diff --git a/addon-web-selenium/src/main/java/org/springframework/roo/addon/web/selenium/SeleniumOperationsImpl.java b/addon-web-selenium/src/main/java/org/springframework/roo/addon/web/selenium/SeleniumOperationsImpl.java index 1e707a4a3..8b796046e 100644 --- a/addon-web-selenium/src/main/java/org/springframework/roo/...
true
true
public void generateTest(JavaType controller, String name, String serverURL) { Assert.notNull(controller, "Controller type required"); String webScaffoldMetadataIdentifier = WebScaffoldMetadata.createIdentifier(controller, Path.SRC_MAIN_JAVA); WebScaffoldMetadata webScaffoldMetadata = (WebScaffoldMetadata) meta...
public void generateTest(JavaType controller, String name, String serverURL) { Assert.notNull(controller, "Controller type required"); String webScaffoldMetadataIdentifier = WebScaffoldMetadata.createIdentifier(controller, Path.SRC_MAIN_JAVA); WebScaffoldMetadata webScaffoldMetadata = (WebScaffoldMetadata) meta...
diff --git a/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java b/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java index b297e211f..1b4f7d866 100644 --- a/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java +++ b/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java @@ -1,120 +1,121 @@...
true
true
public void testCanOutputSimpleItemObjectModelAsXml() throws Exception { Set<Object> graph = Sets.newHashSet(); Item item = new Item(); item.setTitle("Blue Peter"); item.setUri("http://www.bbc.co.uk/programmes/bluepeter"); item.setAliases(Sets.newHashSet("http://www.bbc.co.uk/p/bluepeter")); Location loca...
public void testCanOutputSimpleItemObjectModelAsXml() throws Exception { Set<Object> graph = Sets.newHashSet(); Item item = new Item(); item.setTitle("Blue Peter"); item.setUri("http://www.bbc.co.uk/programmes/bluepeter"); item.setAliases(Sets.newHashSet("http://www.bbc.co.uk/p/bluepeter")); Location loca...
diff --git a/shell/core/src/main/java/org/vfsutils/shell/commands/BoxedUnregister.java b/shell/core/src/main/java/org/vfsutils/shell/commands/BoxedUnregister.java index 7faaa60..294f1e4 100644 --- a/shell/core/src/main/java/org/vfsutils/shell/commands/BoxedUnregister.java +++ b/shell/core/src/main/java/org/vfsutils/she...
true
true
protected void unregister(String cmd, CommandProvider command, Engine engine) { if (command instanceof Register.Script) { if ("vfs".equals(((Register.Script)command).type)) { super.unregister(cmd, command, engine); } else { engine.error("Can not unregister " + cmd); } } else { engine.error...
protected void unregister(String cmd, CommandProvider command, Engine engine) { if (command instanceof Register.Script) { if ("vfs".equals(((Register.Script)command).getType())) { super.unregister(cmd, command, engine); } else { engine.error("Can not unregister " + cmd); } } else { engine....
diff --git a/src/plugin/Stalemate.java b/src/plugin/Stalemate.java index 3e74466..00ee779 100644 --- a/src/plugin/Stalemate.java +++ b/src/plugin/Stalemate.java @@ -1,878 +1,878 @@ package plugin; import java.io.*; import static util.ColorParser.parseColors; import org.bukkit.Location; import org.bukkit.World;...
true
true
public void onEnable() { if (getDataFolder().isFile()) getDataFolder().delete(); if (!getDataFolder().exists()) getDataFolder().mkdir(); // TODO: Implement all commands registerCommand(getSetting("help_cmd", "help"), getSetting("help_help", "Shows the help page."), new CommandCallback() { @Override ...
public void onEnable() { if (getDataFolder().isFile()) getDataFolder().delete(); if (!getDataFolder().exists()) getDataFolder().mkdir(); // TODO: Implement all commands registerCommand(getSetting("help_cmd", "help"), getSetting("help_help", "Shows the help page."), new CommandCallback() { @Override ...
diff --git a/src/main/java/nl/mindef/c2sc/nbs/olsr/pud/uplink/server/handlers/impl/WireFormatCheckerImpl.java b/src/main/java/nl/mindef/c2sc/nbs/olsr/pud/uplink/server/handlers/impl/WireFormatCheckerImpl.java index 524c9d3..5c7d32f 100644 --- a/src/main/java/nl/mindef/c2sc/nbs/olsr/pud/uplink/server/handlers/impl/WireF...
true
true
public boolean checkUplinkMessageWireFormat(Sender sender, UplinkMessage msg) { assert (sender != null); assert (msg != null); int wireFormatVersion = -1; if (msg instanceof ClusterLeader) { wireFormatVersion = ((ClusterLeader) msg).getClusterLeaderVersion(); } else /* if (msg instanceof PositionUpdate) ...
public boolean checkUplinkMessageWireFormat(Sender sender, UplinkMessage msg) { assert (sender != null); assert (msg != null); int wireFormatVersion = -1; if (msg instanceof ClusterLeader) { wireFormatVersion = ((ClusterLeader) msg).getClusterLeaderVersion(); } else /* if (msg instanceof PositionUpdate) ...
diff --git a/org.dawb.common.ui/src/org/dawb/common/ui/plot/roi/data/RectangularROIData.java b/org.dawb.common.ui/src/org/dawb/common/ui/plot/roi/data/RectangularROIData.java index c15d1107..fc44f2b2 100644 --- a/org.dawb.common.ui/src/org/dawb/common/ui/plot/roi/data/RectangularROIData.java +++ b/org.dawb.common.ui/sr...
true
true
public RectangularROIData(RectangularROI rroi, AbstractDataset data, AbstractDataset mask, double subFactor) { super(); setROI(rroi.copy()); roi.downsample(subFactor); profileData = ROIProfile.box(data, mask, (RectangularROI) roi); if (profileData != null && profileData[0].getShape()[0] > 1 && profileData[1...
public RectangularROIData(RectangularROI rroi, AbstractDataset data, AbstractDataset mask, double subFactor) { super(); setROI(rroi.copy()); roi.downsample(subFactor); if (data != null) profileData = ROIProfile.box(data, mask, (RectangularROI) roi); if (profileData != null && profileData[0].getShape()[0]...
diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java index 044cfe82..0b8c44ad 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java @@ -1,48 ...
true
true
public VehicleDamageEvent(Vehicle vehicle, Entity attacker, int damage) { super(Type.ENTITY_DAMAGE, vehicle); this.attacker = attacker; this.damage = damage; }
public VehicleDamageEvent(Vehicle vehicle, Entity attacker, int damage) { super(Type.VEHICLE_DAMAGE, vehicle); this.attacker = attacker; this.damage = damage; }
diff --git a/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java b/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java index 88c891a974..010794af95 100644 --- a/src/org/rascalmpl/library/experiments/Compiler/RVM/Interpreter/RVM.java +++ b/src/org/rascalmpl/library/experiments/Com...
true
true
private Object executeProgram(Frame root, Frame cf) { Object[] stack = cf.stack; // current stack int sp = cf.function.nlocals; // current stack pointer int [] instructions = cf.function.codeblock.getInstructions(); // current instruction sequence int pc =...
private Object executeProgram(Frame root, Frame cf) { Object[] stack = cf.stack; // current stack int sp = cf.function.nlocals; // current stack pointer int [] instructions = cf.function.codeblock.getInstructions(); // current instruction sequence int pc =...
diff --git a/src/org/flowvisor/message/FVFlowRemoved.java b/src/org/flowvisor/message/FVFlowRemoved.java index d7170b8..7e8dc8e 100644 --- a/src/org/flowvisor/message/FVFlowRemoved.java +++ b/src/org/flowvisor/message/FVFlowRemoved.java @@ -1,109 +1,110 @@ package org.flowvisor.message; import java.util.HashSet; i...
true
true
public void classifyFromSwitch(FVClassifier fvClassifier) { FlowMap flowSpace = fvClassifier.getSwitchFlowMap(); Set<String> slicesToUpdate = new HashSet<String>(); String slicerFromCookie = untanslateCookie(fvClassifier); FVLog.log(LogLevel.DEBUG, fvClassifier, slicerFromCookie); String sliceName = fvCl...
public void classifyFromSwitch(FVClassifier fvClassifier) { FVLog.log(LogLevel.DEBUG, fvClassifier, "Starting flowremoved message processing"); FlowMap flowSpace = fvClassifier.getSwitchFlowMap(); Set<String> slicesToUpdate = new HashSet<String>(); String slicerFromCookie = untanslateCookie(fvClassifier); F...
diff --git a/src/com/dmdirc/parser/irc/ProcessMode.java b/src/com/dmdirc/parser/irc/ProcessMode.java index cdce16b2c..5ac562968 100644 --- a/src/com/dmdirc/parser/irc/ProcessMode.java +++ b/src/com/dmdirc/parser/irc/ProcessMode.java @@ -1,337 +1,338 @@ /* * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Greg...
true
true
public void processChanMode(String sParam, String token[], String sModestr[], String sChannelName) { StringBuilder sFullModeStr = new StringBuilder(); String sNonUserModeStr = ""; String sNonUserModeStrParams = ""; String sModeParam; String sTemp; int nParam = 1; long nTemp = 0, nValue = 0, nCurrent = 0;...
public void processChanMode(String sParam, String token[], String sModestr[], String sChannelName) { StringBuilder sFullModeStr = new StringBuilder(); String sNonUserModeStr = ""; String sNonUserModeStrParams = ""; String sModeParam; String sTemp; int nParam = 1; long nTemp = 0, nValue = 0, nCurrent = 0;...
diff --git a/org.modelexecution.fumldebug.debugger.uml2/src/org/modelexecution/fumldebug/debugger/uml2/provider/UML2ActivityProvider.java b/org.modelexecution.fumldebug.debugger.uml2/src/org/modelexecution/fumldebug/debugger/uml2/provider/UML2ActivityProvider.java index ebe6210..938c44d 100644 --- a/org.modelexecution....
true
true
public UML2ActivityProvider(IResource iResource) { if (iFile instanceof IFile && iFile.exists()) { throw new IllegalArgumentException( "Resource is not a valid file or does not exist."); } this.iFile = (IFile) iResource; initializeResourceSet(); initializeResource(); }
public UML2ActivityProvider(IResource iResource) { if (iResource instanceof IFile && iResource.exists()) { throw new IllegalArgumentException( "Resource is not a valid file or does not exist."); } this.iFile = (IFile) iResource; initializeResourceSet(); initializeResource(); }
diff --git a/tests/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/script/element/ElementTest.java b/tests/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/script/element/ElementTest.java index a1d1968eb..f4cec43e0 100644 --- a/tests/org.eclipse.birt.report.engin...
true
true
public void testStyle( ) throws ScriptException { StyleHandle styleHandle = factory.newStyle( STYLE ); IScriptStyleDesign style = new StyleDesign( styleHandle ); style .setBackgroundAttachment( DesignChoiceConstants.BACKGROUND_ATTACHMENT_SCROLL ); assertEquals( DesignChoiceConstants.BACKGROUND_ATTACHMENT...
public void testStyle( ) throws ScriptException { StyleHandle styleHandle = factory.newStyle( STYLE ); IScriptStyleDesign style = new StyleDesign( styleHandle ); style .setBackgroundAttachment( DesignChoiceConstants.BACKGROUND_ATTACHMENT_SCROLL ); assertEquals( DesignChoiceConstants.BACKGROUND_ATTACHMENT...
diff --git a/N06/src/Main/src/java/monsterMashGroupProject/RequestController.java b/N06/src/Main/src/java/monsterMashGroupProject/RequestController.java index 28e3dbb..5a23c3c 100644 --- a/N06/src/Main/src/java/monsterMashGroupProject/RequestController.java +++ b/N06/src/Main/src/java/monsterMashGroupProject/RequestCon...
false
true
public String controller(String requestID, String choice){ FriendHandler friendHand = new FriendHandler(); persistIt.init(); List<Requests> requestList = persistIt.searchRequets(); for(int i = 0; i < requestList.size(); i++){ if(request...
public String controller(String requestID, String acceptbtn, String declinebtn){ FriendHandler friendHand = new FriendHandler(); persistIt.init(); List<Requests> requestList = persistIt.searchRequets(); for(int i = 0; i < requestList.size(); i++){ ...
diff --git a/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker.java b/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker.java index 5439b30..af3ccc3 100644 --- a/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker.java +++ b/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker....
false
true
public static void go(String[] argv) throws MissedHeartbeatException { Connection connection = null; Channel channel; try { loadPlugins(argv); ConnectionFactory factory = new ConnectionFactory(); factory.setHost("s-vmc.cs.cf.ac.uk"); factory....
public static void go(String[] argv) throws MissedHeartbeatException { Connection connection = null; Channel channel; try { loadPlugins(argv); ConnectionFactory factory = new ConnectionFactory(); factory.setHost("s-vmc.cs.cf.ac.uk"); factory....
diff --git a/NearMeServer/src/com/nearme/DatabasePoiFinder.java b/NearMeServer/src/com/nearme/DatabasePoiFinder.java index cd86d18..0eba3a4 100644 --- a/NearMeServer/src/com/nearme/DatabasePoiFinder.java +++ b/NearMeServer/src/com/nearme/DatabasePoiFinder.java @@ -1,113 +1,113 @@ package com.nearme; import java.s...
true
true
public List<Poi> find (PoiQuery pq) { //TODO this is where the database magic happens String value= "Pubs"; //the option in the android String var=" "; ArrayList<Poi> ret = new ArrayList<Poi>(); try { Connection conn = dataSource.getConnection(); PoiType type = null; // ResultSet rt...
public List<Poi> find (PoiQuery pq) { //TODO this is where the database magic happens String value= "Pubs"; //the option in the android String var=" "; ArrayList<Poi> ret = new ArrayList<Poi>(); try { Connection conn = dataSource.getConnection(); PoiType type = null; // ResultSet rt...
diff --git a/src/com/android/contacts/list/DefaultContactListAdapter.java b/src/com/android/contacts/list/DefaultContactListAdapter.java index 2a8d66581..3409f5652 100644 --- a/src/com/android/contacts/list/DefaultContactListAdapter.java +++ b/src/com/android/contacts/list/DefaultContactListAdapter.java @@ -1,254 +1,25...
true
true
private void configureSelection( CursorLoader loader, long directoryId, ContactListFilter filter) { if (filter == null) { return; } if (directoryId != Directory.DEFAULT) { return; } StringBuilder selection = new StringBuilder(); L...
private void configureSelection( CursorLoader loader, long directoryId, ContactListFilter filter) { if (filter == null) { return; } if (directoryId != Directory.DEFAULT) { return; } StringBuilder selection = new StringBuilder(); L...
diff --git a/h2/src/test/org/h2/test/synth/TestConcurrentUpdate.java b/h2/src/test/org/h2/test/synth/TestConcurrentUpdate.java index b4a34b7e3..c2e9b17b8 100644 --- a/h2/src/test/org/h2/test/synth/TestConcurrentUpdate.java +++ b/h2/src/test/org/h2/test/synth/TestConcurrentUpdate.java @@ -1,132 +1,133 @@ /* * Copyrig...
true
true
public void test() throws Exception { final String url = getURL("concurrent;MULTI_THREADED=TRUE", true); Connection conn = getConnection(url); Statement stat = conn.createStatement(); stat.execute("create table test(id int primary key, name varchar)"); Task[] tasks = new Tas...
public void test() throws Exception { deleteDb("concurrent"); final String url = getURL("concurrent;MULTI_THREADED=TRUE", true); Connection conn = getConnection(url); Statement stat = conn.createStatement(); stat.execute("create table test(id int primary key, name varchar)");...
diff --git a/projects/bundles/solaris/src/test/java/org/identityconnectors/solaris/SolarisConnectionTest.java b/projects/bundles/solaris/src/test/java/org/identityconnectors/solaris/SolarisConnectionTest.java index 7b7b2343..57c1fb57 100644 --- a/projects/bundles/solaris/src/test/java/org/identityconnectors/solaris/Sol...
true
true
public void testSudoAuthorization() { if (!SolarisTestCommon.getProperty("unitTests.SolarisConnection.testsudoAuthorization", Boolean.class)) { log.info("skipping testSSHPubKeyConnection test, because the resource doesn't support it."); return; } // connectio...
public void testSudoAuthorization() { if (!SolarisTestCommon.getProperty("unitTests.SolarisConnection.testsudoAuthorization", Boolean.class)) { log.info("skipping testSSHPubKeyConnection test, because the resource doesn't support it."); return; } // connectio...
diff --git a/common/com/cane/item/ItemCane.java b/common/com/cane/item/ItemCane.java index c6b6eba..8b33b7b 100644 --- a/common/com/cane/item/ItemCane.java +++ b/common/com/cane/item/ItemCane.java @@ -1,172 +1,172 @@ package com.cane.item; import java.util.ArrayList; import java.util.List; import com.cane.CaneC...
true
true
public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int face, float par8, float par9, float par10) { int prevBlockID = world.getBlockId(x, y, z); if (prevBlockID == Block.snow.blockID) { face = 1; } else if (prevB...
public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int face, float par8, float par9, float par10) { int prevBlockID = world.getBlockId(x, y, z); if (prevBlockID == Block.snow.blockID) { face = 1; } else if (prevB...
diff --git a/components/bio-formats/src/loci/formats/in/MetamorphReader.java b/components/bio-formats/src/loci/formats/in/MetamorphReader.java index e35708d17..3335b66a4 100644 --- a/components/bio-formats/src/loci/formats/in/MetamorphReader.java +++ b/components/bio-formats/src/loci/formats/in/MetamorphReader.java @@ ...
true
true
protected void initFile(String id) throws FormatException, IOException { if (checkSuffix(id, ND_SUFFIX)) { LOGGER.info("Initializing " + id); // find an associated STK file String stkFile = id.substring(0, id.lastIndexOf(".")); if (stkFile.indexOf(File.separator) != -1) { stkFile =...
protected void initFile(String id) throws FormatException, IOException { if (checkSuffix(id, ND_SUFFIX)) { LOGGER.info("Initializing " + id); // find an associated STK file String stkFile = id.substring(0, id.lastIndexOf(".")); if (stkFile.indexOf(File.separator) != -1) { stkFile =...
diff --git a/com.ggasoftware.indigo.knime.plugin/src/com/ggasoftware/indigo/knime/rautomapper/IndigoReactionAutomapperNodeModel.java b/com.ggasoftware.indigo.knime.plugin/src/com/ggasoftware/indigo/knime/rautomapper/IndigoReactionAutomapperNodeModel.java index 8903140..2b76428 100644 --- a/com.ggasoftware.indigo.knime....
false
true
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec) throws Exception { DataTableSpec inputTableSpec = inData[0].getDataTableSpec(); DataTableSpec[] outputSpecs = getDataTableSpecs(inputTableSpec); BufferedDataContainer validOutputContainer ...
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec) throws Exception { DataTableSpec inputTableSpec = inData[0].getDataTableSpec(); DataTableSpec[] outputSpecs = getDataTableSpecs(inputTableSpec); BufferedDataContainer validOutputContainer ...