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/net/milkbowl/combatevents/listeners/CombatPlayerListener.java b/src/net/milkbowl/combatevents/listeners/CombatPlayerListener.java index 4773228..e8cf9ff 100644 --- a/src/net/milkbowl/combatevents/listeners/CombatPlayerListener.java +++ b/src/net/milkbowl/combatevents/listeners/CombatPlayerListener.java...
true
true
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { if (event.isCancelled() || Config.getDenyCommands().isEmpty()) return; String message = event.getMessage(); for (String cmd : Config.getDenyCommands()) { if (message.startsWith("/" + cmd)) { event.setCancelled(true); event...
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { if (event.isCancelled() || Config.getDenyCommands().isEmpty()) return; if (plugin.isInCombat(event.getPlayer()) ) { String message = event.getMessage(); for (String cmd : Config.getDenyCommands()) { if (message.startsWith("/"...
diff --git a/src/main/java/org/datanucleus/store/hbase/HBaseFetchFieldManager.java b/src/main/java/org/datanucleus/store/hbase/HBaseFetchFieldManager.java index 15e0eea..d18e2bd 100644 --- a/src/main/java/org/datanucleus/store/hbase/HBaseFetchFieldManager.java +++ b/src/main/java/org/datanucleus/store/hbase/HBaseFetchF...
true
true
public Object fetchObjectField(int fieldNumber) { String familyName = Utils.getFamilyName(getClassMetaData(), fieldNumber); String columnName = Utils.getQualifierName(getClassMetaData(), fieldNumber); ClassLoaderResolver clr = getClassLoaderResolver(); AbstractMemberMetaData fie...
public Object fetchObjectField(int fieldNumber) { String familyName = Utils.getFamilyName(getClassMetaData(), fieldNumber); String columnName = Utils.getQualifierName(getClassMetaData(), fieldNumber); ClassLoaderResolver clr = getClassLoaderResolver(); AbstractMemberMetaData fie...
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.config.postscript/src/org/eclipse/birt/report/engine/emitter/config/postscript/PostscriptEmitterDescriptor.java b/plugins/org.eclipse.birt.report.engine.emitter.config.postscript/src/org/eclipse/birt/report/engine/emitter/config/postscript/PostscriptEmitterDes...
false
true
private void initOptions( ) { // Initializes the option for BIDIProcessing. ConfigurableOption bidiProcessing = new ConfigurableOption( BIDI_PROCESSING ); bidiProcessing .setDisplayName( getMessage( "OptionDisplayValue.BidiProcessing" ) ); //$NON-NLS-1$ bidiProcessing.setDataType( IConfigurableOption....
private void initOptions( ) { // Initializes the option for BIDIProcessing. ConfigurableOption bidiProcessing = new ConfigurableOption( BIDI_PROCESSING ); bidiProcessing .setDisplayName( getMessage( "OptionDisplayValue.BidiProcessing" ) ); //$NON-NLS-1$ bidiProcessing.setDataType( IConfigurableOption....
diff --git a/src/main/java/com/norcode/bukkit/livestocklock/EntityListener.java b/src/main/java/com/norcode/bukkit/livestocklock/EntityListener.java index cb61de1..584b929 100644 --- a/src/main/java/com/norcode/bukkit/livestocklock/EntityListener.java +++ b/src/main/java/com/norcode/bukkit/livestocklock/EntityListener....
true
true
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { checkExpiry(event.getRightClicked()); Player player = event.getPlayer(); Entity animal = event.getRightClicked(); if (plugin.getOwnedAnimals().containsKey(animal.getUniqueId())) { // This animal is owne...
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { checkExpiry(event.getRightClicked()); Player player = event.getPlayer(); Entity animal = event.getRightClicked(); if (plugin.getOwnedAnimals().containsKey(animal.getUniqueId())) { // This animal is owne...
diff --git a/catrip/codebase/projects/test-system/test/src/java/edu/duke/cabig/catrip/test/system/steps/CaTissueCoreConfigureStep.java b/catrip/codebase/projects/test-system/test/src/java/edu/duke/cabig/catrip/test/system/steps/CaTissueCoreConfigureStep.java index 10dfa66f..b95ebaa8 100755 --- a/catrip/codebase/project...
false
true
public void runStep() throws IOException { origFile = File.createTempFile("CaTissueCoreConfigureStep", ".cfg.xml"); configFile = new File(serviceDir, "catissuecore-hibernate.cfg.xml"); FileUtils.copy(configFile, origFile); String connectionUrl = System.getProperty("catissuecore.connectionurl", "jdbc...
public void runStep() throws IOException { origFile = File.createTempFile("CaTissueCoreConfigureStep", ".cfg.xml"); configFile = new File(serviceDir, "catissuecore-hibernate.cfg.xml"); FileUtils.copy(configFile, origFile); String connectionUrl = System.getProperty("catissuecore.connectionurl", "jdbc...
diff --git a/mailtool/src/java/org/sakaiproject/tool/mailtool/Mailtool.java b/mailtool/src/java/org/sakaiproject/tool/mailtool/Mailtool.java index 8897e97..e86a581 100644 --- a/mailtool/src/java/org/sakaiproject/tool/mailtool/Mailtool.java +++ b/mailtool/src/java/org/sakaiproject/tool/mailtool/Mailtool.java @@ -1,2045 ...
false
true
public String processSendEmail() { /* EmailUser */selected = m_recipientSelector.getSelectedUsers(); if (m_selectByTree) { selectedGroupAwareRoleUsers = m_recipientSelector1 .getSelectedUsers(); selectedGroupUsers = m_recipientSelector2.getSelectedUsers(); selectedSectionUsers = m_recipientSelector3....
public String processSendEmail() { /* EmailUser */selected = m_recipientSelector.getSelectedUsers(); if (m_selectByTree) { selectedGroupAwareRoleUsers = m_recipientSelector1 .getSelectedUsers(); selectedGroupUsers = m_recipientSelector2.getSelectedUsers(); selectedSectionUsers = m_recipientSelector3....
diff --git a/modules/world/avatarbase/src/classes/org/jdesktop/wonderland/modules/avatarbase/client/jme/cellrenderer/AvatarPlugin.java b/modules/world/avatarbase/src/classes/org/jdesktop/wonderland/modules/avatarbase/client/jme/cellrenderer/AvatarPlugin.java index 1b77a6a2c..56c160897 100644 --- a/modules/world/avatarb...
true
true
public void initialize(ServerSessionManager loginManager) { this.loginManager = loginManager; // Set the base URL String serverHostAndPort = loginManager.getServerNameAndPort(); this.baseURL = "wla://avatarbaseart@"+serverHostAndPort+"/"; // XXX TODO: this shouldn't be done...
public void initialize(ServerSessionManager loginManager) { this.loginManager = loginManager; // Set the base URL String serverHostAndPort = loginManager.getServerNameAndPort(); this.baseURL = "wla://avatarbaseart@"+serverHostAndPort+"/"; // XXX TODO: this shouldn't be done...
diff --git a/src/com/chrisfolger/needsmoredojo/core/amd/objectmodel/cycledetection/CyclicDependencyDetector.java b/src/com/chrisfolger/needsmoredojo/core/amd/objectmodel/cycledetection/CyclicDependencyDetector.java index c32916e..df43dc9 100644 --- a/src/com/chrisfolger/needsmoredojo/core/amd/objectmodel/cycledetection...
false
true
public DependencyNode addDependenciesOfFile(PsiFile originalFile, Project project, PsiFile psiFile, DependencyNode parent, String modulePath, boolean unused) { if(parent == null) { dependencies = new HashSet<String>(); } DependencyNode node = new DependencyNode(psiFi...
public DependencyNode addDependenciesOfFile(PsiFile originalFile, Project project, PsiFile psiFile, DependencyNode parent, String modulePath, boolean unused) { if(parent == null) { dependencies = new HashSet<String>(); } DependencyNode node = new DependencyNode(psiFi...
diff --git a/src/to/joe/j2mc/chat/command/MessageCommand.java b/src/to/joe/j2mc/chat/command/MessageCommand.java index f3b282c..6d2de07 100644 --- a/src/to/joe/j2mc/chat/command/MessageCommand.java +++ b/src/to/joe/j2mc/chat/command/MessageCommand.java @@ -1,72 +1,72 @@ package to.joe.j2mc.chat.command; import org....
false
true
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { if (isPlayer) { if (args.length < 2) { player.sendMessage(ChatColor.RED + "Correct usage: /msg player message"); return; } Player t...
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { if (isPlayer) { if (args.length < 2) { player.sendMessage(ChatColor.RED + "Correct usage: /msg player message"); return; } Player t...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CVSOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CVSOperation.java index 22b0c9fb4..38655ef59 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/...
false
true
protected boolean promptToOverwrite(String title, String msg) { if (!confirmOverwrite) { return true; } String buttons[]; if (involvesMultipleResources()) { buttons = new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstan...
protected boolean promptToOverwrite(final String title, final String msg) { if (!confirmOverwrite) { return true; } final String buttons[]; if (involvesMultipleResources()) { buttons = new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, ...
diff --git a/ProjectTieBreak/src/BE/BookingContainer.java b/ProjectTieBreak/src/BE/BookingContainer.java index 84a274d..aaf8931 100644 --- a/ProjectTieBreak/src/BE/BookingContainer.java +++ b/ProjectTieBreak/src/BE/BookingContainer.java @@ -1,27 +1,27 @@ /* * */ package BE; import java.text.SimpleDateFormat; ...
true
true
public String toString() { SimpleDateFormat dateFormat = new SimpleDateFormat("dd-mm-yy '-' HH:mm"); SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm"); return bookingObject.getMemberId() + " - " + bookingObject.getCourtId() + " - " + dateFormat.format(bookingObject.getFromDate(...
public String toString() { SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yy '-' HH:mm"); SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm"); return bookingObject.getMemberId() + " - " + bookingObject.getCourtId() + " - " + dateFormat.format(bookingObject.getFromDate(...
diff --git a/src/main/java/cc/kune/gspace/client/feedback/FeedbackBottomPanel.java b/src/main/java/cc/kune/gspace/client/feedback/FeedbackBottomPanel.java index 2f71215a3..440855714 100644 --- a/src/main/java/cc/kune/gspace/client/feedback/FeedbackBottomPanel.java +++ b/src/main/java/cc/kune/gspace/client/feedback/Feed...
true
true
public FeedbackBottomPanel(final IconicResources res, final Session session, final Provider<SignIn> signIn, final StateManager stateManager, final I18nUITranslationService i18n, final Provider<ContentServiceAsync> contentService) { super(false, false); final IconLabel btn = new IconLabel(res.refre...
public FeedbackBottomPanel(final IconicResources res, final Session session, final Provider<SignIn> signIn, final StateManager stateManager, final I18nUITranslationService i18n, final Provider<ContentServiceAsync> contentService) { super(false, false); final IconLabel btn = new IconLabel(res.refre...
diff --git a/src/com/android/inputmethod/latin/ExpandableDictionary.java b/src/com/android/inputmethod/latin/ExpandableDictionary.java index 648f577c..00659370 100644 --- a/src/com/android/inputmethod/latin/ExpandableDictionary.java +++ b/src/com/android/inputmethod/latin/ExpandableDictionary.java @@ -1,465 +1,465 @@ ...
true
true
protected void getWordsRec(NodeArray roots, final WordComposer codes, final char[] word, final int depth, boolean completion, int snr, int inputIndex, int skipPos, WordCallback callback) { final int count = roots.length; final int codeSize = mInputLength; // Optimiza...
protected void getWordsRec(NodeArray roots, final WordComposer codes, final char[] word, final int depth, boolean completion, int snr, int inputIndex, int skipPos, WordCallback callback) { final int count = roots.length; final int codeSize = mInputLength; // Optimiza...
diff --git a/src/minemail/MineMailPlayerListener.java b/src/minemail/MineMailPlayerListener.java index ac52533..b237d97 100644 --- a/src/minemail/MineMailPlayerListener.java +++ b/src/minemail/MineMailPlayerListener.java @@ -1,47 +1,47 @@ package minemail; import org.bukkit.Material; import org.bukkit.block.Sign; ...
true
true
public void onPlayerInteract(PlayerInteractEvent event){ if(event.getAction().equals(Action.RIGHT_CLICK_BLOCK)){ if(event.getClickedBlock().getType().equals(Material.CHEST)){ if(event.getItem().getType().equals(Material.ARROW)) { BlockCoords coords = new BlockCoords(event.getClickedBlock()); Con...
public void onPlayerInteract(PlayerInteractEvent event){ if(event.getAction().equals(Action.RIGHT_CLICK_BLOCK)){ if(event.getClickedBlock().getType().equals(Material.CHEST)){ if(event.getItem().getType().equals(Material.ARROW)) { BlockCoords coords = new BlockCoords(event.getClickedBlock()); Con...
diff --git a/oeclib/test/ke/go/moh/oec/lib/MediatorTest.java b/oeclib/test/ke/go/moh/oec/lib/MediatorTest.java index bc99951..6ba8c06 100644 --- a/oeclib/test/ke/go/moh/oec/lib/MediatorTest.java +++ b/oeclib/test/ke/go/moh/oec/lib/MediatorTest.java @@ -1,101 +1,109 @@ /* * To change this template, choose Tools | Tem...
true
true
public void testFindPerson() { System.out.println("getData - findPerson"); String instanceName = Mediator.getProperty("Instance.Name"); System.out.println("Instance.Name = '" + instanceName + "'"); Mediator mediator = new Mediator(); PersonRequest requestData = new PersonRequ...
public void testFindPerson() { System.out.println("getData - findPerson"); String instanceName = Mediator.getProperty("Instance.Name"); System.out.println("Instance.Name = '" + instanceName + "'"); Mediator mediator = new Mediator(); PersonRequest requestData = new PersonRequ...
diff --git a/app2/src/com/handbagdevices/handbag/HandbagWiFiCommsService.java b/app2/src/com/handbagdevices/handbag/HandbagWiFiCommsService.java index e904271..e85f4e2 100644 --- a/app2/src/com/handbagdevices/handbag/HandbagWiFiCommsService.java +++ b/app2/src/com/handbagdevices/handbag/HandbagWiFiCommsService.java @@ ...
true
true
public void handleMessage(Message msg) { Log.d(this.getClass().getSimpleName(), "Tid (wifi):" + android.os.Process.myTid()); Log.d(this.getClass().getSimpleName(), "WiFi Comms Service received message:"); switch (msg.what) { case HandbagParseService.MSG_UI_ACTIVITY_REGISTER: // TODO: Move this constan...
public void handleMessage(Message msg) { Log.d(this.getClass().getSimpleName(), "Tid (wifi):" + android.os.Process.myTid()); Log.d(this.getClass().getSimpleName(), "WiFi Comms Service received message:"); switch (msg.what) { case HandbagParseService.MSG_UI_ACTIVITY_REGISTER: // TODO: Move this constan...
diff --git a/src/TextViewEx.java b/src/TextViewEx.java index 31992e4..f6f4896 100644 --- a/src/TextViewEx.java +++ b/src/TextViewEx.java @@ -1,194 +1,199 @@ package com.example.textjustify; import com.fscz.util.TextJustifyUtils; import android.content.Context; import android.graphics.Bitmap; import android.gra...
true
true
protected void onDraw(Canvas canvas) { // If wrap is disabled then, // request original onDraw if(!wrapEnabled) { super.onDraw(canvas); return; } // Active canas needs to be set // based on cacheEnabled Canvas act...
protected void onDraw(Canvas canvas) { // If wrap is disabled then, // request original onDraw if(!wrapEnabled) { super.onDraw(canvas); return; } // Active canas needs to be set // based on cacheEnabled Canvas act...
diff --git a/src/plugins/WebOfTrust/WebOfTrust.java b/src/plugins/WebOfTrust/WebOfTrust.java index dc76c01f..574e934f 100644 --- a/src/plugins/WebOfTrust/WebOfTrust.java +++ b/src/plugins/WebOfTrust/WebOfTrust.java @@ -1,3576 +1,3578 @@ /* This code is part of WoT, a plugin for Freenet. It is distributed * under th...
false
true
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
diff --git a/src/com/android/contacts/util/PhoneNumberFormatter.java b/src/com/android/contacts/util/PhoneNumberFormatter.java index 6e63aac37..204ac69a8 100644 --- a/src/com/android/contacts/util/PhoneNumberFormatter.java +++ b/src/com/android/contacts/util/PhoneNumberFormatter.java @@ -1,75 +1,73 @@ /* * Copyright...
true
true
protected void onPostExecute(PhoneNumberFormattingTextWatcher watcher) { if (watcher == null || isCancelled()) { return; // May happen if we cancel the task. } if (mTextView.getHandler() == null) { return; // View is already detached. ...
protected void onPostExecute(PhoneNumberFormattingTextWatcher watcher) { if (watcher == null || isCancelled()) { return; // May happen if we cancel the task. } // Setting a text changed listener is safe even after the view is detached. mTextView.ad...
diff --git a/src/erki/xpeter/con/irc/IrcConnection.java b/src/erki/xpeter/con/irc/IrcConnection.java index dd62429..44de9e0 100644 --- a/src/erki/xpeter/con/irc/IrcConnection.java +++ b/src/erki/xpeter/con/irc/IrcConnection.java @@ -1,234 +1,236 @@ /* * © Copyright 2008–2010 by Edgar Kalkowski <eMail@edgar-kalkowski...
true
true
public void run() { boolean pause = false; while (true) { try { Log.info("Trying to connect to " + host + ":" + port + "."); connect(host, port); Log.info("Connection established. Joining " + channel + "."); ...
public void run() { boolean pause = false; while (true) { try { Log.info("Trying to connect to " + host + ":" + port + "."); connect(host, port); Log.info("Connection established. Joining " + channel + "."); ...
diff --git a/modules/org.restlet/src/org/restlet/engine/http/connector/BaseClientHelper.java b/modules/org.restlet/src/org/restlet/engine/http/connector/BaseClientHelper.java index a70d9bee5..d1ff92c0f 100644 --- a/modules/org.restlet/src/org/restlet/engine/http/connector/BaseClientHelper.java +++ b/modules/org.restlet...
false
true
public void handleOutbound(Response response) { if ((response != null) && (response.getRequest() != null)) { Request request = response.getRequest(); // Resolve relative references Reference resourceRef = request.getResourceRef().isRelative() ? request ...
public void handleOutbound(Response response) { if ((response != null) && (response.getRequest() != null)) { Request request = response.getRequest(); // Resolve relative references Reference resourceRef = request.getResourceRef().isRelative() ? request ...
diff --git a/db-util/storage/src/java/org/sakaiproject/util/MultiSingleStorageSqlOracle.java b/db-util/storage/src/java/org/sakaiproject/util/MultiSingleStorageSqlOracle.java index 581ea20..e4d15a4 100644 --- a/db-util/storage/src/java/org/sakaiproject/util/MultiSingleStorageSqlOracle.java +++ b/db-util/storage/src/jav...
true
true
public String getXmlWhereLimitSql(String selectBy, String orderBy, String tableName, int first, int maxCount) { // consider using RANK() as in getXmlSql(String field, String table, int first, int last) above // if this has performance issues return "select * from ( select yrqr.*, rownum rnum from ( select " + ...
public String getXmlWhereLimitSql(String selectBy, String orderBy, String tableName, int first, int maxCount) { // consider using RANK() as in getXmlSql(String field, String table, int first, int last) above // if this has performance issues return "select * from ( select yrqr.*, rownum rnum from ( select " + ...
diff --git a/vhdllab-client/src/main/java/hr/fer/zemris/vhdllab/applets/editor/newtb/model/patterns/RandomVectorPattern.java b/vhdllab-client/src/main/java/hr/fer/zemris/vhdllab/applets/editor/newtb/model/patterns/RandomVectorPattern.java index 0cd083d3..7aa8c5fd 100644 --- a/vhdllab-client/src/main/java/hr/fer/zemris/...
true
true
public List<SignalChange> getChanges(long start, long end) throws UniformSignalChangeException, UniformPatternException { List<SignalChange> ret = new ArrayList<SignalChange>(); BigInteger maxGen = BigInteger.ONE.add(BigInteger.ONE).pow(dim); int maxGenInt = maxGen.bitCount() < 32 ? maxGen.intValue() : Intege...
public List<SignalChange> getChanges(long start, long end) throws UniformSignalChangeException, UniformPatternException { List<SignalChange> ret = new ArrayList<SignalChange>(); BigInteger maxGen = BigInteger.valueOf(2l).pow(dim); int maxGenInt = maxGen.bitLength() + 1 < 32 ? maxGen.intValue() : Integer.MAX_V...
diff --git a/spiffyui-app/src/main/java/org/spiffyui/spsample/client/ProjectCreatorPanel.java b/spiffyui-app/src/main/java/org/spiffyui/spsample/client/ProjectCreatorPanel.java index e7ad74e8..8834b5ed 100644 --- a/spiffyui-app/src/main/java/org/spiffyui/spsample/client/ProjectCreatorPanel.java +++ b/spiffyui-app/src/m...
false
true
public ProjectCreatorPanel(final String id) { super("div", getHTML(id)); /* * Add project and package fields and button */ m_projectName = new TextBox(); m_projectName.setTitle(Index.getStrings().projectName_tt()); m_projectName.addKeyUpHandler(this); ...
public ProjectCreatorPanel(final String id) { super("div", getHTML(id)); /* * Add project and package fields and button */ m_projectName = new TextBox(); m_projectName.setTitle(Index.getStrings().projectName_tt()); m_projectName.addKeyUpHandler(this); ...
diff --git a/libraries/javalib/java/awt/image/PixelGrabber.java b/libraries/javalib/java/awt/image/PixelGrabber.java index da50d1f70..9a68a0847 100644 --- a/libraries/javalib/java/awt/image/PixelGrabber.java +++ b/libraries/javalib/java/awt/image/PixelGrabber.java @@ -1,618 +1,618 @@ /* PixelGrabber.java -- retrieve a...
true
true
public synchronized void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { ColorModel currentModel; if (model != null) currentModel = model; else currentModel = this.model; for(int yp = y; yp < (y + h); yp++) { f...
public synchronized void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { ColorModel currentModel; if (model != null) currentModel = model; else currentModel = this.model; for(int yp = y; yp < (y + h); yp++) { f...
diff --git a/serviceInterfaces/src/main/java/org/mifos/application/admin/servicefacade/OfficeServiceFacade.java b/serviceInterfaces/src/main/java/org/mifos/application/admin/servicefacade/OfficeServiceFacade.java index 6a0133bcc..919f1f5e4 100644 --- a/serviceInterfaces/src/main/java/org/mifos/application/admin/service...
true
true
public OfficeHierarchyDto headOfficeHierarchy();
OfficeHierarchyDto headOfficeHierarchy();
diff --git a/src/org/jetbrains/plugins/clojure/repl/ReplPanel.java b/src/org/jetbrains/plugins/clojure/repl/ReplPanel.java index 68a87cf..64df898 100644 --- a/src/org/jetbrains/plugins/clojure/repl/ReplPanel.java +++ b/src/org/jetbrains/plugins/clojure/repl/ReplPanel.java @@ -1,274 +1,276 @@ /* * Copyright 2009 JetB...
true
true
public Repl(Module module) throws IOException, ConfigurationException, CantRunException { final TextConsoleBuilderImpl builder = new TextConsoleBuilderImpl(myProject) { private final ArrayList<Filter> filters = new ArrayList<Filter>(); @Override public ConsoleView getConsole() { ...
public Repl(Module module) throws IOException, ConfigurationException, CantRunException { final TextConsoleBuilderImpl builder = new TextConsoleBuilderImpl(myProject) { private final ArrayList<Filter> filters = new ArrayList<Filter>(); @Override public ConsoleView getConsole() { ...
diff --git a/astrid/src/com/todoroo/astrid/service/UpgradeService.java b/astrid/src/com/todoroo/astrid/service/UpgradeService.java index 42ddb7d8d..cbd745b83 100644 --- a/astrid/src/com/todoroo/astrid/service/UpgradeService.java +++ b/astrid/src/com/todoroo/astrid/service/UpgradeService.java @@ -1,511 +1,511 @@ packag...
false
true
public void showChangeLog(Context context, int from) { if(!(context instanceof Activity) || from == 0) return; Preferences.clear(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT); Preferences.clear(AstridPreferences.P_UPGRADE_FROM); StringBuilder changeLog = new StringBuilder(...
public void showChangeLog(Context context, int from) { if(!(context instanceof Activity) || from == 0) return; Preferences.clear(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT); Preferences.clear(AstridPreferences.P_UPGRADE_FROM); StringBuilder changeLog = new StringBuilder(...
diff --git a/src/main/java/org/mobicents/servlet/sip/restcomm/cache/DiskCache.java b/src/main/java/org/mobicents/servlet/sip/restcomm/cache/DiskCache.java index 8583df166..ad0f14a9f 100644 --- a/src/main/java/org/mobicents/servlet/sip/restcomm/cache/DiskCache.java +++ b/src/main/java/org/mobicents/servlet/sip/restcomm/...
true
true
public URI put(final String key, final InputStream data) throws IOException { if(contains(key)) { return get(key); } else { final String path = buildPath(key); RandomAccessFile file = null; FileChannel channel = null; FileLock lock = null; try { // Create a new file. ...
public URI put(final String key, final InputStream data) throws IOException { if(contains(key)) { return get(key); } else { final String path = buildPath(key); RandomAccessFile file = null; FileChannel channel = null; FileLock lock = null; try { // Create a new file. ...
diff --git a/src/me/neatmonster/spacertk/PingListener.java b/src/me/neatmonster/spacertk/PingListener.java index 89ec4b1..78ea24d 100644 --- a/src/me/neatmonster/spacertk/PingListener.java +++ b/src/me/neatmonster/spacertk/PingListener.java @@ -1,112 +1,114 @@ /* * This file is part of SpaceRTK (http://spacebukkit.x...
true
true
public void run() { try { socket.setSoTimeout(REQUEST_BUFFER); } catch (SocketException e) { handleException(e, "Error setting the So Timeout!"); } while (running.get()) { byte[] buffer = new byte[512]; try { DatagramPac...
public void run() { try { socket.setSoTimeout(REQUEST_BUFFER); } catch (SocketException e) { handleException(e, "Error setting the So Timeout!"); } while (running.get()) { byte[] buffer = new byte[512]; try { DatagramPac...
diff --git a/components/bio-formats/src/loci/formats/in/FEIReader.java b/components/bio-formats/src/loci/formats/in/FEIReader.java index e3c98d872..4dbb8a377 100644 --- a/components/bio-formats/src/loci/formats/in/FEIReader.java +++ b/components/bio-formats/src/loci/formats/in/FEIReader.java @@ -1,139 +1,139 @@ // //...
true
true
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("PCXReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Reading file header"); in.seek(0x51a); in.order(true); core[0].sizeX = in.readShort(); core[0].siz...
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("FEIReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Reading file header"); in.seek(0x51a); in.order(true); core[0].sizeX = in.readShort(); core[0].siz...
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/ArchiveSourceLocation.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/ArchiveSourceLocation.java index 0c2b2b2cc..0f108038e 100644 --- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching...
true
true
public Object findSourceElement(String name) throws CoreException { try { if (getArchive() == null) { return null; } // guess at source name if an inner type String pathStr= name.replace('.', '/'); int dotIndex= pathStr.lastIndexOf('/'); int dollarIndex= pathStr.indexOf('$', dotIndex + 1); ...
public Object findSourceElement(String name) throws CoreException { try { if (getArchive() == null) { return null; } // guess at source name if an inner type String pathStr= name.replace('.', '/'); int dotIndex= pathStr.lastIndexOf('/'); int dollarIndex= pathStr.indexOf('$', dotIndex + 1); ...
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/DartReconciler.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/DartReconciler.java index 2776f246..e83d0d5b 100644 --- a/editor/tools/plugins/com.goog...
false
true
private void refreshLoop() { // change Thread name { Source source = getSource(); if (source != null) { Thread.currentThread().setName("Reconciler: " + source.getShortName()); } } // schedule initial resolution if (project != null) { AnalysisContext context = getCon...
private void refreshLoop() { // change Thread name { Source source = getSource(); if (source != null) { Thread.currentThread().setName("Reconciler: " + source.getShortName()); } } // schedule initial resolution if (project != null) { AnalysisContext context = getCon...
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/api/notify/PropertiesEditingSemanticLister.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/api/notify/PropertiesEditingSemanticLister.java index ce74e885d..f67e01590 100644 --- a/plugins/org.eclipse.emf.eef.runti...
true
true
public void notifyChanged(final Notification notification) { if (part == null) component.dispose(); else { Runnable updateRunnable = new Runnable() { public void run() { runUpdateRunnable(notification); } }; if (null == Display.getCurrent()) { PlatformUI.getWorkbench().getDisplay().syn...
public void notifyChanged(final Notification notification) { if (part == null) component.dispose(); else { Runnable updateRunnable = new Runnable() { public void run() { runUpdateRunnable(notification); } }; if (null == Display.getCurrent()) { PlatformUI.getWorkbench().getDisplay().asy...
diff --git a/zooma-impl/src/main/java/uk/ac/ebi/fgpt/zooma/model/SimpleAnnotation.java b/zooma-impl/src/main/java/uk/ac/ebi/fgpt/zooma/model/SimpleAnnotation.java index 850e989f..8a380daf 100644 --- a/zooma-impl/src/main/java/uk/ac/ebi/fgpt/zooma/model/SimpleAnnotation.java +++ b/zooma-impl/src/main/java/uk/ac/ebi/fgpt...
true
true
public SimpleAnnotation(URI uri, Collection<BiologicalEntity> biologicalEntities, Property annotatedProperty, URI[] semanticTags, URI[] replacingAnnotations, URI[] replacedAnno...
public SimpleAnnotation(URI uri, Collection<BiologicalEntity> biologicalEntities, Property annotatedProperty, URI[] semanticTags, URI[] replacingAnnotations, URI[] replacedAnno...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/variables/JavaContentProviderFilter.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/variables/JavaContentProviderFilter.java index 32f0151b1..2d07e7625 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/...
true
true
public static Object[] filterVariables(Object[] variables, IPresentationContext context) throws DebugException { boolean filterStatics = !includeStatic(context); boolean filterConstants = !includeConstants(context); if (filterStatics || filterConstants) { List keep = new ArrayList(variables.length); for (...
public static Object[] filterVariables(Object[] variables, IPresentationContext context) throws DebugException { boolean filterStatics = !includeStatic(context); boolean filterConstants = !includeConstants(context); if (filterStatics || filterConstants) { List keep = new ArrayList(variables.length); for (...
diff --git a/server/src/test/java/com/ece/superkids/testing/QuestionDatabaseTests.java b/server/src/test/java/com/ece/superkids/testing/QuestionDatabaseTests.java index 8431d9c..981834e 100644 --- a/server/src/test/java/com/ece/superkids/testing/QuestionDatabaseTests.java +++ b/server/src/test/java/com/ece/superkids/te...
true
true
public void setup() { questionDatabase = QuestionDatabaseFactory.aQuestionDatabaseWithAllQuestions(); expected = QuestionBuilder.aQuestion() .asking("What has four sides?") .ofType(QuestionType.TEXT) .withChoices("Square", "Circle", "Triangle", "Oval")...
public void setup() { questionDatabase = QuestionDatabaseFactory.aQuestionDatabaseWithAllQuestions(); expected = QuestionBuilder.aQuestion() .asking("What has four sides?") .ofType(QuestionType.PICTURE) .withChoices("Square", "circle", "triangle", "hex...
diff --git a/products/federation/library/source/com/sun/identity/fedlet/ag/AssertionGen.java b/products/federation/library/source/com/sun/identity/fedlet/ag/AssertionGen.java index 884af634e..ea8cf30af 100644 --- a/products/federation/library/source/com/sun/identity/fedlet/ag/AssertionGen.java +++ b/products/federation...
true
true
private Assertion getAssertion(String [] attrName, String [] attrValue) { Assertion assertion = AssertionFactory.getInstance().createAssertion(); MetaDataParser lparser = new MetaDataParser(); String IDPEntityID = lparser.getIDPEntityID(); String SPEntityID = lparser.getSPEntityI...
private Assertion getAssertion(String [] attrName, String [] attrValue) { Assertion assertion = AssertionFactory.getInstance().createAssertion(); MetaDataParser lparser = new MetaDataParser(); String IDPEntityID = lparser.getIDPEntityID(); String SPEntityID = lparser.getSPEntityI...
diff --git a/vo/src/main/uk/ac/starlink/vo/TapCapability.java b/vo/src/main/uk/ac/starlink/vo/TapCapability.java index 6c5205b54..4f3211494 100644 --- a/vo/src/main/uk/ac/starlink/vo/TapCapability.java +++ b/vo/src/main/uk/ac/starlink/vo/TapCapability.java @@ -1,278 +1,278 @@ package uk.ac.starlink.vo; import java....
false
true
private static TapCapability attemptReadTapCapability( URL url ) throws ParserConfigurationException, XPathExpressionException, IOException, SAXException { /* Parse and prepare for document interrogation. */ Document capsDoc = DocumentBuilderFactory.newInstance() ...
private static TapCapability attemptReadTapCapability( URL url ) throws ParserConfigurationException, XPathExpressionException, IOException, SAXException { /* Parse and prepare for document interrogation. */ Document capsDoc = DocumentBuilderFactory.newInstance() ...
diff --git a/modules/quercus/src/com/caucho/vfs/GoogleStoreReadStream.java b/modules/quercus/src/com/caucho/vfs/GoogleStoreReadStream.java index d4692129c..e2687a713 100644 --- a/modules/quercus/src/com/caucho/vfs/GoogleStoreReadStream.java +++ b/modules/quercus/src/com/caucho/vfs/GoogleStoreReadStream.java @@ -1,159 +...
true
true
public long skip(long n) throws IOException { long remaining = _buf.remaining(); if (n < remaining) { _buf.position(_buf.position() + (int) n); return n; } _buf.rewind(); _buf.flip(); long toSkip = n - remaining; long pos = _is.position(); _is.position(pos + toSk...
public long skip(long n) throws IOException { long remaining = _buf.remaining(); if (n < remaining) { _buf.position(_buf.position() + (int) n); return n; } _buf.rewind(); _buf.flip(); long toSkip = n - remaining; long pos = _is.position(); _is.position(pos + toSk...
diff --git a/jupload2/src/wjhk/jupload2/upload/HttpConnect.java b/jupload2/src/wjhk/jupload2/upload/HttpConnect.java index 3027ddc..047606e 100644 --- a/jupload2/src/wjhk/jupload2/upload/HttpConnect.java +++ b/jupload2/src/wjhk/jupload2/upload/HttpConnect.java @@ -1,427 +1,428 @@ // // $Id: HttpConnect.java 286 2007-...
true
true
public String getProtocol() throws URISyntaxException, KeyManagementException, NoSuchAlgorithmException, UnknownHostException, KeyStoreException, CertificateException, IllegalArgumentException, UnrecoverableKeyException, IOException, JUploadException { String...
public String getProtocol() throws URISyntaxException, KeyManagementException, NoSuchAlgorithmException, UnknownHostException, KeyStoreException, CertificateException, IllegalArgumentException, UnrecoverableKeyException, IOException, JUploadException { String...
diff --git a/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpBasicAuthentication.java b/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpBasicAuthentication.java index 9d4040b4..8a26450e 100644 --- a/src/plugin/protocol-httpclient/src/java/org/apache/nutc...
true
true
protected HttpBasicAuthentication(String challenge) throws HttpAuthenticationException { this.challenge = challenge; LOG.fine("BasicAuthentication challenge is " + challenge); credentials = new ArrayList(); String username = NutchConf.get().get("http.auth.basic." + challenge...
protected HttpBasicAuthentication(String challenge) throws HttpAuthenticationException { this.challenge = challenge; LOG.fine("BasicAuthentication challenge is " + challenge); credentials = new ArrayList(); String username = NutchConf.get().get("http.auth.basic." + challenge...
diff --git a/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java b/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java index f1fae078..a9ef024a 100644 --- a/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java +++ b/tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.ja...
true
true
public void testTryCatch() throws Exception { checkAddsMessage(js(fromString( "try {" + " throw 2;" + "} catch (e) {" + " var e;" + "}")), MessageType.MASKING_SYMBOL, MessageLevel.ERROR); checkAddsMessage(js(fromString( "var e;" + "try ...
public void testTryCatch() throws Exception { checkAddsMessage(js(fromString( "try {" + " throw 2;" + "} catch (e) {" + " var e;" + "}")), MessageType.MASKING_SYMBOL, MessageLevel.ERROR); checkAddsMessage(js(fromString( "var e;" + "try ...
diff --git a/genomix/genomix-pregelix/src/main/java/edu/uci/ics/genomix/pregelix/operator/scaffolding/ScaffoldingVertex.java b/genomix/genomix-pregelix/src/main/java/edu/uci/ics/genomix/pregelix/operator/scaffolding/ScaffoldingVertex.java index 973ae7353..b235bfadb 100644 --- a/genomix/genomix-pregelix/src/main/java/ed...
false
true
public void BFSearch(Iterator<BFSTraverseMessage> msgIterator, SEARCH_TYPE searchType) { ScaffoldingVertexValueWritable vertex = getVertexValue(); HashMapWritable<LongWritable, BooleanWritable> unambiguousReadIds = vertex.getUnambiguousReadIds(); BFSTraverseMessage incomingMsg; while...
public void BFSearch(Iterator<BFSTraverseMessage> msgIterator, SEARCH_TYPE searchType) { ScaffoldingVertexValueWritable vertex = getVertexValue(); HashMapWritable<LongWritable, BooleanWritable> unambiguousReadIds = vertex.getUnambiguousReadIds(); BFSTraverseMessage incomingMsg; while...
diff --git a/components/patient-data/api/src/main/java/org/phenotips/data/internal/PhenoTipsPatientData.java b/components/patient-data/api/src/main/java/org/phenotips/data/internal/PhenoTipsPatientData.java index 20bb2874e..453ca33c2 100644 --- a/components/patient-data/api/src/main/java/org/phenotips/data/internal/Phe...
true
true
public synchronized Patient createNewPatient() { try { // FIXME Take these from the configuration String prefix = "P"; String targetSpace = "data"; XWikiContext context = (XWikiContext) this.execution.getContext().getProperty("xwikicontext"); ...
public synchronized Patient createNewPatient() { try { // FIXME Take these from the configuration String prefix = "P"; String targetSpace = "data"; XWikiContext context = (XWikiContext) this.execution.getContext().getProperty("xwikicontext"); ...
diff --git a/test/Strings.java b/test/Strings.java index bfc498ae..bfba0226 100644 --- a/test/Strings.java +++ b/test/Strings.java @@ -1,143 +1,143 @@ public class Strings { private static void expect(boolean v) { if (! v) throw new RuntimeException(); } private static boolean equal(Object a, Object b)...
true
true
private static void testDecode(final boolean prematureEOS) throws Exception { java.io.Reader r = new java.io.InputStreamReader (new java.io.InputStream() { int state = 0; public int read() { throw new UnsupportedOperationException(); } public int read(by...
private static void testDecode(final boolean prematureEOS) throws Exception { java.io.Reader r = new java.io.InputStreamReader (new java.io.InputStream() { int state = 0; public int read() { throw new UnsupportedOperationException(); } public int read(by...
diff --git a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/sourcecontrols/SSCM.java b/cruisecontrol/main/src/net/sourceforge/cruisecontrol/sourcecontrols/SSCM.java index ae70b8c5..d45de479 100644 --- a/cruisecontrol/main/src/net/sourceforge/cruisecontrol/sourcecontrols/SSCM.java +++ b/cruisecontrol/main/src/net/...
true
true
protected Modification parseOutputLine(String str) { LOG.debug("Output-" + str + "-\n"); if (str == null || str.length() == 0) { return null; } Modification mod = new Modification("sscm"); Modification.ModifiedFile modfile = mod.createModifiedFile(null, null); ...
protected Modification parseOutputLine(String str) { LOG.debug("Output-" + str + "-\n"); if (str == null || str.length() == 0) { return null; } Modification mod = new Modification("sscm"); Modification.ModifiedFile modfile = mod.createModifiedFile(null, null); ...
diff --git a/Slick/src/org/newdawn/slick/geom/Circle.java b/Slick/src/org/newdawn/slick/geom/Circle.java index 950ff74..e9307f5 100644 --- a/Slick/src/org/newdawn/slick/geom/Circle.java +++ b/Slick/src/org/newdawn/slick/geom/Circle.java @@ -1,178 +1,179 @@ package org.newdawn.slick.geom; /** * A simple Circle geo...
false
true
private boolean intersects(Rectangle other) { Rectangle box = other; Circle circle = this; if (box.contains(x,y)) { return true; } float x1 = box.getX(); float y1 = box.getY(); float x2 = box.getX() + box.getWidth(); float y2 = box.getY() + box.getHeight(); Line[] lines = new Line[4]; l...
private boolean intersects(Rectangle other) { Rectangle box = other; Circle circle = this; if (box.contains(x+radius,y+radius)) { return true; } float x1 = box.getX(); float y1 = box.getY(); float x2 = box.getX() + box.getWidth(); float y2 = box.getY() + box.getHeight(); Line[] lines = ne...
diff --git a/src/java/histaroach/util/HistoryGraphXMLReader.java b/src/java/histaroach/util/HistoryGraphXMLReader.java index fae1b89..bc8ee45 100644 --- a/src/java/histaroach/util/HistoryGraphXMLReader.java +++ b/src/java/histaroach/util/HistoryGraphXMLReader.java @@ -1,118 +1,118 @@ package histaroach.util; import...
true
true
public Revision parseRevisionElement(Element revisionElement) { // <Revision> Iterator<Element> iter = traverseContainedElements(revisionElement).iterator(); Element commitIDElement = iter.next(); // <commitID> Element compilableElement = iter.next(); // <Compilable> Element testAbortedElement = iter.next(...
public Revision parseRevisionElement(Element revisionElement) { // <Revision> Iterator<Element> iter = traverseContainedElements(revisionElement).iterator(); Element commitIDElement = iter.next(); // <commitID> Element compilableElement = iter.next(); // <Compilable> Element testAbortedElement = iter.next(...
diff --git a/src/ch/adorsaz/loungeDroid/servercom/SessionManager.java b/src/ch/adorsaz/loungeDroid/servercom/SessionManager.java index f0628e4..d5a4fdd 100644 --- a/src/ch/adorsaz/loungeDroid/servercom/SessionManager.java +++ b/src/ch/adorsaz/loungeDroid/servercom/SessionManager.java @@ -1,186 +1,186 @@ package ch.ado...
true
true
private JSONObject doRequest(String pageUrl, String httpParameters) throws AuthenticationFailLoungeException { JSONObject jsonResponse = null; HttpURLConnection urlConnection = null; try { urlConnection = (HttpURLConnection) new URL(mServerUrl + pageUrl) ...
private synchronized JSONObject doRequest(String pageUrl, String httpParameters) throws AuthenticationFailLoungeException { JSONObject jsonResponse = null; HttpURLConnection urlConnection = null; try { urlConnection = (HttpURLConnection) new URL(mServerUrl + pageUrl)...
diff --git a/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/InitialRequestDispatcher.java b/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/InitialRequestDispatcher.java index 7bc87eeae..2868658e5 100644 --- a/servers/sip-s...
false
true
private void dispatchInsideContainer(final SipProvider sipProvider, final SipApplicationRouterInfo applicationRouterInfo, final SipServletRequestImpl sipServletRequest, final SipFactoryImpl sipFactoryImpl) throws DispatcherException { if(logger.isInfoEnabled()) { logger.info("Dispatching the request event to " + ...
private void dispatchInsideContainer(final SipProvider sipProvider, final SipApplicationRouterInfo applicationRouterInfo, final SipServletRequestImpl sipServletRequest, final SipFactoryImpl sipFactoryImpl) throws DispatcherException { if(logger.isInfoEnabled()) { logger.info("Dispatching the request event to " + ...
diff --git a/msv/src/com/sun/msv/reader/trex/classic/TREXGrammarReader.java b/msv/src/com/sun/msv/reader/trex/classic/TREXGrammarReader.java index de15f3a6..fb2b1b73 100644 --- a/msv/src/com/sun/msv/reader/trex/classic/TREXGrammarReader.java +++ b/msv/src/com/sun/msv/reader/trex/classic/TREXGrammarReader.java @@ -1,245...
true
true
public Datatype resolveDataType( String qName ) { String[] s = splitQName(qName); if(s==null) { reportError( ERR_UNDECLEARED_PREFIX, qName ); // recover by using a dummy DataType return StringType.theInstance; } s[0] = mapNamespace(s[0]); // s[0] == namespace URI DataTypeVocabulary v = gram...
public Datatype resolveDataType( String qName ) { String[] s = splitQName(qName); if(s==null) { reportError( ERR_UNDECLARED_PREFIX, qName ); // recover by using a dummy DataType return StringType.theInstance; } s[0] = mapNamespace(s[0]); // s[0] == namespace URI DataTypeVocabulary v = gramm...
diff --git a/warlock2-rcp/com.arcaner.warlock.core/src/main/com/arcaner/warlock/client/internal/Stream.java b/warlock2-rcp/com.arcaner.warlock.core/src/main/com/arcaner/warlock/client/internal/Stream.java index bb00817e..39721a68 100644 --- a/warlock2-rcp/com.arcaner.warlock.core/src/main/com/arcaner/warlock/client/int...
true
true
public void send(String data, IWarlockStyle style) { if (buffer == null) { buffer = new StyledString(); } int currentOffset = buffer.getBuffer().length(); buffer.getBuffer().append(data); if (!buffer.getStyles().contains(style)) { // allows styles to be relative to the string they're using ...
public void send(String data, IWarlockStyle style) { // ignore empty lines (the tail end of stream appends etc) if we are currently prompting if (isEmpty(data) && isPrompting) return; if (buffer == null) { buffer = new StyledString(); } int currentOffset = buffer.getBuffer().length(); buffer....
diff --git a/drooms-game-impl/src/main/java/org/drooms/impl/FirstGame.java b/drooms-game-impl/src/main/java/org/drooms/impl/FirstGame.java index 755e8ee..51b9bea 100644 --- a/drooms-game-impl/src/main/java/org/drooms/impl/FirstGame.java +++ b/drooms-game-impl/src/main/java/org/drooms/impl/FirstGame.java @@ -1,315 +1,31...
false
true
public GameReport<DefaultSituation, DefaultPlayground, DefaultNode, DefaultEdge> play( final Properties gameConfig, final Properties playerConfig) { final List<Player> players = this.constructPlayers(gameConfig, playerConfig); DefaultPlayground playground; try { playg...
public GameReport<DefaultSituation, DefaultPlayground, DefaultNode, DefaultEdge> play( final Properties gameConfig, final Properties playerConfig) { final List<Player> players = this.constructPlayers(gameConfig, playerConfig); DefaultPlayground playground; try { playg...
diff --git a/src/java/org/codehaus/groovy/grails/web/pages/SitemeshPreprocessor.java b/src/java/org/codehaus/groovy/grails/web/pages/SitemeshPreprocessor.java index 77ec8cfb5..2846f1e6b 100644 --- a/src/java/org/codehaus/groovy/grails/web/pages/SitemeshPreprocessor.java +++ b/src/java/org/codehaus/groovy/grails/web/pag...
true
true
StringBuffer addHeadCapturing(String gspSource) { StringBuffer sb=new StringBuffer((int)(gspSource.length() * 1.2)); Matcher m=headPattern.matcher(gspSource); if(m.find()) { m.appendReplacement(sb, ""); sb.append("<sitemesh:captureHead"); if(m.group(1) != null) sb.append(m.group(1)); sb.append(">...
StringBuffer addHeadCapturing(String gspSource) { StringBuffer sb=new StringBuffer((int)(gspSource.length() * 1.2)); Matcher m=headPattern.matcher(gspSource); if(m.find()) { m.appendReplacement(sb, ""); sb.append("<sitemesh:captureHead"); if(m.group(1) != null) sb.append(m.group(1)); sb.append(">...
diff --git a/src/com/android/settings/applications/RunningState.java b/src/com/android/settings/applications/RunningState.java index beb960578..1b5310de0 100644 --- a/src/com/android/settings/applications/RunningState.java +++ b/src/com/android/settings/applications/RunningState.java @@ -1,1154 +1,1156 @@ /* * Copyr...
false
true
private boolean update(Context context, ActivityManager am) { final PackageManager pm = context.getPackageManager(); mSequence++; boolean changed = false; // Retrieve list of services, filtering out anything that definitely // won't be shown in the UI. ...
private boolean update(Context context, ActivityManager am) { final PackageManager pm = context.getPackageManager(); mSequence++; boolean changed = false; // Retrieve list of services, filtering out anything that definitely // won't be shown in the UI. ...
diff --git a/modules/org.restlet/src/org/restlet/util/XmlWriter.java b/modules/org.restlet/src/org/restlet/util/XmlWriter.java index c7d63c9f4..34ccdaba9 100644 --- a/modules/org.restlet/src/org/restlet/util/XmlWriter.java +++ b/modules/org.restlet/src/org/restlet/util/XmlWriter.java @@ -1,1514 +1,1514 @@ /* * Copyr...
true
true
private String doPrefix(String uri, String qName, boolean isElement) { final String defaultNS = this.nsSupport.getURI(""); if ("".equals(uri)) { if (isElement && (defaultNS != null)) { this.nsSupport.declarePrefix("", ""); } return null; } ...
private String doPrefix(String uri, String qName, boolean isElement) { final String defaultNS = this.nsSupport.getURI(""); if ("".equals(uri) || uri == null) { if (isElement && (defaultNS != null)) { this.nsSupport.declarePrefix("", ""); } return n...
diff --git a/errai-bus/src/main/java/org/jboss/errai/bus/server/service/bootstrap/DiscoverServices.java b/errai-bus/src/main/java/org/jboss/errai/bus/server/service/bootstrap/DiscoverServices.java index b8329ed92..0e39d8825 100644 --- a/errai-bus/src/main/java/org/jboss/errai/bus/server/service/bootstrap/DiscoverServic...
true
true
public void execute(final BootstrapContext context) { final ErraiServiceConfiguratorImpl config = (ErraiServiceConfiguratorImpl) context.getConfig(); boolean autoScanModules = true; final Set<String> loadedComponents = new HashSet<String>(); /*** Extensions ***/ if (confi...
public void execute(final BootstrapContext context) { final ErraiServiceConfiguratorImpl config = (ErraiServiceConfiguratorImpl) context.getConfig(); boolean autoScanModules = true; final Set<String> loadedComponents = new HashSet<String>(); /*** Extensions ***/ if (confi...
diff --git a/wicketstuff-jquery/src/main/java/org/wicketstuff/jquery/lightbox/LightboxOptions.java b/wicketstuff-jquery/src/main/java/org/wicketstuff/jquery/lightbox/LightboxOptions.java index db63eb63f..7a8b5e65f 100644 --- a/wicketstuff-jquery/src/main/java/org/wicketstuff/jquery/lightbox/LightboxOptions.java +++ b/w...
true
true
public LightboxOptions() { fixedNavigation(true); imageLoading("/resources/org.wicketstuff.jquery.lightbox.LightboxBehaviour/lightbox-ico-loading.gif"); imageBtnClose("/resources/org.wicketstuff.jquery.lightbox.LightboxBehaviour/lightbox-btn-close.gif"); imageBtnPrev("/resources/org.wicketstuff.jquery.lightbox...
public LightboxOptions() { fixedNavigation(true); imageLoading("/resources/org.wicketstuff.jquery.lightbox.LightboxBehaviour/lightbox-ico-loading.gif"); imageBtnClose("/resources/org.wicketstuff.jquery.lightbox.LightboxBehaviour/lightbox-btn-close.gif"); imageBtnPrev("/resources/org.wicketstuff.jquery.lightbox...
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java index a98ca5f00..01b2e4695 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/...
false
true
private ClassMetaData parseClassAnnotations() { // Check to see if there is cached metadata for the class that we are currently parsing. It // is possible that one of the annotations (Entity, Embeddable, MappedSuperclass) is in the // orm.xml. We still need to look at these files for other a...
private ClassMetaData parseClassAnnotations() { // Check to see if there is cached metadata for the class that we are currently parsing. It // is possible that one of the annotations (Entity, Embeddable, MappedSuperclass) is in the // orm.xml. We still need to look at these files for other a...
diff --git a/src/main/java/com/morningstar/grocerystore/App.java b/src/main/java/com/morningstar/grocerystore/App.java index 6ef71e9..c415617 100644 --- a/src/main/java/com/morningstar/grocerystore/App.java +++ b/src/main/java/com/morningstar/grocerystore/App.java @@ -1,45 +1,45 @@ package com.morningstar.grocerystore...
true
true
public static void main(String[] args) { if (args == null || args.length != 1) { logger.info("Please input data file name."); return; } InputStreamReader input = null; try { input = new InputStreamReader(new FileInputStream(args[0])); Dispatcher dispatcher = new Dispatcher(); int time = disp...
public static void main(String[] args) { if (args == null || args.length != 1) { logger.info("Please input data file name."); return; } InputStreamReader input = null; try { input = new InputStreamReader(new FileInputStream(args[0])); Dispatcher dispatcher = new Dispatcher(); int time = disp...
diff --git a/src/net/kaosfield/wv1/MainActivity.java b/src/net/kaosfield/wv1/MainActivity.java index b9264b5..a26fa97 100644 --- a/src/net/kaosfield/wv1/MainActivity.java +++ b/src/net/kaosfield/wv1/MainActivity.java @@ -1,100 +1,99 @@ package net.kaosfield.wv1; import android.net.Uri; import android.os.Bundle; i...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); webView = (WebView) findViewById(R.id.webview); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webView.setWebViewClient(new WebViewClie...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); webView = (WebView) findViewById(R.id.webview); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webView.setWebViewClient(new WebViewClie...
diff --git a/srcj/com/sun/electric/technology/Technology.java b/srcj/com/sun/electric/technology/Technology.java index c4d735aeb..e1aceddf4 100755 --- a/srcj/com/sun/electric/technology/Technology.java +++ b/srcj/com/sun/electric/technology/Technology.java @@ -1,6469 +1,6472 @@ /* -*- tab-width: 4 -*- * * Electric...
false
true
public Technology(Generic generic, Xml.Technology t) { this(generic, t.techName, Foundry.Type.valueOf(t.defaultFoundry), t.defaultNumMetals); xmlTech = t; setTechShortName(t.shortTechName); setTechDesc(t.description); setFactoryScale(t.scaleValue, t.scaleRelevant); se...
public Technology(Generic generic, Xml.Technology t) { this(generic, t.techName, Foundry.Type.valueOf(t.defaultFoundry), t.defaultNumMetals); xmlTech = t; setTechShortName(t.shortTechName); setTechDesc(t.description); setFactoryScale(t.scaleValue, t.scaleRelevant); se...
diff --git a/codegenerator/src/main/java/org/jboss/jca/codegenerator/Main.java b/codegenerator/src/main/java/org/jboss/jca/codegenerator/Main.java index 10d92212a..63e44770f 100644 --- a/codegenerator/src/main/java/org/jboss/jca/codegenerator/Main.java +++ b/codegenerator/src/main/java/org/jboss/jca/codegenerator/Main....
true
true
private static Definition inputFromCommandLine() throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); Definition def = new Definition(); Set<String> classes = new HashSet<String>(); //profile version String version = null; do ...
private static Definition inputFromCommandLine() throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); Definition def = new Definition(); Set<String> classes = new HashSet<String>(); //profile version String version = null; do ...
diff --git a/fluentlenium-core/src/main/java/org/fluentlenium/core/action/FillConstructor.java b/fluentlenium-core/src/main/java/org/fluentlenium/core/action/FillConstructor.java index 9366a195..c84d6a14 100644 --- a/fluentlenium-core/src/main/java/org/fluentlenium/core/action/FillConstructor.java +++ b/fluentlenium-co...
false
true
public void with(String... values) { if (fluentList != null) { fluentList.text(values); } else { $(cssSelector, filters).text(values); } }
public FillConstructor with(String... values) { if (fluentList != null) { fluentList.text(values); } else { $(cssSelector, filters).text(values); } return this; }
diff --git a/reactor-groovy/src/main/java/reactor/groovy/config/StreamEventRouter.java b/reactor-groovy/src/main/java/reactor/groovy/config/StreamEventRouter.java index 4c8275aa..cb6d40d9 100644 --- a/reactor-groovy/src/main/java/reactor/groovy/config/StreamEventRouter.java +++ b/reactor-groovy/src/main/java/reactor/gr...
true
true
public void route(final Object key, final Event<?> event, final List<Registration<? extends Consumer<? extends Event<?>>>> consumers, final Consumer<?> completionConsumer, final Consumer<Throwable> errorConsumer) { try { event.getHeaders().set(KEY_HEADER, key.toString()); ...
public void route(final Object key, final Event<?> event, final List<Registration<? extends Consumer<? extends Event<?>>>> consumers, final Consumer<?> completionConsumer, final Consumer<Throwable> errorConsumer) { try { event.getHeaders().set(KEY_HEADER, key.toString()); ...
diff --git a/buildhealth.core/tests/org/pescuma/buildhealth/extractor/findbugs/FindBugsExtractorTest.java b/buildhealth.core/tests/org/pescuma/buildhealth/extractor/findbugs/FindBugsExtractorTest.java index df70d26..86a2edd 100644 --- a/buildhealth.core/tests/org/pescuma/buildhealth/extractor/findbugs/FindBugsExtractor...
true
true
public void test1Folder1Bug() { InputStream stream = load("findbugs.1folder.1bug.xml"); FindBugsExtractor extractor = new FindBugsExtractor(new PseudoFiles(stream)); extractor.extractTo(table, tracker); verify(tracker).onStreamProcessed(); verify(tracker, never()).onFileProcessed(any(File.class)); ...
public void test1Folder1Bug() { InputStream stream = load("findbugs.1folder.1bug.xml"); FindBugsExtractor extractor = new FindBugsExtractor(new PseudoFiles(stream)); extractor.extractTo(table, tracker); verify(tracker).onStreamProcessed(); verify(tracker, never()).onFileProcessed(any(File.class)); ...
diff --git a/ecom/src/main/java/com/ecom/web/upload/SelectOfferStep.java b/ecom/src/main/java/com/ecom/web/upload/SelectOfferStep.java index 1e33256..95a505e 100644 --- a/ecom/src/main/java/com/ecom/web/upload/SelectOfferStep.java +++ b/ecom/src/main/java/com/ecom/web/upload/SelectOfferStep.java @@ -1,147 +1,148 @@ pa...
true
true
public SelectOfferStep(IModel<String> title, IModel<String> summary, final IModel<RealState> realStateModel) { super(title, summary); realStateTypesContainer = new WebMarkupContainer("realStateTypesContainer"); realStateTypesContainer.setOutputMarkupId(true); realStateTypesContainer...
public SelectOfferStep(IModel<String> title, IModel<String> summary, final IModel<RealState> realStateModel) { super(title, summary); realStateTypesContainer = new WebMarkupContainer("realStateTypesContainer"); realStateTypesContainer.setOutputMarkupId(true); realStateTypesContainer...
diff --git a/osgi/src/main/java/com/sinnerschrader/smaller/sogi/Server.java b/osgi/src/main/java/com/sinnerschrader/smaller/sogi/Server.java index 5351e65..0077a85 100644 --- a/osgi/src/main/java/com/sinnerschrader/smaller/sogi/Server.java +++ b/osgi/src/main/java/com/sinnerschrader/smaller/sogi/Server.java @@ -1,49 +1...
true
true
public static void main(String[] args) { Map<String, String> configuration = new HashMap<String, String>(); FrameworkFactory factory = ServiceLoader.load(FrameworkFactory.class) .iterator().next(); Framework framework = factory.newFramework(configuration); try { framework.start(); // ...
public static void main(String[] args) { Map<String, String> configuration = new HashMap<String, String>(); FrameworkFactory factory = ServiceLoader.load(FrameworkFactory.class) .iterator().next(); Framework framework = factory.newFramework(configuration); try { framework.start(); ...
diff --git a/src/il/ac/huji/app4beer/DAL/PushEvent.java b/src/il/ac/huji/app4beer/DAL/PushEvent.java index 54002e8..8df6ec7 100644 --- a/src/il/ac/huji/app4beer/DAL/PushEvent.java +++ b/src/il/ac/huji/app4beer/DAL/PushEvent.java @@ -1,128 +1,129 @@ package il.ac.huji.app4beer.DAL; import il.ac.huji.app4beer.EventMa...
true
true
public PushEvent(Event event) { _event = event; _title = event.get_title(); _description = event.get_description(); _location = event.get_location(); _date = event.get_date(); _owner = event.get_owner(); _contacts = new HashSet<String>(); _members = new HashSet<Contact>(); Iterator<Integer> contactsI...
public PushEvent(Event event) { _event = event; _title = event.get_title(); _description = event.get_description(); _location = event.get_location(); _date = event.get_date(); _owner = event.get_owner(); _contacts = new HashSet<String>(); _members = new HashSet<Contact>(); Iterator<Integer> contactsI...
diff --git a/msv/test/com/sun/msv/verifier/psvi/PSVIDump.java b/msv/test/com/sun/msv/verifier/psvi/PSVIDump.java index 596ca1bd..da5f7e6b 100644 --- a/msv/test/com/sun/msv/verifier/psvi/PSVIDump.java +++ b/msv/test/com/sun/msv/verifier/psvi/PSVIDump.java @@ -1,158 +1,160 @@ /* * @(#)$Id$ * * Copyright 2001 Sun M...
true
true
public static void main( String[] args ) throws Exception { if( args.length!=2 ) { System.out.println("Usage: PSVIDump <schema> <XML instance>\n"); return; } // load a schema. GrammarLoader will detect the schema language automatically. GrammarLoader loader = new GrammarLoader(); loader.setControlle...
public static void main( String[] args ) throws Exception { if( args.length!=2 ) { System.out.println("Usage: PSVIDump <schema> <XML instance>\n"); return; } // load a schema. GrammarLoader will detect the schema language automatically. GrammarLoader loader = new GrammarLoader(); loader.setControlle...
diff --git a/common/logisticspipes/nei/NEISolderingStationRecipeManager.java b/common/logisticspipes/nei/NEISolderingStationRecipeManager.java index 7c184566..5c5f2e50 100644 --- a/common/logisticspipes/nei/NEISolderingStationRecipeManager.java +++ b/common/logisticspipes/nei/NEISolderingStationRecipeManager.java @@ -1...
false
true
private ShapedRecipeHandler.CachedShapedRecipe getShape(SolderingStationRecipe recipe) { ShapedRecipeHandler.CachedShapedRecipe shape = new ShapedRecipeHandler.CachedShapedRecipe(0, 0, null, recipe.result); for(int x = 0; x < 3; x++) { for(int y = 0; y < 3; y++) { if(recipe.source[y*3 + x] == null) ...
private ShapedRecipeHandler.CachedShapedRecipe getShape(SolderingStationRecipe recipe) { ShapedRecipeHandler.CachedShapedRecipe shape = new ShapedRecipeHandler.CachedShapedRecipe(0, 0, null, recipe.result); for(int x = 0; x < 3; x++) { for(int y = 0; y < 3; y++) { if(recipe.source[y*3 + x] == null) ...
diff --git a/src/java/net/sf/samtools/SAMRecord.java b/src/java/net/sf/samtools/SAMRecord.java index 924f6c6..ac48811 100644 --- a/src/java/net/sf/samtools/SAMRecord.java +++ b/src/java/net/sf/samtools/SAMRecord.java @@ -1,1535 +1,1535 @@ /* * The MIT License * * Copyright (c) 2009 The Broad Institute * * Pe...
true
true
public List<SAMValidationError> isValid() { // ret is only instantiate if there are errors to report, in order to reduce GC in the typical case // in which everything is valid. It's ugly, but more efficient. ArrayList<SAMValidationError> ret = null; if (!getReadPairedFlag()) { ...
public List<SAMValidationError> isValid() { // ret is only instantiate if there are errors to report, in order to reduce GC in the typical case // in which everything is valid. It's ugly, but more efficient. ArrayList<SAMValidationError> ret = null; if (!getReadPairedFlag()) { ...
diff --git a/server/bennu-io/src/main/java/org/fenixedu/bennu/io/rest/json/FileStorageAdapter.java b/server/bennu-io/src/main/java/org/fenixedu/bennu/io/rest/json/FileStorageAdapter.java index 821d23f8..4a3cadbe 100644 --- a/server/bennu-io/src/main/java/org/fenixedu/bennu/io/rest/json/FileStorageAdapter.java +++ b/ser...
true
true
public JsonElement view(FileStorage fs, JsonBuilder arg1) { final JsonObject json = new JsonObject(); json.addProperty("id", fs.getExternalId()); json.addProperty("name", fs.getName()); json.addProperty("type", fs.getClass().getSimpleName()); // json.addProperty("filesCount", ...
public JsonElement view(FileStorage fs, JsonBuilder arg1) { final JsonObject json = new JsonObject(); json.addProperty("id", fs.getExternalId()); json.addProperty("name", fs.getName()); json.addProperty("type", fs.getClass().getSimpleName()); json.addProperty("filesCount", fs...
diff --git a/xstream/src/test/com/thoughtworks/acceptance/EncodingTest.java b/xstream/src/test/com/thoughtworks/acceptance/EncodingTest.java index 574b7426..b06e73fc 100644 --- a/xstream/src/test/com/thoughtworks/acceptance/EncodingTest.java +++ b/xstream/src/test/com/thoughtworks/acceptance/EncodingTest.java @@ -1,84 ...
true
true
public void testDecimalFormatSymbols() { final String xml; if (!JVM.is14()) { xml = "<java.text.DecimalFormatSymbols serialization=\"custom\">\n" + " <java.text.DecimalFormatSymbols>\n" + " <default>\n" + " <dec...
public void testDecimalFormatSymbols() { final String xml; if (!JVM.is14()) { xml = "<java.text.DecimalFormatSymbols serialization=\"custom\">\n" + " <java.text.DecimalFormatSymbols>\n" + " <default>\n" + " <dec...
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java index c990c187..00a18091 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterR...
false
true
public void apply(Bitmap bitmap) { int w = bitmap.getWidth(); int h = bitmap.getHeight(); float p = mParameter; float value = p; int box = Math.min(w, h); int sizex = Math.min((int)((p+100)*box/400),w/2); int sizey = Math.min((int)((p+100)*box/800),h/2); ...
public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { int w = bitmap.getWidth(); int h = bitmap.getHeight(); float p = mParameter; float value = p; int box = Math.min(w, h); int sizex = Math.min((int)((p+100)*box/400),w/2); int sizey = M...
diff --git a/parser/src/main/java/org/simplesql/parser/tree/STRING.java b/parser/src/main/java/org/simplesql/parser/tree/STRING.java index 8b60ac6..c3ca48c 100644 --- a/parser/src/main/java/org/simplesql/parser/tree/STRING.java +++ b/parser/src/main/java/org/simplesql/parser/tree/STRING.java @@ -1,26 +1,26 @@ package ...
true
true
public STRING(String val) { super(TYPE.STRING); // trim and remove starting and ending ' or " characters. String locVal = val.trim(); if (locVal.startsWith("\'") && locVal.endsWith("\'") || (locVal.startsWith("\"") && locVal.endsWith("\""))) { locVal = locVal.substring(1, locVal.length() - 2); } ...
public STRING(String val) { super(TYPE.STRING); // trim and remove starting and ending ' or " characters. String locVal = val.trim(); if (locVal.startsWith("\'") && locVal.endsWith("\'") || (locVal.startsWith("\"") && locVal.endsWith("\""))) { locVal = locVal.substring(1, locVal.length() - 1); } ...
diff --git a/src/com/oresomecraft/BattleMaps/maps/Spleef.java b/src/com/oresomecraft/BattleMaps/maps/Spleef.java index cd45cf0..45e8082 100755 --- a/src/com/oresomecraft/BattleMaps/maps/Spleef.java +++ b/src/com/oresomecraft/BattleMaps/maps/Spleef.java @@ -1,72 +1,70 @@ package com.oresomecraft.BattleMaps.maps; imp...
false
true
public void applyInventory(final BattlePlayer p) { Inventory i = p.getInventory(); ItemStack DIAMOND_SPADE = new ItemStack(Material.DIAMOND_SPADE, 1); ItemStack SNOW_BALL = new ItemStack(Material.SNOW_BALL, 16); ItemStack CHAINMAIL_HELMET = new ItemStack(Material.CHAINMAIL_H...
public void applyInventory(final BattlePlayer p) { Inventory i = p.getInventory(); ItemStack DIAMOND_SPADE = new ItemStack(Material.DIAMOND_SPADE, 1); ItemStack SNOW_BALL = new ItemStack(Material.SNOW_BALL, 16); ItemStack CHAINMAIL_HELMET = new ItemStack(Material.CHAINMAIL_H...
diff --git a/src/MinComparator.java b/src/MinComparator.java index c1db41e..ed63f8d 100644 --- a/src/MinComparator.java +++ b/src/MinComparator.java @@ -1,29 +1,30 @@ import java.util.Comparator; /** * */ /** * @author steve * */ public class MinComparator implements Comparator<Move> { /* (non-Ja...
false
true
public int compare(Move m1, Move m2) { if(m1.isWin && m2.isWin && m1.score > 1 && m2.score > 1) { //Red win, so we want the lowest depth return m2.depth - m1.depth; } else if(m1.score != m2.score) { return m1.score > m2.score ? 1 : -1; } else { //If all things are equal, take the closest return m2...
public int compare(Move m1, Move m2) { if(m1.isWin && m2.isWin && m1.score > 1 && m2.score > 1) { //Red win, so we want the highest depth //but we are selecting MIN return m2.depth - m1.depth; } else if(m1.score != m2.score) { return m1.score > m2.score ? 1 : -1; } else { //If all things are equal...
diff --git a/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/pacman/PacmanGui.java b/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/pacman/PacmanGui.java index e85f68bf51..b17b076cda 100644 --- a/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/pacman/Pa...
true
true
public static void init(final StatefulKnowledgeSession ksession) { try { String osName = System.getProperty( "os.name" ); if ( osName.indexOf( "Linux" ) >= 0 ) { UIManager.setLookAndFeel( "com.sun.java.swing.plaf.gtk.GTKLookAndFeel" ); } else if ( osName.i...
public static void init(final StatefulKnowledgeSession ksession) { try { String osName = System.getProperty( "os.name" ); if ( osName.indexOf( "Linux" ) >= 0 ) { UIManager.setLookAndFeel( "com.sun.java.swing.plaf.gtk.GTKLookAndFeel" ); } else if ( osName.i...
diff --git a/src/nu/validator/htmlparser/impl/Tokenizer.java b/src/nu/validator/htmlparser/impl/Tokenizer.java index 9c04b5c..7e63c21 100755 --- a/src/nu/validator/htmlparser/impl/Tokenizer.java +++ b/src/nu/validator/htmlparser/impl/Tokenizer.java @@ -1,5906 +1,5907 @@ /* * Copyright (c) 2005-2007 Henri Sivonen *...
false
true
private int stateLoop(int state, char c, int pos, @NoLength char[] buf, boolean reconsume, int returnState, int endPos) throws SAXException { stateloop: for (;;) { switch (state) { case DATA: dataloop: for (;;) { if (reconsu...
private int stateLoop(int state, char c, int pos, @NoLength char[] buf, boolean reconsume, int returnState, int endPos) throws SAXException { stateloop: for (;;) { switch (state) { case DATA: dataloop: for (;;) { if (reconsu...
diff --git a/src/main/java/com/agile_coder/poker/server/rest/EstimateRequestHandler.java b/src/main/java/com/agile_coder/poker/server/rest/EstimateRequestHandler.java index 9b23870..117e269 100644 --- a/src/main/java/com/agile_coder/poker/server/rest/EstimateRequestHandler.java +++ b/src/main/java/com/agile_coder/poker...
true
true
public Response addEstimate( @PathParam("name") String name, @PathParam("estimate") String estimate) { Session session = Session.getInstance(); try { Estimate estimateVal; if (isInteger(estimate)) { estimateVal = Estimate.fromInt(Intege...
public Response addEstimate( @PathParam("name") String name, @PathParam("estimate") String estimate) { Session session = Session.getInstance(); try { Estimate estimateVal; if (isInteger(estimate)) { estimateVal = Estimate.fromInt(Intege...
diff --git a/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/AbstractSVNCommandEnvironment.java b/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/AbstractSVNCommandEnvironment.java index b7973ee39..85761a68a 100644 --- a/svnkit-cli/src/main/java/org/tmatesoft/svn/cli/AbstractSVNCommandEnvironment.java +++ b/svnkit-cli/sr...
true
true
public List<String> combineTargets(Collection targets, boolean warnReserved) throws SVNException { List result = new LinkedList(); result.addAll(getArguments()); if (targets != null) { result.addAll(targets); } boolean hasRelativeURLs = false; SVNURL root...
public List<String> combineTargets(Collection targets, boolean warnReserved) throws SVNException { List result = new LinkedList(); result.addAll(getArguments()); if (targets != null) { result.addAll(targets); } boolean hasRelativeURLs = false; SVNURL root...
diff --git a/src/eu/webtoolkit/jwt/WOverlayLoadingIndicator.java b/src/eu/webtoolkit/jwt/WOverlayLoadingIndicator.java index 10a26304..4f9a94ee 100644 --- a/src/eu/webtoolkit/jwt/WOverlayLoadingIndicator.java +++ b/src/eu/webtoolkit/jwt/WOverlayLoadingIndicator.java @@ -1,195 +1,201 @@ /* * Copyright (C) 2009 Emweb ...
false
true
public WOverlayLoadingIndicator(String styleClass, String backgroundStyleClass, String textStyleClass) { super(); this.setInline(false); WApplication app = WApplication.getInstance(); this.cover_ = new WContainerWidget(this); this.center_ = new WContainerWidget(this); WImage img = new WImage(WApplicatio...
public WOverlayLoadingIndicator(String styleClass, String backgroundStyleClass, String textStyleClass) { super(); this.setInline(false); WApplication app = WApplication.getInstance(); this.cover_ = new WContainerWidget(this); this.center_ = new WContainerWidget(this); WImage img = new WImage(WApplicatio...
diff --git a/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMessageCallback.java b/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMessageCallback.java index 0a7eb53..e156888 100644 --- a/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMessageCallback.java +++ b/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMess...
true
true
public synchronized boolean handleMessage(Message msg) { if (midiEventListener == null) { return false; } if (received == null) { received = new ByteArrayOutputStream(); } try { received.write((byte[]) msg.obj); } catch (IOException e) { // ignore exception } if (received.size() < 4) { ...
public synchronized boolean handleMessage(Message msg) { if (midiEventListener == null) { return false; } if (received == null) { received = new ByteArrayOutputStream(); } try { received.write((byte[]) msg.obj); } catch (IOException e) { // ignore exception } if (received.size() < 4) { ...
diff --git a/src/edu/berkeley/gamesman/game/AtariGo.java b/src/edu/berkeley/gamesman/game/AtariGo.java index 9eaeac3b..8ef459af 100644 --- a/src/edu/berkeley/gamesman/game/AtariGo.java +++ b/src/edu/berkeley/gamesman/game/AtariGo.java @@ -1,52 +1,53 @@ package edu.berkeley.gamesman.game; import edu.berkeley.gamesma...
true
true
public boolean canBreathe(int row, int col, char c) { if (row < 0 || row >= gameHeight || col < 0 || col >= gameWidth) { return false; } else if (get(row, col) == ' ') return true; else if (get(row, col) != c) return false; else if (checked[row][col] != current) return false; else { checked[ro...
public boolean canBreathe(int row, int col, char c) { if (row < 0 || row >= gameHeight || col < 0 || col >= gameWidth) { return false; } else if (get(row, col) == ' ') return true; else if (get(row, col) != c) return false; else if (checked[row][col] != current) return false; else { checked[ro...
diff --git a/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java b/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java index 3d0b9921f..7b71ea54e 100644 --- a/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java +++ b/java/testing/org/apache/derbyTesting/fun...
false
true
private static void getSystemProperties() { // Get any properties specified on the command line // which may not have been specified in the suite prop file Properties sp = System.getProperties(); String searchCP = sp.getProperty("ij.searchClassPath"); if (searchCP != null...
private static void getSystemProperties() { // Get any properties specified on the command line // which may not have been specified in the suite prop file Properties sp = System.getProperties(); String searchCP = sp.getProperty("ij.searchClassPath"); if (searchCP != null...
diff --git a/com/geeksville/android/PreferenceUtil.java b/com/geeksville/android/PreferenceUtil.java index 35ae87a..1086cb9 100755 --- a/com/geeksville/android/PreferenceUtil.java +++ b/com/geeksville/android/PreferenceUtil.java @@ -1,48 +1,58 @@ /***********************************************************************...
false
true
public static float getFloat(Context context, String prefsname, float defaultValue) { try { return PreferenceManager.getDefaultSharedPreferences(context).getFloat(prefsname, defaultValue); } catch (Exception ex) { Log.w(TAG, "Ignoring malformed preference: " + prefsname); return defaultValue; } }
public static float getFloat(Context context, String prefsname, float defaultValue) { try { return PreferenceManager.getDefaultSharedPreferences(context) .getFloat(prefsname, defaultValue); } catch (Exception ex) { try { // Try to convert it ourselves (in case it was stored as a // string) ...
diff --git a/src/main/java/com/springsource/greenhouse/signin/FacebookSigninController.java b/src/main/java/com/springsource/greenhouse/signin/FacebookSigninController.java index d5552ee5..baeb7763 100644 --- a/src/main/java/com/springsource/greenhouse/signin/FacebookSigninController.java +++ b/src/main/java/com/spring...
true
true
public String signinWithFacebook(@FacebookUserId String facebookUserId) { try { Account account = jdbcTemplate.queryForObject(SELECT_ACCOUNT_INFO, new RowMapper<Account>() { public Account mapRow(ResultSet rs, int row) throws SQLException { return new Account(rs.getLong("id"),...
public String signinWithFacebook(@FacebookUserId String facebookUserId) { try { Account account = jdbcTemplate.queryForObject(SELECT_ACCOUNT_INFO, new RowMapper<Account>() { public Account mapRow(ResultSet rs, int row) throws SQLException { return new Account(rs.getLong("id"),...
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java index 3c8b8ba7..c2cfd334 100644 --- a/src/com/android/mms/transaction/MessagingNotification.java +++ b/src/com/android/mms/transaction/MessagingNotification.java @@ -1,1358 +1,1361 @@ /*...
false
true
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActivity.getNotificationEnabled(context)) { if (DE...
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActivity.getNotificationEnabled(context)) { if (DE...
diff --git a/src/ServerCommRX.java b/src/ServerCommRX.java index 92afedd..f35930a 100644 --- a/src/ServerCommRX.java +++ b/src/ServerCommRX.java @@ -1,158 +1,158 @@ import java.io.BufferedReader; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; ...
true
true
public void processMsg(ServerMsg m){ String tag = m.getTag(); tag = tag.trim(); //Messages received as worker if(tag.equals("job_init")){ //set server worker object's coordinator ID field mSW.InitJob(m.srcID); } else if(tag.equals("file_transfer_start")){ r...
public void processMsg(ServerMsg m) throws IOException{ String tag = m.getTag(); tag = tag.trim(); //Messages received as worker if(tag.equals("job_init")){ //set server worker object's coordinator ID field mSW.InitJob(m.srcID); } else if(tag.equals("file_transfe...
diff --git a/eclipse_projects/MediaSensePlatformOpenSource/src/se/miun/mediasense/disseminationlayer/communication/tcp/TcpCommunication.java b/eclipse_projects/MediaSensePlatformOpenSource/src/se/miun/mediasense/disseminationlayer/communication/tcp/TcpCommunication.java index 933910c..51e230a 100644 --- a/eclipse_proje...
true
true
private void handleConnection(Socket s) { try { byte[] buffer = new byte[1048576]; InputStream is = s.getInputStream(); is.read(buffer); //String stringRepresentation = new String(buffer); Message message = messageSerializer.deserializeMessage(buffer,s.getRemoteSocketAddress().toString(),getLocalI...
private void handleConnection(Socket s) { try { byte[] buffer = new byte[1048576]; InputStream is = s.getInputStream(); is.read(buffer); //String stringRepresentation = new String(buffer); Message message = messageSerializer.deserializeMessage(buffer,s.getInetAddress().getHostAddress(),getLocalIp(...
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java index 70fc2bbf..b0a004ec 100644 --- a/src/org/mozilla/javascript/Interpreter.java +++ b/src/org/mozilla/javascript/Interpreter.java @@ -1,2531 +1,2533 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
true
true
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; ...
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; ...
diff --git a/source/net/full/fs/ui/FTPSpecificComposite.java b/source/net/full/fs/ui/FTPSpecificComposite.java index 1694795..d733d90 100644 --- a/source/net/full/fs/ui/FTPSpecificComposite.java +++ b/source/net/full/fs/ui/FTPSpecificComposite.java @@ -1,87 +1,88 @@ /* * This program is free software; you can redist...
true
true
protected void onBeforePasswordHook(Composite parent) { super.onBeforePasswordHook(parent); Label labelAuthenticationType = new Label(parent, SWT.NONE); labelAuthenticationType.setText(Messages.getString("ProtocolSpecificComposite.FTPAuthType")); comboAuthentication = new Combo(parent, SWT.READ_ONLY); GridDa...
protected void onBeforePasswordHook(Composite parent) { super.onBeforePasswordHook(parent); Label labelAuthenticationType = new Label(parent, SWT.NONE); labelAuthenticationType.setText(Messages.getString("ProtocolSpecificComposite.FTPAuthType")); comboAuthentication = new Combo(parent, SWT.READ_ONLY); GridDa...
diff --git a/src/com/hutchdesign/transitgenie/Request.java b/src/com/hutchdesign/transitgenie/Request.java index d46ab15..3b99154 100644 --- a/src/com/hutchdesign/transitgenie/Request.java +++ b/src/com/hutchdesign/transitgenie/Request.java @@ -1,173 +1,173 @@ package com.hutchdesign.transitgenie; import java.io.Bu...
false
true
public Document[] buildRoutes() throws IOException, ParserConfigurationException, SAXException { buildURL(); //URL url = new URL( // "http://www.transitgenie.com:8080/path_xml?version=2.3&origlon=-87.839341&origlat=41.823309&destlon=-87.635990&destlat=41.878884&dep_time=1279296315&max_results=3&walking_speed...
public Document[] buildRoutes() throws IOException, ParserConfigurationException, SAXException { //buildURL(); URL url = new URL( "http://www.transitgenie.com:8080/path_xml?version=2.3&origlon=-87.839341&origlat=41.823309&destlon=-87.635990&destlat=41.878884&dep_time=1279296315&max_results=3&walking_speed=1...
diff --git a/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruction_ArrayGet.java b/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruction_ArrayGet.java index 899e05a3..66b4753e 100644 --- a/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruction_ArrayGet.java +++ b/src/uk/ac/cam/db538/dexter/dex/code/insn/DexInstruc...
true
true
public void instrument(DexCode_InstrumentationState state) { // need to combine the taint of the array object and the index val code = getMethodCode(); val regArrayTaint = (regTo == regArray) ? new DexRegister() : state.getTaintRegister(regArray); if (opcode != Opcode_GetPut.Object) { code.repla...
public void instrument(DexCode_InstrumentationState state) { // need to combine the taint of the array object and the index val code = getMethodCode(); val regArrayTaint = (regTo == regArray) ? new DexRegister() : state.getTaintRegister(regArray); if (opcode != Opcode_GetPut.Object) { code.repla...
diff --git a/src/ox/stackgame/stackmachine/Lexer.java b/src/ox/stackgame/stackmachine/Lexer.java index 7c779fc..da49c40 100644 --- a/src/ox/stackgame/stackmachine/Lexer.java +++ b/src/ox/stackgame/stackmachine/Lexer.java @@ -1,99 +1,99 @@ package ox.stackgame.stackmachine; import ox.stackgame.stackmachine.instructi...
false
true
public static ArrayList<Instruction> lex(String source) throws LexerException { ArrayList<Instruction> program = new ArrayList<Instruction>(); Pattern linesPattern = Pattern.compile("[^\n]+"); Pattern commentPattern = Pattern.compile("--.*$"); Pattern trimlPattern = Patt...
public static ArrayList<Instruction> lex(String source) throws LexerException { ArrayList<Instruction> program = new ArrayList<Instruction>(); Pattern linesPattern = Pattern.compile("[^\n]+"); Pattern commentPattern = Pattern.compile("--.*$"); Pattern trimlPattern = Patt...
diff --git a/org-antlr-netbeans/src/org/antlr/netbeans/parsing/spi/impl/CursorSensitiveParserTaskScheduler.java b/org-antlr-netbeans/src/org/antlr/netbeans/parsing/spi/impl/CursorSensitiveParserTaskScheduler.java index c0143aa..a83bbef 100644 --- a/org-antlr-netbeans/src/org/antlr/netbeans/parsing/spi/impl/CursorSensit...
true
true
protected void setEditor(JTextComponent editor) { if (currentEditor != null) { currentEditor.removeCaretListener(caretListener); } super.setEditor(editor); if (editor != null) { if (caretListener == null) { caretListener = new CaretListenerIm...
protected void setEditor(JTextComponent editor) { if (currentEditor != null) { currentEditor.removeCaretListener(caretListener); } super.setEditor(editor); currentEditor = editor; if (editor != null) { if (caretListener == null) { car...
diff --git a/src/net/sf/freecol/client/gui/panel/ReportTurnPanel.java b/src/net/sf/freecol/client/gui/panel/ReportTurnPanel.java index 5b1dcb422..4f22fad01 100644 --- a/src/net/sf/freecol/client/gui/panel/ReportTurnPanel.java +++ b/src/net/sf/freecol/client/gui/panel/ReportTurnPanel.java @@ -1,398 +1,398 @@ /** * C...
true
true
public ReportTurnPanel(FreeColClient freeColClient, GUI gui, ModelMessage... messages) { super(freeColClient, gui, Messages.message("reportTurnAction.name")); ClientOptions options = getClientOptions(); this._messages = messages; Comparator<ModelMessage> comparator = op...
public ReportTurnPanel(FreeColClient freeColClient, GUI gui, ModelMessage... messages) { super(freeColClient, gui, Messages.message("reportTurnAction.name")); ClientOptions options = getClientOptions(); this._messages = messages; Comparator<ModelMessage> comparator = op...
diff --git a/src/de/freiburg/uni/iig/sisi/model/safetyrequirements/mutant/AuthorizationMutant.java b/src/de/freiburg/uni/iig/sisi/model/safetyrequirements/mutant/AuthorizationMutant.java index 5f5e1c0..51b298b 100644 --- a/src/de/freiburg/uni/iig/sisi/model/safetyrequirements/mutant/AuthorizationMutant.java +++ b/src/d...
true
true
protected HashSet<Subject> createMutation(ModelObject modelObject) { // get subjects that are authorized to execute transition + delegation rules HashSet<Subject> authorizedSubjects = getProcessModel().getResourceModel().getDomainFor((Transition) modelObject).getMembers(); HashSet<Role> roleSet = getProcessModel...
protected HashSet<Subject> createMutation(ModelObject modelObject) { // get subjects that are authorized to execute transition + delegation rules HashSet<Subject> authorizedSubjects = getProcessModel().getResourceModel().getDomainFor((Transition) modelObject).getMembers(); HashSet<Role> roleSet = getProcessModel...