diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class BlockGenericPipe extends BlockBuildCraft {
return true ;
}
}
- if ( rayTraceResult != null && ( rayTraceResult . hitPart == Part . Pipe || rayTraceResult . hitPart == Part . Gate ) ) {
+ if ( rayTraceResult != null && ( rayTraceResult . hitPart != Part . Facade ) ) {
if ( addFacade ( playe... | Allow placement of Facades over Plugs |
<nb> public class HttpURI
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public String getPath ( )
{ | Fixing javadoc on HttpURI getPath |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ retention ( RUNTIME )
- @ target ( { ElementType . FIELD , ElementType . PARAMETER } )
+ @ target ( { ElementType . FIELD , ElementType . PARAMETER , ElementType . METHOD } )
@ bindingannotation
public @ interface RequestParameters { } | Adding ElementType METHOD to play nice with ProviderMethods |
<nb> public abstract class Handshake {
String [ ] requestedSubprotocolArray = PATTERN . split ( requestedSubprotocols ) ;
String subProtocol = supportedSubprotols ( requestedSubprotocolArray ) ;
- if ( subProtocol != null ) {
+ if ( subProtocol != null && ! subProtocol . isEmpty ( ) ) {
exchange . setRespon... | Fix sub protocol negotiation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class PGL {
events = AWT ;
} else if ( PApplet . platform == PConstants . LINUX ) {
toolkit = NEWT ; SINGLE
+ events = NEWT ;
} else if ( PApplet . platform == PCon... | adding separate toolkit events to hack around the erratic mouse behavior |
<nb> public class PyTypingTest extends PyTestCase {
STRING0 ) ;
}
+ public void testFlattenUnions ( ) {
+ doTest ( STRING1 ,
+ STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING0 ) ;
+ }
+
private void doTest ( @ notnull String expectedType , @ notnull String text ) {
myFixture . copyDirectoryToProjec... | Added test for flattening union types |
<nb> public class DefaultBroadcaster implements Broadcaster {
if ( destroyed . get ( ) || broadcasterCache == null ) return ;
Object msg = cacheStrategy == BroadcasterCache . STRATEGY . AFTER_FILTER ? entry . message : entry . originalMessage ;
try {
- String uniqueHashCode = String . valueOf ( entry . future .... | Fix possible NPE |
<nb> public class CordovaWebView extends WebView {
if ( LOG . isLoggable ( LOG . DEBUG ) && ! url . startsWith ( STRING0 ) ) {
LOG . d ( TAG , STRING1 ) ;
}
- super . loadUrl ( url ) ;
+ if ( url . startsWith ( STRING2 ) || url . indexOf ( this . baseUrl ) == NUMBER0 || url . startsWith ( STRING0 ) || this . ... | DroidGap loadUrl follows a path that never checks the white list |
<nb> public class Preferences
{
private static Preferences preferences ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public static synchronized Preferences getPreferences ( Context context )
{
if ( preferences == null ) | Terminate pointless comment |
<nb> public class RecyclerView extends ViewGroup {
if ( mEatRunOnAnimationRequest ) {
mReSchedulePostAnimationCallback = true ;
} else {
+ removeCallbacks ( this ) ;
ViewCompat . postOnAnimation ( RecyclerView . this , this ) ;
}
} | Ensure only a single scroller animation callback per frame |
<nb> public class EnergenieBinding extends AbstractActiveBinding < EnergenieBindingProv
private void sendLogOut ( String pmsId ) {
String pmsIp = pmsIpConfig . get ( pmsId ) ;
- String url = STRING0 + pmsIp ;
+ String url = STRING0 + pmsIp + STRING1 ;
try {
HttpUtil . executeUrl ( STRING2 , url , timeou... | Fix a bug preventing proper logout from energenie devices |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public interface FutureCallback < V > {
COMMENT
COMMENT
COMMENT
- void onSuccess ( V result ) ;
+ void onSuccess ( @ nullable V result ) ;
COMMENT
COMMENT | Annotate FutureCallback onSuccess parameter as Nullable |
<nb> public interface FrameworkConfig {
COMMENT
COMMENT
COMMENT
- String ATMOSPHERE_SERVLET = AtmosphereServlet . class . getName ( ) ;
+ String ATMOSPHERE_SERVLET = STRING0 ;
COMMENT
COMMENT
COMMENT | Remove dependencies on Servlet |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class IntegerRenderer extends Renderer < Integer > {
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class StringRenderer extends Renderer < String > { | Added back author annotation to test renrerers |
<nb> public class TransactionConfidence {
getAppearedAtChainHeight ( ) , getDepthInBlocks ( ) ) ) ;
break ;
}
+ if ( source != Source . UNKNOWN )
+ builder . append ( STRING0 ) . append ( source ) ;
return builder . toString ( ) ;
} | Print source to toString |
<nb> public class CommanderVisitor implements UnitVisitor {
@ override
public void visitSoldier ( Soldier soldier ) {
- SINGLE
-
}
@ override
public void visitSergeant ( Sergeant sergeant ) {
- SINGLE
-
}
@ override
<nb> public class SergeantVisitor implements UnitVisitor {
@ override ... | Removed TODO markers from visitor example |
<nb> public class Extensions {
public static void cleanRootArea ( @ notnull Disposable parentDisposable ) {
final ExtensionsAreaImpl oldRootArea = ( ExtensionsAreaImpl ) getRootArea ( ) ;
final ExtensionsAreaImpl newArea = createRootArea ( ) ;
+ ourRootArea = newArea ;
oldRootArea . notifyAreaReplaced ( ) ;
... | fix the tests |
<nb> final class FreemarkerViewProcessor extends AbstractTemplateProcessor < Template >
@ optional final ServletContext servletContext ) {
super ( config , servletContext , STRING0 , STRING1 ) ;
- ;
-
this . factory = getTemplateObjectFactory ( serviceLocator , FreemarkerConfigurationFactory . class , new V... | Remove errant semicolon |
<nb> public class PublishClusterStateAction extends AbstractComponent {
if ( lastSeenClusterState != null && lastSeenClusterState . supersedes ( incomingState ) ) {
final String message = String . format (
Locale . ROOT ,
- STRING0 +
- STRING1 ,
+ STRING2 +
+ STRING3 ,
incomingState . version ( ) ,
in... | Reword received superseded cluster state message |
<nb> public class SpanishVerbStripper {
return ( pStrippable . matcher ( word ) . find ( ) || pIrregulars . matcher ( word ) . find ( ) ) ;
}
- public static String removeAccents ( String word ) {
+ private static String removeAccents ( String word ) {
if ( accentedInfinitives . contains ( word ) )
return... | Make VerbStripper method private |
<nb> public class BurnCpuChaosType extends ScriptChaosType {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public BurnCpuChaosType ( MonkeyConfiguration config ) {
super ( config , STRING0 ) ;
<nb> public class BurnIoChaosType extends ScriptChaosType {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
p... | Fix javadoc errors |
<nb> public class FileUtil {
path . substring ( NUMBER0 , path . lastIndexOf ( STRING0 ) ) ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean isExistingFile ( File file ) {
+ return file . exists ( ) && file . isFile ( ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolea... | Added two utils |
<nb> public class PinnedSectionListView extends ListView {
SINGLE
LayoutParams layoutParams = ( LayoutParams ) pinnedView . getLayoutParams ( ) ;
- int heightMode = MeasureSpec . getMode ( layoutParams . height ) ;
+
+ int heightMode , heightSize ;
+ if ( layoutParams == null ) {
+ heightMode = MeasureS... | using default values if layoutParams are null |
<nb> public class SessionServer {
if ( session == null )
session = sm . createSession ( exchange , sessionConfig ) ;
session . invalidate ( exchange ) ;
-
+
exchange . setResponseCode ( StatusCodes . TEMPORARY_REDIRECT ) ;
exchange . getResponseHeaders ( ) . put ( Headers . LOCATION , STRING0 ) ;
exchan... | Added session destroy example |
<nb> import NAMESPACE ;
public class Pump_InMemory_Import_Then_Save_To_Disk {
public static void main ( String [ ] args ) {
+ if ( NUMBER0 == NUMBER0 ) return ;
SINGLE
SINGLE | fix failing test case from previous commit |
<nb> public class RequestServer extends NanoHTTPD {
if ( uri . startsWith ( STRING0 ) ) return ;
if ( uri . startsWith ( STRING1 ) ) return ;
if ( uri . contains ( STRING2 ) ) return ;
+ if ( uri . contains ( STRING3 ) ) return ;
Log . info ( STRING4 + versioned_path + STRING5 + pattern + STRING6 + parms ) ... | Add WaterMeterCpuTicks filter in maybeLogRequest |
<nb> public class CppCompletionManager implements CompletionManager
if ( invalidationToken_ . isInvalid ( ) )
return ;
+ SINGLE
+ closeCompletionPopup ( ) ;
+
if ( result . getCompletions ( ) . length ( ) == NUMBER0 )
{
popup_ = new CompletionListPopupPanel ( new String [ NUMBER0 ] ) ; | close existing completion popup before opening a new one |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NetworkTest extends Func {
public String [ ] nodes ; SINGLE
@ override protected void execImpl ( ) {
+ logStart ( ) ;
microseconds = new double [ msg_size... | Log the NetworkTest to stdout |
<nb> public enum WarningLevel {
DiagnosticGroups . CONST , CheckLevel . WARNING ) ;
options . setWarningLevel (
DiagnosticGroups . CHECK_REGEXP , CheckLevel . WARNING ) ;
+ options . setWarningLevel (
+ DiagnosticGroups . STRICT_MODULE_DEP_CHECK , CheckLevel . WARNING ) ;
SINGLE
options . setWarningLeve... | turn on xmodule dep check in VERBOSE mode |
<nb> public class DownloadService extends Service {
SINGLE
manager . updateFeed ( service , feed ) ;
+ queryDownloads ( ) ;
}
COMMENT
<nb> public class DownloadService extends Service {
image . setDownloaded ( true ) ;
requester . removeFeedImage ( image ) ;
manager . setFeedImage ( service , imag... | Made sure that DownloadService shuts down when appropriate |
<nb> public class OrientJdbcStatementDMLtest extends OrientJdbcBaseTest {
stmt . executeUpdate ( STRING0 ) ;
stmt . executeUpdate ( STRING1 ) ;
stmt . executeUpdate ( STRING2 ) ;
+ stmt . close ( ) ;
SINGLE
ODatabaseDocumentTx database = conn . getDatabase ( ) ;
<nb> public class OrientJdbcStatementDMLt... | cleanup commented code |
<nb> public class MapCommandTest extends VimTestCase {
typeText ( commandToKeys ( STRING0 ) ) ;
assertExOutput ( STRING1 ) ;
}
+
+ public void testRecursiveMapping ( ) {
+ configureByText ( STRING2 ) ;
+ typeText ( commandToKeys ( STRING3 ) ) ;
+ typeText ( commandToKeys ( STRING4 ) ) ;
+ typeText ( c... | Added test for recursive key mapping |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public abstract class Downloader extends Thread {
super ( ) ;
this . downloadService = downloadService ;
this . status = status ;
+ this . status . setStatusMsg ( R . string . download_pending ) ;
... | Set download status message to pending while it s not being |
<nb> public final class LRFUEvictor extends BlockStoreEventListenerBase implements Ev
COMMENT
private StorageDirView cascadingEvict ( long bytesToBeAvailable , BlockStoreLocation location ,
EvictionPlan plan , List < Map . Entry < Long , Double > > sortedCRF ) {
- Preconditions . checkNotNull ( location ) ;
-... | Removed unnecessary validations |
<nb> public class ApplicationInfo extends PackageItemInfo implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
public int flags = NUMBER0 ; | Fix build error |
<nb> public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
}
VirtualFile result ;
+ final String path = fromFile . getPath ( ) ;
if ( myTempDirFixture instanceof LightTempDirTestFixtureImpl ) {
- VfsRootAccess . allowRootAccess ( fromFile . getPath ( ) ) ;
+ VfsRootAccess . allo... | revoke access after the test |
<nb> public class Ajp13Connection extends BlockingHttpConnection
public void parsedRequestAttribute ( String key , Buffer value ) throws IOException
{
- _request . setAttribute ( key , value . toString ( ) ) ;
+ if ( value == null )
+ _request . removeAttribute ( key ) ;
+ else
+ _request . setAttribute... | ignore null attribute values |
<nb> public class JavaWriter implements Closeable {
COMMENT
private void emitModifiers ( Set < Modifier > modifiers ) throws IOException {
+ if ( modifiers . isEmpty ( ) ) {
+ return ;
+ }
SINGLE
if ( ! ( modifiers instanceof EnumSet ) ) {
modifiers = EnumSet . copyOf ( modifiers ) ;
<nb> public fin... | Skip work when modifier set is empty |
<nb> public class EditPeopleControlSet extends PopupControlSet {
new JSONObject ( ) . put ( STRING0 , R . drawable . icn_friends )
. put ( CONTACT_CHOOSER_USER , true ) ) ;
int contactsIndex = addUnassigned ? NUMBER0 : NUMBER1 ;
- boolean addContactPicker = Preferences . getBoolean ( R . string . p_use_contact_... | Don t show contact picker if no contact picker activity is available |
<nb> public class NettyResponse implements Response {
for ( HttpResponseBodyPart part : bodyParts )
target . put ( part . getBodyPartBytes ( ) ) ;
+ target . flip ( ) ;
return target ;
} | Rewinding NettyResponse s BodyPart ByteBuffer |
<nb> public abstract class IteratingCallback implements Callback
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- protected abstract Action process ( ) throws Exception ;
+ protected abstract Action process ( ) throws Throwable ;
COMMENT
COMMENT | Allow process to throw Throwable which we catch anyway |
<nb> public class PlayerEvent extends LivingEvent
this . block = block ;
this . metadata = metadata ;
this . originalSpeed = original ;
+ this . newSpeed = original ;
}
}
} | Fix bug in last commit that caused block to not break |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class TestLoadGraph { | Fix wrong imports |
<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 ;
@ configuration
@ enablea... | Tweak AMQP sample slightly |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class LitResAuthenticationManager extends NetworkAuthenticationManager {
- private boolean mySidChecked ;
+ private volatile boolean mySidChecked ;
private final ZLStringOption mySidUserNameOption ;
private final ZLStringOption mySidOption ;
private fi... | fixed litres bookshelf opening |
<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 NA... | fix starting debugger for non java configurations |
<nb> public class XmlDatabaseDAO implements DatabaseDAO {
else if ( elementPath . equalsIgnoreCase ( STRING0 ) ) {
String checksumStr = attributes . getValue ( STRING1 ) ;
byte [ ] checksum = StringUtil . fromHex ( checksumStr ) ;
- int size = Integer . parseInt ( attributes . getValue ( STRING2 ) ) ;
+ long ... | fix a bug in database xml reading when the file size was read as an int rather than a long |
<nb> public class DividerPolygon {
@ override
public int transform ( int line ) {
int yOffset = editor . logicalPositionToXY ( new LogicalPosition ( line , NUMBER0 ) ) . y ;
+ yOffset -- ; SINGLE
final JComponent header = editor . getHeaderComponent ( ) ;
int headerOffset = header == null ? NUMBER0 : head... | simplify divider painting |
<nb> public class SmaliDecoder {
file . resolveSibling ( fileName + STRING0 ) , Charset . defaultCharset ( ) )
) {
TypeName type = TypeName . fromPath ( mOutDir . relativize ( file . resolveSibling ( fileName ) ) ) ;
- out . write ( STRING1 + type . package_ + STRING2 + type . getName ( true , true ) + STRING3 ... | Now adding line breakpoints when debugging should be easier in Eclipse Netbeans and IDEA |
<nb> public abstract class HardwareRenderer {
abstract void draw ( View view , View . AttachInfo attachInfo , int yOffset ) ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
abstract DisplayList createDisplayList ( ) ;
<nb> public final class ViewRoot exte... | Don t set hwAccelerated true when libhwui is not present |
<nb> public class DeepLearningV2 extends SupervisedModelBuilderSchema < DeepLearning , De
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
- @ api ( help = STRING0 , level = API . Level . critical , direction = API . Direction . INOUT )
+ @ api ( help = STRING1 , level = API . Level . cri... | Remove mention of grid search |
<nb> public class MockPersistentPresenceOperationSet
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed javadoc conflict |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public final class ProtoBufJournalFormatter implements JournalFormatter { | Fix javadoc wording |
<nb> public final class ActivityManagerService extends ActivityManagerNative
return ;
}
- mRecentTasks = mTaskPersister . restoreTasksLocked ( ) ;
- if ( ! mRecentTasks . isEmpty ( ) ) {
- mStackSupervisor . createStackForRestoredTaskHistory ( mRecentTasks ) ;
+ if ( mRecentTasks == null ) {
+ mRecentTa... | Only start TaskPersister once |
<nb> public class LocationManagerService extends ILocationManager . Stub implements Run
COMMENT
@ override
public ProviderProperties getProviderProperties ( String provider ) {
+ if ( mProvidersByName . get ( provider ) == null ) {
+ return null ;
+ }
+
checkPermissionForProvider ( getBestCallingPermiss... | Handle unknown case in LocationManager getProvider |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FilterListWrapperActivity extends AstridWrapperActivity {
setContentView ( R . layout . filter_list_wrapper_activity ) ;
if ( findViewByI... | Fixed a bug with an occasional crash when rotating FLA |
<nb> public abstract class StandOutWindow extends Service {
int totalDeltaX = window . touchInfo . lastX - window . touchInfo . firstX ;
int totalDeltaY = window . touchInfo . lastY - window . touchInfo . firstY ;
- Log . d ( TAG , STRING0 + totalDeltaX + STRING1 + totalDeltaY ) ;
-
switch ( event . getActi... | holy cow FLAG_ALT_FOCUSABLE_IM was causing all sorts of trouble |
<nb> public abstract class StatementCreatorUtils {
else if ( inValue instanceof SqlValue ) {
( ( SqlValue ) inValue ) . setValue ( ps , paramIndex ) ;
}
- else if ( sqlType == Types . VARCHAR || sqlType == Types . LONGVARCHAR ||
- ( sqlType == Types . CLOB && isStringValue ( inValue . getClass ( ) ) ) ) {
+... | StatementCreatorUtils populates NVARCHAR LONGNVARCHAR NCLOB via setString as well |
<nb> public class IssueUpdater implements BatchComponent , ServerComponent {
return false ;
}
- public boolean setResolution ( DefaultIssue issue , String resolution , IssueChangeContext context ) {
+ public boolean setResolution ( DefaultIssue issue , @ nullable String resolution , IssueChangeContext context... | Fix minor quality flaw |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TransportClient extends AbstractClient {
. put ( NettyTransport . PING_SCHEDULE . getKey ( ) , STRING0 ) SINGLE
. put ( Int... | remove needless settings from transport client |
<nb> public class PostsListPost {
Date d = new Date ( ) ;
String postStatus = StringUtils . notNullStr ( status ) ;
SINGLE
- if ( getDateCreatedGmt ( ) - TEN_SECONDS_MILLIS > d . getTime ( ) && postStatus . equals ( STRING0 ) ) {
- postStatus = STRING1 ;
+ if ( getDateCreatedGmt ( ) - TEN_SECONDS_MILLIS > d... | Fixed some hard coded strings replaced with PostStatus methods |
<nb> public final class PageContentRepository {
SINGLE
renderedPage . state = RenderedPage . STATE_RENDERED ;
+ SINGLE
+ mRenderedPage . content . invalidateSelf ( ) ;
+
SINGLE
if ( mCallback != null ) {
mCallback . onPageContentAvailable ( renderedPage . content ) ; | Redraw the UI when a print page preview is updated |
<nb> public class AnnotationsTest extends TestBase {
@ mock List list ;
@ mock final Map map = new HashMap ( ) ;
+ @ suppresswarnings ( STRING0 )
+ @ mockitoannotations.mock List listTwo ;
+
@ before
public void setup ( ) {
MockitoAnnotations . initMocks ( this ) ;
<nb> public class AnnotationsTest ... | kept single test that exercises deprecated API |
<nb> public class WifiConfiguration implements Parcelable {
}
COMMENT
- public boolean isVisibleToUser ( int userId ) {
- return shared || ( UserHandle . getUserId ( creatorUid ) == userId ) ;
- }
-
- COMMENT
public void setPasspointManagementObjectTree ( String passpointManagementObjectTree ) {
mPa... | Remove wifiConfiguration isVisibleToUser |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AppLog {
Iterator < LogEntry > it = mLogEntries . iterator ( ) ;
int lineNum = NUMBER0 ;
while ( it . hasNext ( ) ) {
+ LogEntry entry = i... | Add date to plaintext log |
<nb> public final class CompileTask
this . warnings = new LinkedList < > ( ) ;
}
- private CompilerOptions . LanguageMode parseLanguage ( String value ) {
+ private static CompilerOptions . LanguageMode parseLanguageMode ( String value ) {
switch ( value ) {
case STRING0 :
case STRING1 :
<nb> public f... | Make parseLanguage method static |
<nb> public class ReaderPostDetailFragment extends Fragment
SINGLE
showError ( null ) ;
+ SINGLE
+ mSignInButton . setVisibility ( View . GONE ) ;
+
Intent parentIntent = getActivity ( ) . getIntent ( ) ;
parentIntent . setClass ( getActivity ( ) , SignInActivity . class ) ;
startActivityForResult ( p... | Hide sign in button to cleanup |
<nb> public class TransportSQLActionTest extends AbstractSharedCrateClusterTest {
@ test
public void testSelectObject ( ) throws Exception {
createIndex ( STRING0 ) ;
- client ( ) . prepareIndex ( STRING0 , STRING1 , STRING2 ) . setRefresh ( true )
+ client ( ) . prepareIndex ( STRING0 , STRING1 , STRING2 )
... | Fix select object test failures |
<nb> public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
}
break ;
case TextToSpeech . LANG_AVAILABLE :
+ case TextToSpeech . LANG_COUNTRY_AVAILABLE :
+ case TextToSpeech . LANG_COUNTRY_VAR_AVAILABLE :
mTts . setLanguage ( new Locale ( language ) ) ;
break ;
case TextToSpeech . LANG_... | Initialize country and dialect specific engines |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ; | Remove old import of EscapeUtils to hopefully fix build |
<nb> public interface LivingEntity extends Entity {
COMMENT
COMMENT
public Snowball throwSnowball ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Arrow shootArrow ( ) ;
} | Added LivingEntity shootArrow |
<nb> public class PipOverlayActivity extends Activity implements PipManager . Listener
private View mGuideOverlayView ;
private final Runnable mHideGuideOverlayRunnable = new Runnable ( ) {
public void run ( ) {
- SINGLE
- SINGLE
+ mGuideOverlayView . setVisibility ( View . INVISIBLE ) ;
}
} ; | Temporarily disable overlay text bubble timeout |
<nb> public class TextureHelper extends AbstractBlenderHelper {
Texture tex = dataRepository . getAssetManager ( ) . loadTexture ( texKey ) ;
image = tex . getImage ( ) ;
} catch ( AssetNotFoundException e ) {
- LOGGER . warning ( STRING0 + e . getLocalizedMessage ( ) ) ;
+ LOGGER . warning ( STRING1 + e . ge... | fix small typo in BlenderLoader |
<nb> public class FeedSubscriptionService {
sub . setTitle ( title . substring ( NUMBER0 , Math . min ( NUMBER1 , title . length ( ) ) ) ) ;
feedSubscriptionDAO . saveOrUpdate ( sub ) ;
+ SINGLE
+ SINGLE
+ newSubscription = false ;
if ( newSubscription ) {
List < FeedEntryStatus > statuses = Lists . new... | skipping initial entries marking as the query takes too long to complete and locks the database |
<nb> public class WXEnvironment {
COMMENT
COMMENT
- public static String JS_LIB_SDK_VERSION = STRING0 ;
+ public static String JS_LIB_SDK_VERSION = STRING1 ;
- public static String WXSDK_VERSION = STRING2 ;
+ public static String WXSDK_VERSION = STRING3 ;
public static Application sApplication ;
pub... | android update sdk and jsf version |
<nb> import NAMESPACE ;
COMMENT
public class VelocityComponent extends UriEndpointComponent {
private VelocityEngine velocityEngine ;
+
+ public VelocityComponent ( ) {
+ super ( VelocityEndpoint . class ) ;
+ }
public VelocityEngine getVelocityEngine ( ) {
return velocityEngine ;
<nb> public clas... | Fixed the CS error of camel velocity |
<nb> public class ImmutableASTTransformation implements ASTTransformation , Opcodes {
private static final Token ASSIGN = Token . newSymbol ( Types . ASSIGN , - NUMBER0 , - NUMBER0 ) ;
public void visit ( ASTNode [ ] nodes , SourceUnit source ) {
- if ( ! ( nodes [ NUMBER1 ] instanceof AnnotationNode ) || ! ( n... | tweak internal error message for Immutable |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ functionalinterface
public interface ContextCustomizer {
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ functionalinterface
public interface ContextCustomizerFactory {
COMMENT | Annotate ContextCustomizer Factory with FunctionalInterface |
<nb> public abstract class CharEscaper extends Escaper {
COMMENT
COMMENT
COMMENT
- protected String escapeSlow ( String s , int index ) {
+ protected final String escapeSlow ( String s , int index ) {
int slen = s . length ( ) ;
SINGLE
<nb> public abstract class Escaper {
COMMENT
COMMENT
COMMENT... | Make CharEscaper escapeSlow final as UnicodeEscaper escapeSlow already is |
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ COMMENT
COMMENT
public interface SessionCookieConfig {
<nb> public interface SessionCookieConfig {
COMMENT
public void setMaxAge ( int MaxAge ) ;
- public int getHttpOnly ( ) ;
+ public int getMaxAge ( ) ;
} | Fix copy and paste error |
<nb> public class InputMethodService extends AbstractInputMethodService {
SINGLE
return false ;
}
- Configuration config = getResources ( ) . getConfiguration ( ) ;
- if ( config . keyboard != Configuration . KEYBOARD_NOKEYS ) {
+ if ( ! mSettingsObserver . shouldShowImeWithHardKeyboard ( ) &&
+ getResour... | Fix a behavior change in Show software keyboard |
<nb> public class DashChunkSource implements ChunkSource {
if ( initializationChunk . hasSampleFormat ( ) ) {
representationHolder . sampleFormat = initializationChunk . getSampleFormat ( ) ;
}
- if ( initializationChunk . hasSeekMap ( ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( representationHolder . segme... | Ignore stream defined index if manifest defines one |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class UnresolvedRefCreateFunctionQuickFix implements LocalQuickFix {
}
function = CodeInsightUtilBase . forcePsiPostprocessAndRestoreElement ( funct... | added param visitor to createfunctionQuickFix |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestRecoveryLogTimingIssues extends AbstractSubProcessTestBase
dataSource . get... | Fixed compilation error |
<nb> public class WebView extends AbsoluteLayout
if ( hscroll != NUMBER0 || vscroll != NUMBER0 ) {
final int vdelta = ( int ) ( vscroll * getVerticalScrollFactor ( ) ) ;
final int hdelta = ( int ) ( hscroll * getHorizontalScrollFactor ( ) ) ;
- if ( pinScrollBy ( hdelta , vdelta , true , NUMBER0 ) ) {
+ if ( ... | Improve browser scrolling when using the mouse wheel |
<nb> public class MessageParser extends AbstractParser implements
}
private Message parseOtrChat ( MessagePacket packet , Account account ) {
- boolean properlyAddressed = ( ! packet . getTo ( ) . isBareJid ( ) )
- || ( account . countPresences ( ) == NUMBER0 ) ;
- final Jid from = packet . getFrom ( ) ;
... | fixed crashing on unparsed jids |
<nb> public final class BlockWorkerClientRestApiTest extends RestApiTest {
}
@ test
- public void asyncCheckpoint ( ) throws Exception {
- Map < String , String > params = new HashMap < > ( ) ;
- params . put ( STRING0 , STRING1 ) ;
-
- new TestCase ( mHostname , mPort ,
- getEndpoint ( BlockWorkerCli... | Remove unused test |
<nb> public class PeopleInviteFragment extends Fragment implements
populateUsernameButtons ( usernames ) ;
}
- final boolean isPrivateSite = isPrivateSite ( ) ;
-
View roleContainer = view . findViewById ( R . id . role_container ) ;
roleContainer . setOnClickListener ( new View . OnClickListener ( ) {
... | Removes unnecessary local variable |
<nb> class TvInputHardwareManager implements TvInputHal . Callback {
synchronized ( mImplLock ) {
mAudioSource = null ;
mAudioSink . clear ( ) ;
- mAudioPatch = null ;
+ if ( mAudioPatch != null ) {
+ mAudioManager . releaseAudioPatch ( mAudioPatch ) ;
+ mAudioPatch = null ;
+ }
}
}
} ;
<nb> cla... | Release an existing audio patch before creating a new one |
<nb> public class KeyguardViewMediator implements KeyguardViewCallback ,
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void onScreenTurnedOff ( int why ) {
synchronized ( this ) {
<nb> public class KeyguardViewMediator implements KeyguardViewCallback ,
sender... | Do not show keyguard if screen is turned off by proximity sensor |
<nb> public class LanguageBasePlugin implements Plugin < Project > {
modelNode . addLink ( ModelCreators . of ( tasksNodeReference , BiActions . doNothing ( ) )
. withProjection ( new UnmanagedModelProjection < Collection < Task > > ( taskCollectionType ) )
. descriptor ( descriptor + STRING0 )
+ . hidden ( tru... | Hide task container of top level binaries from model report |
<nb> public interface SubscriptionRequestListener {
void onSubScriptionRequest ( Contact from ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ void onUnSubScriptionRequest ( Contact from ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | add handler for request to unsubscribe |
<nb>
-
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix a typo in package description |
<nb> 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 ;
import static NAMESPACE ; ... | Remove unused imports |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import static NAMESPACE ;
public class SyslogAppenderFactoryTest {
<nb> public class SyslogAppenderFactoryTest {
@ test
... | Fix test to work with new AsyncAppender |
<nb> class ASTTable extends ASTOp {
SINGLE
Key keys [ ] = Vec . VectorGroup . VG_LEN1 . addVecs ( NUMBER0 ) ;
AppendableVec v0 = new AppendableVec ( keys [ NUMBER1 ] ) ;
+ v0 . _domain = fr . vecs ( ) [ NUMBER1 ] . domain ( ) ;
NewChunk c0 = new NewChunk ( v0 , NUMBER1 ) ;
for ( int i = NUMBER1 ; i < domain... | Set categorical col domain correctly in table |
<nb> public class MonitorTest {
}
@ test
- public void force_stop_if_too_long ( ) throws Exception {
- SINGLE
- }
-
- @ test
public void fail_to_start_if_bad_class_name ( ) throws Exception {
monitor = newDefaultMonitor ( ) ;
JavaCommand command = new JavaCommand ( STRING0 )
<nb> import NAMESPAC... | Fix quality flaws |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
+
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class HttpsArgsParser extends StartArgsParser {
retur... | fixed import style check in moco defense test |
<nb> public class FloatingActionMode extends ActionMode {
public void updateViewLocationInWindow ( ) {
checkToolbarInitialized ( ) ;
mOriginatingView . getLocationInWindow ( mViewPosition ) ;
- mViewRect . set (
- mViewPosition [ NUMBER0 ] ,
- mViewPosition [ NUMBER1 ] ,
- mViewPosition [ NUMBER0 ] + mOri... | Hide the floatingtoolbar when content rect is invisible |
<nb> public class OFileClassic extends OFile {
@ override
public void close ( ) throws IOException {
- setSoftlyClosed ( true ) ;
+ if ( channel != null )
+ setSoftlyClosed ( true ) ;
+
if ( internalWriteBuffer != null )
internalWriteBuffer = null ;
<nb> public class OStorageLocal extends OStorage... | Removed errors on closing a partially open database |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.