diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public abstract class JBListTable {
}
@ override
+ public boolean isCellEditable ( EventObject e ) {
+ if ( e instanceof MouseEvent && UIUtil ... | don t call cell edit if selection key is enabled |
<nb> public class NBLinearClassifierFactory < L , F > extends AbstractLinearClassifierFac
SINGLE
score -= c . logProbabilityOf ( new BasicDatum < L , F > ( featureIndex . objects ( data [ i ] ) ) ) . getCount ( labelIndex . get ( labels [ i ] ) ) ;
}
- SINGLE
+ SINGLE
sumScore += score ;
}
- System . er... | Fix n to n Really just see if my repository is set up again okay |
<nb> public class AsyncHttpClientConfig {
return removeQueryParamOnRedirect ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean isClosed ( ) {
+ return applicationThreadPool . isShutdown ( ) || reaper . isShutdown ( ) ;
+ }
COMMENT
COMMENT
<nb> public class AsyncHttpClientConfig {
... | Add an API to detect if an config is valid or not |
<nb> public class Fields implements Iterable < String > , Serializable {
}
public Fields ( List < String > fields ) {
- _fields = new ArrayList < String > ( fields ) ;
+ _fields = new ArrayList < String > ( fields . size ( ) ) ;
+ for ( String field : fields ) {
+ if ( _fields . contains ( field ) )
+ t... | prevent duplicates on Fields |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- imp... | Fixed wildcard import |
<nb> public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
} else if ( isSearchByNameFilter ( ) ) {
searchFilterLayout . setVisibility ( View . VISIBLE ) ;
}
+ SINGLE
if ( ! app . accessibilityEnabled ( ) ) {
app . getLocationProvider ( ) . addCompassListener ( this ) ;
app . ge... | Enter comment to explain freeing of direction arrows with Accessibility mode ON |
<nb> public class FileUploadController2 extends MultiActionController {
SINGLE
BufferedImage image = ImageIO . read ( imageData ) ;
log . warn ( STRING0 , file . length ) ;
+ String room = request . getParameterValues ( STRING1 ) [ NUMBER0 ] ;
+ log . warn ( STRING2 , room ) ;
+ String videoInfo = request .... | handle multi parameter form upload |
<nb> public class NetworkMonitor extends StateMachine {
SINGLE
private boolean mUserDoesNotWant = false ;
+ SINGLE
+ private boolean mDontDisplaySigninNotification = false ;
public boolean systemReady = false ;
<nb> public class NetworkMonitor extends StateMachine {
sendMessage ( CMD_FORCE_REEVALUAT... | Avoid surfacing Sign in to network notification if user selects use as is |
<nb>
- package NAMESPACE ;
+ package NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; ... | Move OnListsChangedListener to new interfaces package |
<nb> public final class Gram extends Iced < Gram > {
final static int MIN_TSKSZ = NUMBER0 ;
public Gram ( ) { _diagN = _denseN = _fullN = NUMBER1 ; _hasIntercept = false ; }
- public Gram ( DataInfo dinfo ) { this ( dinfo . fullN ( ) , dinfo . largestCat ( ) , dinfo . numNums ( ) , dinfo . _cats , true ) ; }
... | pass _nums and not numNums |
<nb> class AlterTableImpl extends AbstractQuery implements
ctx . sql ( STRING0 ) . keyword ( STRING1 ) ;
}
+ SINGLE
+ else {
+ ctx . sql ( STRING0 ) . keyword ( STRING2 ) ;
+ }
+
ctx . end ( ALTER_TABLE_ADD ) ;
}
else if ( alter != null ) { | Fixed Sybase SQL Anywhere ALTER TABLE behaviour |
<nb> public abstract class InfoItem {
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public abstract byte [ ] get (
Supplier < BuildConfiguration > configurationSupplier , CommandEnvironment env ) | Remove unnecessary comment |
<nb> class ComparableTimSort {
}
public void doSort ( Object [ ] a , int lo , int hi ) {
+ stackSize = NUMBER0 ;
rangeCheck ( a . length , lo , hi ) ;
int nRemaining = hi - lo ;
if ( nRemaining < NUMBER1 ) return ; SINGLE
<nb> class TimSort < T > {
}
public void doSort ( T [ ] a , Comparator < T >... | fixed TimSort classes |
<nb> public class GridSearch extends Job {
info . _error = info . _model . mse ( ) ;
}
}
- if ( info . _cm != null )
+ if ( info . _cm != null && ( info . _model == null || info . _model . isClassifier ( ) ) )
info . _error = info . _cm . err ( ) ;
if ( infos != null ) infos . add ( info ) ;
prediction_... | Fix grid search display of MSE for regression |
<nb> public class Spinner extends AbsSpinner implements OnClickListener {
private CharSequence mPrompt ;
public void dismiss ( ) {
- mPopup . dismiss ( ) ;
- mPopup = null ;
+ if ( mPopup != null ) {
+ mPopup . dismiss ( ) ;
+ mPopup = null ;
+ }
}
public boolean isShowing ( ) { | Fixed race condition in Spinner DialogPopup on null reference |
<nb> class FileElementInfo implements SmartPointerElementInfo {
if ( other instanceof FileElementInfo ) {
return Comparing . equal ( myVirtualFile , ( ( FileElementInfo ) other ) . myVirtualFile ) ;
}
+ if ( other instanceof SelfElementInfo && ( ( SelfElementInfo ) other ) . getSyncStartOffset ( ) != NUMBER0 ) ... | avoid parsing during disposal of smart pointers |
<nb> public class PsiResolveHelperImpl implements PsiResolveHelper {
if ( constraintFromFormalParams != null ) return constraintFromFormalParams ;
final PsiParameter [ ] methodParameters = method . getParameterList ( ) . getParameters ( ) ;
- if ( methodParamsDependOn ( typeParam , lambdaExpression , functional... | new build investigation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | New API Allow customization of ServletHandler path mapping |
<nb> public class TestPriorityMap
public void testIt ( )
{
PriorityMap < Integer , Integer , Double > map =
- PriorityMap . withSelfKeyNaturalOrder ( ) ;
+ PriorityMap . < Integer , Double > withSelfKeyNaturalOrder ( ) ;
SINGLE
SINGLE
SINGLE
<nb> public class TestPriorityMap
SINGLE
SINGLE
SINGLE... | Fixed a generics compilation error |
<nb> public class EditingTargetCodeExecution
if ( functionWrapper != null )
{
- code = functionWrapper + STRING0 + code + STRING1 ;
+ code = functionWrapper + STRING2 + code + STRING3 ;
}
SINGLE | enable profiling multi line statements |
<nb> public class MoveSubcontactMessageDialog
this . mainFrame = parentWindow ;
this . clistListener = listener ;
+ System . out . println ( STRING0 ) ;
+ this . setTitle ( Messages . getI18NString ( STRING1 ) . getText ( ) ) ;
+
this . mainPanel . setPreferredSize (
new Dimension ( dialogWidth , dialog... | Set a title to the move dialog |
<nb> import NAMESPACE ;
@ serviceprovider ( service = MessageBodyReader . class )
} )
public final class HtmlJsonProvider
- implements MessageBodyWriter , MessageBodyReader < Object > {
+ implements MessageBodyWriter < Object > , MessageBodyReader < Object > {
private static final Logger LOG = Logger . ge... | Adding missing type parameter |
<nb> public final class MailConverters {
if ( s == null ) {
return null ;
}
- return IOConverter . toInputStream ( s ) ;
+ return IOConverter . toInputStream ( s , null ) ;
}
COMMENT
<nb> public final class MailConverters {
if ( s == null ) {
return null ;
}
- return IOConverter . toInputStrea... | Fixed the build camel mail |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StackFrameDescriptorImpl extends NodeDescriptorImpl impl... | do not show default icon in front of stack frames it only consumes space |
<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab
}
if ( webSocket != null ) {
- webSocket . resource ( null ) ;
+ try {
+ webSocket . resource ( null ) . close ( null ) ;
+ } catch ( IOException e ) {
+ logger . trace ( STRING0 , e ) ;
+ }
}
}
} | Explicitely clear the underlying buffer |
<nb> public class VoicemailContract {
COMMENT
public static final String EXTRA_SELF_CHANGE = STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String SOURCE_PACKAGE_FIELD = STRING1 ;
+
COMMENT
public static final class Voicemails implements BaseColumns {
COMMENT
<nb> publ... | Introduced a common SOURCE_PACKAGE_FIELD in VoicemailContract class |
<nb> public class ShellBolt implements IBolt {
public void prepare ( Map stormConf , TopologyContext context ,
final OutputCollector collector ) {
Object maxPending = stormConf . get ( Config . TOPOLOGY_SHELLBOLT_MAX_PENDING ) ;
- if ( maxPending != null && maxPending instanceof Number ) {
+ if ( maxPending !... | remove instanceof check |
<nb> final class WindowState implements WindowManagerPolicy . WindowState {
COMMENT
COMMENT
boolean isOpaqueDrawn ( ) {
- return ( mAttrs . format == PixelFormat . OPAQUE
- || mAttrs . type == TYPE_WALLPAPER )
+ SINGLE
+ SINGLE
+ SINGLE
+ return ( ( ! mIsWallpaper && mAttrs . format == PixelFormat . O... | Check wallpaper visibility to determine if wallpaper is obscuring apps |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports |
<nb> public class BinaryDoubleExpressionHelper extends BinaryLongExpressionHelper {
@ override
protected ClassNode getNormalOpResultType ( ) {
- return ClassHelper . long_TYPE ;
+ return ClassHelper . double_TYPE ;
}
@ override | change result type to long copy paste error |
<nb> public class GitBranchIsNotFullyMergedDialog extends DialogWrapper {
setTitle ( STRING0 ) ;
setOKButtonText ( STRING1 ) ;
+ setOKButtonMnemonic ( STRING2 ) ;
setCancelButtonText ( STRING3 ) ;
} | git Add mnemonic to Delete button in Branch Is Not Fully Merge dialog appearing on branch deletion |
<nb> public final class SecurityClassLoad {
String basePackage = STRING0 ;
loader . loadClass ( basePackage + STRING1 ) ;
loader . loadClass ( basePackage + STRING2 ) ;
- loader . loadClass ( basePackage + STRING3 ) ;
} | Remove class that was deleted some months ago |
<nb> public class WallpaperManagerService extends IWallpaperManager . Stub {
return null ;
}
+ @ override
public void setWallpaperComponentChecked ( ComponentName name , String callingPackage ) {
if ( isWallpaperSupported ( callingPackage ) && isWallpaperSettingAllowed ( callingPackage ) ) {
setWallpaperC... | Assign a new wallpaper ID when a live wallpaper is set |
<nb> public class ClassReloadingStrategy implements ClassLoadingStrategy {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public static ClassReloadingStrategy of ( Instrumentation instrumentation ) {
Engine engine ; | Added missing documentation |
<nb> public final class ReflectionUtilTest {
@ test
public void testGetAllClasses ( ) {
List < Class > classes = ReflectionUtil . getDomainClasses ( ) ;
- Assert . assertEquals ( NUMBER0 , classes . size ( ) ) ;
+ Assert . assertEquals ( NUMBER1 , classes . size ( ) ) ;
}
@ test ( expected = NoSuchField... | Solved error in ReflectionUtilTest |
<nb> public class RuntimeGenerateCompressedList < T > implements CompressedList < T > {
private void checkReplace ( Replace replace ) {
if ( replace . to ( ) >= size ) {
- throw new IllegalArgumentException ( STRING0 + replace . from ( ) + STRING1 +
- + replace . to ( ) + STRING1 + replace . addedElementCount... | change throw message in RuntimeGenerateCompressedList |
<nb> public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix IDE nag |
<nb> public class SparkSqlInterpreter extends Interpreter {
@ override
public Scheduler getScheduler ( ) {
- int maxConcurrency = NUMBER0 ;
- return SchedulerFactory . singleton ( ) . createOrGetParallelScheduler (
- SparkSqlInterpreter . class . getName ( ) + this . hashCode ( ) , maxConcurrency ) ;
+ if... | Add concurrentSQL condition in getScheduler |
<nb> public class Capsule implements Runnable {
final String rename = ( String ) fileAndRename [ NUMBER0 ] ;
Path res = lib ;
- if ( ! lib . startsWith ( getWritableAppCache ( ) ) ) {
+ if ( rename != null && ! lib . startsWith ( getWritableAppCache ( ) ) ) {
try {
- res = getWritableAppCache ( ) . resolv... | Copy native libs to writeable app cache only if rename |
<nb> public class Tutorials extends HTMLOnlyRequest {
AbstractBuildVersion abv = H2O . getBuildVersion ( ) ;
String branchName = abv . branchName ( ) ;
String buildNumber = abv . buildNumber ( ) ;
- String documentationUrl = STRING0 + branchName + STRING1 + buildNumber + STRING2 ;
+ String documentationUrl = ... | Fix R tutorials tryit link |
<nb> public final class AnimChannel {
}
}
animation = null ;
- SINGLE
notified = false ;
} | remove useless println |
<nb> public class EventServiceImpl implements EventService {
}
private boolean hasRegistrations ( String topic ) {
Collection < Registration > topicRegistrations = registrations . get ( topic ) ;
- return ! ( topicRegistrations == null && topicRegistrations . isEmpty ( ) ) ;
+ return ! ( topicRegistrations ==... | Fix NPE when registrations is null |
<nb> public class NetworkPolicyManagerService extends INetworkPolicyManager . Stub {
mContext . enforceCallingOrSelfPermission ( CONNECTIVITY_INTERNAL , TAG ) ;
SINGLE
- NetworkPolicy [ ] policies = getNetworkPolicies ( ) ;
+ NetworkPolicy [ ] policies = getNetworkPolicies ( mContext . getOpPackageName ( ) ) ... | Fixing build break |
<nb> public final class HeaderMap implements Iterable < HttpString > {
}
private ArrayDeque < String > newHeaderValue ( final String value ) {
- final ArrayDeque < String > deque = new ArrayDeque < String > ( ) ;
+ final ArrayDeque < String > deque = new ArrayDeque < String > ( NUMBER0 ) ;
deque . add ( val... | Don t allocate big deques in the header map |
<nb> public class SynthProxy {
COMMENT
public SynthProxy ( String nativeSoLib ) {
boolean applyFilter = nativeSoLib . toLowerCase ( ) . contains ( STRING0 ) ;
- Log . v ( TtsService . SERVICE_TAG , STRING1 + nativeSoLib + STRING2 + applyFilter ) ;
+ Log . v ( TtsService . SERVICE_TAG , STRING3 + nativeSoLib +... | Fix typo in log message in TTS SynthProxy |
<nb> public class ModulesExampleActivity extends Activity {
SINGLE
RealmConfiguration defaultConfig = new RealmConfiguration . Builder ( this ) . build ( ) ;
- SINGLE
+ SINGLE
SINGLE
SINGLE
RealmConfiguration farmAnimalsConfig = new RealmConfiguration . Builder ( this )
<nb> public class RealmConfigur... | Fix typo and rename a test |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ suppresswarnings ( STRING0 )
public interface Response {
COMMENT | Remove unused warning suppression |
<nb> public abstract class AbstractLastAccessTimeTest
client . send ( exchange2 ) ;
exchange2 . waitForDone ( ) ;
assertEquals ( HttpServletResponse . SC_OK , exchange2 . getResponseStatus ( ) ) ;
- System . out . println ( STRING0 + exchange2 . getResponseContent ( ) ) ;
assertEquals ( STRING1 , exchange2 . ... | remove some logging |
<nb> public final class MessagingService implements MessagingServiceMBean
{
List < String > logs = getDroppedMessagesLogs ( ) ;
for ( String log : logs )
- logger . error ( log ) ;
+ logger . info ( log ) ;
if ( logs . size ( ) > NUMBER0 )
StatusLogger . log ( ) ; | Return dropped messages log to INFO level |
<nb> public abstract class AbstractSamlProfileHandlerController {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
protected void issueAuthenticationRequestRedirect ( final Pair < ? extends SignableSAMLObject , MessageContext > pair ,
<nb> pub... | Fix javadocs issues with missing tags |
<nb> class ServerTrustManager implements X509TrustManager {
SINGLE
boolean trusted = false ;
-
try {
if ( configuration . isSelfSignedCertificateEnabled ( ) ) | turned off domain name verification when verifiy checkbox is unchecked |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Added missing import from repackage of GradleDaemon entry point class |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
public class Ratio extends Number implements Comparable {
final public BigInteger numerator ;
<nb> public float floatValue ( ) {
}
public double doubleValue ( ) {
- return numerator . doubleValue ( ) / denomi... | fixed Ratio to floating point conversion patch from jbondeson |
<nb> public final class MediaBrowser {
boolean bound = false ;
try {
- if ( mContext . bindService ( intent , mServiceConnection , Context . BIND_AUTO_CREATE ) ) {
- bound = true ;
- }
+ bound = mContext . bindService ( intent , mServiceConnection , Context . BIND_AUTO_CREATE ) ;
} catch ( Exception ex ... | Assign bindService result to a boolean directly |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractListenersOnReconnectTest extends ClientTestSupport
}
@ test
+ @ ignore ( value = STRING0 )
public void testClusterRecon... | Ignored spuriously failing test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MetricsContextTest extends AsyncTestBase {
testHttpClientWebsocket ( eventLoopContextFactory , eventLoopChecker ) ;
}
+ SINGLE
@ test
... | Ignoring failing test for now |
<nb> public abstract class StubProcessingHelperBase {
for ( Pair < IStubFileElementType , PsiFile > stubbedRoot : stubbedRoots ) {
if ( stubbedRoot . second == stubBindingRoot ) continue ;
if ( stubbedRoot . second instanceof PsiFileImpl ) {
- final StubTree secondaryStubTree = ( ( PsiFileImpl ) stubbedRoot . s... | reuse existing secondary stub tree don t trigger full reparse rebuild cycle on template languages |
<nb> public final class AutoFactoryProcessor extends AbstractProcessor {
try {
doProcess ( annotations , roundEnv ) ;
} catch ( Throwable e ) {
- messager . printMessage ( Kind . ERROR , STRING0 +
- Throwables . getStackTraceAsString ( e ) ) ;
+ messager . printMessage ( Kind . ERROR , STRING0
+ + Throwab... | Fix a small style violation |
<nb> public final class HikariPool implements HikariPoolMBean
this . idleConnectionCount = new AtomicInteger ( ) ;
this . awaitingConnection = new AtomicInteger ( ) ;
this . backgroundFillQueued = new AtomicBoolean ( ) ;
- this . idleConnections = new LinkedBlockingQueue < IHikariConnectionProxy > ( configurati... | Remove pool size |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | added license header |
<nb> final class ReceiverList extends ArrayList < BroadcastFilter >
}
void dumpLocal ( PrintWriter pw , String prefix ) {
- pw . print ( prefix ) ; pw . print ( STRING0 ) ; pw . print ( app . toShortString ( ) ) ;
+ pw . print ( prefix ) ; pw . print ( STRING0 ) ; pw . print ( app != null ? app . toShortStrin... | Fix crash when dump is called on ReceiverList |
<nb> public class PythonFoldingBuilder implements FoldingBuilder {
IElementType elType = node . getTreeParent ( ) . getElementType ( ) ;
if ( elType == PyElementTypes . FUNCTION_DECLARATION || elType == PyElementTypes . CLASS_DECLARATION ) {
ASTNode colon = node . getTreeParent ( ) . findChildByType ( PyTokenType... | Fixed an assertion error when a function is being defined and a colon is not yet typed in |
<nb> public final class HiveUtil
public static Deserializer getDeserializer ( Properties schema )
{
String name = schema . getProperty ( SERIALIZATION_LIB ) ;
- checkArgument ( name != null , STRING0 , SERIALIZATION_LIB ) ;
+ checkArgument ( name != null , STRING1 , SERIALIZATION_LIB ) ;
Deserializer dese... | Improve error message when creating Hive deserializer |
<nb> public class Logger implements Processor {
log . warn ( logMessage ( exchange ) , exception ) ;
}
break ;
+ case OFF :
+ break ;
default :
log . error ( STRING0 + level + STRING1 + logMessage ( exchange ) ) ;
} | Added missing OFF logging level |
<nb> public class DB2Database extends AbstractJdbcDatabase {
@ override
public String getViewDefinition ( CatalogAndSchema schema , String name ) throws DatabaseException {
- return super . getViewDefinition ( schema , name ) . replaceFirst ( STRING0 , STRING1 ) ; SINGLE
+ return STRING2 + super . getViewDefi... | Capture full view definition in snapshot generateChangeLog to support column options |
<nb> public class CanvasTest {
ShadowCanvas shadow = shadowOf ( canvas ) ;
assertThat ( shadow . getPathPaintHistoryCount ( ) , equalTo ( NUMBER0 ) ) ;
assertEquals ( shadowOf ( shadow . getDrawnPath ( NUMBER1 ) ) . getPoints ( ) . get ( NUMBER1 ) , new ShadowPath . Point ( NUMBER2 , NUMBER2 , LINE_TO ) ) ;
- a... | fix a typo |
<nb> public class MixedFileUpload implements FileUpload {
. getContentType ( ) , fileUpload
. getContentTransferEncoding ( ) , fileUpload . getCharset ( ) ,
definedSize ) ;
- diskFileUpload . addContent ( ( ( MemoryFileUpload ) fileUpload )
+ if ( ( ( MemoryFileUpload ) fileUpload ) . getChannelBuffer ( ) != ... | Fix NPE when non chunked message with a large variable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ZWaveNodeStageAdvancer implements ZWaveEventListener {
SINGLE
SINGLE
SINGLE
- if ( node . getDev... | Change initialisation check to PC_CONTROLLER specific class |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Fix license header |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class DisposableTaskListFragment extends TaskListFragment {
public void onDetach ( ) {
Activity activity = getActivity ( ) ;
if ( activity instanceof TaskListActivity &&
- Preferences .... | Fixed a potential null pointer in disposable task list fragment |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class EndToEndTest {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ test
public void testSanity ( ) { | Fixed Javadoc for EndToEndTest |
<nb> public abstract class GroovySyntaxTag implements GrailsTag {
if ( hasVar ) {
out . print ( var ) ;
- }
-
- SINGLE
- if ( hasStatus ) {
- out . print ( STRING0 ) ;
- out . print ( status ) ;
- }
-
- if ( hasVar || hasStatus ) {
- out . print ( STRING1 ) ; SINGLE
+ SINGLE
+ if ( hasStat... | eliminate some unnecessary if conditions |
<nb> public class TestMusicStreaming extends SimpleApplication {
public void simpleInitApp ( ) {
assetManager . registerLocator ( STRING0 , UrlLocator . class ) ;
AudioNode audioSource = new AudioNode ( assetManager , STRING1 , true ) ;
+ audioSource . setPositional ( false ) ;
+ audioSource . setReverbEnable... | Fix TestMusicStreaming crash due to sound being positional and stereo |
<nb> public final class Settings {
public static final String
ACTION_SHOW_REGULATORY_INFO = STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ sdkconstant ( SdkConstantType . ACTIVITY_INTENT_ACTION )
+ public static final String DEVICE_NAME_SETTINGS =... | Adding Activity Action entry |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unneeded import |
<nb> public class FileSinkOperator extends TerminalOperator < FileSinkDesc > implements
SINGLE
throw new HiveFatalException (
ErrorMsg . DYNAMIC_PARTITIONS_TOO_MANY_PER_NODE_ERROR . getErrorCodedMsg ( )
- + STRING0 + maxPartitions ) ;
+ + STRING1 + maxPartitions + STRING2
+ + STRING3 + valToPaths . size ( )... | Add number of dynamic partitions to error message Lars Francke reviewed by Prasanth Jayachandran |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Add Apache header license to TestCustomPartitionVertex Sergio Pena reviewed by Aihua Xu |
<nb> public class ChunkOutputStream extends FlowPanel
getElement ( ) . getStyle ( ) . setProperty ( STRING0 , STRING1 ) ;
getElement ( ) . getStyle ( ) . setProperty ( STRING0 , STRING2 ) ;
getElement ( ) . getStyle ( ) . setProperty ( STRING0 , STRING3 ) ;
+
+ getElement ( ) . getStyle ( ) . setProperty ( ST... | allow console to take vertical space in satellite chunks |
<nb> public class PsiManagerImpl extends PsiManagerEx {
else if ( element instanceof PsiFileSystemItem ) {
virtualFile = ( ( PsiFileSystemItem ) element ) . getVirtualFile ( ) ;
}
- if ( virtualFile instanceof LightVirtualFile ) return true ;
+ if ( file != null && file . isPhysical ( ) && virtualFile instanc... | put isPhysical check back |
<nb> class DragState {
mSurfaceControl = surface ;
mFlags = flags ;
mLocalWin = localWin ;
- mUid = Binder . getCallingUid ( ) ;
mNotifiedWindows = new ArrayList < WindowState > ( ) ;
}
<nb> public class WindowManagerService extends IWindowManager . Stub
+ STRING0 + window . asBinder ( ) ) ;
}
-... | Fix drag and drop URI permission grants |
<nb> public abstract class AbstractParserGenerator {
final int noStates = stateCounter . get ( ) ;
- final ClassMethod handle = file . addMethod ( Modifier . PROTECTED , methodName , STRING0 , DescriptorUtils . makeDescriptor ( ByteBuffer . class ) , parseStateDescriptor , httpExchangeDescriptor ) ;
+ final C... | Make methods final |
<nb> public class ObjectIdentityImpl implements ObjectIdentity {
public String toString ( ) {
StringBuffer sb = new StringBuffer ( ) ;
sb . append ( this . getClass ( ) . getName ( ) ) . append ( STRING0 ) ;
- sb . append ( STRING1 ) . append ( this . javaType ) ;
+ sb . append ( STRING1 ) . append ( this . j... | Improve toString method to use Class getName |
<nb> public class Message {
@ notempty ( message = STRING0 )
private String summary ;
- @ version
private Calendar created = Calendar . getInstance ( ) ;
@ onetoone
<nb> public class Message {
@ notempty ( message = STRING0 )
private String summary ;
- @ version
private Calendar created = Cale... | Remove Version from created since it should not be updated |
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {
}
private void buildAreas ( ) {
+ final int MAX_AREA_NODES = NUMBER0 ;
+ _log . debug ( STRING0 ) ;
for ( OSMWay areaWay : _areas . values ( ) ) {
+ if ( areaWay . getNodeRefs ( ) . size ( ) > MAX_AREA_NODES ) {
+ _log . debug ( S... | do not make area graphs for ways with too many nodes |
<nb> public class AddOnLoader extends URLClassLoader {
try {
SINGLE
- return getJarClassNames ( null , new File ( new URI ( jarFile ) ) , packageName ) ;
+ return getJarClassNames ( this . getClass ( ) . getClassLoader ( ) , new File ( new URI ( jarFile ) ) , packageName ) ;
} catch ( URISyntaxException e )... | Fixed NullPointerExceptions that occurred when loading filters class Filter from the zap jar |
<nb> public class ModelMetricsMultinomialV3 extends ModelMetricsBase < ModelMetricsMult
return new ModelMetricsMultinomial ( this . model . createImpl ( ) . get ( ) , this . frame . createImpl ( ) . get ( ) ) ;
}
+ @ override public ModelMetricsMultinomialV3 fillFromImpl ( ModelMetricsMultinomial modelMetrics )... | Add Missing fillFromImpl for ModelMetricsMultinomialV3 |
<nb> public class NotificationPanelView extends PanelView implements
if ( mStatusBar . getBarState ( ) == StatusBarState . KEYGUARD
|| mStatusBar . getBarState ( ) == StatusBarState . SHADE_LOCKED ) {
mAfforanceHelper . animateHideLeftRightIcon ( ) ;
- }
- if ( mQsExpanded ) {
+ } else if ( mQsExpanded ) { ... | Fixed a bug where the QS could get stuck |
<nb> import NAMESPACE ;
COMMENT
public class SubsamplingLayerTest {
- private int nExamples ;
+ private int nExamples = NUMBER0 ;
private int depth = NUMBER1 ; SINGLE
private int nChannelsIn = NUMBER0 ;
private int inputWidth = NUMBER2 ; | Fixed numExamples valin subsampling |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClickItemTouchListener implements OnItemTouchListener {
mTargetChild , position , id ) ;
if ( handled ) {
+ mHostView . performHapticFeedb... | core Perform haptic feedback on long press |
<nb> class SuggestionsAdapter extends ResourceCursorAdapter {
newBg . addState ( new int [ ] { android . R . attr . state_selected } , transparent ) ;
newBg . addState ( new int [ ] { android . R . attr . state_pressed } , transparent ) ;
newBg . addState ( new int [ ] { } , background ) ;
- SINGLE
- SINGLE
... | Remove background padding workaround from SuggestionsAdapter |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class NetworkBufferPool implements BufferPoolFactory {
int allocatedMb = ( ( availableMemorySegments . size ( ) ) * segmentSize ) > > NUMBER0 ;
int missingMb = requiredM... | Remove unused imports from RichMapPartitionFunction |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT... | Shared Timer for session management |
<nb> public class DeepLearningModel extends Model < DeepLearningModel , DeepLearningParam
pred = ( pred / di . _normRespMul [ NUMBER0 ] + di . _normRespSub [ NUMBER0 ] ) ;
actual = ( actual / di . _normRespMul [ NUMBER0 ] + di . _normRespSub [ NUMBER0 ] ) ;
}
- pred = new Distribution ( model_info . get_params ... | Cosmetics still needs more work |
<nb> public class MpdBinding extends AbstractEventSubscriberBinding < MpdBindingProvide
}
}
catch ( MPDPlayerException pe ) {
- logger . error ( STRING0 , pCommand , pe . getMessage ( ) ) ;
+ logger . error ( STRING1 + pe . getMessage ( ) , pCommand ) ;
}
catch ( Exception e ) {
logger . warn ( STRING2 ... | fixed logging statement |
<nb> public class TranslationCheckTest
IOException . class ,
File . class ) ;
logIOException . setAccessible ( true ) ;
- logIOException . invoke ( check , new IOException ( ) , new File ( STRING0 ) ) ;
+ logIOException . invoke ( check , new IOException ( STRING1 ) , new File ( STRING0 ) ) ;
}
} | Add argument to exception constructor call |
<nb> public class InvokerHelper {
return ( String ) arguments ;
}
}
+ SINGLE
+ SINGLE
return arguments . toString ( ) ;
} | just add a comment at a possible fix location |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ ignore ( STRING0 )
public class TestBigBatchStore implements RelationshipType
{
priv... | Ignores it by default |
<nb> public class SessionManager extends BasicModule {
COMMENT
COMMENT
public void changePriority ( JID sender , int priority ) {
+ if ( sender . getNode ( ) == null ) {
+ SINGLE
+ return ;
+ }
String username = sender . getNode ( ) . toLowerCase ( ) ;
synchronized ( username . intern ( ) ) {
Sessio... | Fix bug when changing priority to an anonymous session |
<nb> public class BuckConfigTest {
@ test
public void whenRelativeProguardJarOverrideUsed ( ) throws IOException {
String proguardJarName = STRING0 ;
+ temporaryFolder . newFile ( proguardJarName ) ;
Reader reader = new StringReader ( Joiner . on ( STRING1 ) . join (
STRING2 ,
STRING3 + proguardJarName ) ... | Fix build again |
<nb> public abstract class AbstractGraphStage extends Stage
protected double normaliseX ( double value )
{
- System . out . println ( STRING0 + value + STRING1 + minXQ + STRING2 + maxXQ ) ;
-
return normalise ( value , minXQ , maxXQ , chartWidth , false ) ;
}
<nb> public class TimeLineStage extends Ab... | Removed leftover debugging System out calls |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.