diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class Main
System . err . println ( STRING0 + cl . getParent ( ) ) ;
System . err . println ( STRING1 + _config . getProperties ( ) ) ;
}
-
- System . err . println ( STRING1 + _config . getProperties ( ) ) ;
SINGLE
if ( _showUsage ) | removed debug println |
<nb> public class DefaultGroovyMethods {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static OutputStream leftShift ( OutputStream self , InputStream in ) throws IOException {
+ byte [ ] buf = new byte [ NUMBER0 ] ;
+ while ( true ) {
+ int count =... | implement output input for streams |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public interface ChannelGroup extends Set < Channel > , Comparable < ChannelGroup > {
String getName ( ) ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class ChannelGroupFact... | Fixed apiviz errors |
<nb> public class GraphHopperServlet extends GHBaseServlet
Map < String , Object > json = new HashMap < String , Object > ( ) ;
Map < String , Object > jsonInfo = new HashMap < String , Object > ( ) ;
json . put ( STRING0 , jsonInfo ) ;
+ jsonInfo . put ( STRING1 , Arrays . asList ( STRING2 , STRING3 ) ) ;
... | added hint to GraphHopper and OSM in json |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PydevConsoleRunner extends PyConsoleRunner {
} ) ;
}
}
+
+ public static boolean isInPydevConsole ( final PsiElement ... | Added Pydev console check method |
<nb> public final class RuleOverview {
int langSpecificWebsiteCount = NUMBER0 ;
for ( final String langName : sortedLanguages ) {
final Language lang = Language . getLanguageForName ( langName ) ;
+ if ( lang . isVariant ( ) ) {
+ continue ;
+ }
System . out . print ( STRING0 ) ;
final File langSpecific... | skip language variants for the website overview |
<nb> public class OpeningHoursParser {
private static void testOpened ( String time , OpeningHours hours , boolean expected ) throws ParseException {
Calendar cal = Calendar . getInstance ( ) ;
cal . setTime ( new SimpleDateFormat ( STRING0 ) . parse ( time ) ) ;
- boolean isOpen = hours . isOpenedForTime ( cal... | Improved readability with printf |
<nb> public class ApkBuilderStep implements Step {
builder . addSourceFolder ( projectFilesystem . getFileForRelativePath ( assetDirectory ) ) ;
}
for ( Path zipFile : zipFiles ) {
- Preconditions . checkState ( projectFilesystem . exists ( zipFile ) ,
- STRING0 , zipFile ) ;
- Preconditions . checkState ( ... | Revert assertion in ApkBuilderStep checking input zip files exist |
<nb> public final class C2BConverter {
int pos = bb . position ( ) ;
SINGLE
do {
- leftovers . put ( ( char ) cc . get ( ) ) ;
+ leftovers . put ( cc . get ( ) ) ;
leftovers . flip ( ) ;
result = encoder . encode ( leftovers , bb , false ) ;
leftovers . position ( leftovers . limit ( ) ) ; | Fix IDE nag |
<nb> public class AlarmInfo implements LocationPoint {
}
} else if ( STRING0 . equals ( ruleType . getTag ( ) ) ) {
alarmInfo = new AlarmInfo ( AlarmInfoType . TRAFFIC_CALMING , locInd ) ;
+ } else if ( STRING1 . equals ( ruleType . getTag ( ) ) && STRING2 . equals ( ruleType . getValue ( ) ) ) {
+ alarmInfo ... | Added railway and pedastrian to alarm info |
<nb> public class TopicMBean extends HazelcastMBean < ITopic > {
registrationId = managedObject . addMessageListener ( messageListener ) ;
}
+ @ managedannotation ( STRING0 )
+ @ manageddescription ( STRING1 )
+ public long getLocalCreationTime ( ) {
+ return managedObject . getLocalTopicStats ( ) . getCr... | Added statistics to the itopicmbean |
<nb> public class MongoClientURI {
boolean parseBoolean ( final String input ) {
String trimmedInput = input . trim ( ) ;
- return trimmedInput != null && trimmedInput . length ( ) > NUMBER0 && ( trimmedInput . equals ( STRING0 )
- || trimmedInput . toLowerCase ( ) . equals ( STRING1 )
- || trimmedInput . t... | Removed unnecessary null check |
<nb> public class InferenceSession {
if ( parent instanceof PsiCallExpression ) {
final Map < PsiElement , Pair < PsiMethod , PsiSubstitutor > > map = MethodCandidateInfo . CURRENT_CANDIDATE . get ( ) ;
if ( map != null ) {
- final Pair < PsiMethod , PsiSubstitutor > pair = map . get ( parent ) ;
+ final Pair... | find method by arg list fixed |
<nb> final class SQLiteBooksDatabase extends BooksDatabase {
myDatabase . delete ( STRING0 , myBookIdWhereClause , parameters ) ;
myDatabase . delete ( STRING1 , myBookIdWhereClause , parameters ) ;
myDatabase . delete ( STRING2 , myBookIdWhereClause , parameters ) ;
+ myDatabase . delete ( STRING3 , myBookIdWh... | updated clean query |
<nb> public class ProjectFilterTest {
}
@ test
- public void shouldNotIncludeRoot ( ) {
+ public void includingRootShouldBeOptional ( ) {
Settings settings = new Settings ( ) ;
settings . setProperty ( STRING0 , STRING1 ) ;
ProjectFilter filter = new ProjectFilter ( settings ) ; | Rename a unit test in ProjectFilterTest |
<nb> public class BytecodeAnalysisIndex extends FileBasedIndexExtension < Bytes , HEquat
COMMENT
COMMENT
COMMENT
- public static class HEquationsExternalizer implements DataExternalizer < HEquations > , DifferentSerializableBytesImplyNonEqualityPolicy {
+ public static class HEquationsExternalizer implements ... | the same equations may produce different bytes because of sets |
<nb> public abstract class MapNotationParser < T > implements NotationParser < T > {
}
public T parseNotation ( Object notation ) {
- if ( ! ( notation instanceof Map ) ) {
- throw new IllegalArgumentException ( STRING0 ) ; SINGLE
- }
+ assert notation instanceof Map : STRING0 ;
return parseMap ( ( Map ... | housekeeping in the notation parsers added sanity assertions for input arguments |
<nb> public class ClientEngineImpl implements ClientEngine , CoreService , PostJoinAwar
}
SINGLE
- for ( Map . Entry < String , ClientType > entry : clientsMap . entrySet ( ) ) {
- ClientType clientType = entry . getValue ( ) ;
+ for ( ClientType clientType : clientsMap . values ( ) ) {
switch ( clientTyp... | Eliminated extra garbage object inside getConnectedClientStats method |
<nb> public class SummaryPage2 extends Request2 {
@ override protected Response serve ( ) {
if ( source == null ) return RequestServer . _http404 . serve ( ) ;
SINGLE
- if ( cols == null ) cols = new int [ Math . min ( source . vecs ( ) . length , max_ncols ) ] ;
- for ( int i = NUMBER0 ; i < cols . length ; ... | fix cols init bug |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ; | Fixed start import on invocation |
<nb> public abstract class TransactionAspectSupport implements BeanFactoryAware , Init
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
protected void clearTransactionManagerCache ( ) {
this . transactionManagerCache . clear ( ) ;
+ this . beanFactory = null ;
}
COMMENT | Do not retain BeanFactory ref |
<nb> public class HttpDownloader extends Downloader {
if ( request . getFeedfileType ( ) == FeedMedia . FEEDFILETYPE_FEEDMEDIA ) {
String contentType = response . header ( STRING0 ) ;
Log . d ( TAG , STRING1 + contentType ) ;
- if ( ! contentType . startsWith ( STRING2 ) && ! contentType . startsWith ( STRING3 ... | Instead of allowing some mime types disallow text types |
<nb> public class NotificationsActor extends ModuleActor {
break ;
}
PendingNotification pendingNotification = allPending . get ( allPending . size ( ) - NUMBER0 - i ) ;
- if ( visiblePeer != null && visiblePeer . equals ( pendingNotification . getPeer ( ) ) ) {
- continue ;
- }
+ SINGLE
+ SINGLE
+ SI... | Fixing removed notifications from opened chat |
<nb> public class Mesh implements Disposable {
Gdx . gl20 . glDrawElements ( primitiveType , count , GL10 . GL_UNSIGNED_SHORT , buffer ) ;
buffer . position ( oldPosition ) ;
buffer . limit ( oldLimit ) ;
- } else
- Gdx . gl10 . glDrawArrays ( primitiveType , offset , count ) ;
+ } else {
+ Gdx . gl20 . g... | fixed bug in mesh |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MainActivity extends AppCompatActivity implements
}
private void search ( String query ) {
- showProgressBar ( mSearchV... | added empty check |
<nb> public class NonConfigurationInstanceProcessor implements ElementProcessor {
{
SINGLE
JBlock initBody = holder . init . body ( ) ;
- ncHolder . initNonConfigurationInstance = initBody . decl ( ncHolder . holderClass , STRING0 , cast ( ncHolder . holderClass , _super ( ) . invoke ( STRING1 ) ) ) ;
+ ncHol... | Call expected method on initialization |
<nb> public class LocalInspectionsPass extends TextEditorHighlightingPass {
private void inspectRoot ( final PsiElement psiRoot , final InspectionManagerEx iManager ) {
final TextRange targetRange = new TextRange ( myStartOffset , myEndOffset ) ;
final Set < PsiElement > workSet = new THashSet < PsiElement > ( ) ... | using psiRoot for visiting |
<nb> class DotComSiteSettings extends SiteSettingsInterface {
if ( mSettings . receivePingbacks != mRemoteSettings . receivePingbacks ) {
params . put ( RECEIVE_PINGBACKS_KEY , String . valueOf ( mSettings . receivePingbacks ) ) ;
}
- SINGLE
- SINGLE
- SINGLE
+ if ( mSettings . commentApprovalRequired != ... | Hooking up manual approval preference |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WebSocketClient {
}
final WebSocketClientHandshake handshake = WebSocketClientHandshake . create ( version , newUri , clientNegotiation ) ;
final Map < String , String > headers = handshake . crea... | Add Origin header |
<nb> public class BeaconManager {
SINGLE
SINGLE
serviceMessenger = null ;
+ SINGLE
+ SINGLE
+ SINGLE
+ mBackgroundMode = false ;
}
}
else { | Revert backgroundMode to false after stopping service so it starts back up in foreground mode |
<nb> public class BalloonImpl implements Disposable , Balloon , LightweightWindow , Posi
public void removeNotify ( ) {
super . removeNotify ( ) ;
- if ( myLayeredPane != null ) {
- final JLayeredPane pane = myLayeredPane ;
- SwingUtilities . invokeLater ( new Runnable ( ) {
- @ override
- public void r... | close rec for balloon ensure remove |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class \ DeploymentUnitKey implements Serializable {
+ public class DeploymentUnitKey implements Serializable {
private static final long serialVersionUID = NUMBER0 ;
private final String name ; | Fix weird typo |
<nb> public class OBase64Utils {
COMMENT
COMMENT
public static byte [ ] decode ( String s ) {
- return decode ( s , NO_OPTIONS ) ;
+ return decode ( s , DONT_GUNZIP ) ;
}
COMMENT | Fixed bug found by bayoda on binary content |
<nb> public class UnnecessaryTypeArgument extends BugChecker
return Description . NO_MATCH ;
}
MethodSymbol methodSymbol = ( MethodSymbol ) sym ;
+
+ int expected = methodSymbol . getTypeParameters ( ) . size ( ) ;
+ int actual = arguments . size ( ) ;
+ if ( actual <= expected ) {
+ return Descriptio... | Defer calling findSuperMethods as late as possible |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Added javadoc explanation about MvpBasePresenter isViewAttached and WeakReference |
<nb> public class ValidationManager {
public static long computeOfflineTotalDocumentInSegments ( List < SegmentMetadata > segmentMetadataList ) {
long totalDocumentCount = NUMBER0 ;
- HashSet < String > segmentGroupIdNameSet = new HashSet < > ( ) ;
-
for ( SegmentMetadata segmentMetadata : segmentMetadataLi... | Removing unused hashset |
<nb> public class Glide {
private int animationId = - NUMBER0 ;
private int placeholderId = - NUMBER0 ;
private int errorId = - NUMBER0 ;
- private Transformation transformation = null ;
- private Downsampler downsampler = null ;
+ private Transformation transformation = Transformation . NONE ;
+ private ... | Add default downsampler and transformations |
<nb> public class CheckDatabaseCharsetAtStartup implements Startable {
@ override
public void start ( ) {
- System . out . println ( STRING0 ) ;
DatabaseCharsetChecker . State state = DatabaseCharsetChecker . State . STARTUP ;
if ( upgradeStatus . isUpgraded ( ) ) {
state = DatabaseCharsetChecker . State ... | Fix Quality flaw |
<nb> final class WellKnownMutability {
. add ( STRING0 )
. add ( STRING1 )
. add ( STRING2 )
+ . add ( STRING3 )
. add ( STRING4 )
. add ( com . google . common . primitives . UnsignedLong . class )
. add ( com . google . common . base . Converter . class ) | Add org joda time Period to list of well known immutable classes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class ServerBootstrap {
<nb> public class ServerBootstrap {
return future ;
}
+ try {
+ channel . config ( ) . setOptions ( parentOptions ) ;
+ } catch ( Exception e ) {
+ future . ... | Revert unnecessary change in Bootstrap |
<nb> final public class LwjglInput implements Input {
}
public boolean isKeyPressed ( int key ) {
+ if ( ! Keyboard . isCreated ( ) ) return false ;
+
if ( key == Input . Keys . ANY_KEY )
return pressedKeys > NUMBER0 ;
else | Fixed rare crash on Keyboard isKeyDown |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Javadoc code snippet |
<nb> public class ReindexFailureTests extends ReindexTestCase {
attempt ++ ;
} catch ( ExecutionException e ) {
logger . info ( STRING0 , attempt ) ;
- assertThat ( e . getMessage ( ) , either ( containsString ( STRING1 ) ) . or ( containsString ( STRING2 ) ) ) ;
+ assertThat ( e . getMessage ( ) ,
+ either... | Reindex tests should expect the right failure |
<nb> public class JavadocEditor extends ModuleElementsEditor {
TableUtil . selectRows ( myTable , new int [ ] { tableModel . getRowCount ( ) - NUMBER0 } ) ;
}
}
- } ) . addExtraAction ( new AnActionButton ( ProjectBundle . message ( STRING0 ) , IconUtil . getAddLinkIcon ( ) ) {
+ } ) . addExtraAction ( new Du... | add javadoc url dumb aware |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class Rule implements Target {
COMMENT
COMMENT
public Collection < Label > getLabels ( final BinaryPredicate < Rule , Att... | Make rule getLabels deterministic |
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- @ beta
- public final Observable < T > switchIfEmpty ( Observable < T > alternate ) {
+ @ experimental
+ public final Observable < T > switchIfEmpty ( Observable < ? extends T > alternate ) {
return lift ( new OperatorSwitchIfEmpty < T > ( a... | Using Experimental covariance and final class |
<nb> public class ScriptGroup extends BaseObj {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
<nb> public class ScriptGroup extends BaseObj {
}
}
-
- | Fix RS doc build DO NOT MERGE |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
class XMLLightweightParser {
SINGLE
<nb> class XMLLightweightParser {
( STRING0 . equals ( head . toString ( ) ) || ( STRING1 . equals ( head . toString ( ) ) ) ) ) {
SINGLE
int end = buffer . length ( ) - readByte + ( i + NUMBER0 )... | Fixed parsing to skip LF CR etc before stream header elements |
<nb> public class SqlGeneratorFactory {
public Sql [ ] generateSql ( SqlStatement [ ] statements , Database database ) {
List < Sql > returnList = new ArrayList < Sql > ( ) ;
+ SqlGeneratorFactory factory = SqlGeneratorFactory . getInstance ( ) ;
for ( SqlStatement statement : statements ) {
- returnList . ... | prevent possible null pointer exception |
<nb> class TaskStackViewTouchHandler implements SwipeHelper . Callback {
mActivePointerId = ev . getPointerId ( index ) ;
mLastMotionX = ( int ) ev . getX ( index ) ;
mLastMotionY = ( int ) ev . getY ( index ) ;
- mLastP = mSv . mLayoutAlgorithm . screenYToCurveProgress ( mLastMotionY ) ;
+ mLastP = layoutAlg... | Fixing merge conflict from DR to master |
<nb> public class DevicePolicyManager {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ deprecated
public static final String EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME | Fix documentation of EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME |
<nb> public class XPPPacketReader {
COMMENT
COMMENT
COMMENT
- private long lastActive ;
+ private long lastActive = System . currentTimeMillis ( ) ;
public XPPPacketReader ( ) { | Initialize lastActive with current time |
<nb> public class JBInsets extends Insets {
}
public static JBInsets create ( @ notnull Insets insets ) {
- return insets instanceof JBInsets ? ( JBInsets ) insets
- : new JBInsets ( insets . top , insets . left , insets . bottom , insets . right ) ;
+ if ( insets instanceof JBInsets ) {
+ JBInsets copy =... | always create a copy of JBInsets |
<nb> public class Vector {
public int getAt ( int index ) {
return elements [ index ] ;
}
+
+ public int size ( ) {
+ return elements . length ;
+ }
} | Implement size method for vector class |
<nb>
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Add missing header comment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class JPABase extends AbstractStandardTest {
}
@ test
+ @ excludein ( Target . MYSQL )
public void Delete_Where_SubQuery_Exists ( ) {
QCat parent = QCa... | Add test exclusion |
<nb> public class VcsRootProblemNotifier {
private static String makeTitle ( @ notnull Collection < VcsRootError > unregisteredRoots , @ notnull Collection < VcsRootError > invalidRoots ) {
String title ;
if ( unregisteredRoots . isEmpty ( ) ) {
- title = STRING0 + pluralize ( STRING1 , invalidRoots . size ( ) ... | vcs Capitalize the VCS word |
<nb> public class OutgoingFileMessage extends StreamMessage
@ visiblefortesting
public synchronized void startTransfer ( )
{
+ if ( completed )
+ throw new RuntimeException ( String . format ( STRING0 ,
+ filename ) ) ;
transferring = true ;
} | Throw RuntimeException if starting transfer of already completed OutgoingFileMessage |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class PingManager extends Manager {
return pingManager ;
}
+ COMMENT
+ COMMENT
+ COMMENT
private static int defaultPingInterva... | Improve PingManager javadoc |
<nb> public class Location2NodesNtree implements Location2IDIndex {
public LocationIDResult findClosest ( final double queryLat , final double queryLon ,
final EdgeFilter edgeFilter ) {
final TIntHashSet storedNetworkEntryIds = findNetworkEntries ( queryLat , queryLon ) ;
- if ( storedNetworkEntryIds . isEmpty ... | never return null as result from gps lookup |
<nb> 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 ;
+ import static NAMESPACE ;
publ... | Use JMX object name helper |
<nb> public final class ScriptIntrinsicBlur extends ScriptIntrinsic {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix minor blur doc bug |
<nb> public class DeepWaterModel extends Model < DeepWaterModel , DeepWaterParameters , Dee
void removeNativeState ( ) {
if ( model_info ( ) . _imageTrain != null ) {
+ water . gpu . deepwater . MXNotifyShutdown ( ) ;
model_info ( ) . _imageTrain . delete ( ) ;
model_info ( ) . _imageTrain = null ;
}
<n... | Add call to MXNotifyShutdown |
<nb> public class HdfsFileInputStream extends InputStream implements Seekable , Positi
mFileInfo = fs . getStatus ( uri ) ;
mHdfsPath = new Path ( mFileInfo . getUfsPath ( ) ) ;
mAlluxioFileInputStream =
- fs . openFile ( uri , OpenFileOptions . defaults ( ) . setReadType ( ReadType . CACHE ) ) ;
+ fs . openF... | Remove the hardcoded read type CACHE from HdfsFileInputStream |
<nb> public class JsonAsserterImpl implements JsonAsserter {
try {
obj = JsonPath . < T > read ( jsonObject , path ) ;
} catch ( Exception e ) {
- throw new AssertionError ( String . format ( STRING0 , path , e ) ) ;
+ final AssertionError assertionError = new AssertionError ( String . format ( STRING1 , path... | corrected way to specify cause of AssertionError |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
final class DexterInstance {
private static final int PERMISSIONS_REQUEST_CODE = NUMBER0 ;
+ private static final... | Replace dexter listener with an empty implementation to avoid memory leaks |
<nb> public class ByteBuddyAgent {
try {
virtualMachineType
. getDeclaredMethod ( LOAD_AGENT_METHOD_NAME , String . class , String . class )
- . invoke ( virtualMachineInstance , agentProvider . resolve ( ) . getAbsolutePath ( ) , null ) ;
+ . invoke ( virtualMachineInstance , agentProvider . resolve ( ) . ge... | Fixed supply of agent argument |
<nb>
package NAMESPACE ;
public interface RuntimeRepl {
- public Object evaluate ( String expression ) throws Exception ;
+ public Object evaluate ( String expression ) throws Throwable ;
}
<nb> public class Runtime implements ChromeDevtoolsDomain {
RuntimeRepl repl = getRepl ( replFactory ) ;
Object ... | RuntimeRepl evaluate should declare Throwable |
<nb> public abstract class PythonRemoteInterpreterManager {
public abstract boolean ensureCanWrite ( @ nullable Object projectOrComponent , PythonRemoteSdkAdditionalData data , String path ) ;
@ nullable
- public abstract PyRemoteProjectSettings showRemoteProjectSettingsDialog ( VirtualFile baseDir ) ;
+ publ... | File chooser for remote project root |
<nb> public class ExpressionStmtCompiler extends StmtCompiler {
return StackItem . Type . STRING ;
else if ( value instanceof CallExprToken ) {
PushCallStatistic statistic = new PushCallStatistic ( ) ;
- writePushCall ( ( CallExprToken ) value , true , false , statistic ) ;
+ writePushCall ( ( CallExprToken )... | Fix static calculation of constants |
<nb> public abstract class BinaryMemcacheEncoder < M extends BinaryMemcacheMessage < H > ,
COMMENT
COMMENT
COMMENT
- public static final int DEFAULT_BUFFER_SIZE = NUMBER0 ;
+ private static final int DEFAULT_BUFFER_SIZE = NUMBER0 ;
@ override
protected ByteBuf encodeMessage ( ChannelHandlerContext ctx ,... | Hide protocol detail from users |
<nb> import NAMESPACE ;
COMMENT
public class SharedContext {
- private BlockingQueue < QueueEntry > stream ;
+ private final BlockingQueue < QueueEntry > stream ;
private Status status ;
public SharedContext ( BlockingQueue < QueueEntry > stream , Status status ) {
<nb> public class SharedContext {
... | Remove unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class QueryRescorerTests extends ElasticsearchIntegrationTest {
}
SINGLE
+ @ ignore
@ test
public void testSmallRescoreWindow ( ) throws Exc... | ignore this for now |
<nb> public class RawTable implements JournalEntryRepresentable {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public RawTable ( long id , int columns , ByteBuffer metadata ) {
mId = id ; | removed return flag in RawTable contructor |
<nb> public final class DisambiguatePropertiesTest extends CompilerTestCase {
}
SINGLE
- SINGLE
+ SINGLE
public void testUntypedCodeWrongDisambiguation1 ( ) {
String js = STRING0
+ STRING1
<nb> public final class DisambiguatePropertiesTest extends CompilerTestCase {
}
SINGLE
- SINGLE
+ SINGL... | Fix typo from previous CL |
<nb> public class ActionItemBadge {
badgeView . setVisibility ( View . GONE ) ;
} else {
badgeView . setVisibility ( View . VISIBLE ) ;
- badgeView . setText ( String . valueOf ( badgeCount ) ) ;
+ badgeView . setText ( badgeCount ) ;
}
menu . setVisible ( true ) ; | Removing unnecessary type conversion |
<nb> public class PGIntervalExpr extends SQLExprImpl implements SQLLiteralExpr , PGExpr
@ override
public boolean equals ( Object o ) {
- return false ;
+ if ( this == o ) return true ;
+ if ( o == null || getClass ( ) != o . getClass ( ) ) return false ;
+
+ PGIntervalExpr that = ( PGIntervalExpr ) o ;... | override equals hashcode |
<nb> public class AssetsController {
COMMENT
private URL getStaticFileFromMetaInfResourcesDir ( String fileName ) {
String finalNameWithoutLeadingSlash
- = normalizePathWithoutLeadingSlash ( fileName ) ;
+ = normalizePathWithoutLeadingSlash ( fileName , true ) ;
URL url = null ;
<nb> public class Asse... | Enforce unix separator for loading webjars |
<nb> class ZoomManager {
SINGLE
final float originalDefault = mDefaultScale ;
SINGLE
+ mDisplayDensity = density ;
setDefaultZoomScale ( density ) ;
float scaleChange = ( originalDefault > FLOAT0 ) ? density / originalDefault : FLOAT1 ;
SINGLE | Fix regression in default zoom setting |
<nb> public class PhysicsCharacter extends PhysicsCollisionObject {
}
public void setJumpSpeed ( float jumpSpeed ) {
- this . jumpSpeed = fallSpeed ;
+ this . jumpSpeed = jumpSpeed ;
setJumpSpeed ( characterId , jumpSpeed ) ;
}
<nb> public class PhysicsCharacter extends PhysicsCollisionObject {
}
... | fix bug in character setJumpSpeed thanks to lyfox |
<nb> public class ReportGenerator {
String [ ] classesDirs = classesPath . split ( STRING0 ) ;
for ( String classesDir : classesDirs ) {
- for ( File clazz : FileUtils . getFiles ( new File ( classesDir ) ,
- coverageIncludes , coverageExcludes ) ) {
+ File classesDirFile = new File ( classesDir ) ;
+ if ... | Do not scan classes directory if it does not exist |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatsInsightsMostPopularFragment extends StatsAbstractInsightsFragm
}
} ) ;
animator . setDuration ( NUMBER0 ) ;
+ animator . setInterpol... | Add inertial deceleration on the Gauge animation |
<nb> public abstract class AbstractTable < Cursor , View , Query > extends AbstractRowset <
table . insertBinary ( columnIndex , rowIndex , buffer ) ;
}
+ protected void insertBinary ( long columnIndex , long rowIndex , ByteBuffer value ) {
+ table . insertBinary ( columnIndex , rowIndex , value ) ;
+ }
+... | Added missing method for byte buffer insertion |
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
if ( Boolean . parseBoolean ( PrivacyManager . getSetting ( null , ActivityMain . this ,
PrivacyManager . cSettingFPermission , Boolean . TRUE . toString ( ) , false ) ) ) {
for ( ApplicationInfoEx appInfo : mListAppAll )
- i... | Do not check permission for all view |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removed unused imports |
<nb> public final class HttpServerExchange extends AbstractAttachable {
if ( wrappers == null ) {
return null ;
}
- StreamSinkChannel channel = gatedResponseChannel ;
+ StreamSinkChannel channel = new HttpResponseChannel ( gatedResponseChannel , bufferPool . allocate ( ) , this ) ;
for ( ChannelWrapper wrap... | Make exchange use HTTP response channel on top of gated channel |
<nb> public final class Realm implements Closeable {
if ( references == null ) {
references = NUMBER0 ;
}
- if ( references == NUMBER0 ) {
- AtomicInteger counter = openRealms . get ( canonicalPath ) ;
- if ( counter == null ) {
- if ( config . shouldDeleteRealmBeforeOpening ( ) ) {
- deleteRealm ( conf... | Removed option of deleting Realm on start |
<nb> public class BraceHighlightingHandler {
TextRange brace2 = iterator . atEnd ( ) ? null : TextRange . create ( iterator . getStart ( ) , iterator . getEnd ( ) ) ;
- highlightBraces ( brace2 , brace1 , matched , false , fileType ) ;
+ highlightBraces ( matched ? brace2 : null , brace1 , matched , false , f... | don t red highlight unmatched brace pairs |
<nb> public class TileTank extends TileBuildCraft implements ITankContainer
public void readFromNBT ( NBTTagCompound data )
{
super . readFromNBT ( data ) ;
- LiquidStack liquid = new LiquidStack ( NUMBER0 , NUMBER0 , NUMBER0 ) ;
- liquid . readFromNBT ( data . getCompoundTag ( STRING0 ) ) ;
- tank . setLiq... | Added compatibility NBTLoad in TileTank for transitioning from old worlds |
<nb> public final class JetDescriptorIconProvider {
}
if ( descriptor . getContainingDeclaration ( ) instanceof ClassDescriptor ) {
- if ( Modality . ABSTRACT == ( ( FunctionDescriptor ) descriptor ) . getModality ( ) ) {
+ if ( Modality . ABSTRACT == functionDescriptor . getModality ( ) ) {
return Platform... | fixed cosmetic issues |
<nb> public class UserPresenceView extends LinearLayout {
mContext . getContentResolver ( ) , providerId ,
ImpsConfigNames . SUPPORT_USER_DEFINED_PRESENCE ) ;
- if ( STRING0 . equalsIgnoreCase ( value ) ) {
+ boolean showEdit = true ;
+
+ SINGLE
+ if ( showEdit ) {
EditText statusEdit = ( EditText ) f... | fixing edit view |
<nb> public class BitmapUtil {
return scale ;
}
- }
+ }
<nb> public interface CacheManager {
void clean ( ) ;
- }
+ }
<nb> public class FileUtil {
}
}
- }
+ }
<nb> public class FlushedInputStream extends FilterInputStream {
}
return totalBytesSkipped ;
}
- }
+ }
<nb> publ... | Fixed checkstyle reports of NewlineAtEndOfFileCheck |
<nb> class XMLSerializer extends AbstractSerializer {
final char ch = data . charAt ( i ) ;
switch ( ch ) {
case STRING0 :
+ case STRING1 :
buffer . append ( ch ) ;
break ;
default : | do not ignore end of line symbols in bookmarks |
<nb> public class BeanSerializer implements Serializer {
}
writer . beginClass ( model ) ;
+ bodyStart ( model , writer ) ;
+
SINGLE
for ( Property property : model . getProperties ( ) ) {
if ( propertyAnnotations ) {
<nb> public class BeanSerializer implements Serializer {
writer . end ( ) ;
}
... | added template methods for BeanSerializer customizations |
<nb> import NAMESPACE ;
COMMENT
public final class Errors implements Serializable {
- SINGLE
- private static final boolean allowNullsBadBadBad
- = STRING0 . equals ( System . getProperty ( STRING1 ) ) ;
-
COMMENT
COMMENT
COMMENT
<nb> public final class Errors implements Serializable {
COMMENT
... | Killing bad bad bad for release |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultMethodShimGenerator extends TreeVisitor {
GeneratedMethodBinding binding = new GeneratedMet... | Use the existing Modifier DEFAULT constant instead of adding our own |
<nb> public class SocketProperties {
COMMENT
COMMENT
COMMENT
- protected Boolean tcpNoDelay = null ;
+ protected Boolean tcpNoDelay = Boolean . TRUE ;
COMMENT
COMMENT | keep the correct default value |
<nb> public class HistoryWriterImpl
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class HistoryWriterImpl
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- CO... | Adds some javadocs |
<nb> public class SASLDigestMD5Mechanism extends SASLMechanism {
}
protected String getName ( ) {
- return STRING0 ;
+ return STRING1 ;
}
} | Fixed typo in SASL name |
<nb> public final class PsiUtil extends PsiUtilBase {
}
} else {
final PsiClass superClass = clazz . getSuperClass ( ) ;
- return superClass == null || hasDefaultConstructor ( superClass ) ;
+ return superClass == null || hasDefaultConstructor ( superClass , true ) ;
}
return false ;
} | Class has default constructor if it has no declarated constructors and it s parent has protected constructor without parameters |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.