diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class LabelResolver {
element = ( JetElement ) BindingContextUtils . descriptorToDeclaration ( context . trace . getBindingContext ( ) , declarationDescriptor ) ;
}
else {
- throw new UnsupportedOperationException ( ) ; SINGLE
+ throw new UnsupportedOperationException ( declarationDescriptor . get... | Add information about unsupported class for label descriptor |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ; | Fix import order |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NewsListFragment extends Fragment
private SwipeRefreshLayout mSwipeRefreshLayout ;
@ override
- public void onAttach ( Activity activity ) {
- super . o... | Remove deprecated onAttach method |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public interface PyClass extends
- PsiNamedElement , PyStatement , NameDefiner , PyDocString... | PyClass implements PsiNameIdentifierOwner |
<nb> public class ActivityApp extends ActivityBase {
holder . imgCbMethodRestricted . setVisibility ( View . VISIBLE ) ;
SINGLE
- if ( md . canOnDemand ( ) )
- if ( ondemand ) {
- holder . imgCbMethodAsk . setImageBitmap ( getAskBoxImage ( rstate ) ) ;
- holder . imgCbMethodAsk . setVisibility ( View . VI... | Fixed alignment on demand restricting check box |
<nb> public class GithubRepository extends BaseRepositoryImpl {
public void setToken ( @ notnull String token ) {
myToken = token ;
+ setUser ( STRING0 ) ;
}
@ tag ( STRING1 ) | reset User on token change |
<nb> public class BlurDialogEngine {
SINGLE
Rect bounds = new Rect ( ) ;
Canvas canvas1 = new Canvas ( overlay ) ;
- paint . setColor ( Color . WHITE ) ;
+ paint . setColor ( Color . BLACK ) ;
paint . setAntiAlias ( true ) ;
paint . setTextSize ( FLOAT0 ) ;
paint . getTextBounds ( blurTime , NUMBER0 , b... | Change color used ot print bluring time in debug |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public final class RemoteIndexService implements IndexService
{
engine ( ) . current ( ) . removeIndexNode ( id , key ) ;
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT... | Updated remote graphdb to match the changes in the IndexService API |
<nb> public class GitCherryPicker {
@ notnull
private static String commitDetails ( @ notnull GitCommitWrapper commit ) {
- return commit . getCommit ( ) . getShortHash ( ) . toString ( ) + STRING0 + commit . getSubject ( ) + STRING1 ;
+ return commit . getCommit ( ) . getShortHash ( ) . toString ( ) + STRING... | git Display the original commit message on cherry pick without cherry picked from |
<nb> public class ServerBindings extends AbstractModule {
bind ( RulesEngine . class ) . toProvider ( RulesEngineProvider . class ) ;
bind ( LdapConnector . class ) . toProvider ( LdapConnectorProvider . class ) ;
bind ( LdapUserAuthenticator . class ) . toProvider ( LdapUserAuthenticatorProvider . class ) ;
- ... | Make DefaultSecurityManagerProvider a singleton |
<nb> public class ConcurrentMapPutIfAbsentTester < K , V > extends AbstractMapTester < K , V
public void testPutIfAbsent_putWithNullValueUnsupported ( ) {
try {
getMap ( ) . putIfAbsent ( k0 ( ) , null ) ;
- fail ( STRING0 ) ;
- } catch ( NullPointerException expected ) {
+ } catch ( NullPointerException to... | Do not require an exception to be thrown on a no op putIfAbsent if null is unsupported |
<nb> public class OtrChatListener implements MessageListener {
} catch ( OtrException e ) {
- OtrDebugLogger . log ( STRING0 , e ) ;
+ SINGLE
- msg . setBody ( STRING1 + STRING2 + STRING3 ) ;
- mMessageListener . onIncomingMessage ( session , msg ) ;
- mOtrChatManager . injectMessage ( sessionID , STR... | the user can t do anything about these error messages so let s not make it worse |
<nb> public class TileBuilder extends TileAbstractBuilder implements IMachine {
updateRequirements ( ) ;
+ sendNetworkUpdate ( ) ;
+
return ;
} | added missing network update call after removing blueprint |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed wrong explanation in ServerBootstrap |
<nb> class V2TextChecker extends TextChecker {
if ( getLanguageAutoDetect ( parameters ) ) {
lang = detectLanguageOfString ( text , null , preferredVariants ) ;
} else {
+ if ( langParam == null ) {
+ throw new IllegalArgumentException ( STRING0 ) ;
+ }
lang = Languages . getLanguageForShortName ( langPar... | improve error handling |
<nb> public final class SmackConfiguration {
loaders . add ( classLoader ) ;
}
}
- return ( ClassLoader [ ] ) loaders . toArray ( ) ;
+ return loaders . toArray ( new ClassLoader [ loaders . size ( ) ] ) ;
}
}
<nb> public class ProviderManager {
loaders . add ( classLoader ) ;
}
}
- return ( Cla... | Fixed casting error |
<nb> public class Button extends MaterialData implements Redstone , Attachable {
COMMENT
COMMENT
public BlockFace getAttachedFace ( ) {
- byte data = ( byte ) ( getData ( ) ^ NUMBER0 ) ;
+ byte data = ( byte ) ( getData ( ) ^ NUMBER1 ) ;
switch ( data ) {
case NUMBER2 :
<nb> public class Lever extends... | Fixed Button and Lever MaterialData returning incorrect getAttachedFace |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class JsonBySchemaObjectAnnotator implements Annotator {
}
}
SINGLE
- if ( schema . getPattern ( ) != null ) {
+ COMMENT
LOG . i... | remove unneeded logging |
<nb> public class MenuBuilder implements Menu {
@ override
public void removeGroup ( int groupId ) {
- int size = this . mItems . size ( ) ;
- for ( int i = NUMBER0 ; i < size ; i ++ ) {
- if ( this . mItems . get ( i ) . getGroupId ( ) == groupId ) {
- this . mItems . remove ( i ) ;
- i -- ;
- size -... | Optimize removeGroup method by running in reverse |
<nb> public final class DisconnectCause implements Parcelable {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class DisconnectCause implements Parcelable {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMM... | Fix up DisconnectCause description |
<nb> public class BasicBSONObject extends LinkedHashMap < String , Object > implements BSO
COMMENT
COMMENT
COMMENT
+ @ deprecated
public boolean containsKey ( String key ) {
return containsField ( key ) ;
} | added deprecated annotation to deprecated methods |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
... | Remove unused imports |
<nb> class FreshValueGenerator {
}
@ generates private UnsignedInteger freshUnsignedInteger ( ) {
- return UnsignedInteger . asUnsigned ( freshInt ( ) ) ;
+ return UnsignedInteger . fromIntBits ( freshInt ( ) ) ;
}
@ generates private UnsignedLong freshUnsignedLong ( ) { | replace UnsignedInteger asUnsigned with UnsignedInteger fromIntBits |
<nb> public class Cd extends NeoApp
if ( ! absolute && ! this . nodeIsConnected ( currentNode , newId ) )
{
throw new ShellException ( STRING0 + newId +
- STRING1 ) ;
+ STRING2 +
+ STRING3 ) ;
}
paths . add ( currentNode . getId ( ) ) ;
} | Improved an exception message to use a option |
<nb> public class ZeppelinConfiguration extends XMLConfiguration {
ZEPPELIN_LOCAL_WAREHOUSE ( STRING0 , STRING1 ) ,
ZEPPELIN_ZAN_LOCAL_REPO ( STRING2 , STRING3 ) ,
HIVE_DRIVER ( STRING4 , STRING5 ) , SINGLE
- HIVE_CONNECTION_URI ( STRING6 , STRING7 ) SINGLE
+ HIVE_CONNECTION_URI ( STRING6 , null ) SINGLE
; ... | Handle HIVE_CONNECTION_URI property better |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data
@ nullable
protected JComponent createDefaultRight... | some toolwindows don t get the set background when the tab displays nothing selected |
<nb> public class ByteBufferUtil
ByteBuffer copy = buffer . duplicate ( ) ;
copy . position ( position ) ;
copy . limit ( copy . position ( ) + length ) ;
- return string ( buffer , charset ) ;
+ return string ( copy , charset ) ;
}
public static String string ( ByteBuffer buffer , Charset charset ) thr... | ByteBufferUtil string should return the copy not the original buffer |
<nb> public interface ServerConfigBuilder extends ConfigDataBuilder {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ default ServerConfigBuilder findBaseDir ( ) {
+ return baseDir ( BaseDir . find ( ) ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMEN... | Add sugar for finding the basedir |
<nb> public class MapReduceIndex < Key , Value , Input > implements UpdatableIndex < Key , Val
if ( data == null ) {
data = content != null ? myIndexer . map ( content ) : Collections . < Key , Value > emptyMap ( ) ;
- if ( DebugAssertions . EXTRA_SANITY_CHECKS ) {
+ if ( DebugAssertions . DEBUG ) {
checkVa... | enforce validation of Value type to have proper equals hashCode |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public interface Future < T > { | Added javadoc tags author and since |
<nb> public class UnicastSenderTest
@ test ( timeout = NUMBER0 )
public void shouldNotSendUntilStatusMessageReceived ( )
{
- SINGLE
+ SINGLE
+ }
+
+ @ ignore
+ @ test ( timeout = NUMBER0 )
+ public void shouldSendHeartbeatWhenIdle ( )
+ {
+ SINGLE
}
private void writeChannelMessage ( final... | added some thoughts for more unicast sender tests |
<nb> public class DiagnosticGroups {
public static final DiagnosticGroup AMBIGUOUS_FUNCTION_DECL =
DiagnosticGroups . registerGroup ( STRING0 ,
- VariableReferenceCheck . AMBIGUOUS_FUNCTION_DECL ) ;
+ VariableReferenceCheck . AMBIGUOUS_FUNCTION_DECL ,
+ StrictModeCheck . BAD_FUNCTION_DECLARATION ) ;
pub... | Add BAD_FUNCTION_DECLARATION to the ambiguousFunctionDecl |
<nb> public class Linter {
SINGLE
options . setWarningLevel ( DiagnosticGroups . CHECK_TYPES , CheckLevel . WARNING ) ;
+ options . setWarningLevel ( DiagnosticGroups . LINT_CHECKS , CheckLevel . WARNING ) ;
options . setWarningLevel ( DiagnosticGroups . MISSING_REQUIRE , CheckLevel . WARNING ) ;
options . ... | Enable the lint checks explicitly for the linter |
<nb> public class Picasso {
try {
bitmap = loadFromType ( request ) ;
} catch ( OutOfMemoryError e ) {
- throw new IOException ( STRING0 + request , e ) ;
+ throw new IOException ( STRING0 + request ) . initCause ( e ) ;
}
if ( bitmap != null && ! request . skipCache ) { | Fixed Froyo IOException bug |
<nb> class DefaultConnectionPool implements ConnectionPool {
internalConnection = pool . get ( timeout , timeUnit ) ;
}
connectionPoolListener . connectionCheckedOut ( new ConnectionEvent ( internalConnection . getDescription ( ) . getConnectionId ( ) ) ) ;
- LOGGER . trace ( format ( STRING0 , getId ( internal... | Protected trace logging statement in DefaultConnectionPool with check for whether trace logging is enabled |
<nb> public class PipeTransportRendererItems extends PipeTransportRenderer < PipeTransp
break ;
}
- if ( item == null ) {
+ if ( item == null || item . getContainer ( ) != pipe . container ) {
continue ;
} | fix minor rendering glitch with items in pipes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class CommandLineRunner extends
+ public class CommandLineRunner extends
AbstractCommandLineRunner < Compiler , CompilerOptions > {
@ flagspec ( help = STRING0 + | Changed CommandLineRunner to public as I believe that was the intention according to |
<nb> public abstract class Compose extends Activity implements
. setProgress ( NUMBER0 , NUMBER1 , true ) ;
if ( Compose . this instanceof ComposeDMActivity ) {
- mBuilder . setContentTitle ( getResources ( ) . getString ( R . string . sending_tweet ) ) ;
- } else {
mBuilder . setContentTitle ( getResources... | Fix Faulty logic |
<nb> public final class Library {
return parentTree != null ? ( LibraryTree ) parentTree . getSubTree ( key . Id ) : null ;
}
- private synchronized void addBookToLibrary ( Book book ) {
- final SearchResultsTree found =
- ( SearchResultsTree ) getFirstLevelTree ( LibraryTree . ROOT_FOUND ) ;
- if ( found... | no book renewing in search results tree that should be done in SearchResultsTree onBookEvent method |
<nb> public abstract class RealmObject {
this . realm = realm ;
}
- public Row realmGetRow ( ) {
+ protected Row realmGetRow ( ) {
return row ;
}
- public void realmSetRow ( Row row ) {
+ protected void realmSetRow ( Row row ) {
this . row = row ;
}
} | Hide accessor methods in RealmObject |
<nb> public class JazzyGridView extends GridView {
private JazzyHelper init ( Context context , AttributeSet attrs ) {
JazzyHelper helper = new JazzyHelper ( context , attrs ) ;
- super . setOnScrollListener ( mHelper ) ;
+ super . setOnScrollListener ( helper ) ;
return helper ;
}
<nb> public class J... | Fix assignment of the JazzyHelper |
<nb> import NAMESPACE ;
public class YoutubeVideoExtractorGemaTest extends AndroidTestCase {
SINGLE
- private static final boolean testActive = true ;
+ private static final boolean testActive = false ;
public void testGemaError ( ) throws IOException , CrawlingException {
if ( testActive ) { | disable gema test agian |
<nb> public abstract class ORecordAbstract < T > implements ORecord < T > , ORecordInternal <
}
public int getVersion ( ) {
- checkForLoading ( ) ;
return _version ;
} | Fixed bug avoiding to load the record on ORecord getVersion |
<nb> import NAMESPACE ;
COMMENT
public abstract class AbstractRetryEntryPoint implements ChannelEntryPoint {
SINGLE
- private static final Log logger = LogFactory . getLog ( RetryWithHttpEntryPoint . class ) ;
+ protected final Log logger = LogFactory . getLog ( getClass ( ) ) ;
SINGLE | AbstractRetryEntryPoint always uses RetryWithHttpEntryPoint logger |
<nb> public class FrameV2 extends Schema < Frame , FrameV2 > {
ColV2 ( String name , Vec vec , long off , int len ) {
label = name ;
missing = vec . naCnt ( ) ;
- zeros = vec . length ( ) - vec . nzCnt ( ) ;
+ zeros = vec . length ( ) - vec . nzCnt ( ) - missing ;
pinfs = vec . pinfs ( ) ;
ninfs = vec . n... | Bugfix returning Frame summary zeros included NAs |
<nb> public class RenameVisitor extends AbstractVisitor {
@ override
public void init ( RootNode root ) {
IJadxArgs args = root . getArgs ( ) ;
- File deobfMapFile = new File ( args . getOutDir ( ) , STRING0 ) ;
+
+ final String firstInputFileName = root . getDexNodes ( ) . get ( NUMBER0 ) . getInputFile ( ... | fix used name path to the deobfuscation map file |
<nb> import NAMESPACE ;
public class DefaultModelRegistry implements ModelRegistry {
+ COMMENT
+ Things we aren ' t doing and should :
+
+ - Detecting cycles between config rules
+ - Detecting dangling , unbound , rules
+ - Detecting model elements with no object at their parent path
+ - Detecting m... | Added some notes |
<nb> public class CollectionUtils {
return union ;
}
+ public static < T > Set < T > unionAsSet ( Collection < T > . . . sets ) {
+ Set < T > union = Generics . newHashSet ( ) ;
+ for ( Collection < T > set : sets ) {
+ for ( T t : set ) {
+ union . add ( t ) ;
+ }
+ }
+ return union ;
+ }
+
... | added a function to find union to many collections |
<nb> public class SoftWrapApplianceManager implements Dumpable {
if ( ! foldRegion . isValid ( ) ||
foldRegion . getStartOffset ( ) != myContext . tokenStartOffset
|| foldRegion . getEndOffset ( ) > document . getTextLength ( ) ) {
- LOG . error ( STRING0 + foldRegion + STRING1 + myEditor . getSoftWrapModel ( )... | added more diagnostic information to an error mesage |
<nb> public class ConnectionConfiguration implements Cloneable {
COMMENT
COMMENT
COMMENT
- String getUsername ( ) {
+ public String getUsername ( ) {
return this . username ;
}
<nb> public class ConnectionConfiguration implements Cloneable {
COMMENT
COMMENT
COMMENT
- String getPassword ( ) {
... | Make ConnectionConfugration getters public |
<nb> public class RefundProcessor extends ProcessorBase {
final PaymentPluginApi plugin = getPaymentProviderPlugin ( payment . getPaymentMethodId ( ) ) ;
int nbExistingRefunds = plugin . getNbRefundForPaymentAmount ( account , paymentId , refundAmount ) ;
- log . info ( String . format ( STRING0 , nbExistingRef... | Revert refund INFO trace to debug trace |
<nb> public class SiteMain {
Guice . registry ( s - > s
. add ( JacksonModule . class )
. add ( NewRelicModule . class )
- . add ( new CodaHaleMetricsModule ( ) , c - > {
- } )
+ . add ( new CodaHaleMetricsModule ( ) , c - >
+ c . csv ( csv - > csv . enable ( false ) )
+ )
. addConfig ( SiteModule . c... | Turn off the CSV reporter |
<nb> public class PerformanceMonitor {
private ScheduledExecutorService scheduler ;
private final HazelcastThreadGroup hzThreadGroup ;
-
public PerformanceMonitor (
String fileName ,
ILogger logger ,
<nb> public class PerformanceMonitor {
@ override
public void run ( ) {
- performanceLog . rende... | PerformanceMonitor scheduler task catches exception |
<nb> public class InputStreamAwaiter
private final InputStream input ;
private final byte [ ] bytes = new byte [ NUMBER0 ] ;
private final Clock clock ;
+ private static final String NEW_LINE = System . getProperty ( STRING0 ) ;
public InputStreamAwaiter ( InputStream input )
{
<nb> public class InputSt... | Uses a cross platform newline constant |
<nb> public class CxxBuckConfig {
public CxxCompilationDatabaseFormat getCompilationDatabaseFormat ( ) {
return delegate
. getEnum ( cxxSection , STRING0 , CxxCompilationDatabaseFormat . class )
- . or ( CxxCompilationDatabaseFormat . NUCLIDE ) ;
+ . or ( CxxCompilationDatabaseFormat . CLANG ) ;
}
} | Change the default compilation database format to clang |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OServer {
running = true ;
+ String httpAddress = STRING0 ;
+ for ( OServerNetworkListener listener : getNetworkListe... | added console message about studio URL |
<nb> import NAMESPACE ;
public interface ISession extends Session
{
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void flush ( ) ;
+
public < C > void control ( IStream stream , ControlFrame frame , long timeout , TimeUnit unit , Handler < C > handler , C context ) ;
public < C > ... | applications do not get any benefit from calling flush |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- SINGLE
- SINGLE
-
public class AppAIMSICD extends InjectionApplication {
@ inject | Removed LeakCanary leftovers |
<nb> public class PutIfAbsentOperation extends BasePutOperation {
}
public boolean shouldBackup ( ) {
- return successful ;
+ return successful && recordStore . getRecord ( dataKey ) != null ;
}
@ override
<nb> public class ReplaceIfSameOperation extends BasePutOperation {
}
public boolean shoul... | add missing null check to shouldBackup method |
<nb> import NAMESPACE ;
COMMENT
public class DefaultDateConverter extends DateTypeConverter {
- private DateFormat mDateFormat ;
-
- public DefaultDateConverter ( ) {
- mDateFormat = new DefaultDateFormatter ( ) ;
- }
-
public DateFormat getDateFormat ( ) {
- return mDateFormat ;
+ return new De... | Fixed issue with the default date converter reusing date formatters across threads |
<nb> public class PhoneNumberUtils
STRING0 , SINGLE
} ;
+ private static final String KOREA_ISO_COUNTRY_CODE = STRING1 ;
+
COMMENT
COMMENT
COMMENT
<nb> public class PhoneNumberUtils
String result = null ;
try {
PhoneNumber pn = util . parseAndKeepRawInput ( phoneNumber , defaultCountryIso ) ;
... | Reformat local Korean numbers in national format |
<nb> public class Requirements {
Intent sendEmail = new Intent ( Intent . ACTION_SEND ) ;
sendEmail . setType ( STRING0 ) ;
sendEmail . putExtra ( Intent . EXTRA_EMAIL , new String [ ] { STRING1 } ) ;
- sendEmail . putExtra ( Intent . EXTRA_SUBJECT , STRING2 + ourVersion + STRING3 ) ;
+ sendEmail . putExtra (... | Change subject of support information |
<nb> public final class Signature
Objects . equals ( this . internal , other . internal ) ;
}
+ @ override
public String toString ( )
{
return ( internal ? STRING0 : STRING1 ) + name + STRING2 + Joiner . on ( STRING3 ) . join ( argumentTypes ) + STRING4 + returnType ; | Fix intellij warning |
<nb> public class TWFragment extends Fragment {
mToast . setGravity ( Gravity . CENTER , NUMBER0 , NUMBER0 ) ;
mRecyclerView = ( TWView ) view . findViewById ( R . id . list ) ;
+ mRecyclerView . setHasFixedSize ( true ) ;
mRecyclerView . setLongClickable ( true ) ;
mPositionText = ( TextView ) view . get... | sample Set TWView with fixed size in TWFragment |
<nb> import NAMESPACE ;
public class NavigatableMessageElement extends ErrorTreeElement {
private final GroupingElement myParent ;
private final String [ ] myMessage ;
+ @ notnull
private final Navigatable myNavigatable ;
private final String myExportText ;
private final String myRendererTextPrefix ;
<n... | enforcing NotNull contract |
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
COMMENT
COMMENT | Fix NameValuePair package |
<nb> public class Colors {
Color . green ( color ) * Color . green ( color ) * FLOAT0 +
Color . blue ( color ) * Color . blue ( color ) * FLOAT1 ) > NUMBER0 ;
}
-
- public static int getBaseColor ( int color ) {
- if ( isLight ( color ) ) {
- return Color . BLACK ;
- }
- return Color . WHITE ;
- }
... | Remove unused method getBaseColor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fix driver remove unused import from DatabaseAcceptanceTest java |
<nb> public class Word2Vec implements Persistable {
if ( sentence == null )
continue ;
- trainSentence ( sentence ) ;
service . execute ( new Runnable ( ) {
COMMENT | remove train call from loop |
<nb> public class ScrollingModelImpl implements ScrollingModelEx {
hOffset = Math . max ( NUMBER0 , targetLocation . x - inset ) ;
}
}
- else if ( targetLocation . x >= hOffset + viewRect . width ) {
+ else if ( viewRect . width > NUMBER0 && targetLocation . x >= hOffset + viewRect . width ) {
hOffset = tar... | avoid incorrect horizontal scrolling when editor is not visible |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class Aggregators... | Improved JavaDoc of Aggregators |
<nb> public class GravesLSTM extends BaseRecurrentLayer < org . deeplearning4j . nn . conf . la
@ override
public Gradient gradient ( ) {
- throw new UnsupportedOperationException ( STRING0 ) ;
+ throw new UnsupportedOperationException ( STRING1 ) ;
}
@ override
public Gradient calcGradient ( Gradient... | Make LSTM pretrain exception messages more informative |
<nb> public class CDbwMapper extends Mapper < IntWritable , WeightedVectorWritable , IntW
WeightedVectorWritable currentMDP = mostDistantPoints . get ( key ) ;
List < VectorWritable > refPoints = representativePoints . get ( key ) ;
- if ( refPoints == null ) {
- System . out . println ( ) ;
- }
double to... | removing noop debug trap |
<nb> public abstract class TvInputService extends Service {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | add more documentation on Session onTimeShiftSetPlaybackRate |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class HorizontalDrawer extends DraggableDrawer {
if ( mOnInterceptMoveEventListener != null && mTouchMode == TOUCH_MODE_FULLSCREEN
&& canC... | Not again I should just wrap them in BuildConfig DEBUG |
<nb> public class AnalyticsTrackerMixpanel extends Tracker {
break ;
case PUSH_NOTIFICATION_RECEIVED :
instructions = AnalyticsTrackerMixpanelInstructionsForStat .
- mixpanelInstructionsForEventName ( STRING0 ) ;
+ mixpanelInstructionsForEventName ( STRING1 ) ;
break ;
case PUSH_NOTIFICATION_TAPPED :
in... | Use the correct event names in Mixpanel |
<nb> public class NettyProducer extends DefaultAsyncProducer {
@ override
public void destroyObject ( Channel channel ) throws Exception {
LOG . trace ( STRING0 , channel ) ;
- NettyHelper . close ( channel ) ;
- ALL_CHANNELS . remove ( channel ) ;
+ SINGLE
}
@ override | Fixed netty producer to not cause NPE later in messageReceived when destoying channel from pool |
<nb> public final class RIL extends BaseCommands implements CommandsInterface {
rr . mp . writeString ( address ) ;
rr . mp . writeInt ( clirMode ) ;
+ rr . mp . writeInt ( NUMBER0 ) ; SINGLE
if ( RILJ_LOGD ) riljLog ( rr . serialString ( ) + STRING0 + requestToString ( rr . mRequest ) ) ;
<nb> public f... | Populate the User to user signaling info fields |
<nb> public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
@ override
public void visitFile ( final PsiFile file ) {
final VirtualFile virtualFile = file . getVirtualFile ( ) ;
- if ( virtualFile == null ) return ;
+ if ( virtualFile == null || isBinary ( file ) ) return ;
if ( ... | don t retrieve documents for binary files to avoid decompilation since binary files aren t inspected anyway |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
initialAwakenScrollBars ( ) ;
mPrivateFlags &= ~ AWAKEN_SCROLL_BARS_ON_ATTACH ;
}
+ jumpDrawablesToCurrentState ( ) ;
}
COMMENT | Make sure background drawables are correct when View is attached |
<nb> public interface ModContainer
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
List < ArtifactVersion > getDependencies ( ) ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
List < ArtifactVersion > getDependants ( ) ; | Fix logical error in comment text |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT | layouts Remove unused import from DividerItemDecoration |
<nb> public class EdgeGlow {
mEdgeScaleY = mEdgeScaleYStart = Math . max (
HELD_EDGE_SCALE_Y , Math . min ( distance * PULL_DISTANCE_EDGE_FACTOR , FLOAT0 ) ) ;
- mGlowAlpha = mGlowAlphaStart = Math . min (
+ mGlowAlpha = mGlowAlphaStart = Math . min ( MAX_ALPHA ,
mGlowAlpha +
- ( Math . abs ( deltaDistanc... | DO NOT MERGE Limit the height of the pull glow |
<nb> public class SecureChatTrustManagerFactory extends TrustManagerFactorySpi {
X509Certificate [ ] chain , String authType ) throws CertificateException {
SINGLE
SINGLE
- SINGLE
+ SINGLE
+ SINGLE
System . err . println (
STRING0 + chain [ NUMBER0 ] . getSubjectDN ( ) ) ;
} | Added a reference to SecureChatSslContextFactory for those who wants client cert auth |
<nb> interface MethodHandler {
public RequestTemplate apply ( Object [ ] argv ) ;
}
- COMMENT
- COMMENT
- COMMENT
- static String THREAD_PREFIX = STRING0 ;
- static String IDLE_THREAD_NAME = THREAD_PREFIX + STRING1 ;
-
static final class SynchronousMethodHandler implements MethodHandler {
privat... | removed dead constants |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public class AssetHeader implements Struct {
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ COMMENT
COMMENT
public class ObjectPath implements Struct {
<nb> import NAMESPACE ;
COMM... | Added tags for original Unity structure names |
<nb> public class AwsInstanceRegistryTest extends InstanceRegistryTest {
myInstance = createLocalUpInstanceWithAsg ( LOCAL_REGION_INSTANCE_1_HOSTNAME ) ;
registerInstanceLocally ( myInstance ) ;
verifyLocalInstanceStatus ( myInstance . getId ( ) , InstanceStatus . OUT_OF_SERVICE ) ;
+
+ SINGLE
+ ( ( AwsInst... | Add an extra test case for ASG status |
<nb> final class WebViewCore {
case DESTROY :
SINGLE
SINGLE
- mBrowserFrame . destroy ( ) ;
- mBrowserFrame = null ;
- mNativeClass = NUMBER0 ;
+ synchronized ( WebViewCore . this ) {
+ mBrowserFrame . destroy ( ) ;
+ mBrowserFrame = null ;
+ mNativeClass = NUMBER0 ;
+ }
break ;
case UPDATE_... | synchronize access to pictureReady copyContentPicture |
<nb> public final class RegisteredServiceEditBean implements Serializable {
}
}
}
- }
+ }
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed checkstyle issues |
<nb> public interface KtTokens {
TokenSet WHITESPACES = TokenSet . create ( TokenType . WHITE_SPACE ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class KtPsiUtil {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | rename JetParserDefinition to KotlinParserDefinition in comments |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class CXFGreeterRouterTest extends CXFRouterSpringTest {
+ public class CXFGreeterRouterTest extends CxfSpringRouterTest {
private final QName serviceName = new QName ( STRING0 ,
STRING1 ) ;
private final QName routerPortName = new Q... | Mini refactor the camel cxf test class |
<nb> public class InjectAction extends BaseGenerateAction implements IConfirmListener
}
if ( cnt > NUMBER0 ) { SINGLE
+ if ( layout == null ) {
+ return ;
+ }
new InjectWriter ( file , getTargetClass ( editor , file ) , STRING0 , elements , layout . getName ( ) , fieldNamePrefix , createHolder ) . execute... | Fix potential NPE |
<nb> public class UsbDeviceManager {
if ( active && mCurrentUser != UserHandle . USER_NULL ) {
Slog . v ( TAG , STRING0 + mCurrentUser
+ STRING1 ) ;
+ SINGLE
+ mUsbDataUnlocked = false ;
setEnabledFunctions ( mCurrentFunctions , true ) ;
}
mCurrentUser = msg . arg1 ; | set mUsbDataUnlocked false on user switch |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class PicassoDrawable extends BitmapDrawable {
setAlpha ( partialAlpha ) ;
super . draw ( canvas ) ;
setAlpha ( alpha ) ;
+ if ( Build . VERSION ... | GB requires invalidateSelf |
<nb> public class XSensorManager extends XHook {
@ suppresswarnings ( STRING0 )
private boolean isRestricted ( XParam param , int type ) throws Throwable {
- if ( type == Sensor . TYPE_ACCELEROMETER || type == Sensor . TYPE_LINEAR_ACCELERATION ) {
+ if ( type == Sensor . TYPE_ALL )
+ return false ;
+ else... | Suppress sensor type warning support info |
<nb> public class ReducerHelperTests extends ElasticsearchTestCase {
public static double calculateMetric ( double [ ] values , ValuesSourceMetricsAggregationBuilder metric ) {
if ( metric instanceof MinBuilder ) {
- double accumulator = Double . MAX_VALUE ;
+ double accumulator = Double . POSITIVE_INFINITY ;... | TEST Fix min max accumulator in MovAvg tests |
<nb> public final class OBJLoader implements AssetLoader {
vertList . clear ( ) ;
String line = scan . nextLine ( ) . trim ( ) ;
- String [ ] verticies = line . split ( STRING0 ) ;
+ String [ ] verticies = line . split ( STRING1 ) ;
for ( String vertex : verticies ) {
int v = NUMBER0 ;
int vt = NUMBER0 ... | Fix OBJ Loader exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class NavigationBarRecents extends LinearLayout {
try {
manager . startActivityFromRecents ( taskPersistentId , null COMMENT ) ;
} cat... | Suppressing Illegal argument exception when activating a task |
<nb> public class ClientConfigBuilder {
if ( props . containsKey ( ADDRESSES ) ) {
final String addressesProp = props . getProperty ( ADDRESSES ) ;
if ( addressesProp != null ) {
- final String [ ] addresses = addressesProp . split ( STRING0 ) ;
+ final String [ ] addresses = addressesProp . split ( STRING1 )... | Fixed client config builder address delimiters |
<nb> import NAMESPACE ;
@ remote ( ViewChangeListener . class )
@ listener ( sync = false )
public class ViewChangeListenerBean implements ViewChangeListener {
- public static final long TIMEOUT = NUMBER0 ;
+ SINGLE
+ public static final long TIMEOUT = NUMBER1 ;
@ override
public void establishView ( ... | stabilize intermittent test failures |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.