diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class MultiLayerConfiguration implements Serializable , Cloneable {
conf . dampingFactor = dampingFactor ;
conf . backprop = backprop ;
conf . inputPreProcessors = inputPreProcessors ;
+ conf . redistributeParams = redistributeParams ;
Nd4j . getRandom ( ) . setSeed ( conf . getConf ( NUMBER0 ) . ... | Fix redistributeParams config builder |
<nb> public final class AnnotationUseStyleCheck extends Check {
case EXPANDED :
checkExpandedStyle ( annotation ) ;
break ;
+ case IGNORE :
default :
break ;
} | Add missing case in switch |
<nb> public class StorageSetup {
return config ;
}
-
+ public static Configuration getEmbeddedCassandraGraphConfiguration ( ) {
+ Configuration config = StorageSetup . getLocalGraphConfiguration ( ) ;
+ config . subset ( GraphDatabaseConfiguration . STORAGE_NAMESPACE ) . addProperty ( GraphDatabaseConfigu... | Fix backend on embedded cassandra graph test |
<nb> import NAMESPACE ;
COMMENT
public class FileResolver {
+ private static final String FILE_SEP = System . getProperty ( STRING0 ) ;
+ private static boolean NON_UNIX_FILE_SEP = ! FILE_SEP . equals ( STRING1 ) ;
+
private final Vertx vertx ;
private final boolean enableCaching = System . getProperty ... | resolve files properly on Windows |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | Remove unused imports |
<nb> public class MainNetParams extends NetworkParameters {
STRING0 , SINGLE
STRING1 , SINGLE
STRING2 , SINGLE
+ STRING3 , SINGLE
} ;
} | Add a new DNS seed from Chris Decker |
<nb> public class FilePatternPackageSet extends PatternBasedPackageSet {
private boolean fileMatcher ( VirtualFile virtualFile , ProjectFileIndex fileIndex , VirtualFile projectBaseDir ) {
final String relativePath = getRelativePath ( virtualFile , fileIndex , true , projectBaseDir ) ;
- LOG . assertTrue ( rela... | avoid unconditional trace |
<nb> public class MigrationInfoImpl implements MigrationInfo {
return String . format ( STRING0 ,
appliedMigration . getScript ( ) , appliedMigration . getChecksum ( ) , resolvedMigration . getChecksum ( ) ) ;
}
+ if ( ! resolvedMigration . getDescription ( ) . equals ( appliedMigration . getDescription ( ) ) )... | Validate does not report different descriptions for same version |
<nb> public class AstLambdaExpression extends SimpleNode {
Object result = getValue ( ctx ) ;
if ( result instanceof LambdaExpression ) {
- result = ( ( LambdaExpression ) result ) . invoke ( paramValues ) ;
+ result = ( ( LambdaExpression ) result ) . invoke ( ctx , paramValues ) ;
}
return result ; | Use the correct method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SingleMessageView extends LinearLayout implements OnClickListener ,
String text = null ;
if ( pgpData != null ) {
text = ... | Display decrypted verified messages like text plain messages |
<nb> public class Parser {
private ParseTree parseFunctionExpression ( ) {
SourcePosition start = getTreeStartLocation ( ) ;
- boolean isGenerator = eatOpt ( TokenType . STAR ) != null ;
eat ( Keywords . FUNCTION . type ) ;
+ boolean isGenerator = eatOpt ( TokenType . STAR ) != null ;
IdentifierToken name... | Fix parseFunctionExpression for generators |
<nb> public class Configuration {
COMMENT
Configuration copy ( Configuration configuration ) {
Configuration copy = new Configuration ( ) ;
- copy . configFile = configuration . configFile ;
- copy . language = configuration . language ;
- copy . motherTongue = configuration . motherTongue ;
- copy . runS... | remove duplicate code |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface AgentBuilder {
COMMENT
COMMENT
COMMENT
+ @ suppressfbwarnings ( value = STRING0 , justification = STRING1 )
NexusAccessor ( ) {
Dispatcher dispatcher ;
try { | Added findbugs suppression |
<nb> public final class Config {
public static final int PING_MAX_INTERVAL = NUMBER0 ;
public static final int PING_MIN_INTERVAL = NUMBER1 ;
- public static final int PING_TIMEOUT = NUMBER2 ;
+ public static final int PING_TIMEOUT = NUMBER3 ;
public static final int SOCKET_TIMEOUT = NUMBER3 ;
public stati... | increased dns timeout |
<nb> public class TaskListAdapter extends ArrayAdapter < TaskModelForList > {
hooks . setSelectedItem ( task . getTaskIdentifier ( ) ) ;
}
- setFieldContentsAndVisibility ( view , task ) ;
- ( ( ListView ) view . getParent ( ) ) . setSelection ( objects . indexOf ( task ) ) ;
+ if ( view != null ) {
+ set... | Adding more protection from NPE |
<nb> class JSSESupport implements SSLSupport , SSLSessionManager {
break ;
}
}
- keySize = new Integer ( size ) ;
+ keySize = Integer . valueOf ( size ) ;
synchronized ( keySizeCache ) {
keySizeCache . put ( session , keySize ) ;
} | Fix FindBugs warning |
<nb> public abstract class AbstractCinematicEvent implements CinematicEvent {
this . loopMode = loopMode ;
}
- public void setInitalDuration ( float initalDuration ) {
- this . initialDuration = initalDuration ;
- duration = initalDuration / speed ;
- }
-
- public float getInitalDuration ( ) {
- ret... | removed accessors with a typo |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class HumanTimeTest extends TestCase {
-
- public void testHumanTime ( ) {
+
+ public void IGNORED_testHumanTime ( ) {
SINGLE
I18nManager i18nManager = new DummyI18nManager ( ) ; | Adding IGNORED to testHumanTime since it keeps causing trouble on CI and does not add much value |
<nb> public class OClassIndexManager extends ODocumentHookAbstract {
}
@ override
- public boolean onRecordAfterDelete ( ODocument iRecord ) {
+ public boolean onRecordBeforeDelete ( final ODocument iDocument ) {
+ if ( iDocument . fields ( ) == NUMBER0 )
+ SINGLE
+ iDocument . reload ( ) ;
+ return f... | Fixed issue on delete of record in transaction using the remote protocol with indexes |
<nb> public interface StandardTargetWeights {
float PROJECT_WEIGHT = NUMBER0 ;
float PACKAGES_WEIGHT = NUMBER1 ;
float J2EE_WEIGHT = NUMBER2 ;
- float SCOPE_WEIGHT = FLOAT0 ;
float STRUCTURE_WEIGHT = NUMBER3 ;
float COMMANDER_WEIGHT = NUMBER4 ;
float FAVORITES_WEIGHT = NUMBER5 ;
+ float SCOPE_WEIGHT = F... | moved scope down |
<nb> public class DrawerLayout extends ViewGroup {
if ( mListener != null ) {
mListener . onDrawerClosed ( drawerView ) ;
}
- sendAccessibilityEvent ( AccessibilityEvent . TYPE_WINDOW_STATE_CHANGED ) ;
+ getRootView ( ) . sendAccessibilityEvent ( AccessibilityEvent . TYPE_WINDOW_STATE_CHANGED ) ;
}
} | Hiding DrawerLayout does not fire correct accessibility event |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class SelectChannelTimeoutTest extends ConnectorTimeoutTest
{
+ @ rule
+ public TestTracker tracker = new TestTracker ( ) ;
... | Adding test tracking to figure out where the test hang is coming from |
<nb> public class CxxPreprocessAndCompileStep implements Step {
input . toString ( ) ,
inputType . getLanguage ( ) ) ) ;
- if ( operation == Operation . COMPILE_MUNGE_DEBUGINFO ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- builder . environment ( ) . put (
- STRING0 ,
... | Fix sanitization of compiler directory in the case where the repository root is a symbolic link |
<nb> public class SocketIOClient {
ret . setParent ( cancel ) ;
}
- public Future < SocketIOClient > reconnect ( final SocketIOConnectCallback callback ) {
+ private Future < SocketIOClient > reconnect ( final SocketIOConnectCallback callback ) {
FutureImpl ret = new FutureImpl ( ) ;
reconnect ( callback ... | revert some changes that were left in between testing |
<nb> public class DaoAuthenticationProvider implements AuthenticationProvider ,
user = getUserFromBackend ( username ) ;
} catch ( BadCredentialsException ex ) {
if ( this . context != null ) {
+ if ( ( username == null ) || STRING0 . equals ( username ) ) {
+ username = STRING1 ;
+ }
+
context . publis... | Fix unit test compatibility if no username provided |
<nb> public abstract class AbstractMultipleOptionsBaseTablePanel < E > extends MultipleO
@ override
public void valueChanged ( ListSelectionEvent e ) {
if ( ! e . getValueIsAdjusting ( ) ) {
- boolean enabled = getTable ( ) . getSelectionModel ( ) . getMinSelectionIndex ( ) >= NUMBER0 ;
-
- modifyButton . s... | AbstractMultipleOptionsBaseTablePanel allow subclasses to react to selection changes |
<nb> public class ExpressionCompatibilityConstraint extends InputOutputConstraintForm
}
final boolean accepted = callSession . repeatInferencePhases ( true ) ;
if ( ! accepted ) {
- SINGLE
+ return false ;
}
callSession . registerConstraints ( method != null && ! PsiUtil . isRawSubstitutor ( method , site... | reject expression constraint which leads to false inside bound set |
<nb> public class PlatformManager {
COMMENT
public synchronized void register ( Platform platform ) throws PlatformRejectionException {
checkNotNull ( platform ) ;
- logger . log ( Level . FINE , STRING0 + platform . getClass ( ) . getCanonicalName ( ) + STRING1 ) ;
+ logger . log ( Level . INFO , STRING0 + p... | Raised level for platform registration log message |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class FloatNode extends NumericNode
+ public final class FloatNode extends NumericNode
{
protected final float _value ; | Made FloatNode final |
<nb> public class BaseFileSystem implements FileSystem {
private final FileSystemContext mContext ;
COMMENT
+ COMMENT
COMMENT
COMMENT
- public static BaseFileSystem get ( ) {
- return new BaseFileSystem ( FileSystemContext . INSTANCE ) ;
+ public static BaseFileSystem get ( FileSystemContext context )... | Fix lineage tests |
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
Preconditions . checkNotNull ( packageName , STRING0 ) ;
final int callingUid = mInjector . binderGetCallingUid ( ) ;
try {
- int uid = mContext . getPackageManager ( ) . getPackageUidAsUser ( packageName , NUMBER0 ) ;
+ int ui... | Fix clearDeviceOwner not working in split user mode |
<nb> public class Assert {
static public void failSame ( String message ) {
String formatted = ( message != null ) ? message + STRING0 : STRING1 ;
- fail ( formatted + STRING2 ) ;
+ fail ( formatted + STRING2 ) ;
}
static public void failNotSame ( String message , Object expected , Object actual ) { | deleted extra space |
<nb>
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
package NAMESPACE ;
import NAMESPACE ; | added copyright notice to craft commands handler |
<nb> public class Patterns {
+ STRING0
+ STRING1
+ STRING2 SINGLE
- + STRING3 SINGLE
+ + STRING4 + GOOD_IRI_CHAR + STRING5 SINGLE
+ STRING6
+ STRING7 ) ; SINGLE
SINGLE
<nb> public class PatternsTest extends TestCase {
t = Patterns . WEB_URL . matcher ( STRING8 ) . matches ( ) ;
assertTrue ( STRING... | Add good international characters to the path part of Url pattern |
<nb> public class RAMDataAccess extends AbstractDataAccess {
}
segments = newSegs ;
} catch ( OutOfMemoryError err ) {
- throw new OutOfMemoryError ( err . getMessage ( ) + STRING0
- + cap + STRING1 + todoBytes + STRING2 + segmentSizeIntsPower ) ;
+ throw new OutOfMemoryError ( err . getMessage ( ) + STRING... | fixing long vs int issue in capacity |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class EventBus {
+ public class EventBus {
static ExecutorService executorService = Executors . newCachedThreadPool ( ) ;
COMMENT | remove final modifier for EventBus |
<nb> import NAMESPACE ;
public class RedisProducer extends DefaultProducer {
private final RedisClient redisClient ;
+ private transient String redisProducerToString ;
+
public RedisProducer ( RedisEndpoint endpoint , RedisConfiguration configuration ) {
super ( endpoint ) ;
redisClient = new RedisClien... | Optimize toString on camel redis producer |
<nb> public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi
}
}
- private void saveLater ( ) {
+ COMMENT
+ protected void saveLater ( ) {
WalletFiles files = vFileManager ;
if ( files != null )
files . saveLater ( ) ;
}
COMMENT
- private void saveNow ( ) {
+ prote... | expose saveNow saveLater to subclasses |
<nb> public class Roster {
SINGLE
if ( item . getGroupNames ( ) . isEmpty ( ) ) {
- if ( ! unfiledEntries . contains ( entry ) ) {
- unfiledEntries . add ( entry ) ;
- }
+ unfiledEntries . remove ( entry ) ;
+ unfiledEntries . add ( entry ) ;
}
else {
unfiledEntries . remove ( entry ) ; | Fix unfiledEntries not updating |
<nb> public class Histogram implements Serializable {
binnedCounts [ times [ fidx ] ] += NUMBER0 ;
- PointFeature pf = targets . getFeature ( fidx ) ;
-
- for ( Map . Entry < String , Integer > prop : pf . getProperties ( ) . entrySet ( ) ) {
- binnedProperties . get ( prop . getKey ( ) ) [ times [ fidx ]... | don t use pointset getFeature when looping over pointset properties |
<nb> public class DownloadManagerBaseTest extends InstrumentationTestCase {
COMMENT
COMMENT
COMMENT
- private void waitForDownloadOrTimeout_skipNotification ( long id ) throws TimeoutException ,
+ protected void waitForDownloadOrTimeout_skipNotification ( long id ) throws TimeoutException ,
InterruptedExcep... | Fixing DownloadManager Test app |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class OntonotesXMLtoColumn {
+
+ private static final boolean VERBOSE = true ;
+
final SAXParser parser ;
- int filesProcessed ; SINGLE
+ private int filesProcessed ; SINGLE
public OntonotesXMLtoColumn ( ) {
try {
<nb> public class OntonotesXMLt... | Add debug option to dump entities |
<nb> public abstract class GoRunConfigurationBase < RunningState extends GoRunningState
}
public void setCustomEnvironment ( @ notnull Map < String , String > customEnvironment ) {
- myCustomEnvironment = customEnvironment ;
+ myCustomEnvironment . clear ( ) ;
+ myCustomEnvironment . putAll ( customEnvironm... | Do not replace map reference |
<nb> public class AbstractVerifyTest {
this . testGroup = testGroup ;
this . stateName = stateName ;
- File liquibaseRootDir = new File ( STRING0 ) ;
- if ( liquibaseRootDir . getName ( ) . equals ( STRING1 ) ) {
- liquibaseRootDir = liquibaseRootDir . getParentFile ( ) ;
+ File liquibaseRootDir = new Fil... | Fixed problem where maven was using a different root for running the VerifyTests |
<nb> public class GitblitUserService implements IUserService {
public void setup ( IStoredSettings settings ) {
File realmFile = GitBlit . getFileOrFolder ( Keys . realm . userService , STRING0 ) ;
serviceImpl = createUserService ( realmFile ) ;
+ logger . info ( STRING1 + serviceImpl . toString ( ) ) ;
}
... | Improved logging of GitblitUserService |
<nb> public class LocationManagerService extends ILocationManager . Stub implements Run
}
SINGLE
ContentResolver resolver = mContext . getContentResolver ( ) ;
- String allowedProviders = Settings . Secure . getString ( resolver ,
- Settings . Secure . LOCATION_PROVIDERS_ALLOWED ) ;
- return ( ( allowedPr... | Use isLocationProviderEnabled to test for enabled providers |
<nb>
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 ;
- import NAMESPA... | Remove unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ChangesListView extends Tree implements DataProvider {
public String getRelativePath ( FilePath parent , FilePath child ) {
if ( parent == n... | Windows should have backward slashes apper in file nodes |
<nb> public class WikiIndexer {
int commEnd = result . indexOf ( STRING0 ) ;
if ( commEnd == - NUMBER0 ) {
commEnd = result . length ( ) ;
+ } else {
+ commEnd += STRING0 . length ( ) ;
}
return ( result . substring ( NUMBER1 , commSt ) + result . substring ( commEnd ) ) . trim ( ) ;
} | Fix small issues |
<nb> public class AtmosphereFramework implements ServletContextProvider {
logger . info ( STRING0 , broadcasterFactory . getClass ( ) . getName ( ) ) ;
logger . info ( STRING1 , webSocketProcessorClassName ) ;
logger . info ( STRING2 , broadcasterClassName ) ;
+ logger . info ( STRING3 , STRING4 , STRING5 ) ;
... | Add commercial support email |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- public class ModelRegistryValidatingConfigurationAction implements ProjectConfigureAction {
+ public class ModelRegistryValidatingConfigurationAction implements Action < ProjectInternal > {
public void execute ( ProjectInternal proje... | Don t use ProjectConfigurationAction |
<nb> public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
return mAnimatedVectorState . mVectorDrawable . setLayoutDirection ( layoutDirection ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ override
public int getAlpha ( ) {
return mAnima... | Add the missing overriden API |
<nb> import NAMESPACE ;
COMMENT
public final class Tools {
- private static Calendar cal = Calendar . getInstance ( ) ;
-
private Tools ( ) { }
COMMENT
<nb> public final class Tools {
java . util . Collections . sort ( list ) ;
return list ;
}
-
- SINGLE
- SINGLE
- public static String b... | remove no longer used method |
<nb> public class NodeManager
COMMENT
public Node getNodeById ( int nodeId ) throws NotFoundException
{
+ if ( nodeId < NUMBER0 )
+ {
+ throw new IllegalArgumentException ( STRING0 + nodeId ) ;
+ }
Node node = nodeCache . get ( nodeId ) ;
if ( node != null )
{ | Added check for negative id right away to throw an illegal argument exception |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT ... | Describe reason for connection closing in log message |
<nb> public class SwiftUnderFileSystem extends UnderFileSystem {
SINGLE
if ( path . endsWith ( STRING0 ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
createOutputStream ( CommonUtils . stripSuffixIfPresent ( path , STRING0 ) ) . close ( ) ;
} | Adding back deleted comment |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class HttpUtilsTest {
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class XmlUtilsTest { | added since and author to javadoc in test |
<nb> public class UIUtil {
if ( rect == null ) rect = new Rectangle ( size ) ;
SINGLE
- Image image = new BufferedImage ( rect . width * NUMBER0 , rect . height * NUMBER0 , BufferedImage . TYPE_INT_ARGB ) ;
+ Image image = new BufferedImage ( rect . width * NUMBER0 , rect . height * NUMBER0 , BufferedImage . ... | use RGB instead of RGBA buffer for renderWithXorOnRetina |
<nb> import NAMESPACE ;
public class DimLayer {
private static final String TAG = STRING0 ;
- private static final boolean DEBUG = true ;
+ private static final boolean DEBUG = false ;
COMMENT
final DisplayContent mDisplayContent ; | Turn off debug logging |
<nb> final class PlatformDependent0 {
try {
addressField = Buffer . class . getDeclaredField ( STRING0 ) ;
addressField . setAccessible ( true ) ;
- if ( addressField . getLong ( ByteBuffer . allocate ( NUMBER0 ) ) != NUMBER1 ) {
- SINGLE
+ if ( addressField . getLong ( direct ) == NUMBER1 ) {
+ SINGLE
... | Removed HeapByteBuffer address field check |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class SASLAuthentication {
+ private static final Logger LOGGER = Logger . getLogger ( SASLAuthentication . class . getName ( ) ) ;
+
p... | Log a warning if the server didn t report SASL mechanisms |
<nb> public final class VertexAttributes implements Iterable < VertexAttribute > {
COMMENT
public static final class Usage {
public static final int Position = NUMBER0 ;
+ COMMENT
+ @ deprecated
public static final int Color = NUMBER1 ;
+ public static final int ColorUnpacked = NUMBER1 ;
public static f... | Add Usage ColorUnpacked deprecate Usage Color |
<nb> public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
if ( component . isViewProviderLocked ( this ) ) {
throw new RuntimeException ( STRING0 ) ;
}
- component . doPostponedFormatting ( ) ;
+ component . doPostponedFormatting ( this ) ;
final PsiFileImpl psiFile = ( PsiFileIm... | invoke postprocess reformatting for the current file only |
<nb> public class MatchVariableConstraint extends NamedScriptableDefinition {
if ( wholeWordsOnly ) element . setAttribute ( WHOLE_WORDS_ONLY , TRUE ) ;
if ( invertContainsConstraint ) element . setAttribute ( NEGATE_CONTAINS_CONDITION , TRUE ) ;
if ( invertWithinConstraint ) element . setAttribute ( NEGATE_WITHI... | only save constraints when non empty |
<nb> public class JRubySnippetGenerator extends SnippetGenerator {
@ override
protected String template ( ) {
return STRING0 +
+ STRING1 +
STRING2 +
STRING3 ;
} | added pending to the snippit generation string |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
@ configuration
@ enableautoconfiguration
- @ componentscan
public class SampleWebStaticApplication {
public static void main ( String [ ] args ) throws Exception { | Remove unused ComponentScan |
<nb> public class ShadowAlertDialog extends ShadowDialog {
return items ;
}
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- COMMENT
- SINGLE
- SINGLE
- SINGLE
-
COMMENT
COMMENT
COMMENT | removed some commented code |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class ProxyCountRequestBuilder extends CountRequestBuilder {
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class ProxyGe... | Remove some unused imports |
<nb> public final class ActivityManagerService extends ActivityManagerNative
pw . print ( STRING0 ) ; pw . print ( memInfo . getTotalSizeKb ( )
- totalPss - memInfo . getFreeSizeKb ( ) - memInfo . getCachedSizeKb ( )
- memInfo . getKernelUsedSizeKb ( ) ) ; pw . println ( STRING1 ) ;
+ } else {
+ pw . print ( ... | add lost RAM info to compact meminfo dump |
<nb> public class MipMapTest extends GdxTest {
mesh . render ( shader , GL10 . GL_TRIANGLE_FAN ) ;
shader . end ( ) ;
+ ui . act ( ) ;
ui . draw ( ) ;
} | added ui act in render method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class PyClassType implements PyType {
+ public class PyClassType extends UserD... | avoid creating many custom PyClassType subclasses use PyClassType userdata instead |
<nb> public class KotlinJavascriptMavenConfigurator extends KotlinMavenConfigurator {
private static final String NAME = STRING0 ;
private static final String STD_LIB_ID = STRING1 ;
private static final String JS_GOAL = STRING2 ;
+ private static final String JS_TEST_GOAL = STRING3 ;
private static final Stri... | Maven IDEA configurator also configures tests for JavaScript |
<nb> public class Object3D extends ATransformable3D implements Comparable < Object3D > ,
public Object3D clone ( boolean copyMaterial , boolean cloneChildren ) {
Object3D clone = new Object3D ( ) ;
cloneTo ( clone , copyMaterial ) ;
- clone . setRotation ( getRotation ( ) . clone ( ) ) ;
- clone . setScale ( ... | undo previous change |
<nb> public class RebalanceUtils {
VectorClock newClock ) {
for ( Versioned < Cluster > versionedCluster : clockList ) {
VectorClock clock = ( VectorClock ) versionedCluster . getVersion ( ) ;
- if ( Occured . CONCURRENTLY . equals ( clock . equals ( newClock ) ) )
+ if ( Occured . CONCURRENTLY . equals ( clo... | compare clocks with |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT | Remove unused import |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Configuration {
}
try ( FileOutputStream fos = new FileOutputStream ( configFile ) ) {
- props . store ( fos , STRING0 ) ;
+ props . store ( fos , STRING1 + JLanguageTool . VERSION + S... | add version and build date to configuration file comment |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class RestProcessor implements GeneratingElementProcessor {
List < DeclaredType > interceptors = anno... | Added a type parameter to the instanciation of an ArrayList |
<nb> public class GrailsRuntimeConfigurator implements ApplicationContextAware {
if ( springResources . exists ( ) ) {
LOG . debug ( STRING0 + springResources . getURL ( ) ) ;
XmlBeanFactory xmlBf = new XmlBeanFactory ( springResources ) ;
+ xmlBf . setBeanClassLoader ( Thread . currentThread ( ) . getContextCl... | set class loader to resolve groovy beans within XML |
<nb> public class PydevConsoleCommunication implements IScriptConsoleCommunication , X
SINGLE
int commAttempts = NUMBER0 ;
while ( true ) {
- if ( indicator . isCanceled ( ) ) {
- return ;
- }
+ try {
+ ProgressManager . checkCanceled ( ) ;
+ }
+ catch ( ProcessCanceledException e ) {
+ LOG . debu... | Better canceled check |
<nb> public class CatalogManager
private void loadCatalog ( File file )
throws Exception
{
+ log . info ( STRING0 , file ) ;
Map < String , String > properties = new HashMap < > ( loadProperties ( file ) ) ;
String connectorName = properties . remove ( STRING1 ) ;
<nb> public class CatalogManager
Stri... | Improve logging for catalog loading |
<nb> public class OrientVertex extends OrientElement implements Vertex {
private static void removeInverseEdge ( final ODocument iVertex , final String iFieldName , final OIdentifiable iVertexToRemove ,
final Object iFieldValue , final boolean useVertexFieldsForEdgeLabels ) {
- final String inverseFieldName = g... | Fixed issue on removing of not updated vertices when caches are disabled |
<nb> public abstract class IntProperty < T > extends Property < T , Integer > {
@ override
final public void set ( T object , Integer value ) {
- set ( object , value . intValue ( ) ) ;
+ setValue ( object , value . intValue ( ) ) ;
}
} | Fix infinite recursive loop |
<nb> final class ActivityStack {
SINGLE
ActivityInfo aInfo = resolveActivity ( intent , resolvedType , startFlags ,
profileFile , profileFd , userId ) ;
- if ( mService . isSingleton ( aInfo . processName , aInfo . applicationInfo ) ) {
+ if ( aInfo != null && mService . isSingleton ( aInfo . processName , aI... | Fix an NPE when launching an activity that s not found |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAM... | camel blueprint Namespace parser should skip placeholders for component dependencies |
<nb> public class BigArrays {
final PageCacheRecycler recycler ;
final CircuitBreakerService breakerService ;
final boolean checkBreaker ;
+ private final BigArrays circuitBreakingInstance ;
@ inject
public BigArrays ( PageCacheRecycler recycler , @ nullable final CircuitBreakerService breakerService ) { ... | Don t create a new BigArrays instance for every call of withCircuitBreaking |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
}
COMMENT
+ COMMENT
+ COMMENT
+ public M... | add getter for the TypeInstacnes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ suppresswarnings ( STRING0 )
public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
private static final Log logger = LogFactory . getLog ( SpringJUnit4ClassRunner . class ) ;
<nb> public class SpringJUnit4ClassRunner extends BlockJUnit4... | Reduce scope of suppressed deprecation warnings in SpringJUnit4ClassRunner |
<nb> public class GLHelper {
public static void blendFunction ( final GL10 pGL , final int pSourceBlendMode , final int pDestinationBlendMode ) {
pGL . glBlendFunc ( pSourceBlendMode , pDestinationBlendMode ) ;
}
+
+ public static void switchToModelViewMatrix ( final GL10 pGL ) {
+ pGL . glMatrixMode ( GL10... | Added switchToXYMatrix methods |
<nb> public final class Constants {
SINGLE
public static final String TOOLS_REPOSITORY = STRING0 . toString ( ) ;
-
- SINGLE
- SINGLE
- public static final boolean ALLOW_CC_INCLUDE_SCANNING = new Boolean ( false ) . booleanValue ( ) ;
} | Remove the ALLOW_CC_INCLUDE_SCANNING constant since it is not being used anymore |
<nb> public class IncProjectBuilder {
SINGLE
private boolean runModuleLevelBuilders ( final CompileContext context , final ModuleChunk chunk ) throws ProjectBuildException , IOException {
- sendBuildingTargetMessages ( chunk . getTargets ( ) , BuildingTargetProgressMessage . Event . STARTED ) ;
for ( BuilderC... | removed duplicated messages about started finished building of modules |
<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 ;
<nb> public class BlobService extends AbstractLifecycle... | suppress warning about replaced recovery handler |
<nb> public class Frame extends Lockable < Frame > {
case Vec . T_TIME + NUMBER0 :
coltypes [ i ] = STRING0 ;
DateTimeFormatter fmt = DateTimeFormat . forPattern ( STRING1 ) ;
- for ( int j = NUMBER1 ; j < len ; j ++ ) { strCells [ j + NUMBER2 ] [ i ] = fmt . print ( vec . at8 ( off + j ) ) ; dblCells [ j + NUM... | Fix Frame toString NA issue |
<nb> public class OProfiler extends OSharedResourceAbstract implements OProfilerMBean
createSnapshot ( ) ;
}
} ;
- timer . schedule ( archiverTask , elapsedToCreateSnapshot , elapsedToCreateSnapshot ) ;
+ timer . schedule ( archiverTask , elapsedToCreateSnapshot * NUMBER0 , elapsedToCreateSnapshot * NUMBER0 )... | fixed bug on retrieve of profile archive data |
<nb> public class MethodParamPadCheckTest
STRING0 ,
STRING1 ,
STRING2 ,
+ STRING3 ,
} ;
verify ( checkConfig , getPath ( STRING4 ) , expected ) ; | corrected test case |
<nb> final class CameraConfigurationManager {
Camera . Parameters . FOCUS_MODE_AUTO ) ;
} else {
focusMode = findSettableValue ( parameters . getSupportedFocusModes ( ) ,
- STRING0 , SINGLE
+ STRING0 , SINGLE
+ STRING1 , SINGLE
Camera . Parameters . FOCUS_MODE_AUTO ) ;
}
} | Also allow continuous video mode |
<nb> public class NetworkStatsManager {
COMMENT
public void registerUsageCallback ( int networkType , String subscriberId , long thresholdBytes ,
UsageCallback callback ) {
- registerUsageCallback ( networkType , subscriberId , thresholdBytes , null COMMENT ) ;
+ registerUsageCallback ( networkType , subscrib... | Fix infinite loop when registering data usage callback |
<nb> public class ElisionTokenFilterFactory extends AbstractTokenFilterFactory {
@ inject public ElisionTokenFilterFactory ( Index index , @ indexsettings Settings indexSettings , Environment env , @ assisted String name , @ assisted Settings settings ) {
super ( index , indexSettings , name , settings ) ;
- th... | Fix indentation mistake |
<nb> public enum Cipher {
STRING0
) ,
COMMENT
+ SINGLE
SSL_FORTEZZA_DMS_WITH_NULL_SHA (
STRING1 ,
KeyExchange . FZA ,
<nb> public enum Cipher {
NUMBER0 ,
NUMBER0
) ,
+ SINGLE
SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA (
STRING2 ,
KeyExchange . FZA ,
<nb> public enum Cipher {
NUMBER0 ,
NU... | Add some missing cipher IDs to the comments |
<nb> public class SQLUpdateClause extends AbstractSQLClause < SQLUpdateClause > implemen
@ override
public boolean isEmpty ( ) {
- return updates . isEmpty ( ) ;
+ return updates . isEmpty ( ) && batchUpdates . isEmpty ( ) ;
}
} | improve isEmpty of SQLUpdateClause |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
}
}
- if ( ( fl & FLAG_LAYOUT_NO_LIMITS ) != NUMBER0 ) {
+ SINGLE
+ if ( ( fl & FLAG_LAYOUT_NO_LIMITS ) != NUMBER0 && attrs . type != TYPE_SYSTEM_ERROR ) {
df . left = df . top = of . left = of . top = cf . left = cf . top = vf . left =... | Limit TYPE_SYSTEM_ERROR to system decor bounds |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.