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/scstool/src/scstool/proc/CapacityService.java b/scstool/src/scstool/proc/CapacityService.java index 086d274..5779e80 100644 --- a/scstool/src/scstool/proc/CapacityService.java +++ b/scstool/src/scstool/proc/CapacityService.java @@ -1,244 +1,244 @@ /** * */ package scstool.proc; import java.util.A...
false
true
private static Integer[] chooseShift(Integer capacity, Double costsFirstShift, Double costsSecondShift, Double costsThirdShift) { Integer[] result = new Integer[3]; if (costsFirstShift < costsSecondShift && costsFirstShift < costsThirdShift) { result[0] = 1; if (capacity > FIRST_SHIFT) { resul...
private static Integer[] chooseShift(Integer capacity, Double costsFirstShift, Double costsSecondShift, Double costsThirdShift) { Integer[] result = new Integer[3]; if (costsFirstShift < costsSecondShift && costsFirstShift < costsThirdShift) { result[0] = 1; if (capacity > FIRST_SHIFT) { resul...
diff --git a/cli/src/main/java/com/gooddata/processor/GdcDI.java b/cli/src/main/java/com/gooddata/processor/GdcDI.java index 9193c1b5..8e15976b 100644 --- a/cli/src/main/java/com/gooddata/processor/GdcDI.java +++ b/cli/src/main/java/com/gooddata/processor/GdcDI.java @@ -1,1493 +1,1494 @@ /* * Copyright (c) 2009, Goo...
true
true
private GdcDI(CommandLine ln, Properties defaults) { try { cliParams = parse(ln, defaults); cliParams.setHttpConfig(new NamePasswordConfiguration( cliParams.containsKey(CLI_PARAM_INSECURE[0]) ? "http" : "https", cliParams.get(CLI_PARAM_HOST[0])...
private GdcDI(CommandLine ln, Properties defaults) { try { cliParams = parse(ln, defaults); cliParams.setHttpConfig(new NamePasswordConfiguration( cliParams.containsKey(CLI_PARAM_INSECURE[0]) ? "http" : "https", cliParams.get(CLI_PARAM_HOST[0])...
diff --git a/src/main/java/com/ctb/pilot/study/algorithm/controller/AlgorithmContestController.java b/src/main/java/com/ctb/pilot/study/algorithm/controller/AlgorithmContestController.java index 5f3a2bb..40f1a30 100644 --- a/src/main/java/com/ctb/pilot/study/algorithm/controller/AlgorithmContestController.java +++ b/sr...
true
true
public String addHistory(@RequestParam int contestSequence, @RequestParam String problemId, @RequestParam String submissionHistory, HttpServletRequest req) throws ParseException { String[] splitSubmissionHistory = submissionHistory.split("[\t ]+"); String submitId = splitSubmissionHistory[INDEX_SUBMIT_ID]...
public String addHistory(@RequestParam int contestSequence, @RequestParam String problemId, @RequestParam String submissionHistory, HttpServletRequest req) throws ParseException { String[] splitSubmissionHistory = submissionHistory.split("[\t ]+"); String submitId = splitSubmissionHistory[INDEX_SUBMIT_ID]...
diff --git a/src/main/java/hudson/plugins/warnings/WarningsResultBuilder.java b/src/main/java/hudson/plugins/warnings/WarningsResultBuilder.java index f9032ec1..e0af59d2 100644 --- a/src/main/java/hudson/plugins/warnings/WarningsResultBuilder.java +++ b/src/main/java/hudson/plugins/warnings/WarningsResultBuilder.java @...
false
true
public WarningsResult build(final AbstractBuild<?, ?> build, final JavaProject project) { Object previous = build.getPreviousBuild(); if (previous instanceof AbstractBuild<?, ?>) { AbstractBuild<?, ?> previousBuild = (AbstractBuild<?, ?>)previous; WarningsResultAction previou...
public WarningsResult build(final AbstractBuild<?, ?> build, final JavaProject project) { Object previous = build.getPreviousBuild(); while (previous instanceof AbstractBuild<?, ?> && previous != null) { AbstractBuild<?, ?> previousBuild = (AbstractBuild<?, ?>)previous; Warni...
diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index 38a34b7a..dc352e9a 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -1,1166 +1,1166 @@ /* * Copyright (C) 2008 The Android ...
true
true
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { if (Utils.isMonkeyRunning()) { return false; } if (preference == mEnableAdb) { if (mEnableAdb.isChecked()) { mDialogClicked = false; if (...
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { if (Utils.isMonkeyRunning()) { return false; } if (preference == mEnableAdb) { if (mEnableAdb.isChecked()) { mDialogClicked = false; if (...
diff --git a/illagameengine/src/org/illarion/engine/backend/slick/SlickWorldMap.java b/illagameengine/src/org/illarion/engine/backend/slick/SlickWorldMap.java index cfe7b355..7bc2233d 100644 --- a/illagameengine/src/org/illarion/engine/backend/slick/SlickWorldMap.java +++ b/illagameengine/src/org/illarion/engine/backen...
true
true
public void render(@Nonnull final GameContainer container) { try { if (clearMap) { clearMap = false; if (offScreenGraphics == null) { offScreenGraphics = worldMapImage.getGraphics(); } offScreenGraphics.setColor(...
public void render(@Nonnull final GameContainer container) { try { if (clearMap) { clearMap = false; if (offScreenGraphics == null) { offScreenGraphics = worldMapImage.getGraphics(); } offScreenGraphics.setColor(...
diff --git a/src/Unbxd.java b/src/Unbxd.java index 9d0b325..3ce10e5 100644 --- a/src/Unbxd.java +++ b/src/Unbxd.java @@ -1,225 +1,225 @@ import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Date; import java.util.L...
true
true
public void ask(){ if(status == STATES.WHAT_TO_DO){ System.out.println("What do you want to do?"); System.out.println("1) Look for products matching a search string"); System.out.println("2) Look for search strings matching an artist"); System.out.println("Q) Quit"); String input = in.nextLine(); ...
public void ask(){ if(status == STATES.WHAT_TO_DO){ System.out.println("What do you want to do?"); System.out.println("1) Look for products matching a search string"); System.out.println("2) Look for search strings matching an artist"); System.out.println("Q) Quit"); String input = in.nextLine(); ...
diff --git a/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java b/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java index 39c2559f..ab4a88b9 100644 --- a/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java +++ b/content-t...
true
true
public void doUpload(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); ToolSession toolSession = SessionManager.getCurrentToolSession(); MultiFileUploadPipe mfp = (MultiFileUploadPipe...
public void doUpload(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); ToolSession toolSession = SessionManager.getCurrentToolSession(); MultiFileUploadPipe mfp = (MultiFileUploadPipe...
diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java index ba909f0..75f82c1 100644 --- a/src/com/android/settings/DisplaySettings.java +++ b/src/com/android/settings/DisplaySettings.java @@ -1,488 +1,481 @@ /* * Copyright (C) 2010 The Android Open Source Project ...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ContentResolver resolver = getActivity().getContentResolver(); addPreferencesFromResource(R.xml.display_settings); mDisplayRotationPreference = (PreferenceScreen) findPreference(KEY_DISPLAY_ROTATI...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ContentResolver resolver = getActivity().getContentResolver(); addPreferencesFromResource(R.xml.display_settings); mDisplayRotationPreference = (PreferenceScreen) findPreference(KEY_DISPLAY_ROTATI...
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/x10.runtime/src-java/x10/rtt/Types.java b/x10.runtime/src-java/x10/rtt/Types.java index 3beacaf0a..40105558b 100644 --- a/x10.runtime/src-java/x10/rtt/Types.java +++ b/x10.runtime/src-java/x10/rtt/Types.java @@ -1,439 +1,439 @@ /* * This file is part of the X10 project (http://x10-lang.org). * * T...
true
true
public static Object zeroValue(Type<?> rtt) { Type<?>[] typeParams = null; if (rtt instanceof ParameterizedType) { ParameterizedType<?> pt = (ParameterizedType<?>) rtt; rtt = pt.getRuntimeType(); typeParams = pt.getParams(); } if (isStructType(rtt...
public static Object zeroValue(Type<?> rtt) { Type<?>[] typeParams = null; if (rtt instanceof ParameterizedType) { ParameterizedType<?> pt = (ParameterizedType<?>) rtt; rtt = pt.getRuntimeType(); typeParams = pt.getParams(); } if (isStructType(rtt...
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java index 1d470a223..fd3c44c7e 100644 --- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/deb...
false
true
TCFNodeExpression(final TCFNode parent, final String script, final String field_id, final String var_id, final String reg_id, final int index, final boolean deref) { super(parent, var_id != null ? var_id : "Expr" + expr_cnt++); this.script = script; this.field_id = fi...
TCFNodeExpression(final TCFNode parent, final String script, final String field_id, final String var_id, final String reg_id, final int index, final boolean deref) { super(parent, var_id != null ? var_id : "Expr" + expr_cnt++); this.script = script; this.field_id = fi...
diff --git a/library/src/com/github/espiandev/showcaseview/ShowcaseView.java b/library/src/com/github/espiandev/showcaseview/ShowcaseView.java index d89d226..048b5c0 100644 --- a/library/src/com/github/espiandev/showcaseview/ShowcaseView.java +++ b/library/src/com/github/espiandev/showcaseview/ShowcaseView.java @@ -1,8...
true
true
protected void dispatchDraw(Canvas canvas) { if (showcaseX < 0 || showcaseY < 0 || isRedundant) { super.dispatchDraw(canvas); return; } //Draw the semi-transparent background canvas.drawColor(backColor); //Draw to the scale specified Matrix m...
protected void dispatchDraw(Canvas canvas) { if (showcaseX < 0 || showcaseY < 0 || isRedundant) { super.dispatchDraw(canvas); return; } //Draw the semi-transparent background canvas.drawColor(backColor); //Draw to the scale specified Matrix m...
diff --git a/yoga-core/src/main/java/org/skyscreamer/yoga/view/XmlYogaViewUtil.java b/yoga-core/src/main/java/org/skyscreamer/yoga/view/XmlYogaViewUtil.java index 651fa74..a585771 100644 --- a/yoga-core/src/main/java/org/skyscreamer/yoga/view/XmlYogaViewUtil.java +++ b/yoga-core/src/main/java/org/skyscreamer/yoga/view/...
true
true
public static void write( Element rootElement, OutputStream outputStream ) throws IOException { DOMDocument domDocument = new DOMDocument(); domDocument.setRootElement( rootElement ); domDocument.write( new OutputStreamWriter( outputStream ) ); outputStream.flush(); }
public static void write( Element rootElement, OutputStream outputStream ) throws IOException { DOMDocument domDocument = new DOMDocument(); domDocument.setRootElement( rootElement ); OutputStreamWriter out = new OutputStreamWriter( outputStream ); domDocument.write( out ); ...
diff --git a/classes/com/sapienter/jbilling/client/util/GenericMaintainAction.java b/classes/com/sapienter/jbilling/client/util/GenericMaintainAction.java index f20a823c..2cdece99 100644 --- a/classes/com/sapienter/jbilling/client/util/GenericMaintainAction.java +++ b/classes/com/sapienter/jbilling/client/util/GenericM...
false
true
private String edit() throws SessionInternalError, RemoteException { String retValue = "edit"; String messageKey = null; // create a dto with the info from the form and call // the remote session ItemTypeDTOEx typeDto = null; ItemDTOEx itemDto = null; ItemUse...
private String edit() throws SessionInternalError, RemoteException { String retValue = "edit"; String messageKey = null; // create a dto with the info from the form and call // the remote session ItemTypeDTOEx typeDto = null; ItemDTOEx itemDto = null; ItemUse...
diff --git a/src/ca/wacos/NametagUtils.java b/src/ca/wacos/NametagUtils.java index 9feb5b1..f0ff659 100644 --- a/src/ca/wacos/NametagUtils.java +++ b/src/ca/wacos/NametagUtils.java @@ -1,215 +1,227 @@ package ca.wacos; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; imp...
false
true
static boolean compareVersion(String old, String newer) { ArrayList<Integer> oldValues = new ArrayList<Integer>(); ArrayList<Integer> newValues = new ArrayList<Integer>(); String at = ""; for (char c : old.toCharArray()) { if (c != '.') { at += c; } else { try { oldValues.add(Integer.pars...
static boolean compareVersion(String old, String newer) { ArrayList<Integer> oldValues = new ArrayList<Integer>(); ArrayList<Integer> newValues = new ArrayList<Integer>(); String at = ""; for (char c : old.toCharArray()) { if (c != '.') { at += c; } else { try { oldValues.add(Integer.pars...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/AbstractTaskListFilter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/AbstractTaskListFilter.java index 3e14895fa..683b3a214 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui...
true
true
protected boolean shouldAlwaysShow(ITask task) { return task.isActive() || (MylarTaskListPlugin.getTaskListManager().isReminderToday(task) && !task.isCompleted()) || (task.isPastReminder() && !task.isCompleted()) || NewLocalTaskAction.DESCRIPTION_DEFAULT.equals(task.getDescription()); }
protected boolean shouldAlwaysShow(ITask task) { return task.isActive() || (MylarTaskListPlugin.getTaskListManager().isReminderToday(task) && !task.isCompleted()) || (MylarTaskListPlugin.getTaskListManager().isCompletedToday(task)) || (task.isPastReminder() && !task.isCompleted()) || NewLocalTaskAction....
diff --git a/karaf/gshell/gshell-admin/src/main/java/org/apache/felix/karaf/gshell/admin/internal/AdminServiceImpl.java b/karaf/gshell/gshell-admin/src/main/java/org/apache/felix/karaf/gshell/admin/internal/AdminServiceImpl.java index b072805dd..2e7ec983b 100644 --- a/karaf/gshell/gshell-admin/src/main/java/org/apache/...
true
true
public synchronized Instance createInstance(String name, int port, String location) throws Exception { if (instances.get(name) != null) { throw new IllegalArgumentException("Instance '" + name + "' already exists"); } File serviceMixBase = new File(location != null ? location : (...
public synchronized Instance createInstance(String name, int port, String location) throws Exception { if (instances.get(name) != null) { throw new IllegalArgumentException("Instance '" + name + "' already exists"); } File serviceMixBase = new File(location != null ? location : (...
diff --git a/ini/trakem2/display/Tree.java b/ini/trakem2/display/Tree.java index 479c4b86..47686766 100644 --- a/ini/trakem2/display/Tree.java +++ b/ini/trakem2/display/Tree.java @@ -1,2265 +1,2266 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2009 Albert Cardona. This program is free software; you can red...
false
true
public void keyPressed(KeyEvent ke) { switch (ProjectToolbar.getToolId()) { case ProjectToolbar.PEN: case ProjectToolbar.BRUSH: break; default: // Reject return; } Object source = ke.getSource(); if (! (source instanceof DisplayCanvas)) return; final int keyCode = ke.getKeyCode(); f...
public void keyPressed(KeyEvent ke) { switch (ProjectToolbar.getToolId()) { case ProjectToolbar.PEN: case ProjectToolbar.BRUSH: break; default: // Reject return; } Object source = ke.getSource(); if (! (source instanceof DisplayCanvas)) return; final int keyCode = ke.getKeyCode(); f...
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/runtime/src/org/zaluum/widget/ZSliderWidget.java b/runtime/src/org/zaluum/widget/ZSliderWidget.java index 8476a9b..8efda9b 100644 --- a/runtime/src/org/zaluum/widget/ZSliderWidget.java +++ b/runtime/src/org/zaluum/widget/ZSliderWidget.java @@ -1,38 +1,38 @@ package org.zaluum.widget; import java.util.c...
false
true
public ZSliderWidget(int min, int max) { setMaximum(max); setMinimum(min); setValue(0); out.set((double) 0); addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { out.set((double) getValue()); } }); }
public ZSliderWidget() { setMaximum(1000); setMinimum(0); setValue(0); out.set((double) 0); addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { out.set((double) getValue()/1000.0); } }); }
diff --git a/src/main/java/net/glowstone/scheduler/GlowScheduler.java b/src/main/java/net/glowstone/scheduler/GlowScheduler.java index 4b6dab8..d33fa64 100644 --- a/src/main/java/net/glowstone/scheduler/GlowScheduler.java +++ b/src/main/java/net/glowstone/scheduler/GlowScheduler.java @@ -1,325 +1,326 @@ package net.gl...
true
true
private void pulse() { primaryThread = Thread.currentThread(); // Process player packets server.getSessionRegistry().pulse(); // Run the relevant tasks. for (Iterator<GlowTask> it = tasks.values().iterator(); it.hasNext(); ) { GlowTask task = it.next(); ...
private void pulse() { primaryThread = Thread.currentThread(); // Process player packets server.getSessionRegistry().pulse(); // Run the relevant tasks. for (Iterator<GlowTask> it = tasks.values().iterator(); it.hasNext(); ) { GlowTask task = it.next(); ...
diff --git a/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/SignatureComposite.java b/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/SignatureComposite.java index 509034b..81c8c5a 100755 --- a/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/SignatureComposite.java ++...
true
true
private void initialize() { grpSignatures = new Group(this, SWT.NONE); grpSignatures.setText(Messages.SignatureWizard_grpSignatures); grpSignatures.setBounds(10, 10, 300, 151); rdo1 = new Button(grpSignatures, SWT.RADIO); rdo1.setSelection(true); rdo1.setBounds(10, 19, 118, 18); rdo1.setText(Messages....
private void initialize() { grpSignatures = new Group(this, SWT.NONE); grpSignatures.setText(Messages.SignatureWizard_grpSignatures); grpSignatures.setBounds(10, 10, 300, 151); rdo1 = new Button(grpSignatures, SWT.RADIO); rdo1.setSelection(true); rdo1.setBounds(10, 19, 118, 18); rdo1.setText(Messages....
diff --git a/src/savant/format/FastaFormatter.java b/src/savant/format/FastaFormatter.java index 77a7d78e..5019e9fd 100644 --- a/src/savant/format/FastaFormatter.java +++ b/src/savant/format/FastaFormatter.java @@ -1,95 +1,95 @@ /* * Copyright 2010 University of Toronto * * Licensed under the Apache Licens...
true
true
public void format() throws IOException, InterruptedException, SavantFileFormattingException{ // set the input file size (for tracking progress) this.totalBytes = new File(inFilePath).length(); // open the input file inFileReader = this.openInputFile(); DataOutputStream ou...
public void format() throws IOException, InterruptedException, SavantFileFormattingException{ // set the input file size (for tracking progress) this.totalBytes = new File(inFilePath).length(); // open the input file inFileReader = this.openInputFile(); DataOutputStream ou...
diff --git a/src/org/flowvisor/config/ConfDBHandler.java b/src/org/flowvisor/config/ConfDBHandler.java index 6ec7a6d..d7db921 100644 --- a/src/org/flowvisor/config/ConfDBHandler.java +++ b/src/org/flowvisor/config/ConfDBHandler.java @@ -1,127 +1,128 @@ package org.flowvisor.config; import java.sql.Connection; impo...
true
true
private DataSource getDataSource() { if (pds != null) return pds; gop = new GenericObjectPool(null); gop.setTestOnBorrow(true); gop.setTestWhileIdle(true); cf = new DriverManagerConnectionFactory(this.protocol + this.dbName, this.username, this.password); pcf = new PoolableConnectionFactory(cf, gop,...
private DataSource getDataSource() { if (pds != null) return pds; gop = new GenericObjectPool(null); gop.setTestOnBorrow(true); gop.setTestWhileIdle(true); cf = new DriverManagerConnectionFactory(this.protocol + this.dbName, this.username, this.password); pcf = new PoolableConnectionFactory(cf, gop,...
diff --git a/aether-impl/src/main/java/org/eclipse/aether/impl/DefaultServiceLocator.java b/aether-impl/src/main/java/org/eclipse/aether/impl/DefaultServiceLocator.java index abc1544..8a3d206 100644 --- a/aether-impl/src/main/java/org/eclipse/aether/impl/DefaultServiceLocator.java +++ b/aether-impl/src/main/java/org/ec...
false
true
public <T> List<T> getServices( Class<T> type ) { synchronized ( instances ) { @SuppressWarnings( "unchecked" ) List<T> objs = (List<T>) instances.get( type ); if ( objs == null ) { Iterator<T> it; Collection<Class<...
public <T> List<T> getServices( Class<T> type ) { synchronized ( instances ) { @SuppressWarnings( "unchecked" ) List<T> objs = (List<T>) instances.get( type ); if ( objs == null ) { Iterator<T> it; Collection<Class<...
diff --git a/src/main/java/com/griefcraft/util/ProtectionFinder.java b/src/main/java/com/griefcraft/util/ProtectionFinder.java index 57d4fc86..e71905d6 100644 --- a/src/main/java/com/griefcraft/util/ProtectionFinder.java +++ b/src/main/java/com/griefcraft/util/ProtectionFinder.java @@ -1,397 +1,397 @@ /* * Copyright...
false
true
protected Result tryLoadProtection(Block block, boolean noAutoCache) { if (matchedProtection != null) { return Result.E_FOUND; } LWC lwc = LWC.getInstance(); ProtectionCache cache = lwc.getProtectionCache(); // Check the cache if ((matchedProtection = ca...
protected Result tryLoadProtection(Block block, boolean noAutoCache) { if (matchedProtection != null) { return Result.E_FOUND; } LWC lwc = LWC.getInstance(); ProtectionCache cache = lwc.getProtectionCache(); // Check the cache if ((matchedProtection = ca...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetUpdater.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetUpdater.java index 94807b653..d9b7966da 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/inte...
true
true
private void checkElementExistence(IWorkingSet workingSet) { ArrayList<IAdaptable> list = new ArrayList<IAdaptable>(Arrays.asList(workingSet.getElements())); boolean changed = false; for (Iterator<IAdaptable> iter = list.iterator(); iter.hasNext();) { IAdaptable adaptable = iter.next(); boolean remove = fa...
private void checkElementExistence(IWorkingSet workingSet) { ArrayList<IAdaptable> list = new ArrayList<IAdaptable>(Arrays.asList(workingSet.getElements())); boolean changed = false; for (Iterator<IAdaptable> iter = list.iterator(); iter.hasNext();) { IAdaptable adaptable = iter.next(); boolean remove = fa...
diff --git a/core/plugins/org.eclipse.dltk.console.ui/src/org/eclipse/dltk/console/ui/internal/ScriptConsolePage.java b/core/plugins/org.eclipse.dltk.console.ui/src/org/eclipse/dltk/console/ui/internal/ScriptConsolePage.java index 9cd1d882b..76ba7b93c 100644 --- a/core/plugins/org.eclipse.dltk.console.ui/src/org/eclips...
false
true
protected void createActions() { super.createActions(); proposalsAction = new ContentAssistProposalsAction(getViewer()); proposalsAction = new ContentAssistProposalsAction(getViewer()); SaveConsoleSessionAction saveSessionAction = new SaveConsoleSessionAction( (ScriptConsole) getConsole(), ScriptCons...
protected void createActions() { super.createActions(); proposalsAction = new ContentAssistProposalsAction(getViewer()); proposalsAction = new ContentAssistProposalsAction(getViewer()); SaveConsoleSessionAction saveSessionAction = new SaveConsoleSessionAction( (ScriptConsole) getConsole(), ScriptCons...
diff --git a/src/com/larsbutler/gamedemo/core/GameState.java b/src/com/larsbutler/gamedemo/core/GameState.java index a9095b8..af92028 100644 --- a/src/com/larsbutler/gamedemo/core/GameState.java +++ b/src/com/larsbutler/gamedemo/core/GameState.java @@ -1,175 +1,170 @@ package com.larsbutler.gamedemo.core; import ...
false
true
public void move(Entity e, double t, double dt) { State currentXState = e.getXState(); State currentYState = e.getYState(); e.setPrevXState(currentXState); e.setPrevYState(currentYState); // All of the solid tiles we can collide with: List<Rectangle2D> levelHitBoxes ...
public void move(Entity e, double t, double dt) { State currentXState = e.getXState(); State currentYState = e.getYState(); e.setPrevXState(currentXState); e.setPrevYState(currentYState); // All of the solid tiles we can collide with: List<Rectangle2D> levelHitBoxes ...
diff --git a/src/mc/lib/network/AsyncFileDownloader.java b/src/mc/lib/network/AsyncFileDownloader.java index 5925980..6fae4e6 100644 --- a/src/mc/lib/network/AsyncFileDownloader.java +++ b/src/mc/lib/network/AsyncFileDownloader.java @@ -1,234 +1,237 @@ /* Copyright 2012 Mikhail Chabanov Licensed under the Ap...
true
true
protected Boolean doInBackground(Void... v) { InputStream is = null; OutputStream os = null; try { Log.i(LOGTAG, "Srart downloading url(" + url + ") to file(" + file + ")"); URLConnection c = url.openConnection(); c.connect(); is = ...
protected Boolean doInBackground(Void... v) { InputStream is = null; OutputStream os = null; try { Log.i(LOGTAG, "Srart downloading url(" + url + ") to file(" + file + ")"); URLConnection c = url.openConnection(); c.connect(); is = ...
diff --git a/src/main/java/com/me/tft_02/ghosts/listeners/BlockListener.java b/src/main/java/com/me/tft_02/ghosts/listeners/BlockListener.java index c6a4745..431fefc 100644 --- a/src/main/java/com/me/tft_02/ghosts/listeners/BlockListener.java +++ b/src/main/java/com/me/tft_02/ghosts/listeners/BlockListener.java @@ -1,5...
true
true
public void onBlockBreak(BlockBreakEvent event) { Block block = event.getBlock(); Player player = event.getPlayer(); if (!BlockUtils.isTombStone(block.getLocation()) && Ghosts.p.ghostManager.isGhost(player)) { event.setCancelled(true); return; } if (...
public void onBlockBreak(BlockBreakEvent event) { Block block = event.getBlock(); Player player = event.getPlayer(); if (!BlockUtils.isTombStone(block.getLocation())) { if (Ghosts.p.ghostManager.isGhost(player)) { event.setCancelled(true); } ...
diff --git a/clustermate-service/src/main/java/com/fasterxml/clustermate/service/cleanup/LocalEntryCleaner.java b/clustermate-service/src/main/java/com/fasterxml/clustermate/service/cleanup/LocalEntryCleaner.java index 29628688..1ec9aa0b 100644 --- a/clustermate-service/src/main/java/com/fasterxml/clustermate/service/c...
true
true
protected LocalCleanupStats _cleanUp() throws Exception { final LocalCleanupStats stats = new LocalCleanupStats(); if (_entryStore.isClosed()) { if (!_isTesting) { LOG.warn("LocalEntryCleanup task cancelled: Entry DB has been closed"); } retur...
protected LocalCleanupStats _cleanUp() throws Exception { final LocalCleanupStats stats = new LocalCleanupStats(); if (_entryStore.isClosed()) { if (!_isTesting) { LOG.warn("LocalEntryCleanup task cancelled: Entry DB has been closed"); } retur...
diff --git a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/software/Quest5a.java b/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/software/Quest5a.java index ca11b59..cecc2ed 100644 --- a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/software/Quest5a.java +++ b/HttpdConfigParser/src/org/akquinet/audit/bsi...
true
true
public boolean answer() { _console.println(FormattedConsole.OutputLevel.HEADING, "----" + _id + "----"); List<Directive> incList = _conf.getDirectiveIgnoreCase("Include"); if(!incList.isEmpty()) { _console.printAnswer(_level, false, "There are Include-directives in your apache configuration:"); for (...
public boolean answer() { _console.println(FormattedConsole.OutputLevel.HEADING, "----" + _id + "----"); List<Directive> incList = _conf.getAllDirectivesIgnoreCase("Include"); if(!incList.isEmpty()) { _console.printAnswer(_level, false, "There are Include-directives in your apache configuration:"); f...
diff --git a/tests/src/com/android/music/MusicPlayerStability.java b/tests/src/com/android/music/MusicPlayerStability.java index 5654adb..d84d2f8 100644 --- a/tests/src/com/android/music/MusicPlayerStability.java +++ b/tests/src/com/android/music/MusicPlayerStability.java @@ -1,88 +1,90 @@ /* * Copyright (C) 2009 Th...
false
true
public void testPlay30sMP3() throws Exception { // Launch the songs list. Pick the fisrt song and play try { Instrumentation inst = getInstrumentation(); inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); mTrackList = getActivity().getListView(); int ...
public void testPlay30sMP3() throws Exception { // Launch the songs list. Pick the fisrt song and play try { Instrumentation inst = getInstrumentation(); //Make sure the song list shown up Thread.sleep(2000); inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPA...
diff --git a/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java b/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java index 3d39bc6..56a8dd0 100755 --- a/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java +++ b/src/com/evervolv/EVParts/Preferences/LockscreenPrefs.java @@ -1,98 +1,99 @@ package com....
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.lockscreen_prefs); PreferenceScreen prefSet = getPreferenceScreen(); /* Rotary lockscreen */ mUseRotaryLockPref = (CheckBoxPreference)prefSet.findPreference(LOCKSCREEN_ROTARY_LOCK); ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.lockscreen_prefs); PreferenceScreen prefSet = getPreferenceScreen(); /* Rotary lockscreen */ mUseRotaryLockPref = (CheckBoxPreference)prefSet.findPreference(LOCKSCREEN_ROTARY_LOCK); ...
diff --git a/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java b/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java index 670c495f4..e390d99db 100644 --- a/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java +++ b/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java @@ -1,227 +1,228 @@ /* * Copyright 1999-2002 Carnegi...
true
true
protected void signalCheck(Data data) { if (!inUtterance) { if (data != null) { if (data.hasSignal(Signal.UTTERANCE_START)) { inUtterance = true; } else { throw new Error(getName() + ": no UTTERANCE_START"); } } } else { if (data == null) { throw new Error(getName() + ": null da...
protected void signalCheck(Data data) { if (!inUtterance) { if (data != null) { if (data.hasSignal(Signal.UTTERANCE_START)) { inUtterance = true; } else { throw new Error(getName() + ": no UTTERANCE_START"); } } } else { if (data == null) { throw new Error (g...
diff --git a/src/adapter/LEDOutputAdapter.java b/src/adapter/LEDOutputAdapter.java index b5e20f5..562ffc8 100644 --- a/src/adapter/LEDOutputAdapter.java +++ b/src/adapter/LEDOutputAdapter.java @@ -1,37 +1,37 @@ package adapter; import java.awt.Color; import com.IOController; public class LEDOutputAdapter impl...
true
true
public void setColor(Color color) { int red = (color.getRed()*100)/255; int green = (color.getGreen()*100)/255; int blue = (color.getBlue()*100)/255; int min = Math.min(Math.min(red, green), blue); String message = "SC"+1+" R "+(red>min?(int)(red*2):(int)(red*0.5))+"; G "+(green>min?(int)(green*2):(int)(gree...
public void setColor(Color color) { int red = (color.getRed()*100)/255; int green = (color.getGreen()*100)/255; int blue = (color.getBlue()*100)/255; int min = Math.min(Math.min(red, green), blue); String message = "SC"+1+" R "+red+"; G "+green+"; B "+blue+";"; //System.out.println(message); IOController...
diff --git a/goobi1.9/WEB-INF/src/org/goobi/api/display/helper/ConfigDispayRules.java b/goobi1.9/WEB-INF/src/org/goobi/api/display/helper/ConfigDispayRules.java index 393ed8366..e442cffbb 100644 --- a/goobi1.9/WEB-INF/src/org/goobi/api/display/helper/ConfigDispayRules.java +++ b/goobi1.9/WEB-INF/src/org/goobi/api/displ...
true
true
private synchronized void getDisplayItems() { if (allValues.isEmpty() && config != null) { int countRuleSet = config.getMaxIndex("ruleSet"); for (int i = 0; i <= countRuleSet; i++) { int projectContext = config.getMaxIndex("ruleSet(" + i + ").context"); for (int j = 0; j <= projectContext; j++) { ...
private synchronized void getDisplayItems() { if (allValues.isEmpty() && config != null) { int countRuleSet = config.getMaxIndex("ruleSet"); for (int i = 0; i <= countRuleSet; i++) { int projectContext = config.getMaxIndex("ruleSet(" + i + ").context"); for (int j = 0; j <= projectContext; j++) { ...
diff --git a/eclipse/ca.mcgill.sable.soot/src/ca/mcgill/sable/soot/attributes/SootAttributesJavaColorer.java b/eclipse/ca.mcgill.sable.soot/src/ca/mcgill/sable/soot/attributes/SootAttributesJavaColorer.java index 9602c1d5..bf2ccec9 100644 --- a/eclipse/ca.mcgill.sable.soot/src/ca/mcgill/sable/soot/attributes/SootAttrib...
true
true
private void setAttributeTextColor(TextPresentation tp, int sline, int eline, int start, int end, RGB colorKey, boolean fg) {//, TextPresentation tp){ System.out.println("startline: "+sline+" soffset: "+start+" endoffset: "+end); //System.out.println("setting text color"); Display display = getEditorPart()...
private void setAttributeTextColor(TextPresentation tp, int sline, int eline, int start, int end, RGB colorKey, boolean fg) {//, TextPresentation tp){ System.out.println("startline: "+sline+" soffset: "+start+" endoffset: "+end); //System.out.println("setting text color"); Display display = getEditorPart()...
diff --git a/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/listbox/CustomListBox.java b/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/listbox/CustomListBox.java index 86115f29..8723c123 100644 --- a/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/listbox/CustomListBox.java +++ b/pentaho-gwt-wid...
true
true
private void updateDropDown(){ // Update Shown selection in grid updateSelectedDropWidget(); // Update popup panel, // Calculate the size of the largest list item. popupVbox.clear(); maxWidth = 0; averageHeight = 0; // Actually used to set the width of the arrow popupHeight = null; ...
private void updateDropDown(){ // Update Shown selection in grid updateSelectedDropWidget(); // Update popup panel, // Calculate the size of the largest list item. popupVbox.clear(); maxWidth = 0; averageHeight = 0; // Actually used to set the width of the arrow popupHeight = null; ...
diff --git a/PocketSafe/src/com/monster/pocketsafe/main/CMPassHolder.java b/PocketSafe/src/com/monster/pocketsafe/main/CMPassHolder.java index f702ddd..928423b 100644 --- a/PocketSafe/src/com/monster/pocketsafe/main/CMPassHolder.java +++ b/PocketSafe/src/com/monster/pocketsafe/main/CMPassHolder.java @@ -1,119 +1,120 @@...
true
true
public void setPass(String pass) throws MyException { if (pass==null || pass.length()==0) throw new MyException(TTypMyException.EPassInvalid); mPass = pass; try { if (mKey!=null) getKey(); } catch (MyException e) { Log.e("!!!", "Invalid pass: "+e.getId()); mPass=null; throw e; } ...
public void setPass(String pass) throws MyException { if (pass==null || pass.length()==0) throw new MyException(TTypMyException.EPassInvalid); mPass = pass; mTimExpire = null; //for pass check in getKey(); try { if (mKey!=null) getKey(); } catch (MyException e) { Log.e("!!!", "Invalid pass...
diff --git a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/AbstractProxyRuntimeSystem.java b/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/AbstractProxyRuntimeSystem.java index 13799c3b9..3f424517e 100644 --- a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/AbstractProxyRuntimeSystem.java +++ ...
false
true
private IAttributeDefinition<?,?,?> parseAttributeDefinition(String[] attrs, int start, int end) { int pos = start; IAttributeDefinition<?,?,?> attrDef = null; String attrId = attrs[pos++]; String attrType = attrs[pos++]; String attrName = attrs[pos++]; String attrDesc = attrs[pos++]; boolean attrDisp...
private IAttributeDefinition<?,?,?> parseAttributeDefinition(String[] attrs, int start, int end) { int pos = start; IAttributeDefinition<?,?,?> attrDef = null; String attrId = attrs[pos++]; String attrType = attrs[pos++]; String attrName = attrs[pos++]; String attrDesc = attrs[pos++]; boolean attrDisp...
diff --git a/src/org/pentaho/platform/dataaccess/datasource/ui/admindialog/DatasourceAdminDialogController.java b/src/org/pentaho/platform/dataaccess/datasource/ui/admindialog/DatasourceAdminDialogController.java index 468c18eb..fc437063 100644 --- a/src/org/pentaho/platform/dataaccess/datasource/ui/admindialog/Datasou...
false
true
public void launchNewUI(String datasourceType) { IUIDatasourceAdminService service = manager.getService(datasourceType); String newUI = service.getNewUI(); if(newUI != null && newUI.length() > 0) { if(newUI.indexOf("builtin:") >= 0) { if(service.getType().equals(JdbcDatasourceServi...
public void launchNewUI(String datasourceType) { IUIDatasourceAdminService service = manager.getService(datasourceType); String newUI = service.getNewUI(); if(newUI != null && newUI.length() > 0) { if(newUI.indexOf("builtin:") >= 0) { if(service.getType().equals(JdbcDatasourceServi...
diff --git a/modules/library/render/src/main/java/org/geotools/map/MapContent.java b/modules/library/render/src/main/java/org/geotools/map/MapContent.java index a933e01f..9b542041 100644 --- a/modules/library/render/src/main/java/org/geotools/map/MapContent.java +++ b/modules/library/render/src/main/java/org/geotools/m...
false
true
public synchronized CopyOnWriteArrayList<Layer> layers() { if (layerList == null) { layerList = new CopyOnWriteArrayList<Layer>() { private static final long serialVersionUID = 8011733882551971475L; public void add(int index, Layer element) { ...
public synchronized CopyOnWriteArrayList<Layer> layers() { if (layerList == null) { layerList = new CopyOnWriteArrayList<Layer>() { private static final long serialVersionUID = 8011733882551971475L; public void add(int index, Layer element) { ...
diff --git a/lttng/org.eclipse.linuxtools.lttng.headless/src/JniTraceTest.java b/lttng/org.eclipse.linuxtools.lttng.headless/src/JniTraceTest.java index 575f7b2b6..8cd2a2fb2 100644 --- a/lttng/org.eclipse.linuxtools.lttng.headless/src/JniTraceTest.java +++ b/lttng/org.eclipse.linuxtools.lttng.headless/src/JniTraceTest....
false
true
public static void main(String[] args) { // Path of the trace final String TRACE_PATH = "/home/william/trace-614601events-nolost-newformat"; // *** Change this to run several time over the same trace final int NB_OF_PASS = 1; // *** Change this to true...
public static void main(String[] args) { // Path of the trace final String TRACE_PATH = "/home/william/trace-614601events-nolost-newformat"; // *** Change this to run several time over the same trace final int NB_OF_PASS = 1; // *** Change this to true...
diff --git a/UserVoiceSDK/src/com/uservoice/uservoicesdk/activity/ForumActivity.java b/UserVoiceSDK/src/com/uservoice/uservoicesdk/activity/ForumActivity.java index a3b1217..a2ab09e 100644 --- a/UserVoiceSDK/src/com/uservoice/uservoicesdk/activity/ForumActivity.java +++ b/UserVoiceSDK/src/com/uservoice/uservoicesdk/act...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.uv_feedback_forum); suggestions = new ArrayList<Suggestion>(); getListView().setDivider(null); setListAdapter(new PaginatedAdapter<Suggestion>(this, R.layout.uv_sugges...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.uv_feedback_forum); suggestions = new ArrayList<Suggestion>(); getListView().setDivider(null); setListAdapter(new PaginatedAdapter<Suggestion>(this, R.layout.uv_sugges...
diff --git a/spring-integration-jms/src/main/java/org/springframework/integration/jms/config/JmsOutboundGatewayParser.java b/spring-integration-jms/src/main/java/org/springframework/integration/jms/config/JmsOutboundGatewayParser.java index 5f455084e2..0be030de0b 100644 --- a/spring-integration-jms/src/main/java/org/sp...
true
true
protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition( "org.springframework.integration.jms.JmsOutboundGateway"); builder.addPropertyReference("connectionFactory", element.getAttribute("connection...
protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition( "org.springframework.integration.jms.JmsOutboundGateway"); builder.addPropertyReference("connectionFactory", element.getAttribute("connection...
diff --git a/src/bitronix/tm/Configuration.java b/src/bitronix/tm/Configuration.java index fe3e2fd..f5b674f 100644 --- a/src/bitronix/tm/Configuration.java +++ b/src/bitronix/tm/Configuration.java @@ -1,543 +1,543 @@ package bitronix.tm; import bitronix.tm.utils.PropertyException; import bitronix.tm.utils.Property...
true
true
protected Configuration() { try { InputStream in = null; Properties properties; try { String configurationFilename = System.getProperty("bitronix.tm.configuration"); if (configurationFilename != null) { if (log.isDebugEn...
protected Configuration() { try { InputStream in = null; Properties properties; try { String configurationFilename = System.getProperty("bitronix.tm.configuration"); if (configurationFilename != null) { if (log.isDebugEn...
diff --git a/src/main/java/net/sf/jooreports/opendocument/OpenDocumentIO.java b/src/main/java/net/sf/jooreports/opendocument/OpenDocumentIO.java index 2152bd4..0752bae 100644 --- a/src/main/java/net/sf/jooreports/opendocument/OpenDocumentIO.java +++ b/src/main/java/net/sf/jooreports/opendocument/OpenDocumentIO.java @@ ...
false
true
private static void writeZipEntry(ZipOutputStream zipOutputStream, OpenDocumentArchive archive, String entryName, int method) throws IOException { ZipEntry zipEntry = new ZipEntry(entryName); zipOutputStream.putNextEntry(zipEntry); InputStream entryInputStream = archive.getEntryInputStream(entryName); zipEntry...
private static void writeZipEntry(ZipOutputStream zipOutputStream, OpenDocumentArchive archive, String entryName, int method) throws IOException { ZipEntry zipEntry = new ZipEntry(entryName); InputStream entryInputStream = archive.getEntryInputStream(entryName); zipEntry.setMethod(method); if (method == ZipEnt...
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java b/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java index da0b244f..c27832e3 100644 --- a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java +++ b/CubicRecorder/src/main/java...
true
true
public void run(IAction action) { AutoLayout autoLayout = new AutoLayout(testEditor); Test test = testEditor.getTest(); if (test.getStartPoint() instanceof SubTestStartPoint) { ErrorHandler.logAndShowErrorDialog("It is not possible to record from tests that start with a SubTest start point. "); return; ...
public void run(IAction action) { AutoLayout autoLayout = new AutoLayout(testEditor); Test test = testEditor.getTest(); if (test.getStartPoint() instanceof SubTestStartPoint) { ErrorHandler.logAndShowErrorDialog("It is not possible to record from tests that start with a SubTest start point. "); return; ...
diff --git a/server-vertx/src/main/java/org/jboss/aerogear/simplepush/vertx/UserAgentReaper.java b/server-vertx/src/main/java/org/jboss/aerogear/simplepush/vertx/UserAgentReaper.java index 8b3d197..f26af71 100644 --- a/server-vertx/src/main/java/org/jboss/aerogear/simplepush/vertx/UserAgentReaper.java +++ b/server-vert...
true
true
public void start() { final Logger logger = container.logger(); final Long reaperTimeout = container.config().getLong("reaperTimeout", 300000); logger.info("Started UserAgent Reaper with timeout of [" + reaperTimeout + "]"); final ConcurrentMap<String, Long> lastAccessedMap = vertx.s...
public void start() { final Logger logger = container.logger(); final Long reaperTimeout = container.config().getLong("reaperTimeout", 300000); logger.info("Started UserAgent Reaper with timeout of [" + reaperTimeout + "]"); final ConcurrentMap<String, Long> lastAccessedMap = vertx.s...
diff --git a/GUI/sec01/ex04/PropertyDialog.java b/GUI/sec01/ex04/PropertyDialog.java index e938725..fad6406 100644 --- a/GUI/sec01/ex04/PropertyDialog.java +++ b/GUI/sec01/ex04/PropertyDialog.java @@ -1,253 +1,254 @@ package sec01.ex04; import java.awt.*; import java.awt.event.*; public class PropertyDialog ext...
false
true
public PropertyDialog() { setTitle("Property dialog"); setSize(560, 200); setLocationRelativeTo(null); setResizable(false); setLayout(gbl); PropertyData.load(); // ���x���̔z�u Label fontLabel = new Label("Font"); Label sizeLabel = new ...
public PropertyDialog() { setTitle("Property dialog"); setSize(560, 200); setLocationRelativeTo(null); setResizable(false); setLayout(gbl); PropertyData.load(); // ���x���̔z�u Label fontLabel = new Label("Font"); Label sizeLabel = new ...
diff --git a/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java b/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java index 95d1cef7..d5590f48 100644 --- a/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java +++ b/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java @@ -1,127 +1,128 @@ ...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { logGroovyVersion("execute"); try { // get classes we need with reflection Class<?> groovyShellClass = Class.forName("groovy.lang.GroovyShell"); // create a GroovyShell to run scripts in ...
public void execute() throws MojoExecutionException, MojoFailureException { logGroovyVersion("execute"); try { // get classes we need with reflection Class<?> groovyShellClass = Class.forName("groovy.lang.GroovyShell"); // create a GroovyShell to run scripts in ...
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecReducer.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecReducer.java index 8b526baa..28fc9658 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecReducer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecReducer.java @@ -1,270 +1,270 @@ ...
true
true
public void reduce(Object key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { if(oc == null) { // propagete reporter and output collector to all operators oc = output; rp = reporter; reducer.setOutputCollector(oc)...
public void reduce(Object key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { if(oc == null) { // propagete reporter and output collector to all operators oc = output; rp = reporter; reducer.setOutputCollector(oc)...
diff --git a/Test.java b/Test.java index 1d7ccc8..f2866a8 100644 --- a/Test.java +++ b/Test.java @@ -1,71 +1,73 @@ /** Test.java * * Base class for deriving test classes. A derived test class commonly * contains concrete <code>name()</code>, <code>plan()</code> and * <code>test()</code> methods producing, resp...
false
true
public void test() { runTests(); if (testsRun != testsPlanned) System.out.printf( "Warning: %d tests planned but %d run.\n", testsPlanned, testsRun ); System.out.printf( "%d tests successful (%d%%)", successfulTests, 100*successfulTests...
public void test() { runTests(); if (testsRun != testsPlanned) System.out.printf( "Warning: %d tests planned but %d run.\n", testsPlanned, testsRun ); System.out.printf( "%d tests successful (%d%%)", successfulTests, ...
diff --git a/okapi/connectors/microsoft/src/main/java/net/sf/okapi/connectors/microsoft/ApacheHttpClientForMT.java b/okapi/connectors/microsoft/src/main/java/net/sf/okapi/connectors/microsoft/ApacheHttpClientForMT.java index 35b7ef6a1..262d83b36 100644 --- a/okapi/connectors/microsoft/src/main/java/net/sf/okapi/connect...
true
true
public static String getCheapAzureAccessToken (String sUral, String sClientID, String sEcret) { String sResult=null; // String sStuff=null; // String sAddress; String sContent; HttpURLConnection conn; // sAddress = String.format(sUral); URL url; try { sContent = String.format("grant_type=client_c...
public static String getCheapAzureAccessToken (String sUral, String sClientID, String sEcret) { String sResult=null; // String sStuff=null; // String sAddress; String sContent; HttpURLConnection conn; // sAddress = String.format(sUral); URL url; try { sContent = String.format("grant_type=client_c...
diff --git a/src/GUI/NewOperations.java b/src/GUI/NewOperations.java index dd06882..eb658b7 100644 --- a/src/GUI/NewOperations.java +++ b/src/GUI/NewOperations.java @@ -1,1009 +1,1009 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package GUI; import stati...
false
true
private void initComponents() { jSplitPane1 = new javax.swing.JSplitPane(); jPanel1 = new javax.swing.JPanel(); orderFormat = new javax.swing.JTextField(); orderFormatInsert = new javax.swing.JButton(); orderFormatInfo = new javax.swing.JButton(); jSeparator1 = new j...
private void initComponents() { jSplitPane1 = new javax.swing.JSplitPane(); jPanel1 = new javax.swing.JPanel(); orderFormat = new javax.swing.JTextField(); orderFormatInsert = new javax.swing.JButton(); orderFormatInfo = new javax.swing.JButton(); jSeparator1 = new j...
diff --git a/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java b/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java index b0b2a81..b44c6ed 100644 --- a/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java +++ b/src/main/java/plugins/WebOfTrust/fcp/GetIden...
false
true
public SimpleFieldSet handle(SimpleFieldSet input) { final String trusterID = input.get("Truster"); final String partialNickname = input.get("PartialNickname").trim(); final String partialID = input.get("PartialID").trim(); final String context = input.get("Context"); int maxIdentities = 0; try { maxI...
public SimpleFieldSet handle(SimpleFieldSet input) { final String trusterID = input.get("Truster"); final String partialNickname = input.get("PartialNickname").trim(); final String partialID = input.get("PartialID").trim(); final String context = input.get("Context"); int maxIdentities = 0; try { maxI...
diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/nio/NIOOutputStream.java b/activemq-core/src/main/java/org/apache/activemq/transport/nio/NIOOutputStream.java index b1fe4569d..4da5b7cd5 100644 --- a/activemq-core/src/main/java/org/apache/activemq/transport/nio/NIOOutputStream.java +++ b/activemq-c...
true
true
protected void write(ByteBuffer data) throws IOException { ByteBuffer plain; if (engine != null) { plain = ByteBuffer.allocate(engine.getSession().getPacketBufferSize()); plain.clear(); engine.wrap(data, plain); plain.flip(); } else { ...
protected void write(ByteBuffer data) throws IOException { ByteBuffer plain; if (engine != null) { plain = ByteBuffer.allocate(engine.getSession().getPacketBufferSize()); plain.clear(); engine.wrap(data, plain); plain.flip(); } else { ...
diff --git a/ini/trakem2/persistence/Loader.java b/ini/trakem2/persistence/Loader.java index 66936976..80707590 100644 --- a/ini/trakem2/persistence/Loader.java +++ b/ini/trakem2/persistence/Loader.java @@ -1,4697 +1,4697 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005, 2006 Albert Cardona and Rodney Dougl...
false
true
public void adjustChannels(final Patch p, final int old_channels) { /* if (0xffffffff == old_channels) { // reuse any loaded mipmaps Hashtable<Integer,Image> ht = null; synchronized (db_lock) { lock(); ht = mawts.getAll(p.getId()); unlock(); } for (Map.Entry<Integer,Image> entry : ht.ent...
public void adjustChannels(final Patch p, final int old_channels) { /* if (0xffffffff == old_channels) { // reuse any loaded mipmaps Hashtable<Integer,Image> ht = null; synchronized (db_lock) { lock(); ht = mawts.getAll(p.getId()); unlock(); } for (Map.Entry<Integer,Image> entry : ht.ent...
diff --git a/org.ow2.mindEd.ide.ui/src/org/ow2/mindEd/ide/ui/Activator.java b/org.ow2.mindEd.ide.ui/src/org/ow2/mindEd/ide/ui/Activator.java index cb9cf595..bde36395 100644 --- a/org.ow2.mindEd.ide.ui/src/org/ow2/mindEd/ide/ui/Activator.java +++ b/org.ow2.mindEd.ide.ui/src/org/ow2/mindEd/ide/ui/Activator.java @@ -1,139...
true
true
static public void openFile(IFile jf) { if (jf != null) { try { IEditorDescriptor editor = IDE.getDefaultEditor(jf); if (editor == null) { editor = PlatformUI.getWorkbench().getEditorRegistry() .findEditor(EditorsUI.DEFAULT_TEXT_EDITOR_ID); } if (editor.getId().equals("org.ow2.mindEd.a...
static public void openFile(IFile jf) { if (jf != null) { try { IEditorDescriptor editor = IDE.getDefaultEditor(jf); if (editor == null) { editor = PlatformUI.getWorkbench().getEditorRegistry() .findEditor(EditorsUI.DEFAULT_TEXT_EDITOR_ID); } if (editor.getId().equals("org.ow2.mindEd.a...
diff --git a/schemagen/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGenerator.java b/schemagen/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGenerator.java index a5817409..243f4011 100644 --- a/schemagen/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGenerator.java +++ b/schemagen/src/com/sun/xml/bind/v2/schemagen/XmlSchemaGene...
true
true
private void writeClass(ClassInfo<TypeT,ClassDeclT> c, TypeHost parent) { // special handling for value properties if (containsValueProp(c)) { if (c.getProperties().size() == 1) { // [RESULT 2 - simpleType if the value prop is the only prop] ...
private void writeClass(ClassInfo<TypeT,ClassDeclT> c, TypeHost parent) { // special handling for value properties if (containsValueProp(c)) { if (c.getProperties().size() == 1) { // [RESULT 2 - simpleType if the value prop is the only prop] ...
diff --git a/loci/visbio/data/ArbitrarySlice.java b/loci/visbio/data/ArbitrarySlice.java index a78b03a..06fcb03 100644 --- a/loci/visbio/data/ArbitrarySlice.java +++ b/loci/visbio/data/ArbitrarySlice.java @@ -1,622 +1,637 @@ // // ArbitrarySlice.java // /* VisBio application for visualization of multidimensional...
false
true
public synchronized Data getData(int[] pos, int dim, DataCache cache) { if (dim != 3) { System.err.println(name + ": invalid dimensionality (" + dim + ")"); return null; } // get some info from the parent transform ImageTransform it = (ImageTransform) parent; int w = it.getImageWidth(...
public synchronized Data getData(int[] pos, int dim, DataCache cache) { if (dim != 3) { System.err.println(name + ": invalid dimensionality (" + dim + ")"); return null; } // get some info from the parent transform ImageTransform it = (ImageTransform) parent; int w = it.getImageWidth(...
diff --git a/src/com/android/phone/DataUsageListener.java b/src/com/android/phone/DataUsageListener.java index 6122a8ec..a72c088a 100644 --- a/src/com/android/phone/DataUsageListener.java +++ b/src/com/android/phone/DataUsageListener.java @@ -1,231 +1,233 @@ /* * Copyright (C) 2010 The Android Open Source Project ...
true
true
private void updateUI() { if (mPolicyThreshold == 0) return; int dataUsedPercent = (int) ((mDataUsed * 100) / mPolicyThreshold); long cycleTime = mEnd.getTimeInMillis() - mStart.getTimeInMillis(); long currentTime = GregorianCalendar.getInstance().getTimeInMillis() ...
private void updateUI() { if (mPolicyThreshold == 0) return; int dataUsedPercent = (int) ((mDataUsed * 100) / mPolicyThreshold); long cycleTime = mEnd.getTimeInMillis() - mStart.getTimeInMillis(); long currentTime = GregorianCalendar.getInstance().getTimeInMillis() ...
diff --git a/src/de/dhbw/wbs/Lecturer.java b/src/de/dhbw/wbs/Lecturer.java index 447cb2f..2220868 100644 --- a/src/de/dhbw/wbs/Lecturer.java +++ b/src/de/dhbw/wbs/Lecturer.java @@ -1,25 +1,25 @@ package de.dhbw.wbs; public class Lecturer { private String name; public Lecturer(String name) { this.name = nam...
true
true
public boolean equals(Object aLecturer) { if (!(aLecturer instanceof Lecturer)) return false; return ((Lecturer) aLecturer).name == this.name; }
public boolean equals(Object aLecturer) { if (!(aLecturer instanceof Lecturer)) return false; return ((Lecturer) aLecturer).name.equals(this.name); }
diff --git a/ContactManagerImpl.java b/ContactManagerImpl.java index 3374af0..c3ab89d 100644 --- a/ContactManagerImpl.java +++ b/ContactManagerImpl.java @@ -1,962 +1,962 @@ /** *The purpose of this assignment it writing a program to keep track of contacts and *meetings. The application will keep track of contacts, ...
true
true
private void launch() { ContactManagerUtilities.displayWelcome(); loadData(); boolean finished = false; while (!finished) { int userSelection = ContactManagerUtilities.chooseMainMenuOption(); switch (userSelection) { case 1: System.out.println("\n"); System.out.println("*** ADD A...
private void launch() { ContactManagerUtilities.displayWelcome(); loadData(); boolean finished = false; while (!finished) { int userSelection = ContactManagerUtilities.chooseMainMenuOption(); switch (userSelection) { case 1: System.out.println("\n"); System.out.println("*** ADD A...
diff --git a/src/samples/ProcrunService.java b/src/samples/ProcrunService.java index 190fcc5..3dbdb47 100644 --- a/src/samples/ProcrunService.java +++ b/src/samples/ProcrunService.java @@ -1,240 +1,240 @@ import java.io.File; import java.io.IOException; import java.text.DateFormat; import java.text.SimpleDateFormat...
false
true
private static void logSystemEnvironment() { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) log("Missing currentThread context ClassLoader"); else log("Using context ClassLoader : " + cl.toString()); log("Program environme...
private static void logSystemEnvironment() { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) log("Missing currentThread context ClassLoader"); else log("Using context ClassLoader : " + cl.toString()); log("Program environme...
diff --git a/src/cl/votainteligente/inspector/client/inject/ServiceModule.java b/src/cl/votainteligente/inspector/client/inject/ServiceModule.java index a5d15c9..79e1d3d 100644 --- a/src/cl/votainteligente/inspector/client/inject/ServiceModule.java +++ b/src/cl/votainteligente/inspector/client/inject/ServiceModule.java...
true
true
protected void configure() { bind(BillServiceAsync.class).asEagerSingleton(); bind(BillTypeServiceAsync.class).asEagerSingleton(); bind(CategoryServiceAsync.class).asEagerSingleton(); bind(ChamberServiceAsync.class).asEagerSingleton(); bind(CommissionServiceAsync.class).asEagerSingleton(); bind(DistrictSer...
protected void configure() { bind(BillServiceAsync.class).asEagerSingleton(); bind(BillTypeServiceAsync.class).asEagerSingleton(); bind(CategoryServiceAsync.class).asEagerSingleton(); bind(ChamberServiceAsync.class).asEagerSingleton(); bind(CommissionServiceAsync.class).asEagerSingleton(); bind(DistrictSer...
diff --git a/src/de/schildbach/pte/AbstractEfaProvider.java b/src/de/schildbach/pte/AbstractEfaProvider.java index 3cfeced..3345364 100644 --- a/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/src/de/schildbach/pte/AbstractEfaProvider.java @@ -1,2055 +1,2058 @@ /* * Copyright 2010, 2011 the original author or a...
true
true
protected String parseLine(final String mot, final String name, final String longName, final String noTrainName) { if (mot == null) { if (noTrainName != null) { final String str = name != null ? name : ""; if (noTrainName.equals("S-Bahn")) return 'S' + str; if (noTrainName.equals("U-Bahn"))...
protected String parseLine(final String mot, final String name, final String longName, final String noTrainName) { if (mot == null) { if (noTrainName != null) { final String str = name != null ? name : ""; if (noTrainName.equals("S-Bahn")) return 'S' + str; if (noTrainName.equals("U-Bahn"))...
diff --git a/src/main/java/mikera/gui/BackgroundPanel.java b/src/main/java/mikera/gui/BackgroundPanel.java index a7ea7f2..cbf7153 100644 --- a/src/main/java/mikera/gui/BackgroundPanel.java +++ b/src/main/java/mikera/gui/BackgroundPanel.java @@ -1,49 +1,49 @@ package mikera.gui; import java.awt.Graphics; import jav...
true
true
public void paintComponent(Graphics g) { if (image==null) return; Rectangle r=g.getClipBounds(); int w=image.getWidth(); int h=image.getHeight(); for (int x=r.x/w; x<(r.x+r.width); x+=w) { for (int y=r.y/h; y<(r.y+r.height); y+=h) { g.drawImage(image, x, y, null); } } }
public void paintComponent(Graphics g) { if (image==null) return; Rectangle r=g.getClipBounds(); int w=image.getWidth(); int h=image.getHeight(); for (int x=(r.x/w)*w; x<(r.x+r.width); x+=w) { for (int y=(r.y/h)*h; y<(r.y+r.height); y+=h) { g.drawImage(image, x, y, null); } } }
diff --git a/src/main/java/com/ctlok/springframework/web/servlet/view/rythm/tag/CookieValue.java b/src/main/java/com/ctlok/springframework/web/servlet/view/rythm/tag/CookieValue.java index ce2dd68..814112c 100644 --- a/src/main/java/com/ctlok/springframework/web/servlet/view/rythm/tag/CookieValue.java +++ b/src/main/ja...
true
true
protected void call(__ParameterList params, __Body body) { final HttpServletRequest request = Helper.getCurrentRequest(); final String name = (String) params.getDefault(); String value = ""; if (request!= null){ for (final Cookie cookie: request.get...
protected void call(__ParameterList params, __Body body) { final HttpServletRequest request = Helper.getCurrentRequest(); final String name = (String) params.getDefault(); String value = ""; if (request != null && request.getCookies() != null){ for ...
diff --git a/htroot/ViewFile.java b/htroot/ViewFile.java index bdcb397aa..fe4e76ecc 100644 --- a/htroot/ViewFile.java +++ b/htroot/ViewFile.java @@ -1,417 +1,417 @@ //ViewFile.java //----------------------- //part of YaCy //(C) by Michael Peter Christen; mc@anomic.de //first published on http://www.anomic.de //Fr...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { serverObjects prop = new serverObjects(); plasmaSwitchboard sb = (plasmaSwitchboard)env; if (post != null && post.containsKey("words")) prop.put("error_words", wikiCode.replaceHT...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { serverObjects prop = new serverObjects(); plasmaSwitchboard sb = (plasmaSwitchboard)env; if (post != null && post.containsKey("words")) prop.put("error_words", wikiCode.replaceHT...
diff --git a/Project/src/projectrts/model/pathfinding/AStar.java b/Project/src/projectrts/model/pathfinding/AStar.java index 9fce9e2..fd7d721 100644 --- a/Project/src/projectrts/model/pathfinding/AStar.java +++ b/Project/src/projectrts/model/pathfinding/AStar.java @@ -1,156 +1,156 @@ package projectrts.model.pathfindi...
false
true
public AStarPath calculatePath(Position startPos, Position targetPos, int occupyingEntityID) { // TODO Plankton: Add support for different heuristic priorities // TODO Plankton: Take entity size into account when calculating path // TODO Plankton: Use threads or something to not "freeze" the game when calculati...
public AStarPath calculatePath(Position startPos, Position targetPos, int occupyingEntityID) { // TODO Plankton: Add support for different heuristic priorities // TODO Plankton: Take entity size into account when calculating path // TODO Plankton: Use threads or something to not "freeze" the game when calculati...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/SipApplicationDispatcherImpl.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/SipApplicationDispatcherImpl.java index 390b09d13..aad17ee6f 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/SipAppli...
true
true
public void processRequest(RequestEvent requestEvent) { SipProvider sipProvider = (SipProvider)requestEvent.getSource(); ServerTransaction transaction = requestEvent.getServerTransaction(); Request request = requestEvent.getRequest(); try { if(logger.isInfoEnabled()) { logger.info("Got a request even...
public void processRequest(RequestEvent requestEvent) { SipProvider sipProvider = (SipProvider)requestEvent.getSource(); ServerTransaction transaction = requestEvent.getServerTransaction(); Request request = requestEvent.getRequest(); try { if(logger.isInfoEnabled()) { logger.info("Got a request even...
diff --git a/app/models/utils/SurveyDuplicator.java b/app/models/utils/SurveyDuplicator.java index d2819b4..0021fb3 100644 --- a/app/models/utils/SurveyDuplicator.java +++ b/app/models/utils/SurveyDuplicator.java @@ -1,127 +1,128 @@ /* * Nokia Data Gathering * * Copyright (C) 2011 Nokia Corporation * * This pr...
true
true
private static List<Question> copyQuestions(List<Question> origin, Category newCategory) { List<Question> copy = new ArrayList<Question>(); for (Question question : origin) { Question copiedQuestion = new Question(); copiedQuestion.constraintText = question.constraintText; ...
private static List<Question> copyQuestions(List<Question> origin, Category newCategory) { List<Question> copy = new ArrayList<Question>(); for (Question question : origin) { Question copiedQuestion = new Question(); copiedQuestion.constraintText = question.constraintText; ...
diff --git a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/type/KmerUtil.java b/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/type/KmerUtil.java index 7982c1495..d796d19bd 100644 --- a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/type/KmerUtil.java +++ b/genomix/genomix-data/src/main/java/ed...
true
true
public static byte[] mergeTwoKmer(int preK, byte[] kmerPre, int nextK, byte[] kmerNext) { int byteNum = Kmer.getByteNumFromK(preK + nextK); byte[] mergedKmer = new byte[byteNum]; int i = 1; for (; i <= kmerPre.length; i++) { mergedKmer[byteNum - i] = kmerPre[kmerPre.length - i]; } i--; if (preK % 4...
public static byte[] mergeTwoKmer(int preK, byte[] kmerPre, int nextK, byte[] kmerNext) { int byteNum = Kmer.getByteNumFromK(preK + nextK); byte[] mergedKmer = new byte[byteNum]; int i = 1; for (; i <= kmerPre.length; i++) { mergedKmer[byteNum - i] = kmerPre[kmerPre.length - i]; } if ( i > 1){ i--...
diff --git a/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java b/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java index 9827cf267..01e1ccc2f 100644 --- a/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java +++ b/src/main/java/org/mozilla/gecko/sync/net/BaseResource.java @@ -1,412 +1,415 @@ /*...
true
true
private void execute() { HttpResponse response; try { response = client.execute(request, context); Logger.debug(LOG_TAG, "Response: " + response.getStatusLine().toString()); } catch (ClientProtocolException e) { delegate.handleHttpProtocolException(e); return; } catch (IOExcept...
private void execute() { HttpResponse response; try { response = client.execute(request, context); Logger.debug(LOG_TAG, "Response: " + response.getStatusLine().toString()); } catch (ClientProtocolException e) { delegate.handleHttpProtocolException(e); return; } catch (IOExcept...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/startup/SipStandardService.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/startup/SipStandardService.java index cb13cb7cc..459e3c4b3 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/startup/SipStandardService....
true
true
protected void initSipStack() throws LifecycleException { try { if(logger.isDebugEnabled()) { logger.debug("Initializing SIP stack"); } // This simply puts HTTP and SSL port numbers in JVM properties menat to be read by jsip ha when sending heart beats with Node description. StaticServiceH...
protected void initSipStack() throws LifecycleException { try { if(logger.isDebugEnabled()) { logger.debug("Initializing SIP stack"); } // This simply puts HTTP and SSL port numbers in JVM properties menat to be read by jsip ha when sending heart beats with Node description. StaticServiceH...
diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java index 153d2989b..3151cc22d 100644 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Chrome.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity...
false
true
private void getBookmark(Image image, IngestImageWorkerController controller) { FileManager fileManager = currentCase.getServices().getFileManager(); List<FsContent> bookmarkFiles = null; try { bookmarkFiles = fileManager.findFiles(image, "Bookmarks", "Chrome"); ...
private void getBookmark(Image image, IngestImageWorkerController controller) { FileManager fileManager = currentCase.getServices().getFileManager(); List<FsContent> bookmarkFiles = null; try { bookmarkFiles = fileManager.findFiles(image, "Bookmarks", "Chrome"); ...
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/rest/PlacemarkRestService.java b/GAE/src/org/waterforpeople/mapping/app/web/rest/PlacemarkRestService.java index e759b75b0..ffa1e1731 100644 --- a/GAE/src/org/waterforpeople/mapping/app/web/rest/PlacemarkRestService.java +++ b/GAE/src/org/waterforpeople/mapping/ap...
false
true
public Map<String, List<? extends BaseDto>> listPlaceMarks( @RequestParam(value = "country", defaultValue = "") String country, @RequestParam(value = "id", defaultValue = "") String surveyedLocaleId) { final Map<String, List<? extends BaseDto>> response = new HashMap<String, List<? extends BaseDto>>(); fina...
public Map<String, List<PlacemarkDto>> listPlaceMarks( @RequestParam(value = "country", defaultValue = "") String country, @RequestParam(value = "id", defaultValue = "") String surveyedLocaleId) { final Map<String, List<PlacemarkDto>> response = new HashMap<String, List<PlacemarkDto>>(); final List<Placemar...
diff --git a/src/main/java/com/gramercysoftware/hibernate/SQLiteDialect.java b/src/main/java/com/gramercysoftware/hibernate/SQLiteDialect.java index 8571efc..2d1b812 100644 --- a/src/main/java/com/gramercysoftware/hibernate/SQLiteDialect.java +++ b/src/main/java/com/gramercysoftware/hibernate/SQLiteDialect.java @@ -1,1...
true
true
public SQLiteDialect() { registerColumnType(Types.BIT, "integer"); registerColumnType(Types.TINYINT, "tinyint"); registerColumnType(Types.SMALLINT, "smallint"); registerColumnType(Types.INTEGER, "integer"); registerColumnType(Types.BIGINT, "bigint"); registerColumnType(Types.FLOAT, "float"); registerColu...
public SQLiteDialect() { registerColumnType(Types.BIT, "integer"); registerColumnType(Types.TINYINT, "tinyint"); registerColumnType(Types.SMALLINT, "smallint"); registerColumnType(Types.INTEGER, "integer"); registerColumnType(Types.BIGINT, "bigint"); registerColumnType(Types.FLOAT, "float"); registerColu...
diff --git a/src/main/java/com/bibounde/vprotovis/gwt/client/spider/VSpiderChartComponent.java b/src/main/java/com/bibounde/vprotovis/gwt/client/spider/VSpiderChartComponent.java index b780a37..18c5ebe 100644 --- a/src/main/java/com/bibounde/vprotovis/gwt/client/spider/VSpiderChartComponent.java +++ b/src/main/java/com...
false
true
public native void render()/*-{ var vspiderchart = this; function theta(angle) { return Math.PI * ((angle + 90)/180); } function createRule(angle, labelText) { var axis = vis.add($wnd.pv.Line).data($wnd.pv.range(2)); axis.left(func...
public native void render()/*-{ var vspiderchart = this; function theta(angle) { return Math.PI * ((angle + 90)/180); } function createRule(angle, labelText) { var axis = vis.add($wnd.pv.Line).data($wnd.pv.range(2)); axis.left(func...
diff --git a/loci/formats/FilePattern.java b/loci/formats/FilePattern.java index f692229ce..266c25a0c 100644 --- a/loci/formats/FilePattern.java +++ b/loci/formats/FilePattern.java @@ -1,735 +1,738 @@ // // FilePattern.java // /* OME Bio-Formats package for reading and converting biological file formats. Copyri...
true
true
public static String findPattern(String name, String dir, String[] nameList) { if (dir == null) dir = ""; // current directory else if (!dir.equals("") && !dir.endsWith(File.separator)) { dir += File.separator; } // compile list of numerical blocks int len = name.length(); int bound = (...
public static String findPattern(String name, String dir, String[] nameList) { if (dir == null) dir = ""; // current directory else if (!dir.equals("") && !dir.endsWith(File.separator)) { dir += File.separator; } // compile list of numerical blocks int len = name.length(); int bound = (...
diff --git a/src/main/java/cse/buffalo/edu/algorithms/search/BST.java b/src/main/java/cse/buffalo/edu/algorithms/search/BST.java index 8fa6193..1e41926 100644 --- a/src/main/java/cse/buffalo/edu/algorithms/search/BST.java +++ b/src/main/java/cse/buffalo/edu/algorithms/search/BST.java @@ -1,246 +1,246 @@ package cse.bu...
true
true
private Node delete(Node x, Key key) { if (x == null) return null; int cmp = key.compareTo(x.key); // Search for the key. if (cmp < 0) delete(x.left, key); else if (cmp > 0) delete(x.right, key); else { // Case 1: no right child. // You can do the same thing when there is no l...
private Node delete(Node x, Key key) { if (x == null) return null; int cmp = key.compareTo(x.key); // Search for the key. if (cmp < 0) x.left = delete(x.left, key); else if (cmp > 0) x.right = delete(x.right, key); else { // Case 1: no right child. // You can do the same thing...
diff --git a/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java b/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java index 46e27832..8d3034ce 100644 --- a/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java +++ b/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java @@ -1,1328 +1,1331 @@ /* * Licensed to the Apache Soft...
true
true
private void processJAXPSchemaSource(Hashtable locationPairs) throws IOException { fJAXPProcessed = true; if (fJAXPSource == null) { return; } Class componentType = fJAXPSource.getClass().getComponentType(); XMLInputSource xis = null; String sid =...
private void processJAXPSchemaSource(Hashtable locationPairs) throws IOException { fJAXPProcessed = true; if (fJAXPSource == null) { return; } Class componentType = fJAXPSource.getClass().getComponentType(); XMLInputSource xis = null; String sid =...
diff --git a/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIQuickFixTest.java b/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIQuickFixTest.java index 41e88a281..05c5927ec 100644 --- a/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test...
true
true
public void testConfigureProblemSeverity() throws CoreException { util.checkPrpposal(tckProject, "JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonStaticProducerBroken.java", "JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonStaticProducerBroken.new", CDIValidationErrorManager.MESSAGE_ID_AT...
public void testConfigureProblemSeverity() throws CoreException { util.checkPrpposal(tckProject, "JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonStaticProducerBroken.java", "JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NonStaticProducerBroken.qfxresult", CDIValidationErrorManager.MESSAGE...
diff --git a/easysoa-registry/easysoa-registry-core/src/main/java/org/easysoa/validation/EnvironmentValidationService.java b/easysoa-registry/easysoa-registry-core/src/main/java/org/easysoa/validation/EnvironmentValidationService.java index 30ba56b7..69e89833 100644 --- a/easysoa-registry/easysoa-registry-core/src/main...
false
true
public String run(String runName, String environmentName) throws ClientException { synchronized(log) { String validationReportHtml = null; boolean wasActiveTx = false; try { // Init RepositoryManager mgr = Framework.getService(RepositoryManager.class); Repository rep...
public String run(String runName, String environmentName) throws ClientException { synchronized(log) { String validationReportHtml = null; boolean wasActiveTx = false; try { // Init RepositoryManager mgr = Framework.getService(RepositoryManager.class); Repository rep...
diff --git a/Bytecode/BlindPassenger.java b/Bytecode/BlindPassenger.java index 9fe3a89..0274754 100644 --- a/Bytecode/BlindPassenger.java +++ b/Bytecode/BlindPassenger.java @@ -1,50 +1,50 @@ import java.io.*; public class BlindPassenger { public static void main(String [] args) throws IOException { Buff...
false
true
public static void main(String [] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); int t,n; //System.out.println(line); t = Integer.parseInt(line); for(int i=0;i<t;++i) { line = br.readLine(); n ...
public static void main(String [] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); int t,n; //System.out.println(line); t = Integer.parseInt(line.trim()); for(int i=0;i<t;++i) { line = br.readLine(); ...
diff --git a/src/main/java/com/yahoo/ycsb/Client.java b/src/main/java/com/yahoo/ycsb/Client.java index a3134a2..0ad6f04 100644 --- a/src/main/java/com/yahoo/ycsb/Client.java +++ b/src/main/java/com/yahoo/ycsb/Client.java @@ -1,884 +1,884 @@ /** ...
true
true
public static void main(String[] args) { String dbname; Properties props=new Properties(); Properties fileprops=new Properties(); boolean dotransactions=true; int threadcount=1; int nodecount=1; int target=0; boolean status=false; String label=""; //parse arguments int argindex=0; if (args.l...
public static void main(String[] args) { String dbname; Properties props=new Properties(); Properties fileprops=new Properties(); boolean dotransactions=true; int threadcount=1; int nodecount=1; int target=0; boolean status=false; String label=""; //parse arguments int argindex=0; if (args.l...
diff --git a/Smite/src/me/comp/Smite/Smite.java b/Smite/src/me/comp/Smite/Smite.java index f842971..8fb2263 100644 --- a/Smite/src/me/comp/Smite/Smite.java +++ b/Smite/src/me/comp/Smite/Smite.java @@ -1,53 +1,53 @@ package me.comp.Smite; import java.util.logging.Logger; import org.bukkit.ChatColor; import org.b...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player) sender; World world = player.getWorld(); if(commandLabel.equalsIgnoreCase("smite")) { if(args.length == 0) { Block targetblock = player.getTargetBlock(null, 20); Lo...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player) sender; World world = player.getWorld(); if(commandLabel.equalsIgnoreCase("smite")) { if(args.length == 0) { Block targetblock = player.getTargetBlock(null, 50); Lo...
diff --git a/src/main/java/com/laytonsmith/core/functions/EntityManagement.java b/src/main/java/com/laytonsmith/core/functions/EntityManagement.java index 38c45893..2343e72b 100644 --- a/src/main/java/com/laytonsmith/core/functions/EntityManagement.java +++ b/src/main/java/com/laytonsmith/core/functions/EntityManagemen...
true
true
public Construct exec(Target t, Environment env, Construct... args) throws ConfigRuntimeException { MCPlayer p = env.getEnv(CommandHelperEnvironment.class).GetPlayer(); MCLocation loc; int dist; List<String> types = new ArrayList<String>(); if (!(args[0] instanceof CArray)) { throw new ConfigRunt...
public Construct exec(Target t, Environment env, Construct... args) throws ConfigRuntimeException { MCPlayer p = env.getEnv(CommandHelperEnvironment.class).GetPlayer(); MCLocation loc; int dist; List<String> types = new ArrayList<String>(); if (!(args[0] instanceof CArray)) { throw new ConfigRunt...
diff --git a/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/merrimac/clad/AbstractListComposite.java b/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/merrimac/clad/AbstractListComposite.java index c7aa8050..fc6c213f 100644 --- a/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/...
false
true
public void bindList(final EObject theobject, final EStructuralFeature thefeature) { if (!(theobject.eGet(thefeature) instanceof EList<?>)) { return; } // Class<?> clazz = thefeature.getEType().getInstanceClass(); // if (!EObject.class.isAssignableFrom(clazz)) { // return; // } setBusinessObject(theobje...
public void bindList(final EObject theobject, final EStructuralFeature thefeature) { if (!(theobject.eGet(thefeature) instanceof EList<?>)) { return; } // Class<?> clazz = thefeature.getEType().getInstanceClass(); // if (!EObject.class.isAssignableFrom(clazz)) { // return; // } setBusinessObject(theobje...
diff --git a/src/main/java/com/licel/jcardsim/crypto/ByteContainer.java b/src/main/java/com/licel/jcardsim/crypto/ByteContainer.java index c661b08..5eee92a 100644 --- a/src/main/java/com/licel/jcardsim/crypto/ByteContainer.java +++ b/src/main/java/com/licel/jcardsim/crypto/ByteContainer.java @@ -1,169 +1,169 @@ /* *...
true
true
public void setBytes(byte[] buff, short offset, short length) { if (data == null) { switch (memoryType) { case JCSystem.MEMORY_TYPE_TRANSIENT_DESELECT: data = JCSystem.makeTransientByteArray(length, JCSystem.CLEAR_ON_DESELECT); break; ...
public void setBytes(byte[] buff, short offset, short length) { if (data == null || data.length != length) { switch (memoryType) { case JCSystem.MEMORY_TYPE_TRANSIENT_DESELECT: data = JCSystem.makeTransientByteArray(length, JCSystem.CLEAR_ON_DESELECT); ...
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/BindingTableEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/BindingTableEditor.java index 2d03f371..9e701e5b 100644 --- a/bundles/org.eclipse.e4.tools.em...
true
true
private Composite createForm(Composite parent, EMFDataBindingContext context, IObservableValue master, boolean isImport) { CTabFolder folder = new CTabFolder(parent, SWT.BOTTOM); CTabItem item = new CTabItem(folder, SWT.NONE); item.setText(Messages.ModelTooling_Common_TabDefault); parent = createScrollableCo...
private Composite createForm(Composite parent, EMFDataBindingContext context, IObservableValue master, boolean isImport) { CTabFolder folder = new CTabFolder(parent, SWT.BOTTOM); CTabItem item = new CTabItem(folder, SWT.NONE); item.setText(Messages.ModelTooling_Common_TabDefault); parent = createScrollableCo...
diff --git a/src/de/xghostkillerx/cookme/CookMePlayerListener.java b/src/de/xghostkillerx/cookme/CookMePlayerListener.java index 52ef867..7665d67 100644 --- a/src/de/xghostkillerx/cookme/CookMePlayerListener.java +++ b/src/de/xghostkillerx/cookme/CookMePlayerListener.java @@ -1,180 +1,180 @@ package de.xghostkillerx.c...
true
true
public void onPlayerInteract(PlayerInteractEvent event) { Player player = event.getPlayer(); // Check if player is affected if (!player.hasPermission("cookme.safe")) { // Check for raw food & right clicking if (((event.getMaterial() == Material.RAW_BEEF) || (event.getMaterial() == Material.RAW_CHICKEN) || ...
public void onPlayerInteract(PlayerInteractEvent event) { Player player = event.getPlayer(); // Check if player is affected if (!player.hasPermission("cookme.safe")) { // Check for raw food & right clicking if (((event.getMaterial() == Material.RAW_BEEF) || (event.getMaterial() == Material.RAW_CHICKEN) || ...
diff --git a/src/net/mdcreator/tpplus/home/HomeExecutor.java b/src/net/mdcreator/tpplus/home/HomeExecutor.java index 4e69505..77694cd 100644 --- a/src/net/mdcreator/tpplus/home/HomeExecutor.java +++ b/src/net/mdcreator/tpplus/home/HomeExecutor.java @@ -1,175 +1,175 @@ package net.mdcreator.tpplus.home; import net.m...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player send; if(!(sender instanceof Player)){ sender.sendMessage(title + ChatColor.RED + "Player context is required!"); return true; } send = (Player) sender; ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player send; if(!(sender instanceof Player)){ sender.sendMessage(title + ChatColor.RED + "Player context is required!"); return true; } send = (Player) sender; ...
diff --git a/src/main/java/hudson/remoting/Request.java b/src/main/java/hudson/remoting/Request.java index 76923cb4..b78d2972 100644 --- a/src/main/java/hudson/remoting/Request.java +++ b/src/main/java/hudson/remoting/Request.java @@ -1,352 +1,353 @@ /* * The MIT License * * Copyright (c) 2004-2009, Sun Microsy...
false
true
public final hudson.remoting.Future<RSP> callAsync(final Channel channel) throws IOException { response=null; channel.pendingCalls.put(id,this); channel.send(this); return new hudson.remoting.Future<RSP>() { private volatile boolean cancelled; public boole...
public final hudson.remoting.Future<RSP> callAsync(final Channel channel) throws IOException { response=null; channel.pendingCalls.put(id,this); channel.send(this); return new hudson.remoting.Future<RSP>() { private volatile boolean cancelled; public boole...
diff --git a/avr/bi/extensions/trisano/src/org/trisano/mondrian/GetPopulation.java b/avr/bi/extensions/trisano/src/org/trisano/mondrian/GetPopulation.java index 3fa4be62e..55803a148 100644 --- a/avr/bi/extensions/trisano/src/org/trisano/mondrian/GetPopulation.java +++ b/avr/bi/extensions/trisano/src/org/trisano/mondria...
false
true
public Object execute(Evaluator evaluator, UserDefinedFunction.Argument[] arguments) { java.sql.Connection conn = null; List<Map<String, String>> dimensions = new ArrayList<Map<String, String>>(); ResultSet rs; String column_names = new String(""); String table_name, query; ...
public Object execute(Evaluator evaluator, UserDefinedFunction.Argument[] arguments) { java.sql.Connection conn = null; List<Map<String, String>> dimensions = new ArrayList<Map<String, String>>(); ResultSet rs; String column_names = new String(""); String table_name, query; ...
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java b/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java index 232f20b2d..7de241872 100644 --- a/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java +++ b/modules/cpr/src/main/java/org/atmosphere/cpr/SessionSupport.java...
true
true
public void sessionDestroyed(HttpSessionEvent se) { logger.trace("Session destroyed"); try { HttpSession s = se.getSession(); BroadcasterFactory factory = BroadcasterFactory.getDefault(); if (factory != null) { for (Broadcaster b : factory.lookupAll...
public void sessionDestroyed(HttpSessionEvent se) { logger.trace("Session destroyed"); try { HttpSession s = se.getSession(); if (BroadcasterFactory.getDefault() != null) { for (Broadcaster b : BroadcasterFactory.getDefault().lookupAll()) { ...