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/code/br.ufpe.cin.reviewer.searchprovider.springerlink/src/br/ufpe/cin/reviewer/searchprovider/springerlink/SpringerLinkSearchProvider.java b/code/br.ufpe.cin.reviewer.searchprovider.springerlink/src/br/ufpe/cin/reviewer/searchprovider/springerlink/SpringerLinkSearchProvider.java index 570c289..af21762 1006...
true
true
private List<Study> extractStudiesData(WebClient browser, String searchUrl, SearchProviderResult result) { List<Study> toReturn = new LinkedList<Study>(); try { HtmlPage page = browser.getPage(searchUrl); HtmlStrong totalFound = (HtmlStrong) page.getByXPath(XPATH_STRONG_TOTAL_FOUND).get(0); result.setT...
private List<Study> extractStudiesData(WebClient browser, String searchUrl, SearchProviderResult result) { List<Study> toReturn = new LinkedList<Study>(); try { HtmlPage page = browser.getPage(searchUrl); HtmlStrong totalFound = (HtmlStrong) page.getByXPath(XPATH_STRONG_TOTAL_FOUND).get(0); result.setT...
diff --git a/src/main/org/openscience/jchempaint/JCPMenuTextMaker.java b/src/main/org/openscience/jchempaint/JCPMenuTextMaker.java index b9e60f1..23290fa 100644 --- a/src/main/org/openscience/jchempaint/JCPMenuTextMaker.java +++ b/src/main/org/openscience/jchempaint/JCPMenuTextMaker.java @@ -1,314 +1,314 @@ /* * $R...
false
true
private JCPMenuTextMaker(String guistring){ entries.put("file", GT._("File")); entries.put("new", GT._("New")); entries.put("atomMenuTitle", GT._("Atom Popup Menu")); entries.put("open", GT._("Open")); entries.put("saveAs", GT._("Save As...")); entries.put("view", GT._("View")); entries.put("print", GT._...
private JCPMenuTextMaker(String guistring){ entries.put("file", GT._("File")); entries.put("new", GT._("New")); entries.put("atomMenuTitle", GT._("Atom Popup Menu")); entries.put("open", GT._("Open")); entries.put("saveAs", GT._("Save As...")); entries.put("view", GT._("View")); entries.put("print", GT._...
diff --git a/modules/org.restlet.test/src/org/restlet/test/RedirectTestCase.java b/modules/org.restlet.test/src/org/restlet/test/RedirectTestCase.java index cd65f7c2d..5573868b5 100644 --- a/modules/org.restlet.test/src/org/restlet/test/RedirectTestCase.java +++ b/modules/org.restlet.test/src/org/restlet/test/RedirectT...
false
true
public void testRedirect() throws Exception { // Create components Component clientComponent = new Component(); Component proxyComponent = new Component(); Component originComponent = new Component(); // Create the client connectors clientComponent.getClients().add(P...
public void testRedirect() throws Exception { // Create components Component clientComponent = new Component(); Component proxyComponent = new Component(); Component originComponent = new Component(); // Create the client connectors clientComponent.getClients().add(P...
diff --git a/src/web/org/openmrs/web/taglib/ObsTableWidget.java b/src/web/org/openmrs/web/taglib/ObsTableWidget.java index 843a3d15..999e2d15 100644 --- a/src/web/org/openmrs/web/taglib/ObsTableWidget.java +++ b/src/web/org/openmrs/web/taglib/ObsTableWidget.java @@ -1,435 +1,441 @@ /** * The contents of this file ar...
false
true
public int doStartTag() { Locale loc = Context.getLocale(); DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, loc); // determine which concepts we care about List<Concept> conceptList = new ArrayList<Concept>(); Set<Integer> conceptIds = new HashSet<Integer>(); ConceptService cs = Context.get...
public int doStartTag() { Locale loc = Context.getLocale(); DateFormat df = Context.getDateFormat(); //DateFormat.getDateInstance(DateFormat.SHORT, loc); // determine which concepts we care about List<Concept> conceptList = new ArrayList<Concept>(); Set<Integer> conceptIds = new HashSet<Integer>(); C...
diff --git a/java/client/src/org/openqa/selenium/chrome/ChromeDriverService.java b/java/client/src/org/openqa/selenium/chrome/ChromeDriverService.java index e5ad91fc2..9c152df0b 100644 --- a/java/client/src/org/openqa/selenium/chrome/ChromeDriverService.java +++ b/java/client/src/org/openqa/selenium/chrome/ChromeDriver...
true
true
public static ChromeDriverService createDefaultService() { String defaultPath = findExecutable("chromedriver"); String exePath = System.getProperty(CHROME_DRIVER_EXE_PROPERTY, defaultPath); checkState(exePath != null, "The path to the chromedriver executable must be set by the %s system property;"...
public static ChromeDriverService createDefaultService() { String defaultPath = findExecutable("chromedriver"); String exePath = System.getProperty(CHROME_DRIVER_EXE_PROPERTY, defaultPath); checkState(exePath != null, "The path to the chromedriver executable must be set by the %s system property;"...
diff --git a/bundles/org.eclipse.rap.examples.pages/src/org/eclipse/rap/examples/pages/TableViewerExample.java b/bundles/org.eclipse.rap.examples.pages/src/org/eclipse/rap/examples/pages/TableViewerExample.java index d4107a950..02b8d8082 100644 --- a/bundles/org.eclipse.rap.examples.pages/src/org/eclipse/rap/examples/p...
false
true
public void createControl( final Composite parent ) { parent.setLayout( ExampleUtil.createGridLayout( 1, false, 10, 20 ) ); Composite composite = new Composite( parent, SWT.NONE ); composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) ); composite.setLayout( new GridLayout( 2, false...
public void createControl( final Composite parent ) { parent.setLayout( ExampleUtil.createGridLayout( 1, false, 10, 20 ) ); Composite composite = new Composite( parent, SWT.NONE ); composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) ); composite.setLayout( new GridLayout( 2, false...
diff --git a/src/java-common/org/xins/common/ant/HostnameTask.java b/src/java-common/org/xins/common/ant/HostnameTask.java index e49701e14..1d33c13f3 100644 --- a/src/java-common/org/xins/common/ant/HostnameTask.java +++ b/src/java-common/org/xins/common/ant/HostnameTask.java @@ -1,129 +1,130 @@ /* * $Id$ */ pack...
true
true
public void execute() throws BuildException { if (getProject().getUserProperty(_propertyName) != null) { log("Override ignored for property \"" + _propertyName + "\".", Project.MSG_VERBOSE); } InetAddress localhost = null; try { localhost = InetAddress.getLocalHost(); ...
public void execute() throws BuildException { if (getProject().getUserProperty(_propertyName) != null) { log("Override ignored for property \"" + _propertyName + "\".", Project.MSG_VERBOSE); } InetAddress localhost = null; try { localhost = InetAddress.getLocalHost(); ...
diff --git a/src/main/groovy/text/SimpleTemplateEngine.java b/src/main/groovy/text/SimpleTemplateEngine.java index 53569d209..299a5066b 100644 --- a/src/main/groovy/text/SimpleTemplateEngine.java +++ b/src/main/groovy/text/SimpleTemplateEngine.java @@ -1,217 +1,220 @@ /* * $Id$version Mar 8, 2004 2:11:00 AM $user Ex...
false
true
private String parse(Reader reader) throws IOException { if (!reader.markSupported()) { reader = new BufferedReader(reader); } StringWriter sw = new StringWriter(); startScript(sw); boolean start = false; int c; ...
private String parse(Reader reader) throws IOException { if (!reader.markSupported()) { reader = new BufferedReader(reader); } StringWriter sw = new StringWriter(); startScript(sw); boolean start = false; int c; ...
diff --git a/app/models/Module.java b/app/models/Module.java index 02f1a3d9..7e2a7195 100644 --- a/app/models/Module.java +++ b/app/models/Module.java @@ -1,49 +1,51 @@ package models; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.eclipse.m...
true
true
public Module(Map<String, Object> outerMap) { this.id = (String) outerMap.get("id"); this.name = (String) outerMap.get("name"); this.description = Textile.toHTML((String) outerMap.get("description")); this.url = (String) outerMap.get("url"); this.author = (String) outerMap.g...
public Module(Map<String, Object> outerMap) { this.id = (String) outerMap.get("id"); this.name = (String) outerMap.get("name"); this.description = Textile.toHTML((String) outerMap.get("description")); this.url = (String) outerMap.get("url"); this.author = (String) outerMap.g...
diff --git a/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.common.ui.services/src/org/eclipse/gmf/runtime/common/ui/services/util/ActivityFilterProviderDescriptor.java b/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.common.ui.services/src/org/eclipse/gmf/runtime/common/ui/services/util/ActivityFilte...
true
true
private boolean areActivitiesEnabled() { if (!WorkbenchActivityHelper.isFiltering()) return true; IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI .getWorkbench().getActivitySupport(); IIdentifier id = workbenchActivitySupport.getActivityManager() .getIdentifier( WorkbenchActivityHel...
private boolean areActivitiesEnabled() { if (!WorkbenchActivityHelper.isFiltering()) return true; IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI .getWorkbench().getActivitySupport(); IIdentifier id = workbenchActivitySupport.getActivityManager() .getIdentifier( WorkbenchActivityHel...
diff --git a/src/fuser/tokenizer/Tokenizer.java b/src/fuser/tokenizer/Tokenizer.java index 8f1b794..60fff80 100644 --- a/src/fuser/tokenizer/Tokenizer.java +++ b/src/fuser/tokenizer/Tokenizer.java @@ -1,44 +1,44 @@ package fuser.tokenizer; import static ginger.Seq.s; import java.util.LinkedHashMap; import java....
true
true
protected List<Token> parse(String string) { List<Token> result = new LinkedList<Token>(); Pattern pattern = Pattern.compile(allDefinitionsTogether()); Matcher matcher = pattern.matcher(string); while (matcher.find()) { String tokenCandidate = matcher.group(); for (Entry<String, String> entry : definiti...
protected List<Token> parse(String string) { List<Token> result = new LinkedList<Token>(); Pattern pattern = Pattern.compile(allDefinitionsTogether()); Matcher matcher = pattern.matcher(string); while (matcher.find()) { String tokenCandidate = matcher.group(); for (Entry<String, String> entry : definiti...
diff --git a/spring-yarn/spring-yarn-core/src/test/java/org/springframework/yarn/config/ClientNamespaceTest.java b/spring-yarn/spring-yarn-core/src/test/java/org/springframework/yarn/config/ClientNamespaceTest.java index 83a62c90..2979843e 100644 --- a/spring-yarn/spring-yarn-core/src/test/java/org/springframework/yarn...
false
true
public void testCustom() throws Exception { assertNotNull(customYarnClient); assertNotNull(customYarnClientFactoryBean); Configuration configuration = TestUtils.readField("configuration", customYarnClientFactoryBean); assertNotNull(configuration); String defaultFs = configuration.get(CommonConfigurationKeys...
public void testCustom() throws Exception { assertNotNull(customYarnClient); assertNotNull(customYarnClientFactoryBean); Configuration configuration = TestUtils.readField("configuration", customYarnClientFactoryBean); assertNotNull(configuration); String defaultFs = configuration.get(CommonConfigurationKeys...
diff --git a/src/org/apache/xalan/xslt/Process.java b/src/org/apache/xalan/xslt/Process.java index d46c4277..3c5e4495 100644 --- a/src/org/apache/xalan/xslt/Process.java +++ b/src/org/apache/xalan/xslt/Process.java @@ -1,645 +1,654 @@ /* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The A...
false
true
public static void main( String argv[] ) { Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off boolean doStackDumpOnError = false; boolean setQuietMode = false; boolean doDiag = false; // Runtime.getRuntime().traceMethodCalls(false); // Runtime.getRuntime().traceInstruct...
public static void main( String argv[] ) { Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off boolean doStackDumpOnError = false; boolean setQuietMode = false; boolean doDiag = false; // Runtime.getRuntime().traceMethodCalls(false); // Runtime.getRuntime().traceInstruct...
diff --git a/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java b/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java index 28670f2..e893861 100644 --- a/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModul...
true
true
private boolean createLdapInitContext(String username, Object credential) throws Exception { rolesOnly = options.get(ROLES_ONLY) != null && options.get(ROLES_ONLY).toString().trim().equals("true"); principalIsDN = options.get(PRINCIPAL_IS_DN) != null && options.ge...
private boolean createLdapInitContext(String username, Object credential) throws Exception { rolesOnly = options.get(ROLES_ONLY) != null && options.get(ROLES_ONLY).toString().trim().equals("true"); principalIsDN = options.get(PRINCIPAL_IS_DN) != null && options.ge...
diff --git a/src/main/java/ru/mystamps/web/config/DataSourceConfig.java b/src/main/java/ru/mystamps/web/config/DataSourceConfig.java index bca42a19..02fdaf97 100644 --- a/src/main/java/ru/mystamps/web/config/DataSourceConfig.java +++ b/src/main/java/ru/mystamps/web/config/DataSourceConfig.java @@ -1,75 +1,77 @@ /* *...
true
true
public DataSource getDataSource() { BasicDataSource dataSource = new BasicDataSource(); dataSource.setDriverClassName(env.getRequiredProperty("db.driverClassName")); dataSource.setUrl(env.getRequiredProperty("db.url")); dataSource.setUsername(env.getRequiredProperty("db.username")); dataSource.setP...
public DataSource getDataSource() { BasicDataSource dataSource = new BasicDataSource(); dataSource.setDriverClassName(env.getRequiredProperty("db.driverClassName")); dataSource.setUrl(env.getRequiredProperty("db.url")); dataSource.setUsername(env.getRequiredProperty("db.username")); dataSource.setP...
diff --git a/HumanPlayerWithoutSockets.java b/HumanPlayerWithoutSockets.java index 0b99d9d..d63b637 100644 --- a/HumanPlayerWithoutSockets.java +++ b/HumanPlayerWithoutSockets.java @@ -1,302 +1,302 @@ import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import ...
true
true
void buildGUI() { lname = new JLabel("Name: " + name); JLabel lAttrs = new JLabel("Game with " + nGambles + " gambles"); lname.setFont(f1); lAttrs.setFont(f2); bStart = new JButton("Start"); bPlay = new JButton("Send"); bSetName = new JButton("Set Name"); nameField = ...
void buildGUI() { lname = new JLabel("Name: " + name); JLabel lAttrs = new JLabel("Game with " + nGambles + " gambles"); lname.setFont(f1); lAttrs.setFont(f2); bStart = new JButton("Start"); bPlay = new JButton("Send"); bSetName = new JButton("Set Name"); nameField = ...
diff --git a/components/src/org/riotfamily/components/config/ContentFormRepository.java b/components/src/org/riotfamily/components/config/ContentFormRepository.java index 3dd586d43..af3e0ec39 100644 --- a/components/src/org/riotfamily/components/config/ContentFormRepository.java +++ b/components/src/org/riotfamily/comp...
true
true
public FormFactory createFormFactory(Class beanClass, FormInitializer initializer, Validator validator) { EditorBinder binder = new ContentContainerEditorBinder(); return new DefaultFormFactory(binder, initializer, validator); }
public FormFactory createFormFactory(Class beanClass, FormInitializer initializer, Validator validator) { if (beanClass == null) { EditorBinder binder = new ContentContainerEditorBinder(); return new DefaultFormFactory(binder, initializer, validator); } return super.createFormFactory(beanClass, init...
diff --git a/components/bio-formats/src/loci/formats/in/FitsReader.java b/components/bio-formats/src/loci/formats/in/FitsReader.java index 692cb913a..b34a4d650 100644 --- a/components/bio-formats/src/loci/formats/in/FitsReader.java +++ b/components/bio-formats/src/loci/formats/in/FitsReader.java @@ -1,164 +1,168 @@ //...
true
true
protected void initFile(String id) throws FormatException, IOException { debug("FitsReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessInputStream(id); count = 1; String line = in.readString(80); if (!line.startsWith("SIMPLE")) { throw new FormatException("Unsupport...
protected void initFile(String id) throws FormatException, IOException { debug("FitsReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessInputStream(id); count = 1; String line = in.readString(80); if (!line.startsWith("SIMPLE")) { throw new FormatException("Unsupport...
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index 57f5eebd..728dc1ff 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandle...
true
true
public void handle(final PacketFCEncryptionResponse encryptResponse) throws Exception { Preconditions.checkState( thisState == State.ENCRYPT, "Not expecting ENCRYPT" ); sharedKey = EncryptionUtil.getSecret( encryptResponse, request ); Cipher decrypt = EncryptionUtil.getCipher( Cipher.DE...
public void handle(final PacketFCEncryptionResponse encryptResponse) throws Exception { Preconditions.checkState( thisState == State.ENCRYPT, "Not expecting ENCRYPT" ); sharedKey = EncryptionUtil.getSecret( encryptResponse, request ); Cipher decrypt = EncryptionUtil.getCipher( Cipher.DE...
diff --git a/src/com/github/pickncrop/MainActivity.java b/src/com/github/pickncrop/MainActivity.java index 65d288b..ee0e1f6 100644 --- a/src/com/github/pickncrop/MainActivity.java +++ b/src/com/github/pickncrop/MainActivity.java @@ -1,202 +1,202 @@ /* * Copyright 2012 Dmytro Titov * * Licensed under the Apache L...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); size = width < height ? width : height; size -= 50; ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); size = width < height ? width : height; size -= 50; ...
diff --git a/src/main/java/org/jbei/ice/client/entry/display/view/AttachmentListMenu.java b/src/main/java/org/jbei/ice/client/entry/display/view/AttachmentListMenu.java index 083c4c418..27dd03d63 100755 --- a/src/main/java/org/jbei/ice/client/entry/display/view/AttachmentListMenu.java +++ b/src/main/java/org/jbei/ice/c...
false
true
protected void createAddToAttachment() { formPanel.setWidth("180px"); final FormPanel panel = new FormPanel(); panel.setWidth("180px"); panel.setAction("/upload?type=attachment&sid=" + ClientController.sessionId); panel.setEncoding(FormPanel.ENCODING_MULTIPART); pane...
protected void createAddToAttachment() { formPanel.setWidth("180px"); final FormPanel panel = new FormPanel(); panel.setWidth("180px"); panel.setEncoding(FormPanel.ENCODING_MULTIPART); panel.setMethod(FormPanel.METHOD_POST); final FileUpload fileUpload = new FileUpl...
diff --git a/javafx.palette/src/org/netbeans/modules/javafx/palette/items/effects/DropShadow.java b/javafx.palette/src/org/netbeans/modules/javafx/palette/items/effects/DropShadow.java index 7b989d67..6617786d 100644 --- a/javafx.palette/src/org/netbeans/modules/javafx/palette/items/effects/DropShadow.java +++ b/javafx...
true
true
public boolean handleTransfer(JTextComponent targetComponent) { String code = NbBundle.getMessage( DropShadow.class, "TEMPLATE_DropShadow" ); CodeTemplateManager ctm = CodeTemplateManager.get( targetComponent.getDocument()); CodeTemplate template = ctm.createTemporary( code ); templa...
public boolean handleTransfer(JTextComponent targetComponent) { String code = NbBundle.getMessage( DropShadow.class, "TEMPLATE_DropShadow" ); CodeTemplateManager ctm = CodeTemplateManager.get( targetComponent.getDocument()); CodeTemplate template = ctm.createTemporary( code ); templa...
diff --git a/libraries/javalib/java/util/Timer.java b/libraries/javalib/java/util/Timer.java index edfcc3087..2395431a5 100644 --- a/libraries/javalib/java/util/Timer.java +++ b/libraries/javalib/java/util/Timer.java @@ -1,249 +1,251 @@ /* * Java core library component. * * Copyright (c) 1999 * Archie L. Cob...
false
true
public synchronized void run() { while (true) { long sleep; // Calculate how long to sleep try { sleep = ((TimerTask)tasks.first()).time - System.currentTimeMillis(); if (sleep <= 0) { sleep = -1; // don't sleep } } catch (NoSuchElementException e) { if (canceled) {...
public synchronized void run() { while (true) { long sleep; // Calculate how long to sleep try { sleep = ((TimerTask)tasks.first()).time - System.currentTimeMillis(); if (sleep <= 0) { sleep = -1; // don't sleep } } catch (NoSuchElementException e) { if (canceled) {...
diff --git a/Datenbanken/WahlWebsite/src/database/TableDef.java b/Datenbanken/WahlWebsite/src/database/TableDef.java index 613efc5..a80e124 100644 --- a/Datenbanken/WahlWebsite/src/database/TableDef.java +++ b/Datenbanken/WahlWebsite/src/database/TableDef.java @@ -1,138 +1,138 @@ package database; public class Tabl...
true
true
private String[] getStatements() { final String autoIncrementID = "BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 0, INCREMENT BY 1, NO CACHE )"; return new String[] { // Bundesland "CREATE TABLE " + schemaName + ".BUNDESLAND ( ID BIGINT NOT NULL , " + "NAME VARCHAR (255) NOT NULL ...
private String[] getStatements() { final String autoIncrementID = "BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 0, INCREMENT BY 1, NO CACHE )"; return new String[] { // Bundesland "CREATE TABLE " + schemaName + ".BUNDESLAND ( ID BIGINT NOT NULL , " + "NAME VARCHAR (255) NOT NULL ...
diff --git a/src/main/java/pl/psnc/dl/wf4ever/portal/pages/ro/RoSummaryPanel.java b/src/main/java/pl/psnc/dl/wf4ever/portal/pages/ro/RoSummaryPanel.java index 8027d06..f48afa2 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/portal/pages/ro/RoSummaryPanel.java +++ b/src/main/java/pl/psnc/dl/wf4ever/portal/pages/ro/RoSumma...
true
true
public RoSummaryPanel(String id, IModel<ResearchObject> model) { super(id, model); setOutputMarkupId(true); nestedRO = new WebMarkupContainer("nested-ro"); nestedRO.setOutputMarkupPlaceholderTag(true); nestedRO.add(new ExternalLink("aggregating-ro", new PropertyModel<String>...
public RoSummaryPanel(String id, IModel<ResearchObject> model) { super(id, model); setOutputMarkupId(true); nestedRO = new WebMarkupContainer("nested-ro"); nestedRO.setOutputMarkupPlaceholderTag(true); nestedRO.add(new ExternalLink("aggregating-ro", new PropertyModel<String>...
diff --git a/jing/chem/Therfit.java b/jing/chem/Therfit.java index 0baa94fb..b2f6f0e5 100644 --- a/jing/chem/Therfit.java +++ b/jing/chem/Therfit.java @@ -1,269 +1,269 @@ //!******************************************************************************** //! //! RMG: Reaction Mechanism Generator ...
true
true
private static boolean callTherfit(Species species, String p_directory, String p_mode) { if (p_directory == null || p_mode == null) throw new NullPointerException(); String workingDirectory = System.getProperty("RMG.workingDirectory"); // write therfit input file String result...
private static boolean callTherfit(Species species, String p_directory, String p_mode) { if (p_directory == null || p_mode == null) throw new NullPointerException(); String workingDirectory = System.getProperty("RMG.workingDirectory"); // write therfit input file String result...
diff --git a/src/net/sf/jsignpdf/SignerLogic.java b/src/net/sf/jsignpdf/SignerLogic.java index 9dc10eb..0dbfcf5 100644 --- a/src/net/sf/jsignpdf/SignerLogic.java +++ b/src/net/sf/jsignpdf/SignerLogic.java @@ -1,178 +1,181 @@ package net.sf.jsignpdf; import java.io.FileInputStream; import java.io.FileOutputStream; ...
true
true
public void run() { if (options==null) { throw new NullPointerException("Options has to be filled."); } boolean tmpResult = false; try { options.log("console.getKeystoreType", options.getKsType()); final KeyStore ks = KeyStore.getInstance(options.getKsType()); InputStream ksInputStream = null; ...
public void run() { if (options==null) { throw new NullPointerException("Options has to be filled."); } boolean tmpResult = false; try { options.log("console.getKeystoreType", options.getKsType()); final KeyStore ks = KeyStore.getInstance(options.getKsType()); InputStream ksInputStream = null; ...
diff --git a/src/com/aluen/tracerecorder/MapActivity.java b/src/com/aluen/tracerecorder/MapActivity.java index 9f2f127..fd18197 100644 --- a/src/com/aluen/tracerecorder/MapActivity.java +++ b/src/com/aluen/tracerecorder/MapActivity.java @@ -1,206 +1,202 @@ package com.aluen.tracerecorder; import java.util.ArrayList...
true
true
private void setUpMap() { dirName = mPrefs.getString("PATH", "n/a"); // add MarkerClickListener mMap.setOnMarkerClickListener(this); Marker marker; // Here will be changed in the future, sharedPreference will be ok. PolylineOptions poLinePath = new PolylineOptions().width(5) .color(Color.BLUE).geodesi...
private void setUpMap() { dirName = mPrefs.getString("PATH", "n/a"); // add MarkerClickListener mMap.setOnMarkerClickListener(this); Marker marker; // Here will be changed in the future, sharedPreference will be ok. PolylineOptions poLinePath = new PolylineOptions().width(5) .color(Color.BLUE).geodesi...
diff --git a/src/org/hackystat/utilities/logger/RestletLoggerUtil.java b/src/org/hackystat/utilities/logger/RestletLoggerUtil.java index 1a61a67..e73e654 100644 --- a/src/org/hackystat/utilities/logger/RestletLoggerUtil.java +++ b/src/org/hackystat/utilities/logger/RestletLoggerUtil.java @@ -1,73 +1,75 @@ package org....
false
true
public static void useFileHandler(String serviceDir) { LogManager logManager = LogManager.getLogManager(); //System.out.println("In useFileHandler"); for (Enumeration<String> en = logManager.getLoggerNames(); en.hasMoreElements() ;) { String logName = en.nextElement(); //System.out.println("lo...
public static void useFileHandler(String serviceDir) { LogManager logManager = LogManager.getLogManager(); //System.out.println("In useFileHandler"); for (Enumeration<String> en = logManager.getLoggerNames(); en.hasMoreElements() ;) { String logName = en.nextElement(); //System.out.println("lo...
diff --git a/standalone/src/main/java/org/jboss/as/console/client/domain/groups/deployment/DeploymentStep1.java b/standalone/src/main/java/org/jboss/as/console/client/domain/groups/deployment/DeploymentStep1.java index 248b1804..636f60fb 100644 --- a/standalone/src/main/java/org/jboss/as/console/client/domain/groups/de...
true
true
public Widget asWidget() { VerticalPanel layout = new VerticalPanel(); layout.getElement().setAttribute("style", "width:95%; margin:15px;"); // Create a FormPanel and point it at a service. final FormPanel form = new FormPanel(); String url = Console.MODULES.getBootstrap...
public Widget asWidget() { VerticalPanel layout = new VerticalPanel(); layout.getElement().setAttribute("style", "width:95%; margin:15px;"); // Create a FormPanel and point it at a service. final FormPanel form = new FormPanel(); String url = Console.MODULES.getBootstrap...
diff --git a/java/org/directwebremoting/convert/StringConverter.java b/java/org/directwebremoting/convert/StringConverter.java index a48f3516..fb38f452 100644 --- a/java/org/directwebremoting/convert/StringConverter.java +++ b/java/org/directwebremoting/convert/StringConverter.java @@ -1,58 +1,58 @@ /* * Copyright 2...
true
true
public Object convertInbound(Class<?> paramType, InboundVariable data, InboundContext inctx) throws MarshallException { if (data.isFile()) { // Data from file uploads is not URL encoded return data.getValue(); } else { return LocalUtil....
public Object convertInbound(Class<?> paramType, InboundVariable data, InboundContext inctx) throws MarshallException { if (data.getFormField().isFile()) { // Data from file uploads is not URL encoded return data.getValue(); } else { re...
diff --git a/xwiki-rendering-test/src/main/java/org/xwiki/rendering/test/cts/CompatibilityTestSuite.java b/xwiki-rendering-test/src/main/java/org/xwiki/rendering/test/cts/CompatibilityTestSuite.java index 4c30d8624..660320c5d 100644 --- a/xwiki-rendering-test/src/main/java/org/xwiki/rendering/test/cts/CompatibilityTest...
true
true
public CompatibilityTestSuite(Class<?> klass) throws Exception { super(RenderingTest.class, Collections.<Runner>emptyList()); try { this.testInstance = klass.newInstance(); } catch (Exception e) { throw new RuntimeException(String.format("Failed to construct inst...
public CompatibilityTestSuite(Class<?> klass) throws Exception { super(RenderingTest.class, Collections.<Runner>emptyList()); try { this.testInstance = klass.newInstance(); } catch (Exception e) { throw new RuntimeException(String.format("Failed to construct inst...
diff --git a/jython/src/org/python/util/jython.java b/jython/src/org/python/util/jython.java index ee402dcd..ee30bbb6 100644 --- a/jython/src/org/python/util/jython.java +++ b/jython/src/org/python/util/jython.java @@ -1,543 +1,541 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.u...
true
true
public static void run(String[] args) { // Parse the command line options CommandLineOptions opts = new CommandLineOptions(); if (!opts.parse(args)) { if (opts.version) { System.err.println("Jython " + Version.PY_VERSION); System.exit(0); ...
public static void run(String[] args) { // Parse the command line options CommandLineOptions opts = new CommandLineOptions(); if (!opts.parse(args)) { if (opts.version) { System.err.println("Jython " + Version.PY_VERSION); System.exit(0); ...
diff --git a/WithinReach/src/org/leifolson/withinreach/WithinReachActivity.java b/WithinReach/src/org/leifolson/withinreach/WithinReachActivity.java index 81608d9..cd30c64 100644 --- a/WithinReach/src/org/leifolson/withinreach/WithinReachActivity.java +++ b/WithinReach/src/org/leifolson/withinreach/WithinReachActivity....
true
true
public void handleDataFile() { FileInputStream fileInputStream = null; try { fileInputStream = openFileInput("jsonResult.txt"); } catch (FileNotFoundException e) { e.printStackTrace(); } InputStreamReader inputStreamReader = new InputStreamReader ( fileInputStream ) ; Buffere...
public void handleDataFile() { FileInputStream fileInputStream = null; try { fileInputStream = openFileInput("jsonResult.txt"); } catch (FileNotFoundException e) { e.printStackTrace(); } InputStreamReader inputStreamReader = new InputStreamReader ( fileInputStream ) ; Buffere...
diff --git a/AltusDemo/src/us/ba3/altusdemo/MBTilesMapTest.java b/AltusDemo/src/us/ba3/altusdemo/MBTilesMapTest.java index 5b134f8..c31759b 100644 --- a/AltusDemo/src/us/ba3/altusdemo/MBTilesMapTest.java +++ b/AltusDemo/src/us/ba3/altusdemo/MBTilesMapTest.java @@ -1,24 +1,24 @@ package us.ba3.altusdemo; import us.ba3...
true
true
protected void start() { //Add map mapView.addMBTilesMap(name, mapPath, "grayGrid", ImageDataType.kImageDataTypePNG, false, zOrder); mapView.setMapAlpha(name, alpha); // zoom to bounds if (bounds != null) { mapView.setLocationThatFitsCoordinates(bounds.min, bounds.max, 0, 0, 0.5);...
protected void start() { //Add map mapView.addMBTilesMap(name, mapPath, "grayGrid", ImageDataType.kImageDataTypePNG, false, zOrder, MapLoadingStrategy.kHighestDetailOnly); mapView.setMapAlpha(name, alpha); // zoom to bounds if (bounds != null) { mapView.setLocationThatFitsCoordina...
diff --git a/src/org/blitzortung/android/data/Provider.java b/src/org/blitzortung/android/data/Provider.java index 0380d9b..2a0d4a4 100644 --- a/src/org/blitzortung/android/data/Provider.java +++ b/src/org/blitzortung/android/data/Provider.java @@ -1,135 +1,135 @@ package org.blitzortung.android.data; import java.u...
true
true
protected DataResult doInBackground(Integer... params) { DataResult result = new DataResult(); if (lock.tryLock()) { try { dataProvider.setUp(); List<AbstractStroke> strokes = new ArrayList<AbstractStroke>(); if (params[1] == 0) { strokes = dataProvider.getStrokes(params[0]); } el...
protected DataResult doInBackground(Integer... params) { DataResult result = new DataResult(); if (lock.tryLock()) { try { dataProvider.setUp(); List<AbstractStroke> strokes = new ArrayList<AbstractStroke>(); if (params[1] == 0) { strokes = dataProvider.getStrokes(params[0]); } el...
diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java index 9856eedc2..4f43769fa 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java +++ b/scm-...
true
true
public ChangesetPagingResult getChangesets(LogCommandRequest request) { if (logger.isDebugEnabled()) { logger.debug("fetch changesets for request: {}", request); } ChangesetPagingResult changesets = null; org.eclipse.jgit.lib.Repository gr = null; GitChangesetConverter converter = nul...
public ChangesetPagingResult getChangesets(LogCommandRequest request) { if (logger.isDebugEnabled()) { logger.debug("fetch changesets for request: {}", request); } ChangesetPagingResult changesets = null; org.eclipse.jgit.lib.Repository gr = null; GitChangesetConverter converter = nul...
diff --git a/dbflute/src/main/java/org/seasar/dbflute/helper/jdbc/sqlfile/DfSqlFileRunnerExecute.java b/dbflute/src/main/java/org/seasar/dbflute/helper/jdbc/sqlfile/DfSqlFileRunnerExecute.java index 758da2d66..53bd597f2 100644 --- a/dbflute/src/main/java/org/seasar/dbflute/helper/jdbc/sqlfile/DfSqlFileRunnerExecute.jav...
true
true
protected void execSQL(Statement statement, String sql) { try { if (isValidAssertSql()) { if (isAssertCountZero(sql)) { assertCountZero(statement, sql); } else if (isAssertListZero(sql)) { assertListZero(statement, sql); ...
protected void execSQL(Statement statement, String sql) { try { if (isValidAssertSql()) { if (isAssertCountZero(sql)) { assertCountZero(statement, sql); } else if (isAssertListZero(sql)) { assertListZero(statement, sql); ...
diff --git a/amibe/src/org/jcae/mesh/oemm/AVLTreeDup.java b/amibe/src/org/jcae/mesh/oemm/AVLTreeDup.java index 82f4c1a8..562db73b 100644 --- a/amibe/src/org/jcae/mesh/oemm/AVLTreeDup.java +++ b/amibe/src/org/jcae/mesh/oemm/AVLTreeDup.java @@ -1,426 +1,426 @@ /* jCAE stand for Java Computer Aided Engineering. Features ...
true
true
public final int insert(int [] ijk, int value) { AVLTreeDupNode node = new AVLTreeDupNode(ijk, value); if (logger.isDebugEnabled()) logger.debug("insertion of key: "+keyString(node.key)); if (root == null) { root = node; dir = new int[100]; return value; } AVLTreeDupNode current = root; AVLT...
public final int insert(int [] ijk, int value) { AVLTreeDupNode node = new AVLTreeDupNode(ijk, value); if (logger.isDebugEnabled()) logger.debug("insertion of key: "+keyString(node.key)); if (root == null) { root = node; dir = new int[100]; return value; } AVLTreeDupNode current = root; AVLT...
diff --git a/ui_swing/src/com/dmdirc/addons/ui_swing/components/addonbrowser/DataLoaderWorker.java b/ui_swing/src/com/dmdirc/addons/ui_swing/components/addonbrowser/DataLoaderWorker.java index 747493b2..14f8f592 100644 --- a/ui_swing/src/com/dmdirc/addons/ui_swing/components/addonbrowser/DataLoaderWorker.java +++ b/ui_...
true
true
protected Collection<AddonInfo> doInBackground() { final JPanel loadingPanel = new JPanel( new MigLayout("fill, alignx 50%, aligny 50%")); scrollPane.setViewportView(loadingPanel); if (download) { final TextLabel label = new TextLabel( "Downloa...
protected Collection<AddonInfo> doInBackground() { final JPanel loadingPanel = new JPanel( new MigLayout("fill, alignx 50%, aligny 50%")); scrollPane.setViewportView(loadingPanel); if (download) { final TextLabel label = new TextLabel( "Downloa...
diff --git a/src/main/java/org/mm/ApplicationModule.java b/src/main/java/org/mm/ApplicationModule.java index e3ed9b8..40d26f7 100644 --- a/src/main/java/org/mm/ApplicationModule.java +++ b/src/main/java/org/mm/ApplicationModule.java @@ -1,26 +1,24 @@ package org.mm; import java.util.ArrayList; import java.util.Lis...
true
true
protected void configure() { bind(Action.class).annotatedWith(Names.named("loginAction")).to(LoginAction.class).in(Scopes.SINGLETON); bind(new TypeLiteral<List<ApplicationTab>>() { }).to(new TypeLiteral<ArrayList<ApplicationTab>>() { }).in(Scopes.SINGLETON); }
protected void configure() { bind(Action.class).annotatedWith(Names.named("loginAction")).to(LoginAction.class).in(Scopes.SINGLETON); bind(new TypeLiteral<List<ApplicationTab>>() {}).to(new TypeLiteral<ArrayList<ApplicationTab>>(){}).in(Scopes.SINGLETON); }
diff --git a/infrastructure/tools/core/link-crawler/src/edu/uci/ics/sourcerer/tools/link/downloader/Subversion.java b/infrastructure/tools/core/link-crawler/src/edu/uci/ics/sourcerer/tools/link/downloader/Subversion.java index 217c72e4..bd26cc6e 100755 --- a/infrastructure/tools/core/link-crawler/src/edu/uci/ics/source...
false
true
public static void filterSubversionLinksForJava(DualFileArgument in, DualFileArgument out) { logger.info("Filtering " + in + " for Java projects..."); Set<String> resume = Logging.initializeResumeLogger(); DAVRepositoryFactory.setup(); SimpleSerializer writer = null; EntryWriter<Projec...
public static void filterSubversionLinksForJava(DualFileArgument in, DualFileArgument out) { logger.info("Filtering " + in + " for Java projects..."); Set<String> resume = Logging.initializeResumeLogger(); DAVRepositoryFactory.setup(); SimpleSerializer writer = null; EntryWriter<Projec...
diff --git a/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/NamespaceMappingTest.java b/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/NamespaceMappingTest.java index 232297c705..54b520db98 100644 --- a/launchpad/integration-tests...
true
true
protected void tearDown() throws Exception { if (testUserId != null) { //remove the test user if it exists. String postUrl = HTTP_BASE_URL + "/system/userManager/user/" + testUserId + ".delete.html"; List<NameValuePair> postParams = new ArrayList<NameValuePair>(); ...
protected void tearDown() throws Exception { if (testUserId != null) { //remove the test user if it exists. String postUrl = HTTP_BASE_URL + "/system/userManager/user/" + testUserId + ".delete.html"; List<NameValuePair> postParams = new ArrayList<NameValuePair>(); ...
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java index ae5583d70..eb8fc53b4 100644 --- a/eclipse/plugins/com.android.ide.ecl...
true
true
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { try { mDerivedProgressMonitor.reset(); // First thing we do is go through the resource delta to not // lose it if we have to abort the build for any reason. ...
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { try { mDerivedProgressMonitor.reset(); // First thing we do is go through the resource delta to not // lose it if we have to abort the build for any reason. ...
diff --git a/src/org/scoutant/tf/overlay/TrafficOverlay.java b/src/org/scoutant/tf/overlay/TrafficOverlay.java index 5f7dcef..c941463 100644 --- a/src/org/scoutant/tf/overlay/TrafficOverlay.java +++ b/src/org/scoutant/tf/overlay/TrafficOverlay.java @@ -1,113 +1,109 @@ package org.scoutant.tf.overlay; import java.ut...
false
true
private void drawPolyline(Canvas canvas, MapView map, Polyline polyline ) { if (polyline==null || polyline.size()==0) return; Projection pj = map.getProjection(); Rect viewRect = MapUtils.toRectx2(map); Point last = null; Point lastNormal=null; int q=0; int color=Color.GRAY; for (LatLng f : polyline.po...
private void drawPolyline(Canvas canvas, MapView map, Polyline polyline ) { if (polyline==null || polyline.size()==0) return; Projection pj = map.getProjection(); Rect viewRect = MapUtils.toRectx2(map); Point last = null; Point lastOnAxis=null; int color=Color.GRAY; for (LatLng f : polyline.points()) { ...
diff --git a/application/src/nl/sogeti/android/gpstracker/adapter/BreadcrumbsAdapter.java b/application/src/nl/sogeti/android/gpstracker/adapter/BreadcrumbsAdapter.java index 86f3a64b..46340ee9 100644 --- a/application/src/nl/sogeti/android/gpstracker/adapter/BreadcrumbsAdapter.java +++ b/application/src/nl/sogeti/andr...
false
true
public View getView(int position, View convertView, ViewGroup parent) { View view = null; if (mAuthorized) { int type = getItemViewType(position); if (convertView == null) { switch (type) { case Constants.BREADCRUMBS_ACTIVITY_ITEM...
public View getView(int position, View convertView, ViewGroup parent) { View view = null; if (mAuthorized) { int type = getItemViewType(position); if (convertView == null) { switch (type) { case Constants.BREADCRUMBS_ACTIVITY_ITEM...
diff --git a/framework/src/play/utils/Utils.java b/framework/src/play/utils/Utils.java index 99dfdc24..04d62cc6 100644 --- a/framework/src/play/utils/Utils.java +++ b/framework/src/play/utils/Utils.java @@ -1,136 +1,136 @@ package play.utils; import java.lang.annotation.Annotation; import java.text.ParseException;...
false
true
public static AlternativeDateFormat getDefaultFormatter() { if (dateformat.get() == null) { dateformat.set(new AlternativeDateFormat(Locale.US, "yyyy-MM-dd'T'hh:mm:ss'Z'", // ISO8601 + timezone "yyyy-MM-dd'T'hh:mm:ss", // ISO8601 ...
public static AlternativeDateFormat getDefaultFormatter() { if (dateformat.get() == null) { dateformat.set(new AlternativeDateFormat(Locale.US, "yyyy-MM-dd'T'HH:mm:ss'Z'", // ISO8601 + timezone "yyyy-MM-dd'T'HH:mm:ss", // ISO8601 ...
diff --git a/milton-mail-server/src/main/java/io/milton/mail/MailServerBuilder.java b/milton-mail-server/src/main/java/io/milton/mail/MailServerBuilder.java index 278d092..0ac3521 100644 --- a/milton-mail-server/src/main/java/io/milton/mail/MailServerBuilder.java +++ b/milton-mail-server/src/main/java/io/milton/mail/Ma...
true
true
public MailServer build() { if (mailSender == null) { if (enableSender) { if (listenerManager != null) { listenerManager = new ListenerManager(); } if (aspirinConfiguration == null) { aspirinConfiguration = n...
public MailServer build() { if (mailSender == null) { if (enableSender) { if (listenerManager == null) { listenerManager = new ListenerManager(); } if (aspirinConfiguration == null) { aspirinConfiguration = n...
diff --git a/net/minecraft/src/BlockColoredGlass.java b/net/minecraft/src/BlockColoredGlass.java index ec5600f..c3c1574 100644 --- a/net/minecraft/src/BlockColoredGlass.java +++ b/net/minecraft/src/BlockColoredGlass.java @@ -1,84 +1,84 @@ /* * To change this template, choose Tools | Templates * and open the templa...
true
true
public int getBlockTextureFromSideAndMetadata(int i, int j){ Integer a = spriteIDs.get(new Integer(j)); if(a == null){ return Block.sand.blockIndexInTexture; }else{ return a.intValue(); } }
public int getBlockTextureFromSideAndMetadata(int i, int j){ Integer a = spriteIDs.get(new Integer(j)); if(a == null){ return Block.glass.blockIndexInTexture; }else{ return a.intValue(); } }
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java b/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java index d176c77db..56597beef 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java @@ -1,386 +1,386 @@...
true
true
public void processCommandPlayer(EntityPlayer sender, String[] args) { if (args.length == 0) throw new WrongUsageException("command.auth.usage"); boolean hasAdmin = PermissionsAPI.checkPermAllowed(new PermQueryPlayer(sender, getCommandPerm() + ".admin")); // one arg? must be help. if (args.length == 1) ...
public void processCommandPlayer(EntityPlayer sender, String[] args) { if (args.length == 0) throw new WrongUsageException("command.auth.usage"); boolean hasAdmin = PermissionsAPI.checkPermAllowed(new PermQueryPlayer(sender, getCommandPerm() + ".admin")); // one arg? must be help. if (args.length == 1) ...
diff --git a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/BeansDeployer.java b/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/BeansDeployer.java index b4ac27cfe..946c8da82 100644 --- a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cdi/BeansDeployer.java +...
true
true
protected <T> boolean defineManagedBean(Class<T> clazz, ProcessAnnotatedTypeImpl<T> processAnnotatedEvent) { //Bean manager BeanManagerImpl manager = webBeansContext.getBeanManagerImpl(); //Create an annotated type AnnotatedType<T> annotatedType = processAnnotatedEvent.getAnnota...
protected <T> boolean defineManagedBean(Class<T> clazz, ProcessAnnotatedTypeImpl<T> processAnnotatedEvent) { //Bean manager BeanManagerImpl manager = webBeansContext.getBeanManagerImpl(); //Create an annotated type AnnotatedType<T> annotatedType = processAnnotatedEvent.getAnnota...
diff --git a/src/SudokuSolverClass.java b/src/SudokuSolverClass.java index 0e5e441..c376afc 100644 --- a/src/SudokuSolverClass.java +++ b/src/SudokuSolverClass.java @@ -1,349 +1,349 @@ import javax.swing.*; import javax.swing.filechooser.FileFilter; import java.awt.event.*; import java.io.File; import java.io.File...
true
true
public SudokuSolverClass() { setContentPane(contentPane); setModal(true); getRootPane().setDefaultButton(selFileBut); buttonOK.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { onOK(); ...
public SudokuSolverClass() { setContentPane(contentPane); setModal(true); getRootPane().setDefaultButton(selFileBut); buttonOK.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { onOK(); ...
diff --git a/src/com/android/phone/sip/SipSettings.java b/src/com/android/phone/sip/SipSettings.java index 247e64ae..c14a4039 100644 --- a/src/com/android/phone/sip/SipSettings.java +++ b/src/com/android/phone/sip/SipSettings.java @@ -1,438 +1,443 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Li...
true
true
private SipRegistrationListener createRegistrationListener() { return new SipRegistrationListener() { public void onRegistrationDone(String profileUri, long expiryTime) { showRegistrationMessage(profileUri, getString( R.string.registration_status_done)); ...
private SipRegistrationListener createRegistrationListener() { return new SipRegistrationListener() { public void onRegistrationDone(String profileUri, long expiryTime) { showRegistrationMessage(profileUri, getString( R.string.registration_status_done)); ...
diff --git a/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java b/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java index dde8b25..5f9e7a7 100755 --- a/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java +++ b/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java @@ -1,1080 +1,1080 @@ /* * C...
true
true
public static int getAttachmentSizeEmail(long messageId, Context context) { if (V){ Log.v(TAG, ":: Message Id in getAttachmentSizeEmail ::"+ messageId); } int attchSize = 0; Uri uri = Uri.parse("content://com.android.email.provider/attachment"); Cursor cr = conte...
public static int getAttachmentSizeEmail(long messageId, Context context) { if (V){ Log.v(TAG, ":: Message Id in getAttachmentSizeEmail ::"+ messageId); } int attchSize = 0; Uri uri = Uri.parse("content://com.android.email.provider/attachment"); Cursor cr = conte...
diff --git a/junithelper/src/org/junithelper/plugin/action/CreateNewTestCaseAction.java b/junithelper/src/org/junithelper/plugin/action/CreateNewTestCaseAction.java index 06908d2..9884cdf 100644 --- a/junithelper/src/org/junithelper/plugin/action/CreateNewTestCaseAction.java +++ b/junithelper/src/org/junithelper/plugin...
true
true
public void run(IAction action) { InputStream javaFileIStream = null; OutputStreamWriter testFileOSWriter = null; FileOutputStream fos = null; boolean refreshFlag = true; String projectName = null; String testCaseDirResource = null; String testCaseResource = null; try { IWorkspaceRoot workspace...
public void run(IAction action) { InputStream javaFileIStream = null; OutputStreamWriter testFileOSWriter = null; FileOutputStream fos = null; boolean refreshFlag = true; String projectName = null; String testCaseDirResource = null; String testCaseResource = null; try { IWorkspaceRoot workspace...
diff --git a/src/com/monyetmabuk/rajawali/tutorials/examples/general/UsingGeometryDataFragment.java b/src/com/monyetmabuk/rajawali/tutorials/examples/general/UsingGeometryDataFragment.java index 3a48665..cf8c94e 100644 --- a/src/com/monyetmabuk/rajawali/tutorials/examples/general/UsingGeometryDataFragment.java +++ b/sr...
true
true
protected void initScene() { getCurrentScene().setBackgroundColor(0xffeeeeee); DirectionalLight light = new DirectionalLight(0, -.6f, -.4f); light.setColor(1, 1, 1); getCurrentCamera().setZ(16); BaseObject3D sphere = new Sphere(1, 16, 8); PhongMaterial spikeMaterial = new PhongMaterial(); spi...
protected void initScene() { getCurrentScene().setBackgroundColor(0xffeeeeee); DirectionalLight light = new DirectionalLight(0, -.6f, -.4f); light.setColor(1, 1, 1); getCurrentCamera().setZ(16); BaseObject3D sphere = new Sphere(1, 16, 8); PhongMaterial spikeMaterial = new PhongMaterial(); spi...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java index a6bd109ce..ffe413c25 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te....
true
true
public void onChannelOpened() { // Peer is reachable if (channel != null && !sharedChannel) { // Remove ourself as channel listener channel.removeChannelListener(this); } // Turn off change notifications temporarily boolean changed = peerNode.setChangeEventsEnabled(false); // Set the peer state pro...
public void onChannelOpened() { // Peer is reachable if (channel != null && !sharedChannel) { // Remove ourself as channel listener channel.removeChannelListener(this); } // Turn off change notifications temporarily boolean changed = peerNode.setChangeEventsEnabled(false); // Set the peer state pro...
diff --git a/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruction_ArrayGet.java b/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruction_ArrayGet.java index 899e05a3..66b4753e 100644 --- a/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruction_ArrayGet.java +++ b/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruc...
true
true
public void instrument(DexCode_InstrumentationState state) { // need to combine the taint of the array object and the index val code = getMethodCode(); val regArrayTaint = (regTo == regArray) ? new DexRegister() : state.getTaintRegister(regArray); if (opcode != Opcode_GetPut.Object) { code.repla...
public void instrument(DexCode_InstrumentationState state) { // need to combine the taint of the array object and the index val code = getMethodCode(); val regArrayTaint = (regTo == regArray) ? new DexRegister() : state.getTaintRegister(regArray); if (opcode != Opcode_GetPut.Object) { code.repla...
diff --git a/src/vm/jvm/runtime/org/perl6/nqp/runtime/NativeCallOps.java b/src/vm/jvm/runtime/org/perl6/nqp/runtime/NativeCallOps.java index dad751262..be2b85e2e 100644 --- a/src/vm/jvm/runtime/org/perl6/nqp/runtime/NativeCallOps.java +++ b/src/vm/jvm/runtime/org/perl6/nqp/runtime/NativeCallOps.java @@ -1,229 +1,234 @@...
true
true
private static SixModelObject toNQPType(ThreadContext tc, ArgType target, SixModelObject type, Object o) { SixModelObject nqpobj = null; if (target != ArgType.VOID) nqpobj = type.st.REPR.allocate(tc, type.st); switch (target) { case VOID: return type; ...
private static SixModelObject toNQPType(ThreadContext tc, ArgType target, SixModelObject type, Object o) { SixModelObject nqpobj = null; if (target != ArgType.VOID) nqpobj = type.st.REPR.allocate(tc, type.st); switch (target) { case VOID: return type; ...
diff --git a/core-task-impl/src/main/java/org/cytoscape/task/internal/creation/AbstractNetworkFromSelectionTask.java b/core-task-impl/src/main/java/org/cytoscape/task/internal/creation/AbstractNetworkFromSelectionTask.java index ce51e2d63..41f424d05 100644 --- a/core-task-impl/src/main/java/org/cytoscape/task/internal/...
false
true
public void run(TaskMonitor tm) { if (parentNetwork == null) throw new NullPointerException("Source network is null."); tm.setProgress(0.0); final Collection<CyNetworkView> views = networkViewManager.getNetworkViews(parentNetwork); CyNetworkView sourceView = null; if(views.size() != 0) sourceView = ...
public void run(TaskMonitor tm) { if (parentNetwork == null) throw new NullPointerException("Source network is null."); tm.setProgress(0.0); final Collection<CyNetworkView> views = networkViewManager.getNetworkViews(parentNetwork); CyNetworkView sourceView = null; if(views.size() != 0) sourceView = ...
diff --git a/src/com/android/nfc/NativeNfcTag.java b/src/com/android/nfc/NativeNfcTag.java index 806dbc7..e6ae900 100755 --- a/src/com/android/nfc/NativeNfcTag.java +++ b/src/com/android/nfc/NativeNfcTag.java @@ -1,197 +1,198 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apach...
true
true
public Bundle[] getTechExtras() { synchronized (this) { if (mTechExtras != null) return mTechExtras; mTechExtras = new Bundle[mTechList.length]; for (int i = 0; i < mTechList.length; i++) { Bundle extras = new Bundle(); switch (mTechList[i]...
public Bundle[] getTechExtras() { synchronized (this) { if (mTechExtras != null) return mTechExtras; mTechExtras = new Bundle[mTechList.length]; for (int i = 0; i < mTechList.length; i++) { Bundle extras = new Bundle(); switch (mTechList[i]...
diff --git a/src/org/cvstoolbox/graph/revisions/RevisionsContainer.java b/src/org/cvstoolbox/graph/revisions/RevisionsContainer.java index 1e1633c..22aa2e5 100644 --- a/src/org/cvstoolbox/graph/revisions/RevisionsContainer.java +++ b/src/org/cvstoolbox/graph/revisions/RevisionsContainer.java @@ -1,237 +1,238 @@ /* *...
false
true
public void convertToRevisionMap(List<VcsFileRevision> revisions) { _revMap.clear(); HashMap<String, List<VcsFileRevision>> revMap = new HashMap<String, List<VcsFileRevision>>(); Set<String> branchRevisions = new LinkedHashSet<String>(revisions.size()); Set<String> tags = new HashSet...
public void convertToRevisionMap(List<VcsFileRevision> revisions) { _revMap.clear(); HashMap<String, List<VcsFileRevision>> revMap = new HashMap<String, List<VcsFileRevision>>(); Set<String> branchRevisions = new LinkedHashSet<String>(revisions.size()); Set<String> tags = new HashSet...
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java index 3f0db7a6..5ef61c42 100644 --- a/src/org/mozilla/javascript/Interpreter.java +++ b/src/org/mozilla/javascript/Interpreter.java @@ -1,4117 +1,4120 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
false
true
private static Object interpretLoop(Context cx, CallFrame frame, Object throwable) { // throwable holds exception object to rethrow or catch // It is also used for continuation restart in which case // it holds ContinuationJump final Objec...
private static Object interpretLoop(Context cx, CallFrame frame, Object throwable) { // throwable holds exception object to rethrow or catch // It is also used for continuation restart in which case // it holds ContinuationJump final Objec...
diff --git a/Alg1.java b/Alg1.java index 8c3e853..2d2affb 100644 --- a/Alg1.java +++ b/Alg1.java @@ -1,180 +1,182 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; //Source of IO reading code: stackOverflow.com public class Alg1 { ...
true
true
public static void printIt(Process exec, String[] arg) throws IOException { BufferedReader stdInput= new BufferedReader(new InputStreamReader(exec.getInputStream())); System.out.println(" Revision \t\t Date \t\t\t Rating \t\t\t\t Case"); System.out.println("|---------|-----------------...
public static void printIt(Process exec, String[] arg) throws IOException { BufferedReader stdInput= new BufferedReader(new InputStreamReader(exec.getInputStream())); System.out.println(" Revision \t\t Date \t\t\t Rating \t\t\t\t Case"); System.out.println("|---------|-----------------...
diff --git a/server/src/main/java/com/metamx/druid/master/rules/LoadRule.java b/server/src/main/java/com/metamx/druid/master/rules/LoadRule.java index ab093f4e07..fea94f882a 100644 --- a/server/src/main/java/com/metamx/druid/master/rules/LoadRule.java +++ b/server/src/main/java/com/metamx/druid/master/rules/LoadRule.ja...
true
true
private MasterStats assign( int expectedReplicants, int actualReplicants, MinMaxPriorityQueue<ServerHolder> serverQueue, DataSegment segment ) { MasterStats stats = new MasterStats(); List<ServerHolder> assignedServers = Lists.newArrayList(); while (actualReplicants < expected...
private MasterStats assign( int expectedReplicants, int actualReplicants, MinMaxPriorityQueue<ServerHolder> serverQueue, DataSegment segment ) { MasterStats stats = new MasterStats(); List<ServerHolder> assignedServers = Lists.newArrayList(); while (actualReplicants < expected...
diff --git a/phresco-maven-plugin/src/main/java/com/photon/phresco/plugins/SonarCodeValidator.java b/phresco-maven-plugin/src/main/java/com/photon/phresco/plugins/SonarCodeValidator.java index 4f5aab93..38fdab2d 100644 --- a/phresco-maven-plugin/src/main/java/com/photon/phresco/plugins/SonarCodeValidator.java +++ b/phr...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { getLog().info("Executing Code Validation"); try { String infoFile = baseDir + File.separator + Constants.SONAR_INFO_FILE; if (isGoalAvailable(infoFile, VALIDATE_CODE) && getPluginName(infoFile, VALIDATE_CODE) != null) { Phresc...
public void execute() throws MojoExecutionException, MojoFailureException { getLog().info("Executing Code Validation"); try { String infoFile = baseDir + File.separator + Constants.VALIDATE_CODE_INFO_FILE; if (isGoalAvailable(infoFile, VALIDATE_CODE) && getPluginName(infoFile, VALIDATE_CODE) != null) { ...
diff --git a/src/main/java/com/ssm/llp/biz/validation/script/ScriptManager.java b/src/main/java/com/ssm/llp/biz/validation/script/ScriptManager.java index e002f8d..1cf0f2b 100644 --- a/src/main/java/com/ssm/llp/biz/validation/script/ScriptManager.java +++ b/src/main/java/com/ssm/llp/biz/validation/script/ScriptManager....
true
true
private void registerParameters(Map<String, Object> params) { try { manager.declareBean("nameDao", nameDao, SsmNameDaoImpl.class); manager.declareBean("filterDao", filterDao, SsmFilterDaoImpl.class); manager.declareBean("name", params.get("name"), String.class); ...
private void registerParameters(Map<String, Object> params) { try { manager.declareBean("nameDao", nameDao, SsmNameDaoImpl.class); manager.declareBean("filterDao", filterDao, SsmFilterDaoImpl.class); manager.declareBean("name", params.get("name"), String.class); ...
diff --git a/huisken/projection/TwoCamera_MaxProjection.java b/huisken/projection/TwoCamera_MaxProjection.java index 514540d..bcff5a7 100644 --- a/huisken/projection/TwoCamera_MaxProjection.java +++ b/huisken/projection/TwoCamera_MaxProjection.java @@ -1,303 +1,303 @@ package huisken.projection; import fiji.util.gu...
false
true
public void run(String arg) { File defaultdir = new File("D:\\SPIMdata"); File[] tmp = defaultdir.listFiles(); if(tmp != null && tmp.length != 0) { Arrays.sort(tmp); defaultdir = tmp[tmp.length - 1]; } tmp = defaultdir.listFiles(); if(tmp != null && tmp.length != 0) { Arrays.sort(tmp); defaultd...
public void run(String arg) { File defaultdir = new File("D:\\SPIMdata"); File[] tmp = defaultdir.listFiles(); if(tmp != null && tmp.length != 0) { Arrays.sort(tmp); defaultdir = tmp[tmp.length - 1]; } tmp = defaultdir.listFiles(); if(tmp != null && tmp.length != 0) { Arrays.sort(tmp); defaultd...
diff --git a/filters/xliff/src/main/java/net/sf/okapi/filters/xliff/XLIFFFilter.java b/filters/xliff/src/main/java/net/sf/okapi/filters/xliff/XLIFFFilter.java index a9b933603..07b6ee15b 100644 --- a/filters/xliff/src/main/java/net/sf/okapi/filters/xliff/XLIFFFilter.java +++ b/filters/xliff/src/main/java/net/sf/okapi/fi...
false
true
private TextContainer processContent (String tagName, boolean store) { try { content = new TextContainer(); int id = 0; Stack<Integer> idStack = new Stack<Integer>(); idStack.push(id); int eventType; String name; String tmp; Code code; TextFragment segment = null; int segIdStack = -1...
private TextContainer processContent (String tagName, boolean store) { try { content = new TextContainer(); int id = 0; Stack<Integer> idStack = new Stack<Integer>(); idStack.push(id); int eventType; String name; String tmp; Code code; TextFragment segment = null; int segIdStack = -1...
diff --git a/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java b/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java index 26f544f7..1eb09181 100644 --- a/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java +++ b/source/org/jivesoftware/smackx/provider/XHTMLExtensionPro...
false
true
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { XHTMLExtension xhtmlExtension = new XHTMLExtension(); boolean done = false; StringBuffer buffer = new StringBuffer(); int startDepth = parser.getDepth(); int depth = parser.getDepth(); ...
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { XHTMLExtension xhtmlExtension = new XHTMLExtension(); boolean done = false; StringBuffer buffer = new StringBuffer(); int startDepth = parser.getDepth(); int depth = parser.getDepth(); ...
diff --git a/luntbuild/src/com/luntsys/luntbuild/BuildGenerator.java b/luntbuild/src/com/luntsys/luntbuild/BuildGenerator.java index adacc9e..0defbd9 100644 --- a/luntbuild/src/com/luntsys/luntbuild/BuildGenerator.java +++ b/luntbuild/src/com/luntsys/luntbuild/BuildGenerator.java @@ -1,865 +1,868 @@ /* * Copyright l...
false
true
public void execute(JobExecutionContext context) throws JobExecutionException { SecurityHelper.runAsSiteAdmin(); if (context.getJobDetail().getName().equals(QuartzService.DUMMY_JOB_NAME) || context.getTrigger().getName().equals(QuartzService.DUMMY_TRIGGER_NAME)) return; /...
public void execute(JobExecutionContext context) throws JobExecutionException { SecurityHelper.runAsSiteAdmin(); if (context.getJobDetail().getName().equals(QuartzService.DUMMY_JOB_NAME) || context.getTrigger().getName().equals(QuartzService.DUMMY_TRIGGER_NAME)) return; /...
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 d19eac32d..4f7da0967 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletReq...
false
true
public void send(Hop hop) throws IOException { final Request request = (Request) super.message; final String requestMethod = getMethod(); final MobicentsSipSession session = getSipSession(); final String sessionTransport = session.getTransport(); final SipNetworkInterfaceManager sipNetworkInterfaceManager = ...
public void send(Hop hop) throws IOException { final Request request = (Request) super.message; final String requestMethod = getMethod(); final MobicentsSipSession session = getSipSession(); final String sessionTransport = session.getTransport(); final SipNetworkInterfaceManager sipNetworkInterfaceManager = ...
diff --git a/hazelcast-client/src/test/java/com/hazelcast/client/txn/ClientTxnTest.java b/hazelcast-client/src/test/java/com/hazelcast/client/txn/ClientTxnTest.java index 16e4a678bb..d550014423 100644 --- a/hazelcast-client/src/test/java/com/hazelcast/client/txn/ClientTxnTest.java +++ b/hazelcast-client/src/test/java/c...
true
true
public void testTxnRollbackOnServerCrash() throws Exception { final String queueName = "testTxnRollbackOnServerCrash"; final TransactionContext context = hz.newTransactionContext(); CountDownLatch latch = new CountDownLatch(1); context.beginTransaction(); final Transactiona...
public void testTxnRollbackOnServerCrash() throws Exception { final String queueName = "testTxnRollbackOnServerCrash"; final TransactionContext context = hz.newTransactionContext(); CountDownLatch latch = new CountDownLatch(1); context.beginTransaction(); final Transactiona...
diff --git a/src/Tester/Test.java b/src/Tester/Test.java index 20a6dbd..503d25b 100644 --- a/src/Tester/Test.java +++ b/src/Tester/Test.java @@ -1,307 +1,307 @@ package Tester; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; import java.util....
true
true
public static void main (String args[]){ /* If there is just 1 argument, we print all records * from the heap file in a CSV */ if (args.length == 1){ HeapFile heapFile = new HeapFile(args[0], true, null, null, null); CSVFile csvTarget = new CSVFile("example_result.acsv", heapFile.getContentsFromHeapF...
public static void main (String args[]){ /* If there is just 1 argument, we print all records * from the heap file in a CSV */ if (args.length == 1){ HeapFile heapFile = new HeapFile(args[0], true, null, null, null); CSVFile csvTarget = new CSVFile("example_result.acsv", heapFile.getContentsFromHeapF...
diff --git a/workspace/enwida/src/main/java/de/enwida/web/controller/ChartDataController.java b/workspace/enwida/src/main/java/de/enwida/web/controller/ChartDataController.java index d54eb74b..0695a836 100644 --- a/workspace/enwida/src/main/java/de/enwida/web/controller/ChartDataController.java +++ b/workspace/enwida/s...
true
true
public List<IDataLine> getLinesTest( @RequestParam int chartId, @RequestParam int product, @RequestParam int tso, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Calendar startTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Calendar endTime, @RequestParam DataResoluti...
public List<IDataLine> getLinesTest( @RequestParam int chartId, @RequestParam int product, @RequestParam int tso, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Calendar startTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Calendar endTime, @RequestParam DataResoluti...
diff --git a/plugins/org.eclipse.viatra2.emf.incquery.tooling.gui/src/org/eclipse/viatra2/emf/incquery/queryexplorer/observable/TreeStructureAdvisorImpl.java b/plugins/org.eclipse.viatra2.emf.incquery.tooling.gui/src/org/eclipse/viatra2/emf/incquery/queryexplorer/observable/TreeStructureAdvisorImpl.java index 41a92865....
false
true
public Boolean hasChildren(Object element) { if (element instanceof ViewerRoot) { ViewerRoot root = (ViewerRoot) element; if (root.getRoots().size() > 0) { return true; } else { return false; } } if (element instanceof PatternMatcherRoot) { PatternMatcherRoot root = (PatternMatcherRoot)...
public Boolean hasChildren(Object element) { if (element instanceof ViewerRoot) { ViewerRoot root = (ViewerRoot) element; return root.getRoots().size() > 0; } if (element instanceof PatternMatcherRoot) { /* * Commented out as no listeners are registered * if we return no known children. */ //...
diff --git a/subsonic-main/src/test/java/net/sourceforge/subsonic/controller/StreamControllerTestCase.java b/subsonic-main/src/test/java/net/sourceforge/subsonic/controller/StreamControllerTestCase.java index 29168c59..4edcefe9 100644 --- a/subsonic-main/src/test/java/net/sourceforge/subsonic/controller/StreamControlle...
false
true
public void testGetSuitableVideoSize() { // 4:3 aspect rate doTestGetSuitableVideoSize(720, 540, 200, 320, 240); doTestGetSuitableVideoSize(720, 540, 300, 320, 240); doTestGetSuitableVideoSize(720, 540, 400, 320, 240); doTestGetSuitableVideoSize(720, 540, 500, 320, 240); ...
public void testGetSuitableVideoSize() { // 4:3 aspect rate doTestGetSuitableVideoSize(720, 540, 200, 320, 240); doTestGetSuitableVideoSize(720, 540, 300, 320, 240); doTestGetSuitableVideoSize(720, 540, 400, 320, 240); doTestGetSuitableVideoSize(720, 540, 500, 320, 240); ...
diff --git a/app/web/src/main/java/uk/ac/ebi/fg/annotare2/web/server/login/SignUpServiceImpl.java b/app/web/src/main/java/uk/ac/ebi/fg/annotare2/web/server/login/SignUpServiceImpl.java index c2708dd2..db478ed6 100644 --- a/app/web/src/main/java/uk/ac/ebi/fg/annotare2/web/server/login/SignUpServiceImpl.java +++ b/app/we...
true
true
public ValidationErrors signUp(HttpServletRequest request) throws Exception { SignUpParams params = new SignUpParams(request); ValidationErrors errors = params.validate(); if (errors.isEmpty()) { if (null != manager.getByEmail(params.getEmail())) { errors.append("...
public ValidationErrors signUp(HttpServletRequest request) throws Exception { SignUpParams params = new SignUpParams(request); ValidationErrors errors = params.validate(); if (errors.isEmpty()) { if (null != manager.getByEmail(params.getEmail())) { errors.append("...
diff --git a/src/main/java/org/esupportail/portlet/stockage/portlet/PortletControllerAction.java b/src/main/java/org/esupportail/portlet/stockage/portlet/PortletControllerAction.java index 63d1d55..c6a2ba5 100644 --- a/src/main/java/org/esupportail/portlet/stockage/portlet/PortletControllerAction.java +++ b/src/main/ja...
true
true
public void formProcessWai(FormCommand command, @RequestParam String dir, @RequestParam String sharedSessionId, @RequestParam(required = false) String prepareCopy, @RequestParam(required = false) String prepareCut, @RequestParam(required = false) String past, @RequestParam(required = false) String rename, ...
public void formProcessWai(FormCommand command, @RequestParam String dir, @RequestParam String sharedSessionId, @RequestParam(required = false) String prepareCopy, @RequestParam(required = false) String prepareCut, @RequestParam(required = false) String past, @RequestParam(required = false) String rename, ...
diff --git a/src/dk/dbc/opensearch/components/datadock/DatadockMain.java b/src/dk/dbc/opensearch/components/datadock/DatadockMain.java index 85231db0..d8cb729c 100644 --- a/src/dk/dbc/opensearch/components/datadock/DatadockMain.java +++ b/src/dk/dbc/opensearch/components/datadock/DatadockMain.java @@ -1,411 +1,417 @@ ...
false
true
static public void main(String[] args) throws Throwable { /** \todo: the value of the configuration file is hardcoded */ Log4jConfiguration.configure( "log4j_datadock.xml" ); log.trace( "DatadockMain main called" ); ConsoleAppender startupAppender = new ConsoleAppender(new Simp...
static public void main(String[] args) throws Throwable { /** \todo: the value of the configuration file is hardcoded */ Log4jConfiguration.configure( "log4j_datadock.xml" ); log.trace( "DatadockMain main called" ); ConsoleAppender startupAppender = new ConsoleAppender(new Simp...
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java index 6cb6c37fd..67e14f4d6 100644 --- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest....
true
true
public void htmlJavaScriptMapping_AllJavaScriptClassesArePresent() { final JavaScriptConfiguration jsConfiguration = JavaScriptConfiguration.getInstance(getBrowserVersion()); final Map<Class<? extends HtmlElement>, Class<? extends SimpleScriptable>> map = jsConfiguration.getHtmlJavaScrip...
public void htmlJavaScriptMapping_AllJavaScriptClassesArePresent() { final JavaScriptConfiguration jsConfiguration = JavaScriptConfiguration.getInstance(getBrowserVersion()); final Map<Class<? extends HtmlElement>, Class<? extends SimpleScriptable>> map = jsConfiguration.getHtmlJavaScrip...
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/ShadingDescriptor.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/ShadingDescriptor.java index 602ee285e..51aeb7f46 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/ShadingDescriptor.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/user...
true
true
public String toString() { if ( isEmpty() ) return "[SHD] EMPTY]"; return "[SHD] (cvFore: " + _icoFore.getShortValue( _info ) + "; cvBack: " + _icoBack.getShortValue( _info ) + "; iPat: " + _ipat.getShortValue( _info ) + ")"; }
public String toString() { if ( isEmpty() ) return "[SHD] EMPTY"; return "[SHD] (cvFore: " + _icoFore.getShortValue( _info ) + "; cvBack: " + _icoBack.getShortValue( _info ) + "; iPat: " + _ipat.getShortValue( _info ) + ")"; }
diff --git a/src/main/java/com/jayway/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java b/src/main/java/com/jayway/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java index a24e2b1e..bc87a4fe 100644 --- a/src/main/java/com/jayway/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java +++ b/...
true
true
public void updateManifest(File manifestFile) throws IOException, ParserConfigurationException, SAXException, TransformerException, MojoFailureException { Document doc = readManifest(manifestFile); Element manifestElement = doc.getDocumentElement(); boolean dirty = false; if (StringUtils.isEmpty(parsedVe...
public void updateManifest(File manifestFile) throws IOException, ParserConfigurationException, SAXException, TransformerException, MojoFailureException { Document doc = readManifest(manifestFile); Element manifestElement = doc.getDocumentElement(); boolean dirty = false; if (StringUtils.isEmpty(parsedVe...
diff --git a/notification/src/main/java/com/griddynamics/genesis/notification/template/StringTemplateEngine.java b/notification/src/main/java/com/griddynamics/genesis/notification/template/StringTemplateEngine.java index a99eee77..2aca858a 100755 --- a/notification/src/main/java/com/griddynamics/genesis/notification/te...
false
true
public String renderText(String templateName, Map<String, String> params) { String result; ST template = group.getInstanceOf(templateName); if (template != null) { //Have no idea why for (String attr : template.getAttributes().keySet()) produce compilation error in java compiler 7 with target=1.6 ...
public String renderText(String templateName, Map<String, String> params) { String result; ST template = group.getInstanceOf(templateName); if (template != null) { //Have no idea why for (String attr : template.getAttributes().keySet()) produce compilation error in java compiler 7 with target=1.6 ...
diff --git a/src/main/java/agents/SelfishAgent.java b/src/main/java/agents/SelfishAgent.java index 58bd94c..fb4e0de 100644 --- a/src/main/java/agents/SelfishAgent.java +++ b/src/main/java/agents/SelfishAgent.java @@ -1,101 +1,101 @@ package agents; import java.util.ArrayList; import java.util.UUID; import org.d...
true
true
protected ProposeRuleChange chooseProposal() { // first check to see if we like the current state of affairs ProposeNoRuleChange noChange = new ProposeNoRuleChange(this); scenarioService.RunQuerySimulation(noChange, getSubsimulationLength(noChange)); // If we do, let's add/modify a rule if (isPreferred...
protected ProposeRuleChange chooseProposal() { // first check to see if we like the current state of affairs ProposeNoRuleChange noChange = new ProposeNoRuleChange(this); scenarioService.RunQuerySimulation(noChange, getSubsimulationLength(noChange)); // If we do, let's add/modify a rule if (isPreferred...
diff --git a/src/to/joe/j2mc/admintoolkit/command/GetFlagsCommand.java b/src/to/joe/j2mc/admintoolkit/command/GetFlagsCommand.java index dc75dae..c76e4ba 100644 --- a/src/to/joe/j2mc/admintoolkit/command/GetFlagsCommand.java +++ b/src/to/joe/j2mc/admintoolkit/command/GetFlagsCommand.java @@ -1,41 +1,45 @@ package to.j...
false
true
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { if (args.length != 1) { sender.sendMessage(ChatColor.RED + "/getgroup playername"); return; } try { final PreparedStatement ps = J2MC_Manager.getMy...
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { if (args.length != 1) { sender.sendMessage(ChatColor.RED + "/getgroup playername"); return; } try { final PreparedStatement ps = J2MC_Manager.getMy...
diff --git a/MODSRC/vazkii/tinkerer/client/gui/GuiAspectAnalyzer.java b/MODSRC/vazkii/tinkerer/client/gui/GuiAspectAnalyzer.java index 2ce85d5f..41e4c215 100644 --- a/MODSRC/vazkii/tinkerer/client/gui/GuiAspectAnalyzer.java +++ b/MODSRC/vazkii/tinkerer/client/gui/GuiAspectAnalyzer.java @@ -1,100 +1,100 @@ /** * This...
true
true
protected void drawGuiContainerBackgroundLayer(float f, int mx, int my) { aspectHovered = null; GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); mc.renderEngine.bindTexture(gui); drawTexturedModalRect(x, y, 0, 0, xSize, ySize); ItemStack stack = analyzer.getStackInSlot(0); if(stack != null) { String h = Sc...
protected void drawGuiContainerBackgroundLayer(float f, int mx, int my) { aspectHovered = null; GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); mc.renderEngine.bindTexture(gui); drawTexturedModalRect(x, y, 0, 0, xSize, ySize); ItemStack stack = analyzer.getStackInSlot(0); if(stack != null) { String h = Sc...
diff --git a/src/tiles/propagation/FilterPropagation.java b/src/tiles/propagation/FilterPropagation.java index 3bcb590..042f736 100644 --- a/src/tiles/propagation/FilterPropagation.java +++ b/src/tiles/propagation/FilterPropagation.java @@ -1,29 +1,31 @@ package tiles.propagation; import game.Ray; import gui.Image...
true
true
public Ray process(Ray ray) { setOrigin(ray); if (!ray.getDirection().equalsIgnoreSense(getDirection())) { Color filter = ImageUtils.filter(ray.getColor(), getColor()); ray.setColor(filter); setRay(ray.getDirection(), ray); } return null; }
public Ray process(Ray ray) { setOrigin(ray); if (!ray.getDirection().equalsIgnoreSense(getDirection())) { Color filter = ImageUtils.filter(ray.getColor(), getColor()); ray.setColor(filter); setRay(ray.getDirection(), ray); }else{ ray.stop(); } return null; }
diff --git a/src/ca/mcgill/hs/serv/HSService.java b/src/ca/mcgill/hs/serv/HSService.java index 6aadb97..8b87ded 100644 --- a/src/ca/mcgill/hs/serv/HSService.java +++ b/src/ca/mcgill/hs/serv/HSService.java @@ -1,80 +1,81 @@ package ca.mcgill.hs.serv; import java.util.Timer; import java.util.TimerTask; import and...
true
true
public void onStart(Intent intent, int startId){ super.onStart(intent, startId); timer.scheduleAtFixedRate( new TimerTask(){ public void run(){ counter++; Log.i(getClass().getSimpleName(), "Counter: "+counter); } }, 0, UPDATE_INTERVAL); isRunning = true; //show a quick toast to...
public void onStart(Intent intent, int startId){ if (isRunning)return; super.onStart(intent, startId); timer.scheduleAtFixedRate( new TimerTask(){ public void run(){ counter++; Log.i(getClass().getSimpleName(), "Counter: "+counter); } }, 0, UPDATE_INTERVAL); isRunning = true; ...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/CVSScmUrlImportWizardPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/CVSScmUrlImportWizardPage.java index 769b693ce..3e56087e0 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse...
true
true
public void createControl(Composite parent) { Composite comp = SWTUtils.createHVFillComposite(parent, SWTUtils.MARGINS_NONE, 1); Composite group = SWTUtils.createHFillComposite(comp, SWTUtils.MARGINS_NONE, 1); Button versions = SWTUtils.createRadioButton(group, CVSUIMessages.CVSScmUrlImportWizardPage_3); useH...
public void createControl(Composite parent) { Composite comp = SWTUtils.createHVFillComposite(parent, SWTUtils.MARGINS_NONE, 1); Composite group = SWTUtils.createHFillComposite(comp, SWTUtils.MARGINS_NONE, 1); Button versions = SWTUtils.createRadioButton(group, CVSUIMessages.CVSScmUrlImportWizardPage_3); useH...
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/ViewInHierarchyUtil.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/ViewInHierarchyUtil.java index 4c0f7be2..48cf8b60 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/utils/ViewInHierarchyUtil.java +++ b/softwa...
true
true
private void printLexEvsTreeNode(PrintWriter out, LexEvsTreeNode node, LexEvsTreeNode parent) { if (node == null) return; try { LexEvsTreeNode.ExpandableStatus node_status = node.getExpandableStatus(); String image = "[+]"; int expandable = 1; if (node_status != LexEvsTreeNode.ExpandableStatus.IS_EX...
private void printLexEvsTreeNode(PrintWriter out, LexEvsTreeNode node, LexEvsTreeNode parent) { if (node == null) return; try { LexEvsTreeNode.ExpandableStatus node_status = node.getExpandableStatus(); String image = "[+]"; int expandable = 1; if (node_status != LexEvsTreeNode.ExpandableStatus.IS_EX...
diff --git a/java/src/org/jruby/jubilee/RubyServer.java b/java/src/org/jruby/jubilee/RubyServer.java index e88f7bc..f7db52a 100644 --- a/java/src/org/jruby/jubilee/RubyServer.java +++ b/java/src/org/jruby/jubilee/RubyServer.java @@ -1,171 +1,172 @@ package org.jruby.jubilee; import org.jruby.*; import org.jruby.an...
false
true
public IRubyObject initialize(ThreadContext context, IRubyObject app, IRubyObject config, Block block) { Ruby runtime = getRuntime(); /* configuration keys */ RubyHash options = config.convertToHash(); RubySymbol port_k = runtime.newSymbol("Port"); RubySymbol host_k = runtime...
public IRubyObject initialize(ThreadContext context, IRubyObject app, IRubyObject config, Block block) { Ruby runtime = getRuntime(); /* configuration keys */ RubyHash options = config.convertToHash(); RubySymbol port_k = runtime.newSymbol("Port"); RubySymbol host_k = runtime...
diff --git a/servlet/src/main/java/io/undertow/servlet/spec/ServletRegistrationImpl.java b/servlet/src/main/java/io/undertow/servlet/spec/ServletRegistrationImpl.java index 17a281af9..2b9b62bfb 100644 --- a/servlet/src/main/java/io/undertow/servlet/spec/ServletRegistrationImpl.java +++ b/servlet/src/main/java/io/undert...
false
true
public Set<String> addMapping(final String... urlPatterns) { final Set<String> ret = new HashSet<String>(); final Set<String> existing = new HashSet<String>(); for(ServletInfo s : deploymentInfo.getServlets().values()){ existing.addAll(s.getMappings()); } for(Stri...
public Set<String> addMapping(final String... urlPatterns) { final Set<String> ret = new HashSet<String>(); final Set<String> existing = new HashSet<String>(); for (ServletInfo s : deploymentInfo.getServlets().values()) { if(!s.getName().equals(servletInfo.getName())) { ...
diff --git a/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryService.java b/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryService.java index af3af49b3..613dbed88 100644 --- a/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryService.java +++ b/atla...
true
true
private void processResultGenes(QueryResponse response, AtlasStructuredQueryResult result, QueryState qstate, AtlasStructuredQuery query, Integer numOfResults, ...
private void processResultGenes(QueryResponse response, AtlasStructuredQueryResult result, QueryState qstate, AtlasStructuredQuery query, Integer numOfResults, ...
diff --git a/src/de/ueller/gpsmid/graphics/ImageCollector.java b/src/de/ueller/gpsmid/graphics/ImageCollector.java index 72c4beb5..eff224bd 100644 --- a/src/de/ueller/gpsmid/graphics/ImageCollector.java +++ b/src/de/ueller/gpsmid/graphics/ImageCollector.java @@ -1,767 +1,769 @@ /* * GpsMid - Copyright (c) 2007 Haral...
false
true
public void run() { PaintContext createPC = null; final byte MAXCRASHES = 5; byte crash = 0; do { try { while (!shutdown) { if (!needRedraw || suspended) { synchronized (this) { try { /* FIXME: We still have some situations where redraw is not done automatically immediately, ...
public void run() { PaintContext createPC = null; final byte MAXCRASHES = 5; byte crash = 0; do { try { while (!shutdown) { if (!needRedraw || suspended) { synchronized (this) { try { /* FIXME: We still have some situations where redraw is not done automatically immediately, ...
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/GeoDistanceFilterParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/GeoDistanceFilterParser.java index a43a55bd274..fc9922cfcd2 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch...
false
true
@Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token; boolean cache = false; String filterName = null; String currentFieldName = null; doub...
@Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token; boolean cache = false; String filterName = null; String currentFieldName = null; doub...
diff --git a/htroot/PerformanceMemory_p.java b/htroot/PerformanceMemory_p.java index 6b6adf1f4..cff52a3fb 100644 --- a/htroot/PerformanceMemory_p.java +++ b/htroot/PerformanceMemory_p.java @@ -1,224 +1,219 @@ //PerformaceMemory_p.java //----------------------- //part of YaCy //(C) by Michael Peter Christen; mc@anom...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements serverObjects prop = new serverObjects(); if (defaultSettings == null) { defaultSettings = serverFileUtils.loadHashMap(new File(env.getR...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements serverObjects prop = new serverObjects(); if (defaultSettings == null) { defaultSettings = serverFileUtils.loadHashMap(new File(env.getR...
diff --git a/src/starter/MainClass.java b/src/starter/MainClass.java index eccec94..8b7661a 100644 --- a/src/starter/MainClass.java +++ b/src/starter/MainClass.java @@ -1,154 +1,152 @@ package starter; import individual.IndividualsManagerDispatcher; import jade.core.NotFoundException; import jade.core.Profile; i...
true
true
private static void parseArgs(String[] args) { arguments.put("help", new ArgPair(parser.addBooleanOption("help"), Boolean.FALSE)); arguments.put("years", new ArgPair(parser.addIntegerOption('y', "years"), new Integer(100))); arguments.put("experiments", new ArgPair(parser.addIntegerOption('e', "ex...
private static void parseArgs(String[] args) { arguments.put("help", new ArgPair(parser.addBooleanOption("help"), Boolean.FALSE)); arguments.put("years", new ArgPair(parser.addIntegerOption('y', "years"), new Integer(100))); arguments.put("experiments", new ArgPair(parser.addIntegerOption('e', "ex...
diff --git a/src/main/java/org/apache/james/postage/client/POP3Client.java b/src/main/java/org/apache/james/postage/client/POP3Client.java index c64203a..e4edd7d 100644 --- a/src/main/java/org/apache/james/postage/client/POP3Client.java +++ b/src/main/java/org/apache/james/postage/client/POP3Client.java @@ -1,252 +1,25...
true
true
private void findAllMatchingTestMail(String username) throws SamplingException { try { org.apache.commons.net.pop3.POP3Client pop3Client = openConnection(username); // retrieve all messages POP3MessageInfo[] entries = null; try { entries = p...
private void findAllMatchingTestMail(String username) throws SamplingException { try { org.apache.commons.net.pop3.POP3Client pop3Client = openConnection(username); // retrieve all messages POP3MessageInfo[] entries = null; try { entries = p...
diff --git a/modules/unsupported/app-schema/app-schema/src/main/java/org/geotools/feature/xpath/DescriptorXmlAttributeNodePointer.java b/modules/unsupported/app-schema/app-schema/src/main/java/org/geotools/feature/xpath/DescriptorXmlAttributeNodePointer.java index 191289b99..5719953cc 100644 --- a/modules/unsupported/a...
true
true
public Object getImmediateNode() { XSDElementDeclaration decl = (XSDElementDeclaration) descriptor.getUserData().get(XSDElementDeclaration.class); Iterator it = Schemas.getAttributeDeclarations(decl).iterator(); while (it.hasNext()) { XSDAttributeDeclaration attDe...
public Object getImmediateNode() { XSDElementDeclaration decl = (XSDElementDeclaration) descriptor.getUserData().get(XSDElementDeclaration.class); Iterator it = Schemas.getAttributeDeclarations(decl).iterator(); while (it.hasNext()) { XSDAttributeDeclaration attDe...