diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ResultTransformerOutputWriter < T extends OutputWriter > extends Outpu
return new ResultTransformerOutputWriter < > ( new ResultValuesTransformer ( new Identit... | Bubble up exceptions caught in stop |
<nb> public enum OGlobalConfiguration {
FILE_MMAP_MAX_MEMORY (
STRING0 ,
- STRING1 ,
+ STRING2 ,
Long . class , NUMBER0 , new OConfigurationChangeCallback ( ) {
public void change ( final Object iCurrentValue , final Object iNewValue ) {
OMMapManager . setMaxMemory ( OFileUtils . getSizeAsNumber ( iNewV... | corrected cfg message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PluginsTest {
COMMENT
COMMENT
static final Set < String > DISABLED_PLUGINS = Sets . newHashSet (
+ SINGLE
+ STRING0 ,... | Disable css plugin as it s currently incompatible with web plugin |
<nb> public class MainActivity extends ActionBarActivity
. setIconId ( R . mipmap . icon_location_pin ) ) ;
}
- private void addMarker ( String title , String snippet , LatLng latLng , int id ) {
- map . addMarker ( new AirMapMarker ( latLng , id )
- . setTitle ( title )
- . setSnippet ( snippet )
- . s... | Remove unused method |
<nb> public class InsertFromValuesAnalyzerTest extends BaseAnalyzerTest {
) ) ;
assertThat ( analysis . sourceMaps ( ) . size ( ) , is ( NUMBER0 ) ) ;
}
-
- @ test ( expected = UnsupportedOperationException . class )
- public void testInsertFromQuery ( ) throws Exception {
- analyze ( STRING0 ) ;
- }
... | implemented insert by query analysis |
<nb> public class ProjectCommandOptions extends BuildCommandOptions {
private boolean processAnnotations ;
@ option (
- name = STRING0 ,
- hidden = true )
- @ suppresswarnings ( STRING1 )
- private boolean withTests = false ;
-
- @ option (
name = STRING2 ,
usage = STRING3 )
private boolean with... | Remove deprecated and dead with tests option |
<nb> public class PyStringLiteralExpressionImpl extends PyElementImpl implements PySt
for ( EvaluatedTextRange range : characterRanges ) {
if ( offsetInDecoded < range . getValue ( ) . length ( ) ) {
- return range . getRange ( ) . getStartOffset ( ) + offsetInDecoded ;
+ return range . getRange ( ) . getStar... | honor the contract of LiteralTextEscaper |
<nb> public final class BluetoothMidiDevice {
SINGLE
mBluetoothGatt . setCharacteristicNotification ( characteristic , true ) ;
+ SINGLE
+ SINGLE
+ int originalWriteType = characteristic . getWriteType ( ) ;
+ characteristic . setWriteType ( BluetoothGattCharacteristic . WRITE_TYPE_DEFAULT ) ;
+
Bluet... | change write type to support JamStik |
<nb> public class BuildInvocationsBuilder extends ProjectSensitiveToolingModelBuilder
SINGLE
SINGLE
SINGLE
- if ( ! taskSelectors . containsKey ( task . getName ( ) ) || hasPathWithLowerOrdering ( task , taskSelectors . get ( task . getName ( ) ) ) ) {
+ if ( ! taskSelectors . containsKey ( task . getName ( )... | Avoid unnecessary creation of new LaunchableGradleTaskSelector instance |
<nb> class IdeaJHelp extends JHelp {
updateUI ( ) ;
}
-
- public void updateUI ( ) {
- setUI ( new IdeaHelpUI ( ) ) ;
- }
} | remove customized HelpUI override |
<nb> public class KeyEvent extends InputEvent implements Parcelable {
case KeyEvent . KEYCODE_BRIGHTNESS_DOWN :
case KeyEvent . KEYCODE_BRIGHTNESS_UP :
case KeyEvent . KEYCODE_MEDIA_AUDIO_TRACK :
- case KeyEvent . KEYCODE_DPAD_UP :
- case KeyEvent . KEYCODE_DPAD_RIGHT :
- case KeyEvent . KEYCODE_DPAD_DOWN :... | Temporarily remove the dpad keys from system keys |
<nb> public class PeopleTable {
int deleteCount = size - fetchLimit ;
String [ ] args = new String [ ] {
Integer . toString ( localTableBlogId ) ,
- Integer . toString ( localTableBlogId ) ,
Integer . toString ( deleteCount )
} ;
- getWritableDb ( ) . delete ( PEOPLE_TABLE , STRING0 +
- STRING1 + PEOPLE... | Use numbered arguments in deletePeopleForLocalBlogIdExceptForFirstPage sql |
<nb> public class PackageParser {
pkg . baseCodePath = apkPath ;
pkg . mSignatures = null ;
+ SINGLE
+ if ( pkg . usesOptionalLibraries == null ) {
+ pkg . usesOptionalLibraries = new ArrayList < String > ( ) ;
+ }
+ pkg . usesOptionalLibraries . add ( STRING0 ) ;
+
return pkg ;
} | Preload the WebView package into all applications |
<nb> public class ValidateXMLTest extends TestCase {
validator . validate ( STRING0 , STRING1 , STRING2 ) ;
}
+ public void testDisambiguationRuleFile ( ) throws IOException {
+ XMLValidator validator = new XMLValidator ( ) ;
+ SINGLE
+ SINGLE
+ Language lang = Language . FRENCH ;
+ String grammarFile... | rule disambiguation file validation |
<nb> public class Protocol
Deserializer < PAYLOAD > payloadDeserializer ,
ResourceReleaser channelReleaser ) throws IOException
{
- DechunkingChannelBuffer dechunkingBuffer = new DechunkingChannelBuffer ( reader , NUMBER0 ,
+ DechunkingChannelBuffer dechunkingBuffer = new DechunkingChannelBuffer ( reader , ti... | Uses the real timeout |
<nb> public class DumpZooInfo
{
NeoStoreUtil store = new NeoStoreUtil ( STRING0 ) ;
ClusterManager clusterManager = new ClusterManager (
- STRING1 , store . getCreationTime ( ) , store . getStoreId ( ) , STRING2 ) ;
+ STRING1 , store . getCreationTime ( ) , store . getStoreId ( ) ,
+ StartHaDb . toHaServerF... | FIxed the DumpZooInfo class |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ entity
- @ namedquery ( name = STRING0 , query = STRING1 )
+ @ namedquery ( name = STRING0 ,
+ query = STRING1 )
public class Customer {
@ id | Fixed the CS error of camel jpa |
<nb> public class TextEditingTarget implements EditingTarget
code = code + STRING0 ;
boolean sweave =
- fileType_ . canCompilePDF ( ) || fileType_ . canKnitToHTML ( ) ;
+ fileType_ . canCompilePDF ( ) ||
+ fileType_ . canKnitToHTML ( ) ||
+ fileType_ . isRpres ( ) ;
RnwWeave rnwWeave = compilePdfHelpe... | run all chunks for Rpres |
<nb> public abstract class Resource implements ResourceFactory
{
URL url = null ;
SINGLE
- ClassLoader
- loader = Thread . currentThread ( ) . getContextClassLoader ( ) ;
+ ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ;
if ( loader != null )
{
try
<nb> public abstract ... | Fixed Resource newSystemResource striped handling |
<nb> public class HiveOutputTableHandle
{
return temporaryPath ;
}
+
+ @ override
+ public String toString ( )
+ {
+ return STRING0 + schemaName + STRING1 + tableName ;
+ }
} | Add toString for HiveOutputTableHandle |
<nb> public class PostsListAdapter extends BaseAdapter {
PostsListPost newPost = newPostsList . get ( i ) ;
PostsListPost currentPost = mPosts . get ( i ) ;
+ if ( ! ( newPost . getPostId ( ) == currentPost . getPostId ( ) ) )
+ return false ;
if ( ! newPost . getTitle ( ) . equals ( currentPost . getTitle ... | Also compare postId in postsListMatch because the postId can change if the user refreshes the posts list |
<nb> private NetworkStateTracker makeWimaxStateTracker ( ) {
NetworkInfo ni = network . getNetworkInfo ( ) ;
if ( ni . isAvailable ( ) == false ) {
- if ( DBG ) log ( STRING0 ) ;
if ( ! TextUtils . equals ( feature , Phone . FEATURE_ENABLE_DUN_ALWAYS ) ) {
+ if ( DBG ) log ( STRING1 + ni . getTypeName ( ) )... | Add additional debug |
<nb> public class Descriptor
COMMENT
COMMENT
COMMENT
- private static boolean versionValidate ( String ver )
+ static boolean versionValidate ( String ver )
{
if ( ver . length ( ) < NUMBER0 ) return false ;
for ( char ch : ver . toCharArray ( ) )
<nb> public class LegacySSTableTest extends CleanupHel... | LegacySSTableTest should ignore invalid directories |
<nb> SimpleProjectable < T > {
return queryMixin . set ( param , value ) ;
}
+ @ nullable
private T oneResult ( boolean unique ) {
try {
int maxDoc = maxDoc ( ) ; | added Nullable annotation |
<nb> public class Quaternion implements Serializable {
public float getAngleAroundRad ( final float axisX , final float axisY , final float axisZ ) {
final float d = Vector3 . dot ( this . x , this . y , this . z , axisX , axisY , axisZ ) ;
final float l2 = Quaternion . len2 ( axisX * d , axisY * d , axisZ * d , ... | Now used MathUtils clamp instead of just a cast |
<nb> public class PaymentChannelServerState {
throw e ;
}
log . info ( STRING0 , multisigContract ) ;
+ wallet . addWatchedScripts ( ImmutableList . of ( multisigContract . getOutput ( NUMBER0 ) . getScriptPubKey ( ) ) ) ;
state = State . WAITING_FOR_MULTISIG_ACCEPTANCE ;
final SettableFuture < PaymentChann... | Added broadcast multisig contract to wallet bloom filter |
<nb> public class ShowcaseView extends RelativeLayout
showcaseDrawer . setShowcaseColour ( showcaseColor ) ;
textDrawer . setTitleStyling ( titleTextAppearance ) ;
textDrawer . setDetailStyling ( detailTextAppearance ) ;
+ hasAlteredText = true ;
if ( invalidate ) {
invalidate ( ) ;
<nb> class TextDrawe... | Fix an issue where a style wouldn t be updated |
<nb> public class SystemSensorManager extends SensorManager {
} while ( i > NUMBER0 ) ;
sSensorEventPool = new Pools . SynchronizedPool < SensorEvent > (
- Math . max ( sFullSensorsList . size ( ) * NUMBER1 , NUMBER2 ) ) ;
+ sFullSensorsList . size ( ) * NUMBER1 ) ;
sTriggerEventPool = new Pools . Synchroni... | Revert Add a minimum size for the event pools |
<nb> public final class ByteArray implements Serializable {
private final byte [ ] underlying ;
- COMMENT
- private int hashCode ;
-
public static ByteArray valueOf ( String s ) {
return new ByteArray ( s . getBytes ( ) ) ;
}
<nb> public final class ByteArray implements Serializable {
@ override... | ByteArray caches hashCode but is mutable |
<nb> public class IrcStack
this . irc . deleteListener ( this ) ;
return ;
}
-
- SINGLE
- SINGLE
- SINGLE
- SINGLE
-
- SINGLE
- SINGLE
-
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- S... | Removed old commented code |
<nb> public class LocalMUCRoom implements MUCRoom , GroupEventListener {
}
SINGLE
else if ( outcasts . includes ( occupantJID ) ) {
- newAffiliation = MUCRole . Affiliation . none ;
+ newAffiliation = MUCRole . Affiliation . outcast ;
newRole = MUCRole . Role . none ;
kickMember = true ;
isOutcast = tru... | Openfire sends presence updates of affiliation none instead of outcast when banning |
<nb> public abstract class TransportReplicationAction < Request extends ReplicationRequ
onReplicaFailure ( nodeId , exp ) ;
} else {
String message = String . format ( Locale . ROOT , STRING0 , transportReplicaAction , node ) ;
- logger . warn ( STRING1 , exp , shardId , message ) ;
+ logger . warn ( STRING2 ... | Log shard ID in TransportReplicationAction |
<nb> public final class UiAutomationConnection extends IUiAutomationConnection . Stub {
@ override
public void shutdown ( ) {
synchronized ( mLock ) {
- throwIfCalledByNotTrustedUidLocked ( ) ;
+ if ( isConnectedLocked ( ) ) {
+ throwIfCalledByNotTrustedUidLocked ( ) ;
+ }
throwIfShutdownLocked ( ) ;
... | Uninitialized UiAutomationConnection incorrectly enforces caller id |
<nb> public class PhoneAccount implements Parcelable {
COMMENT
COMMENT
COMMENT
- @ systemapi
public static final int CAPABILITY_VIDEO_CALLING = NUMBER0 ;
COMMENT | Make PhoneAccount CAPABILITY_VIDEO_CALLING public |
<nb> public class ControlFlowUtils {
final PsiDoWhileStatement loopStatement =
( PsiDoWhileStatement ) statement ;
final PsiExpression test = loopStatement . getCondition ( ) ;
- return statementMayCompleteNormally ( loopStatement ) &&
+ return statementMayCompleteNormally ( loopStatement . getBody ( ) ) &&
... | statementMayCompleteNormally psiDoWhileStatement calls itself with same parameter |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface Cluster {
+ public interface Cluster extends Closeable {
COMMENT
COMMENT | Cluster now extends Closeable |
<nb> public abstract class ContentResolver {
String blockingPackage = ActivityThread . currentPackageName ( ) ;
EventLog . writeEvent (
- EventLogTags . CONTENT_QUERY_OPERATION ,
+ EventLogTags . CONTENT_QUERY_SAMPLE ,
uri . toString ( ) ,
projectionBuffer . toString ( ) ,
selection != null ? selection ... | Missed these ones in the previous rename |
<nb> public class DefaultCxfRsBinding implements CxfRsBinding , HeaderFilterStrategyAw
Map < String , List < String > > headers = ( Map < String , List < String > > ) cxfMessage . get ( org . apache . cxf . message . Message . PROTOCOL_HEADERS ) ;
for ( Map . Entry < String , List < String > > entry : headers . ent... | Fix a wrong usage of HeaderFilterStrategy applyFilterTo |
<nb> import NAMESPACE ;
COMMENT
public class Grape {
- private static boolean enableGrapes = Boolean . valueOf ( System . getProperties ( ) . getProperty ( STRING0 , STRING1 ) ) ;
- private static boolean enableAutoDownload = Boolean . valueOf ( System . getProperties ( ) . getProperty ( STRING2 , STRING1 ) )... | Groovy enforces wider security permissions than it needs partial fix |
<nb> class SplitwiseHintTextWatcher extends HintSafeTextWatcher {
}
private boolean containsSpansOnly ( String rawText ) {
- return rawText . matches ( STRING0 ) ;
+ return rawText . matches ( STRING1 ) ;
}
boolean textContainsHint ( Editable text ) { | Fix the RegEx for detecting leading spaces |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
... | Improve documentation of onRequestPermissionsResult |
<nb> public class FontListParser {
if ( parser . getEventType ( ) != XmlPullParser . START_TAG ) continue ;
String tag = parser . getName ( ) ;
if ( tag . equals ( STRING0 ) ) {
- int ttcIndex = Integer . parseInt ( parser . getAttributeValue ( STRING1 , STRING2 ) ) ;
+ String ttcIndexStr = parser . getAttrib... | Fix invalid API use of XmlPullParser getAttributeValue |
<nb> import NAMESPACE ;
public class GrailsUtilTests extends TestCase {
public void testGrailsVersion ( ) {
- assertEquals ( STRING0 , GrailsUtil . getGrailsVersion ( ) ) ;
+ assertEquals ( STRING1 , GrailsUtil . getGrailsVersion ( ) ) ;
}
@ override | fixed version test |
<nb> public class IndexService {
SINGLE
public void delete ( String index ) throws APIException , IOException {
- api . path ( routes . IndicesResource ( ) . single ( index ) )
+ api . path ( routes . IndicesResource ( ) . delete ( index ) )
. timeout ( apiTimeout ( STRING0 , NUMBER0 , TimeUnit . SECONDS ) ... | Use correct route to delete index |
<nb> public class DataPacketDispatcher implements DataPacketHandler , SetupMessageHand
final int streamId = image . streamId ( ) ;
final Int2ObjectHashMap < PublicationImage > imageBySessionIdMap = sessionsByStreamIdMap . get ( streamId ) ;
- if ( null == imageBySessionIdMap )
- {
- throw new IllegalStateEx... | Java Remove exception that does not add value |
<nb> public class VcsFullCommitDetailsNode extends DefaultMutableTreeNode implements
@ override
public void render ( @ notnull ColoredTreeCellRenderer renderer ) {
String subject = StringUtil . shortenTextWithEllipsis ( myCommit . getSubject ( ) , NUMBER0 , NUMBER1 ) ;
- renderer . append ( subject , new Simple... | push make commit node smaller |
<nb> public class WPNumberPicker extends NumberPicker {
for ( int i = NUMBER0 ; i < DISPLAY_COUNT ; ++ i ) {
mDisplayValues [ i ] = value - MIDDLE_INDEX + i ;
if ( mDisplayValues [ i ] < getMinValue ( ) ) {
- mDisplayValues [ i ] = getMaxValue ( ) - ( mDisplayValues [ i ] + getMinValue ( ) + NUMBER1 ) ;
+ mDi... | Fixing wrapped number picker values |
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
if ( activitiesToEnable != null ) {
for ( ResolveInfo info : activitiesToEnable ) {
if ( info . activityInfo != null ) {
-
- if ( ! isSystemApp ( pm , info . activityInfo . packageName , primaryUser . id ) ) {
- throw new Ill... | Dont throw an exception for non system apps when enabling system apps |
<nb> public interface ClientStateListener
{
public String reason ;
public Throwable error ;
+
+ @ override
+ public String toString ( ) {
+ return STRING0 + reason + STRING1 + error + STRING2 ;
+ }
}
} | Added a toString method to DisconnectInfo |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BuilderPackedSwitchPayload extends BuilderSwitchPayload implements
if ( switchElements == null ) {
this . switchElements = ImmutableList . of ( ) ;
} else {
- this . switchEle... | Fix issue with BuilderPackedSwitchPayload instructions |
<nb> public class LogBufferDescriptor
COMMENT
public static int computeTermOffsetFromPosition ( final long position , final int positionBitsToShift )
{
- final int mask = ( int ) ( ( NUMBER0 < < positionBitsToShift ) - NUMBER1 ) ;
+ final long mask = ( NUMBER0 < < positionBitsToShift ) - NUMBER0 ;
return ... | Java Use the right type in the mask calculation |
<nb> public class BatchGetRequestUtil
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
- public static < RT > Map < String , Object > getQueryParamsForBatchingKey ( BatchRequest < RT > request )
+ public static Map < String , Object > getQueryParamsForBatchingKey ( BatchRequest < ? > request )
{
fi... | Remove unnecessary template param in util method |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class GroovyDocTest extends BuildFileTest {
- private static final String SRC_TESTFILES = STRING0 ;
+ private static final String SRC... | made tests runnable from intellij |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Change Codahale to Dropwizard in Javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CustomFoldingSurroundDescriptor implements SurroundDescriptor {
@ override
public boolean isApplicab... | disable custom folding surrounder for debugger evaluate fragment |
<nb> public interface ComponentMetadataHandler {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Tweak docs for ComponentMetadataHandler |
<nb> public final class AppSettings extends HashMap < String , Object > {
defaults . put ( STRING0 , NUMBER0 ) ;
defaults . put ( STRING1 , NUMBER0 ) ;
defaults . put ( STRING2 , false ) ;
- defaults . put ( STRING3 , STRING4 ) ;
+ defaults . put ( STRING3 , JmeVersion . FULL_NAME ) ;
defaults . put ( STRIN... | Changed the default app title in AppSettings to use the full name string from JmeVersion |
<nb>
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused import |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class SavedRequest {
+ public class SavedRequest implements java . io . Serializable {
SINGLE
protected static final Log logger = LogFactory . getLog ( SavedRequest . class ) ; | Make SavedRequest serializable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OpenCloseIndexTests extends AbstractSharedClusterTest {
OpenIndexResponse openIndexResponse = client ( ) . admin ( ) . indice... | Added acknowledgment timeout test to OpenCloseIndexTests |
<nb> public class ForgeVersion
SINGLE
public static final int minorVersion = NUMBER0 ;
SINGLE
- public static final int revisionVersion = NUMBER1 ;
+ public static final int revisionVersion = NUMBER2 ;
SINGLE
public static final int buildVersion = NUMBER3 ;
SINGLE | Bump version for Recomended Build |
<nb> public class QueryStats
public void recordAnalysisStart ( )
{
Preconditions . checkState ( createNanos > NUMBER0 , STRING0 ) ;
- queuedTime = System . nanoTime ( ) - createNanos ;
+ queuedTime = ( long ) Duration . nanosSince ( createNanos ) . toMillis ( ) ;
}
public void recordExecutionStart ( ) | Convert query queued time to mills |
<nb> public class Execution {
log ( FORCE , t ) ;
exitCode = NUMBER0 ;
}
- endTrack ( STRING0 ) ; SINGLE
+ endTracksTo ( STRING0 ) ; SINGLE
if ( exit ) {
System . exit ( exitCode ) ;
} | Fix bug in Execution that s been bugging me for ages |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ nonextensible
public class CopySpecWrapper implements CopySpec {
private final CopySpec delegate ... | Make this non extensible |
<nb> public class ClosureException extends RuntimeException {
private final Closure closure ;
public ClosureException ( Closure closure , Throwable cause ) {
- super ( STRING0 + closure + STRING1 + cause , cause ) ;
+ super ( STRING0 + closure + STRING2 + cause , cause ) ;
this . closure = closure ;
} | Fix typo in ClosureException |
<nb> public class ShadowLogger {
debug , error , info , verbose , warning , wtf
}
- static class LogItem {
+ public static class LogItem {
public final LogType type ;
public final String tag ;
public final String msg ; | made LogItem public |
<nb> public class LogbackLoggingSystem extends AbstractLoggingSystem {
Assert . notNull ( configLocation , STRING0 ) ;
String resolvedLocation = SystemPropertyUtils . resolvePlaceholders ( configLocation ) ;
ILoggerFactory factory = StaticLoggerBinder . getSingleton ( ) . getLoggerFactory ( ) ;
- Assert . isIns... | Include code source location in message for competing LoggerFactory impl |
<nb> class Scroller {
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
<nb> public class Solo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT | Clarified javadoc for scrollToSide in Solo and Scroller |
<nb> public class MysqlPersistenceService implements QueryablePersistenceService , Man
COMMENT
COMMENT
public void updated ( Dictionary < String , ? > config ) throws ConfigurationException {
+ logger . debug ( STRING0 ) ;
if ( config != null ) {
Enumeration < String > keys = config . keys ( ) ;
<nb> pu... | Add startup debug logging |
<nb> public abstract class ConnectionProxy implements IHikariConnectionProxy
final int length = openStatements . size ( ) ;
for ( int i = NUMBER0 ; i < length ; i ++ )
{
- openStatements . get ( i ) . close ( ) ;
+ try
+ {
+ openStatements . get ( i ) . close ( ) ;
+ }
+ catch ( SQLException e )
+ {... | Ensure that even if a close statement fails during connection close that we continue to try to close additional statements |
<nb> public class LoggingConfigurationProcessor implements DeploymentUnitProcessor {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class LoggingConfigurationProcessor implements DeploymentUnitProcessor {
@ override
public boolean accepts ( final Virtua... | Remove directory match |
<nb> public class InternalNioOutputBuffer
}
- private synchronized void writeToSocket ( ByteBuffer bytebuffer , boolean flip ) throws IOException {
+ private synchronized int writeToSocket ( ByteBuffer bytebuffer , boolean flip ) throws IOException {
SINGLE
if ( flip ) bytebuffer . flip ( ) ;
int writte... | return the amount of bytes written |
<nb> public class StringUtil
boolean backOverWhitespace )
{
if ( backOverWhitespace )
- while ( string . substring ( pos - NUMBER0 , pos ) . matches ( STRING0 ) )
+ while ( pos > NUMBER1 && string . substring ( pos - NUMBER0 , pos ) . matches ( STRING0 ) )
-- pos ;
int startPos = Math . max ( NUMBER1 , ... | avoid infinite loop in getToken |
<nb> public class ProcessorManager implements Handler {
}
}
- try {
- JavaFile . builder ( ClassNames . FLOW_MANAGER_PACKAGE ,
- new FlowManagerHolderDefinition ( processorManager ) . getTypeSpec ( ) )
- . build ( ) . writeTo ( processorManager . getProcessingEnvironment ( ) . getFiler ( ) ) ;
- } catch... | Push the holder file write to the last round as well |
<nb> public final class GruntMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
- @ parameter
+ @ parameter ( property = STRING0 )
private String arguments ;
@ override
<nb> public final class InstallNodeAndNpmMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
- @ parameter ( defaultValue = ... | Add property annotations |
<nb> import NAMESPACE ;
public class ReservoirSegmentSampler
{
- private final Random rand = new Random ( ) ;
public BalancerSegmentHolder getRandomBalancerSegmentHolder ( final List < ServerHolder > serverHolders )
{
+ final Random rand = new Random ( ) ;
ServerHolder fromServerHolder = null ;
Data... | finished profiling here |
<nb> public abstract class GrammaticalStructure extends TreeGraph {
private List < TypedDependency > getDeps ( boolean getExtra , Filter < TypedDependency > puncTypedDepFilter ) {
List < TypedDependency > basicDep = Generics . newArrayList ( ) ;
- for ( Dependency < Label , Label , Object > d : dependencies ( )... | Remove an unused method |
<nb> public class Activity extends ContextThemeWrapper
SINGLE
SINGLE
SINGLE
- EventLog . writeEvent ( NUMBER0 , NUMBER1 , item . getTitleCondensed ( ) ) ;
+ EventLog . writeEvent ( NUMBER0 , NUMBER1 , item . getTitleCondensed ( ) . toString ( ) ) ;
if ( onOptionsItemSelected ( item ) ) {
return true ;
}... | Fix EventLog string class problem in onOptionMenuSelected |
<nb> public class ShadowView {
public void setOnFocusChangeListener ( View . OnFocusChangeListener listener ) {
onFocusChangeListener = listener ;
}
+
+ @ implementation
+ public View . OnFocusChangeListener getOnFocusChangeListener ( ) {
+ return onFocusChangeListener ;
+ }
@ implementation
publi... | Added getOnFocusChangeListener method to ShadowView |
<nb> public class PackageNamesLoaderTest {
private static URL getMockUrl ( final URLConnection connection ) throws IOException {
final URLStreamHandler handler = new URLStreamHandler ( ) {
@ override
- protected URLConnection openConnection ( final URL url ) {
+ protected URLConnection openConnection ( final ... | Rename parameters to match names in overridden methods |
<nb> public class TestTomcat extends TomcatBaseTest {
try {
is = conn . getInputStream ( ) ;
reader = new InputStreamReader ( is ) ;
- reader . read ( cbuf ) ;
- res . getWriter ( ) . write ( cbuf ) ;
+ int len = reader . read ( cbuf ) ;
+ res . getWriter ( ) . write ( cbuf , NUMBER0 , len ) ;
} finally... | Fix FindBugs warning |
<nb> public class LzoJsonLoader extends LzoBaseLoadFunc {
LOG . warn ( STRING0 + line , e ) ;
incrCounter ( LzoJsonLoaderCounters . LinesParseErrorBadNumber , NUMBER0 ) ;
return null ;
+ } catch ( ClassCastException e ) {
+ LOG . warn ( STRING1 + line , e ) ;
+ incrCounter ( LzoJsonLoaderCounters . LinesPar... | Handle corrupted line |
<nb> public class PhotoViewerActivity extends SherlockActivity implements OnUploadCha
mIv . post ( new Runnable ( ) {
public void run ( ) {
+ mUpload . setFilterUsed ( mFilter ) ;
mIv . setImageBitmap ( filteredBitmap ) ;
}
} ) ;
<nb> import NAMESPACE ;
public abstract class PhotoUpload {
- priv... | Set Filter on PhotoUpload |
<nb>
COMMENT
package NAMESPACE ;
- 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 ;
+ im... | Fix NPE in com Client |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FailureDetectorConfig {
public static final long DEFAULT_ASYNC_RECOVERY_INTERVAL = NUMBER0 ;
- public static final List < String > DEFAULT_CATASTROPHIC_ERROR_TYPES = Immutable... | Adding ConnectException back as catastrophic exception until the time FD is fixed |
<nb> public class ManagedSetModelProjection < M > extends TypeCompatibilityModelProjecti
@ override
public M getInstance ( ) {
Class < M > clazz = getType ( ) . getConcreteClass ( ) ; SINGLE
- Object view = Proxy . newProxyInstance ( clazz . getClassLoader ( ) , new Class [ ] { clazz , ManagedInstance . class }... | Fix compilation warning |
<nb> public class OLiveQueryTest {
db . command ( new OCommandSQL ( STRING0 ) ) . execute ( ) ;
db . command ( new OCommandSQL ( STRING1 ) ) . execute ( ) ;
+ latch . await ( NUMBER0 , TimeUnit . MINUTES ) ;
+
db . command ( new OCommandSQL ( STRING2 + token ) ) . execute ( ) ;
db . command ( new OComma... | Fix OLiveQuery test failure on Travis |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removing unused imports |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ entity @ suppresswarnings ( { STRING0 , STRING1 , STRING2 } )
+ @ suppresswarnings ( { STRING0 , STRING1 , STRING2 } )
public cl... | fails Entity Validation due to not having an Id |
<nb> public class PathChildrenCache implements Closeable
POST_INITIALIZED_EVENT
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void start ( StartMode mode ) throws Exception
{
Preconditions . checkState ( ! executorService . isShutdown ( ) , STRING0 ) ; | Added missing doc |
<nb> public class HdfsSecurityUtil {
! ( ( ( List ) conf . get ( TOPOLOGY_AUTO_CREDENTIALS ) ) . contains ( AutoTGT . class . getName ( ) ) ) ) ) {
if ( UserGroupInformation . isSecurityEnabled ( ) ) {
SINGLE
- SINGLE
if ( isLoggedIn . compareAndSet ( false , true ) ) {
LOG . info ( STRING0 + TOPOLOGY_AUTO_... | Removing the unnecessary comment |
<nb> public class AntStructuredElementImpl extends AntElementImpl implements AntStruc
if ( hasIdElement ( ) ) {
return computeAttributeValue ( getIdElement ( ) . getIdentifierName ( ) ) ;
}
- return super . getName ( ) ;
+ final XmlTag sourceElement = getSourceElement ( ) ;
+ return sourceElement != null ? ... | for getName replace text with tag name |
<nb> public class Accounts extends K9ListActivity implements OnItemClickListener {
}
restoreAccountStats ( icicle ) ;
+ mHandler . setViewTitle ( ) ;
SINGLE
mNonConfigurationInstance = ( NonConfigurationInstance ) getLastNonConfigurationInstance ( ) ; | Set action bar title for Accounts activity in onCreate |
<nb> public class EnglishGrammaticalRelations {
SINGLE
SINGLE
STRING0 + copularWordRegex + STRING1 + clausalComplementRegex + STRING2 ,
+
+ SINGLE
+ STRING3 + copularWordRegex + STRING4 ,
+
} ) ;
public static class XClausalComplementGRAnnotation extends GrammaticalRelationAnnotation { }
<nb> publ... | Use the HeadFinder to figure out whether we are looking at a copula verb head |
<nb> public abstract class Ordering < T > implements Comparator < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo just because |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaContentEntriesEditor extends CommonContentEntriesEdi... | don t create a filler for new project structure |
<nb> public interface FilterFactory {
COMMENT
COMMENT
COMMENT
+ @ suppresswarnings ( STRING0 )
public static class FilterNotCreatedException extends Exception {
public FilterNotCreatedException ( Exception exception ) {
super ( exception . getMessage ( ) , exception ) ; | Suppress serialization warning |
<nb> public class TestServlet extends HttpServlet {
out . println ( STRING0 ) ;
out . println ( STRING1 ) ;
out . println ( STRING2 ) ;
- out . println ( STRING3 ) ;
+ out . println ( STRING4 ) ;
out . println ( STRING5 ) ;
out . println ( STRING6 ) ;
out . println ( STRING7 ) ;
<nb> public class Test... | Updating the list of recepients and title |
<nb> public class IrcStack
synchronized ( this . irc )
{
SINGLE
- SINGLE
- SINGLE
- this . irc . disconnect ( ) ;
+ try
+ {
+ this . irc . disconnect ( ) ;
+ }
+ catch ( RuntimeException e )
+ {
+ SINGLE
+ SINGLE
+ LOGGER . debug ( STRING0 , e ) ;
+ }
this . irc = null ;
this . conne... | Catch possible ChannelClosedException upon disconnecting |
<nb> public class EditPeopleControlSet extends PopupControlSet {
if ( ! TextUtils . isEmpty ( assignedCustom . getText ( ) ) ) {
userJson = PeopleContainer . createUserJson ( assignedCustom ) ;
} else {
+ if ( ! hasLoadedUI ( ) || assignedList . getCheckedItemPosition ( ) == ListView . INVALID_POSITION ) {
+ ... | Fixed bug in quickadd when sharing links etc to Astrid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.