diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class InvoiceResource extends JaxRsResourceBase {
@ produces ( TEXT_HTML )
@ apioperation ( value = STRING0 , response = String . class , hidden = true )
@ apiresponses ( value = { @ apiresponse ( code = NUMBER0 , message = STRING1 ) } )
- public Response getInvoiceTemplate ( @ pathparam ( STRING2 )... | Remove unused parameter in InvoiceResource |
<nb> public class VolatileContactJabberImpl
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
VolatileContactJabberImpl ( String id ,
ServerStoredContactListJabberImpl ssclCallback ,
<nb> public class VolatileContactJabberImpl
if ( this . isPrivateMessagingContact )
{
- displayName = StringUtils . parse... | Fixes volatile jabber contact display name |
<nb> public class MiniDrawer {
if ( type == ITEM ) {
SINGLE
if ( item . isSelectable ( ) ) {
+ SINGLE
+ if ( mAccountHeader != null && mAccountHeader . isSelectionListShown ( ) ) {
+ mAccountHeader . toggleSelectionList ( v . getContext ( ) ) ;
+ }
+ SINGLE
mDrawer . setSelection ( item , true ) ;
}... | fix MiniDrawer was selecting a profile when the profile list selection was shown |
<nb> public class ODatabaseRaw extends OListenerManger < ODatabaseListener > implements
case CONFLICTSTRATEGY :
storage . getConfiguration ( ) . setConflictStrategy ( stringValue ) ;
storage . getConfiguration ( ) . update ( ) ;
+ break ;
default:
throw new IllegalArgumentException ( STRING0 + iAttribute ... | fixed bug on ALTER DATABASE command |
<nb> public class GlobalInspectionContextImpl implements GlobalInspectionContext {
catch ( ProcessCanceledException e ) {
throw e ;
}
- catch ( Throwable e ) {
+ catch ( Exception e ) {
LOG . error ( e ) ;
}
}
<nb> public class InspectionApplication {
LOG . error ( e ) ;
InspectionMain . printHelp... | do not catch out of memory exception |
<nb> public class CompactorMR {
job . setBoolean ( IS_MAJOR , isMajor ) ;
job . setBoolean ( IS_COMPRESSED , sd . isCompressed ( ) ) ;
job . set ( TABLE_PROPS , new StringableMap ( t . getParameters ( ) ) . toString ( ) ) ;
- job . setInt ( NUM_BUCKETS , sd . getBucketColsSize ( ) ) ;
+ job . setInt ( NUM_BUC... | Hive CompactorMR job set NUM_BUCKETS mistake Xiaoyu Wang via Ashutosh Chauhan |
<nb> public class GraphConnectivity extends GraphBuilderAnnotation {
@ override
public String getHTMLMessage ( ) {
- try {
- String osmNodeId = vertex . getLabel ( ) . split ( STRING0 ) [ NUMBER0 ] ;
+ String label = vertex . getLabel ( ) ;
+ if ( label . startsWith ( STRING1 ) ) {
+ String osmNodeId = ... | Replaced exception with startswith in GraphConnectivity |
<nb> abstract class HL7MLLPConfigAwareChannelHandlerFactory extends DefaultChannelHan
public HL7MLLPConfigAwareChannelHandlerFactory ( HL7MLLPConfig config ) {
this . config = config ;
}
+
+ public void setValidate ( boolean validate ) {
+ config . setValidate ( validate ) ;
+ }
public void setCharset... | Added validate setting to netty codec |
<nb> public class SolrComponentTestSupport extends SolrTestSupport {
@ afterclass
public static void afterClass ( ) throws Exception {
- solrRunner . stop ( ) ;
+ if ( solrRunner != null ) {
+ solrRunner . stop ( ) ;
+ }
}
@ override
<nb> public class SolrComponentTestSupport extends SolrTestSuppo... | Avoid potential NPE from testing |
<nb> public interface OtrConstants {
public static final String QueryMessage_V12 = STRING0 ;
public static final String QueryMessage_V14x = STRING1 ;
public static final String QueryMessage_V124x = STRING2 ;
- public static final String CommonRequest = STRING3 ;
+ public static final String CommonRequest = ST... | updating OTR request string |
<nb> public class DrawerLayout extends ViewGroup {
@ override
public int getViewHorizontalDragRange ( View child ) {
- return child . getWidth ( ) ;
+ return isDrawerView ( child ) ? child . getWidth ( ) : NUMBER0 ;
}
@ override | Fix DrawerLayout to ignore non drawers in drag operations |
<nb> public class ColorPicker extends View {
invalidate ( ) ;
break ;
}
+ getParent ( ) . requestDisallowInterceptTouchEvent ( true ) ;
return true ;
} | Fixed onTouch in ScrollView or ViewPager |
<nb> public class ReaderPostDetailFragment extends Fragment
SINGLE
mListView . setVisibility ( View . INVISIBLE ) ;
mWebView . setVisibility ( View . INVISIBLE ) ;
+ mLayoutIcons . setVisibility ( View . INVISIBLE ) ;
SINGLE
mWebView . setOnTouchListener ( new View . OnTouchListener ( ) {
<nb> public cl... | Fixed bug that caused action icons like etc to appear for external blogs feeds |
<nb> public class MediaPlayerStressTest extends ActivityInstrumentationTestCase2 < Medi
private static final int NUMBER_OF_RANDOM_REPOSITION_AND_PLAY = NUMBER0 ;
private static final int NUMBER_OF_RANDOM_REPOSITION_AND_PLAY_SHORT = NUMBER1 ;
- private static final int NUMBER_OF_STRESS_LOOPS = NUMBER2 ;
+ priv... | Fixed the long recorder time and reduce the number of loops |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class EncodedImage implements Closeable {
&& encodedImage . mWidth >= NUMBER0
&& encodedImage . mHeight >= NUMBER0 ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ C... | Added closeSafely method to EncodedImage |
<nb> import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public abstract class UnderFileSystemCluster { | Applying IntelliJ s Optimize imports to the minicluster module |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed copyright per build |
<nb> public abstract class LzoProtobufB64LinePigStorage < M extends Message > extends Lz
public void putNext ( Tuple f ) throws IOException {
if ( f == null ) return ;
Builder builder = Protobufs . getMessageBuilder ( typeRef_ . getRawClass ( ) ) ;
- for ( int i = NUMBER0 ; i < f . size ( ) ; i ++ ) {
- build... | Make generated PigStorage deal gracefully with nulls extra fields |
<nb> public class LanguagesTest {
assertEquals ( STRING0 , Languages . getLanguageForLocale ( new Locale ( STRING1 , STRING2 ) ) . getShortNameWithCountryAndVariant ( ) ) ;
assertEquals ( STRING3 , Languages . getLanguageForLocale ( new Locale ( STRING1 , STRING4 ) ) . getShortNameWithCountryAndVariant ( ) ) ;
SI... | en set default language variant to en GB |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class TaskEditActivity extends TabActivity {
shouldSaveState = false ;
SINGLE
- if ( title . getText ( ) . length ( ) =... | Fixed a small bug with cancelling quickadded tasks |
<nb> public class Timer {
public void resume ( ) {
long delayMillis = System . nanoTime ( ) / NUMBER0 - pauseMillis ;
synchronized ( instances ) {
- for ( int i = NUMBER1 , n = instances . size ; i < n ; i ++ )
+ for ( int i = NUMBER1 , n = instances . size ; i < n ; i ++ ) {
instances . get ( i ) . delay (... | Restore Timer thread on resume |
<nb> public class CallDialog
holdButton . setEnabled ( false ) ;
muteButton . setEnabled ( false ) ;
recordButton . setEnabled ( false ) ;
+ volumeControlButton . setEnabled ( false ) ;
settingsPanel . add ( dialButton ) ;
settingsPanel . add ( conferenceButton ) ;
<nb> public class CallDialog
holdBut... | Disables the volume control before the call is established |
<nb> public class CommitLogStressTest
@ test
public void testRandomSize ( ) throws Exception
{
- randomSize = false ;
+ randomSize = true ;
discardedRun = false ;
testAllLogConfigs ( ) ;
} | Ninja fix CommitLogStressTest testRandomSize |
<nb> public class PatternRule extends AbstractPatternRule {
COMMENT
COMMENT
COMMENT
- public final boolean isWithComplexPhrase ( ) {
+ final boolean isWithComplexPhrase ( ) {
return isMemberOfDisjunctiveSet ;
} | make method that s only used for testing non public |
<nb> public class Span implements Serializable , Iterable < Integer > {
}
return false ;
}
-
- COMMENT
- COMMENT
- COMMENT
- public static int distance ( Span a , Span b ) {
- if ( a . isBefore ( b ) ) {
- return b . start - a . end ;
- } else if ( b . isBefore ( a ) ) {
- return a . start - b .... | Implemented table factor with various merge algorithsm |
<nb> public class SequenceVectors < T extends SequenceElement > extends WordVectorsImpl <
protected transient WordVectors existingModel ;
protected transient T unknownElement ;
+ public interface EpochListener {
+ void epochCompleted ( int epoch , WordVectors wordVectors ) ;
+ }
-
+ @ setter protected... | Added epoch listener to SequenceVectors |
<nb> public class InfinispanBackingCacheEntryStoreSource < K extends Serializable , V ex
private boolean passivateEventsOnReplicate = DEFAULT_PASSIVATE_EVENTS_ON_REPLICATE ;
private final MarshallerFactory factory = Marshalling . getMarshallerFactory ( STRING0 , MarshallerFactory . class . getClassLoader ( ) ) ; ... | Add backoff intervals to the retry cache invoker |
<nb> public abstract class FunctionReference
this . arity = arity ;
}
+ @ deprecated SINGLE
+ public FunctionReference ( ) {
+ this . arity = NUMBER0 ;
+ }
+
@ override
public int getArity ( ) {
return arity ; | Fix NoSuchMethodError on FunctionReference init |
<nb> public class MoviesCursorAdapter extends CursorAdapter {
@ override
public View newView ( Context context , Cursor cursor , ViewGroup parent ) {
- View v = mLayoutInflater . inflate ( LAYOUT , parent , false ) ;
+ View v = mLayoutInflater . inflate ( LAYOUT , null ) ;
ViewHolder viewHolder = new View... | Don t use parent LayoutParams in watchlist |
<nb> public class LocalChunkProvider implements GeneratingChunkProvider {
} ) ;
PerformanceMonitor . endActivity ( ) ;
- if ( ! readyChunkInfo . isNewChunk ( ) ) {
+ if ( readyChunkInfo . isNewChunk ( ) ) {
worldEntity . send ( new OnChunkGenerated ( readyChunkInfo . getPos ( ) ) ) ;
}
worldEntity . sen... | Send OnChunkGenerated when a new chunk gets generated |
<nb> public class ActionMenuItem extends JCheckBoxMenuItem {
actionManager . fireBeforeActionPerformed ( action , myContext , event ) ;
Component component = PlatformDataKeys . CONTEXT_COMPONENT . getData ( event . getDataContext ( ) ) ;
if ( component != null && ! isInTree ( component ) ) {
+ typeahead . setDo... | nika typeahead request blocked exception fix |
<nb> public class RoutingFieldMapper extends AbstractFieldMapper < String > implements I
if ( value == null ) {
value = context . ignoredValue ( path ) ;
}
- if ( value == null ) {
- SINGLE
- }
if ( ! routing . equals ( value ) ) {
throw new MapperParsingException ( STRING0 + routing + STRING1 + value +... | remove unnecessary check |
<nb> public class JournalReader {
COMMENT
private long mCheckpointOpenedTime = - NUMBER0 ;
COMMENT
- private long mLatestCheckpointModifiedTime = - NUMBER0 ;
+ private long mCheckpointLastModifiedTime = - NUMBER0 ;
COMMENT
private int mCurrentLogNumber = Journal . FIRST_COMPLETED_LOG_NUMBER ;
<nb> pub... | rename a variable name for consistency |
<nb> public class DeepLinkProcessor extends AbstractProcessor {
}
private void generateDeepLinkDelegate ( ) throws IOException {
-
MethodSpec notifyListenerMethod = MethodSpec . methodBuilder ( STRING0 )
. addModifiers ( Modifier . PRIVATE , Modifier . STATIC )
. returns ( void . class )
<nb> public cla... | Finish DeepLinkActivity after dispatching intent |
<nb> public class ProgressDownload extends View {
private float calculatedeltaY ( ) {
int wireTension = NUMBER0 ;
if ( mProgress <= NUMBER1 ) {
- return ( mProgress * mWidth / wireTension ) / NUMBER1 + Math . abs ( ( mTarget - getProgress ( ) ) / wireTension ) ;
+ return ( mProgress * mWidth / wireTension ) /... | apply some force proportional to the rotation angle |
<nb> public abstract class AbstractTestQueries
}
@ test
- public void testDereferenceInComparsion ( )
+ public void testDereferenceInComparison ( )
throws Exception
{
assertQuery ( STRING0 + | Fix typo in AbstractTestQueries |
<nb> class DatabaseMappingAttribute implements DatabaseMappingObject {
{
mappingType = DatabaseMappingType . unspecified ;
if ( parent . getTarget ( ) instanceof DBSEntity ) {
- String targetAttrName = DBObjectNameCaseTransformer . transformName ( parent . getTarget ( ) . getDataSource ( ) , source . getName ( ... | Data transfer fix |
<nb> public class PyCallExpressionHelper {
PyType qtype = context . getType ( qualifier ) ;
if ( qtype instanceof PyClassType ) {
if ( ( ( PyClassType ) qtype ) . isDefinition ( ) ) {
- PyClass resolvedParent = PsiTreeUtil . getParentOfType ( resolved , PyClass . class ) ;
+ PyClass resolvedParent = PsiTreeUt... | avoiding stub to AST switch safe |
<nb> import NAMESPACE ;
public class CondensedTextView extends TextView {
- Typeface sCustomTypeface = null ;
+ static Typeface sCustomTypeface = null ;
public CondensedTextView ( Context context ) {
this ( context , null ) ; | Remove extra asset allocations |
<nb> public class MetadataStore implements StorageEngine < ByteArray , byte [ ] > {
private static final Logger logger = Logger . getLogger ( MetadataStore . class ) ;
- @ suppresswarnings ( STRING0 )
public MetadataStore ( Store < String , String > innerStore , int nodeId ) {
this . innerStore = innerStore... | Remove a couple of unnecessary SuppressWarnings unchecked |
<nb> public class Session extends FileXML {
Control . getSingleton ( ) . setExcludeFromProxyUrls ( fullList ) ;
SINGLE
- log . warn ( STRING0 ) ;
+ COMMENT
log . warn ( ignoredRegexs . toString ( ) ) ;
log . warn ( excludeFromProxyRegexs . toString ( ) ) ;
log . warn ( globalExcludeURLRegexs . toString ... | Removed some unnecessary logging printing |
<nb> public class UniversalEnglishGrammaticalRelations {
COMMENT
COMMENT
COMMENT
- private static void threadSafeAddRelation ( GrammaticalRelation relation ) {
+ public static void threadSafeAddRelation ( GrammaticalRelation relation ) {
valuesLock . writeLock ( ) . lock ( ) ;
try { SINGLE
synchronizedV... | make method public |
<nb> public class MetricsLogger implements MetricsConstants {
public static final int ACTION_WIFI_OFF = NUMBER0 ;
public static final int ACTION_WIFI_ON = NUMBER1 ;
+ public static final int MANAGE_PERMISSIONS = NUMBER2 ;
+
public static void visible ( Context context , int category ) throws IllegalArgument... | Add constant for manage permissions screen |
<nb> public final class Help
return STRING0 +
STRING1 +
STRING2 +
- STRING3 +
+ STRING4 +
+ STRING5 +
+ STRING6 +
STRING7 +
STRING8 +
STRING9 + | Fix explain help text |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class MoreTypes {
} ;
private static boolean equal ( TypeMirror a , TypeMirror b , Set < ComparedElements > visiting ) {
+ SINGLE
+ SINGLE
... | Add an optimization to MoreTypes equal that also avoids an infinite recursion in our friend Eclipse |
<nb> public class DownloadManager {
if ( destinationType == Downloads . Impl . DESTINATION_EXTERNAL ) {
SINGLE
- return Uri . fromFile ( new File ( getUnderlyingString ( Downloads . Impl . _DATA ) ) ) . toString ( ) ;
+ String localPath = getUnderlyingString ( Downloads . Impl . _DATA ) ;
+ if ( localPath =... | Avoid NPE when viewing failed legacy download with no local path |
<nb> public class NetworkManagementService extends INetworkManagementService . Stub
SINGLE
final HashSet < String > knownLines = Sets . newHashSet ( ) ;
SINGLE
- int lastIdx = NUMBER0 ;
+ int lastIdx ;
final ArrayList < String > keys = Lists . newArrayList ( ) ;
final ArrayList < String > values = Lists... | adjust the qtaguid idx to new kernel |
<nb> public class AppLog {
ArrayList < String > items = new ArrayList < String > ( ) ;
SINGLE
- items . add ( STRING0 + ProfilingUtils . getVersionName ( context ) + STRING1 ) ;
+ items . add ( STRING0 + PackageUtils . getVersionName ( context ) + STRING1 ) ;
items . add ( STRING2 + DeviceUtils . getInstanc... | remove ProfilingUtils getVersionName calls |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
<nb> public class InstrumentedTimingCollector implements TimingCollector {
private final TimeUnit durationUnit ;
private final Tim... | Added a no args constructors for InstrumentedTimingCollector |
<nb> public interface Exchange {
String FAILURE_ENDPOINT = STRING0 ;
String FAILURE_ROUTE_ID = STRING1 ;
String FILTER_NON_XML_CHARS = STRING2 ;
- String FILE_CONTENT_TYPE = STRING3 ;
+ String FILE_CONTENT_TYPE = STRING3 ;
String FILE_LOCAL_WORK_PATH = STRING4 ;
String FILE_NAME = STRING5 ;
String FILE_... | Removed system out println |
<nb> import NAMESPACE ;
COMMENT
public class BlockCanBuildEvent extends BlockEvent {
protected boolean buildable ;
- protected Material material ;
+ protected int material ;
- public BlockCanBuildEvent ( Type type , Block block , Material mat , boolean canBuild ) {
+ public BlockCanBuildEvent ( Type typ... | Changed BlockCanBuildEvent to store the int and not the material |
<nb> public class VolumeTest {
}
} ;
- @ test ( timeout = NUMBER0 )
+ @ test ( timeout = NUMBER1 )
public void interrupt_raf_file_exception ( ) throws IOException , InterruptedException {
SINGLE
final Volume . FileChannelVol v = new Volume . FileChannelVol ( File . createTempFile ( STRING0 , STRING0 ) ,... | prevent race condition |
<nb> public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen
COMMENT
COMMENT
COMMENT
- protected boolean shouldRenderAsCluster ( Cluster cluster ) {
+ protected boolean shouldRenderAsCluster ( Cluster < T > cluster ) {
return cluster . getSize ( ) > MIN_CLUSTER_SIZE ;
} | Added parameter to generic Cluster |
<nb> public class OsmandApplication extends Application implements ClientContext {
SINGLE
osmandSettings = createOsmandSettingsInstance ( ) ;
SINGLE
- osmandSettings . APPLICATION_MODE . set ( osmandSettings . DEFAULT_APPLICATION_MODE . get ( ) ) ;
+ if ( ! osmandSettings . FOLLOW_THE_ROUTE . get ( ) ) {
+ ... | Fix compass issue introduce another setting |
<nb> public class CompileDriver {
compiler . generate ( context , items . toArray ( new GeneratingCompiler . GenerationItem [ items . size ( ) ] ) , outputDir ) ;
context . getProgressIndicator ( ) . setText ( STRING0 ) ;
for ( int idx = NUMBER0 ; idx < successfullyGenerated . length ; idx ++ ) {
- GeneratingCo... | refresh absolute output path not relative one |
<nb> public class DateTimeFormat {
public DateTimeField getField ( Chronology chrono ) {
DateTimeField wrappedField = iWrappedType . getField ( chrono ) ;
RemainderDateTimeField field = iRecent ;
- if ( field . getWrappedField ( ) == wrappedField ) {
+ if ( field != null && field . getWrappedField ( ) == wrap... | Fix NullPointerException bug |
<nb> public class AceEditor implements DocDisplay , InputEditorDisplay
public void setCode ( String code , boolean preserveCursorPosition )
{
+ SINGLE
+ SINGLE
+ SINGLE
+ code = code . replaceAll ( STRING0 , STRING1 ) ;
+
final AceEditorNative ed = widget_ . getEditor ( ) ;
if ( preserveCursorPosi... | Fix existing documents that are borked by escape characters |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Unifier {
if ( ! allFeatsI... | organize imports simplify code |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Make checkstyle happy |
<nb> public abstract class ZWaveCommandClass {
COMMENT
protected int extractValue ( byte [ ] buffer , int offset , int size ) {
int value = NUMBER0 ;
- int i ;
- for ( i = NUMBER0 ; i < size ; ++ i ) {
+ for ( int i = NUMBER0 ; i < size ; ++ i ) {
value < <= NUMBER1 ;
- value |= buffer [ offset + i + NU... | Fix bug in extractValue |
<nb> public class MapperMethod {
if ( args == null || paramCount == NUMBER0 ) {
return null ;
} else if ( ! hasNamedParameters && paramCount == NUMBER1 ) {
- return args [ NUMBER0 ] ;
+ return args [ params . keySet ( ) . iterator ( ) . next ( ) . intValue ( ) ] ;
} else {
final Map < String , Object > pa... | Revert change failing tests no further research |
<nb> public final class AssemblyUtil
StringBuilder headerBuilder = new StringBuilder ( ) ;
AssemblyBlock currentBlock = new AssemblyBlock ( ) ;
+ currentBlock . setTitle ( NATIVE_CODE_ENTRY_POINT ) ;
AssemblyInstruction lastInstruction = null ;
<nb> public class TestAssemblyUtil
assertEquals ( NUMBER0... | Added missing Entry Point marker to first assembly block |
<nb> public class ConversationFragment extends Fragment {
protected void showSnackbar ( int message , int action ,
OnClickListener clickListener ) {
snackbar . setVisibility ( View . VISIBLE ) ;
+ snackbar . setOnClickListener ( null ) ;
snackbarMessage . setText ( message ) ;
+ snackbarMessage . setOnClick... | fixed weird snackbar click issues |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CronTriggerTests {
assertEquals ( calendar . getTime ( ) , date = trigger . nextExecutionTime ( context2 ) ) ;
}
- @ test ( expected = IllegalStateException . class )
+ @ test ( expected = IllegalArgumentException . class... | Scheduled provides String variants of fixedDelay fixedRate initialDelay for placeholder support |
<nb> public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOME
@ notnull
public FileType getFileTypeByFile ( VirtualFile file ) {
+ if ( file . isDirectory ( ) ) return StdFileTypes . UNKNOWN ;
+
SINGLE
for ( FakeFileType fileType : mySpecialFileTypes ) {
if ( fileType . isMyFileT... | Do not identify directories as belonging to some file type no matter what pattern their names match |
<nb> class QuickSettingsModel implements BluetoothStateChangeCallback ,
refreshBrightnessTile ( ) ;
refreshRotationLockTile ( ) ;
refreshRssiTile ( ) ;
+ refreshLocationTile ( ) ;
}
SINGLE
<nb> class QuickSettingsModel implements BluetoothStateChangeCallback ,
mLocationCallback . refreshView ( mLocati... | Refresh quicksettings location tile text when language changes |
<nb> public abstract class SharedTreeModel < M extends SharedTreeModel < M , P , O > , P extend
}
SINGLE
+ @ override protected boolean toJavaCheckTooBig ( ) {
+ SINGLE
+ try {
+ if ( ( this . _output . _treeStats . _num_trees * this . _output . _treeStats . _mean_leaves ) > NUMBER0 ) {
+ return true ; ... | Added a preview flag to GET Model so the browser can tell the backend when |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VideoLoader extends SimpleLoader {
} finally {
try {
retriever . release ( ) ;
- } catch ( RuntimeException ignored ) {... | catch all exceptions on video loader release |
<nb> public class ExtendedDateFormat extends SimpleDateFormat {
{
Date date = super . parse ( text , pos ) ;
int index = pos . getIndex ( ) ;
- if ( index == nanoStart ) {
+ if ( index < text . length ( ) && nanoStart > NUMBER0 ) {
long nanos = NUMBER0 ;
for ( int i = NUMBER0 ; i < nanoLength ; i ++ ) {
... | Nanos parse fix |
<nb> public class UserManager {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static final String KEY_RESTRICTIONS_PENDING = STRING0 ; | Fix javadoc for UserManager KEY_RESTRICTIONS_PENDING |
<nb> public class ShadowWranglerTest {
@ override
public int hashCode ( ) {
- System . out . println ( STRING0 ) ;
return NUMBER0 ;
} | removed spurious System out println |
<nb> public class LogFactory {
this . defaultLoggingLevel = defaultLoggingLevel ;
}
+ public void setDefaultLoggingLevel ( LogLevel defaultLoggingLevel ) {
+ this . defaultLoggingLevel = defaultLoggingLevel . name ( ) ;
+ }
+
COMMENT
COMMENT
COMMENT
<nb> public class LiquibaseTest {
Liquibase li... | Fixed failing test |
<nb> public class CompilerConfiguration {
COMMENT
COMMENT
public void setOutput ( PrintWriter output ) {
- if ( this . output == null ) {
+ if ( output == null ) {
this . output = new PrintWriter ( NullWriter . DEFAULT ) ;
}
else { | remove unwanted this in Compilerconfiguration for input parameter check |
<nb> public final class ShardStateMetaData {
return STRING0 + legacyVersion + STRING1 + primary + STRING2 + allocationId + STRING3 ;
}
- public static final MetaDataStateFormat < ShardStateMetaData > FORMAT = new MetaDataStateFormat < ShardStateMetaData > ( XContentType . JSON , SHARD_STATE_FILE_PREFIX ) {
+ ... | change shard state format to smile |
<nb> public class IndexTask extends AbstractFixedIntervalTask
: toolbox . getConfig ( ) . getDefaultRowFlushBoundary ( ) ;
try {
+ plumber . startJob ( ) ;
+
while ( firehose . hasMore ( ) ) {
final InputRow inputRow = firehose . nextRow ( ) ; | Call plumber startJob |
<nb> final class Manager extends Handler {
COMMENT
public static void announceForAccessibilityCompat ( Context context , CharSequence text ) {
if ( Build . VERSION . SDK_INT >= NUMBER0 ) {
- AccessibilityManager accessibilityManager = ( AccessibilityManager ) context . getSystemService (
- Context . ACCESSIBI... | Fix occasional null pointer when accessing the context |
<nb> class DetectAndAdjustIndentOptionsTask extends ReadTask {
public void scheduleInBackgroundForCommittedDocument ( ) {
if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
- computeInReadAction ( new DumbProgressIndicator ( ) ) ;
+ Continuation continuation = performInReadAction ( new Dumb... | Execute continuation in tests |
<nb> public class LocalizedMessages
COMMENT
private final ArrayList mMessages = new ArrayList ( ) ;
- COMMENT
- COMMENT
- COMMENT
- public LocalizedMessages ( )
- {
- }
-
COMMENT
public LocalizedMessage [ ] getMessages ( )
{ | Removed unneeded constructor |
<nb> public class O2QCache implements OReadCache {
try {
pageLock = pageLockManager . acquireExclusiveLock ( new PageKey ( removedEntry . fileId , removedEntry . pageIndex ) ) ;
try {
- if ( a1out . get ( removedEntry . fileId , removedEntry . pageIndex ) == null )
+ if ( a1out . remove ( removedEntry . fileI... | Avoided unnecessary double lookup |
<nb> import NAMESPACE ;
public class DefaultExecutionEnvironment implements ExecutionEnvironment {
private static final long MEGABYTE = NUMBER0 * NUMBER0 ;
- private Platform platform ;
+ private final Platform platform ;
public DefaultExecutionEnvironment ( ) {
platform = Platform . detect ( ) ; | Make Platform final |
<nb> public class StringUtil
public static String toRSymbolName ( String name )
{
if ( ! name . matches ( STRING0 )
- || name . matches ( STRING1 )
|| isRKeyword ( name ) )
{
return STRING2 + name + STRING2 ; | Remove seemingly wrong regex |
<nb> public final class ContactsContract {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class ContactsContract {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix docs error |
<nb> public class Socks5Proxy {
COMMENT
COMMENT
public static void setLocalSocks5ProxyPort ( int localSocks5ProxyPort ) {
+ if ( Math . abs ( localSocks5ProxyPort ) > NUMBER0 ) {
+ throw new IllegalArgumentException ( STRING0 ) ;
+ }
Socks5Proxy . localSocks5ProxyPort = localSocks5ProxyPort ;
} | Throw IAE if invalid port number is given for Socks5Proxy |
<nb> final class PolymerPass extends AbstractPostOrderCallback implements HotSwapComp
String typeString = STRING0 ;
if ( property . value . isObjectLit ( ) ) {
Node typeValue = NodeUtil . getFirstPropMatchingKey ( property . value , STRING1 ) ;
- if ( typeValue == null ) {
+ if ( typeValue == null || ! typeVa... | foo Bar throw an understandable error instead of crashing |
<nb> public class Constants {
SINGLE
public static final String EXECUTOR_CORE_SIZE_INIT_PARAM =
STRING0 ;
- public static final String EXECUTOR_MAX_SIZE_INIT_PARAM =
- STRING1 ;
public static final String EXECUTOR_KEEPALIVETIME_SECONDS_INIT_PARAM =
STRING2 ; | Remove unused constant |
<nb> public class NioClient implements MessageWriteTarget {
private final StreamParser upstreamParser ;
private MessageWriteTarget writeTarget ;
private boolean closeOnOpen = false ;
+ private boolean closeCalled = false ;
Handler ( StreamParser upstreamParser , int connectTimeoutMillis ) {
this . upstreamP... | Fix memory leak on timeout in NioClient |
<nb> public class TWStaggeredGridLayoutManager extends TWGridLayoutManager {
protected void moveLayoutToPosition ( int position , int offset , Recycler recycler , State state ) {
final TWLanes lanes = getLanes ( ) ;
final int firstVisiblePosition = getFirstVisiblePosition ( ) ;
- final int childCount = getChild... | library Remove unused variable in TWStaggeredGridLayoutManager |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
COMMENT
COMMENT
- public boolean shouldShowRequestPermissionRationale ( String permission ) {
+ public boolean shouldShowRequestPermissionRationale ( @ nonnull String permission ) {
return getPackageManager ( ) . shouldShowRequestPermissionRatio... | Add annotations to a new API |
<nb> public class ZygoteInit {
private static final String PRELOADED_CLASSES = STRING0 ;
COMMENT
- private static final boolean PRELOAD_RESOURCES = true ;
+ public static final boolean PRELOAD_RESOURCES = true ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import... | Disable AssetAtlasService when PRELOAD_RESOURCES is turned off |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DispatcherWacRootWacEarTests extends RootWacEarTests {
private String dispatcher ;
+ @ ignore ( STRING0 )
@ test
@ override
public void verifyEarConfi... | Ignore empty test methods in RootWacEarTests hierarchy |
<nb> public abstract class AbstractThreadedSyncAdapter {
mSyncThread = new SyncThread (
STRING0 + mNumSyncStarts . incrementAndGet ( ) ,
syncContextClient , authority , account , extras ) ;
- Process . setThreadPriority ( Process . THREAD_PRIORITY_BACKGROUND ) ;
mSyncThread . start ( ) ;
alreadyInProgress =... | run the sync thread at background priority |
<nb> public class WifiP2pService extends IWifiP2pManager . Stub {
mWifiNative . setP2pGroupIdle ( mGroup . getInterface ( ) , GROUP_IDLE_TIME_S ) ;
mDhcpStateMachine = DhcpStateMachine . makeDhcpStateMachine ( mContext ,
P2pStateMachine . this , mGroup . getInterface ( ) ) ;
+ SINGLE
+ mWifiNative . setP2pPow... | Turn OFF PS mode for DHCP session |
<nb> public class GLM extends SupervisedModelBuilder < GLMModel , GLMModel . GLMParameters ,
@ override public boolean onExceptionalCompletion ( Throwable ex , CountedCompleter cc ) {
if ( ! _gotException . getAndSet ( true ) ) {
Job thisJob = DKV . getGet ( _key ) ;
- if ( thisJob . _state == JobState . CANCEL... | Fixed bug in GLM exception handling causing GLMjobs to hang in case of exception |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BulkChangesMerger {
COMMENT
COMMENT
public CharSequence mergeToCharSequence ( @ notnull char [ ] text , int textLength , @ notnull List < ? extends TextChange... | avoiding unnecessary char creation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MessageList
private Bundle mState = null ;
private MessageInfoHolder mSelectedMessage = null ;
- class MessageListHandl... | we re using Activity runOnUiThread |
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
SINGLE
ActiveAdmin admin = getActiveAdminWithPolicyForUidLocked (
null , DeviceAdminInfo . USES_POLICY_PROFILE_OWNER , callingUid ) ;
- final boolean preN = getTargetSdk ( admin . info . getPackageName ( ) ,
- userHandle ) <= a... | Do not get device owner admin info when device owner is null |
<nb> public class TaskStackBuilder implements Iterable < Intent > {
COMMENT
COMMENT
public PendingIntent getPendingIntent ( int requestCode , int flags ) {
+ if ( mIntents . isEmpty ( ) ) {
+ throw new IllegalStateException (
+ STRING0 ) ;
+ }
+
Intent [ ] intents = mIntents . toArray ( new Intent [ m... | DO NOT MERGE Fix a bug in TaskStackBuilder where task stack |
<nb> public class TiledMapDirectLoaderTest extends GdxTest {
return true ;
}
+ @ override
+ public void dispose ( ) {
+ map . dispose ( ) ;
+ }
+
public class OrthoCamController extends InputAdapter {
final OrthographicCamera camera ;
final Vector3 curr = new Vector3 ( ) ; | disposing tiledmap textures in direct loader test |
<nb> public class KeyguardHostView extends KeyguardViewBase {
@ override
public void show ( ) {
- onScreenTurnedOn ( ) ;
+ if ( DEBUG ) Log . d ( TAG , STRING0 ) ;
+ showPrimarySecurityScreen ( false ) ;
}
private boolean isSecure ( ) {
<nb> public class KeyguardViewMediator {
if ( DEBUG ) Log . d... | Fix multiple onScreenTurnedOn callbacks in KeyguardHostView |
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment implement
if ( group . getSubfolder ( ) != null ) {
name . append ( STRING0 ) . append ( group . getSubfolder ( ) ) ;
}
- if ( group . isBackupedData ( ) ) {
- ctx . getString ( R . string . local_indexes_cat_backup ) ;
- }
TextVi... | Removed unused code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.