diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ScopeProvider implements DeclarationScopeProvider , FileScopeProvide
this . defaultImports = resolveSession . getStorageManager ( ) . createLazyValue ( new Function0 < Collection < JetImportDirective > > ( ) {
@ override
public Collection < JetImportDirective > invoke ( ) {
- PackageViewDescri... | Remove dead code in ScopeProvider |
<nb> public class XDebugSessionImpl implements XDebugSession {
myDebuggerManager . setActiveSession ( this , myCurrentPosition , false , getPositionIconRenderer ( true ) ) ;
}
adjustMouseTrackingCounter ( myCurrentPosition , NUMBER0 ) ;
- UIUtil . invokeLaterIfNeeded ( new Runnable ( ) {
- @ override
- publ... | don t queue useless task review |
<nb> public abstract class TestUserApiBase {
clock = ( ClockMock ) g . getInstance ( IClock . class ) ;
try {
- ( ( CatalogService ) catalogService ) . initialize ( ) ;
+ ( ( CatalogService ) catalogService ) . loadCatalog ( ) ;
( ( Engine ) entitlementService ) . initialize ( ) ;
init ( ) ;
} catch ( E... | Missing name change |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JmeAudioNode extends JmeNode {
set . put ( makeProperty ( obj , float . class , STRING0 , STRING1 , STRING2 ) ) ;
set . put ( makePropert... | Fixed issue when clicking on an audioNode |
<nb> class Clicker {
int sizeOfUniqueTextViews = uniqueTextViews . size ( ) ;
uniqueTextViews . clear ( ) ;
if ( sizeOfUniqueTextViews > NUMBER0 )
- Assert . assertTrue ( STRING0 + uniqueTextViews . size ( ) + STRING1 + regex , false ) ;
+ Assert . assertTrue ( STRING0 + sizeOfUniqueTextViews + STRING1 + rege... | Updated clickOnText to use sizeOfUniqueTextViews instead in the fail message |
<nb> public class PactConnection {
COMMENT
COMMENT
public void setShipStrategy ( ShipStrategy strategy ) {
- SINGLE
- SINGLE
- if ( this . shipStrategy != ShipStrategy . NONE && this . shipStrategy != strategy ) {
- throw new CompilerException ( STRING0 ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGL... | Removed compiler error check in PactConnection setShipStrategy |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
public class BlueprintHelpers {
-
+
public static final Random RANDOM = new Random ( ) ;
COMMENT
<nb> public class BlueprintHelpers {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
publi... | Add javadoc test commit |
<nb> public final class HikariConfig implements HikariConfigMBean
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public HikariConfig ( Properties properties )
+ {
+ this ( ) ;
+ PropertyBeanSetter . setTargetFromProperties ( this , properties ) ;
+ }
+
+
+ COMMENT
COMMENT
COMMENT ... | Added a constructor for HikariConfig that accepts a Properties object |
<nb> public final class Lists {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class Lists {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ CO... | Fix javadoc warnings |
<nb> public class CudaTweaks extends Tweaks {
String command ;
if ( File . separator . equals ( STRING0 ) ) {
- command = STRING1 + modelString + STRING2 + generated . getAbsolutePath ( ) + STRING3 + code_file . getAbsolutePath ( ) ;
+ String cuda_path = System . getenv ( STRING4 ) ;
+ if ( cuda_path == nul... | applying patch submitted by Johannes Dieterich to support cuda path on linux |
<nb> public class CassandraStorage extends LoadFunc implements StoreFuncInterface , Lo
if ( o == null )
return ( ByteBuffer ) o ;
if ( o instanceof java . lang . String )
- return new ByteBuffer . wrap ( DataByteArray ( ( String ) o ) . get ( ) ) ;
+ return ByteBuffer . wrap ( new DataByteArray ( ( String ) o... | Fix misplaced new keyword |
<nb> public class EventGraph implements Graph {
COMMENT
COMMENT
public Edge addEdge ( Object id , Vertex outVertex , Vertex inVertex , String label ) {
- final Edge edge = this . graph . addEdge ( id , outVertex , inVertex , label ) ;
+ Vertex outVertexToSet = outVertex ;
+ if ( outVertex instanceof EventVe... | pushed modification of ClassCastException bug |
<nb> public class ModelPath implements Iterable < String > , Comparable < ModelPath > {
}
public ModelPath child ( String child ) {
- List < String > childComponents = new ArrayList < String > ( components ) ;
+ List < String > childComponents = new ArrayList < String > ( components . size ( ) + NUMBER0 ) ;
... | Optimize ModelPath child |
<nb> public final class DefaultDatabaseObjectComparator implements DatabaseObjectComp
ObjectDifferences differences = new ObjectDifferences ( compareControl ) ;
exclude . add ( STRING0 ) ;
+ exclude . add ( STRING1 ) ;
for ( String attribute : attributes ) {
if ( exclude . contains ( attribute ) ) { | Don t include catalog differences in object comparisions by default |
<nb> public class DerivativePipelineAggregatorBuilder extends PipelineAggregatorBuild
builder . field ( GAP_POLICY_FIELD . getPreferredName ( ) , gapPolicy . getName ( ) ) ;
}
if ( units != null ) {
- builder . field ( FORMAT_FIELD . getPreferredName ( ) , units ) ;
+ builder . field ( UNIT_FIELD . getPreferr... | Fix bad toXContent for derivative aggregation |
<nb> public class CaptivePortalLoginActivity extends Activity {
private void done ( Result result ) {
if ( mNetworkCallback != null ) {
mCm . unregisterNetworkCallback ( mNetworkCallback ) ;
+ mNetworkCallback = null ;
}
switch ( result ) {
case DISMISSED :
<nb> public class CaptivePortalLoginActivity e... | Don t leak NetworkListens in captive portal app |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ListFragment extends Fragment {
if ( savedInstanceState == null ) {
bindData ( ) ;
} else {
- mItems = ( ItemManager . ... | Fix weird class cast exception |
<nb> class MetaStoreDirectSql {
long start = doTrace ? System . nanoTime ( ) : NUMBER0 ;
Query query = pm . newQuery ( STRING0 , queryText ) ;
+ query . setUnique ( true ) ;
int sqlResult = extractSqlInt ( query . executeWithArray ( params ) ) ;
long queryTime = doTrace ? System . nanoTime ( ) : NUMBER0 ;
... | Fix exception in direct SQL check for getNumPartitionsViaSqlFilter Reviewed by Sergey Shelukhin |
<nb> public class MapService implements ManagedService , MigrationAwareService ,
@ suppresswarnings ( STRING0 )
public void dispatchEvent ( EventData eventData , EntryListener listener ) {
Member member = nodeEngine . getClusterService ( ) . getMember ( eventData . getCaller ( ) ) ;
- EntryEvent event = new Dat... | entry event getName should return map name |
<nb> public class MessageView extends K9Activity implements OnClickListener {
return super . onPrepareOptionsMenu ( menu ) ;
}
- public void displayMessage ( Account account , String folder , String uid , Message message ) {
+ public void displayMessageBody ( Account account , String folder , String uid , Mes... | Rename a method that was confusingly similar to another method |
<nb> public class ConnectionTest extends Connection {
socket . connect ( ) ;
values . take ( ) ;
assertThat ( reconnects [ NUMBER0 ] , is ( NUMBER1 ) ) ;
- assertThat ( increasingDelay [ NUMBER0 ] , is ( true ) ) ;
+ SINGLE
+ SINGLE
socket . close ( ) ;
manager . close ( ) ;
} | comment out an assert |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class OptionsConfigurabe extends BaseConfigurableWithChangeSupport
}
public static void show ( Project project ) {
- Application application = A... | Getting configurable instances |
<nb> public class Connector
}
if ( apr ) {
- if ( STRING0 . equals ( protocol ) ) {
- setProtocolHandlerClassName ( STRING1 ) ;
- } else if ( STRING2 . equals ( protocol ) ) {
+ if ( STRING2 . equals ( protocol ) ) {
setProtocolHandlerClassName
( STRING3 ) ;
} else if ( STRING4 . equals ( protocol )... | Reverted checkin we can use a fully qualified class name inside of the protocol |
<nb> public class ActivityTransition {
return this ;
}
- public void duration ( int duration ) {
+ public ActivityTransition duration ( int duration ) {
this . duration = duration ;
+ return this ;
} | add method chain for duration |
<nb> public abstract class GraphDatabaseApp extends AbstractApp
{
if ( relationship . getStartNode ( ) . equals ( leftNode ) )
{
- return STRING0 + displayName + STRING1 ;
+ return STRING2 + displayName + STRING1 ;
}
else if ( relationship . getEndNode ( ) . equals ( leftNode ) )
{
- return STRING3 + ... | Reverted the change to relationship output |
<nb> public final class UnderFileSystemManager {
COMMENT
COMMENT
COMMENT
+ SINGLE
private final class UnderFileSystemOutputStream {
COMMENT
private final Configuration mConf ; | add a todo |
<nb> public class DeepWaterMojo extends MojoModel {
@ override
public final double [ ] score0 ( double [ ] doubles , double offset , double [ ] preds ) {
assert ( doubles != null ) : STRING0 ;
- float [ ] floats = new float [ _nums + _catOffsets [ _cats ] ] ; SINGLE
+ float [ ] floats = null ;
+ int cats = ... | Fix binary prediction for DW MOJO |
<nb> public class Rectangle implements Serializable {
public String toString ( ) {
return x + STRING0 + y + STRING0 + width + STRING0 + height ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean equals ( Object other ) {
+ return other != null
+ && ( other == this
+ || other instanceof Rectangle ... | Created an equals method for the rectangle object |
<nb> final class MapIndexStorage < Key , Value > implements IndexStorage < Key , Value > {
}
public void flush ( ) {
- System . out . println ( STRING0 + myCache . hitRate ( ) ) ;
+ SINGLE
myFlushingLock . lock ( ) ;
myCache . removeAll ( ) ;
try { | commented out console output |
<nb> public class MapInfoLayer extends OsmandMapLayer {
}
private void updateQuickSearch ( boolean nightMode , TextState ts ) {
- quickSearchView . setBackgroundResource ( AndroidUiHelper . isOrientationPortrait ( map ) ? ts . boxTop
- : ts . boxFree ) ;
+ int bgColorId = nightMode ? R . color . bg_color_da... | Fix search topbar in portrait |
<nb> public class DBeaverPreferencesInitializer extends AbstractPreferenceInitializer
PrefUtils . setDefaultPreferenceValue ( store , SQLPreferenceConstants . RESET_CURSOR_ON_EXECUTE , false ) ;
PrefUtils . setDefaultPreferenceValue ( store , SQLPreferenceConstants . BEEP_ON_QUERY_END , false ) ;
- PrefUtils . ... | Refresh current schema fix disable by default |
<nb> public class XAppWidgetManager extends XHook {
@ override
protected void before ( MethodHookParam param ) throws Throwable {
- if ( isRestricted ( param ) )
- param . setResult ( new ArrayList < AppWidgetProviderInfo > ( ) ) ;
+ SINGLE
}
@ override
protected void after ( MethodHookParam param )... | Move app widget manager hook processing to after |
<nb> public class NativeReaderActivity extends WPActionBarActivity implements ReaderP
SINGLE
protected static final int ALPHA_NONE = NUMBER0 ;
- protected static final int ALPHA_LEVEL_1 = NUMBER1 ;
- protected static final int ALPHA_LEVEL_2 = NUMBER2 ;
- protected static final int ALPHA_LEVEL_3 = NUMBER3 ; ... | Adjusted ActionBar transparency in the Reader to work with lighter ActionBar color |
<nb> public abstract class AbstractMultiTenancyTest extends BaseUnitTestCase {
protected SessionFactory sessionFactory ( Map < String , Object > settings ) {
ServiceRegistryImplementor serviceRegistry = ( ServiceRegistryImplementor ) new StandardServiceRegistryBuilder ( )
- . applySettings ( settings ( ) )
+ ... | Fix broken Multitenancy test |
<nb> public class LocalVariableNameCheck
COMMENT
protected final boolean mustCheckName ( DetailAST aAST )
{
- final DetailAST modifiersAST
- = aAST . findFirstToken ( TokenTypes . MODIFIERS ) ;
+ final DetailAST modifiersAST =
+ aAST . findFirstToken ( TokenTypes . MODIFIERS ) ;
final boolean isFinal = ... | fixed checkstyle error |
<nb> public class GraphTableModel extends AbstractTableModel {
sb . append ( STRING0 ) ;
List < GraphCommit < Integer > > commits = myDataPack . getPermanentGraph ( ) . getAllCommits ( ) ;
for ( int i = NUMBER0 ; i < NUMBER1 && i < commits . size ( ) ; i ++ ) {
- GraphCommit < Integer > commit = commits . get (... | log Fix misprint in diagnostics for No references pointing to head error |
<nb> public interface Http2HeadersEncoder {
Configuration configuration ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
SensitivityDetector NEVER_SENSITIVE = new SensitivityDetector ( ) {
@ override
<nb> public interface Http2HeadersEncoder {
return false ;
}
} ;
+
+ COMMENT
+ COMMENT
+ COMMEN... | Add Http2HeadersEncoder ALWAYS_SENSITIVE instance |
<nb> public class DeclarationOrderCheck extends Check
}
if ( state . mScopeState > STATE_METHOD_DEF ) {
- log ( aAST , STRING0 ) ;
+ log ( aAST , STRING1 ) ;
}
else {
state . mScopeState = STATE_METHOD_DEF ; | fixed typo in resource key |
<nb> public class DefaultEntitlement extends EntityBase implements Entitlement {
if ( refreshedEntitlement instanceof DefaultEntitlement ) {
subscriptionBase = ( ( DefaultEntitlement ) refreshedEntitlement ) . getSubscriptionBase ( ) ;
} else {
- try {
- subscriptionBase = subscriptionInternalApi . getBaseSub... | integrate code review comments |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class GenericWhitespaceCheck extends Check | Fix an error breaking the documentation generation |
<nb> public class PostPreviewFragment extends Fragment {
return STRING0
+ STRING1
- + STRING2
+ + STRING3
+ STRING4
+ STRING5 + marginStr + STRING6 + marginStr + STRING7
- + STRING8 + textColorStr + STRING7
+ + STRING9 + textColorStr + STRING7
+ STRING10
+ STRING11
+ STRING12 | Added italics Google fonts |
<nb> class AppCompatTextHelper {
setAllCaps ( a . getBoolean ( NUMBER0 , false ) ) ;
}
a . recycle ( ) ;
-
- final ColorStateList textColors = mView . getTextColors ( ) ;
- if ( textColors != null && ! textColors . isStateful ( ) ) {
- SINGLE
- SINGLE
-
- final int disabledTextColor ;
- if ( Build... | Remove hack with text colors |
<nb> public class Criteria {
for ( CriteriaType key : this . criteria . keySet ( ) ) {
- Object actualVal = map . get ( this . key ) ;
+ Object actualVal = readSafely ( this . key , map ) ;
Object expectedVal = this . criteria . get ( key ) ;
if ( CriteriaType . GT . equals ( key ) ) { | change simple criteria to use readSafely |
<nb> public class PingManager extends Manager {
COMMENT
COMMENT
public boolean pingMyServer ( boolean notifyListeners ) throws NotConnectedException {
+ return pingMyServer ( notifyListeners , connection ( ) . getPacketReplyTimeout ( ) ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Add PingManager pingMyServer boolean long |
<nb> public class ValidatorParameterHelper {
if ( parameters . size ( ) == NUMBER0 && ! firstParameterType . equals ( CanonicalNameConstants . MOTION_EVENT ) ) {
valid . invalidate ( ) ;
annotationHelper . printAnnotationError ( executableElement , STRING0 + CanonicalNameConstants . MOTION_EVENT + STRING1 + first... | fix possible OutOfBoundException if there is only one parameter of type MotionEvent |
<nb> public class DynamicBrokersReader {
byte [ ] hostPortData = _curator . getData ( ) . forPath ( topicBrokersPath + STRING0 + partition + STRING1 ) ;
Map < Object , Object > value = ( Map < Object , Object > ) JSONValue . parse ( new String ( hostPortData , STRING2 ) ) ;
Integer leader = ( ( Number ) value . g... | Throw RuntimeException if a leader cannot be found for a partition |
<nb> public class DeferredFileOutputStream
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
private ByteArrayOutputStream memoryOutputStream ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- private FileOutputStream diskOutputStream ;
-
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public clas... | Remove unused field |
<nb> public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
} , ClassNode . EMPTY_ARRAY , EmptyStatement . INSTANCE ) ;
node . setDeclaringClass ( receiver ) ;
return Collections . singletonList ( node ) ;
- } else {
- System . out . println ( ) ;
}
}
} | Remove dummy println |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JSRVariableScopeCodeVisitor extends CodeVisitorSupport implements G
for ( Iterator iter = methods . iterator ( ) ; iter . ha... | added a missing negation |
<nb> public class TestCluster implements Closeable , Iterable < Client > {
public synchronized ClusterService clusterService ( ) {
return getInstance ( ClusterService . class ) ;
}
-
+
+ public synchronized < T > Iterable < T > getInstances ( Class < T > clazz ) {
+ List < T > instances = new ArrayList < ... | Added TestCluster getInstances Class method |
<nb> public final class RestClient implements Closeable {
}
COMMENT
+ COMMENT
+ COMMENT
+ public static RestClientBuilder builder ( HttpHost . . . hosts ) {
+ return new RestClientBuilder ( hosts ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class RestClient implements Closea... | move RestClient builder method on top for more visibility |
<nb> public class LoginTest extends SmackTestCase {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public void testLoginWithNoResource ( ) {
+ try {
+ XMPPConnection conn = new XMPPConnection ( getHost ( ) , getPort ( ) ) ;
+ try {
+ conn . getAccountManager ( ) . createAccount ( STRING0 , STRING0 ) ;
+ } ... | Added testLoginWithNoResource for testing that a resource is always required by the server |
<nb> public class AnimationUtils {
}
public static ObjectAnimator createFadeInAnimation ( Object target , int duration , final AnimationStartListener listener ) {
- ObjectAnimator oa = ObjectAnimator . ofFloat ( target , ALPHA , VISIBLE ) ;
+ ObjectAnimator oa = ObjectAnimator . ofFloat ( target , ALPHA , INV... | Fixed problems with ConfigOptions fadeInDuration |
<nb> public class UserManagerService extends IUserManager . Stub {
if ( enabledOnly && ! profile . isEnabled ( ) ) {
continue ;
}
+ if ( mRemovingUserIds . get ( profile . id ) ) {
+ continue ;
+ }
users . add ( profile ) ;
}
return users ; | Fix apparent delay in removing a managed profile |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractNewSessionTest
String action = request . getParameter ( STRING0 ) ;
if ( STRING1 . equals ( action ) )
{
- request . getS... | add assertion that a new session is in fact new |
<nb> package NAMESPACE ;
import NAMESPACE ;
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 ;
import ... | Adding notifications for when the download starts |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class GitFileUtils {
String output = handler . run ( ) ;
List < String > nonIgnoredFiles = new ... | GitFileUtils add use Set instead of List for faster contains check |
<nb> public class FlowContentObserver extends ContentObserver {
if ( isInTransaction ) {
isInTransaction = false ;
- if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) {
+ if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . JELLY_BEAN ) {
onChange ( true ) ;
} else {
synchronize... | fixed bug where notification URI method was not called properly |
<nb> public final class StringComparator extends BasicTypeComparator < String > {
private static final int HIGH_BIT2 = NUMBER0 < < NUMBER1 ;
private static final int HIGH_BIT2_MASK = NUMBER2 < < NUMBER3 ;
-
-
- private final StringValue holder1 = new StringValue ( ) ;
- private final StringValue holder2 =... | StringComparators uses static StringValue readString |
<nb> public final class SqlStageExecution
return ! tasks . isEmpty ( ) ;
}
- public synchronized List < RemoteTask > getAllTasks ( )
+ SINGLE
+ SINGLE
+ public List < RemoteTask > getAllTasks ( )
{
return tasks . values ( ) . stream ( )
. flatMap ( Set : : stream ) | Reduce lock contention in getStageInfo |
<nb> public class WordPress extends Application {
} else {
background = false ;
}
+
+ SINGLE
+ if ( level < ComponentCallbacks2 . TRIM_MEMORY_UI_HIDDEN ) {
+ int maxMemory = ( int ) ( Runtime . getRuntime ( ) . freeMemory ( ) / NUMBER0 ) ;
+ int cacheSize = maxMemory / NUMBER1 ;
+ mBitmapCache . trimT... | Trim memory cache when the device is running in low memory |
<nb> public class PackageManagerService extends IPackageManager . Stub {
if ( DEBUG_INSTALL ) Log . v ( TAG , STRING0 + token
+ STRING1 ) ;
try {
- bm . restoreAtInstall ( res . pkg . applicationInfo . packageName , token ) ;
+ if ( bm . isBackupServiceActive ( UserHandle . USER_OWNER ) ) {
+ bm . restoreAt... | Perform post installation operations directly if backup manager is disabled |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MissingDataExternalFileChangeGenerator extends MissingDataChangeGen
+ STRING0 ) ;
}
- CSVWri... | Make CSV files created by LiquiBase readable by Liquibase |
<nb> public class HistogramAutosizingTest {
histogram2 . recordValue ( ( NUMBER0 < < NUMBER1 ) - NUMBER2 ) ;
Assert . assertEquals ( NUMBER3 , histogram2 . integerValuesHistogram . bucketCount ) ;
Assert . assertEquals ( NUMBER4 , histogram2 . integerValuesHistogram . countsArrayLength ) ;
+
+ DoubleHistogram... | Adds additional dynamic range to verify auto ranging during DoubleHistigram auto sizing |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroupDAO {
public Optional < Group > getGroup ( Str... | Removes unused imports |
<nb> public abstract class AbstractResult {
}
}
}
+
+ public AbstractResult ( ) {
+ this . code = NUMBER0 ;
+ }
public void init ( ResultSet res , long max ) throws SQLException , ResultDataException {
ResultSetMetaData metaData = res . getMetaData ( ) ;
<nb> public class Result extends AbstractRe... | Implements default constructor |
<nb> public class CoyoteAdapter
if ( request . read ( ) ) {
read = true ;
}
- } catch ( Exception e ) {
+ } catch ( IOException e ) {
error = true ;
}
if ( read ) { | Use the better IOException type any other exception is totally unexpected |
<nb> public final class MultiProducerSequencer extends AbstractSequencer
if ( wrapPoint > gatingSequence )
{
+ waitStrategy . signalAllWhenBlocking ( ) ;
LockSupport . parkNanos ( NUMBER0 ) ; SINGLE
continue ;
}
<nb> public final class SingleProducerSequencer extends SingleProducerSequencerFields
long... | Signal the wait strategy if on next if the buffer is full |
<nb> public class AccountActivity extends Activity {
providerId = cursor . getLong ( ACCOUNT_PROVIDER_COLUMN ) ;
provider = app . getProvider ( providerId ) ;
- origUserName = cursor . getString ( ACCOUNT_USERNAME_COLUMN ) ;
+ ContentResolver contentResolver = getContentResolver ( ) ;
+ Imps . ProviderSetti... | AccountActivity shows existing settings in Imps and logs in with them |
<nb> public class RadTable extends RadAtomicComponent {
@ nonnls Object [ ] [ ] data = new Object [ ] [ ] { new Object [ ] { STRING0 , STRING1 } ,
new Object [ ] { STRING2 , STRING3 } } ;
@ nonnls Object [ ] columnNames = new Object [ ] { STRING4 , STRING5 } ;
- ( ( JTable ) getDelegee ( ) ) . setModel ( new De... | ignore exceptions if custom JTable subclass does not accept our mock model |
<nb> public class BinaryClient extends Connection {
}
public void set ( final byte [ ] key , final byte [ ] value , final SetParams params ) {
- sendCommand ( Command . SET , params . getByteParams ( ) ) ;
+ sendCommand ( Command . SET , params . getByteParams ( key , value ) ) ;
}
public void get ( fin... | fixing missing key and value params |
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class ... | Fixed test failure |
<nb> public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer . ICon
}
}
}
- SINGLE
+ mapTextLayer . putData ( this , objects ) ;
}
@ override | Fix text for POI on map |
<nb> public abstract class RefactoringMatcher < T extends Tree > implements Matcher < T > {
+ STRING0 ) ;
}
name = annotation . name ( ) ;
- refactorMessage = STRING1 + annotation . name ( ) + STRING2 + annotation . summary ( ) ;
+ refactorMessage = STRING1 + annotation . name ( ) + STRING2 + annotation . sum... | Include wiki link in our error message to the user |
<nb> public class TaskStack implements DimLayer . DimLayerUser ,
}
}
+ boolean isAdjustedForMinimizedDock ( ) {
+ return mMinimizeAmount != FLOAT0 ;
+ }
+
private boolean adjustForIME ( final WindowState imeWin ) {
final int dockedSide = getDockSide ( ) ;
final boolean dockedTopOrBottom = dockedSide... | Allow app to force orientation if dock minimized |
<nb> public class Downloader extends IntentService {
try {
File root =
Environment . getExternalStoragePublicDirectory ( Environment . DIRECTORY_DOWNLOADS ) ;
+
+ root . mkdirs ( ) ;
+
File output = new File ( root , i . getData ( ) . getLastPathSegment ( ) ) ;
if ( output . exists ( ) ) {
<nb> publ... | added logic to create Environment s own directories for it |
<nb> public class WebViewDatabase {
}
long getCacheTotalSize ( ) {
+ if ( mCacheDatabase == null ) {
+ return NUMBER0 ;
+ }
long size = NUMBER0 ;
Cursor cursor = null ;
final String query = STRING0 ; | Fix npe in getCacheTotalSize |
<nb> public final class NpmMojo extends AbstractMojo {
public void execute ( ) throws MojoExecutionException , MojoFailureException {
try {
final Logger logger = getSlf4jLogger ( getLog ( ) , NpmMojo . class ) ;
- logger . info ( STRING0 + Platform . guess ( ) . toString ( ) + STRING1 + workingDirectory + STRIN... | Remove accidental logging |
<nb> public abstract class WebSocketChannel implements ConnectedChannel {
if ( senders . peek ( ) == channel ) {
if ( senders . remove ( channel ) ) {
StreamSinkFrameChannel ch = senders . peek ( ) ;
+ SINGLE
if ( ch != null ) {
ch . activate ( ) ;
} | Fix NPE which accour if non other Sink is waiting to write a frame and the last was complete |
<nb> public class AprEndpoint extends AbstractEndpoint < Long > {
private int fillReadBuffer ( boolean block ) throws IOException {
-
- SINGLE
- SINGLE
if ( closed ) {
throw new IOException ( sm . getString ( STRING0 , getSocket ( ) ) ) ;
} | Remove an implemented TODO |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SimpleAliasRegistry implements AliasRegistry {
String registeredName = aliasCopy . get ( alias ) ;
String resolvedAlias = valueResolver . resolveStringValue ( alias ) ;
String resolvedName = valueResolver . resolveStringValue... | SimpleAliasRegistry prevents NPE for alias resolved to null |
<nb> public class JSONUtils {
return false ;
if ( value . equalsIgnoreCase ( STRING0 ) )
return false ;
+ if ( value . equalsIgnoreCase ( STRING1 ) )
+ return false ;
return true ;
}
- public static boolean isStringTrue ( JSONObject json , String name ) {
- String rawAvailable = json . optString ( n... | Our API could use no to denote false |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
abstract public class AbstractValidator implements Validator
{
private final DataMap _config ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ C... | Deprecate AbstractValidator no arg constructor |
<nb> public class ApiHelper {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public static String getHomePageLink ( String urlString , boolean trustAllSslCertificates )
- throws SSLHandshakeException {
- Pattern xmlrpcLink = Pattern . compile ( STRING0 ,
- Pattern . CASE_INSENSITI... | remove unused getHomePageLink |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RoutingAlgorithmSpecialAreaTests
LocationIndex idxCH = new LocationIndexTreeSC ( graphCH , new RAMDirectory ( ) ) . prepareIndex ( ) ;
prepar... | included astarbiCH in integration tests again |
<nb> final class RenameVars implements CompilerPass {
@ override
public void enterScope ( NodeTraversal t ) {
- Scope scope = t . getScope ( ) ;
if ( t . inGlobalHoistScope ( ) ||
- ! shouldTemporarilyRenameLocalsInScope ( scope ) ) {
+ ! shouldTemporarilyRenameLocalsInScope ( t . getScope ( ) ) ) {
ret... | Call inGlobalHoistScope before calling getScope in RenameVars |
<nb> public class TemplateLocation {
searchPath = ResourcePatternResolver . CLASSPATH_ALL_URL_PREFIX
+ searchPath . substring ( ResourceLoader . CLASSPATH_URL_PREFIX . length ( ) ) ;
}
- if ( this . path . startsWith ( ResourcePatternResolver . CLASSPATH_ALL_URL_PREFIX ) ) {
- Resource [ ] resources = resolve... | Fix TemplateLocation anyExists logic |
<nb> import NAMESPACE ;
COMMENT
public class ListsActivity extends BaseTopShowsActivity implements OnListsChangedListener {
- public static final String TAG = STRING0 ;
+ public static final String TAG = STRING1 ;
private ListsPagerAdapter mListsAdapter ;
private ViewPager mPager ;
private TabPageIndica... | Send views for lists |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
COMMENT
- @ incubating
+ @ incubating @ deprecated
public interface ExecutableBinary extends NativeExecutableBinary {
} | Deprecate incubating API that has been replaced |
<nb> public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF
private IElementType myElementType ;
protected IElementType myContentElementType ;
+ private long myModificationStamp ;
protected PsiFile myOriginalFile = null ;
private final FileViewProvider myViewProvider ;
<nb> pu... | use separate modificationCount for PSI and Document fixes psifile dependent CachedValues |
<nb> public class PsiLambdaExpressionImpl extends ExpressionPsiElement implements Psi
@ nullable
@ override
public Icon getIcon ( int flags ) {
- return AllIcons . Nodes . AnonymousClass ;
+ return AllIcons . Nodes . Function ;
}
} | replace lambda icon |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<n... | don t treat live template complete as second basic completion invocation HtmlCompletionTest testXhtmlCompletionInHtml |
<nb> public class MarkupTemplateEngine extends TemplateEngine {
private final Map < String , GroovyCodeSource > codeSourceCache = new LinkedHashMap < String , GroovyCodeSource > ( ) ;
private final TemplateResolver templateResolver ;
+ public MarkupTemplateEngine ( ) {
+ this ( new TemplateConfiguration ( ) )... | TempateServlet requires default constroctor at TemplateEngine |
<nb>
COMMENT
package NAMESPACE ;
+
+
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- impor... | Remove some unused imports |
<nb> public class HttpRestClient implements RestClient {
private static final int HTTP_UNAVAILABLE_START = NUMBER0 ;
private static final int HTTP_OK = NUMBER1 ;
- private static final int TIMEOUT_MILLIS = NUMBER2 ;
+ private static final int TIMEOUT_MILLIS = NUMBER3 ;
private static WeakReference < HttpC... | reduce the timeout from crazytime |
<nb> public class RealmConfiguration {
throw new IllegalArgumentException ( STRING0 ) ;
}
initializeBuilder ( context . getFilesDir ( ) ) ;
- SINGLE
ReLinker . loadLibrary ( context , STRING1 ) ;
} | Removing a FIXME |
<nb> public abstract class BaseEncoding {
COMMENT
COMMENT
COMMENT
- public final byte [ ] decode ( CharSequence chars ) { SINGLE
+ @ checkreturnvalue
+ public final byte [ ] decode ( CharSequence chars ) {
try {
return decodeChecked ( chars ) ;
} catch ( DecodingException badInput ) {
<nb> public ab... | Add CheckReturnValue to BaseEncoding decode and decodeChecked |
<nb> public abstract class GroovyCompilerBase implements TranslatingCompiler {
}
GroovycOSProcessHandler
- . fillFileWithGroovycParameters ( fileWithParameters , outputDir . getPath ( ) , paths2Compile , finalOutputDir . getPath ( ) ,
+ . fillFileWithGroovycParameters ( fileWithParameters , outputDir . getPat... | by peter fix groovy transform compilation tests in idea mode on windows |
<nb> public class HttpTransferEncoding {
final HeaderMap responseHeaders = exchange . getResponseHeaders ( ) ;
SINGLE
String connection = responseHeaders . getFirst ( Headers . CONNECTION ) ;
- if ( exchange . isPersistent ( ) && connection != null ) {
+ if ( ! exchange . isPersistent ( ) ) {
+ responseHead... | Fix transfer encoding bug |
<nb> public class AvailablePluginsTableModel extends PluginTableModel {
if ( myVendor != null ) {
final String vendor = descriptor . getVendor ( ) ;
- if ( vendor != null && ! StringUtil . containsIgnoreCase ( vendor , myVendor ) ) {
+ if ( vendor == null || ! StringUtil . containsIgnoreCase ( vendor , myVend... | do not include no name vendors in vendor specific lists yole |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.