Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/FP/Server.java b/src/FP/Server.java index eaa234b..7e30a33 100644 --- a/src/FP/Server.java +++ b/src/FP/Server.java @@ -1,96 +1,99 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package FP; import java.io.*; import java.util.HashMap; imp...
false
true
public static void main(String[] args) { // TODO code application logic here // Create log Log log = new Log(); log.setLogName("Server-side application"); buildAllObjects(); // server connection instance, listen on port 5555 Connection server = new Connecti...
public static void main(String[] args) { // TODO code application logic here // Create log Log log = new Log(); log.setLogName("Server-side application"); buildAllObjects(); // server connection instance, listen on port 5555 Connection server = new Connecti...
diff --git a/src/main/java/de/deyovi/chat/core/interpreters/impl/ImageSegmentInterpreter.java b/src/main/java/de/deyovi/chat/core/interpreters/impl/ImageSegmentInterpreter.java index 6ea722b..669994c 100755 --- a/src/main/java/de/deyovi/chat/core/interpreters/impl/ImageSegmentInterpreter.java +++ b/src/main/java/de/dey...
true
true
public Segment[] interprete(InterpretableSegment segment) { if (segment.isURL()) { String user = segment.getUser(); String content = segment.getContent(); logger.debug("file " + content); URL url = segment.getURL(); String name = url.getFile(); if (name == null || name.isEmpty()) { name = "imag...
public Segment[] interprete(InterpretableSegment segment) { if (segment.isURL()) { String user = segment.getUser(); String content = segment.getContent(); logger.debug("file " + content); URL url = segment.getURL(); String name = url.getFile(); if (name == null || name.isEmpty()) { name = "imag...
diff --git a/src/persistence/grails/orm/HibernateCriteriaBuilder.java b/src/persistence/grails/orm/HibernateCriteriaBuilder.java index 8b229ab0f..493dc3804 100644 --- a/src/persistence/grails/orm/HibernateCriteriaBuilder.java +++ b/src/persistence/grails/orm/HibernateCriteriaBuilder.java @@ -1,969 +1,969 @@ /* * Cop...
false
true
public Object invokeMethod(String name, Object obj) { Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj}; if(isCriteriaConstructionMethod(name, args)) { if(this.criteria != null) { throwRuntimeException( new IllegalArgumentException("c...
public Object invokeMethod(String name, Object obj) { Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj}; if(isCriteriaConstructionMethod(name, args)) { if(this.criteria != null) { throwRuntimeException( new IllegalArgumentException("c...
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/edit/EditConfigurationTemplateModel.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/edit/EditConfigurationTemplateModel.java index 5df5485e1..8a3e273ca 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/templatem...
true
true
public Map<String, String> getOfferTypesCreateNew() { WebappDaoFactory wdf = vreq.getWebappDaoFactory(); ObjectProperty op = wdf.getObjectPropertyDao().getObjectPropertyByURI(editConfig.getPredicateUri()); Individual sub = wdf.getIndividualDao().getIndividualByURI(editConfig.getSubjectUri...
public Map<String, String> getOfferTypesCreateNew() { WebappDaoFactory wdf = vreq.getWebappDaoFactory(); ObjectProperty op = wdf.getObjectPropertyDao().getObjectPropertyByURI(editConfig.getPredicateUri()); Individual sub = wdf.getIndividualDao().getIndividualByURI(editConfig.getSubjectUri...
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/submission/Submissions.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/submission/Submissions.java index f72f4fee7..e80ca69d7 100644 --- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/...
true
true
private void addUnfinishedSubmissions(Division division) throws SQLException, WingException { // User's WorkflowItems WorkspaceItem[] unfinishedItems = WorkspaceItem.findByEPerson(context,context.getCurrentUser()); SupervisedItem[] supervisedItems = SupervisedItem.findbyEPerson(context, conte...
private void addUnfinishedSubmissions(Division division) throws SQLException, WingException { // User's WorkflowItems WorkspaceItem[] unfinishedItems = WorkspaceItem.findByEPerson(context,context.getCurrentUser()); SupervisedItem[] supervisedItems = SupervisedItem.findbyEPerson(context, conte...
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/InternalGeoDistanceFacet.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/InternalGeoDistanceFacet.java index 3df9ba99c05..34d56652110 100644 --- a/modules/elasticsearch/src/main/java/org/e...
true
true
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", "histogram"); builder.field("_field", fieldName); builder.field("_value_field", valueFieldName); builder.field("_unit", unit); ...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", "geo_distance"); builder.field("_field", fieldName); builder.field("_value_field", valueFieldName); builder.field("_unit", unit); ...
diff --git a/src/org/pit/fetegeo/importer/processors/LocationProcessor.java b/src/org/pit/fetegeo/importer/processors/LocationProcessor.java index 08e72ec..2e42b18 100644 --- a/src/org/pit/fetegeo/importer/processors/LocationProcessor.java +++ b/src/org/pit/fetegeo/importer/processors/LocationProcessor.java @@ -1,230 +...
false
true
private static List<Geometry> fetchRelationCoors(Relation relation) { List<Geometry> coordinateList = new ArrayList<Geometry>(); int j = 0; for (RelationMember relationMember : relation.getMembers()) { // only care about outer roles (maybe inner too?) if (!relationMember.getMemberRole().equal...
private static List<Geometry> fetchRelationCoors(Relation relation) { List<Geometry> coordinateList = new ArrayList<Geometry>(); for (RelationMember relationMember : relation.getMembers()) { // only care about outer roles. Some ways are not tagged... if (!relationMember.getMemberRole().equalsIgno...
diff --git a/src/com/martinbrook/tesseractuhc/util/MatchUtils.java b/src/com/martinbrook/tesseractuhc/util/MatchUtils.java index dbe699b..1f1fbe5 100644 --- a/src/com/martinbrook/tesseractuhc/util/MatchUtils.java +++ b/src/com/martinbrook/tesseractuhc/util/MatchUtils.java @@ -1,176 +1,176 @@ package com.martinbrook.te...
true
true
public static String[] signWrite(String s) { // Create array to hold the lines, and initialise with empty strings String[] lines = new String[4]; int currentLine = 0; for (int i = 0; i < 4; i++) lines[i] = ""; // Split the message into strings on whitespace String[] words = s.split("\\s"); // Loop ...
public static String[] signWrite(String s) { // Create array to hold the lines, and initialise with empty strings String[] lines = new String[4]; int currentLine = 0; for (int i = 0; i < 4; i++) lines[i] = ""; // Split the message into strings on whitespace String[] words = s.split("\\s"); // Loop ...
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExecContext.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExecContext.java index 989020184..415c37ee7 100644 --- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/d...
false
true
TCFNodeExecContext(TCFNode parent, final String id) { super(parent, id); children_exec = new TCFChildrenExecContext(this); children_stack = new TCFChildrenStackTrace(this); children_regs = new TCFChildrenRegisters(this); children_exps = new TCFChildrenExpressions(this); ...
TCFNodeExecContext(TCFNode parent, final String id) { super(parent, id); children_exec = new TCFChildrenExecContext(this); children_stack = new TCFChildrenStackTrace(this); children_regs = new TCFChildrenRegisters(this); children_exps = new TCFChildrenExpressions(this); ...
diff --git a/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java b/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java index e39cca3..6299e4e 100644 --- a/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java +++ b/src/org/treblefrei/kedr/database/musicdns/DigestMaker.java @@ -1,82 +1,83 @@ package ...
false
true
public void run() { DecodedAudioData audioData = null; try { audioData = AudioDecoder.getSamples(track.getFilepath(), 135); } catch (FileNotFoundException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } ca...
public void run() { DecodedAudioData audioData = null; try { audioData = AudioDecoder.getSamples(track.getFilepath(), 135); } catch (FileNotFoundException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } ca...
diff --git a/java5/org/directwebremoting/annotations/AnnotationsConfigurator.java b/java5/org/directwebremoting/annotations/AnnotationsConfigurator.java index 23e5d42b..b9c91590 100644 --- a/java5/org/directwebremoting/annotations/AnnotationsConfigurator.java +++ b/java5/org/directwebremoting/annotations/AnnotationsCon...
true
true
private void processCreate(Class<?> clazz, RemoteProxy createAnn, Container container) { Class<? extends Creator> creator = createAnn.creator(); String creatorClass = creator.getName(); Map<String, String> creatorParams = getParamsMap(createAnn.creatorParams()); ScriptScope scope...
private void processCreate(Class<?> clazz, RemoteProxy createAnn, Container container) { Class<? extends Creator> creator = createAnn.creator(); String creatorClass = creator.getName(); Map<String, String> creatorParams = getParamsMap(createAnn.creatorParams()); ScriptScope scope...
diff --git a/opensearch/jaxrs/src/main/java/com/smartitengineering/util/opensearch/jaxrs/OpenSearchDescriptorProvider.java b/opensearch/jaxrs/src/main/java/com/smartitengineering/util/opensearch/jaxrs/OpenSearchDescriptorProvider.java index b2f222e..ad17f62 100644 --- a/opensearch/jaxrs/src/main/java/com/smartitenginee...
true
true
public void writeTo(OpenSearchDescriptor t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, ...
public void writeTo(OpenSearchDescriptor t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, ...
diff --git a/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/UpdateDatabaseCommandImpl.java b/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/UpdateDatabaseCommandImpl.java index 55b7288..8ba1630 100644 --- a/src/main/java/net/paguo/trafshow/backend/snmp/summary/commands/impl/Upd...
true
true
public void doUpdate(TrafficCollector commandObject) { log.debug("doUpdate() <<<<"); DBProxy proxy = DBProxyFactory.getDBProxy(); Connection con = null; try{ con = proxy.getConnection(); PreparedStatement ipst = con.prepareStatement("insert into aggreg(dat, ci...
public void doUpdate(TrafficCollector commandObject) { log.debug("doUpdate() <<<<"); DBProxy proxy = DBProxyFactory.getDBProxy(); Connection con = null; try{ con = proxy.getConnection(); PreparedStatement ipst = con.prepareStatement("insert into aggreg(dat, ci...
diff --git a/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java b/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java index 2adccaa51..1bca4a6b4 100644 --- a/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java +++ b/main/src/cgeo/geocaching/geopoint/GeopointFormatter.java @@ -1,109 +1,109 @@ package cg...
false
true
public static String format(final Format format, final Geopoint gp) { final double latSigned = gp.getLatitude(); final double lonSigned = gp.getLongitude(); final double lat = Math.abs(latSigned); final double lon = Math.abs(lonSigned); final double latFloor = Math.floor(...
public static String format(final Format format, final Geopoint gp) { final double latSigned = gp.getLatitude(); final double lonSigned = gp.getLongitude(); final double lat = Math.abs(latSigned); final double lon = Math.abs(lonSigned); final double latFloor = Math.floor(...
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AjaxComponentEventRequestHandler.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/AjaxComponentEventRequestHandler.java index 7845ca6a9..1d98da722 100644 --- a/tapestry-core/src/main/java/org/apache/tapestry5/intern...
true
true
public void handle(ComponentEventRequestParameters parameters) throws IOException { Page activePage = cache.get(parameters.getActivePageName()); final Holder<Boolean> resultProcessorInvoked = Holder.create(); resultProcessorInvoked.put(false); ComponentEventResultProcessor inte...
public void handle(ComponentEventRequestParameters parameters) throws IOException { Page activePage = cache.get(parameters.getActivePageName()); final Holder<Boolean> resultProcessorInvoked = Holder.create(); resultProcessorInvoked.put(false); ComponentEventResultProcessor inte...
diff --git a/src/java/fedora/server/storage/METSDOSerializer.java b/src/java/fedora/server/storage/METSDOSerializer.java index a226c4ee9..3c6ba1895 100755 --- a/src/java/fedora/server/storage/METSDOSerializer.java +++ b/src/java/fedora/server/storage/METSDOSerializer.java @@ -1,636 +1,636 @@ package fedora.server.stor...
true
true
public void serialize(DigitalObject obj, OutputStream out, String encoding) throws ObjectIntegrityException, StreamIOException, UnsupportedEncodingException { m_characterEncoding=encoding; StringBuffer buf1=new StringBuffer(); buf1.append("test"); byte[] temp=...
public void serialize(DigitalObject obj, OutputStream out, String encoding) throws ObjectIntegrityException, StreamIOException, UnsupportedEncodingException { m_characterEncoding=encoding; StringBuffer buf1=new StringBuffer(); buf1.append("test"); byte[] temp=...
diff --git a/contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/XmlDefinition.java b/contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/XmlDefinition.java index 61ae2703b..8d72d85db 100644 --- a/contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/XmlDefinition.java +++ b/contrib/tiles/sr...
true
true
public void resolveInheritance( XmlDefinitionsSet definitionsSet ) throws NoSuchDefinitionException { // Already done, or not needed ? if( isVisited || !isExtending() ) return; if( debug) System.out.println( "Resolve definition for child name='" + getName(...
public void resolveInheritance( XmlDefinitionsSet definitionsSet ) throws NoSuchDefinitionException { // Already done, or not needed ? if( isVisited || !isExtending() ) return; if( debug) System.out.println( "Resolve definition for child name='" + getName(...
diff --git a/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/IncludingConfigHandler.java b/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/IncludingConfigHandler.java index 341831681..981d04dc8 100644 --- a/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/IncludingConfigHandler.java +++ b/sphinx4/src/sphinx4/edu/cmu/sphinx/ut...
true
true
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (qName.equals("config")) { // nothing to do } else if (qName.equals("include")) { String includeFileName = attributes.getValue("fi...
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (qName.equals("config")) { // nothing to do } else if (qName.equals("include")) { String includeFileName = attributes.getValue("fi...
diff --git a/jOOQ-meta/src/main/java/org/jooq/util/oracle/OracleRoutineDefinition.java b/jOOQ-meta/src/main/java/org/jooq/util/oracle/OracleRoutineDefinition.java index 47d7035b1..70d4138a4 100644 --- a/jOOQ-meta/src/main/java/org/jooq/util/oracle/OracleRoutineDefinition.java +++ b/jOOQ-meta/src/main/java/org/jooq/util...
true
true
protected void init0() throws SQLException { // [#1324] The ALL_ARGUMENTS.DEFAULTED column is available in Oracle 11g // only. This feature should thus be deactivated for older versions Field<String> defaulted = is11g() ? ALL_ARGUMENTS.DEFAULTED : inline("N"); Result<Re...
protected void init0() throws SQLException { // [#1324] The ALL_ARGUMENTS.DEFAULTED column is available in Oracle 11g // only. This feature should thus be deactivated for older versions Field<String> defaulted = is11g() ? ALL_ARGUMENTS.DEFAULTED : inline("N"); Result<Re...
diff --git a/app/models/transit/Stop.java b/app/models/transit/Stop.java index d67884a..cd701bf 100644 --- a/app/models/transit/Stop.java +++ b/app/models/transit/Stop.java @@ -1,223 +1,223 @@ package models.transit; import java.math.BigInteger; import java.util.ArrayList; import java.util.HashSet; import ja...
true
true
public static List<List<Stop>> findDuplicateStops(BigInteger agencyId) { // !!! need to autodetect proper SRID for UTM Zone Query q = Stop.em().createNativeQuery("SELECT s1_id, s2_id, dist FROM " + "(SELECT s1.id as s1_id, s2.id as s2_id, st_distance(transform(s1.location, 32614), transform(...
public static List<List<Stop>> findDuplicateStops(BigInteger agencyId) { // !!! need to autodetect proper SRID for UTM Zone Query q = Stop.em().createNativeQuery("SELECT s1_id, s2_id, dist FROM " + "(SELECT s1.id as s1_id, s2.id as s2_id, st_distance(transform(s1.location, 32614), transform(...
diff --git a/src/admin/panel/general/GeneralPanel.java b/src/admin/panel/general/GeneralPanel.java index 68b94c0..75823b1 100644 --- a/src/admin/panel/general/GeneralPanel.java +++ b/src/admin/panel/general/GeneralPanel.java @@ -1,502 +1,503 @@ package admin.panel.general; import java.awt.BorderLayout; import java...
true
true
private void initListeners() { btnStartSn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { GameData g = GameData.getCurrentGame(); if (g.getAllContestants().size() == 0) { JOptionPane .showMessageDialog(null, "This will be a borin...
private void initListeners() { btnStartSn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { GameData g = GameData.getCurrentGame(); if (g.getAllContestants().size() == 0) { JOptionPane .showMessageDialog(null, "This will be a borin...
diff --git a/src/java/org/jamwiki/utils/ImageUtil.java b/src/java/org/jamwiki/utils/ImageUtil.java index 04b5948b..77607790 100644 --- a/src/java/org/jamwiki/utils/ImageUtil.java +++ b/src/java/org/jamwiki/utils/ImageUtil.java @@ -1,188 +1,188 @@ /** * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2....
true
true
public static BufferedImage resizeImage(WikiImage wikiImage, int maxDimension) throws Exception { File imageFile = new File(Environment.getValue(Environment.PROP_FILE_DIR_FULL_PATH), wikiImage.getUrl()); BufferedImage original = ImageUtil.loadImage(imageFile); maxDimension = calculateImageIncrement(maxDimension)...
public static BufferedImage resizeImage(WikiImage wikiImage, int maxDimension) throws Exception { File imageFile = new File(Environment.getValue(Environment.PROP_FILE_DIR_FULL_PATH), wikiImage.getUrl()); BufferedImage original = ImageUtil.loadImage(imageFile); maxDimension = calculateImageIncrement(maxDimension)...
diff --git a/src/main/java/net/sf/webdav/methods/DoProppatch.java b/src/main/java/net/sf/webdav/methods/DoProppatch.java index 0caa3c1..afeaca7 100644 --- a/src/main/java/net/sf/webdav/methods/DoProppatch.java +++ b/src/main/java/net/sf/webdav/methods/DoProppatch.java @@ -1,226 +1,228 @@ package net.sf.webdav.methods;...
true
true
public void execute(ITransaction transaction, HttpServletRequest req, HttpServletResponse resp) throws IOException, LockFailedException { LOG.trace("-- " + this.getClass().getName()); if (_readOnly) { resp.sendError(WebdavStatus.SC_FORBIDDEN); return; } ...
public void execute(ITransaction transaction, HttpServletRequest req, HttpServletResponse resp) throws IOException, LockFailedException { LOG.trace("-- " + this.getClass().getName()); if (_readOnly) { resp.sendError(WebdavStatus.SC_FORBIDDEN); return; } ...
diff --git a/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java b/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java index 7eabea2..0ac03ce 100644 --- a/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java +++ b/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java...
true
true
private Set<FileInfo> resolveFiles(List<String> files, boolean serveOnly) { if (files != null) { Set<FileInfo> resolvedFiles = new LinkedHashSet<FileInfo>(); for (String f : files) { f = pathRewriter.rewrite(f); boolean isPatch = f.startsWith("patch"); if (isPatch) { ...
private Set<FileInfo> resolveFiles(List<String> files, boolean serveOnly) { if (files != null) { Set<FileInfo> resolvedFiles = new LinkedHashSet<FileInfo>(); for (String f : files) { f = pathRewriter.rewrite(f); boolean isPatch = f.startsWith("patch"); if (isPatch) { ...
diff --git a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/CopyMojo.java b/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/CopyMojo.java index 66c591ded9..8030b4601d 100644 --- a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/CopyMojo.java +++ b/deegree-misc/deeg...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { Log log = getLog(); if ( files == null ) { log.debug( "No files configured." ); return; } File basedir = project.getBasedir(); for ( Copy copy : fi...
public void execute() throws MojoExecutionException, MojoFailureException { Log log = getLog(); if ( files == null ) { log.debug( "No files configured." ); return; } File basedir = project.getBasedir(); for ( Copy copy : fi...
diff --git a/src/main/java/uk/ac/cam/sup/form/SearchForm.java b/src/main/java/uk/ac/cam/sup/form/SearchForm.java index 56aa820..0cab59c 100644 --- a/src/main/java/uk/ac/cam/sup/form/SearchForm.java +++ b/src/main/java/uk/ac/cam/sup/form/SearchForm.java @@ -1,298 +1,298 @@ package uk.ac.cam.sup.form; import java.uti...
false
true
public SearchForm<T> parse() throws FormValidationException { checkValidity(); try{ pageInt = Integer.parseInt(page); } catch (NumberFormatException e) { page = "1"; pageInt = 1; } try{ amountInt = Integer.parseInt(amount); } catch (NumberFormatException e) { amount = "25"; amountInt =...
public SearchForm<T> parse() throws FormValidationException { checkValidity(); try{ pageInt = Integer.parseInt(page); } catch (NumberFormatException e) { page = "1"; pageInt = 1; } try{ amountInt = Integer.parseInt(amount); } catch (NumberFormatException e) { amount = "25"; amountInt =...
diff --git a/bigbluebutton-apps/test/org/bigbluebutton/conference/voice/asterisk/MeetMeRoomAdapterTest.java b/bigbluebutton-apps/test/org/bigbluebutton/conference/voice/asterisk/MeetMeRoomAdapterTest.java index 5ae2b2d670..7516e005fe 100644 --- a/bigbluebutton-apps/test/org/bigbluebutton/conference/voice/asterisk/MeetM...
true
true
public void testAddingAndGettingAndRemovingParticipant() { MeetMeRoomAdapter r = new MeetMeRoomAdapter(); String id = "testParticipant"; IParticipant p = new MeetMeUserAdapter(); p.setId(id); r.addParticipant(p); assertEquals("Room should have participant", true, r.hasParticipant(id)); Participant p1 = r...
public void testAddingAndGettingAndRemovingParticipant() { MeetMeRoomAdapter r = new MeetMeRoomAdapter(); String id = "testParticipant"; IParticipant p = new MeetMeUserAdapter(); p.setId(id); r.addParticipant(p); assertEquals("Room should have participant", true, r.hasParticipant(id)); // Participant p1 =...
diff --git a/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/sourceanalyzer/crd/AbstractBlockAnalyzer.java b/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/sourceanalyzer/crd/AbstractBlockAnalyzer.java index 8e4ad81..7e16d39 100644 --- a/src/jp/ac/osaka_u/ist/sdl/ectec/analyzer/sourceanalyzer/crd/AbstractBlockAnalyzer.java +++ b/sr...
true
true
public void analyze() { final String head = bType.getHead(); final String anchor = getAnchor(); final String normalizedAnchor = getNormalizedAnchor(); final List<Long> ancestorIds = new ArrayList<Long>(); if (parent != null) { for (final long ancestorId : parent.getAncestors()) { ancestorIds.add(anc...
public void analyze() { final String head = bType.getHead(); final String anchor = getAnchor(); final String normalizedAnchor = getNormalizedAnchor(); final List<Long> ancestorIds = new ArrayList<Long>(); if (parent != null) { for (final long ancestorId : parent.getAncestors()) { ancestorIds.add(anc...
diff --git a/src/com/dmdirc/Server.java b/src/com/dmdirc/Server.java index 3e7217321..c28c59cf4 100644 --- a/src/com/dmdirc/Server.java +++ b/src/com/dmdirc/Server.java @@ -1,1399 +1,1397 @@ /* * Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes * * Permission is hereby granted, free of charg...
true
true
public void connect(final String server, final int port, final String password, final boolean ssl, final Identity profile) { assert(profile != null); synchronized(myState) { switch (myState) { case RECONNECT_WAIT: reconnectTimer.cancel(); ...
public void connect(final String server, final int port, final String password, final boolean ssl, final Identity profile) { assert(profile != null); synchronized(myState) { switch (myState) { case RECONNECT_WAIT: reconnectTimer.cancel(); ...
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/issue/IssueTaskDataHandler.java index 83c883f..5c2f481 100644 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/interna...
true
true
public RepositoryResponse postTaskData(TaskRepository repository, TaskData taskData, Set<TaskAttribute> oldAttributes, IProgressMonitor monitor) throws CoreException { String taskId = taskData.getTaskId(); Issue issue = createIssue(taskData); RepositoryId repo = GitHub.getRepository(repository.getRepositor...
public RepositoryResponse postTaskData(TaskRepository repository, TaskData taskData, Set<TaskAttribute> oldAttributes, IProgressMonitor monitor) throws CoreException { String taskId = taskData.getTaskId(); Issue issue = createIssue(taskData); RepositoryId repo = GitHub.getRepository(repository.getRepositor...
diff --git a/ini/trakem2/tree/LayerTree.java b/ini/trakem2/tree/LayerTree.java index 7a0dba23..bd42f47f 100644 --- a/ini/trakem2/tree/LayerTree.java +++ b/ini/trakem2/tree/LayerTree.java @@ -1,717 +1,717 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005-2009 Albert Cardona and Rodney Douglas. This program...
true
true
public void actionPerformed(ActionEvent ae) { try { String command = ae.getActionCommand(); // commands for multiple selections: TreePath[] paths = this.getSelectionPaths(); if (null != paths && paths.length > 1) { if (command.equals("Reverse layer Z coords")) { // check that all layers belong ...
public void actionPerformed(ActionEvent ae) { try { String command = ae.getActionCommand(); // commands for multiple selections: TreePath[] paths = this.getSelectionPaths(); if (null != paths && paths.length > 1) { if (command.equals("Reverse layer Z coords")) { // check that all layers belong ...
diff --git a/src/gov/nist/javax/sip/stack/SIPDialog.java b/src/gov/nist/javax/sip/stack/SIPDialog.java index 34790693..67f2daed 100755 --- a/src/gov/nist/javax/sip/stack/SIPDialog.java +++ b/src/gov/nist/javax/sip/stack/SIPDialog.java @@ -1,4228 +1,4228 @@ /* * Conditions Of Use * * This software was developed b...
true
true
public void setLastResponse(SIPTransaction transaction, SIPResponse sipResponse) { this.callIdHeader = sipResponse.getCallId(); final int statusCode = sipResponse.getStatusCode(); if (statusCode == 100) { if (logger.isLoggingEnabled()) logger ...
public void setLastResponse(SIPTransaction transaction, SIPResponse sipResponse) { this.callIdHeader = sipResponse.getCallId(); final int statusCode = sipResponse.getStatusCode(); if (statusCode == 100) { if (logger.isLoggingEnabled()) logger ...
diff --git a/src/com/kaist/crescendo/activity/IntroActivity.java b/src/com/kaist/crescendo/activity/IntroActivity.java index a7b19b1..fc196af 100644 --- a/src/com/kaist/crescendo/activity/IntroActivity.java +++ b/src/com/kaist/crescendo/activity/IntroActivity.java @@ -1,68 +1,67 @@ package com.kaist.crescendo.activity...
false
true
public void run() { /* Call Register Activity when session is not established */ SharedPreferences prefs = getSharedPreferences("MyPref", MODE_PRIVATE); boolean saved = prefs.getBoolean(MyPref.KEY_SESSION, false); if(saved == false) { Intent intent = new Intent(); startActivity(intent.setClass(...
public void run() { /* Call Register Activity when session is not established */ SharedPreferences prefs = getSharedPreferences("MyPref", MODE_PRIVATE); boolean saved = prefs.getBoolean(MyPref.KEY_SESSION, false); if(saved == false) { Intent intent = new Intent(); startActivity(intent.setClass(...
diff --git a/fabric/fabric-cxf-registry/src/test/java/io/fabric8/cxf/registry/JsonEncodeTest.java b/fabric/fabric-cxf-registry/src/test/java/io/fabric8/cxf/registry/JsonEncodeTest.java index db7c9d82d..fbe96a813 100644 --- a/fabric/fabric-cxf-registry/src/test/java/io/fabric8/cxf/registry/JsonEncodeTest.java +++ b/fabr...
true
true
public void testJsonEncoding() throws Exception { String objectName = "org.apache.cxf:bus.id=rest-cxf515624438,type=Bus.Service.Endpoint,service=\"{http://rest.fuse.quickstarts.jboss.org/}CustomerService\",port=\"CustomerService\",instance.id=1776063910"; String expectedValue = "org.apache.cxf:bus.i...
public void testJsonEncoding() throws Exception { String objectName = "org.apache.cxf:bus.id=rest-cxf515624438,type=Bus.Service.Endpoint,service=\"{http://rest.fuse.quickstarts.jboss.org/}CustomerService\",port=\"CustomerService\",instance.id=1776063910"; String expectedValue = "\"org.apache.cxf:bus...
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/dto/RawDataImportRequest.java b/GAE/src/org/waterforpeople/mapping/app/web/dto/RawDataImportRequest.java index 1cfc1588f..b6f7bd328 100644 --- a/GAE/src/org/waterforpeople/mapping/app/web/dto/RawDataImportRequest.java +++ b/GAE/src/org/waterforpeople/mapping/app/w...
false
true
protected void populateFields(HttpServletRequest req) throws Exception { if (req.getParameter(LOCALE_ID_PARAM) != null) { try { setSurveyedLocaleId(new Long(req.getParameter(LOCALE_ID_PARAM))); } catch (Exception e) { // swallow } } if (req.getParameter(SURVEY_INSTANCE_ID_PARAM) != null) { tr...
protected void populateFields(HttpServletRequest req) throws Exception { if (req.getParameter(LOCALE_ID_PARAM) != null) { try { setSurveyedLocaleId(new Long(req.getParameter(LOCALE_ID_PARAM))); } catch (Exception e) { // swallow } } if (req.getParameter(SURVEY_INSTANCE_ID_PARAM) != null) { tr...
diff --git a/src/main/java/com/yahoo/ycsb/db/InfinispanClient.java b/src/main/java/com/yahoo/ycsb/db/InfinispanClient.java index 0665cd0..fef6e09 100644 --- a/src/main/java/com/yahoo/ycsb/db/InfinispanClient.java +++ b/src/main/java/com/yahoo/ycsb/db/InfinispanClient.java @@ -1,320 +1,320 @@ package com.yahoo.ycsb.db;...
true
true
public void init(int nodes) throws DBException { try { synchronized (syncObject) { if(infinispanManager == null){ infinispanManager = new DefaultCacheManager("ispn.xml"); String table = "usertable"; globalCache = infinispanManager.getCache(table); tm=globalCache.getAdvancedCache()...
public void init(int nodes) throws DBException { try { synchronized (syncObject) { if(infinispanManager == null){ infinispanManager = new DefaultCacheManager("ispn.xml"); String table = "usertable"; globalCache = infinispanManager.getCache(table); tm=globalCache.getAdvancedCache()...
diff --git a/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListener.java b/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListener.java index 8430252..45889a3 100644 --- a/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListener.java +++ b/NoItem/src/net/worldoftomorrow/nala/ni/listeners/EventListe...
false
true
public void onInventoryClick(InventoryClickEvent event) { Player p = Bukkit.getPlayer(event.getWhoClicked().getName()); Inventory inv = event.getInventory(); ItemStack oncur = p.getItemOnCursor(); ItemStack current = event.getCurrentItem(); int rs = event.getRawSlot(); InventoryView view = event.getView();...
public void onInventoryClick(InventoryClickEvent event) { Player p = Bukkit.getPlayer(event.getWhoClicked().getName()); Inventory inv = event.getInventory(); ItemStack oncur = p.getItemOnCursor(); ItemStack current = event.getCurrentItem(); int rs = event.getRawSlot(); InventoryView view = event.getView();...
diff --git a/msv/src/com/sun/msv/reader/xmlschema/AnyState.java b/msv/src/com/sun/msv/reader/xmlschema/AnyState.java index 28dfb512..ebcbd1d1 100644 --- a/msv/src/com/sun/msv/reader/xmlschema/AnyState.java +++ b/msv/src/com/sun/msv/reader/xmlschema/AnyState.java @@ -1,118 +1,122 @@ /* * @(#)$Id$ * * Copyright 20...
true
true
protected NameClass getNameClass( String namespace, XMLSchemaSchema currentSchema ) { // we have to get currentSchema through parameter because // this method is also used while back-patching, and // reader.currentSchema points to the invalid schema in that case. final XMLSchemaReader reader = (XMLSchemaReade...
protected NameClass getNameClass( String namespace, XMLSchemaSchema currentSchema ) { // we have to get currentSchema through parameter because // this method is also used while back-patching, and // reader.currentSchema points to the invalid schema in that case. final XMLSchemaReader reader = (XMLSchemaReade...
diff --git a/src/cz/muni/stanse/CmdLineManager.java b/src/cz/muni/stanse/CmdLineManager.java index a3456bb..9017f20 100644 --- a/src/cz/muni/stanse/CmdLineManager.java +++ b/src/cz/muni/stanse/CmdLineManager.java @@ -1,310 +1,310 @@ package cz.muni.stanse; import cz.muni.stanse.configuration.Configuration; import ...
false
true
CmdLineManager(final String[] args) { parser = new OptionParser(); help = parser.acceptsAll(asList("h", "?", "help"), "Shows this help message."); version = parser.accepts("version","Prints the program version."); // TODO:...
CmdLineManager(final String[] args) { parser = new OptionParser(); help = parser.acceptsAll(asList("h", "?", "help"), "Shows this help message."); version = parser.accepts("version","Prints the program version."); // TODO:...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorSerializer.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorSerializer.java index 7565281f7..37cf3c390 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/config/xml/ClassMediatorSerializ...
true
true
public OMElement serializeSpecificMediator(Mediator m) { if (!(m instanceof ClassMediator)) { handleException("Unsupported mediator passed in for serialization : " + m.getType()); } ClassMediator mediator = (ClassMediator) m; OMElement clazz = fac.createOMElement("class"...
public OMElement serializeSpecificMediator(Mediator m) { if (!(m instanceof ClassMediator)) { handleException("Unsupported mediator passed in for serialization : " + m.getType()); } ClassMediator mediator = (ClassMediator) m; OMElement clazz = fac.createOMElement("class"...
diff --git a/src/com/nijiko/coelho/iConomy/iConomy.java b/src/com/nijiko/coelho/iConomy/iConomy.java index 18167f8..83e69b9 100644 --- a/src/com/nijiko/coelho/iConomy/iConomy.java +++ b/src/com/nijiko/coelho/iConomy/iConomy.java @@ -1,400 +1,400 @@ package com.nijiko.coelho.iConomy; import java.io.File; import jav...
true
true
public void onEnable() { // Get the server Server = getServer(); // Lib Directory (new File("lib" + File.separator)).mkdir(); (new File("lib" + File.separator)).setWritable(true); (new File("lib" + File.separator)).setExecutable(true); // Plugin Directory ...
public void onEnable() { // Get the server Server = getServer(); // Lib Directory (new File("lib" + File.separator)).mkdir(); (new File("lib" + File.separator)).setWritable(true); (new File("lib" + File.separator)).setExecutable(true); // Plugin Directory ...
diff --git a/kernel/src/main/java/org/vosao/update/UpdateManager.java b/kernel/src/main/java/org/vosao/update/UpdateManager.java index 5d2f331..4eedddb 100644 --- a/kernel/src/main/java/org/vosao/update/UpdateManager.java +++ b/kernel/src/main/java/org/vosao/update/UpdateManager.java @@ -1,79 +1,78 @@ /** * Vosao CM...
false
true
public void update() throws UpdateException { Entity config = getConfig(); if (config.getProperty("version") == null) { addConfigVersion(); } config = getConfig(); for (UpdateTask task : tasks) { if (config.getProperty("version").equals(task.getFromVersion())) { task.update(); config.setPropert...
public void update() throws UpdateException { if (getConfig().getProperty("version") == null) { addConfigVersion(); } for (UpdateTask task : tasks) { if (getConfig().getProperty("version").equals(task.getFromVersion())) { task.update(); Entity config = getConfig(); config.setProperty("version",...
diff --git a/ch.deif.meander/src/ch/deif/meander/map/ComputeConfigurationTask.java b/ch.deif.meander/src/ch/deif/meander/map/ComputeConfigurationTask.java index 56362eef..7d6d266b 100644 --- a/ch.deif.meander/src/ch/deif/meander/map/ComputeConfigurationTask.java +++ b/ch.deif.meander/src/ch/deif/meander/map/ComputeConf...
true
true
public ComputeConfigurationTask(Value<LatentSemanticIndex> index) { super("Multidimensional scaling...", index); this.previousConfiguration = new Configuration(); }
public ComputeConfigurationTask(Value<LatentSemanticIndex> index) { super("Computing map layout...", index); this.previousConfiguration = new Configuration(); }
diff --git a/src/com/earlofmarch/reach/input/BuzzerBindingFactory.java b/src/com/earlofmarch/reach/input/BuzzerBindingFactory.java index e2edc9e..7989644 100644 --- a/src/com/earlofmarch/reach/input/BuzzerBindingFactory.java +++ b/src/com/earlofmarch/reach/input/BuzzerBindingFactory.java @@ -1,90 +1,90 @@ package com....
true
true
private static WindowsBuzzerBinding windows() throws IOException { Process server = null; log.log(Level.INFO, "Entering BuzzerBindingFactory.windows()"); try { server = Runtime.getRuntime().exec("./glue.exe"); } catch (IOException e) { log.log(Level.SEVERE, "Error creating glue.exe", e); throw e; } ...
private static WindowsBuzzerBinding windows() throws IOException { Process server = null; log.log(Level.INFO, "Entering BuzzerBindingFactory.windows()"); try { server = Runtime.getRuntime().exec("./glue.exe"); } catch (IOException e) { log.log(Level.SEVERE, "Error creating glue.exe", e); throw e; } ...
diff --git a/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java b/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java index 2eb6244..66455c1 100644 --- a/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java...
false
true
public boolean doTrade(IInventory fakeInv, int inputMinSlot, int inputMaxSlot, int outputMinSlot, int outputMaxSlot) throws TradeException { if (fakeInv == null) { throw new TradeException(1, "Invalid inventory", new NullPointerException()); } HashMap<ItemStackMapKey, Integer> tradeInputs = new HashMap<Item...
public boolean doTrade(IInventory fakeInv, int inputMinSlot, int inputMaxSlot, int outputMinSlot, int outputMaxSlot) throws TradeException { if (fakeInv == null) { throw new TradeException(1, "Invalid inventory", new NullPointerException()); } HashMap<ItemStackMapKey, Integer> tradeInputs = new HashMap<Item...
diff --git a/src/main/java/ro/lmn/mantis/mpm/internal/HandleImpl.java b/src/main/java/ro/lmn/mantis/mpm/internal/HandleImpl.java index d548b1f..aaf451b 100644 --- a/src/main/java/ro/lmn/mantis/mpm/internal/HandleImpl.java +++ b/src/main/java/ro/lmn/mantis/mpm/internal/HandleImpl.java @@ -1,291 +1,291 @@ package ro.lmn...
true
true
public void synchronizeIssues(int filterId, List<IssueData> newIssues, String oldIssueTrackerUrl, Handle sourceHandle) throws Exception { Map<String, AccountData> ourUsers = new HashMap<>(); for ( AccountData ourUser : getUsers() ) ourUsers.put(ourUser.getName(), ourUser); AccountData thisUser = checkNo...
public void synchronizeIssues(int filterId, List<IssueData> newIssues, String oldIssueTrackerUrl, Handle sourceHandle) throws Exception { Map<String, AccountData> ourUsers = new HashMap<>(); for ( AccountData ourUser : getUsers() ) ourUsers.put(ourUser.getName(), ourUser); AccountData thisUser = checkNo...
diff --git a/src/java/se/idega/idegaweb/commune/school/presentation/StudentPlacings.java b/src/java/se/idega/idegaweb/commune/school/presentation/StudentPlacings.java index b8aeabd9..9ee7ad2f 100644 --- a/src/java/se/idega/idegaweb/commune/school/presentation/StudentPlacings.java +++ b/src/java/se/idega/idegaweb/commun...
false
true
protected Table getChoicesTable(IWContext iwc) throws RemoteException { Table table = new Table(); table.setWidth(getWidth()); table.setCellpadding(getCellpadding()); table.setCellspacing(getCellspacing()); table.setColumns(6); table.setRowColor(1, getHeaderColor()); int column = 1; int row = 1; C...
protected Table getChoicesTable(IWContext iwc) throws RemoteException { Table table = new Table(); table.setWidth(getWidth()); table.setCellpadding(getCellpadding()); table.setCellspacing(getCellspacing()); table.setColumns(6); table.setRowColor(1, getHeaderColor()); int column = 1; int row = 1; C...
diff --git a/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java b/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java index bfdad66a2..9093ab7fa 100755 --- a/as/plugins/org.jboss....
false
true
private void createActions() { deleteModuleAction = new Action() { public void run() { if (MessageDialog.openConfirm(new Shell(), Messages.ServerDialogHeading, Messages.DeleteModuleConfirm)) { Thread t = new Thread() { public void run() { try { IServerWorkingCopy server = selection.server.c...
private void createActions() { deleteModuleAction = new Action() { public void run() { if (MessageDialog.openConfirm(new Shell(), Messages.ServerDialogHeading, Messages.DeleteModuleConfirm)) { Thread t = new Thread() { public void run() { try { IServerWorkingCopy server = selection.server.c...
diff --git a/srcj/com/sun/electric/technology/Xml.java b/srcj/com/sun/electric/technology/Xml.java index d45e6998f..9bf4a149c 100644 --- a/srcj/com/sun/electric/technology/Xml.java +++ b/srcj/com/sun/electric/technology/Xml.java @@ -1,2379 +1,2392 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * ...
false
true
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { boolean dump = false; XmlKeyword key = xmlKeywords.get(localName); // System.out.print("<" + key.name()); this.attribut...
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { boolean dump = false; XmlKeyword key = xmlKeywords.get(localName); // System.out.print("<" + key.name()); this.attribut...
diff --git a/src/org/community/intellij/plugins/communitycase/commands/FileUtils.java b/src/org/community/intellij/plugins/communitycase/commands/FileUtils.java index 9349124..6e1cc6e 100644 --- a/src/org/community/intellij/plugins/communitycase/commands/FileUtils.java +++ b/src/org/community/intellij/plugins/community...
true
true
public static byte[] getFileContent(Project project, VirtualFile root, String revisionOrBranch, String relativePath) throws VcsException { BinaryHandler h = new BinaryHandler(project, root, Command.SHOW); h.setRemote(true); h.setSilent(true); File temp; try { temp = FileUtil.createTempFile(...
public static byte[] getFileContent(Project project, VirtualFile root, String revisionOrBranch, String relativePath) throws VcsException { BinaryHandler h = new BinaryHandler(project, root, Command.SHOW); h.setRemote(true); h.setSilent(true); File temp; try { temp = FileUtil.createTempFile(...
diff --git a/core/src/visad/trunk/data/text/TextAdapter.java b/core/src/visad/trunk/data/text/TextAdapter.java index 109bcb6f0..0762ce830 100644 --- a/core/src/visad/trunk/data/text/TextAdapter.java +++ b/core/src/visad/trunk/data/text/TextAdapter.java @@ -1,1548 +1,1547 @@ // // TextAdapter.java // /* VisAD sys...
false
true
void readit(InputStream is, String map, String params) throws IOException, VisADException { // read the ASCII file, using commas as field separators // first line is a header line ff = null; field = null; if (debug) System.out.println("#### Text Adapter v2.x runn...
void readit(InputStream is, String map, String params) throws IOException, VisADException { // read the ASCII file, using commas as field separators // first line is a header line ff = null; field = null; if (debug) System.out.println("#### Text Adapter v2.x runn...
diff --git a/chrisHaughton/src/com/osgo/plugin/portfolio/servlet/Upload.java b/chrisHaughton/src/com/osgo/plugin/portfolio/servlet/Upload.java index 10953ec..a884e13 100644 --- a/chrisHaughton/src/com/osgo/plugin/portfolio/servlet/Upload.java +++ b/chrisHaughton/src/com/osgo/plugin/portfolio/servlet/Upload.java @@ -1,1...
true
true
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ /** * Set up properties of your new object * After finalizing objects, they are accessible * through Cloud Storage with the URL: * http://commondatastorage.googleapis.com/my_bucket/my_object ...
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ /** * Set up properties of your new object * After finalizing objects, they are accessible * through Cloud Storage with the URL: * http://commondatastorage.googleapis.com/my_bucket/my_object ...
diff --git a/src/ca/liquidlabs/android/speedtestvisualizer/MainActivity.java b/src/ca/liquidlabs/android/speedtestvisualizer/MainActivity.java index db7e87e..692cd62 100644 --- a/src/ca/liquidlabs/android/speedtestvisualizer/MainActivity.java +++ b/src/ca/liquidlabs/android/speedtestvisualizer/MainActivity.java @@ -1,3...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Tracer.debug(LOG_TAG, "onCreate"); /* * Get reference to views */ mIconFeedback = (ImageView) findViewById(R.id.ic_user_feedback...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Tracer.debug(LOG_TAG, "onCreate"); /* * Get reference to views */ mIconFeedback = (ImageView) findViewById(R.id.ic_user_feedback...
diff --git a/src/main/java/net/benas/jpopulator/impl/DefaultRandomizer.java b/src/main/java/net/benas/jpopulator/impl/DefaultRandomizer.java index 46d6a321..12457404 100644 --- a/src/main/java/net/benas/jpopulator/impl/DefaultRandomizer.java +++ b/src/main/java/net/benas/jpopulator/impl/DefaultRandomizer.java @@ -1,138...
true
true
public static Object getRandomValue(Class type) { /* * String and Character types */ if (type.equals(String.class)) { return RandomStringUtils.randomAlphabetic(10); } if (type.equals(Character.TYPE) || type.equals(Character.class)) { return ...
public static Object getRandomValue(Class type) { /* * String and Character types */ if (type.equals(String.class)) { return RandomStringUtils.randomAlphabetic(10); } if (type.equals(Character.TYPE) || type.equals(Character.class)) { return ...
diff --git a/src/com/jme/scene/model/XMLparser/Converters/ObjToJme.java b/src/com/jme/scene/model/XMLparser/Converters/ObjToJme.java index b2764059a..5807a258d 100755 --- a/src/com/jme/scene/model/XMLparser/Converters/ObjToJme.java +++ b/src/com/jme/scene/model/XMLparser/Converters/ObjToJme.java @@ -1,359 +1,361 @@ pa...
false
true
private void processLine(String s) throws IOException { if (s==null) return ; if (s.length()==0) return; String[] parts=s.split(" "); parts=removeEmpty(parts); if ("#".equals(parts[0])) return; if ("v".equals(parts[0])){ addVertextoList(parts); ...
private void processLine(String s) throws IOException { if (s==null) return ; if (s.length()==0) return; String[] parts=s.split(" "); parts=removeEmpty(parts); if ("#".equals(parts[0])) return; if ("v".equals(parts[0])){ addVertextoList(parts); ...
diff --git a/src/com/webkonsept/bukkit/simplechestlock/listener/SCLPlayerListener.java b/src/com/webkonsept/bukkit/simplechestlock/listener/SCLPlayerListener.java index cf46c5f..709b64a 100644 --- a/src/com/webkonsept/bukkit/simplechestlock/listener/SCLPlayerListener.java +++ b/src/com/webkonsept/bukkit/simplechestlock...
false
true
public void onPlayerInteract (final PlayerInteractEvent event){ if (! plugin.isEnabled() ) return; if ( event.isCancelled() ) return; Block block = event.getClickedBlock(); ItemStack toolUsed = null; if (event.getItem() != null){ toolUsed = event.getItem().clone(); toolUsed.setAmount(1); } ...
public void onPlayerInteract (final PlayerInteractEvent event){ if (! plugin.isEnabled() ) return; if ( event.isCancelled() ) return; Block block = event.getClickedBlock(); ItemStack toolUsed = null; if (event.getItem() != null){ toolUsed = event.getItem().clone(); toolUsed.setAmount(1); } ...
diff --git a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java b/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java index 3c08cc1a..900af07b 100644 --- a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java +++ b/software/ncimbrowser/src/java/gov/ni...
false
true
public Vector getSubconceptCodes(String scheme, String version, String code) { //throws LBException{ Vector v = new Vector(); try { //EVSApplicationService lbSvc = new RemoteServerUtil().createLexBIGService(); LexBIGService lbSvc = RemoteServerUtil.createLexBIGService(); ...
public Vector getSubconceptCodes(String scheme, String version, String code) { //throws LBException{ Vector v = new Vector(); try { //EVSApplicationService lbSvc = new RemoteServerUtil().createLexBIGService(); LexBIGService lbSvc = RemoteServerUtil.createLexBIGService(); ...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/Util.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/Util.java index 4f3e6349..3e3d6f15 100644 --- a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acqu...
true
true
public static boolean isAppiableForYear(final int year, final SimplifiedProcedureProcess simplifiedProcedureProcess) { final TreeSet<ActivityLog> logs = new TreeSet<ActivityLog>(WorkflowLog.COMPARATOR_BY_WHEN_REVERSED); for (WorkflowLog log : simplifiedProcedureProcess.getExecutionLogsSet()) { logs.add((Acti...
public static boolean isAppiableForYear(final int year, final SimplifiedProcedureProcess simplifiedProcedureProcess) { final TreeSet<ActivityLog> logs = new TreeSet<ActivityLog>(WorkflowLog.COMPARATOR_BY_WHEN_REVERSED); for (WorkflowLog log : simplifiedProcedureProcess.getExecutionLogs(ActivityLog.class)) { ...
diff --git a/src/eu/hansolo/enzo/qlocktwo/QlockGerman.java b/src/eu/hansolo/enzo/qlocktwo/QlockGerman.java index 8e686a1..2af0577 100644 --- a/src/eu/hansolo/enzo/qlocktwo/QlockGerman.java +++ b/src/eu/hansolo/enzo/qlocktwo/QlockGerman.java @@ -1,248 +1,248 @@ package eu.hansolo.enzo.qlocktwo; import java.util.Arra...
true
true
@Override public List<QlockWord> getTime(int minute, int hour) { if (hour > 12) { hour -= 12; } if (hour <= 0) { hour += 12; } if (minute > 60) { minute -= 60; hour++; } if (minute < 0) { minute += 6...
@Override public List<QlockWord> getTime(int minute, int hour) { if (hour > 12) { hour -= 12; } if (hour <= 0) { hour += 12; } if (minute > 60) { minute -= 60; hour++; } if (minute < 0) { minute += 6...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 7b53cd70..d76e0260 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1186 +1,1187 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest3.java b/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest3.java index 91287bd..f536be8 100644 --- a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest3.java +++ b/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest3.java @@ -1,73 +1...
true
true
public boolean answer() { _console.println(FormattedConsole.OutputLevel.HEADING, "----" + _id + "----"); //TODO: test List<Directive> loadList = getLoadModuleList(); for (Directive directive : loadList) { String[] arguments = directive.getValue().trim().split("( |\t)*"); if(arguments == null || argume...
public boolean answer() { _console.println(FormattedConsole.OutputLevel.HEADING, "----" + _id + "----"); //TODO: test List<Directive> loadList = getLoadModuleList(); for (Directive directive : loadList) { String[] arguments = directive.getValue().trim().split("[ \t]+"); if(arguments == null || argumen...
diff --git a/henplus/src/henplus/commands/AutocommitCommand.java b/henplus/src/henplus/commands/AutocommitCommand.java index d85fcd2..1493f67 100644 --- a/henplus/src/henplus/commands/AutocommitCommand.java +++ b/henplus/src/henplus/commands/AutocommitCommand.java @@ -1,68 +1,74 @@ /* * This is free software, licens...
true
true
public int execute(SQLSession session, String cmd, String param) { try { if ("autocommit-on".equals(cmd)) { session.getConnection().setAutoCommit(true); System.err.println("set autocommit on"); } else if ("autocommit-off".equals(cmd)) { session.getConnection().setAutoCommit(false); Sys...
public int execute(SQLSession session, String cmd, String param) { try { if ("autocommit-on".equals(cmd)) { /* * due to a bug in Sybase, we have to close the * transaction first before setting autcommit. * This is probably a save choice to do....
diff --git a/src/com/android/mms/transaction/MmsSystemEventReceiver.java b/src/com/android/mms/transaction/MmsSystemEventReceiver.java index 9b78ea08..d89a31a4 100644 --- a/src/com/android/mms/transaction/MmsSystemEventReceiver.java +++ b/src/com/android/mms/transaction/MmsSystemEventReceiver.java @@ -1,96 +1,99 @@ /*...
true
true
public void onReceive(Context context, Intent intent) { if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) { Log.v(TAG, "Intent received: " + intent); } String action = intent.getAction(); if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) { Uri changed...
public void onReceive(Context context, Intent intent) { if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) { Log.v(TAG, "Intent received: " + intent); } String action = intent.getAction(); if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) { Uri changed...
diff --git a/src/org/timadorus/webapp/client/login/LoginPanel.java b/src/org/timadorus/webapp/client/login/LoginPanel.java index ed43c10..d6d72b8 100644 --- a/src/org/timadorus/webapp/client/login/LoginPanel.java +++ b/src/org/timadorus/webapp/client/login/LoginPanel.java @@ -1,296 +1,296 @@ package org.timadorus.weba...
true
true
public LoginPanel(SessionId session, TimadorusWebApp entryIn) { super(); this.entry = entryIn; setUser(new User()); logincounter = 0; setupHistory(); userBox.addFocusHandler(new FocusHandler() { @Override public void onFocus(FocusEvent event) { userBox.setText(""); ...
public LoginPanel(SessionId session, TimadorusWebApp entryIn) { super(); this.entry = entryIn; setUser(new User()); logincounter = 0; setupHistory(); userBox.addFocusHandler(new FocusHandler() { @Override public void onFocus(FocusEvent event) { userBox.setText(""); ...
diff --git a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/view/HeaderBlock.java b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/view/HeaderBlock.java index d03d2d24d9..ee305a6f84 100644 --- a/hadoop-mapreduce-pr...
false
true
@Override protected void render(Block html) { html. div("#header.ui-widget"). div("#user"). _("Logged in as: "+ request().getRemoteUser())._(). div("#logo"). img("/static/hadoop-st.png")._(). h1($(TITLE))._(); }
@Override protected void render(Block html) { String loggedIn = ""; if (request().getRemoteUser() != null) { loggedIn = "Logged in as: " + request().getRemoteUser(); } html. div("#header.ui-widget"). div("#user"). _(loggedIn)._(). div("#logo"). img("/st...
diff --git a/2waySMS/app/controllers/Security.java b/2waySMS/app/controllers/Security.java index 56e1499..a276861 100644 --- a/2waySMS/app/controllers/Security.java +++ b/2waySMS/app/controllers/Security.java @@ -1,13 +1,13 @@ package controllers; import play.libs.Crypto; import models.User; public class Securi...
true
true
static boolean authenticate(String username, String password) { User user = User.find("byMunchkinId", username.toLowerCase()).first(); return user != null && user.password.equals(Crypto.passwordHash(password)); }
static boolean authenticate(String username, String password) { User user = User.find("byMunchkinId", username.toUpperCase().trim()).first(); return user != null && user.password.equals(Crypto.passwordHash(password)); }
diff --git a/src/game/NetworkManager.java b/src/game/NetworkManager.java index d0f5976..8e9e892 100644 --- a/src/game/NetworkManager.java +++ b/src/game/NetworkManager.java @@ -1,151 +1,154 @@ package game; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io...
false
true
public void run() { Game.gamemode = Gamemode.NETWORK; while (true) { if (this.out_queue.isEmpty() == false) { this.sendCommand(); } try { String command = this.inStream.readLine(); Input in = null; if (command.startsWith("input:")) { in = new Input(); command = command.replace("...
public void run() { Game.gamemode = Gamemode.NETWORK; while (true) { if (this.out_queue.isEmpty() == false) { this.sendCommand(); } try { String command = this.inStream.readLine(); Input in = null; if (command.startsWith("input:")) { in = new Input(); command = command.replace("...
diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java b/org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java index c5f5b604..b1265cb2 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java @@ -1,261 +1,262 @@ /* ...
false
true
public synchronized final void get(final WindowCursor curs, final WindowedFile wp, final int id) throws IOException { int idx = binarySearch(wp, id); if (0 <= idx) { final ByteWindow<?> w = windows[idx]; if ((curs.handle = w.get()) != null) { w.lastAccessed = ++accessClock; curs.window = w; re...
public synchronized final void get(final WindowCursor curs, final WindowedFile wp, final int id) throws IOException { int idx = binarySearch(wp, id); if (0 <= idx) { final ByteWindow<?> w = windows[idx]; if ((curs.handle = w.get()) != null) { w.lastAccessed = ++accessClock; curs.window = w; re...
diff --git a/sample-chat-jc/src/main/java/pl/bristleback/sample/chat/web/config/BristlebackServletConfig.java b/sample-chat-jc/src/main/java/pl/bristleback/sample/chat/web/config/BristlebackServletConfig.java index 541da9a..ceec87f 100644 --- a/sample-chat-jc/src/main/java/pl/bristleback/sample/chat/web/config/Bristleb...
true
true
public SimpleUrlHandlerMapping bristlebackHandlerMappings() { Map<String, BristlebackHttpHandler> mappings = new HashMap<>(); mappings.put(SERVLET_MAPPING, bristlebackHttpHandler()); SimpleUrlHandlerMapping handlerMapping = new SimpleUrlHandlerMapping(); handlerMapping.setUrlMap(mappings); retur...
public SimpleUrlHandlerMapping bristlebackHandlerMappings() { Map<String, BristlebackHttpHandler> mappings = new HashMap<String, BristlebackHttpHandler>(); mappings.put(SERVLET_MAPPING, bristlebackHttpHandler()); SimpleUrlHandlerMapping handlerMapping = new SimpleUrlHandlerMapping(); handlerMapping.s...
diff --git a/src/main/java/com/asascience/ncsos/cdmclasses/CDMUtils.java b/src/main/java/com/asascience/ncsos/cdmclasses/CDMUtils.java index a1684f3..af9d119 100644 --- a/src/main/java/com/asascience/ncsos/cdmclasses/CDMUtils.java +++ b/src/main/java/com/asascience/ncsos/cdmclasses/CDMUtils.java @@ -1,217 +1,217 @@ pa...
false
true
public static Element constructObsOfferingNodes(ObservationOffering offering,Document document) { //Create the observation offering Element obsOfferingEl = document.createElement("ObservationOffering"); //add the station ID to the created element obsOfferingEl.setAttribute("gml:id", ...
public static Element constructObsOfferingNodes(ObservationOffering offering,Document document) { //Create the observation offering Element obsOfferingEl = document.createElement("ObservationOffering"); //add the station ID to the created element obsOfferingEl.setAttribute("gml:id", ...
diff --git a/branches/5.0.0/Crux/src/core/org/cruxframework/crux/core/clientoffline/Network.java b/branches/5.0.0/Crux/src/core/org/cruxframework/crux/core/clientoffline/Network.java index de1bdaab4..daaaceb8b 100644 --- a/branches/5.0.0/Crux/src/core/org/cruxframework/crux/core/clientoffline/Network.java +++ b/branche...
true
true
public CacheManifestImpl() { ApplicationCacheHandler.addApplicationCacheHandler(new ApplicationCacheEvent.Handler() { @Override public void onCacheEvent(ApplicationCacheEvent event) { switch (event.getEventType()) { case onDownloading: ...
public CacheManifestImpl() { ApplicationCacheHandler.addApplicationCacheHandler(new ApplicationCacheEvent.Handler() { @Override public void onCacheEvent(ApplicationCacheEvent event) { switch (event.getEventType()) { case onDownloading: ...
diff --git a/src/main/java/com/sk89q/skmcl/minecraft/MinecraftInstall.java b/src/main/java/com/sk89q/skmcl/minecraft/MinecraftInstall.java index 7458f6e..c7d3f95 100644 --- a/src/main/java/com/sk89q/skmcl/minecraft/MinecraftInstall.java +++ b/src/main/java/com/sk89q/skmcl/minecraft/MinecraftInstall.java @@ -1,186 +1,18...
true
true
public LaunchedProcess launch(final LaunchContext context) throws IOException { Session session = context.getSession(); ObjectMapper mapper = new ObjectMapper(); final File extractDir = createExtractDir(); JavaProcessBuilder builder = new JavaProcessBuilder(); ReleaseManifest...
public LaunchedProcess launch(final LaunchContext context) throws IOException { Session session = context.getSession(); ObjectMapper mapper = new ObjectMapper(); final File extractDir = createExtractDir(); JavaProcessBuilder builder = new JavaProcessBuilder(); ReleaseManifest...
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/internal/localstore/MoveTest.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/internal/localstore/MoveTest.java index cf5429bdb..db82db256 100644 --- a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests...
false
true
public void testMoveResource() throws Exception { /* create common objects */ IProject[] projects = getWorkspace().getRoot().getProjects(); /* create folder and file */ IFolder folder = projects[0].getFolder("folder"); IFile file = folder.getFile("file.txt"); ensureExistsInWorkspace(folder, true); ensureExistsI...
public void testMoveResource() throws Exception { /* create common objects */ IProject[] projects = getWorkspace().getRoot().getProjects(); /* create folder and file */ IFolder folder = projects[0].getFolder("folder"); IFile file = folder.getFile("file.txt"); ensureExistsInWorkspace(folder, true); ensureExistsI...
diff --git a/src/org/eclipse/core/tests/internal/watson/TestElementComparator.java b/src/org/eclipse/core/tests/internal/watson/TestElementComparator.java index 9b0d58f..d92a56d 100644 --- a/src/org/eclipse/core/tests/internal/watson/TestElementComparator.java +++ b/src/org/eclipse/core/tests/internal/watson/TestElemen...
false
true
public int compare(Object oldInfo, Object newInfo) { if (oldInfo == null) { if (newInfo == null) { return CHANGED; } else { return ADDED; } } if (newInfo == null) { if (oldInfo == null) { return CHANGED; } else { return REMOVED; } } return testEquality(oldInfo, newInfo) ? K_...
public int compare(Object oldInfo, Object newInfo) { if (oldInfo == null) { if (newInfo == null) return CHANGED; return ADDED; } if (newInfo == null) return REMOVED; return testEquality(oldInfo, newInfo) ? K_NO_CHANGE : CHANGED; }
diff --git a/wcs1_0/src/test/java/org/geoserver/wcs/xml/GetCoverageXmlParserTest.java b/wcs1_0/src/test/java/org/geoserver/wcs/xml/GetCoverageXmlParserTest.java index 1c23d62ad..af0e29b40 100644 --- a/wcs1_0/src/test/java/org/geoserver/wcs/xml/GetCoverageXmlParserTest.java +++ b/wcs1_0/src/test/java/org/geoserver/wcs/x...
true
true
public void testRangeSubsetKeys() throws Exception { String request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" + // "<GetCoverage service=\"WCS\" version=\"1.0.0\"" + // " xmlns=\"http://www.opengis.net/wcs\" " + // ...
public void testRangeSubsetKeys() throws Exception { String request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" + // "<GetCoverage service=\"WCS\" version=\"1.0.0\"" + // " xmlns=\"http://www.opengis.net/wcs\" " + // ...
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 9f614b09..7a6ea413 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1,2616 +1,2617 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed und...
true
true
public boolean onOptionsItemSelected(MenuItem item) { if (mOptionsMenuHandler != null && mOptionsMenuHandler.onOptionsItemSelected(item)) { return true; } if (item.getGroupId() != R.id.CONTEXT_MENU) { // menu remains active, so ensure comboview is dis...
public boolean onOptionsItemSelected(MenuItem item) { if (mOptionsMenuHandler != null && mOptionsMenuHandler.onOptionsItemSelected(item)) { return true; } if (item.getGroupId() != R.id.CONTEXT_MENU) { // menu remains active, so ensure comboview is dis...
diff --git a/Slick/src/org/newdawn/slick/Animation.java b/Slick/src/org/newdawn/slick/Animation.java index eb81ff4..c42c475 100644 --- a/Slick/src/org/newdawn/slick/Animation.java +++ b/Slick/src/org/newdawn/slick/Animation.java @@ -1,614 +1,615 @@ package org.newdawn.slick; import java.util.ArrayList; import or...
true
true
private void nextFrame(long delta) { if (stopped) { return; } if (frames.size() == 0) { return; } nextChange -= delta; while (nextChange < 0 && (!stopped)) { if (currentFrame == stopAt) { stopped = true; break; } if ((currentFrame == frames.size() - 1) && (!loop)) { break; ...
private void nextFrame(long delta) { if (stopped) { return; } if (frames.size() == 0) { return; } nextChange -= delta; while (nextChange < 0 && (!stopped)) { if (currentFrame == stopAt) { stopped = true; break; } if ((currentFrame == frames.size() - 1) && (!loop)) { ...
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExecContext.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExecContext.java index 001977d1e..db6f08786 100644 --- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/d...
false
true
TCFNodeExecContext(TCFNode parent, final String id) { super(parent, id); children_exec = new TCFChildrenExecContext(this); children_stack = new TCFChildrenStackTrace(this); children_regs = new TCFChildrenRegisters(this); children_exps = new TCFChildrenExpressions(this); ...
TCFNodeExecContext(TCFNode parent, final String id) { super(parent, id); children_exec = new TCFChildrenExecContext(this); children_stack = new TCFChildrenStackTrace(this); children_regs = new TCFChildrenRegisters(this); children_exps = new TCFChildrenExpressions(this); ...
diff --git a/test/unit/edu/northwestern/bioinformatics/studycalendar/dao/StudyDaoTest.java b/test/unit/edu/northwestern/bioinformatics/studycalendar/dao/StudyDaoTest.java index 370df9434..99e15ddd8 100644 --- a/test/unit/edu/northwestern/bioinformatics/studycalendar/dao/StudyDaoTest.java +++ b/test/unit/edu/northwester...
true
true
public void testSaveNewStudy() throws Exception { Integer savedId; { Study study = new Study(); study.setName("New study"); study.addArm(new Arm()); study.getArms().get(0).setName("First Arm"); dao.save(study); savedId = study.g...
public void testSaveNewStudy() throws Exception { Integer savedId; { Study study = new Study(); study.setName("New study"); study.addArm(new Arm()); study.getArms().get(0).setName("First Arm"); dao.save(study); savedId = study.g...
diff --git a/src/main/java/org/scribe/up/profile/JsonHelper.java b/src/main/java/org/scribe/up/profile/JsonHelper.java index 3d5ab755..b1518152 100644 --- a/src/main/java/org/scribe/up/profile/JsonHelper.java +++ b/src/main/java/org/scribe/up/profile/JsonHelper.java @@ -1,86 +1,86 @@ /* Copyright 2012 Jerome Leleu ...
true
true
public static Object get(final JsonNode json, final String name) { if (json != null) { JsonNode node = json.get(name); if (node != null) { if (node.isNumber()) { return node.intValue(); } else if (node.isBoolean()) { ...
public static Object get(final JsonNode json, final String name) { if (json != null) { JsonNode node = json.get(name); if (node != null) { if (node.isNumber()) { return node.numberValue(); } else if (node.isBoolean()) { ...
diff --git a/src/com/jidesoft/popup/JidePopup.java b/src/com/jidesoft/popup/JidePopup.java index b381d456..dfbc13c8 100644 --- a/src/com/jidesoft/popup/JidePopup.java +++ b/src/com/jidesoft/popup/JidePopup.java @@ -1,2175 +1,2178 @@ /* * @(#)JidePopup.java 2/24/2005 * * Copyright 2002 - 2005 JIDE Software Inc. A...
true
true
protected void installListeners() { //David: Adding the MouseEventHandler synchronously causes a strange // initialization sequence if the popup owner is a tree/table editor: // // - The editor gets moved to its initial location based on the cell location, // generating a COMPONENT_MOVED ComponentEvent. // - ...
protected void installListeners() { //David: Adding the MouseEventHandler synchronously causes a strange // initialization sequence if the popup owner is a tree/table editor: // // - The editor gets moved to its initial location based on the cell location, // generating a COMPONENT_MOVED ComponentEvent. // - ...
diff --git a/org.promasi.client/src/org/promasi/client/playmode/multiplayer/client/clientstate/WaitingGameClientState.java b/org.promasi.client/src/org/promasi/client/playmode/multiplayer/client/clientstate/WaitingGameClientState.java index 4979931a..3aff0895 100644 --- a/org.promasi.client/src/org/promasi/client/playm...
true
true
public void onReceive(ProMaSiClient client, String recData) { try{ Object object=new XMLDecoder(new ByteArrayInputStream(recData.getBytes())).readObject(); if(object instanceof GameStartedRequest){ GameStartedRequest request=(GameStartedRequest)object; if(request.getGameModel()==null || request.getDate...
public void onReceive(ProMaSiClient client, String recData) { try{ Object object=new XMLDecoder(new ByteArrayInputStream(recData.getBytes())).readObject(); if(object instanceof GameStartedRequest){ GameStartedRequest request=(GameStartedRequest)object; if(request.getGameModel()==null || request.getDate...
diff --git a/NetBeansProjects/LoginScreen/src/loginscreen/EditAccount.java b/NetBeansProjects/LoginScreen/src/loginscreen/EditAccount.java index 380ca37..f14cab7 100644 --- a/NetBeansProjects/LoginScreen/src/loginscreen/EditAccount.java +++ b/NetBeansProjects/LoginScreen/src/loginscreen/EditAccount.java @@ -1,344 +1,34...
true
true
private void initComponents() { Calendar now = Calendar.getInstance(); int year = now.get(Calendar.YEAR); LeftJPanel = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); RICImgLabel = new javax.swing.JLabel(); RightInnerJpanel = new javax.swing.JPanel(); ye...
private void initComponents() { Calendar now = Calendar.getInstance(); int year = now.get(Calendar.YEAR); LeftJPanel = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); RICImgLabel = new javax.swing.JLabel(); RightInnerJpanel = new javax.swing.JPanel(); ye...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/Publisher.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/Publisher.java index c3126981..8d15635f 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/Publisher.java +++ b/javafx.editor/src/org/netbeans/mo...
true
true
public void run() { SafeTokenSequence<JFXTokenId> ts = getTokenSequence(doc, 0); // reformat not used for now Reformat reformat = null; int offsetDiff = 0; try { int offset = (int)(model.getImportsEnd() + 1); if (offset < 0) { offset ...
public void run() { SafeTokenSequence<JFXTokenId> ts = getTokenSequence(doc, 0); // reformat not used for now Reformat reformat = null; int offsetDiff = 0; try { int offset = (int)(model.getImportsEnd() + 1); if (offset < 0) { offset ...
diff --git a/beast-tool/src/main/java/es/upm/dit/gsi/beast/story/testCase/Scenario.java b/beast-tool/src/main/java/es/upm/dit/gsi/beast/story/testCase/Scenario.java index e9dcee4..645d1d6 100644 --- a/beast-tool/src/main/java/es/upm/dit/gsi/beast/story/testCase/Scenario.java +++ b/beast-tool/src/main/java/es/upm/dit/gs...
true
true
public void startPlatform(String platform){ connector = PlatformSelector.getConnector(platform); connector.launchPlatform(); messenger = PlatformSelector.getMessenger(platform); startAgents(); }
public void startPlatform(String platform){ this.platform = platform; connector = PlatformSelector.getConnector(platform); connector.launchPlatform(); messenger = PlatformSelector.getMessenger(platform); startAgents(); }
diff --git a/source/RMG/CheckForwardAndReverseRateCoefficients.java b/source/RMG/CheckForwardAndReverseRateCoefficients.java index e80dab36..1f437f44 100644 --- a/source/RMG/CheckForwardAndReverseRateCoefficients.java +++ b/source/RMG/CheckForwardAndReverseRateCoefficients.java @@ -1,433 +1,433 @@ import java.io.Buffe...
true
true
public static void main(String args[]) { // Specify (immediately) to the user what the class assumes System.out.println("The CheckForwardAndReverseRateCoefficients class makes the following assumptions:\n" + "\t1) The thermodynamics data for each species (NASA-7 polynomials)...
public static void main(String args[]) { // Specify (immediately) to the user what the class assumes System.out.println("The CheckForwardAndReverseRateCoefficients class makes the following assumptions:\n" + "\t1) The thermodynamics data for each species (NASA-7 polynomials)...
diff --git a/src/com/strazzere/dehose/unpacker.java b/src/com/strazzere/dehose/unpacker.java index 8d0ae2f..d0094ad 100644 --- a/src/com/strazzere/dehose/unpacker.java +++ b/src/com/strazzere/dehose/unpacker.java @@ -1,139 +1,139 @@ package com.strazzere.dehose; import java.io.IOException; import java.io.RandomAcc...
true
true
public static void main(String[] args) throws Exception { try { System.out.println("[!] Dehoser - unpacker for HoseDex2Jar packer"); System.out.println("[-] Tim Strazzere, diff@lookout.com"); byte[] file = readFile(args[0]); System.out.println(" [+] Read [ " ...
public static void main(String[] args) throws Exception { try { System.out.println("[!] Dehoser - unpacker for HoseDex2Jar packer"); System.out.println("[-] Tim Strazzere, diff@lookout.com"); byte[] file = readFile(args[0]); System.out.println(" [+] Read [ " ...
diff --git a/vcap-client/src/main/java/cf/client/model/ApplicationInstance.java b/vcap-client/src/main/java/cf/client/model/ApplicationInstance.java index 8e868d9..32cb882 100644 --- a/vcap-client/src/main/java/cf/client/model/ApplicationInstance.java +++ b/vcap-client/src/main/java/cf/client/model/ApplicationInstance....
true
true
public ApplicationInstance( @JsonProperty("state") String state, @JsonProperty("since") double since, @JsonProperty("debug_ip") String debugIp, @JsonProperty("debug_port") Integer debugPort, @JsonProperty("console_ip") String consoleIp, @JsonProperty("console_port") Integer consolePort ) { State s...
public ApplicationInstance( @JsonProperty("state") String state, @JsonProperty("since") double since, @JsonProperty("debug_ip") String debugIp, @JsonProperty("debug_port") Integer debugPort, @JsonProperty("console_ip") String consoleIp, @JsonProperty("console_port") Integer consolePort ) { State s...
diff --git a/src/com/rj/processing/mt/MTManager.java b/src/com/rj/processing/mt/MTManager.java index 35b784f..2f5a59e 100644 --- a/src/com/rj/processing/mt/MTManager.java +++ b/src/com/rj/processing/mt/MTManager.java @@ -1,81 +1,81 @@ package com.rj.processing.mt; import java.util.ArrayList; import android.vie...
true
true
public void touchEvent(MotionEvent me, int i) { int pointerId = me.getPointerId(i); float x = me.getX(i); float y = me.getY(i); float vx = 0; float vy = 0; int index = me.findPointerIndex(pointerId); if (points.size() < index+1) { //points.ensureCapacity(index+4); points.add(null); ...
public void touchEvent(MotionEvent me, int i) { int pointerId = me.getPointerId(i); float x = me.getX(i); float y = me.getY(i); float vx = 0; float vy = 0; int index = me.findPointerIndex(pointerId); if (points.size() < index+1) { //points.ensureCapacity(index+4); points.add(null); ...
diff --git a/extensions/gdx-audio/src/com/badlogic/gdx/audio/AudioBuild.java b/extensions/gdx-audio/src/com/badlogic/gdx/audio/AudioBuild.java index bc75a2606..596ac4826 100644 --- a/extensions/gdx-audio/src/com/badlogic/gdx/audio/AudioBuild.java +++ b/extensions/gdx-audio/src/com/badlogic/gdx/audio/AudioBuild.java @@ ...
false
true
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate("src", "bin", "jni", new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java", "**/Mpg123Decoder.java", "**/SoundTouch.java" }, null); String[] headerDirs = new String...
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate("src", "bin", "jni", new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java", "**/Mpg123Decoder.java", "**/SoundTouch.java" }, null); String[] headerDirs = new String...
diff --git a/src/main/java/com/pearson/ed/lplc/ws/MarshallingLicensePoolEndpoint.java b/src/main/java/com/pearson/ed/lplc/ws/MarshallingLicensePoolEndpoint.java index ed8674e..2c4ccd4 100644 --- a/src/main/java/com/pearson/ed/lplc/ws/MarshallingLicensePoolEndpoint.java +++ b/src/main/java/com/pearson/ed/lplc/ws/Marshal...
true
true
public CreateLicensePoolResponse createLicensePool( CreateLicensePoolRequest licensepoolRequest) { ServiceResponseType serviceResponseType = new ServiceResponseType(); try { CreateLicensePool createLicensePoolSchemaObj = licensepoolRequest .getCreateLicensePool(); if (logger.isDebugEnabled()) { ...
public CreateLicensePoolResponse createLicensePool( CreateLicensePoolRequest licensepoolRequest) { ServiceResponseType serviceResponseType = new ServiceResponseType(); try { CreateLicensePool createLicensePoolSchemaObj = licensepoolRequest .getCreateLicensePool(); if (logger.isDebugEnabled()) { ...
diff --git a/dspace-api/src/main/java/org/dspace/search/DSQuery.java b/dspace-api/src/main/java/org/dspace/search/DSQuery.java index 1a86122d4..45dfb4c2c 100644 --- a/dspace-api/src/main/java/org/dspace/search/DSQuery.java +++ b/dspace-api/src/main/java/org/dspace/search/DSQuery.java @@ -1,502 +1,502 @@ /* * DSQuery...
false
true
public static QueryResults doQuery(Context c, QueryArgs args) throws IOException { String querystring = args.getQuery(); QueryResults qr = new QueryResults(); List hitHandles = new ArrayList(); List hitIds = new ArrayList(); List hitTypes = new ArrayList...
public static QueryResults doQuery(Context c, QueryArgs args) throws IOException { String querystring = args.getQuery(); QueryResults qr = new QueryResults(); List hitHandles = new ArrayList(); List hitIds = new ArrayList(); List hitTypes = new ArrayList...
diff --git a/Breakout/src/com/jsteadman/Breakout/Breakout.java b/Breakout/src/com/jsteadman/Breakout/Breakout.java index 57ae0e3..03df194 100644 --- a/Breakout/src/com/jsteadman/Breakout/Breakout.java +++ b/Breakout/src/com/jsteadman/Breakout/Breakout.java @@ -1,595 +1,594 @@ package com.jsteadman.Breakout; import ...
true
true
private void moveBall() { boolean play = true; while (play) { // bounce ball off walls and ceiling if (ball.getX() >= APPLET_WIDTH - BALL_DIAMETER) { ballVX = -Math.abs(ballVX); } if (ball.getX() <= 0) { ballVX = Math.abs(ballVX); } if (ball.getY() <= 0) { ballVY = Math.abs(ballVY); ...
private void moveBall() { boolean play = true; while (play) { // bounce ball off walls and ceiling if (ball.getX() >= APPLET_WIDTH - BALL_DIAMETER) { ballVX = -Math.abs(ballVX); } if (ball.getX() <= 0) { ballVX = Math.abs(ballVX); } if (ball.getY() <= 0) { ballVY = Math.abs(ballVY); ...
diff --git a/pixmind/src/com/pix/mind/levels/FirstLevel.java b/pixmind/src/com/pix/mind/levels/FirstLevel.java index 6fb6865..acb08c4 100644 --- a/pixmind/src/com/pix/mind/levels/FirstLevel.java +++ b/pixmind/src/com/pix/mind/levels/FirstLevel.java @@ -1,315 +1,317 @@ package com.pix.mind.levels; import java.util.A...
false
true
public void show() { // TODO Auto-generated method stub // float w = Gdx.graphics.getWidth(); // float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(PixMindGame.w * PixMindGame.WORLD_TO_BOX, PixMindGame.h * PixMindGame.WORLD_TO_BOX); camera.translate(PixMindGame.w / 2 * PixMindGame.W...
public void show() { // TODO Auto-generated method stub // float w = Gdx.graphics.getWidth(); // float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(PixMindGame.w * PixMindGame.WORLD_TO_BOX, PixMindGame.h * PixMindGame.WORLD_TO_BOX); camera.translate(PixMindGame.w / 2 * PixMindGame.W...
diff --git a/gpswinggui/src/main/java/org/geopublishing/geopublisher/gui/GpFrame.java b/gpswinggui/src/main/java/org/geopublishing/geopublisher/gui/GpFrame.java index 51813a4c..7b6c65eb 100644 --- a/gpswinggui/src/main/java/org/geopublishing/geopublisher/gui/GpFrame.java +++ b/gpswinggui/src/main/java/org/geopublishing...
true
true
private JMenu getOptionsMenu() { final AtlasConfigEditable ace = gp.getAce(); JMenu optionsMenu = new JMenu(R("MenuBar.OptionsMenu")); final JMenuItem optionsMenuItem = new JMenuItem(new AbstractAction( "Einstellungen") { @Override public void actionPerformed(ActionEvent arg0) { new GpOptionsDial...
private JMenu getOptionsMenu() { final AtlasConfigEditable ace = gp.getAce(); JMenu optionsMenu = new JMenu(R("MenuBar.OptionsMenu")); final JMenuItem optionsMenuItem = new JMenuItem(new AbstractAction(R("GpOptionsDialog.title")) { @Override public void actionPerformed(ActionEvent arg0) { new GpOptio...
diff --git a/src/hexgui/sgf/SgfWriter.java b/src/hexgui/sgf/SgfWriter.java index 3c04b57..9fa7f7f 100644 --- a/src/hexgui/sgf/SgfWriter.java +++ b/src/hexgui/sgf/SgfWriter.java @@ -1,144 +1,144 @@ //---------------------------------------------------------------------------- // $Id$ //------------------------------...
true
true
private void writeNode(Node node, boolean isroot) { print(";"); if (isroot) { String value; node.setSgfProperty("FF", "4"); node.setSgfProperty("AP", "HexGui:"+Version.id+"."+Version.build); node.setSgfProperty("GM", "11"); Dimension dim = m_gameinfo.getBoardSize(); value...
private void writeNode(Node node, boolean isroot) { print(";"); if (isroot) { String value; node.setSgfProperty("FF", "4"); node.setSgfProperty("AP", "HexGui:"+Version.id); node.setSgfProperty("GM", "11"); Dimension dim = m_gameinfo.getBoardSize(); value = Integer.toStrin...
diff --git a/src/main/java/bang/bang/App.java b/src/main/java/bang/bang/App.java index 55ddadf..713a160 100644 --- a/src/main/java/bang/bang/App.java +++ b/src/main/java/bang/bang/App.java @@ -1,740 +1,740 @@ package bang.bang; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import...
true
true
public static void main( String[] args ) { boolean start = true; File file = new File("bang.txt"); //card holders // String colorOfCard = ""; // String B1 = ""; // String B2 = ""; lastModifiedDate = file.lastModified(); BufferedReader reader = null; try { reader = new Bu...
public static void main( String[] args ) { boolean start = true; File file = new File("bang.txt"); //card holders // String colorOfCard = ""; // String B1 = ""; // String B2 = ""; lastModifiedDate = file.lastModified(); BufferedReader reader = null; try { reader = new Bu...
diff --git a/api_test/APITest.java b/api_test/APITest.java index 12fcf5c..af2fa4f 100644 --- a/api_test/APITest.java +++ b/api_test/APITest.java @@ -1,129 +1,129 @@ import clj_span.java_span_bridge; import java.util.HashMap; public class APITest { public static void main(String[] args) { int rows...
true
true
public static void main(String[] args) { int rows = 10; int cols = 10; double[] sourceLayer = {0.0,100.0,0.0,0.0,0.0,100.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, ...
public static void main(String[] args) { int rows = 10; int cols = 10; double[] sourceLayer = {0.0,100.0,0.0,0.0,0.0,100.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, 0.0, 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0, 0.0,0.0, ...
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_urbandictionary.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_urbandictionary.java index 098c26b..a9f0939 100644 --- a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_urbandic...
true
true
public static Boolean run(CommandSender sender, String alias, String[] args) { if(PlayerHelper.checkIsPlayer(sender) && !Utils.checkCommandSpam((Player)sender, "urbandictionary") && Permissions.checkPerms((Player)sender, "cex.urbandictionary")) { if(args.length == 1) { String def = null; try { LogHel...
public static Boolean run(CommandSender sender, String alias, String[] args) { if(PlayerHelper.checkIsPlayer(sender) && !Utils.checkCommandSpam((Player)sender, "urbandictionary") && Permissions.checkPerms((Player)sender, "cex.urbandictionary")) { if(args.length == 1) { String def = null; try { LogHel...
diff --git a/android-app/src/main/java/com/afzaln/mi_chat/activity/MessagesActivity.java b/android-app/src/main/java/com/afzaln/mi_chat/activity/MessagesActivity.java index 65d05f2..204e4b9 100644 --- a/android-app/src/main/java/com/afzaln/mi_chat/activity/MessagesActivity.java +++ b/android-app/src/main/java/com/afzal...
true
true
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { int prevCount = mAdapter.getCount(); boolean isListAtEnd = mListView.getLastVisiblePosition() == (prevCount - 1); mAdapter.changeCursor(cursor); showRefreshProgressBar(false); int newCount = mAdapter.getCount(...
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { int prevCount = mAdapter.getCount(); boolean isListAtEnd = mListView.getLastVisiblePosition() == (prevCount - 1); mAdapter.changeCursor(cursor); showRefreshProgressBar(false); int newCount = mAdapter.getCount(...