diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class PatternTestTools {
SINGLE
System . err . println ( STRING0 + lang + STRING1
+ ruleId + STRING2 + tokenIndex + STRING3
- + STRING4 + STRING5 + stringValue
+ + STRING6 + STRING5 + stringValue
+ STRING7 ) ;
}
} | Fixed missing plural in a warning message when checking rules |
<nb>
limitations under the License .
COMMENT
+ COMMENT
+ Some of the retry logic in this class is heavily borrowed from the
+ fantastic droid - fu project : https : SINGLE
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Add props to droid fu guys |
<nb> public class PersistentValve
manager . add ( session ) ;
SINGLE
session . access ( ) ;
+ session . endAccess ( ) ;
}
}
} | Do not increment access counter |
<nb> public class SmoothAppBarLayout extends AppBarLayout {
if ( layoutParams instanceof AppBarLayout . LayoutParams ) {
AppBarLayout . LayoutParams childLp = ( AppBarLayout . LayoutParams ) layoutParams ;
int flags = childLp . getScrollFlags ( ) ;
+ if ( ( flags & LayoutParams . SCROLL_FLAG_SCROLL ) != NUMBER0... | Fixed minOffet with scroll flag |
<nb> public class JsonStringToMap extends EvalFunc < Map < String , String > > {
@ override
public Schema outputSchema ( Schema input ) {
try {
- return Utils . getSchemaFromString ( STRING0 ) ;
+ return Utils . getSchemaFromString ( STRING1 ) ;
} catch ( ParserException e ) {
throw new RuntimeException (... | Renames output schema name from m to json |
<nb> import NAMESPACE ;
public class AndroidOSProcessHandler extends BaseOSProcessHandler {
@ nonnls private static final String IGNORING = STRING0 ;
@ nonnls private static final String SKIPPING = STRING1 ;
+ @ nonnls private static final String DEBUGGABLE_ERROR = STRING2 ;
private final List < String > my... | do not show warning about debuggable attribute |
<nb> public class LineageFileOutStream extends FileOutStream {
@ override
protected void scheduleAsyncPersist ( ) throws IOException {
SINGLE
- return ;
}
} | SMALLFIX Removed unnecessary return statement in LineageFileOutStream |
<nb> public class GoCompletionUtil {
: ParenthesesInsertHandler . WITH_PARAMETERS ;
}
- @ notnull
+ @ nullable
public static LookupElement createVariableLikeLookupElement ( @ notnull GoNamedElement v ) {
- String name = StringUtil . notNullize ( v . getName ( ) ) ;
+ String name = v . getName ( ) ;
+ ... | Do not create lookup items for unnamed elements |
<nb> public interface ResettableIterator < E > extends Iterator < E > {
COMMENT
COMMENT
public void reset ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public E lastReturned ( ) ;
}
<nb> public class BlockResettableIterator < T extends Record > implements MemoryBlockIte
finishe... | added lastReturned method to ResettableIterator interface |
<nb> public class JavaScriptProtocol extends AtmosphereInterceptorAdapter {
for ( final AtmosphereInterceptor interceptor : framework . interceptors ( ) ) {
if ( HeartbeatInterceptor . class . isAssignableFrom ( interceptor . getClass ( ) ) ) {
final HeartbeatInterceptor heartbeatInterceptor = HeartbeatIntercepto... | Sends heartbeat interval in ms |
<nb> public class SvnIntegrateChangesTask extends Task . Backgroundable {
}
if ( ! clb . getChanges ( ) . isEmpty ( ) ) {
- CommitChangeListDialog . commitAlienChanges ( myProject , clb . getChanges ( ) , myVcs ,
- SvnBundle . message ( STRING0 ) , myMerger . getComment ( ) ) ;
+ CommitChangeListDialog . co... | fix merged comment |
<nb> public class XmppConnection implements Runnable {
}
socket . close ( ) ;
Log . d ( Config . LOGTAG , account . getJid ( ) . toBareJid ( ) + STRING0 ) ;
+ changeStatus ( Account . State . OFFLINE ) ;
} catch ( IOException | InterruptedException e ) {
- return ;
+ Log . d ( Config . LOGTAG , account . ... | explictly set account status to offline when waiting for push |
<nb> public class ResultSetModel {
public Object getCellValue ( @ notnull DBDAttributeBinding attribute , @ notnull ResultSetRow row ) {
int depth = attribute . getLevel ( ) ;
if ( depth == NUMBER0 ) {
- return row . values [ attribute . getOrdinalPosition ( ) ] ;
+ final int index = attribute . getOrdinalPos... | Attribute value index check |
<nb> public class PdePreprocessor {
MatchResult setupMatch = findInCurrentScope ( VOID_SETUP_REGEX , uncommented ) ;
if ( setupMatch != null ) {
int start = uncommented . indexOf ( STRING0 , setupMatch . end ( ) ) ;
-
- SINGLE
- MatchResult match = findInCurrentScope ( CLOSING_BRACE , uncommented , start ) ... | Fix exception in preprocessor |
<nb> public class MemberStateImpl implements MemberState {
nodeState . fromJson ( jsonNodeState ) ;
}
JsonObject jsonHotRestartState = getObject ( json , STRING0 , null ) ;
- if ( hotRestartState != null ) {
+ if ( jsonHotRestartState != null ) {
hotRestartState = new HotRestartStateImpl ( ) ;
hotRestartS... | Fix wrong null check of hot restart state |
<nb> public class StructDatabase {
}
SINGLE
- fieldTree . setStandalone ( false ) ;
+ fieldTree . setStandalone ( true ) ;
}
public int learn ( Asset asset ) {
<nb> public class FieldTree extends LinkedHashMap < Integer , FieldNode > implements Stru
public int version ;
private int format ;
- ... | Fixed inversed boolean |
<nb> public class RemoteImService extends Service implements OtrEngineListener , ImSer
NetworkInfo networkInfo = ( NetworkInfo ) intent
. getParcelableExtra ( HeartbeatService . NETWORK_INFO_EXTRA ) ;
State networkState = State . values ( ) [ intent . getIntExtra ( HeartbeatService . NETWORK_STATE_EXTRA , NUMBER0... | use a wakelock for updating service on network change |
<nb> public abstract class AbstractTask implements TaskInternal , DynamicObjectAware {
if ( action == null ) {
throw new InvalidUserDataException ( STRING0 ) ;
}
- taskMutator . mutate ( STRING1 , new Runnable ( ) {
+ taskMutator . mutate ( STRING2 , new Runnable ( ) {
public void run ( ) {
actions . add ... | Fix description of leftShift task in error message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class MountService extends IMountService . Stub
break ;
}
case H_FSTRIM : {
- waitForReady ( ) ;
+ if ( ! isReady ( ) ) {
+ Slog... | Avoid deadlock when FSTRIM requested at boot |
<nb> public class DevToolsProperties {
public static class Restart {
private static final String DEFAULT_RESTART_EXCLUDES = STRING0
- + STRING1 ;
+ + STRING2
+ + STRING3 ;
private static final long DEFAULT_RESTART_POLL_INTERVAL = NUMBER0 ;
<nb> public class PatternClassPathRestartStrategyTests {
a... | Do not trigger a restart when a test class is changed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class UnderFileSystem {
COMMENT
COMMENT
public static boolean isHadoopUnderFS ( final String path , TachyonConf tachyonConf ) {
-
+ SINGLE
+ SINGL... | Add some TODOs about possible future enhancements |
<nb> import NAMESPACE ;
public class MyBatisEndpoint extends DefaultPollingEndpoint {
private MyBatisProcessingStrategy processingStrategy = new DefaultMyBatisProcessingStrategy ( ) ;
+ private ExecutorType executorType ;
@ uriparam
private String statement ;
+ @ uriparam
private StatementType statement... | add statement type as uri param |
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher {
getString ( messageId ) ,
R . drawable . noticon_alert_big , NUMBER0 ,
getString ( R . string . cancel ) ,
- getString ( R . string . reader_title_applog ) ,
getString ( R . string . contact_us ) ,
- SignInDialogFragment . AC... | swap Contact us and Application log buttons |
<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
package NAMESPACE ;
... | restore copyright message |
<nb> public enum BlockType {
centralTopLimit . put ( BlockID . COMPARATOR_OFF , FLOAT0 ) ;
centralTopLimit . put ( BlockID . COMPARATOR_ON , FLOAT0 ) ;
centralTopLimit . put ( BlockID . DAYLIGHT_SENSOR , FLOAT1 ) ;
+ centralTopLimit . put ( BlockID . HOPPER , FLOAT2 ) ;
SINGLE
centralTopLimit . put ( Bloc... | Added centralTopLimit property for hoppers |
<nb> public class BaseDexExceptionHandler implements DexExceptionHandler {
mv . visitTypeInsn ( Opcodes . NEW , STRING0 ) ;
mv . visitInsn ( Opcodes . DUP ) ;
mv . visitLdcInsn ( msg ) ;
- mv . visitMethodInsn ( Opcodes . INVOKESPECIAL , STRING1 , STRING2 , STRING3 ) ;
+ mv . visitMethodInsn ( Opcodes . INVOK... | fix throw new Runtime when error |
<nb> public class UserPhotosFragment extends SherlockFragment implements LoaderManage
mAnimationLayout . addView ( iv , lp ) ;
int halfTabHeight = getResources ( ) . getDimensionPixelSize ( R . dimen . abs__action_bar_default_height ) / NUMBER0 ;
- int midSecondTabX = mPhotoGrid . getWidth ( ) / NUMBER0 ;
+ i... | Animate Photo to right place |
<nb> public class Genrule extends AbstractBuildRule implements HasOutputName {
environmentVariablesBuilder . put ( STRING0 , android . getZipalignExecutable ( ) . toString ( ) ) ;
}
- SINGLE
+ SINGLE
environmentVariablesBuilder . put ( STRING1 , STRING2 ) ;
}
<nb> public class Genrule extends Abstract... | Remove some fb internal task numbers since they are meaningless in open source |
<nb> public class OClientConnectionManager {
if ( command != null && command . isIdempotent ( ) ) {
entry . getValue ( ) . protocol . interrupt ( ) ;
} else {
+ ONetworkProtocol protocol = entry . getValue ( ) . protocol ;
+ if ( protocol instanceof ONetworkProtocolBinary
+ && ( ( ONetworkProtocolBinary ) p... | fixed deadlock on shutdown |
<nb> public class AndroidTranslator implements Translator {
COMMENT
COMMENT
COMMENT
- public static final int CACHE_VERSION = NUMBER0 ;
+ public static final int CACHE_VERSION = NUMBER1 ;
private static final List < ClassHandler > CLASS_HANDLERS = new ArrayList < ClassHandler > ( ) ;
<nb> public class... | Don t shadow LruCache since the full java source is available and usable |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
<nb> public class AcegiMessageSourceTests extends TestCase {
assertEquals ( STRING0 ,
msgs . getMessage ( STRING1 , null , Locale . ENGLISH ) ) ;
}
+
+ public void testReplacableLooku... | Prove placeholders work correctly |
<nb> import NAMESPACE ;
COMMENT
class Identifier extends JavaScriptToken {
+ private int refcount = NUMBER0 ;
private String mungedValue ;
private ScriptOrFnScope declaredScope ;
<nb> class Identifier extends JavaScriptToken {
String getMungedValue ( ) {
return mungedValue ;
}
+
+ void increme... | Added reference count number of times an identifier is used |
<nb> public class NavigationService extends Service implements LocationListener {
@ override
- public void onLocationChanged ( Location location ) {
- if ( location != null && ! settings . MAP_ACTIVITY_ENABLED . get ( ) ) {
+ public void onLocationChanged ( Location l ) {
+ if ( l != null && ! settings . ... | Fix altitude correction |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SettingsProviderComponent {
}
}
}
+ dirs . add ( PathManager . getConfigPath ( ) ) ;
return new Result < Set < String > > ( dirs , ProjectRootModificationTracker . getInstance... | add ide config path to root dirs |
<nb> public class AndroidCommon {
return javaCommon . getJavacOpts ( ) ;
}
+ public Artifact getGenJar ( ) {
+ return genJar ;
+ }
+
@ nullable public Artifact getGensrcJar ( ) {
return gensrcJar ;
} | Adds a getter for the gen jar |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- final class ConcurrentSoftValueHashMap < K , V > extends ConcurrentRefValueHashMap < K , V > {
+ public final class ConcurrentSoftValueHashMap < K , V > extends ConcurrentRefValueHashMap < ... | restore public access for class used in Kotlin |
<nb> public final class SctpMessage extends DefaultByteBufHolder {
if ( msgInfo == null ) {
return new SctpMessage ( protocolIdentifier , streamIdentifier , unordered , content ( ) . duplicate ( ) ) ;
} else {
- return new SctpMessage ( msgInfo , content ( ) . copy ( ) ) ;
+ return new SctpMessage ( msgInfo ,... | Fix SctpMessage duplicate behavior |
<nb> public class Persian extends Language {
public List < Rule > getRelevantRules ( ResourceBundle messages ) {
return Arrays . asList (
SINGLE
+ SINGLE
SINGLE
SINGLE
SINGLE | fa add another potentially interesting rule commented out |
<nb> public final class BridgeContext extends Context {
mRenderResources = renderResources ;
mConfig = config ;
- mAssets = new BridgeAssetManager ( ) ;
+ AssetManager systemAssetManager = AssetManager . getSystem ( ) ;
+ if ( systemAssetManager instanceof BridgeAssetManager ) {
+ mAssets = ( BridgeAssetM... | Fix custom font rendering |
<nb> public class NetatmoBinding extends
refreshAccessToken ( ) ;
}
- if ( this . firstExecution ) {
- SINGLE
- SINGLE
-
+ if ( this . firstExecution ) {
logger . debug ( STRING0 , deviceListRequest ) ;
logger . debug ( STRING1 , deviceListResponse ) ;
<nb> public class NetatmoBinding extends
... | Suppress unwanted commented lines |
<nb> public class PlainSaslTransportPlugin extends SaslTransportPlugin {
@ override
protected TTransportFactory getServerTransportFactory ( ) throws IOException {
SINGLE
- CallbackHandler server_callback_handler = new PlainServerCallbackHandler ( ) ;
+ CallbackHandler serverCallbackHandler = new PlainServerCa... | Renaming local variable to camelCase |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WorkerProcessIntegrationTest {
execute ( worker ( ne... | Temporarily ignore this again |
<nb> public class AsyncTwitterWrapper extends TwitterWrapper {
}
final Bus bus = TwidereApplication . getInstance ( mContext ) . getMessageBus ( ) ;
bus . post ( new StatusRetweetedEvent ( status ) ) ;
+ SINGLE
+ SpiceProfilingUtil . log ( getContext ( ) , status . id + STRING0 + account_id + STRING1
+ + st... | add retweet operation statistic |
<nb> public class PyDocstringParserDefinition extends PythonParserDefinition {
}
@ override
+ public String toString ( ) {
+ return STRING0 + getName ( ) ;
+ }
+
+ @ override
public LanguageLevel getLanguageLevel ( ) {
final InjectedLanguageManager languageManager = InjectedLanguageManager . getInst... | fixed docstring file name |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Rewrote the ChannelHandlerContext explanation |
<nb> public class Message extends AbstractEntity {
. getStatus ( ) == Message . STATUS_SEND_RECEIVED ) && ( message
. getStatus ( ) == Message . STATUS_UNSEND
|| message . getStatus ( ) == Message . STATUS_SEND || message
- . getStatus ( ) == Message . STATUS_SEND_DISPLAYED ) ) ) ) ) ;
+ . getStatus ( ) == Me... | don t merge downloadable messages |
<nb> public enum RadiusProtocol {
EAP_MSCHAPv2 ( STRING0 ) ,
EAP_TLS ( STRING1 ) ,
EAP_TTLS_PAP ( STRING2 ) ,
- EAP_TTLS_MD5 ( STRING3 ) ,
+ EAP_TTLS_MD5 ( STRING4 ) ,
EAP_TTLS_EAP_MSCHAPv2 ( STRING5 ) ,
MSCHAPv1 ( STRING6 ) ,
MSCHAPv2 ( STRING7 ) , | Fix glitch in the innerProtocol specified for EAP_TTLS_MD5 |
<nb> public class HttpRequestTest extends ServerTestCase {
HttpRequest . append ( STRING0 ,
Collections . < String , String > emptyMap ( ) ) ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ test
+ public void appendWithNullValues ( ) throws Exception {
+ Map < String , Object > para... | Add test of appending params with null values |
<nb> public class PacketTransceiverImpl implements PacketTransceiver {
@ override
public boolean transmit ( Packet packet , Connection connection ) {
- if ( connection == null || ! connection . isAlive ( ) ) {
+ if ( connection == null ) {
return false ;
}
return connection . write ( packet ) ; | PacketTransceiverImpl removed isAlive check |
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
mDialogBuilder . setSingleChoiceItems ( mItems , checkedItem ,
new AlertDialog . OnClickListener ( ) {
public void onClick ( DialogInterface dialog , int which ) {
+ if ( mIms == null ) {
+ return ;
+ }
synchronized ( mMethodMa... | Fixed NPE by guarding the reference of variable |
<nb> public class ColumnValue {
case UNION_TYPE :
case USER_DEFINED_TYPE :
return stringValue ( ( String ) value ) ;
+ case NULL_TYPE :
+ return stringValue ( ( String ) value ) ;
default :
return null ;
} | ColumnValue does not handle NULL_TYPE Yongzhi Chen via Szehon |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PasteHandler extends EditorActionHandler implements EditorTextInser
if ( endOffset - startOffset > NUMBER0 ) {
DocumentUtil... | fixed reformatting on paste for short lines |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Rename AggregateLifeCycle to ContainerLifeCycle in javadoc |
<nb> public class RemoteEJBClientStatefulBeanFailoverTestCase {
}
container2Stopped = true ;
}
+
+ SINGLE
+ SINGLE
+ Thread . sleep ( GRACE_TIME_TO_MEMBERSHIP_CHANGE ) ;
+
SINGLE
CounterResult resultAfterShuttingDownANode = remoteCounter . increment ( ) ;
Assert . assertNotNull ( STRING0 , resultA... | stabilize RemoteEJBClientStatefulBeanFailoverTestCase on Windows |
<nb> public final class Message {
public Message ( @ notnull Topic topic , @ notnull Method listenerMethod , Object [ ] args ) {
myTopic = topic ;
+ listenerMethod . setAccessible ( true ) ;
myListenerMethod = listenerMethod ;
myArgs = args ;
}
<nb> public class MessageBusConnectionImpl implements Messa... | Only set accessibility once per message not per delivery |
<nb> public class CachingClusteredClient < T > implements QueryRunner < T >
final QueryRunner clientQueryable = serverView . getQueryRunner ( server ) ;
if ( clientQueryable == null ) {
- log . makeAlert ( STRING0 , server ) . emit ( ) ;
+ log . error ( STRING0 , server ) ;
continue ;
}
<nb> public cl... | make some logs not emit |
<nb> public class Drawer {
protected ScrimInsetsFrameLayout mDrawerContentRoot ;
COMMENT
+ COMMENT
+ COMMENT
+ public Drawer ( ) {
+
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Drawer ( Activity activity ) {
+ this . mRootView = ( ViewGroup ) activity . findViewById ( android . ... | add constructor with activity |
<nb> public class DetailListPreference extends ListPreference
}
private class DetailListAdapter extends ArrayAdapter < String > {
+ private RadioButton mSelectedRadioButton ;
+
public DetailListAdapter ( Context context , int resource , String [ ] objects ) {
super ( context , resource , objects ) ;
}
... | Deselect previously selected radio button in DetailListPreference |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConcurrentInstanceStartupIT
{
public static final in... | Removes unnecessary setup in ConcurrentInstanceStartupIT |
<nb> public class CodeSourcePanel extends IpnbPanel implements EditorPanel {
myEditor = IpnbEditorUtil . createPlainCodeEditor ( myProject , mySource ) ;
else
myEditor = IpnbEditorUtil . createPythonCodeEditor ( myProject , mySource ) ;
- final JComponent component = myEditor . getComponent ( ) ;
+ final JCom... | update code editing |
<nb> public class TravelingItem {
public float getEntityBrightness ( float f ) {
int i = MathHelper . floor_double ( xCoord ) ;
int j = MathHelper . floor_double ( zCoord ) ;
- if ( container . worldObj . blockExists ( i , NUMBER0 / NUMBER1 , j ) ) {
+ if ( container != null && container . worldObj . blockExi... | Add container null check |
<nb> public abstract class Job extends Func {
final protected void genericCrossValidation ( Frame [ ] splits , long [ ] offsets , int i ) {
int respidx = source . find ( _responseName ) ;
assert ( respidx != - NUMBER0 ) : STRING0 ;
- job_key = Key . make ( ) ; SINGLE
+ job_key = Key . make ( job_key . toStrin... | Make job key consistent with model key |
<nb> abstract public class SupervisedModelBuilder < M extends SupervisedModel < M , P , O > , P
_train . add ( _parms . _offset_column , off ) ;
}
if ( _valid != null ) {
- off = _train . remove ( _parms . _offset_column ) ;
+ off = _valid . remove ( _parms . _offset_column ) ;
if ( off == null ) {
error ... | fix in ModelBuilder offset handling |
<nb> public final class MediaDescriptionCompat implements Parcelable {
dest . writeParcelable ( mIcon , flags ) ;
dest . writeParcelable ( mIconUri , flags ) ;
dest . writeBundle ( mExtras ) ;
+ dest . writeParcelable ( mMediaUri , flags ) ;
} else {
MediaDescriptionCompatApi21 . writeToParcel ( getMediaDes... | add mMediaUri to the parcel |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
<nb> public final class ServerConfigImpl extends AbstractServerConfig implements Abst
private static final ServerConfigImpl INSTANCE = new ServerConfigImpl ( ) ;
- private final List < Endp... | remove addEndpointConfig method and it has been added to AbstractServerConfig |
<nb> public class DataFlowRunner {
for ( int i = NUMBER0 ; i < sameInstructionStates . size ( ) ; i ++ ) {
DfaInstructionState state1 = sameInstructionStates . get ( i ) ;
for ( int j = i + NUMBER1 ; j < sameInstructionStates . size ( ) ; j ++ ) {
+ ProgressManager . checkCanceled ( ) ;
DfaInstructionState st... | state merging interruptibility |
<nb> final class BasicOperationService implements InternalOperationService {
try {
if ( packet . isHeaderSet ( Packet . HEADER_RESPONSE ) ) {
responseExecutor . execute ( new ResponseProcessor ( packet ) ) ;
- SINGLE
} else {
final int partitionId = packet . getPartitionId ( ) ;
final Executor executor = ... | Removed piece of commented out code |
<nb> public class GPUImageLookupFilter extends GPUImageTwoInputFilter {
STRING0 +
STRING1 +
STRING2 +
- STRING3 +
+ STRING4 +
STRING2 +
STRING5 +
STRING6 +
- STRING7 +
+ STRING8 +
STRING9 +
- STRING10 +
+ STRING11 +
STRING9 +
- STRING12 +
+ STRING13 +
STRING14 +
STRING15 +
STRING9 ... | Fix precision issue in GPUImageLookupFilter |
<nb>
- package NAMESPACE ;
+ package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | move test to proper place |
<nb> public class XActivityThread extends XHook {
try {
BroadcastReceiver . PendingResult pr = ( BroadcastReceiver . PendingResult ) param . args [ NUMBER0 ] ;
pr . finish ( ) ;
+ } catch ( IllegalStateException ignored ) {
+ SINGLE
} catch ( Throwable ex ) {
Util . bug ( this , ex ) ;
} | Ignore illegal state exception support info |
<nb> public class ShadowIntent {
}
@ implementation
+ public long getLongExtra ( String name , long defaultValue ) {
+ Long foundValue = ( Long ) extras . get ( name ) ;
+ return foundValue == null ? defaultValue : foundValue ;
+ }
+
+ @ implementation
public byte [ ] getByteArrayExtra ( String name... | added getLongExtra to ShadowIntent |
<nb> public class QueryProcessor
CreateKeyspaceStatement create = ( CreateKeyspaceStatement ) statement . statement ;
create . validate ( ) ;
clientState . hasKeyspaceListAccess ( Permission . WRITE ) ;
+ validateSchemaAgreement ( ) ;
try
{
<nb> public class QueryProcessor
case CREATE_COLUMNFAMILY :
... | also invoke validateSchemaAgreement for CREATEs |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DocTableInfoTest {
new String [ NUMBER0 ] ,
null ,
NUMBER1 ,
- new BytesRef ( STRING0 ) ) ;
+ new BytesRef ( STRING0... | fixed DocTableInfo test |
<nb> public class GitUtil {
return headExists ? child : null ;
}
- SINGLE
+ SINGLE
String content ;
try {
content = readFile ( child ) ; | fix a comment |
<nb> public class OrientGraphQuery extends DefaultGraphQuery {
final StringBuilder text = new StringBuilder ( ) ;
SINGLE
- text . append ( STRING0 ) ;
+ text . append ( STRING1 ) ;
+ if ( labels != null && labels . length > NUMBER0 ) {
+ SINGLE
+ if ( labels . length == NUMBER1 )
+ SINGLE
+ text .... | Supported labels for vertex queries too |
<nb> public class TestDefaultInvoiceGenerator extends InvoiceTestSuiteNoDB {
SINGLE
assertEquals ( invoice2 . getBalance ( ) . compareTo ( FIVE ) , NUMBER0 ) ;
-
- SINGLE
- final BigDecimal creditBalance = invoice1 . getCreditedAmount ( ) . add ( invoice2 . getCreditedAmount ( ) ) ;
- assertTrue ( creditB... | fix merge issue |
<nb> public class SubscriberTool
driver . close ( ) ;
}
+ try
+ {
+ COMMENT
+ subTool . options . close ( ) ;
+ }
+ catch ( IOException e )
+ {
+ e . printStackTrace ( ) ;
+ }
+
final long verifiableMessages = subTool . verifiableMessagesReceived ( ) ;
final long nonVerifiableMessages = su... | Added call to PubSubOptions close to close any opened output files |
<nb> public class MutableHashTable < BT , PT > implements MemorySegmentSource {
}
}
+ SINGLE
+ if ( this . bucketSegment == null ) {
+ return null ;
+ }
+
SINGLE
final long forwardPointer = this . bucketSegment . getLong ( this . bucketInSegmentOffset + HEADER_FORWARD_OFFSET ) ;
if ( forwardPointe... | hotfix runtime Fix processing unmatched build side when all buckets spilled |
<nb> public class HTTP2Connection extends AbstractConnection implements Connection . Up
public void onUpgradeTo ( ByteBuffer prefilled )
{
if ( LOG . isDebugEnabled ( ) )
- LOG . debug ( STRING0 , this , BufferUtil . toDebugString ( prefilled ) ) ;
+ LOG . debug ( STRING0 , this , BufferUtil . toDetailString ... | Fixing compile error |
<nb> public class Table extends SqlTable < TableModel > {
COMMENT
COMMENT
public void setIdProperty ( LongProperty idProperty ) {
- if ( idProperty != null ) {
+ if ( this . idProperty != null ) {
throw new UnsupportedOperationException ( STRING0 ) ;
}
this . idProperty = idProperty ; | Fix a bug in setIdProperty |
<nb> public class JUnitTestRunner {
int classCount = objc_getClassList ( NULL , NUMBER0 ) ;
Class * classes = ( Class * ) malloc ( classCount * sizeof ( Class ) ) ;
objc_getClassList ( classes , classCount ) ;
- id < JavaUtilSet > result = [ ComGoogleCommonCollectSets newHashSet ] ;
+ id < JavaUtilSet > resul... | Fixed JUnitTestRunner native code reference deleted unused variable |
<nb> public class CamelAutoConfiguration {
}
@ bean
- @ conditionalonmissingbean
+ @ conditionalonmissingbean ( RoutesCollector . class )
RoutesCollector routesCollector ( ApplicationContext applicationContext ) {
Collection < CamelContextConfiguration > configurations = applicationContext . getBeansOfTyp... | Added explicit class exclusion to the RoutesCollector condition |
<nb> public class PyUtil {
final PyStatementList statementList = as ( element . getParent ( ) , PyStatementList . class ) ;
if ( statementList != null && statementList . getStatements ( ) . length == NUMBER0 ) {
element . replace ( PyElementGenerator . getInstance ( element . getProject ( ) ) . createPassStatemen... | Add missing return statement in PyUtil deleteElementSafely |
<nb> public interface BlockReader extends Closeable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
ByteBuffer read ( long offset , long length ) throws IOException ;
<nb> public interface BlockWriter extends Closeable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
long appe... | Fixing mvn site warnings for tachyon worker block io |
<nb> public class AddToClasspath extends Command {
URL url = resolveClasspath ( path ) ;
if ( isWebUrl ( url ) ) {
- String outputFileName = randomIdentifier ( STRING0 ) ;
- System . out . println ( format ( STRING1 , path , outputFileName ) ) ;
+ System . out . println ( format ( STRING1 , path ) ) ;
-... | shortened the jar name |
<nb> public class DevToolsDataSourceAutoConfigurationTests {
}
@ test
- public void nonEmbeddedInMemoryDatabaseIsShutDown ( ) throws SQLException {
- ConfigurableApplicationContext context = createContextWithDriver ( STRING0 ,
- DataSourceConfiguration . class ) ;
- DataSource dataSource = context . getBe... | Remove a duplicate test |
<nb> public final class TestPutRpc {
assertTrue ( response . contains ( STRING0 ) ) ;
}
- @ test ( expected = BadRequestException . class )
+ @ test
public void ValueInfinityUnsigned ( ) throws Exception {
HttpQuery query = NettyMocks . postQuery ( tsdb , STRING1 ,
STRING2
+ STRING3 ) ;
PutDataPoint... | Fix unsigned Infinity test in the TestPutRpc class as the latest version of |
<nb> public abstract class AbstractPartitionLostListenerTest
return NUMBER0 ;
}
+ protected int getMaxParallelReplicaSyncCount ( ) {
+ return NUMBER1 ;
+ }
+
@ before
public void createHazelcastInstanceFactory ( )
throws IOException {
<nb> public abstract class AbstractPartitionLostListenerTest
... | Increase max parallel replica sync limit in partition lost listener stress tests |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PluginManagerMain {
public void reset ( ) {
TableUtil . ensureSelectionExists ( getPluginTable ( ) ) ;
- SwingUtilities... | don t load plugins from network when running test |
<nb> public class RandomUtils {
SINGLE
SINGLE
public PCGRNG ( long seed , long seq ) {
+ _state = NUMBER0 ;
_inc = ( seq < < NUMBER1 ) | NUMBER1 ;
nextInt ( ) ;
_state += seed ; | Fix PCG RNG constructor to make it deterministic for a given seed |
<nb> public class AccountSelectActivity extends SherlockListActivity implements
return true ;
}
- @ override
- public void onContentChanged ( ) {
- SINGLE
- super . onContentChanged ( ) ;
- AccountManager am = ( AccountManager ) getSystemService ( ACCOUNT_SERVICE ) ;
- if ( am . getAccountsByType ( Ac... | Delete Override onContentChanged method in AccountSelectActivity |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
public interface QuickFix < D extends CommonProblemDescriptor > {
QuickFix [ ] EMPTY_ARRAY = new QuickFix [ NUMBER0 ] ;
+
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT ... | QuickFix name should have sentence capitalization |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Account extends AbstractEntity {
}
public String getJid ( ) {
- return username + STRING0 + server ;
+ return username . toLowerCase ( Locale . getDefault ( ) ) + STRING0 + ... | made account jid lowercase |
<nb> public class CodeFormatterFacade {
PsiDocumentManager . getInstance ( project ) . getDocument ( file ) ,
project , mySettings , fileType , file ) ;
- printToConsole ( rootBlock , model ) ;
+ SINGLE
FormatterEx . getInstanceEx ( ) . format ( model , mySettings , mySettings . getIndentOptions ( fileTyp... | Do not dump formatter |
<nb> public class OSQLFilterItemField extends OSQLFilterItemAbstract {
if ( iRecord == null )
throw new OCommandExecutionException ( STRING0 + name + STRING1 ) ;
- return transformValue ( iRecord , ODocumentHelper . getFieldValue ( ( ODocument ) iRecord , name ) ) ;
+ return transformValue ( iRecord , ODocume... | Fixed bug on SQL Filter |
<nb> public class WalletProtobufSerializer {
confidence . setDepthInBlocks ( confidenceProto . getDepth ( ) ) ;
} else {
SINGLE
- if ( chainHeight != NUMBER0 ) {
+ if ( chainHeight != NUMBER0 && confidenceProto . hasAppearedAtHeight ( ) ) {
confidence . setDepthInBlocks ( chainHeight - confidence . getAppea... | Fix a bug where we d attempt to migrate depths of pending transactions |
<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 NAMESPACE ;
... | fix ci build issue on graph tests |
<nb> public class JsParser {
SINGLE
SINGLE
- JsFunction toFn = new JsFunction ( getScope ( ) ) ;
+ JsFunction toFn = new JsFunction ( getScope ( ) , STRING0 ) ;
SINGLE
SINGLE | added description string to constructor arguments |
<nb> public class OObjectSerializerHelper {
String fieldName ;
int fieldModifier ;
- for ( Class < ? > currentClass = iClass ; currentClass != Object . class ; currentClass = currentClass . getSuperclass ( ) )
+ for ( Class < ? > currentClass = iClass ; currentClass != Object . class ; ) {
for ( Field f : c... | Fixed unmarshalling for POJO that extends ODocument OUser and ORole |
<nb> public final class InodeDirectoryTests {
@ test
public void setLastModificationTimeTest ( ) {
long createTimeMs = System . currentTimeMillis ( ) ;
- long modificationTimeMs = createTimeMs + NUMBER0 ;
+ long modificationTimeMs = Constants . SECOND_MS ;
InodeDirectory inodeDirectory = createInodeDirector... | Used constants more |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.