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/coms_362_java/src/id3TagStuff/id3Data/ID3_String.java b/coms_362_java/src/id3TagStuff/id3Data/ID3_String.java index 757d7aa..8f53a3f 100644 --- a/coms_362_java/src/id3TagStuff/id3Data/ID3_String.java +++ b/coms_362_java/src/id3TagStuff/id3Data/ID3_String.java @@ -1,49 +1,49 @@ package id3TagStuff.id3Data;...
true
true
private static String trimNullChars(String data2) { String dat = data2; if (!(Character.isDigit(dat.charAt(0)) || Character.isLetter(dat.charAt(0)))) { dat = dat.substring(1); } if (!(Character.isDigit(dat.charAt(dat.length() - 1)) || Character.isLetter(dat .charAt(dat.length() - 1)))) { dat = dat.su...
public static String trimNullChars(String data2) { String dat = data2; if (!(Character.isDigit(dat.charAt(0)) || Character.isLetter(dat.charAt(0)))) { dat = dat.substring(1); } if (!(Character.isDigit(dat.charAt(dat.length() - 1)) || Character.isLetter(dat .charAt(dat.length() - 1)))) { dat = dat.sub...
diff --git a/game/things/Door.java b/game/things/Door.java index 04339ed..7279969 100644 --- a/game/things/Door.java +++ b/game/things/Door.java @@ -1,142 +1,142 @@ package game.things; import java.util.ArrayList; import java.util.List; import util.Direction; import serialization.*; import game.*; publ...
true
true
public static void makeSerializer(SerializerUnion<GameThing> union, final GameWorld world){ union.addIdentifier(new SerializerUnion.Identifier<GameThing>(){ public String type(GameThing g){ return g instanceof Door? "door" : null; } }); union.addSerializer("door", new Serializer<GameThing>(){ publi...
public static void makeSerializer(SerializerUnion<GameThing> union, final GameWorld world){ union.addIdentifier(new SerializerUnion.Identifier<GameThing>(){ public String type(GameThing g){ return g instanceof Door? "door" : null; } }); union.addSerializer("door", new Serializer<GameThing>(){ publi...
diff --git a/src/com/tools/tvguide/managers/DnsManager.java b/src/com/tools/tvguide/managers/DnsManager.java index 354809c..cff055b 100644 --- a/src/com/tools/tvguide/managers/DnsManager.java +++ b/src/com/tools/tvguide/managers/DnsManager.java @@ -1,75 +1,77 @@ package com.tools.tvguide.managers; import java.net.I...
true
true
private String getIPFrom_chinaz(final String hostName) { String ipAddress = null; String url = UrlManager.URL_CHINAZ_IP + "?IP=" + hostName; NetDataGetter getter; try { getter = new NetDataGetter(url); String html = getter.getStringData(); ...
private String getIPFrom_chinaz(final String hostName) { String ipAddress = null; String url = UrlManager.URL_CHINAZ_IP + "?IP=" + hostName; NetDataGetter getter; try { getter = new NetDataGetter(url); String html = getter.getStringData(); ...
diff --git a/fap/app/controllers/fap/LoggerController.java b/fap/app/controllers/fap/LoggerController.java index 521a3a87..5e1d9597 100644 --- a/fap/app/controllers/fap/LoggerController.java +++ b/fap/app/controllers/fap/LoggerController.java @@ -1,276 +1,276 @@ package controllers.fap; import play.*; import pla...
true
true
public static void logs(long fecha1, long fecha2) throws IOException{ Date date1 = new Date(fecha1); Date date2 = new Date(fecha2); int logsD=0, logsA=0; ArrayList<String> borrarDaily = new ArrayList<String>(); ArrayList<String> borrarAuditable = new ArrayList<String>(); Gson gson = new Gson(); ArrayList...
public static void logs(long fecha1, long fecha2) throws IOException{ Date date1 = new Date(fecha1); Date date2 = new Date(fecha2); int logsD=0, logsA=0; ArrayList<String> borrarDaily = new ArrayList<String>(); ArrayList<String> borrarAuditable = new ArrayList<String>(); Gson gson = new Gson(); ArrayList...
diff --git a/src/codegen/DebugCodeInserter.java b/src/codegen/DebugCodeInserter.java index 230b4d0..2e9e0bc 100644 --- a/src/codegen/DebugCodeInserter.java +++ b/src/codegen/DebugCodeInserter.java @@ -1,331 +1,331 @@ /* * Tracing debug code insertion utility. * Copyright (C) 2013 Zuben El Acribi * * This prog...
true
true
void insertDebugCode(Tree tree) { if (tree.def.parent.node.equals("MethodDeclaratorRest")) { // MethodDeclaratorRest: FormalParameters {'[' ']'} ['throws' QualifiedIdentifierList] (Block | ';') Tree params = tree.branches.get(0); tree = tree.branches.get(3).branches.get(0); if (tree == null) { return; ...
void insertDebugCode(Tree tree) { if (tree.def.parent.node.equals("MethodDeclaratorRest")) { // MethodDeclaratorRest: FormalParameters {'[' ']'} ['throws' QualifiedIdentifierList] (Block | ';') Tree params = tree.branches.get(0); tree = tree.branches.get(3).branches.get(0); if (tree == null) { return; ...
diff --git a/src/com/winthier/simpleshop/sql/ListTransactionsRequest.java b/src/com/winthier/simpleshop/sql/ListTransactionsRequest.java index 701d7a7..7bb42af 100644 --- a/src/com/winthier/simpleshop/sql/ListTransactionsRequest.java +++ b/src/com/winthier/simpleshop/sql/ListTransactionsRequest.java @@ -1,153 +1,155 @@...
true
true
public void result(ResultSet result) throws SQLException { Util.sendMessage(sender, "&bTransaction log for %s (page %d/%d)", owner, page + 1, (count - 1) / PAGE_SIZE + 1); while (result.next()) { String name; final String matName = ...
public void result(ResultSet result) throws SQLException { Util.sendMessage(sender, "&bTransaction log for %s (page %d/%d)", owner, page + 1, (count - 1) / PAGE_SIZE + 1); while (result.next()) { String name; final String matName = ...
diff --git a/crypto/src/org/bouncycastle/jce/provider/EC5Util.java b/crypto/src/org/bouncycastle/jce/provider/EC5Util.java index 9fbc0218..0a940e50 100644 --- a/crypto/src/org/bouncycastle/jce/provider/EC5Util.java +++ b/crypto/src/org/bouncycastle/jce/provider/EC5Util.java @@ -1,54 +1,54 @@ package org.bouncycastle.j...
true
true
static EllipticCurve convertCurve( ECCurve curve, byte[] seed) { if (curve instanceof ECCurve.Fp) { return new EllipticCurve(new ECFieldFp(((ECCurve.Fp)curve).getQ()), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed); } else { ...
static EllipticCurve convertCurve( ECCurve curve, byte[] seed) { if (curve instanceof ECCurve.Fp) { return new EllipticCurve(new ECFieldFp(((ECCurve.Fp)curve).getQ()), curve.getA().toBigInteger(), curve.getB().toBigInteger(), seed); } else { ...
diff --git a/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/LevelCreator.java b/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/LevelCreator.java index a89f3aa6b..672b80e2e 100644 --- a/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/LevelCreator.java +++ b/src/main/java/de/Keyle/MyPet/gui/skilltreecreator/Level...
true
true
public LevelCreator() { if (skillNames == null) { skillNames = new String[SkillsInfo.getRegisteredSkillsInfo().size()]; int skillCounter = 0; for (Class<? extends SkillTreeSkill> clazz : SkillsInfo.getRegisteredSkillsInfo()) { Skill...
public LevelCreator() { if (skillNames == null) { skillNames = new String[SkillsInfo.getRegisteredSkillsInfo().size()]; int skillCounter = 0; for (Class<? extends SkillTreeSkill> clazz : SkillsInfo.getRegisteredSkillsInfo()) { Skill...
diff --git a/scriptbuilder/src/test/java/org/jclouds/scriptbuilder/domain/UnzipHttpResponseIntoDirectoryToTest.java b/scriptbuilder/src/test/java/org/jclouds/scriptbuilder/domain/UnzipHttpResponseIntoDirectoryToTest.java index 3395c1bb92..a3d12b410e 100644 --- a/scriptbuilder/src/test/java/org/jclouds/scriptbuilder/dom...
true
true
public void testUnzipHttpResponseIntoDirectoryUNIX() { assertEquals( jboss.render(OsFamily.UNIX), "(mkdir -p /tmp &&cd /tmp &&curl -X GET -s --retry 20 http://superb-sea2.dl.sourceforge.net/project/jboss/JBoss/JBoss-5.0.0.CR2/jboss-5.0.0.CR2-jdk6.zip >extract.zip && unzip -o -qq ...
public void testUnzipHttpResponseIntoDirectoryUNIX() { assertEquals( jboss.render(OsFamily.UNIX), "(mkdir -p /tmp &&cd /tmp &&curl -X -L GET -s --retry 20 http://superb-sea2.dl.sourceforge.net/project/jboss/JBoss/JBoss-5.0.0.CR2/jboss-5.0.0.CR2-jdk6.zip >extract.zip && unzip -o -...
diff --git a/TinyTank/src/com/tiny/tank/Tank.java b/TinyTank/src/com/tiny/tank/Tank.java index 54c4e0b..bf672aa 100644 --- a/TinyTank/src/com/tiny/tank/Tank.java +++ b/TinyTank/src/com/tiny/tank/Tank.java @@ -1,556 +1,558 @@ package com.tiny.tank; import java.util.ArrayList; import org.newdawn.slick.GameContaine...
false
true
public void update(GameContainer container, Camera cam) { Input input = container.getInput(); // state handeling if falling if (isFalling) { isMoving = false; animationCounter += 1; if (animationCounter > animationLimit) { pos.y += 1; hitbox.setBounds(pos.x, pos.y, tankWidth, tankHeight); ...
public void update(GameContainer container, Camera cam) { Input input = container.getInput(); // state handeling if falling if (isFalling) { isMoving = false; animationCounter += 1; if (animationCounter > animationLimit) { pos.y += 1; hitbox.setBounds(pos.x, pos.y, tankWidth, tankHeight); ...
diff --git a/plugins/org.bonitasoft.studio.connectors/src/org/bonitasoft/studio/connectors/ui/wizard/EditConnectorConfigurationWizard.java b/plugins/org.bonitasoft.studio.connectors/src/org/bonitasoft/studio/connectors/ui/wizard/EditConnectorConfigurationWizard.java index 08ce0a7558..f450bea229 100644 --- a/plugins/org...
true
true
public IWizardPage getNextPage(IWizardPage page) { if(page.equals(selectConfigurationPage)){ final ConnectorConfiguration conf = selectConfigurationPage.getSelectedConfiguration(); if(conf != null){ ConnectorDefinition definition = connectorDefStore.getDefinition(conf.getDefinitionId(), conf.getVersion());...
public IWizardPage getNextPage(IWizardPage page) { if(page.equals(selectConfigurationPage)){ final ConnectorConfiguration conf = selectConfigurationPage.getSelectedConfiguration(); if(conf != null){ ConnectorDefinition definition = connectorDefStore.getDefinition(conf.getDefinitionId(), conf.getVersion());...
diff --git a/src/main/java/com/beayoscar/babynames/web/NameController.java b/src/main/java/com/beayoscar/babynames/web/NameController.java index 1220eff..00a8903 100644 --- a/src/main/java/com/beayoscar/babynames/web/NameController.java +++ b/src/main/java/com/beayoscar/babynames/web/NameController.java @@ -1,45 +1,45 ...
true
true
public ResponseEntity<String> updateFromJsonw(@PathVariable("id") Long id) { Name name = Name.findName(id); name.setVote(name.getVote() + 1); HttpHeaders headers= new HttpHeaders(); headers.add("Content-Type", "application/text"); if (name.merge() == null) { return new ...
public ResponseEntity<String> likeName(@PathVariable("id") Long id) { Name name = Name.findName(id); name.setVote(name.getVote() + 1); HttpHeaders headers= new HttpHeaders(); headers.add("Content-Type", "application/text"); if (name.merge() == null) { return new Respons...
diff --git a/src/java/com/threerings/config/dist/server/DConfigManager.java b/src/java/com/threerings/config/dist/server/DConfigManager.java index 1b4da2cd..76defdeb 100644 --- a/src/java/com/threerings/config/dist/server/DConfigManager.java +++ b/src/java/com/threerings/config/dist/server/DConfigManager.java @@ -1,127...
false
true
public void updateConfigs ( ClientObject caller, ConfigEntry[] add, ConfigEntry[] update, ConfigKey[] remove) { // make sure they're an admin if (!((BodyObject)caller).getTokens().isAdmin()) { log.warning("Non-admin tried to update configs.", "who", caller.who()); ...
public void updateConfigs ( ClientObject caller, ConfigEntry[] add, ConfigEntry[] update, ConfigKey[] remove) { // make sure they're an admin if (!((BodyObject)caller).getTokens().isAdmin()) { log.warning("Non-admin tried to update configs.", "who", caller.who()); ...
diff --git a/deegree2-core/src/main/java/org/deegree/enterprise/servlet/SimpleProxyServlet.java b/deegree2-core/src/main/java/org/deegree/enterprise/servlet/SimpleProxyServlet.java index 2a39e4c..2ca5f55 100644 --- a/deegree2-core/src/main/java/org/deegree/enterprise/servlet/SimpleProxyServlet.java +++ b/deegree2-core/...
true
true
protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { InputStream is = null; OutputStream os = null; try { String query = request.getQueryString(); Map<String, String> map = ...
protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { InputStream is = null; OutputStream os = null; try { String query = request.getQueryString(); Map<String, String> map = ...
diff --git a/src/loop/LoopShell.java b/src/loop/LoopShell.java index 5b0dca8..c42818f 100644 --- a/src/loop/LoopShell.java +++ b/src/loop/LoopShell.java @@ -1,398 +1,399 @@ package loop; import jline.console.ConsoleReader; import jline.console.completer.Completer; import jline.console.completer.FileNameCompleter;...
true
true
public static void shell() { System.out.println("loOp (http://looplang.org)"); System.out.println(" by Dhanji R. Prasanna\n"); try { ConsoleReader reader = new ConsoleReader(); reader.addCompleter(new MetaCommandCompleter()); Unit shellScope = new Unit(null, ModuleDecl.SHELL); ...
public static void shell() { System.out.println("loOp (http://looplang.org)"); System.out.println(" by Dhanji R. Prasanna\n"); try { ConsoleReader reader = new ConsoleReader(); reader.setExpandEvents(false); reader.addCompleter(new MetaCommandCompleter()); Unit shellScope = n...
diff --git a/WiFiServer/src/org/openintents/wifiserver/requesthandler/FileHandler.java b/WiFiServer/src/org/openintents/wifiserver/requesthandler/FileHandler.java index 6442123..73745be 100644 --- a/WiFiServer/src/org/openintents/wifiserver/requesthandler/FileHandler.java +++ b/WiFiServer/src/org/openintents/wifiserver...
false
true
public void handle(final HttpRequest request, final HttpResponse response, HttpContext context) throws HttpException, IOException { String path = Uri.parse(request.getRequestLine().getUri()).getPath(); AbstractHttpEntity entity; if ("/".equals(path)) { response.setStatusCode(301...
public void handle(final HttpRequest request, final HttpResponse response, HttpContext context) throws HttpException, IOException { String path = Uri.parse(request.getRequestLine().getUri()).getPath(); AbstractHttpEntity entity; if ("/".equals(path)) { response.setStatusCode(301...
diff --git a/src/main/java/org/mozilla/gecko/background/fxa/FxAccount20CreateDelegate.java b/src/main/java/org/mozilla/gecko/background/fxa/FxAccount20CreateDelegate.java index 6681c03be..e9f7556cf 100644 --- a/src/main/java/org/mozilla/gecko/background/fxa/FxAccount20CreateDelegate.java +++ b/src/main/java/org/mozilla...
true
true
public JSONObject getCreateBody() throws FxAccountClientException { final JSONObject body = new JSONObject(); try { body.put("email", new String(emailUTF8, "UTF-8")); body.put("authPW", Utils.byte2Hex(authPW)); body.put("preVerified", preVerified); return body; } catch (Unsupported...
public JSONObject getCreateBody() throws FxAccountClientException { final JSONObject body = new JSONObject(); try { body.put("email", new String(emailUTF8, "UTF-8")); body.put("authPW", Utils.byte2Hex(authPW)); if (preVerified) { // Production endpoints do not allow preVerified; this...
diff --git a/src/commons/org/codehaus/groovy/grails/cli/support/GrailsStarter.java b/src/commons/org/codehaus/groovy/grails/cli/support/GrailsStarter.java index ea04944c9..2d270bdcf 100644 --- a/src/commons/org/codehaus/groovy/grails/cli/support/GrailsStarter.java +++ b/src/commons/org/codehaus/groovy/grails/cli/suppor...
true
true
public static void rootLoader(String args[]) { final String separator = System.getProperty("file.separator"); // Set some default values for various system properties if // they don't already have values. String javaVersion = System.getProperty("java.version"); String grails...
public static void rootLoader(String args[]) { final String separator = System.getProperty("file.separator"); // Set some default values for various system properties if // they don't already have values. String javaVersion = System.getProperty("java.version"); String grails...
diff --git a/uk.ac.diamond.scisoft.analysis/test/uk/ac/diamond/scisoft/analysis/dataset/LazyDatasetTest.java b/uk.ac.diamond.scisoft.analysis/test/uk/ac/diamond/scisoft/analysis/dataset/LazyDatasetTest.java index 018dc9396..972262d25 100644 --- a/uk.ac.diamond.scisoft.analysis/test/uk/ac/diamond/scisoft/analysis/datase...
true
true
public void testGetSlice() { final AbstractDataset d = Random.randn(new int[] {1, 2, 3, 4}); LazyDataset ld = new LazyDataset("", AbstractDataset.INT, new int[] {1, 2, 3, 4}, new ILazyLoader() { @Override public boolean isFileReadable() { return true; } @Override public AbstractDataset getDa...
public void testGetSlice() { final AbstractDataset d = Random.randn(new int[] {1, 2, 3, 4}); LazyDataset ld = new LazyDataset("", AbstractDataset.INT, new int[] {1, 2, 3, 4}, new ILazyLoader() { @Override public boolean isFileReadable() { return true; } @Override public AbstractDataset getDa...
diff --git a/src/net/ooici/eoi/datasetagent/impl/UsgsAgent.java b/src/net/ooici/eoi/datasetagent/impl/UsgsAgent.java index ab5e4fa..b3e7aeb 100644 --- a/src/net/ooici/eoi/datasetagent/impl/UsgsAgent.java +++ b/src/net/ooici/eoi/datasetagent/impl/UsgsAgent.java @@ -1,1670 +1,1670 @@ /* * File Name: UsgsAgent.java ...
true
true
public IObservationGroup wsDV_parseObservations(Reader rdr) { /* TODO: Fix exception handling in this method, it is too generic; try/catch blocks should be as confined as possible */ /** XPATH queries */ final String XPATH_ELEMENT_TIME_SERIES = ".//ns1:timeSeries"; final String XPAT...
public IObservationGroup wsDV_parseObservations(Reader rdr) { /* TODO: Fix exception handling in this method, it is too generic; try/catch blocks should be as confined as possible */ /** XPATH queries */ final String XPATH_ELEMENT_TIME_SERIES = ".//ns1:timeSeries"; final String XPAT...
diff --git a/src/main/java/org/jvnet/hudson/plugins/DownstreamBuildViewUpdateListener.java b/src/main/java/org/jvnet/hudson/plugins/DownstreamBuildViewUpdateListener.java index 7fba3be..121ea79 100644 --- a/src/main/java/org/jvnet/hudson/plugins/DownstreamBuildViewUpdateListener.java +++ b/src/main/java/org/jvnet/hudso...
false
true
public void onStarted(AbstractBuild r,TaskListener listener) { //build = r; CauseAction ca = r.getAction(CauseAction.class); if (ca == null || ca.getCauses() ==null) { return; } for (Cause c : ca.getCauses()){ if( c instanceof UpstreamCause){ UpstreamCause ...
public void onStarted(AbstractBuild r,TaskListener listener) { //build = r; CauseAction ca = r.getAction(CauseAction.class); if (ca == null || ca.getCauses() ==null) { return; } for (Cause c : ca.getCauses()){ if( c instanceof UpstreamCause){ UpstreamCause ...
diff --git a/src/rapidshare/cz/vity/freerapid/plugins/services/rapidshare/MirrorChooser.java b/src/rapidshare/cz/vity/freerapid/plugins/services/rapidshare/MirrorChooser.java index a76d5d0b..4c2ec837 100644 --- a/src/rapidshare/cz/vity/freerapid/plugins/services/rapidshare/MirrorChooser.java +++ b/src/rapidshare/cz/vit...
true
true
private void makeMirrorList() throws Exception { logger.info("Making list of mirrors "); mirrorConfig.getAr().add(MirrorBean.createDefault()); Matcher matcher = PlugUtils.matcher("<input (checked)? type=\"radio\" name=\"mirror\" onclick=\"document.dlf.action=.'http://rs[0-9]+([^.]+)[^']*.';\...
private void makeMirrorList() throws Exception { logger.info("Making list of mirrors "); mirrorConfig.getAr().add(MirrorBean.createDefault()); Matcher matcher = PlugUtils.matcher("<input (checked)? type=\"radio\" name=\"mirror\" onclick=\"document.dlf.action=.'http://rs[0-9]+([^.]+)[^']*.';\...
diff --git a/api/src/main/java/org/openmrs/module/spreadsheetimport/SpreadsheetImportUtil.java b/api/src/main/java/org/openmrs/module/spreadsheetimport/SpreadsheetImportUtil.java index 9b270c0..ccb809e 100644 --- a/api/src/main/java/org/openmrs/module/spreadsheetimport/SpreadsheetImportUtil.java +++ b/api/src/main/java...
true
true
public static File importTemplate(SpreadsheetImportTemplate template, MultipartFile file, String sheetName, List<String> messages, boolean rollbackTransaction) throws Exception { if (file.isEmpty()) { messages.add("file must not be empty"); return null; } // Open f...
public static File importTemplate(SpreadsheetImportTemplate template, MultipartFile file, String sheetName, List<String> messages, boolean rollbackTransaction) throws Exception { if (file.isEmpty()) { messages.add("file must not be empty"); return null; } // Open f...
diff --git a/contrib/src/main/java/com/datatorrent/contrib/summit/ads/BucketOperator.java b/contrib/src/main/java/com/datatorrent/contrib/summit/ads/BucketOperator.java index d49d8ac04..6da5f4203 100644 --- a/contrib/src/main/java/com/datatorrent/contrib/summit/ads/BucketOperator.java +++ b/contrib/src/main/java/com/da...
true
true
public void process(AdInfo tuple) { Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(tuple.getTimestamp()); AggrKey aggrKey = new AggrKey(calendar,AggrKey.TIMESPEC_MINUTE_SPEC, tuple.getPublisherId(), tuple.getAdvertiserId(), tuple.getAdUnit()); Map<String, MutableDou...
public void process(AdInfo tuple) { Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(tuple.getTimestamp()); AggrKey aggrKey = new AggrKey(calendar,AggrKey.TIMESPEC_MINUTE_SPEC, tuple.getPublisherId(), tuple.getAdvertiserId(), tuple.getAdUnit()); Map<String, MutableDou...
diff --git a/Charm_Tree/src/net/sf/anathema/character/generic/framework/magic/stringbuilder/CharmKeywordsStringBuilder.java b/Charm_Tree/src/net/sf/anathema/character/generic/framework/magic/stringbuilder/CharmKeywordsStringBuilder.java index 8a9496c5fc..998a38d71a 100644 --- a/Charm_Tree/src/net/sf/anathema/character/...
true
true
public void buildStringForMagic(StringBuilder builder, IMagic magic, Object details) { if (magic instanceof ICharm) { ICharm charm = (ICharm)magic; StringBuilder listBuilder = new StringBuilder(); for (ICharmAttribute attribute : charm.getAttributes()) { if (attribute.isVisualized()) { ...
public void buildStringForMagic(StringBuilder builder, IMagic magic, Object details) { if (magic instanceof ICharm) { ICharm charm = (ICharm)magic; StringBuilder listBuilder = new StringBuilder(); for (ICharmAttribute attribute : charm.getAttributes()) { if (attribute.isVisualized()) { ...
diff --git a/12_testing/Initials.java b/12_testing/Initials.java index 5f8c8e8..6c83791 100644 --- a/12_testing/Initials.java +++ b/12_testing/Initials.java @@ -1,16 +1,16 @@ public class Initials { public static String getInitials(String fullName) { String result = ""; - String[] words = fullName.split(" "...
true
true
public static String getInitials(String fullName) { String result = ""; String[] words = fullName.split(" "); for (int i = 0; i < words.length; i++) { String nextInitial = "" + words[i].charAt(0); result = result + nextInitial.toUpperCase(); } return result; }
public static String getInitials(String fullName) { String result = ""; String[] words = fullName.split("\\s+"); for (int i = 0; i < words.length; i++) { String nextInitial = "" + words[i].charAt(0); result = result + nextInitial.toUpperCase(); } return result; }
diff --git a/src/com/nadmm/airports/e6b/AltitudesFragment.java b/src/com/nadmm/airports/e6b/AltitudesFragment.java index fcf0ae61..e430a829 100644 --- a/src/com/nadmm/airports/e6b/AltitudesFragment.java +++ b/src/com/nadmm/airports/e6b/AltitudesFragment.java @@ -1,116 +1,116 @@ /* * FlightIntel for Pilots * * Co...
false
true
private void processInput() { long elevation = -1; double altimeter = -1; double temperature = -1; try { elevation = Long.valueOf( mElevationEdit.getText().toString() ); altimeter = Double.valueOf( mAltimeterEdit.getText().toString() ); temperatur...
private void processInput() { long elevation = -1; double altimeter = -1; double temperatureC = -1; try { elevation = Long.valueOf( mElevationEdit.getText().toString() ); altimeter = Double.valueOf( mAltimeterEdit.getText().toString() ); temperatu...
diff --git a/tds/src/main/java/thredds/servlet/ThreddsDefaultServlet.java b/tds/src/main/java/thredds/servlet/ThreddsDefaultServlet.java index b3828c3a4..3227091ed 100644 --- a/tds/src/main/java/thredds/servlet/ThreddsDefaultServlet.java +++ b/tds/src/main/java/thredds/servlet/ThreddsDefaultServlet.java @@ -1,872 +1,87...
true
true
protected void makeDebugActions() { DebugHandler debugHandler = DebugHandler.get("General"); DebugHandler.Action act; act = new DebugHandler.Action("showVersion", "Show Build Version") { public void doAction(DebugHandler.Event e) { try { thredds.util.IO.copyFile(rootPath+"docs/REA...
protected void makeDebugActions() { DebugHandler debugHandler = DebugHandler.get("General"); DebugHandler.Action act; act = new DebugHandler.Action("showVersion", "Show Build Version") { public void doAction(DebugHandler.Event e) { try { thredds.util.IO.copyFile(rootPath+"docs/REA...
diff --git a/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java b/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java index 5700b015..2742340b 100644 --- a/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java +++ b/application/src/main/java/org/richfaces/te...
true
true
private void createComponentsMap() { components = new TreeMap<String, String>(); components.put("a4jActionListener", "A4J Action Listener"); components.put("a4jAjax", "A4J Ajax"); components.put("a4jAttachQueue", "A4J Attach Queue"); components.put("a4jCommandLink", "A4J Com...
private void createComponentsMap() { components = new TreeMap<String, String>(); components.put("a4jActionListener", "A4J Action Listener"); components.put("a4jAjax", "A4J Ajax"); components.put("a4jAttachQueue", "A4J Attach Queue"); components.put("a4jCommandLink", "A4J Com...
diff --git a/utils/CompareTrees.java b/utils/CompareTrees.java index 699359df9..fca1de827 100644 --- a/utils/CompareTrees.java +++ b/utils/CompareTrees.java @@ -1,103 +1,103 @@ // CompareTrees.java import java.io.File; import java.util.Arrays; /** * Compares the paths specified as command line arguments, outp...
false
true
public static final void compare(File dir1, File dir2) { if (dir1 == null && dir2 == null) return; if (dir2 == null) { System.out.println("<<< " + dir1 + " (" + dir1.listFiles().length + " files)"); return; } if (dir1 == null) { System.out.println(">>> " + dir2 + " (" + ...
public static final void compare(File dir1, File dir2) { if (dir1 == null && dir2 == null) return; if (dir2 == null) { System.out.println("<<< " + dir1 + "\t[" + dir1.listFiles().length + " files]"); return; } if (dir1 == null) { System.out.println(">>> " + dir2 + "\t[" + ...
diff --git a/src/main/java/hudson/plugins/cvs_tag/CvsTagPlugin.java b/src/main/java/hudson/plugins/cvs_tag/CvsTagPlugin.java index e0abd85..58f84ee 100644 --- a/src/main/java/hudson/plugins/cvs_tag/CvsTagPlugin.java +++ b/src/main/java/hudson/plugins/cvs_tag/CvsTagPlugin.java @@ -1,189 +1,189 @@ package hudson.plugins...
true
true
public static boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, String tagName) { PrintStream logger = listener.getLogger(); if (!Result.SUCCESS.equals(build.getResult())) { logger.println("Skipping CVS Tagging as build result was not successful."); return true; } ...
public static boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, String tagName) { PrintStream logger = listener.getLogger(); if (!Result.SUCCESS.equals(build.getResult())) { logger.println("Skipping CVS Tagging as build result was not successful."); return true; } ...
diff --git a/src/main/java/com/conventnunnery/libraries/config/ConventConfigurationManager.java b/src/main/java/com/conventnunnery/libraries/config/ConventConfigurationManager.java index 7231487..f1cde48 100644 --- a/src/main/java/com/conventnunnery/libraries/config/ConventConfigurationManager.java +++ b/src/main/java/...
true
true
public ConventConfigurationGroup loadConventConfigurationGroup(File directory) throws IllegalArgumentException { if (directory == null) { throw new IllegalArgumentException(directory.getPath() + " cannot be null"); } if (!directory.isDirectory()) { throw new IllegalArgumentException(directory.getPath() + "...
public ConventConfigurationGroup loadConventConfigurationGroup(File directory) throws IllegalArgumentException { if (directory == null) { throw new IllegalArgumentException(directory.getPath() + " cannot be null"); } if (!directory.exists() && directory.getName().endsWith("/")) { directory.mkdirs(); } ...
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java index 57cf3cfa7..77613b526 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn...
true
true
private boolean initializeNewTaskDataAttributes(RepositoryConfiguration repositoryConfiguration, TaskData taskData, String product, String component, IProgressMonitor monitor) { TaskAttribute productAttribute = createAttribute(taskData, BugzillaAttribute.PRODUCT); productAttribute.setValue(product); List<St...
private boolean initializeNewTaskDataAttributes(RepositoryConfiguration repositoryConfiguration, TaskData taskData, String product, String component, IProgressMonitor monitor) { TaskAttribute productAttribute = createAttribute(taskData, BugzillaAttribute.PRODUCT); productAttribute.setValue(product); List<St...
diff --git a/Tarsus/src/java/GameInstance.java b/Tarsus/src/java/GameInstance.java index bac5480..4f3952a 100644 --- a/Tarsus/src/java/GameInstance.java +++ b/Tarsus/src/java/GameInstance.java @@ -1,2899 +1,2899 @@ /******************************************************* * Class for game instances, will be associated...
true
true
private stateEnum battleState(PrintWriter out, HttpServletRequest request) { if(startingState != stateEnum.BATTLE) { //add a default aresChar incase the getNexrEnemy does not work Integer Level = playerChar.getLevel(); Item[] itemsHeld = {generateWeapon(Level +1),...
private stateEnum battleState(PrintWriter out, HttpServletRequest request) { if(startingState != stateEnum.BATTLE) { //add a default aresChar incase the getNexrEnemy does not work Integer Level = playerChar.getLevel(); Item[] itemsHeld = {generateWeapon(Level +1),...
diff --git a/modules/jpm-struts1-jar/src/main/java/jpaoletti/jpm/struts/converter/ObjectConverter.java b/modules/jpm-struts1-jar/src/main/java/jpaoletti/jpm/struts/converter/ObjectConverter.java index e5e8e98..22f3d91 100644 --- a/modules/jpm-struts1-jar/src/main/java/jpaoletti/jpm/struts/converter/ObjectConverter.java...
false
true
public Object visualize(PMContext ctx) throws ConverterException { final String _entity = getConfig("entity"); final Entity entity = ctx.getPresentationManager().getEntity(_entity); if (entity == null) { throw new ConverterException("object.converter.entity.cannot.be.null"); ...
public Object visualize(PMContext ctx) throws ConverterException { final String _entity = getConfig("entity"); final Entity entity = ctx.getPresentationManager().getEntity(_entity); if (entity == null) { throw new ConverterException("object.converter.entity.cannot.be.null"); ...
diff --git a/src/de/uni_koblenz/jgralab/greql2/funlib/EdgeSeq.java b/src/de/uni_koblenz/jgralab/greql2/funlib/EdgeSeq.java index d81481ca7..9f4720792 100644 --- a/src/de/uni_koblenz/jgralab/greql2/funlib/EdgeSeq.java +++ b/src/de/uni_koblenz/jgralab/greql2/funlib/EdgeSeq.java @@ -1,146 +1,146 @@ /* * JGraLab - The J...
false
true
public JValue evaluate(Graph graph, AbstractGraphMarker<AttributedElement> subgraph, JValue[] arguments) throws EvaluateException { JValueSet edges = new JValueSet(); Edge start = arguments[0].toEdge(); Edge end = arguments[1].toEdge(); Edge current = start; switch (checkArguments(arguments)) { case ...
public JValue evaluate(Graph graph, AbstractGraphMarker<AttributedElement> subgraph, JValue[] arguments) throws EvaluateException { JValueSet edges = new JValueSet(); Edge start = arguments[0].toEdge(); Edge end = arguments[1].toEdge(); Edge current = start; switch (checkArguments(arguments)) { case ...
diff --git a/src/main/java/com/github/pchudzik/gae/test/config/SpringBeans.java b/src/main/java/com/github/pchudzik/gae/test/config/SpringBeans.java index c13df44..d0604e5 100644 --- a/src/main/java/com/github/pchudzik/gae/test/config/SpringBeans.java +++ b/src/main/java/com/github/pchudzik/gae/test/config/SpringBeans....
true
true
public EntityManagerFactory getEntityManagerFactorySpringWay() { Map<String, String> jpaProperties = new HashMap<String, String>(){{ put("datanucleus.NontransactionalRead", "true"); put("datanucleus.NontransactionalWrite", "true"); put("datanucleus.ConnectionURL", "appengine"); put("datanucleus.singleton...
public EntityManagerFactory getEntityManagerFactorySpringWay() { Map<String, String> jpaProperties = new HashMap<String, String>(){{ put("datanucleus.NontransactionalRead", "true"); put("datanucleus.NontransactionalWrite", "true"); put("datanucleus.ConnectionURL", "appengine"); put("datanucleus.singleton...
diff --git a/openid-connect-client/src/main/java/org/mitre/oauth2/filter/IntrospectingTokenService.java b/openid-connect-client/src/main/java/org/mitre/oauth2/filter/IntrospectingTokenService.java index d43b8fdd..284f7509 100644 --- a/openid-connect-client/src/main/java/org/mitre/oauth2/filter/IntrospectingTokenService...
true
true
private boolean parseToken(String accessToken) { String validatedToken = null; // Use the SpringFramework RestTemplate to send the request to the endpoint RestTemplate restTemplate = new RestTemplate(); MultiValueMap<String, String> form = new LinkedMultiValueMap<String, Str...
private boolean parseToken(String accessToken) { String validatedToken = null; // Use the SpringFramework RestTemplate to send the request to the endpoint RestTemplate restTemplate = new RestTemplate(); MultiValueMap<String, String> form = new LinkedMultiValueMap<String, Str...
diff --git a/src/android/Settings.java b/src/android/Settings.java index 08082e5..7670faa 100644 --- a/src/android/Settings.java +++ b/src/android/Settings.java @@ -1,61 +1,61 @@ package com.codeb.cordova.plugins.settings; import org.apache.cordova.CordovaPlugin; import org.apache.cordova.CallbackContext; impo...
false
true
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { try { JSONObject arg_object = args.getJSONObject(0); if (action.equals("getBluetooth")) { String message = arg_object.getString("action"); this.getBluetooth(message, callbackContext); re...
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { try { JSONObject arg_object = args.getJSONObject(0); if (action.equals("getBluetooth")) { String message = arg_object.getString("action"); this.getBluetooth(callbackContext); return true...
diff --git a/plugins/com.aptana.ide.update/src/com/aptana/ide/internal/update/manager/AbstractPluginManager.java b/plugins/com.aptana.ide.update/src/com/aptana/ide/internal/update/manager/AbstractPluginManager.java index eb17655b..8258ef5f 100644 --- a/plugins/com.aptana.ide.update/src/com/aptana/ide/internal/update/ma...
true
true
private void cacheImages() { // FIXME This seems like UI stuff that should not be in the plugin manager code! // first parses the cached xml file List<Plugin> plugins = new ArrayList<Plugin>(); try { InputStream xml = (InputStream) getLocalCacheURL().getContent(); plugins = parseXML(xml); } catch ...
private void cacheImages() { // FIXME This seems like UI stuff that should not be in the plugin manager code! // first parses the cached xml file List<Plugin> plugins = new ArrayList<Plugin>(); try { InputStream xml = (InputStream) getLocalCacheURL().getContent(); plugins = parseXML(xml); } catch ...
diff --git a/PullPit/src/kea/kme/pullpit/server/persistence/ShowHandler.java b/PullPit/src/kea/kme/pullpit/server/persistence/ShowHandler.java index 4cab772..eded52b 100644 --- a/PullPit/src/kea/kme/pullpit/server/persistence/ShowHandler.java +++ b/PullPit/src/kea/kme/pullpit/server/persistence/ShowHandler.java @@ -1,8...
false
true
public static Show[] getShows(int offset, int limit, String orderBy) throws SQLException { Connection con = DBConnector.getInstance().getConnection(); HashMap<Integer, Show> results = new HashMap<Integer, Show>(); Statement s = con.createStatement(); String sql = "SELECT shows.*, venues.*, bands.bandID, ban...
public static Show[] getShows(int offset, int limit, String orderBy) throws SQLException { Connection con = DBConnector.getInstance().getConnection(); HashMap<Integer, Show> results = new HashMap<Integer, Show>(); Statement s = con.createStatement(); String sql = "SELECT shows.*, venues.*, bands.bandID, ban...
diff --git a/src/com/jgaap/JGAAP.java b/src/com/jgaap/JGAAP.java index 806435a..051f1d8 100644 --- a/src/com/jgaap/JGAAP.java +++ b/src/com/jgaap/JGAAP.java @@ -1,75 +1,75 @@ /* * JGAAP -- a graphical program for stylometric authorship attribution * Copyright (C) 2009,2011 by Patrick Juola * * This program is ...
true
true
public static void main(String[] args) { BasicConfigurator.configure(); logger.setLevel(Level.ERROR); if (args.length == 0) { mainLogger.info("Starting GUI"); javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { ...
public static void main(String[] args) { BasicConfigurator.configure(); logger.setLevel(Level.INFO); if (args.length == 0) { mainLogger.info("Starting GUI"); javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { c...
diff --git a/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/view/FreetextQuestionView.java b/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/view/FreetextQuestionView.java index 84a89c181..56ed924bc 100644 --- a/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/view/FreetextQ...
true
true
public void onFocusChange(View view, boolean hasFocus) { // we need to listen to loss of focus // and make sure input is valid if (!hasFocus) { ValidationRule currentRule = getQuestion().getValidationRule(); EditText textEdit = (EditText) view; if (textEdit.getText() != null && textEdit.getText().t...
public void onFocusChange(View view, boolean hasFocus) { // we need to listen to loss of focus // and make sure input is valid if (!hasFocus) { ValidationRule currentRule = getQuestion().getValidationRule(); EditText textEdit = (EditText) view; if (textEdit.getText() != null && textEdit.getText().t...
diff --git a/src/scripts/clusterManipulations/SplitFasta.java b/src/scripts/clusterManipulations/SplitFasta.java index a526fdd0..63850ad3 100644 --- a/src/scripts/clusterManipulations/SplitFasta.java +++ b/src/scripts/clusterManipulations/SplitFasta.java @@ -1,63 +1,63 @@ /** * Author: anthony.fodor@gmail.com ...
true
true
public static void main(String[] args) throws Exception { if( args.length != 1) { System.out.println("Usage SplitFasta fileToSplit numSequencesPerSplit"); System.exit(1); } FastaSequenceOneAtATime fsoat = new FastaSequenceOneAtATime(args[0]); int splitSize = Integer.parseInt(args[1]); int coun...
public static void main(String[] args) throws Exception { if( args.length != 2) { System.out.println("Usage SplitFasta fileToSplit numSequencesPerSplit"); System.exit(1); } FastaSequenceOneAtATime fsoat = new FastaSequenceOneAtATime(args[0]); int splitSize = Integer.parseInt(args[1]); int coun...
diff --git a/ActiveObjects/src/net/java/ao/EntityManager.java b/ActiveObjects/src/net/java/ao/EntityManager.java index 86084e2..40ed991 100644 --- a/ActiveObjects/src/net/java/ao/EntityManager.java +++ b/ActiveObjects/src/net/java/ao/EntityManager.java @@ -1,1152 +1,1152 @@ /* * Copyright 2007 Daniel Spiewak * ...
true
true
public <T extends RawEntity<K>, K> T[] find(Class<T> type, String field, Query query) throws SQLException { List<T> back = new ArrayList<T>(); query.resolveFields(type, getFieldNameConverter()); // <ian> Version version = type.getAnnotation(Version.class); if (version != null && version.findIniti...
public <T extends RawEntity<K>, K> T[] find(Class<T> type, String field, Query query) throws SQLException { List<T> back = new ArrayList<T>(); query.resolveFields(type, getFieldNameConverter()); // <ian> Version version = type.getAnnotation(Version.class); if (version != null && !version.findInit...
diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 2eee859b..fdf61b75 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -1,1987 +1,1987 @@ /* Licensed to the Apache Software Foundation (ASF) under one ...
false
true
public void showWebPage(String url, boolean openExternal, boolean clearHistory, HashMap<String, Object> params) { //throws android.content.ActivityNotFoundException { LOG.d(TAG, "showWebPage(%s, %b, %b, HashMap", url, openExternal, clearHistory); // If clearing history if (clearHist...
public void showWebPage(String url, boolean openExternal, boolean clearHistory, HashMap<String, Object> params) { //throws android.content.ActivityNotFoundException { LOG.d(TAG, "showWebPage(%s, %b, %b, HashMap", url, openExternal, clearHistory); // If clearing history if (clearHist...
diff --git a/src/java/fedora/server/management/DBPIDGenerator.java b/src/java/fedora/server/management/DBPIDGenerator.java index 5cdc89a31..4cc753381 100755 --- a/src/java/fedora/server/management/DBPIDGenerator.java +++ b/src/java/fedora/server/management/DBPIDGenerator.java @@ -1,196 +1,197 @@ package fedora.server....
true
true
public DBPIDGenerator(ConnectionPool cPool, File oldPidGenDir) throws IOException { m_connectionPool=cPool; m_highestID=new HashMap(); // load the values from the database into the m_highestID hash // pidGen: namespace highestID Statement s=null; ResultS...
public DBPIDGenerator(ConnectionPool cPool, File oldPidGenDir) throws IOException { m_connectionPool=cPool; m_highestID=new HashMap(); // load the values from the database into the m_highestID hash // pidGen: namespace highestID Statement s=null; ResultS...
diff --git a/Chat/src/Server/ServerReady.java b/Chat/src/Server/ServerReady.java index fa518a6..1509f96 100644 --- a/Chat/src/Server/ServerReady.java +++ b/Chat/src/Server/ServerReady.java @@ -1,59 +1,61 @@ package Server; import java.io.IOException; import Communications.TCP; import Messages.ClientRequestInfoM...
false
true
public ServerState process(TCP tcp, Message tcpMessage, long timeEnteredState) { if(tcpMessage instanceof ClientRequestInfoMessage && tcpMessage.getCorrect()){ Message message = null; String user=((ClientRequestInfoMessage)tcpMessage).targetUsername; String ip=LookupTable.lookup(user); if(ip==null){ ...
public ServerState process(TCP tcp, Message tcpMessage, long timeEnteredState) { if(tcpMessage instanceof ClientRequestInfoMessage && tcpMessage.getCorrect()){ System.out.println("info message"); Message message = null; String user=((ClientRequestInfoMessage)tcpMessage).targetUsername; String ip=LookupTa...
diff --git a/test/samples/uscxml/applications/SpatialMapTicker.java b/test/samples/uscxml/applications/SpatialMapTicker.java index 5ccb0a24..8d2a5f14 100644 --- a/test/samples/uscxml/applications/SpatialMapTicker.java +++ b/test/samples/uscxml/applications/SpatialMapTicker.java @@ -1,153 +1,153 @@ import java.text.Sim...
false
true
private void run() { messages.add(new SensorMessage("Oil pressure threshold exceeded")); messages.add(new SensorMessage("Error #245 in diagnostics unit")); messages.add(new SensorMessage("Error #32 in diagnostics unit")); messages.add(new SensorMessage("Error #81 in diagnostics unit")); messages.add(new Sens...
private void run() { messages.add(new SensorMessage("Oil pressure threshold exceeded")); messages.add(new SensorMessage("Equipment is on fire")); messages.add(new SensorMessage("Error #32 in diagnostics unit")); messages.add(new SensorMessage("Unauthorized startup")); messages.add(new SensorMessage("Tire pre...
diff --git a/src/main/java/cukepresentation/HelloWorldWebServer.java b/src/main/java/cukepresentation/HelloWorldWebServer.java index cc72587..d5cd5fd 100644 --- a/src/main/java/cukepresentation/HelloWorldWebServer.java +++ b/src/main/java/cukepresentation/HelloWorldWebServer.java @@ -1,31 +1,31 @@ package cukepresenta...
true
true
public void start() throws IOException { server = HttpServer.create(new InetSocketAddress(this.port), 0); server.createContext("/hello_world", new HelloWorldHandler()); server.setExecutor(null); server.start(); }
public void start() throws IOException { server = HttpServer.create(new InetSocketAddress(this.port), 0); server.createContext("/hello", new HelloWorldHandler()); server.setExecutor(null); server.start(); }
diff --git a/src/edu/nrao/dss/client/Reservations.java b/src/edu/nrao/dss/client/Reservations.java index 91ee30a..c2cde98 100644 --- a/src/edu/nrao/dss/client/Reservations.java +++ b/src/edu/nrao/dss/client/Reservations.java @@ -1,41 +1,41 @@ package edu.nrao.dss.client; import java.util.Date; import com.extjs.g...
true
true
private void initLayout(Date start, int days){ setHeading("Reservatons"); setBorders(true); // put the reservation grid inside FitLayout fl = new FitLayout(); setLayout(fl); res = new ReservationsGrid(start, days); add(res, new FitData(10)); }
private void initLayout(Date start, int days){ setHeading("Reservations"); setBorders(true); // put the reservation grid inside FitLayout fl = new FitLayout(); setLayout(fl); res = new ReservationsGrid(start, days); add(res, new FitData(10)); }
diff --git a/ace-deployment-streamgenerator/src/test/java/org/apache/ace/deployment/streamgenerator/impl/StreamTest.java b/ace-deployment-streamgenerator/src/test/java/org/apache/ace/deployment/streamgenerator/impl/StreamTest.java index bdc6e7cd..05821fce 100644 --- a/ace-deployment-streamgenerator/src/test/java/org/ap...
false
true
public static void main(String[] args) { final InputStream[] streams = new InputStream[300]; for (int i = 1; i <= 250; i++) { final String id = "gateway-" + i; try { streams[i - 1] = new URL("http://127.0.0.1:" + TestConstants.PORT + "/data/" + id + "/versions...
public static void main(String[] args) { final InputStream[] streams = new InputStream[300]; for (int i = 1; i <= 250; i++) { final String id = "target-" + i; try { streams[i - 1] = new URL("http://127.0.0.1:" + TestConstants.PORT + "/data/" + id + "/versions/...
diff --git a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java index 630ae811..27c6321d 100644 --- a/bundles/org.eclipse.e4.tools.emf.liveeditor/s...
false
true
public void run(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell, IEclipseContext context, MApplication application, IStylingEngine engine) { if (this.shell == null || ! this.shell.isDisposed()) { try { shell = new Shell(shell.getDisplay(),SWT.ON_TOP|SWT.SHELL_TRIM); //FIXME Style shell.setBackgr...
public void run(@Named(IServiceConstants.ACTIVE_SHELL) Shell s, IEclipseContext c, MApplication application, IStylingEngine engine) { if (this.shell == null || this.shell.isDisposed()) { try { this.shell = new Shell(s.getDisplay(),SWT.ON_TOP|SWT.SHELL_TRIM); //FIXME Style this.shell.setBackground(s...
diff --git a/src/main/java/net/nexisonline/spade/SpadeWorldListener.java b/src/main/java/net/nexisonline/spade/SpadeWorldListener.java index 516cef8..db2c207 100644 --- a/src/main/java/net/nexisonline/spade/SpadeWorldListener.java +++ b/src/main/java/net/nexisonline/spade/SpadeWorldListener.java @@ -1,186 +1,188 @@ pa...
false
true
public void loadWorlds() { load(); Object co = null; if(root!=null && root.containsKey("worlds")) { co = root.get("worlds"); if(co instanceof Map<?,?>) { Map<String,Object> worldMap = (Map<String, Object>) root.get("worlds"); worlds = w...
public void loadWorlds() { load(); Object co = null; if(root!=null && root.containsKey("worlds")) { co = root.get("worlds"); if(co instanceof Map<?,?>) { Map<String,Object> worldMap = (Map<String, Object>) co; worlds = worldMap.keySet()...
diff --git a/src/main/com/iappsam/search/SupplierSearcher.java b/src/main/com/iappsam/search/SupplierSearcher.java index d71f261..d0a0759 100644 --- a/src/main/com/iappsam/search/SupplierSearcher.java +++ b/src/main/com/iappsam/search/SupplierSearcher.java @@ -1,10 +1,10 @@ package com.iappsam.search; import com.ia...
true
true
public SupplierSearcher() { super(Supplier.class, "person.name", "address", "contactPerson.person.name"); }
public SupplierSearcher() { super(Supplier.class, "name", "address", "contactPerson.person.name"); }
diff --git a/melete-impl/src/java/org/sakaiproject/component/app/melete/MeleteCHServiceImpl.java b/melete-impl/src/java/org/sakaiproject/component/app/melete/MeleteCHServiceImpl.java index d323dd14..3fe1e0da 100644 --- a/melete-impl/src/java/org/sakaiproject/component/app/melete/MeleteCHServiceImpl.java +++ b/melete-im...
true
true
public String findLocalImagesEmbeddedInEditor(String uploadHomeDir, String contentEditor) throws MeleteException { String checkforimgs = contentEditor; // get collection id where the embedded files will go String UploadCollId = getUploadCollectionId(); String fileName; ...
public String findLocalImagesEmbeddedInEditor(String uploadHomeDir, String contentEditor) throws MeleteException { String checkforimgs = contentEditor; // get collection id where the embedded files will go String UploadCollId = getUploadCollectionId(); String fileName; ...
diff --git a/src/com/android/ex/photo/PhotoViewActivity.java b/src/com/android/ex/photo/PhotoViewActivity.java index aa8029e..1ba81a8 100644 --- a/src/com/android/ex/photo/PhotoViewActivity.java +++ b/src/com/android/ex/photo/PhotoViewActivity.java @@ -1,543 +1,541 @@ /* * Copyright (C) 2011 Google Inc. * Licensed...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final ActivityManager mgr = (ActivityManager) getApplicationContext(). getSystemService(Activity.ACTIVITY_SERVICE); sMemoryClass = mgr.getMemoryClass(); Intent mIntent = getInte...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final ActivityManager mgr = (ActivityManager) getApplicationContext(). getSystemService(Activity.ACTIVITY_SERVICE); sMemoryClass = mgr.getMemoryClass(); Intent mIntent = getInte...
diff --git a/src/com/android/mms/data/Contact.java b/src/com/android/mms/data/Contact.java index 42f9037..d7290e4 100644 --- a/src/com/android/mms/data/Contact.java +++ b/src/com/android/mms/data/Contact.java @@ -1,489 +1,491 @@ package com.android.mms.data; import java.util.ArrayList; import java.util.HashSet; i...
true
true
private static void updateContact(final Contact c) { if (c == null) { return; } // Check to see if this is the local ("me") number. if (handleLocalNumber(c)) { return; } ContactInfoCache cache = ContactInfoCache.getInstance(); Contact...
private static void updateContact(final Contact c) { if (c == null) { return; } // Check to see if this is the local ("me") number. if (handleLocalNumber(c)) { return; } ContactInfoCache cache = ContactInfoCache.getInstance(); Contact...
diff --git a/src/interiores/business/controllers/DesignController.java b/src/interiores/business/controllers/DesignController.java index 2b0af02..dfd7867 100644 --- a/src/interiores/business/controllers/DesignController.java +++ b/src/interiores/business/controllers/DesignController.java @@ -1,70 +1,70 @@ package inte...
true
true
public void solve() { WishList wishList = (WishList) data.get("wishList"); Room room = (Room) data.get("room"); Collection<WantedFurniture> furniture = wishList.getWantedFurniture(); List<List<FurnitureModel>> variableModels = new ArrayList(); List<...
public void solve() { WishList wishList = (WishList) data.get("wishList"); Room room = (Room) data.get("room"); Collection<WantedFurniture> furniture = wishList.getWantedFurniture(); List<List<FurnitureModel>> variableModels = new ArrayList(); List<...
diff --git a/cejug-classifieds-server/src/net/java/dev/cejug/classifieds/service/endpoint/impl/AdvertisementOperations.java b/cejug-classifieds-server/src/net/java/dev/cejug/classifieds/service/endpoint/impl/AdvertisementOperations.java index c9ba2b92..a9c00333 100644 --- a/cejug-classifieds-server/src/net/java/dev/cej...
false
true
public Advertisement publishOperation(final Advertisement advertisement, final PublishingHeader header) { // TODO: to implement the real code. try { // TODO: re-think a factory to reuse adapters... Customer customer = new Customer(); customer.setLogin(header.getCustomerLogin()); customer.setDomainI...
public Advertisement publishOperation(final Advertisement advertisement, final PublishingHeader header) { // TODO: to implement the real code. try { // TODO: re-think a factory to reuse adapters... Customer customer = new Customer(); customer.setLogin(header.getCustomerLogin()); customer.setDomainI...
diff --git a/src/org/mozilla/javascript/TokenStream.java b/src/org/mozilla/javascript/TokenStream.java index 852c4a4d..7ae7099b 100644 --- a/src/org/mozilla/javascript/TokenStream.java +++ b/src/org/mozilla/javascript/TokenStream.java @@ -1,1365 +1,1362 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
false
true
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
diff --git a/src/main/java/net/ae97/totalpermissions/permission/util/PermissionUtility.java b/src/main/java/net/ae97/totalpermissions/permission/util/PermissionUtility.java index 1575dc0..c50ea78 100644 --- a/src/main/java/net/ae97/totalpermissions/permission/util/PermissionUtility.java +++ b/src/main/java/net/ae97/tot...
true
true
public static List<String> handleWildcard(boolean isAll) { List<String> perms = new ArrayList<String>(); Set<Permission> permT = Bukkit.getPluginManager().getPermissions(); for (Permission permTest : permT) { if (permTest.getDefault() != PermissionDefault.FALSE) { ...
public static List<String> handleWildcard(boolean isAll) { List<String> perms = new ArrayList<String>(); Set<Permission> permT = Bukkit.getPluginManager().getPermissions(); for (Permission permTest : permT) { if (permTest.getName().startsWith("totalpermissions")) { ...
diff --git a/modules/org.restlet/src/org/restlet/security/Role.java b/modules/org.restlet/src/org/restlet/security/Role.java index e14aeeb32..265d0fa1c 100644 --- a/modules/org.restlet/src/org/restlet/security/Role.java +++ b/modules/org.restlet/src/org/restlet/security/Role.java @@ -1,206 +1,206 @@ /** * Copyright ...
false
true
public boolean equals(Object arg0) { boolean result = false; if (this.name == null) { return arg0 == null; } if (arg0 instanceof Role) { Role r = (Role) arg0; // Test equality of names and child roles. result = this.name.equals(r.getNam...
public boolean equals(Object target) { boolean result = false; if (this.name == null) { return target == null; } if (target instanceof Role) { Role r = (Role) target; // Test equality of names and child roles. result = this.name.equals(...
diff --git a/src/jmt/gui/common/xml/XMLResultsReader.java b/src/jmt/gui/common/xml/XMLResultsReader.java index 894ab1e..8589b22 100644 --- a/src/jmt/gui/common/xml/XMLResultsReader.java +++ b/src/jmt/gui/common/xml/XMLResultsReader.java @@ -1,278 +1,278 @@ /** * Copyright (C) 2006, Laboratorio di Valutazione de...
false
true
private static void setEngineMeasures(Element root, StoredResultsModel model) { NodeList measures = root.getElementsByTagName(XML_EO_MEASURE); for (int i=0; i<measures.getLength(); i++) { Element current = (Element)measures.item(i); // Required elements String sta...
private static void setEngineMeasures(Element root, StoredResultsModel model) { NodeList measures = root.getElementsByTagName(XML_EO_MEASURE); for (int i=0; i<measures.getLength(); i++) { Element current = (Element)measures.item(i); // Required elements String sta...
diff --git a/MythicDrops-Repair/src/main/java/net/nunnerycode/bukkit/mythicdrops/repair/MythicDropsRepair.java b/MythicDrops-Repair/src/main/java/net/nunnerycode/bukkit/mythicdrops/repair/MythicDropsRepair.java index 9cb53403..6b6b1042 100644 --- a/MythicDrops-Repair/src/main/java/net/nunnerycode/bukkit/mythicdrops/rep...
false
true
private void defaultRepairCosts() { Material[] wood = {Material.WOOD_AXE, Material.WOOD_HOE, Material.WOOD_PICKAXE, Material.WOOD_SPADE, Material.WOOD_SWORD, Material.BOW, Material.FISHING_ROD}; Material[] stone = {Material.STONE_AXE, Material.STONE_PICKAXE, Material.STONE_HOE, Material.STONE_SWORD, Materi...
private void defaultRepairCosts() { Material[] wood = {Material.WOOD_AXE, Material.WOOD_HOE, Material.WOOD_PICKAXE, Material.WOOD_SPADE, Material.WOOD_SWORD, Material.BOW, Material.FISHING_ROD}; Material[] stone = {Material.STONE_AXE, Material.STONE_PICKAXE, Material.STONE_HOE, Material.STONE_SWORD, Materi...
diff --git a/src/main/java/com/biasedbit/hotpotato/util/digest/DigestAuthChallengeResponse.java b/src/main/java/com/biasedbit/hotpotato/util/digest/DigestAuthChallengeResponse.java index 70202c9..b46045e 100644 --- a/src/main/java/com/biasedbit/hotpotato/util/digest/DigestAuthChallengeResponse.java +++ b/src/main/java/...
true
true
public String buildAsString() { StringBuilder builder = new StringBuilder(); builder.append(this.getScheme()) .append(" username=\"").append((this.getUsername())) .append("\", nonce=\"").append(this.getNonce()) .append("\", uri=\"").append(this.getUri(...
public String buildAsString() { StringBuilder builder = new StringBuilder(); builder.append(this.getScheme()) .append(" username=\"").append((this.getUsername())) .append("\", nonce=\"").append(this.getNonce()) .append("\", uri=\"").append(this.getUri(...
diff --git a/components/bio-formats/src/loci/formats/in/FV1000Reader.java b/components/bio-formats/src/loci/formats/in/FV1000Reader.java index 6d45f7387..1c96ed4f4 100644 --- a/components/bio-formats/src/loci/formats/in/FV1000Reader.java +++ b/components/bio-formats/src/loci/formats/in/FV1000Reader.java @@ -1,1416 +1,1...
true
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); isOIB = checkSuffix(id, OIB_SUFFIX); if (isOIB) { try { ServiceFactory factory = new ServiceFactory(); poi = factory.getInstance(POIService.class); } catch (DependencyException ...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); isOIB = checkSuffix(id, OIB_SUFFIX); if (isOIB) { try { ServiceFactory factory = new ServiceFactory(); poi = factory.getInstance(POIService.class); } catch (DependencyException ...
diff --git a/src/java/org/apache/cassandra/dht/AbstractBounds.java b/src/java/org/apache/cassandra/dht/AbstractBounds.java index d1eedcbd6..becce444d 100644 --- a/src/java/org/apache/cassandra/dht/AbstractBounds.java +++ b/src/java/org/apache/cassandra/dht/AbstractBounds.java @@ -1,137 +1,137 @@ package org.apache.cas...
true
true
public static List<AbstractBounds> normalize(Collection<? extends AbstractBounds> bounds) { // unwrap all List<AbstractBounds> output = new ArrayList<AbstractBounds>(); AbstractBounds previous = null; for (AbstractBounds bound : bounds) { List<AbstractBounds> ...
public static List<AbstractBounds> normalize(Collection<? extends AbstractBounds> bounds) { // unwrap all List<AbstractBounds> output = new ArrayList<AbstractBounds>(); AbstractBounds previous = null; for (AbstractBounds bound : bounds) { List<AbstractBounds> ...
diff --git a/pixi/src/main/java/org/openpixi/pixi/physics/fields/PoissonSolver.java b/pixi/src/main/java/org/openpixi/pixi/physics/fields/PoissonSolver.java index a0a60ed8..ebd48dad 100644 --- a/pixi/src/main/java/org/openpixi/pixi/physics/fields/PoissonSolver.java +++ b/pixi/src/main/java/org/openpixi/pixi/physics/fie...
false
true
public static void solve2D(Grid g) { int rows = g.rho.length; int columns = 2 * g.rho[0].length; int n = 0; double[][] trho = new double[rows][columns]; double[][] phi = new double[rows][columns]; DoubleFFT_2D fft = new DoubleFFT_2D(rows, columns/2); //prepare input for fft for(int i = 0; i < ro...
public static void solve2D(Grid g) { int rows = g.rho.length; int columns = 2 * g.rho[0].length; int n = 0; double[][] trho = new double[rows][columns]; double[][] phi = new double[rows][columns]; DoubleFFT_2D fft = new DoubleFFT_2D(rows, columns/2); //prepare input for fft for(int i = 0; i < ro...
diff --git a/java/src/org/broadinstitute/sting/gatk/executive/LinearMicroScheduler.java b/java/src/org/broadinstitute/sting/gatk/executive/LinearMicroScheduler.java index 44db167e7..d9aa0e850 100644 --- a/java/src/org/broadinstitute/sting/gatk/executive/LinearMicroScheduler.java +++ b/java/src/org/broadinstitute/sting/...
true
true
public Object execute(Walker walker, ShardStrategy shardStrategy, int maxIterations) { // Having maxiterations in the execute method is a holdover from the old TraversalEngine days. // Lets do something else with this. traversalEngine.setMaximumIterations(maxIterations); walker.init...
public Object execute(Walker walker, ShardStrategy shardStrategy, int maxIterations) { // Having maxiterations in the execute method is a holdover from the old TraversalEngine days. // Lets do something else with this. traversalEngine.setMaximumIterations(maxIterations); walker.init...
diff --git a/src/com/androzic/track/TrackingService.java b/src/com/androzic/track/TrackingService.java index 2e54039..7883d44 100644 --- a/src/com/androzic/track/TrackingService.java +++ b/src/com/androzic/track/TrackingService.java @@ -1,577 +1,579 @@ /* * Androzic - android navigation client that uses OziExplorer ...
true
true
private void createFile(long time) { closeFile(); try { Androzic application = Androzic.getApplication(); File dir = new File(application.trackPath); if (! dir.exists()) dir.mkdirs(); String addon = ""; SimpleDateFormat formatter = new SimpleDateFormat("_yyyy-MM-dd_"); String date...
private void createFile(long time) { closeFile(); try { Androzic application = Androzic.getApplication(); if (application.trackPath == null) return; File dir = new File(application.trackPath); if (! dir.exists()) dir.mkdirs(); String addon = ""; SimpleDateFormat formatter = ne...
diff --git a/x10.compiler/src/x10/ast/AssignPropertyCall_c.java b/x10.compiler/src/x10/ast/AssignPropertyCall_c.java index 76e68034d..2ebd461d0 100644 --- a/x10.compiler/src/x10/ast/AssignPropertyCall_c.java +++ b/x10.compiler/src/x10/ast/AssignPropertyCall_c.java @@ -1,380 +1,381 @@ /* * This file is part of the X...
false
true
protected void checkReturnType(ContextVisitor tc, Position pos, X10ConstructorDef thisConstructor, List<FieldInstance> definedProperties, List<Expr> args) { TypeSystem ts = tc.typeSystem(); final Context ctx = tc.context(); ...
protected void checkReturnType(ContextVisitor tc, Position pos, X10ConstructorDef thisConstructor, List<FieldInstance> definedProperties, List<Expr> args) { TypeSystem ts = tc.typeSystem(); final Context ctx = tc.context(); ...
diff --git a/cmd/src/iumfs/CreateRequest.java b/cmd/src/iumfs/CreateRequest.java old mode 100644 new mode 100755 index 060a697..2e4eea7 --- a/cmd/src/iumfs/CreateRequest.java +++ b/cmd/src/iumfs/CreateRequest.java @@ -1,39 +1,43 @@ /* * Copyright 2011 Kazuyoshi Aizawa * * Licensed under the Apache License, Versi...
true
true
public void execute() throws IOException { IumfsFile file = getFile(); file.create(); /* * レスポンスヘッダをセット */ setResponseHeader(SUCCESS, 0); }
public void execute() throws IOException { IumfsFile file = getFile(); if (file == null) { setResponseHeader(ENOENT, 0); return; } file.create(); /* * レスポンスヘッダをセット */ setResponseHeader(SUCCESS, 0); }
diff --git a/DistFileSystem/src/distmain/DistFileSystemMain.java b/DistFileSystem/src/distmain/DistFileSystemMain.java index 9a15359..dde7698 100644 --- a/DistFileSystem/src/distmain/DistFileSystemMain.java +++ b/DistFileSystem/src/distmain/DistFileSystemMain.java @@ -1,137 +1,148 @@ /** * @author paul */ pac...
false
true
public void connect_to_network() { try { int nextID; String nextIP; Client cli = new Client(); // Connect to the network and get initial search location System.out.printf("Connecting to %s\n", ipAddress); cli.addTask(new ClntEnterNetwork(ipAddress, cli)); nextID = cli.getServId(); ...
public void connect_to_network() { try { int nextID; String nextIP; Client cli = new Client(); // Connect to the network and get initial search location // These have to all run in the same thread since they rely on each other System.out.printf("Connecting to %s\n", ipAddress); ClntEnter...
diff --git a/src/org/newdawn/slick/SpriteSheet.java b/src/org/newdawn/slick/SpriteSheet.java index ad6418a..c9b943b 100644 --- a/src/org/newdawn/slick/SpriteSheet.java +++ b/src/org/newdawn/slick/SpriteSheet.java @@ -1,204 +1,204 @@ package org.newdawn.slick; import java.io.InputStream; /** * A sheet of sprite...
true
true
protected void initImpl() { if (subImages != null) { return; } int tilesAcross = ((getWidth() - tw) / (tw + spacing)) + 1; int tilesDown = ((getHeight() - th) / (th + spacing)) + 1; if (getHeight() - th % (th+spacing) != 0) { tilesDown++; } subImages = new Image[tilesAcross][tilesDown]; for...
protected void initImpl() { if (subImages != null) { return; } int tilesAcross = ((getWidth() - tw) / (tw + spacing)) + 1; int tilesDown = ((getHeight() - th) / (th + spacing)) + 1; if ((getHeight() - th) % (th+spacing) != 0) { tilesDown++; } subImages = new Image[tilesAcross][tilesDown]; f...
diff --git a/src/main/java/com/nclodger/control/action/order/OrderFinishAction.java b/src/main/java/com/nclodger/control/action/order/OrderFinishAction.java index e502abf..ef2174f 100644 --- a/src/main/java/com/nclodger/control/action/order/OrderFinishAction.java +++ b/src/main/java/com/nclodger/control/action/order/Or...
true
true
public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception { //ApplicationContext ctx = new ClassPathXmlApplicationContext("bean-config.xml"); //check String promo = (String)request.getAttribute("promocode"); request.getSession().setAttribute("p...
public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception { //ApplicationContext ctx = new ClassPathXmlApplicationContext("bean-config.xml"); //check String promo =request.getParameter("promocode"); request.getSession().setAttribute("promocode"...
diff --git a/core/src/main/java/org/apache/hama/bsp/BSPPeerImpl.java b/core/src/main/java/org/apache/hama/bsp/BSPPeerImpl.java index efbf86f..2b716d2 100644 --- a/core/src/main/java/org/apache/hama/bsp/BSPPeerImpl.java +++ b/core/src/main/java/org/apache/hama/bsp/BSPPeerImpl.java @@ -1,394 +1,394 @@ /** * Licensed t...
false
true
public void sync() throws InterruptedException { try { enterBarrier(); Iterator<Entry<InetSocketAddress, ConcurrentLinkedQueue<BSPMessage>>> it = this.outgoingQueues .entrySet().iterator(); while (it.hasNext()) { Entry<InetSocketAddress, ConcurrentLinkedQueue<BSPMessage>> entr...
public void sync() throws InterruptedException { try { enterBarrier(); Iterator<Entry<InetSocketAddress, ConcurrentLinkedQueue<BSPMessage>>> it = this.outgoingQueues .entrySet().iterator(); while (it.hasNext()) { Entry<InetSocketAddress, ConcurrentLinkedQueue<BSPMessage>> entr...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Commands/sell.java b/src/nl/giantit/minecraft/GiantShop/core/Commands/sell.java index 71e2d8e..fbf0abd 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Commands/sell.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Commands/sell.java @@ -1,233 +1,233 @@ packag...
true
true
public static void sell(Player player, String[] args) { Heraut.savePlayer(player); if(perms.has(player, "giantshop.shop.sell")) { if(args.length >= 2) { int itemID; Integer itemType = -1; int quantity; if(!args[1].matches("[0-9]+:[0-9]+")) { try { itemID = Integer.parseInt(args[1]); ...
public static void sell(Player player, String[] args) { Heraut.savePlayer(player); if(perms.has(player, "giantshop.shop.sell")) { if(args.length >= 2) { int itemID; Integer itemType = -1; int quantity; if(!args[1].matches("[0-9]+:[0-9]+")) { try { itemID = Integer.parseInt(args[1]); ...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/ContractionRoutingServiceImpl.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/ContractionRoutingServiceImpl.java index 1e06e264c..aa28cdadf 100644 --- a/opentripplanner-routing/src/main/java/org/opentrippla...
true
true
public GraphPath route(Vertex fromVertex, Vertex toVertex, State state, TraverseOptions options) { ContractionHierarchy hierarchy = null; hierarchy = hierarchies.getHierarchy(options); if (hierarchy == null) { Graph _graph = hierarchies.getGraph(); if (optio...
public GraphPath route(Vertex fromVertex, Vertex toVertex, State state, TraverseOptions options) { ContractionHierarchy hierarchy = null; hierarchy = hierarchies.getHierarchy(options); if (hierarchy == null) { Graph _graph = hierarchies.getGraph(); if (optio...
diff --git a/qcamraw_util/src-plugins/Import_Qcamraw/Import_Qcamraw.java b/qcamraw_util/src-plugins/Import_Qcamraw/Import_Qcamraw.java index 58fa9db..93400a8 100644 --- a/qcamraw_util/src-plugins/Import_Qcamraw/Import_Qcamraw.java +++ b/qcamraw_util/src-plugins/Import_Qcamraw/Import_Qcamraw.java @@ -1,117 +1,114 @@ im...
true
true
public void run(String arg) { JFileChooser jc = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter("JPG & GIF Images", "qcamraw", "gif"); jc.setFileFilter(filter); jc.setMultiSelectionEnabled(true); if (dir==null) { String sdir = OpenDialog.getDefaultDirectory(); if (sd...
public void run(String arg) { JFileChooser jc = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter("JPG & GIF Images", "qcamraw", "gif"); jc.setFileFilter(filter); jc.setMultiSelectionEnabled(true); if (dir==null) { String sdir = OpenDialog.getDefaultDirectory(); if (sd...
diff --git a/onebusaway-nyc-transit-data-federation/src/main/java/org/onebusaway/nyc/transit_data_federation/bundle/tasks/stif/StifTask.java b/onebusaway-nyc-transit-data-federation/src/main/java/org/onebusaway/nyc/transit_data_federation/bundle/tasks/stif/StifTask.java index 28207860d..e8e188459 100644 --- a/onebusawa...
true
true
private void computeBlocksFromRuns(StifTripLoader loader) { int blockNo = 0; HashSet<Trip> usedGtfsTrips = new HashSet<Trip>(); csvLogger.header("non_pullin_without_next_movement.csv", "stif_trip,stif_filename,stif_trip_record_line_num"); csvLogger.header( "stif_trips_without_pullout.csv", ...
private void computeBlocksFromRuns(StifTripLoader loader) { int blockNo = 0; HashSet<Trip> usedGtfsTrips = new HashSet<Trip>(); csvLogger.header("non_pullin_without_next_movement.csv", "stif_trip,stif_filename,stif_trip_record_line_num"); csvLogger.header( "stif_trips_without_pullout.csv", ...
diff --git a/src/com/designrifts/ultimatethemeui/IconRequest.java b/src/com/designrifts/ultimatethemeui/IconRequest.java index b73e345..caa64b2 100644 --- a/src/com/designrifts/ultimatethemeui/IconRequest.java +++ b/src/com/designrifts/ultimatethemeui/IconRequest.java @@ -1,310 +1,310 @@ /* * Copyright (C) 2013 Jai ...
false
true
public void onCreate(Bundle savedInstanceState) { getActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.holo_blue_dark))); getActionBar().setDisplayShowHomeEnabled(true); super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button butt...
public void onCreate(Bundle savedInstanceState) { getActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.holo_blue_dark))); getActionBar().setDisplayShowHomeEnabled(true); super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button butt...
diff --git a/src/com/seekting/study/view/FlowLayout.java b/src/com/seekting/study/view/FlowLayout.java index f66bc97..7f54552 100644 --- a/src/com/seekting/study/view/FlowLayout.java +++ b/src/com/seekting/study/view/FlowLayout.java @@ -1,328 +1,328 @@ package com.seekting.study.view; import android.content.Context...
true
true
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int sizeWidth = MeasureSpec.getSize(widthMeasureSpec) - this.getPaddingRight() - this.getPaddingLeft(); int sizeHeight = MeasureSpec.getSize(heightMeasureSpec) - this.getPaddingRight() - this.getPaddingLeft(); int modeW...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int sizeWidth = MeasureSpec.getSize(widthMeasureSpec) - this.getPaddingRight() - this.getPaddingLeft(); int sizeHeight = MeasureSpec.getSize(heightMeasureSpec) - this.getPaddingRight() - this.getPaddingLeft(); int modeW...
diff --git a/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java b/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java index 5eeb16dac..a3b4be079 100644 --- a/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java +++ b/java/testing/...
true
true
public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // "runTest()" is going to try to connect to the d...
public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // "runTest()" is going to try to connect to the d...
diff --git a/src/org/encog/workbench/frames/document/EncogPopupMenus.java b/src/org/encog/workbench/frames/document/EncogPopupMenus.java index af28cfc2..91a7e298 100644 --- a/src/org/encog/workbench/frames/document/EncogPopupMenus.java +++ b/src/org/encog/workbench/frames/document/EncogPopupMenus.java @@ -1,256 +1,256 ...
true
true
public void performPopupMenu(final Object source) { if (source == this.popupFileRefresh || source == this.popupRefreshItem || source == this.popupFileCSVRefresh || source==popupRootRefreshItem) { EncogWorkBench.getInstance().getMainWindow().getTree().refresh(); } else if (source == this.popupRootNewFi...
public void performPopupMenu(final Object source) { if (source == this.popupFileRefresh || source == this.popupRefreshItem || source == this.popupFileCSVRefresh || source==popupRootRefreshItem) { EncogWorkBench.getInstance().getMainWindow().getTree().refresh(); } else if (source == this.popupRootNewFi...
diff --git a/hazelcast/src/main/java/com/hazelcast/map/MapProxy.java b/hazelcast/src/main/java/com/hazelcast/map/MapProxy.java index 3601a5849f..9e3b855514 100644 --- a/hazelcast/src/main/java/com/hazelcast/map/MapProxy.java +++ b/hazelcast/src/main/java/com/hazelcast/map/MapProxy.java @@ -1,197 +1,200 @@ /* * Copyr...
true
true
public Object remove(String name, Object k) { Data key = nodeService.toData(k); int partitionId = nodeService.getPartitionId(key); TransactionImpl txn = nodeService.getTransaction(); String txnId = null; if (txn != null && txn.getStatus() == Transaction.TXN_STATUS_ACTIVE) { ...
public Object remove(String name, Object k) { Data key = nodeService.toData(k); int partitionId = nodeService.getPartitionId(key); TransactionImpl txn = nodeService.getTransaction(); String txnId = null; if (txn != null && txn.getStatus() == Transaction.TXN_STATUS_ACTIVE) { ...
diff --git a/src/src/com/zachklipp/captivate/Application.java b/src/src/com/zachklipp/captivate/Application.java index bc84704..8b74aec 100644 --- a/src/src/com/zachklipp/captivate/Application.java +++ b/src/src/com/zachklipp/captivate/Application.java @@ -1,27 +1,30 @@ package com.zachklipp.captivate; import com.z...
true
true
private void initializeLogging() { Log.setDefaultTag("captivate"); if (!BuildConfig.DEBUG) { Log.v("Configured for release, disabling debug logging"); Log.setMinPriority(android.util.Log.INFO); } else { Log.v("Configured for dev, enabling debug logging"); } }
private void initializeLogging() { Log.setDefaultTag("captivate"); /* NOTE: Due to an ADT bug, Project -> Build Automatically must be unchecked for * this to take effect. */ if (!BuildConfig.DEBUG) { Log.v("Configured for release, disabling debug logging"); Log.setMinPrior...
diff --git a/anadix-api/src/main/java/org/analyzer/factories/StringSource.java b/anadix-api/src/main/java/org/analyzer/factories/StringSource.java index 8f63f96..77a5dff 100755 --- a/anadix-api/src/main/java/org/analyzer/factories/StringSource.java +++ b/anadix-api/src/main/java/org/analyzer/factories/StringSource.java...
true
true
public StringSource(String source, String description) { this.source = source; this.description = description; }
public StringSource(String source, String description) { if (source == null) { throw new NullPointerException("source can't be null"); } this.source = source; this.description = description; }
diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java index a7bc6763c..a3541fa3b 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomsList.java +++ b/src/net/java/sip/communicato...
true
true
public void mousePressed(MouseEvent e) { //Select the object under the right button click. if ((e.getModifiers() & InputEvent.BUTTON2_MASK) != 0 || (e.getModifiers() & InputEvent.BUTTON3_MASK) != 0 || (e.isControlDown() && !e.isMetaDown())) { this.s...
public void mousePressed(MouseEvent e) { //Select the object under the right button click. if ((e.getModifiers() & InputEvent.BUTTON2_MASK) != 0 || (e.getModifiers() & InputEvent.BUTTON3_MASK) != 0 || (e.isControlDown() && !e.isMetaDown())) { this.s...
diff --git a/server/TruckItServer/app/controllers/BidController.java b/server/TruckItServer/app/controllers/BidController.java index 88c4430..cf5a0df 100644 --- a/server/TruckItServer/app/controllers/BidController.java +++ b/server/TruckItServer/app/controllers/BidController.java @@ -1,61 +1,64 @@ package controllers;...
false
true
public static Result getBids(String userId) { List<Bid> bids = new ArrayList<Bid>(); Load load = new Load(); load.setLoadDescription("a really big load"); load.setCustomerId("customer@customer.com"); Bid bid = new Bid(); User biddingUser = new User(); bidding...
public static Result getBids(String userId) { List<Bid> bids = new ArrayList<Bid>(); Load load = new Load(); load.setLoadDescription("a really big load"); load.setCustomerId("customer@customer.com"); Bid bid = new Bid(); User biddingUser = new User(); bidding...
diff --git a/src_unitTests/javax/xml/crypto/test/dsig/ClassLoaderTest.java b/src_unitTests/javax/xml/crypto/test/dsig/ClassLoaderTest.java index 82b0b9aa..591d8abf 100644 --- a/src_unitTests/javax/xml/crypto/test/dsig/ClassLoaderTest.java +++ b/src_unitTests/javax/xml/crypto/test/dsig/ClassLoaderTest.java @@ -1,42 +1,4...
true
true
public void test_multiple_loaders() throws Exception { String baseDir = System.getProperty("basedir"); String fs = System.getProperty("file.separator"); File file0 = new File(baseDir + fs + "build" + fs + "classes" + fs); File file1 = new File(baseDir + fs + "build" + fs + "test" + fs); U...
public void test_multiple_loaders() throws Exception { String baseDir = System.getProperty("basedir"); String fs = System.getProperty("file.separator"); File file0 = new File(baseDir + fs + "build" + fs + "classes" + fs); File file1 = new File(baseDir + fs + "build" + fs + "test" + fs); U...
diff --git a/src/beatbots/simulation/BeatBotColored.java b/src/beatbots/simulation/BeatBotColored.java index d157a26..f64809c 100644 --- a/src/beatbots/simulation/BeatBotColored.java +++ b/src/beatbots/simulation/BeatBotColored.java @@ -1,50 +1,50 @@ package beatbots.simulation; import org.newdawn.slick.Animation; ...
true
true
public strictfp void init(GameContainer gameContainer) throws SlickException { super.init(gameContainer); //switch (this.beat) { //case Red: this.animation = new Animation(new Image[] { new Image("assets/BeatBot2Frame1.png"), new Image("assets/BeatBot2Frame2.png") }, 200, true); //break; ...
public strictfp void init(GameContainer gameContainer) throws SlickException { super.init(gameContainer); //switch (this.beat) { //case Red: this.animation = new Animation(new Image[] { new Image("assets/BeatBot2RightFrame1.png"), new Image("assets/BeatBot2RightFrame2.png") }, 200, true); ...
diff --git a/src/biz/bokhorst/xprivacy/XWebView.java b/src/biz/bokhorst/xprivacy/XWebView.java index f1a94807..63d94206 100644 --- a/src/biz/bokhorst/xprivacy/XWebView.java +++ b/src/biz/bokhorst/xprivacy/XWebView.java @@ -1,105 +1,105 @@ package biz.bokhorst.xprivacy; import java.lang.reflect.Method; import java....
false
true
protected void after(MethodHookParam param) throws Throwable { if (mMethod == Methods.constructor) { if (isRestricted(param)) { String ua = (String) PrivacyManager.getDefacedProp(Binder.getCallingUid(), "UA"); WebView webView = (WebView) param.thisObject; webView.getSettings().setUserAgentString(ua); ...
protected void after(MethodHookParam param) throws Throwable { if (mMethod == Methods.constructor) { if (isRestricted(param)) { String ua = (String) PrivacyManager.getDefacedProp(Binder.getCallingUid(), "UA"); WebView webView = (WebView) param.thisObject; webView.getSettings().setUserAgentString(ua); ...
diff --git a/src/test/java/de/ui/sushi/fs/CopyDiffTest.java b/src/test/java/de/ui/sushi/fs/CopyDiffTest.java index 210f93fc..bcc6eb0e 100644 --- a/src/test/java/de/ui/sushi/fs/CopyDiffTest.java +++ b/src/test/java/de/ui/sushi/fs/CopyDiffTest.java @@ -1,212 +1,222 @@ /* * Copyright 1&1 Internet AG, http://www.1and1.o...
false
true
public void template() throws Exception { Node destdir; String brief; destdir = copy.getSourceDir().getIO().getTemp().createTempDirectory(); variables.put("home", "mhm"); variables.put("machine", "walter"); assertEquals("", brief(destdir)); a...
public void template() throws Exception { Node destdir; String brief; String normal; destdir = copy.getSourceDir().getIO().getTemp().createTempDirectory(); variables.put("home", "mhm"); variables.put("machine", "walter"); assertEquals("", bri...
diff --git a/src/org/gots/utils/GotsProgressBar.java b/src/org/gots/utils/GotsProgressBar.java index f3df2c92..ad4be68c 100644 --- a/src/org/gots/utils/GotsProgressBar.java +++ b/src/org/gots/utils/GotsProgressBar.java @@ -1,112 +1,112 @@ /*******************************************************************************...
true
true
protected void onDraw(Canvas canvas) { canvas.save(); Paint paint = new Paint(); paint.setStyle(Style.FILL); paint.setColor(Color.BLACK); canvas.drawLine(0, 0, 0, getHeight() - 1, paint); canvas.drawLine(getWidth() - 1, 0, getWidth() - 1, getHeight() - 1, paint); canvas.drawLine(0, 0, getWidth() - 1, 0...
protected void onDraw(Canvas canvas) { canvas.save(); Paint paint = new Paint(); paint.setStyle(Style.FILL); paint.setColor(Color.BLACK); canvas.drawLine(0, 0, 0, getHeight() - 1, paint); canvas.drawLine(getWidth() - 1, 0, getWidth() - 1, getHeight() - 1, paint); canvas.drawLine(0, 0, getWidth() - 1, 0...
diff --git a/source/RMG/jing/rxn/Reaction.java b/source/RMG/jing/rxn/Reaction.java index 128ea0d8..83eef8db 100644 --- a/source/RMG/jing/rxn/Reaction.java +++ b/source/RMG/jing/rxn/Reaction.java @@ -1,1511 +1,1514 @@ // ////////////////////////////////////////////////////////////////////////////// // // RMG - Reacti...
true
true
public double calculateTotalRate(Temperature p_temperature) { double rate = 0; Temperature stdtemp = new Temperature(298, "K"); double Hrxn = calculateHrxn(stdtemp); Temperature sys_temp = ReactionModelGenerator.getTemp4BestKinetics(); /* * AJ 12JULY2010: Added diffu...
public double calculateTotalRate(Temperature p_temperature) { double rate = 0; Temperature stdtemp = new Temperature(298, "K"); double Hrxn = calculateHrxn(stdtemp); Temperature sys_temp = ReactionModelGenerator.getTemp4BestKinetics(); /* * AJ 12JULY2010: Added diffu...
diff --git a/src/openblocks/client/renderer/tileentity/TileEntityAutoEnchantmentTableRenderer.java b/src/openblocks/client/renderer/tileentity/TileEntityAutoEnchantmentTableRenderer.java index 7064e329..0a5538e6 100644 --- a/src/openblocks/client/renderer/tileentity/TileEntityAutoEnchantmentTableRenderer.java +++ b/src...
false
true
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) { TileEntityAutoEnchantmentTable table = (TileEntityAutoEnchantmentTable)tileentity; GL11.glPushMatrix(); bindTexture(TextureMap.locationBlocksTexture); GL11.glTranslatef((float)x, (float)y, (float)z); GL11.glDisabl...
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) { TileEntityAutoEnchantmentTable table = (TileEntityAutoEnchantmentTable)tileentity; GL11.glPushMatrix(); bindTexture(TextureMap.locationBlocksTexture); GL11.glTranslatef((float)x, (float)y, (float)z); OpenRenderHel...
diff --git a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java b/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java index d89d88875..20f75829b 100644 --- a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsS...
true
true
public void printStatistics(String itemsName) { boolean print = false; String col = " "; StringBuilder sb = new StringBuilder(); String newline = System.getProperty("line.separator"); sb.append("------------> ").append(getClass().getSimpleName()).append(" statistics (").append(pri...
public void printStatistics(String itemsName) { if (!verbose) { return; } boolean print = false; String col = " "; StringBuilder sb = new StringBuilder(); String newline = System.getProperty("line.separator"); sb.append("------------> ").append(getClass().getSimpleNa...
diff --git a/src/org/ice/io/Mouse.java b/src/org/ice/io/Mouse.java index a1632a6..92b1d6d 100644 --- a/src/org/ice/io/Mouse.java +++ b/src/org/ice/io/Mouse.java @@ -1,51 +1,51 @@ package org.ice.io; import java.awt.GraphicsDevice; /** * User-friendly mouse class. Uses MouseDriver and only exposes methods neede...
true
true
public MouseClick getMouseButton() { final int button = mouseDriver.getMouseButton(); switch(button) { case 0: return MouseClick.NONE; case 1: return MouseClick.LEFT; case 2: return MouseClick.WHEEL; case 3: return MouseClick.RIGHT; } retur...
public MouseClick getMouseButton() { int button = mouseDriver.getMouseButton(); switch(button) { case 0: return MouseClick.NONE; case 1: return MouseClick.LEFT; case 2: return MouseClick.WHEEL; case 3: return MouseClick.RIGHT; } return Mous...
diff --git a/src/cz/cuni/mff/peckam/java/origamist/gui/listing/ListingTreeSelectionListener.java b/src/cz/cuni/mff/peckam/java/origamist/gui/listing/ListingTreeSelectionListener.java index 698571e..57475dd 100644 --- a/src/cz/cuni/mff/peckam/java/origamist/gui/listing/ListingTreeSelectionListener.java +++ b/src/cz/cuni...
true
true
public void valueChanged(final TreeSelectionEvent e) { if (!e.isAddedPath()) { return; } final Object selected = ((DefaultMutableTreeNode) e.getPath().getLastPathComponent()).getUserObject(); if (selected instanceof File) { final OrigamiViewer viewer = Se...
public void valueChanged(final TreeSelectionEvent e) { if (!e.isAddedPath()) { return; } final Object selected = ((DefaultMutableTreeNode) e.getPath().getLastPathComponent()).getUserObject(); if (selected instanceof File) { final OrigamiViewer viewer = Se...