diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class Utils {
return EpisodeSorting . fromValue ( currentPref ) ;
}
+ public static boolean isICSOrHigher ( ) {
+ return Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH ;
+ }
+
public static boolean isHoneycombOrHigher ( ) {
SINGLE
SINGLE
<nb> public class Utils... | Add isICSOrHigher to Utils |
<nb> public abstract class BaseRuntimeTest {
STRING0 , STRING1 , STRING2 , STRING3 , STRING4
} ;
+ static {
+ SINGLE
+ SINGLE
+ Thread t = new Thread ( STRING5 ) {
+ @ override
+ public void run ( ) {
+ while ( true ) {
+ System . out . print ( STRING6 ) ;
+ try {
+ Thread . sleep ( NUMBER0 ) ... | Add heartbeat thread to gen minimal output for travis appveyor to avoid timeout |
<nb> public abstract class SwipeAdapter extends BaseAdapter {
COMMENT
COMMENT
public void setMode ( Mode mode ) {
- if ( mode == Mode . Multiple ) {
- mOpenPositions . clear ( ) ;
- } else {
- mOpenPosition = INVALID_POSITION ;
- }
+ SINGLE
+ mOpenPositions . clear ( ) ;
+ mOpenPosition = INVALID_... | Fixing accidental open when in a scroll view |
<nb> public interface ExecStarter {
ExecStarter eventLoop ( EventLoop eventLoop ) ;
- void start ( Action < ? super Execution > onError ) ;
+ void start ( Action < ? super Execution > action ) ;
} | Fix misleading parameter name in ExecStarter |
<nb> public class ReactorMessageChannel implements SubscribableChannel < Message < ? > , Me
logger . trace ( STRING0 + getName ( ) + STRING1 + handler ) ;
}
- Registration < ? > registration = this . registrations . get ( handler ) ;
+ Registration < ? > registration = this . registrations . remove ( handler ... | Fix minor issue in ReactorMessageChannel |
<nb> public class MediaplayerActivity extends SherlockFragmentActivity implements
@ override
public void onProgressChanged ( SeekBar seekBar , int progress ,
boolean fromUser ) {
- if ( fromUser ) {
+ if ( fromUser && PlaybackService . isRunning ) {
prog = progress / ( ( float ) seekBar . getMax ( ) ) ;
d... | Fixed crash when moving progressbar |
<nb> public class SingleInspectionProfilePanel extends JPanel {
if ( descriptor . getText ( ) . toLowerCase ( ) . contains ( filter ) ) {
return true ;
}
+ if ( descriptor . getGroup ( ) . toLowerCase ( ) . contains ( filter ) ) {
+ return true ;
+ }
for ( Set < String > keySet : keySetList ) {
if ( key... | filter takes group name into account |
<nb> public class TridentTopologyBuilder {
bd . allGrouping ( masterCoordinator ( batchGroup ) , MasterBatchCoordinator . COMMIT_STREAM_ID ) ;
}
for ( Map m : c . componentConfs ) {
- scd . addConfigurations ( m ) ;
+ bd . addConfigurations ( m ) ;
}
}
} | set component configurations correctly for trident spouts |
<nb> public abstract class Presenter {
COMMENT
COMMENT
protected static void cancelAnimationsRecursive ( View view ) {
- if ( view . hasTransientState ( ) ) {
+ if ( view != null && view . hasTransientState ( ) ) {
view . animate ( ) . cancel ( ) ;
if ( view instanceof ViewGroup ) {
final int count = ( ... | Prevent NPE in Presenter cancelAnimationsRecursive |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
public class ViewUtils {
<nb> public class ViewUtils {
}
return returnValue ;
}
+
+ public static float dipToPixels ( Context context , float dipValue ) {
+ D... | added a helper static method to calculate px from dip values |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class HttpClient extends ContainerLifeCycle
addBean ( byteBufferPool ) ;
if ( scheduler == null )
- scheduler = new TimerS... | Changed the default scheduler to ScheduledExecutorScheduler to reduce GC pressure |
<nb> public class HystrixCommandTest {
assertEquals ( NUMBER0 , circuitBreaker . metrics . getRollingCount ( HystrixRollingNumberEvent . BAD_REQUEST ) ) ;
}
+ @ test
+ public void testNonBlockingCommandQueueFiresTimeout ( ) { SINGLE
+ final TestHystrixCommand < Boolean > cmd = new TestCommandWithTimeout ( N... | Add unit test that demonstrates non blocking timeout for HystrixCommand queue |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
... | Remove println in test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RxPermissions {
startShadowActivity ( permissions ) ;
}
- return Observable . combineLatest ( list , combineLatestBools . INSTANCE ) . doOnSubscribe ( new Ac... | Remove forgotten thing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ override
public void closeAllFiles ( ) {
final EditorFactory editorFactory = EditorFactory . getInstance ( ) ;
- for ( Editor editor : myVirtualFile2... | test editor manager correctly closes editors |
<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 ; | Removed unused imports |
<nb> public final class BridgeContext extends Context {
RTL_ATTRS . put ( STRING0 , STRING1 ) ;
RTL_ATTRS . put ( STRING2 , STRING3 ) ;
RTL_ATTRS . put ( STRING4 , STRING5 ) ;
- RTL_ATTRS . put ( STRING6 , STRING7 ) ;
- RTL_ATTRS . put ( STRING8 , STRING9 ) ;
+ RTL_ATTRS . put ( STRING10 , STRING7 ) ;
+ R... | Fix typo in attr name toLeft toLeftOf |
<nb> public class ProgressGenerator {
public void run ( ) {
mProgress += NUMBER0 ;
button . setProgress ( mProgress ) ;
- if ( mProgress <= NUMBER1 ) {
+ if ( mProgress < NUMBER2 ) {
handler . postDelayed ( this , generateDelay ( ) ) ;
} else {
mListener . onComplete ( ) ; | Fixed bug in ProgressGenerator class |
<nb> public class PlanGenerator {
if ( ! ( backEdge instanceof Dwell || backEdge instanceof PatternDwell || backEdge instanceof PatternInterlineDwell ) ) {
Place stop = makePlace ( state . getBackState ( ) ) ;
leg . stop . add ( stop ) ;
- } else {
+ } else if ( leg . stop . size ( ) > NUMBER0 ) {
leg . sto... | Avoid an ArrayIndexOutOfBoundsException if showIntermediateStops is true |
<nb> public final class ActivityThread {
if ( ! Process . isIsolated ( ) ) {
final File cacheDir = appContext . getCacheDir ( ) ;
- SINGLE
- System . setProperty ( STRING0 , cacheDir . getAbsolutePath ( ) ) ;
-
- setupGraphicsSupport ( data . info , cacheDir ) ;
+ if ( cacheDir != null ) {
+ SINGLE
... | Handle null cache directory |
<nb> public final class AstUtil {
private AstUtil ( ) {
}
- public static JsNameRef newQualifiedNameRef ( String name ) {
- JsNameRef node = null ;
- int endPos ;
- int startPos = NUMBER0 ;
- do {
- endPos = name . indexOf ( STRING0 , startPos ) ;
- String part = ( endPos == - NUMBER1
- ? name . s... | remove unused method |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConfigurationClassPostProcessor implements Bea... | Remove obsolete ConfigurationClassPostProcessor getOrder |
<nb> public interface Database {
boolean isDbLockedByCurrentThread ( ) ;
void close ( ) ;
+
+ Object getRawDatabase ( ) ;
}
<nb> public class EncryptedDatabase implements Database {
delegate . close ( ) ;
}
+ @ override
+ public Object getRawDatabase ( ) {
+ return delegate ;
+ }
+
publi... | added Database getRawDatabase |
<nb> public class TrafficCounter {
COMMENT
COMMENT
public TrafficCounter ( ScheduledExecutorService executor , String name , long checkInterval ) {
- if ( executor == null ) {
- throw new NullPointerException ( STRING0 ) ;
- }
if ( name == null ) {
throw new NullPointerException ( STRING1 ) ;
}
<nb>... | Fix incorrect null value check in TrafficCounter |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface World {
COMMENT
COMMENT
public Boat spawnBo... | Added methods to get a list of entities to World |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COM... | Remove unused field and at copyright |
<nb> public class JSONObjectBody implements AsyncHttpRequestBody < JSONObject > {
@ override
public String getContentType ( ) {
- return STRING0 ;
+ return CONTENT_TYPE ;
}
@ override | use CONTENT_TYPE constant |
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Wallet isTransactionRelevant JavaDoc |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public final class OkApacheClient implements HttpClient {
private static Request transformRequest ( HttpRequest request ) { | Deprecate the Apache shim |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GraphMetadata {
Envelope leftEnv = new Envelope ( ) ;
Envelope rightEnv = new Envelope ( ) ;
double aRightCoordinate = NUMBER0 ;
- fo... | Eliminate reference to GraphVertex in api webapp |
<nb> public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
final NewVirtualFileSystem delegate = getFileSystem ( ) ;
VirtualFile fake = new FakeVirtualFile ( this , name ) ;
name = delegate . getCanonicallyCasedName ( fake ) ;
+ if ( name . length ( ) == NUMBER0 ) return null ;
}
synchronized... | fixed creation of bogus vfile when searching for path with trailing spaces |
<nb> public class Portuguese extends Language {
public Contributor [ ] getMaintainers ( ) {
return new Contributor [ ] {
new Contributor ( STRING0 , STRING1 ) ,
- new Contributor ( STRING2 )
+ new Contributor ( STRING2 , STRING3 )
} ;
} | add Matheus profile on his request |
<nb> public class XsltRouteTest extends SpringTestSupport {
List < Exchange > list = endpoint . getReceivedExchanges ( ) ;
Exchange exchange = list . get ( NUMBER0 ) ;
String xml = exchange . getIn ( ) . getBody ( String . class ) ;
- System . out . println ( STRING0 + xml ) ;
+
log . debug ( STRING0 + xml ... | removed System out calls |
<nb> import NAMESPACE ;
COMMENT
public class MethodNode extends AnnotatedNode implements Opcodes {
- private final String name ;
+ private String name ;
private int modifiers ;
private ClassNode returnType ;
private Parameter [ ] parameters ;
<nb> public class MethodNode extends AnnotatedNode implemen... | Add setter for field MethodNode name |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public interface FrameCompressor
{
<nb> public interface FrameCompressor
{
i = new SnappyCompressor ( ) ;
}
+ catch ( Exception e )
+ {
+ i = null ;
+ }
catch ( NoClassDefFoundError e )
{
i = null ;
... | Make sure we catch all exception during bin protocol snappy initialization |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
public class LogAndEchoHandler extends Handler {
@ suppresswarnings ( STRING0 ) SINGLE
public LogAndEchoV3 echo ( int version , final LogAndEchoV3 u ) {
- new MRTask ( ) { @ override public void setupLocal ( ) { Log ... | run log and echo mrtask at gui lvl priority |
<nb> public class JavaLightStubBuilder extends LightStubBuilder {
return false ;
} else if ( seenNew && type == JavaTokenType . SEMICOLON ) {
seenNew = false ;
+ } else if ( type == JavaTokenType . AT ) {
+ return false ; SINGLE
}
} | if method body has Annotation then it should be parsed because annotation is stube type and will be indexed btw |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class LicenseFrame extends AbstractFrame {
<nb> public class LicenseFrame extends AbstractFrame {
SINGLE
case NUMBER0 :
SINGLE
- localUrl = STRING0 + System . getProperty ( STRING1 ) + Sy... | Use the path of ZAP s installation directory to read the license file |
<nb> public class LiquidStack
itemID = liquid . itemID ;
itemMeta = liquid . itemMeta ;
}
+ SINGLE
+ else if ( Item . itemsList [ itemID ] == null )
+ {
+ return null ;
+ }
int amount = nbt . getInteger ( STRING0 ) ;
LiquidStack liquidstack = new LiquidStack ( itemID , amount , itemMeta ) ;
return... | Sanity check the item ID for loaded liquid stacks better |
<nb> public class Animation {
return frameNumber ;
}
+ COMMENT
+ COMMENT
+ public int getPlayMode ( ) {
+ return playMode ;
+ }
COMMENT
COMMENT
COMMENT | Add getter for Animation play mode |
<nb> public abstract class ExtendableListView extends AbsListView {
invalidate ( ) ;
mPerformClick = new PerformClick ( ) ;
}
- final PerformClick performClick = mPerformClick ;
- performClick . mClickMotionPosition = mMotionPosition ;
- performClick . rememberWindowAttachCount ( ) ;
-
- performClick . ... | Added check for positions enabled state in adapter before performing click |
<nb> public class StandardResourceDescriptionResolver implements ResourceDescriptionR
private String getVariableBundleKey ( String [ ] fixed , String . . . variable ) {
StringBuilder sb = new StringBuilder ( keyPrefix ) ;
for ( String arg : fixed ) {
- sb . append ( STRING0 ) ;
+ if ( sb . length ( ) > NUMBER... | Make StandardResourceOperationResolver only append |
<nb> public class ServletInputStreamImpl extends ServletInputStream {
int res = channel . read ( pooled . getResource ( ) ) ;
if ( res == NUMBER0 ) {
pooled . free ( ) ;
+ pooled = null ;
return ;
}
pooled . getResource ( ) . flip ( ) ; | Fix availble bug |
<nb> public class PluginClassLoader extends URLClassLoader {
}
protected Class < ? > findClass ( String name , boolean checkGlobal ) throws ClassNotFoundException {
+ if ( name . startsWith ( STRING0 ) || name . startsWith ( STRING1 ) ) {
+ throw new ClassNotFoundException ( name ) ;
+ }
Class < ? > resul... | Fully restrict the org bukkit and net minecraft namespace |
<nb> public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase {
@ override
protected Editor createEditor ( @ notnull VirtualFile file ) {
- allowTreeAccessForFile ( file ) ;
+ if ( myVirtualFileFilter instanceof FileTreeAccessFilter ) {
+ allowTreeAccessForFile ( file ) ;
+ }
return supe... | enable stub test |
<nb> public class WorkAssignmentPerformanceLogger {
public void retrievedWorkForAgent ( AgentRuntimeInfo agentRuntimeInfo , Work work , long retrieveWorkStartTime , long retrieveWorkEndTime ) {
if ( work == null || ! ( work instanceof BuildWork ) ) {
+ performanceLogger . log ( STRING0 , agentRuntimeInfo . getI... | Adding a bit more performance logging around work assignment |
<nb> public class CatalanTagger extends BaseTagger {
}
SINGLE
if ( l . isEmpty ( ) && ! isMixedCase ) {
- addTokens ( additionalTags ( word ) , l ) ;
+ addTokens ( additionalTags ( word , dictLookup ) , l ) ;
}
if ( l . isEmpty ( ) ) {
<nb> public class CatalanTagger extends BaseTagger {
}
@ ove... | ca Adjust CatalanTagger for API change |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | applied changes from main library |
<nb> public class ObjectCache < X > implements Serializable {
}
public Object remove ( String name ) {
- return cache . remove ( name ) . object ;
+ if ( cache . containsKey ( name ) ) {
+ return cache . remove ( name ) . object ;
+ }
+ return null ;
}
} | Fixed null pointer in object cache |
<nb> public class CliBroker extends ServerRunnable
JsonConfigProvider . bind ( binder , STRING0 , CacheConfig . class ) ;
JsonConfigProvider . bind ( binder , STRING1 , TierSelectorStrategy . class ) ;
JsonConfigProvider . bind ( binder , STRING2 , CustomTierSelectorStrategyConfig . class ) ;
- JsonConfigProvid... | fix backwards incompatiable change with broker balancer config |
<nb> public class GithubCreatePullRequestWorker {
return myProject ;
}
+ @ notnull
+ public String getCurrentBranch ( ) {
+ return myCurrentBranch ;
+ }
+
@ nullable
public static GithubCreatePullRequestWorker createPullRequestWorker ( @ notnull final Project project , @ nullable final VirtualFile f... | add current branch to dialog title |
<nb> public class InstrumentedQueuedThreadPool extends QueuedThreadPool {
return getIdleThreads ( ) ;
}
} ) ;
+ registry . register ( name ( QueuedThreadPool . class , STRING0 ) , new Gauge < Integer > ( ) {
+ @ override
+ public Integer getValue ( ) {
+ SINGLE
+ SINGLE
+ return getQueue ( ) . size ( ... | Add gauge for pending jobs in InstrumentedQueuedThreadPool |
<nb> public class Sdk {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
private String platform ; | Added missing end quote |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ immutable
@ threadsafe | Improve class Javadoc of DirectoryListingValue |
<nb> class InstallPluginCommand extends SettingCommand {
final String stagingHash = System . getProperty ( PROPERTY_STAGING_ID ) ;
if ( stagingHash != null ) {
url = String . format ( Locale . ROOT ,
- STRING0 ,
+ STRING1 ,
stagingHash , pluginId , version ) ;
} else {
url = String . format ( Locale . R... | Fix staging url for official plugins |
<nb>
package NAMESPACE ;
+ @ suppresswarnings ( STRING0 )
public final class ChunksProtobuf {
private ChunksProtobuf ( ) { }
public static void registerAllExtensions (
<nb>
package NAMESPACE ;
+ @ suppresswarnings ( STRING0 )
public final class EntityData {
private EntityData ( ) { }
publi... | Suppress all warnings in auto generated source code |
<nb> public final class CoreMetrics {
. setQualitative ( true )
. setDomain ( DOMAIN_DESIGN )
. setBestValue ( FLOAT0 )
- . setFormula ( new SumChildValuesFormula ( false ) )
. create ( ) ;
COMMENT
<nb> public final class CoreMetrics {
. setDirection ( Metric . DIRECTION_WORST )
. setQualitative ( f... | Remove formula on design metrics |
<nb> public class J3MLoader implements AssetLoader {
material = new Material ( def ) ;
material . setKey ( key ) ;
+ material . setName ( split [ NUMBER0 ] . trim ( ) ) ;
SINGLE
} else if ( split . length == NUMBER1 ) {
if ( extending ) { | For some reason the J3MLoader never loads the material name |
<nb> public class StackScrollAlgorithm {
if ( row . isPinned ( ) ) {
childState . yTranslation = Math . max ( childState . yTranslation ,
mNotificationsTopPadding ) ;
- childState . height = row . getHeadsUpHeight ( ) ;
+ childState . height = Math . max ( row . getHeadsUpHeight ( ) , childState . height ) ; ... | Fixed a hole in the shade that could exist with heads up |
<nb> public class ItemSelectedInstruction extends AbstractInstruction {
STRING0 + SINGLE
STRING1 + SINGLE
STRING2 + SINGLE
- STRING3 + SINGLE
+ STRING4 + SINGLE
STRING5 + SINGLE
STRING6 + SINGLE
STRING1 + SINGLE
STRING7 + SINGLE
- STRING8 + SINGLE
+ STRING9 + SINGLE
STRING5 + SINGLE
STRING10 +... | Fixed a bug when the ItemSelect method has no parameter it would not compile |
<nb> public class Settings {
}
ComponentName componentName = new ComponentName ( packageName , name ) ;
return packageManager . getActivityIcon ( componentName ) ;
+ } else if ( packageName != null ) {
+ SINGLE
+ ApplicationInfo app = packageManager . getApplicationInfo ( packageName , NUMBER0 ) ;
+ Drawa... | Render consume bubble icons if we only have a packageName |
<nb> package NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class Transform {
public static final int POS_X = NUMBER0 ;
<nb> public class ComboBox extends Widget {
public float getPrefHeight ( ) {
return prefHeight ;
}
+
+ public void se... | fixed documentation in Transform |
<nb> public class DefaultBroadcaster implements Broadcaster {
if ( token . future != null ) token . future . done ( ) ;
+ r . getRequest ( ) . setAttribute ( getID ( ) , null ) ;
+
if ( lostCandidate ) {
cacheLostMessage ( r , token , true ) ;
} | Get rid of Future in the attribute map |
<nb> public class WXEnvironment {
COMMENT
COMMENT
- public static String JS_LIB_SDK_VERSION = STRING0 ;
+ public static String JS_LIB_SDK_VERSION = STRING1 ;
- public static String WXSDK_VERSION = STRING2 ;
+ public static String WXSDK_VERSION = STRING3 ;
public static Application sApplication ;
pub... | android bump version |
<nb> import NAMESPACE ;
public class TheTVDB {
- private static final String mirror = STRING0 ;
+ private static final String TVDB_MIRROR = STRING1 ;
- private static final String mirror_banners = STRING2 ;
+ private static final String TVDB_MIRROR_BANNERS = STRING3 ;
- private static final String x... | Remove www from TVDB API url |
<nb> public class DependencyInjectorGenerator {
Field dependency ;
if ( fields . isEmpty ( ) ) {
+
+ if ( parameterType . isPrimitive ( ) || parameterType . getPackage ( ) . getName ( ) . equals ( STRING0 ) ) {
+ throw new IllegalArgumentException (
+ STRING1 + parameterType + STRING2 + errorMessage ) ;
... | prohibit field of certain types |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import... | Fix slowness in Netty data server test |
<nb> public class EclipsePatcher {
sm . addScript ( ScriptBuilder . exitEarly ( )
. target ( new MethodTarget ( STRING0 , STRING1 ) )
+ . target ( new MethodTarget ( STRING0 , STRING2 ) )
. decisionMethod ( new Hook ( STRING3 , STRING4 ,
STRING5 ) )
. transplant ( ) . request ( StackRequest . PARAM1 ) . b... | Also prevented generated nodes from being removed from ASTRewriter |
<nb> public class GrailsUtilTests extends TestCase {
}
public void testGrailsVersion ( ) {
- assertEquals ( STRING0 , GrailsUtil . getGrailsVersion ( ) ) ;
+ assertEquals ( STRING1 , GrailsUtil . getGrailsVersion ( ) ) ;
}
protected void tearDown ( ) throws Exception { | Fixed test failure related to version change |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Vec extends Keyed < Vec > {
for ( int r = NUMBER0 ; r < c0 . _len ; r ++ ) c0 . set ( r , vec . at ( srow + r ) ) ;
}
} . doAll ( avec ) ; ... | use the original Vec s domain in alignment |
<nb> public class FeedManager {
adapter . open ( ) ;
for ( FeedItem item : unreadItemsCopy ) {
setFeedItem ( item , adapter ) ;
+ if ( item . hasMedia ( ) )
+ setFeedMedia ( context , item . getMedia ( ) ) ;
}
adapter . close ( ) ;
} | Save media when marking all items as read |
<nb> public class WifiConfiguration implements Parcelable {
COMMENT
public EnterpriseField phase2 = new EnterpriseField ( STRING0 ) ;
COMMENT
- public EnterpriseField identity = new EnterpriseField ( STRING1 ) ;
+ public EnterpriseField identity = new EnterpriseField ( STRING2 ) ;
COMMENT
public Enterpris... | Fix the incorrect field name in EAP wifi network |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports |
<nb> class ResultSetFilterPanel extends Composite
y = parentRect . y - height ;
}
popup . setBounds ( x , y , width , height ) ;
- editControl . getColumn ( NUMBER0 ) . setWidth ( editControl . getSize ( ) . x - editControl . getBorderWidth ( ) * NUMBER1 ) ;
+ int tableWidth = editControl . getSize ( ) . x - ... | History drop down render fix |
<nb> class BackupManagerService extends IBackupManager . Stub {
SINGLE
SINGLE
SINGLE
- if ( ( mCurrentToken == NUMBER0 ) && ( status != BackupConstants . TRANSPORT_OK ) ) {
+ if ( ( mCurrentToken == NUMBER0 ) && ( status == BackupConstants . TRANSPORT_OK ) ) {
try {
mCurrentToken = mTransport . getCurrent... | Properly note the current active restore set s token |
<nb> public class CircularProgressButton extends Button {
public static final int IDLE_STATE_PROGRESS = NUMBER0 ;
public static final int ERROR_STATE_PROGRESS = - NUMBER1 ;
+ public static final int SUCCESS_STATE_PROGRESS = NUMBER2 ;
+ public static final int INDETERMINATE_STATE_PROGRESS = NUMBER3 ;
priva... | Add some constants so you can use indetermiante progress mode without defining your own constants |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class MixedColor implements Color {
- private final HolderImpl < Color > m_colorHolder1 ;
- private final HolderImpl < Color > m_colorHolder2 ;
+ pri... | Fixed MixedColor to use a Holder and not a HolderImpl |
<nb> public class MethodGrailsControllerHelper extends AbstractGrailsControllerHelper
@ override
protected Method retrieveAction ( GroovyObject controller , String actionName ,
HttpServletResponse response ) {
- Method action = ReflectionUtils . findMethod ( controller . getClass ( ) , actionName , NOARGS ) ;
... | prevent Method name must not be null exception |
<nb> public class Bubble extends RelativeLayout {
String nowString = now . format ( STRING0 ) ;
SettingsFragment . addRecentBubble ( context , info . url , info . title , nowString ) ;
}
+
+ if ( Settings . get ( ) . autoLoadContent ( ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ }
}
@ override | Add placeholder code for automatically expanding a bubble when the page is ready |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
public class BeanGraph {
private final Graph graph ;
private final BeanElements beans ;
<nb> public class BeanGraph {
return new BeanGraph ( new TinkerGraph ( ) ) ;
}
- public final < T extends BeanElement > T... | Fix possible null pointer dereference |
<nb> public class NestedScrollView extends FrameLayout implements NestedScrollingPare
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix documentation of NestedScrollView setFillViewport |
<nb> public class GroovyAssignabilityCheckInspection extends BaseInspection {
final PsiType expectedType = method . getReturnType ( ) ;
if ( value == null || expectedType == null ) return ;
+
+ SINGLE
+ if ( expectedType == PsiType . VOID ) return ;
+
checkAssignability ( expectedType , value , returnSt... | don t check return statements of void method in inspection because the annotator checks them |
<nb> public class CallLog {
public static final String VOICEMAIL_URI = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String IS_READ = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class VoicemailContract {
CO... | Add IS_READ column in call log and voicemail providers |
<nb> public class BinaryJedis implements BasicCommands , BinaryJedisCommands , MultiKey
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class BinaryJedis implements BasicCommands , BinaryJedisCommands , MultiKey
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
CO... | updating javadoc s external links |
<nb> public class RedirectBuilder {
break ;
} else if ( c == STRING0 ) {
if ( pos != i ) {
- String original = part . substring ( pos , i - NUMBER0 ) ;
+ String original = part . substring ( pos , i ) ;
String encoded = URLEncoder . encode ( original , UTF_8 ) ;
if ( ! encoded . equals ( original ) ) {
... | Fix redirect encoding issue |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
@ suppresswarnings ( { STRING0 } )
abstract class AbstractMigrationLoadingMojo extends AbstractFlywayMojo { | removed execute phase compile |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void startLockTask ( ) {
try { | Fix incorrect Activity startLockTask doc |
<nb> public class PrivacyService {
if ( hook . isDangerous ( ) ) {
result . methodName = hook . getName ( ) ;
result . restricted = false ;
- result . asked = false ;
+ result . asked = true ;
setRestrictionInternal ( result ) ;
}
} | Revert Revert Ask on demand for automatically set dangerous methods |
<nb> public class TypeCookTest extends MultiFileTestCase {
assertNotNull ( STRING0 + className + STRING1 , aClass ) ;
+ COMMENT
SystemBuilder b = new SystemBuilder ( aClass . getManager ( ) ,
SystemBuilder b = new SystemBuilder ( aClass . getManager ( ) . getProject ( ) ,
+ COMMENT
SystemBuilder b = new... | Fixed incompilable code by db |
<nb> public class GoFindUsageTest extends GoCodeInsightFixtureTestCase {
assertException ( new AssertionErrorCase ( ) {
@ override
public void tryClosure ( ) {
- myFixture . findUsages ( myFixture . getElementAtCaret ( ) ) ;
+ try {
+ myFixture . findUsages ( myFixture . getElementAtCaret ( ) ) ;
+ }
+ ... | Fix test on windows |
<nb> public class BooleanTransformer implements Transformer < Boolean > {
if ( STRING0 . equalsIgnoreCase ( arguments [ NUMBER0 ] ) || STRING1 . equalsIgnoreCase ( arguments [ NUMBER0 ] ) ) {
return Boolean . parseBoolean ( arguments [ NUMBER0 ] ) ;
} else {
- throw new TransformationException ( String . format... | Fixed bug in BooleanTransformer |
<nb> public class KotlinRuntimeLibraryUtil {
ImmutableList < String > candidateClassNames = ImmutableList . of (
kotlinPackageClassFqName ,
+ SINGLE
+ STRING0 ,
SINGLE
STRING1 ,
SINGLE | Prevent annoying tooltip in Kotlin project |
<nb> public class EditPostContentFragment extends Fragment implements TextWatcher ,
} ) ;
}
- private void launchVideoLibrary ( ) {
- MediaUtils . launchVideoLibrary ( this ) ;
- AppLockManager . getInstance ( ) . setExtendedTimeout ( ) ;
- }
-
- private void launchVideoCamera ( ) {
- MediaUtils . l... | Removing unused methods |
<nb> public class StompConfiguration implements Cloneable {
private String login ;
@ uriparam
private String passcode ;
+ @ uriparam
+ private String host ;
COMMENT
COMMENT
<nb> public class StompConfiguration implements Cloneable {
public String getBrokerURL ( ) {
return brokerURL ;
}
+
+ p... | added stomp support for virtual host in Apache Apollo by adding a host |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public abstract class MethodParameterFactory {
+ abstract class MethodParameterFactory {
private MethodParameterFactory ( ) {
COMMENT
<nb> public abstract class MethodParameterFactory {
COMMENT
COMMENT
COMMENT
- public static MethodParameter cr... | Restrict visibility of internal MethodParameterFactory |
<nb> public interface HttpChunk {
COMMENT
COMMENT
COMMENT
- static HttpChunk LAST_CHUNK = new DefaultHttpChunk ( ChannelBuffers . EMPTY_BUFFER ) ;
+ static HttpChunk LAST_CHUNK = new HttpChunk ( ) {
+ public ChannelBuffer getContent ( ) {
+ return ChannelBuffers . EMPTY_BUFFER ;
+ }
+
+ public boole... | Optimized HttpChunk LAST_CHUNK |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VcsLogRefresherImpl implements VcsLogRefresher {
}
}
SINGLE
- LOG . error ( STRING0 + commitCount / NUMBER0 + STRING1 + permanentGraph . getAllCommits ( ) . size ( ) +... | log Don t log couldn t join problem as error since the case is valid |
<nb> public abstract class SquidDatabase {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public final void close ( ) {
acquireExclusiveLock ( ) ;
<nb> public abstract class SquidDatabase {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
... | Add some clarifying javadocs and an important TODO |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
public class BasicExample {
+ @ monitor ( name = STRING0 , type = DataSourceType . INFORMATIONAL )
+ public final AtomicReference < String > info = new AtomicReference < ... | add informational to example |
<nb> public abstract class OBaseParser {
if ( nextChar == STRING0 ) {
parserCurrentPos = OStringParser . readUnicode ( text2Use , parserCurrentPos + NUMBER0 , parserLastWord ) ;
+ parserEscapeSequnceCount += NUMBER1 ;
} else {
if ( nextChar == STRING1 )
parserLastWord . append ( STRING2 ) ; | to fixed issue with in operator filter when array representing strings with escape characters |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.