diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class HtmlScriptLanguageInjector implements MultiHostInjector {
}
String mimeType = scriptTag . getAttributeValue ( STRING0 ) ;
Collection < Language > languages = Language . findInstancesByMimeType ( mimeType ) ;
- Language language = languages . isEmpty ( ) ? StdLanguages . TEXT : languages . iter... | treat unknown mimetype with template substring as HTML |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class DropwizardServiceRule < S extends Service , C extends Configuration > implements TestRule {
+ p... | Removed some redundant stuff from the JUnit rule |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class Evaluator {
- Evaluator ( ) {
+ protected Evaluator ( ) {
}
COMMENT | Made Evaluator constructor public to allow custom implementations |
<nb> public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
throw new IllegalArgumentException ( uee . getMessage ( ) ) ;
}
- byte [ ] digest = null ;
+ byte [ ] digest ;
SINGLE
synchronized ( md5Helper ) {
digest = md5Helper . digest ( valueBytes ) ;
<nb> public class NetSuppor... | Remove unused code FindBugs |
<nb> public final class CFMetaData
throw ( ConfigurationException ) e . getTargetException ( ) ;
throw new ConfigurationException ( STRING0 ) ;
}
+ catch ( ConfigurationException e )
+ {
+ throw e ;
+ }
catch ( Exception e )
{
throw new ConfigurationException ( STRING0 ) ; | Don t swallow ConfigurationException for unknown compaction properties |
<nb> import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> abstract public class WriteFlusher
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
private class PendingState extends State
{
<nb> abstract public class WriteFlusher
COMMENT
COMMENT
COMMENT
-... | Fix WriteFlusher javadoc |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PojoWrapper extends Wrapper {
super ( constrainedType ) ;
this . wrapped = wrapped ;
this . delegate = InvokerHelper . getMetaClass ( wrapped ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+
+ if... | Add a temporary sanity check to ensure we don t wrap groovy objects as POJOs |
<nb> public abstract class AbstractGradleExecuter implements GradleExecuter {
public final GradleHandle start ( ) {
fireBeforeExecute ( ) ;
assertCanExecute ( ) ;
- try {
- return doStart ( ) ;
- } finally {
- reset ( ) ;
- }
+ return doStart ( ) ;
}
public final ExecutionResult run ( ) { | Don t reset the executer after creating the handle |
<nb> public class HealthChecks {
private HealthChecks ( ) { COMMENT }
-
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
- public static void registerHealthCheck ( String name ,
- HealthCheck healthCheck ) {
- HEALTH_CHECKS . putIfAbsent ( name , healthCheck ) ;
+ public static ... | Moved the responsibility for the name into the health check |
<nb> public class PathAwareFeatureTransferManager implements FeatureTransferManager {
}
private String pathToString ( Path path ) {
- return path . toString ( ) . replaceAll ( File . separator , String . valueOf ( folderSeparator ) ) ;
+ return path . toString ( ) . replace ( File . separator , String . value... | Change pathToString to use String replace instead of String replaceAll |
<nb> public abstract class Log {
}
public static String getLogPathFileName ( ) {
+ String ip ;
+ if ( H2O . SELF_ADDRESS == null ) {
+ ip = STRING0 ;
+ }
+ else {
+ ip = H2O . SELF_ADDRESS . getHostAddress ( ) ;
+ }
+ SINGLE
+ SINGLE
+
int port = H2O . UDP_PORT - NUMBER0 ;
String portStrin... | Add ip address to node log file name |
<nb>
COMMENT
COMMENT
+ SINGLE
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb> public class AllocateStrategyTest {
CommonUtils . changeLocalFileToFullPermission ( dir . getUserTempPath ( userId ) ) ;
}
}
+ COMMENT
<nb>
COMMENT
COMMENT
+ SINGLE
+ COMMENT
package NAMESPACE ;
... | Disable old unit tests |
<nb> public class Page {
@ serializedname ( Properties . BIO )
private String mBio ;
- @ serializedname ( Properties . BIO )
+ @ serializedname ( Properties . BIRTHDAY )
private String mBirthday ;
@ serializedname ( Properties . BOOKING_AGENT ) | Fix serialized birthday field in Page entity |
<nb> public class FileStreamSourceTask extends SourceTask {
records = new ArrayList < > ( ) ;
records . add ( new SourceRecord ( offsetKey ( filename ) , offsetValue ( streamOffset ) , topic , VALUE_SCHEMA , line ) ) ;
}
- new ArrayList < SourceRecord > ( ) ;
} while ( line != null ) ;
}
} | Delete unused code in FileStreamSourceTask |
<nb> public class IndexesPrimer extends PrimerTestCase {
public void createCompoundIndex ( ) {
SINGLE
SINGLE
- db . getCollection ( STRING0 ) . createIndex ( new Document ( STRING1 , NUMBER0 ) . append ( STRING2 , NUMBER0 ) ) ;
+ db . getCollection ( STRING0 ) . createIndex ( new Document ( STRING1 , NUMBER0 ... | Fix IndexesPrimer java index order |
<nb> public class UsbDebuggingManager implements Runnable {
while ( true ) {
int count = inputStream . read ( buffer ) ;
if ( count < NUMBER0 ) {
- Slog . e ( TAG , STRING0 + count + STRING1 ) ;
break ;
}
<nb> public class UsbDebuggingManager implements Runnable {
break ;
}
}
- } catch ( IOExcep... | remove log spam when disconnecting USB |
<nb> public class GenerateSourcesMojo extends AbstractAndroidMojo
}
COMMENT
commands . add ( STRING0 ) ;
- if ( assetsDirectory . exists ( ) )
+ final String apkLibAssetsDir = getLibraryUnpackDirectory ( apklibArtifact ) + STRING1 ;
+ if ( new File ( apkLibAssetsDir ) . exists ( ) )
{
commands . add ( S... | Verify the existence of the apklib asset folder |
<nb> public class GitBlit implements ServletContextListener {
gitDaemon . start ( ) ;
logger . info ( MessageFormat . format ( STRING0 , bindInterface , port ) ) ;
} catch ( IOException e ) {
- logger . error ( MessageFormat . format ( STRING1 , bindInterface , port ) , e ) ;
+ logger . error ( MessageFormat ... | Fixed broken exception message formatting on starting GitDaemon |
<nb> public class TextToSpeech {
Log . w ( TAG , method + STRING0 ) ;
return errorResult ;
}
- if ( onlyEstablishedConnection && isEstablished ( ) ) {
- Log . w ( TAG , method + STRING1 ) ;
+ if ( onlyEstablishedConnection && ! isEstablished ( ) ) {
+ Log . w ( TAG , method + STRING2 ) ;
return errorRes... | Fix logic error in Pszczepaniak s recent change |
<nb> public class CxfProducer extends DefaultProducer implements AsyncProcessor {
BindingOperationInfo answer = null ;
String lp = ex . getIn ( ) . getHeader ( CxfConstants . OPERATION_NAME , String . class ) ;
if ( lp == null ) {
- LOG . info ( STRING0 , CxfConstants . OPERATION_NAME ) ;
+ LOG . debug ( STRI... | Improve logging message and reduce verbosity from INFO to debug |
<nb> public class HttpTransportOverSPDY implements HttpTransport
headers . add ( HttpHeader . SERVER . asString ( ) , HttpConfiguration . SERVER_VERSION ) ;
if ( configuration . getSendXPoweredBy ( ) )
headers . add ( HttpHeader . X_POWERED_BY . asString ( ) , HttpConfiguration . SERVER_VERSION ) ;
+
boolean ... | HttpTransportOverSPDY add newline |
<nb>
+ 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
+ COMMENT
+... | Updated copyright headers |
<nb> public class SemanticAnalyzer extends BaseSemanticAnalyzer {
List < Integer > argList = new ArrayList < Integer > ( ) ;
RelDataType type = TypeConverter . convert ( agg . m_returnType ,
this . m_cluster . getTypeFactory ( ) ) ;
- if ( aggregation . equals ( SqlStdOperatorTable . AVG ) ) {
- type = type .... | Turning CBO on results in NPE on some queries Laljo John Pullokkaran via Gunther Hagleitner |
<nb> public interface World extends PluginMessageRecipient {
public File getWorldFolder ( ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public WorldType getWorldType ( ) ;
+
+ COMMENT
COMMENT
COMMENT
public enum Environment { | Added a World getWorldType method |
<nb> public class Router extends SocketBase {
SINGLE
private int next_peer_id ;
- SINGLE
+ SINGLE
SINGLE
private boolean mandatory ;
<nb> public class Router extends SocketBase {
}
} else if ( mandatory ) {
more_out = false ;
- ZError . errno ( ZError . EAGAIN ) ;
+ ZError . errno ( ZError .... | when Router fails to send return EHOSTUNREACH than EAGAIN |
<nb> public class MBeanUtils {
SINGLE
return domain ;
}
-
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public static String getDomain ( Container container ) {
-
- String domain = null ;
-
- Container c =... | Remove deprecated code |
<nb> public final class Main implements ActionListener {
resultArea = new JTextPane ( ) ;
resultArea . setContentType ( STRING0 ) ;
resultArea . setText ( HTML_FONT_START + messages . getString ( STRING1 ) + HTML_FONT_END ) ;
+ resultArea . setEditable ( false ) ;
JLabel label = new JLabel ( messages . getStr... | make result area non editable |
<nb> class Request implements Runnable {
final int debugColor ;
- LoadedFrom ( int debugColor ) {
+ private LoadedFrom ( int debugColor ) {
this . debugColor = debugColor ;
}
} | Hide enum constructor further |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TimeoutBackupStore
this . store = timeLimited ( store , BackupStore . class , timeout , executor ) ;
}
- @ postconstruct
+ @ predest... | Fix Raptor backup timeouts |
<nb> public class JavaReplaceHandler extends StructuralReplaceHandler {
if ( unmatchedCatchSections != null ) {
for ( int i = unmatchedCatchSections . size ( ) - NUMBER0 ; i >= NUMBER1 ; -- i ) {
final PsiParameter parameter = unmatchedCatchSections . get ( i ) . getParameter ( ) ;
- final PsiCatchSection catch... | ann Default template inspection fixed to work on multi catch sections |
<nb> public class DownloadService extends Service {
media . setFile_url ( request . getDestination ( ) ) ;
SINGLE
- MediaPlayer mediaplayer = new MediaPlayer ( ) ;
+ MediaPlayer mediaplayer = null ;
try {
+ mediaplayer = new MediaPlayer ( ) ;
mediaplayer . setDataSource ( media . getFile_url ( ) ) ;
m... | Catch RuntimeException thrown by MediaPlayer constructor |
<nb> public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme
log . debug ( STRING0 , newUrl ) ;
- if ( future . getKeepAlive ( ) ) {
+ if ( response . isChunked ( ) ) {
drainChannel ( ctx , future , initialConnectionUri ) ;
} else {
closeChannel ( ctx ) ; | Fix little refactoring typo |
<nb> public class ListenableFutureReturnValueHandler implements HandlerMethodReturnVa
return ;
}
- DeferredResult < Object > deferredResult = new DeferredResult < Object > ( ) ;
+ final DeferredResult < Object > deferredResult = new DeferredResult < Object > ( ) ;
WebAsyncUtils . getAsyncManager ( webReques... | Fix compile error |
<nb> public class InputServiceImpl extends PersistedServiceImpl implements InputServi
@ override
public Input find ( String id ) throws NotFoundException {
+ if ( ! ObjectId . isValid ( id ) ) {
+ throw new NotFoundException ( STRING0 + id + STRING1 ) ;
+ }
final DBObject o = get ( org . graylog2 . inputs... | Returning NotFoundException in InputServiceImpl when id is invalid |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class MetricsSettings
STRING0 )
public static Setting < File > csvPath = setting (
STRING1 , Settings . PATH , STRING2 , basePath ( ... | Deprecate metrics reporting into a single csv file |
<nb> public class StringUtils {
forAttributeApos ,
forText ,
;
- } ;
+ }
COMMENT
COMMENT | Remove unnecessary semicolon in StringUtils |
<nb> public class BatteryStatsImpl extends BatteryStats {
}
public void add ( String name , T obj ) {
+ if ( name == null ) {
+ name = STRING0 ;
+ }
mMap . put ( name , obj ) ;
if ( OVERFLOW_NAME . equals ( name ) ) {
mCurOverflow = obj ;
<nb> public class BatteryStatsImpl extends BatteryStats {
}... | Add support for null tag names from apps |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GetOperation extends AbstractNamedKeyBasedOperation {
Object value = mapPartition . loader . load ( key ) ;
if ( value != null ) {
result = toData ( value ) ;
- SINGLE
+ rec... | map get new record with loaded data |
<nb> public interface JavaMethod {
@ override
public Object invoke ( Object instance , Object . . . argument ) {
- throw new IllegalStateException ( STRING0 ) ;
+ throw new IllegalStateException ( STRING1 ) ;
}
@ override | Changed error message |
<nb> public class CodegenTestsOnAndroidGenerator extends UsefulTestCase {
private KotlinCoreEnvironment createEnvironment ( boolean isFullJdkAndRuntime ) {
ConfigurationKind configurationKind = isFullJdkAndRuntime ? ConfigurationKind . ALL : ConfigurationKind . JDK_ONLY ;
- CompilerConfiguration configuration =... | use full JDK only when needed |
<nb> public abstract class ByteBuf implements ReferenceCounted , Comparable < ByteBuf > {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public abstract ByteBuf duplicate ( ) ; | Clarify ByteBuf duplicate semantics |
<nb> public class ReplicatedMapReadYourWritesTest extends ReplicatedMapBaseTest {
assertEquals ( count , map1 . size ( ) ) ;
assertEquals ( count , map2 . size ( ) ) ;
}
- } , NUMBER0 ) ;
+ } ) ;
}
@ test | Use default assert eventually timeout in ReplicatedMapReadYourWritesTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyPagesServlet extends FrameworkServlet {
private GrailsApplicationAttributes grailsAttributes ;
+ public GroovyPag... | fix for context attribute missing exception |
<nb> public class ForgeVersion
SINGLE
public static final int majorVersion = NUMBER0 ;
SINGLE
- public static final int minorVersion = NUMBER1 ;
+ public static final int minorVersion = NUMBER2 ;
SINGLE
- public static final int revisionVersion = NUMBER3 ;
+ public static final int revisionVersion = NUM... | Bump version for new MC version |
<nb> import 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 NAM... | Add journal modules to the new bootstrap |
<nb> package NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class MongoCursorNotFoundException extends MongoException {
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class MongoSocketException extends MongoE... | Adding since Javadoc annotation to new public classes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeHandler ,
Input , Output { | Remove a completed TODO |
<nb> public class PullToRefreshAttacher {
protected void removeHeaderViewFromActivity ( View headerViewLayout , Activity activity ) {
if ( headerViewLayout . getWindowToken ( ) != null ) {
- activity . getWindowManager ( ) . removeView ( headerViewLayout ) ;
+ activity . getWindowManager ( ) . removeViewImmed... | Revert removeViewImmediate change |
<nb> public abstract class XmlElementStorage implements StateStorage , Disposable {
try {
doSave ( getElement ( myCopiedStorageData , isCollapsePathsOnSave ( ) , myNewLiveStates ) ) ;
+ myLoadedData = myCopiedStorageData ;
}
catch ( IOException e ) {
throw new StateStorageException ( e ) ; | set old storage data to new on save |
<nb> public class ErrorProneError extends Error {
STRING0 ,
source . getFile ( ) . getName ( ) , line , checkName , cause . getMessage ( ) ) ) ;
sb . append ( snippet ) . append ( STRING1 ) ;
- sb . append ( Strings . repeat ( STRING2 , column - NUMBER0 ) ) . append ( STRING3 ) ;
+ if ( column > NUMBER1 ) {
... | Fix a crash handling bug |
<nb> public class LanguageRegistry
private Map < String , Properties > modLanguageData = new HashMap < String , Properties > ( ) ;
- private static final Pattern assetENUSLang = Pattern . compile ( STRING0 ) ;
+ private static final Pattern assetENUSLang = Pattern . compile ( STRING1 ) ;
public static Lan... | Fix nested directory for language resources |
<nb> class WifiConfigStore {
netId ,
WifiConfiguration . pskVarName ,
config . preSharedKey ) ) {
- Log . d ( TAG , STRING0 + config . preSharedKey ) ;
+ Log . d ( TAG , STRING1 ) ;
break setVariables ;
} | Do not log failed pre shared key |
<nb> public class DriverConductor implements Agent
final UnsafeBufferPosition position = new UnsafeBufferPosition (
countersBuffer , subscriberPositionId , countersManager ) ;
- connection . addSubscription ( position ) ;
+ connection . addSubscriber ( position ) ;
subscription . addConnection ( connection ... | Clarify method name |
<nb> public class ResolveModuleDescriptorConverter extends AbstractModuleDescriptorCo
}
public ModuleDescriptor convert ( Set < Configuration > configurations , Module module , IvySettings settings ) {
- assert configurations . size ( ) > NUMBER0 ;
+ assert configurations . size ( ) > NUMBER0 : STRING0 + modu... | Added some more info to the assertion so that it s easier to debug |
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
if ( checkField ( WifiInfo . class , STRING0 ) )
try {
Class < ? > clazz = Class . forName ( STRING1 ) ;
- if ( ! checkField ( clazz , STRING2 , ByteArrayOutputStream . class ) )
+ if ( ! checkField ( clazz , STRING2 ) )
... | Fix mWifiSsid octets test |
<nb> public class HostConfig
} catch ( Exception e ) {
log . error ( sm . getString (
STRING0 ,
- contextXml . getAbsolutePath ( ) ) ) ;
+ contextXml . getAbsolutePath ( ) ) , e ) ;
} finally {
if ( context == null ) {
context = new FailedContext ( ) ; | Include the exception in the error message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClientState
COMMENT
public void login ( Map < ? extends CharSequence , ? extends CharSequence > credentials ) throws AuthenticationException
... | remove logging of authentication attempts to be done in the Authenticator implementation |
<nb> public class DefaultEndpointMapper < U > implements EndpointMapper < U > {
final Map < String , String > m = new HashMap < String , String > ( ) ;
for ( Map . Entry < String , U > e : handlers . entrySet ( ) ) {
UriTemplate t = new UriTemplate ( e . getKey ( ) ) ;
- logger . debug ( STRING0 , t , path ) ; ... | Fix log level |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public abstract class OutputEvent implements Serializable {
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ @ nullable
public abstract LogLevel getLogLevel ( ) ;
}
<nb> c... | fixed NPE that got swallowed by catch all block |
<nb> public class MakefileHelper
makeFile . append ( STRING0 + artifact . getArtifactId ( ) ) ;
}
makeFile . append ( STRING1 ) ;
- makeFile . append ( STRING2 + artifact . getClassifier ( ) ) ;
- makeFile . append ( STRING1 ) ;
return apklibStatic ;
} | Remove makefile directive that shouldn t be set here |
<nb> class OutputFilesSink implements OutputFileConsumer {
}
}
- if ( ! isTemp && outKind != JavaFileObject . Kind . CLASS && outKind != JavaFileObject . Kind . SOURCE ) {
- try {
- SINGLE
- FSOperations . markDirty ( myContext , fileObject . getFile ( ) ) ;
- }
- catch ( IOException e ) {
- LOG . i... | remove unnecessary calls |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MemberGroupFactoryTest {
}
@ test
- @ category ( ProblematicTest . class )
public void testConfigMemberGroupFactoryCr... | remove problematic marker |
<nb> public class AbstractPopup implements JBPopup {
return ;
}
- if ( ourXWindowIDEA94683FocusBug && isFocused ( ) && ! myRequestFocus ) {
+ if ( ourXWindowIDEA94683FocusBug && isFocused ( ) && ! myRequestFocus && prevOwner != null ) {
IdeFocusManager . getInstance ( myProject ) . requestFocus ( prevOwner ... | don t return focus to null components |
<nb> public class MediaPlayer
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MediaPlayer
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix a typo dependant dependent |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class AnyOrientationCaptureActivity extends CaptureActivity {
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class ContinuousCaptureActivi... | Add brief explanations on sample Activities |
<nb> public class TomcatPoller extends BaseMetricPoller {
STRING0 ,
STRING1 ,
STRING2 ,
+ STRING3 ,
STRING4 ,
STRING5
} ; | Add bytesReceived to tomcat metrics |
<nb> public class Sprite extends TextureRegion {
COMMENT
COMMENT
public Sprite ( ) {
+ setColor ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ;
}
COMMENT | fixed default constructor of Sprite didn t set the color |
<nb> public class GrailsParameterMap extends TypeConvertingMap implements Cloneable
if ( nestedDateMap . containsKey ( key ) ) nestedDateMap . remove ( key ) ;
Object returnValue = wrappedMap . put ( key , value ) ;
if ( key instanceof String ) {
- if ( ( ( String ) key ) . indexOf ( STRING0 ) > - NUMBER0 ) {
... | Remove some redundant nested key processing |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixing checkstyle error |
<nb>
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMEN... | Fix copyright headers |
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
package NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public class RBFileUtils extends Action {
public static final String PROPERTIES_EXT = STRING0... | Updates license headers |
<nb> public class PostUploadService extends Service {
@ override
protected void onCancelled ( Boolean aBoolean ) {
super . onCancelled ( aBoolean ) ;
- mPostUploadNotifier . updateNotificationWithError ( mErrorMessage , mIsMediaError , mPost . isPage ( ) ,
- mErrorUnavailableVideoPress ) ;
- WordPress . pos... | fix a NPE in PostUploadService onCancelled |
<nb> public class StateMachine {
COMMENT
@ override
public final void handleMessage ( Message msg ) {
+ mSm . onPreHandleMessage ( msg ) ;
if ( ! mHasQuit ) {
if ( mDbg ) mSm . log ( STRING0 + msg . what ) ;
<nb> public class StateMachine {
SINGLE
if ( mDbg && mSm != null ) mSm . log ( STRING1 ) ;
... | Add handler callbacks to StateMachine |
<nb> public final class Status {
public int value ( ) {
return value ;
}
-
+
private Status status ( ) {
return STATUS_LIST . get ( value ) ;
}
<nb> public final class Status {
public static final Status NOT_FOUND = Code . NOT_FOUND . status ( ) ;
public static final Status ALREADY_EXISTS = Code .... | Fix UNAUTHENTICATED status to point in Java Status class to point to correct code |
<nb> class WindowsEnvironment extends PortableEnvironment
e . printStackTrace ( System . out ) ;
}
}
-
windowsEditFile ( file ) ;
}
private void windowsEditFile ( File file ) throws IOException
{
- getRuntime ( ) . exec ( new String [ ] { STRING0 , STRING1 , file . getAbsolutePath ( ) } ) ;
+ Stri... | Edit files with Notepad if Desktop edit fails |
<nb> public class AccountSyncSettingsBackupHelper implements BackupHelper {
}
} catch ( EOFException eof ) {
SINGLE
- } finally {
- dataInput . close ( ) ;
}
+ SINGLE
return oldMd5Checksum ;
}
<nb> public class AccountSyncSettingsBackupHelper implements BackupHelper {
dataOutput . writeInt ( S... | Stopped closing State FDs in AccountSyncSettingsBackupHelper |
<nb> public class PGraphics2D extends PGraphicsOpenGL {
SINGLE
public void translate ( float tx , float ty , float tz ) {
- showVariationWarning ( STRING0 ) ;
+ showDepthWarningXYZ ( STRING0 ) ;
}
public void rotateX ( float angle ) {
<nb> public class PGraphics2D extends PGraphicsOpenGL {
SINGLE
... | calling showDepthWarningXYZ in translate tx ty tz in PGraphics2D |
<nb> public class DocumentsActivity extends BaseActivity {
}
if ( ! mState . restored ) {
+ SINGLE
+ SINGLE
+ setTitle ( STRING0 ) ;
if ( mState . action == ACTION_MANAGE || mState . action == ACTION_BROWSE ) {
final Uri rootUri = getIntent ( ) . getData ( ) ;
new RestoreRootTask ( rootUri ) . execute... | Remove default activity title to prevent talkback from |
<nb> public class IntroActivity extends AppCompatActivity {
buttonNext . setVisibility ( visible ? View . VISIBLE : View . GONE ) ;
}
+ @ suppresswarnings ( STRING0 )
+ public boolean isPagerIndicatorVisible ( ) {
+ return pagerIndicator . getVisibility ( ) == View . VISIBLE ;
+ }
+
+ @ suppresswarnin... | Add ability to show hide the indicator |
<nb> public abstract class Model {
SINGLE
- public final void loadFromCursor ( Class < ? extends Model > type , Cursor cursor ) {
+ public final void loadFromCursor ( Cursor cursor ) {
for ( Field field : mTableInfo . getFields ( ) ) {
final String fieldName = mTableInfo . getColumnName ( field ) ;
Clas... | Remove unused arg from loadFromCursor signature |
<nb> public class RemoteBlockInStreamIntegrationTest {
new RemoteBlockInStream ( info . getBlockId ( ) , info . getLength ( ) , workerInetAddr ) ;
Assert . assertEquals ( NUMBER0 , is . read ( ) ) ;
mTfs . delete ( f ) ;
- CommonUtils . sleepMs ( mWorkerToMasterHeartbeatIntervalMs ) ;
+
+ SINGLE
+ CommonU... | add a TODO |
<nb> public class LocalMessage extends MimeMessage {
}
} else {
SINGLE
- text = MessageExtractor . getTextFromPart ( this ) ;
+ text = MessageExtractor . getTextFromPart ( part ) ;
}
return text ;
} | Use correct sub part of a multipart message when getting text |
<nb> public class AllFileTemplatesConfigurable implements Configurable , ApplicationCo
new TreeNode ( StdFileTypes . XML . getIcon ( ) , J2EEFileTemplateNames . WEB_XML_24 ) ,
} ) ,
new TreeNode ( STRING0 , StdFileTypes . JSP . getIcon ( ) , new TreeNode [ ] {
- new TreeNode ( StdFileTypes . JSP . getIcon ( ) ,... | Adding node for jspx file template |
<nb> public class JCVideoPlayer extends FrameLayout implements View . OnClickListener ,
this . url = url ;
this . title = title ;
setIfShowTitle ( true ) ;
+ ifFullScreen = true ;
if ( ifFullScreen ) {
ivFullScreen . setImageResource ( shrinkRecId == NUMBER0 ? R . drawable . shrink_video : shrinkRecId ) ;
... | Fix fullscreen bug |
<nb> public class PullToRefreshListView extends PullToRefreshAdapterViewBase < ListView
}
- class InternalListViewSDK9 extends InternalListView {
+ final class InternalListViewSDK9 extends InternalListView {
public InternalListViewSDK9 ( Context context , AttributeSet attrs ) {
super ( context , attrs )... | Revert previous change to make over scroll work everywhere |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public final class HttpResponseCache extends ResponseCache implements Closeable { | Give a reflection example for installing the HTTP response cache |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SettingsFrame extends javax . swing . JFrame {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public SettingsFrame ( SettingsPersistence sp ) {
properties = sp ; | Fixed JavaDoc warnings |
<nb> public class Wallet extends BaseTaggableObject
SINGLE
for ( Transaction tx : toBroadcast ) {
ConfidenceType confidenceType = tx . getConfidence ( ) . getConfidenceType ( ) ;
- checkState ( confidenceType == ConfidenceType . PENDING , STRING0 , confidenceType ) ;
+ checkState ( confidenceType == Confidenc... | Fix precondition for transaction confidence of transactions in the pending pool |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
public class ResourcePoolTest
{
-
private static final int TIMEOUT_MILLIS = NUMBER0 ;
private static final int TIME... | Relax assertion in order to make the test not flaky |
<nb> public class PersistentStringEnumerator {
private static final int SLOTS_PER_VECTOR = NUMBER0 < < BITS_PER_LEVEL ;
private static final int LEVEL_MASK = SLOTS_PER_VECTOR - NUMBER0 ;
private static final byte [ ] EMPTY_VECTOR = new byte [ SLOTS_PER_VECTOR * NUMBER1 ] ;
+ private boolean myClosed = false ;
... | Fixing namestore file lock in |
<nb> public class PeerGroup implements TransactionBroadcaster {
ipv6Unreachable = true ;
log . warn ( STRING0 ) ;
}
+ } else {
backoffMap . get ( address ) . trackFailure ( ) ;
SINGLE
inactives . offer ( address ) ; | fix another regression with handling of disconnected peers |
<nb> public class PersonDetailFragment extends Fragment {
public void setPersonDetails ( long personID , int localTableBlogID ) {
mPersonID = personID ;
mLocalTableBlogID = localTableBlogID ;
+ refreshPersonDetails ( ) ;
}
} | When person details change update the UI |
<nb> public final class Main {
SINGLE
System . out . println ( STRING0 ) ;
Main . masterConfig = new Properties ( ) ;
+ COMMENT
+ String configPath = System . getProperty ( STRING1 , STRING2 ) ;
+ System . out . println ( STRING3 + configPath ) ;
+
try {
- FileInputStream configStream = new FileInputS... | Allow the config file to be specified as a system property via java |
<nb> public class TransactionConfidence implements Serializable {
BUILDING ( NUMBER0 ) ,
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
NOT_SEEN_IN_CHAIN ( NUMBER1 ) ,
<nb> public class Wallet implements Serializable ... | Improve a comment and make Wallet receivePending public |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class OSQLFunctionShortestPath extends OSQLFunctionPathFinder < Integer > {
- public static final String NAME = STRING0 ;
- private static final Integer MIN = new Integer ( NUMBER0 ) ;
+ public static final String NAME = STRING0 ;
+ private static final Integ... | Implemented the shortest path algorithm |
<nb> public class ConfigurationDialog implements ActionListener {
serverPortField = new JTextField ( Integer . toString ( serverPort ) ) ;
serverPortField . setEnabled ( serverCheckbox . isSelected ( ) ) ;
SINGLE
- serverPortField . setMinimumSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ;
+ serverPortField . ... | make the port field readable at least on my machine |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
-
import static NAMESPACE ;
public class BackupServiceStressTestingBuilder
<nb> public class BackupServiceStressTestingBuilder
}
executor . shutdown ( ) ;
- if ( ! executor . awaitTermination ( NUM... | Increasing shutdown timeout in stress test since CC can take longer sometimes |
<nb> public class DefaultModuleFileSystemTest {
. addTestDir ( testDir )
. setSettings ( settings ) ;
- assertThat ( fileSystem . files ( FileQuery . onSource ( ) ) ) . containsExactly ( foo , hello ) ;
- assertThat ( fileSystem . files ( FileQuery . onTest ( ) ) ) . containsExactly ( fooTest , helloTest ) ; ... | Fix UT that was relying on element order in list |
<nb> public class BazelJavaSemantics implements JavaSemantics {
@ override
public void checkRule ( RuleContext ruleContext , JavaCommon javaCommon ) {
- if ( isJavaBinaryOrJavaTest ( ruleContext ) ) {
- checkMainClass ( ruleContext , javaCommon . getSrcsArtifacts ( ) ) ;
- }
}
private String getMainCl... | Remove unnecessary checkMainClass call |
<nb>
+ import NAMESPACE ;
+
public class Test {
public @ nullable String foo ; | damn optimize imports on commit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.