Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/java/org/apache/cassandra/service/RepairCallback.java b/src/java/org/apache/cassandra/service/RepairCallback.java index 6242b5a8..e1a925ef 100644 --- a/src/java/org/apache/cassandra/service/RepairCallback.java +++ b/src/java/org/apache/cassandra/service/RepairCallback.java @@ -1,83 +1,83 @@ package or...
true
true
public T get() throws TimeoutException, DigestMismatchException, IOException { long timeout = DatabaseDescriptor.getRpcTimeout() - (System.currentTimeMillis() - startTime); try { condition.await(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException ex...
public T get() throws TimeoutException, DigestMismatchException, IOException { long timeout = DatabaseDescriptor.getRpcTimeout() - (System.currentTimeMillis() - startTime); try { condition.await(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException ex...
diff --git a/src/org/ebookdroid/core/PageTreeNode.java b/src/org/ebookdroid/core/PageTreeNode.java index 388d9758..bffd7c9f 100644 --- a/src/org/ebookdroid/core/PageTreeNode.java +++ b/src/org/ebookdroid/core/PageTreeNode.java @@ -1,515 +1,515 @@ package org.ebookdroid.core; import org.ebookdroid.core.IDocumentView...
true
true
public void decodeComplete(final CodecPage codecPage, final BitmapRef bitmap, final Rect bitmapBounds) { if (bitmap == null || bitmapBounds == null) { return; } if (SettingsManager.getBookSettings().cropPages) { if (id == 0 && !cropped) { cro...
public void decodeComplete(final CodecPage codecPage, final BitmapRef bitmap, final Rect bitmapBounds) { if (bitmap == null || bitmapBounds == null) { return; } if (SettingsManager.getBookSettings().cropPages) { if (id == 0 && !cropped) { cro...
diff --git a/conan-atlas-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/atlas/PerlExperimentEligibilityCheckingProcess.java b/conan-atlas-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/atlas/PerlExperimentEligibilityCheckingProcess.java index 1e5a07e..cb9c2fe 100755 --- a/conan-atlas-processes/src/main/java...
true
true
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().debug("Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters AccessionParameter accession = new AccessionParameter(); ...
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().debug("Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters AccessionParameter accession = new AccessionParameter(); ...
diff --git a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/SidePlotUtils.java b/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/SidePlotUtils.java index 9fe1994..b99e7c5 100644 --- a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/anal...
true
true
public static SidePlotView getSidePlotView(final IWorkbenchPage page, final String plotViewID) { //if (PlatformUI.getWorkbench().isStarting()) throw new IllegalStateException("Workbench is starting!"); SidePlotView sidePlotView = null; // necessary for multi...
public static SidePlotView getSidePlotView(final IWorkbenchPage page, final String plotViewID) { //if (PlatformUI.getWorkbench().isStarting()) throw new IllegalStateException("Workbench is starting!"); SidePlotView sidePlotView = null; // necessary for multi...
diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/lib/servlet/TestHostnameFilter.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/lib/servlet/TestHostnameFilter.java index f30ab0c0c..f3a2a5ad6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/jav...
true
true
public void hostname() throws Exception { ServletRequest request = Mockito.mock(ServletRequest.class); Mockito.when(request.getRemoteAddr()).thenReturn("localhost"); ServletResponse response = Mockito.mock(ServletResponse.class); final AtomicBoolean invoked = new AtomicBoolean(); FilterChain ch...
public void hostname() throws Exception { ServletRequest request = Mockito.mock(ServletRequest.class); Mockito.when(request.getRemoteAddr()).thenReturn("localhost"); ServletResponse response = Mockito.mock(ServletResponse.class); final AtomicBoolean invoked = new AtomicBoolean(); FilterChain ch...
diff --git a/src/edu/uc/cs/distsys/ui/NodeStatusViewThread.java b/src/edu/uc/cs/distsys/ui/NodeStatusViewThread.java index f3da9f4..6958eea 100644 --- a/src/edu/uc/cs/distsys/ui/NodeStatusViewThread.java +++ b/src/edu/uc/cs/distsys/ui/NodeStatusViewThread.java @@ -1,90 +1,92 @@ package edu.uc.cs.distsys.ui; import ...
true
true
public NodeStatusViewThread(Node n) { this.node = n; this.defaultTitle += this.node.getId(); //Create and setup the windows viewFrame = new JFrame(this.defaultTitle); viewFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); nodeStatusView = new NodeStatusView(); //Force the first update this.getNodeSt...
public NodeStatusViewThread(Node n) { this.node = n; this.defaultTitle += this.node.getId(); //Create and setup the windows viewFrame = new JFrame(this.defaultTitle); viewFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); nodeStatusView = new NodeStatusView(); //Force the first update this.getNodeSt...
diff --git a/site/src/main/java/org/soluvas/web/site/BehaviorTenantInjector.java b/site/src/main/java/org/soluvas/web/site/BehaviorTenantInjector.java index a656e905..59e6cef2 100644 --- a/site/src/main/java/org/soluvas/web/site/BehaviorTenantInjector.java +++ b/site/src/main/java/org/soluvas/web/site/BehaviorTenantInj...
true
true
public void onInstantiation(Component component) { final TenantRef tenant = WebTenantUtils.getTenant(); final String tenantId = tenant.getTenantId(); final String tenantEnv = tenant.getTenantEnv(); final List<Field> fields = ReflectionUtils.getAllFields(component.getClass()); final String componentId =...
public void onInstantiation(Component component) { final TenantRef tenant = WebTenantUtils.getTenant(); final String tenantId = tenant.getTenantId(); final String tenantEnv = tenant.getTenantEnv(); final List<Field> fields = ReflectionUtils.getAllFields(component.getClass()); final String componentId =...
diff --git a/lexevs-dao/src/main/java/org/lexevs/dao/database/service/association/VersionableEventAssociationService.java b/lexevs-dao/src/main/java/org/lexevs/dao/database/service/association/VersionableEventAssociationService.java index d5590c6f9..e109a19d3 100644 --- a/lexevs-dao/src/main/java/org/lexevs/dao/databas...
true
true
public void insertAssociationSource(String codingSchemeUri, String version, String relationContainerName, String associationPredicateName, AssociationSource source){ String codingSchemeId = this.getDaoManager().getCodingSchemeDao(codingSchemeUri, version). getCodingSchemeIdByUriAndVersion(codingSche...
public void insertAssociationSource(String codingSchemeUri, String version, String relationContainerName, String associationPredicateName, AssociationSource source){ String codingSchemeId = this.getDaoManager().getCodingSchemeDao(codingSchemeUri, version). getCodingSchemeIdByUriAndVersion(codingSche...
diff --git a/rms/org.eclipse.ptp.rm.ibm.platform.lsf.ui/src/org/eclipse/ptp/rm/ibm/lsf/ui/widgets/ApplicationQueryControl.java b/rms/org.eclipse.ptp.rm.ibm.platform.lsf.ui/src/org/eclipse/ptp/rm/ibm/lsf/ui/widgets/ApplicationQueryControl.java index 66e64e1fb..902c00dbb 100644 --- a/rms/org.eclipse.ptp.rm.ibm.platform.l...
true
true
protected boolean getQueryResponse(IRemoteConnection connection) { IRemoteServices remoteServices; IRemoteProcessBuilder processBuilder; IRemoteProcess process; remoteServices = connection.getRemoteServices(); processBuilder = remoteServices.getProcessBuilder(connection, "bapp", "-w"); //$NON-NLS-1$ //$NON-...
protected boolean getQueryResponse(IRemoteConnection connection) { IRemoteServices remoteServices; IRemoteProcessBuilder processBuilder; IRemoteProcess process; remoteServices = connection.getRemoteServices(); processBuilder = remoteServices.getProcessBuilder(connection, "bapp", "-w"); //$NON-NLS-1$ //$NON-...
diff --git a/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractSavePersistentMethod.java b/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractSavePersistentMethod.java index c4c4226e5..2c6773828 100644 --- a/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractSavePersi...
true
true
protected Object doInvokeInternal(final Object target, Object[] arguments) { GrailsDomainClass domainClass = (GrailsDomainClass) application.getArtefact(DomainClassArtefactHandler.TYPE, target.getClass().getName() ); if(shouldValidate(arguments, domainClass)) { Validator validator...
protected Object doInvokeInternal(final Object target, Object[] arguments) { GrailsDomainClass domainClass = (GrailsDomainClass) application.getArtefact(DomainClassArtefactHandler.TYPE, target.getClass().getName() ); if(shouldValidate(arguments, domainClass)) { Validator validator...
diff --git a/src/main/novelang/rendering/xslt/Numbering.java b/src/main/novelang/rendering/xslt/Numbering.java index 3376d540..bdbfdb32 100644 --- a/src/main/novelang/rendering/xslt/Numbering.java +++ b/src/main/novelang/rendering/xslt/Numbering.java @@ -1,291 +1,291 @@ /* * Copyright (C) 2008 Laurent Caillette * ...
true
true
public String apply( Number number ) { switch( number.intValue() ) { case 0 : return "z�ro" ; case 1 : return "un" ; case 2 : return "deux" ; case 3 : return "trois" ; case 4 : return "quatre" ; case 5 : return "cinq" ; case 6...
public String apply( Number number ) { switch( number.intValue() ) { case 0 : return "z\u00e9ro" ; case 1 : return "un" ; case 2 : return "deux" ; case 3 : return "trois" ; case 4 : return "quatre" ; case 5 : return "cinq" ; c...
diff --git a/subsonic-android/src/net/sourceforge/subsonic/androidapp/util/EntryAdapter.java b/subsonic-android/src/net/sourceforge/subsonic/androidapp/util/EntryAdapter.java index 66c019bf..1b4d72cf 100644 --- a/subsonic-android/src/net/sourceforge/subsonic/androidapp/util/EntryAdapter.java +++ b/subsonic-android/src/...
false
true
public View getView(int position, View convertView, ViewGroup parent) { MusicDirectory.Entry entry = getItem(position); if (entry.isDirectory()) { AlbumView view; if (convertView != null && convertView instanceof AlbumView) { view = (AlbumView) convertView; ...
public View getView(int position, View convertView, ViewGroup parent) { MusicDirectory.Entry entry = getItem(position); if (entry.isDirectory()) { AlbumView view; // TODO: Reuse AlbumView objects once cover art loading is working. // if (convertView != null && convertView i...
diff --git a/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/utils/AcceleoDynamicTemplatesEclipseUtil.java b/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/utils/AcceleoDynamicTemplatesEclipseUtil.java index 4331e181..bad2d13c 100644 --- a/plugins/org.eclipse.accel...
true
true
private static void refreshModules() { REGISTERED_MODULES.clear(); for (java.util.Map.Entry<Bundle, List<String>> entry : new LinkedHashSet<java.util.Map.Entry<Bundle, List<String>>>( EXTENDING_BUNDLES.entrySet())) { for (String path : entry.getValue()) { String actualPath = path; if (actualPath.cha...
private static void refreshModules() { REGISTERED_MODULES.clear(); for (java.util.Map.Entry<Bundle, List<String>> entry : new LinkedHashSet<java.util.Map.Entry<Bundle, List<String>>>( EXTENDING_BUNDLES.entrySet())) { for (String path : entry.getValue()) { String actualPath = path; if (actualPath.cha...
diff --git a/src/main/java/pairs/ui/TextDisplayBox.java b/src/main/java/pairs/ui/TextDisplayBox.java index b6112dc..e426d59 100644 --- a/src/main/java/pairs/ui/TextDisplayBox.java +++ b/src/main/java/pairs/ui/TextDisplayBox.java @@ -1,83 +1,83 @@ /* Pairs, a concentration game with modular card packages. Cop...
true
true
TextDisplayBox( Dialog owner, String titleKey, String resourceName ) { super( owner, _( titleKey ) ); /* Dispose on close */ setDefaultCloseOperation( DISPOSE_ON_CLOSE ); /* Load resource */ String text; try { text = Resources.loadResourceAsString( resourceName ); } catch ( Exception e ) { String...
TextDisplayBox( Dialog owner, String titleKey, String resourceName ) { super( owner, _( titleKey ) ); /* Dispose on close */ setDefaultCloseOperation( DISPOSE_ON_CLOSE ); /* Load resource */ String text; try { text = Resources.loadResourceAsString( resourceName ); } catch ( Exception e ) { String...
diff --git a/com.ifedorenko.m2e.mavendev/src/com/ifedorenko/m2e/mavendev/internal/launching/MavenITLaunchConfigurationTabGroup.java b/com.ifedorenko.m2e.mavendev/src/com/ifedorenko/m2e/mavendev/internal/launching/MavenITLaunchConfigurationTabGroup.java index 1abd8a2..00f3df6 100644 --- a/com.ifedorenko.m2e.mavendev/src...
true
true
public void performApply( ILaunchConfigurationWorkingCopy configuration ) { super.performApply( configuration ); String projectName; try { projectName = configuration.getAttribute( IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, (String) null ); ...
public void performApply( ILaunchConfigurationWorkingCopy configuration ) { super.performApply( configuration ); String projectName; try { projectName = configuration.getAttribute( IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, (String) null ); ...
diff --git a/plugins/com.aptana.ide.core.io/src/com/aptana/ide/core/io/internal/DeleteResourceShortcutListener.java b/plugins/com.aptana.ide.core.io/src/com/aptana/ide/core/io/internal/DeleteResourceShortcutListener.java index 8eb5164a..beb2e994 100644 --- a/plugins/com.aptana.ide.core.io/src/com/aptana/ide/core/io/int...
true
true
public void resourceChanged(IResourceChangeEvent event) { IResourceDelta delta = event.getDelta(); switch (delta.getKind()) { case IResourceDelta.REMOVED: break; case IResourceDelta.CHANGED: List<IConnectionPoint> deleted = new ArrayList<IConnectionPoint>(); ...
public void resourceChanged(IResourceChangeEvent event) { IResourceDelta delta = event.getDelta(); switch (delta.getKind()) { case IResourceDelta.REMOVED: break; case IResourceDelta.CHANGED: List<IConnectionPoint> deleted = new ArrayList<IConnectionPoint>(); ...
diff --git a/test/com/google/inject/PrivateModuleTest.java b/test/com/google/inject/PrivateModuleTest.java index d3b29e30..3beca2a4 100644 --- a/test/com/google/inject/PrivateModuleTest.java +++ b/test/com/google/inject/PrivateModuleTest.java @@ -1,423 +1,423 @@ /** * Copyright (C) 2008 Google Inc. * * Licensed ...
false
true
public void testPrivateModulesAndProvidesMethods() { Injector injector = Guice.createInjector(new AbstractModule() { protected void configure() { install(new PrivateModule() { public void configurePrivateBindings() { expose(String.class).annotatedWith(named("a")); } ...
public void testPrivateModulesAndProvidesMethods() { Injector injector = Guice.createInjector(new AbstractModule() { protected void configure() { install(new PrivateModule() { public void configurePrivateBindings() { expose(String.class).annotatedWith(named("a")); } ...
diff --git a/src/com/rabbitmq/client/impl/ChannelManager.java b/src/com/rabbitmq/client/impl/ChannelManager.java index 72d6178d6..98e37b541 100644 --- a/src/com/rabbitmq/client/impl/ChannelManager.java +++ b/src/com/rabbitmq/client/impl/ChannelManager.java @@ -1,137 +1,137 @@ // The contents of this file are subject...
true
true
private synchronized ChannelN createChannelInternal(AMQConnection connection, int channelNumber) throws IOException { if (_channelMap.containsKey(channelNumber)) { // That number's already allocated! Can't do it // This should never happen unless something has gone // bad...
private synchronized ChannelN createChannelInternal(AMQConnection connection, int channelNumber) throws IOException { if (_channelMap.containsKey(channelNumber)) { // That number's already allocated! Can't do it // This should never happen unless something has gone // bad...
diff --git a/src/xmlvm/org/xmlvm/proc/out/ObjectiveCOutputProcess.java b/src/xmlvm/org/xmlvm/proc/out/ObjectiveCOutputProcess.java index 4e0f796b..a309f8f6 100755 --- a/src/xmlvm/org/xmlvm/proc/out/ObjectiveCOutputProcess.java +++ b/src/xmlvm/org/xmlvm/proc/out/ObjectiveCOutputProcess.java @@ -1,164 +1,164 @@ /* * C...
true
true
public OutputFile[] genObjC(XmlvmResource xmlvm) { Document doc = xmlvm.getXmlvmDocument(); // The filename will be the name of the first class Namespace nsXMLVM = Namespace.getNamespace("vm", "http://xmlvm.org"); Element clazz = doc.getRootElement().getChild("class", nsXMLVM); ...
public OutputFile[] genObjC(XmlvmResource xmlvm) { Document doc = xmlvm.getXmlvmDocument(); // The filename will be the name of the first class Namespace nsXMLVM = Namespace.getNamespace("vm", "http://xmlvm.org"); Element clazz = doc.getRootElement().getChild("class", nsXMLVM); ...
diff --git a/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/weaving/Weaver.java b/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/weaving/Weaver.java index a10771f..f5c1f87 100644 --- a/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/weaving/Weaver.java +++ b/server/src/main/java/nz/ac/vuw/ecs/rprofs/server/weaving...
true
true
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) { ClassVisitor cv = null; String[] filters = new String[] { "sun/reflect/.*", // jhotdraw crashes in this package "java/awt/.*", // jhotdraw has font problems if this packages is in...
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) { ClassVisitor cv = null; String[] filters = new String[] { "sun/reflect/.*", // jhotdraw crashes in this package "java/awt/.*", // jhotdraw has font problems if this packages is in...
diff --git a/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeWebConsolePlugin.java b/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeWebConsolePlugin.java index 2945f59872..432b275ea2 100644 --- a/bundles/commons/mime/src/main/java/org/apache/sling/com...
true
true
protected void renderContent(HttpServletRequest req, HttpServletResponse res) throws IOException { Map<String, Set<String>> mimetab = new TreeMap<String, Set<String>>(); Map<String, String> extMap = mimeTypeService.getExtensionMap(); int numExt = 0; for (Entry<String, ...
protected void renderContent(HttpServletRequest req, HttpServletResponse res) throws IOException { Map<String, Set<String>> mimetab = new TreeMap<String, Set<String>>(); Map<String, String> extMap = mimeTypeService.getExtensionMap(); int numExt = 0; for (Entry<String, ...
diff --git a/fabric/fabric-agent/src/main/java/org/fusesource/fabric/agent/ObrResolver.java b/fabric/fabric-agent/src/main/java/org/fusesource/fabric/agent/ObrResolver.java index c0f2fd8d4..136ce02a1 100644 --- a/fabric/fabric-agent/src/main/java/org/fusesource/fabric/agent/ObrResolver.java +++ b/fabric/fabric-agent/sr...
true
true
public List<Resource> resolve(Set<Feature> features, Set<String> bundles, Map<String, FabBundleInfo> fabs, Set<String> overrides, Map<String, File> downloads) throws Exception { ...
public List<Resource> resolve(Set<Feature> features, Set<String> bundles, Map<String, FabBundleInfo> fabs, Set<String> overrides, Map<String, File> downloads) throws Exception { ...
diff --git a/src/com/sebrichard/mfgen/inspection/InspectingMetaFields.java b/src/com/sebrichard/mfgen/inspection/InspectingMetaFields.java index ba3911f..f55c2b8 100644 --- a/src/com/sebrichard/mfgen/inspection/InspectingMetaFields.java +++ b/src/com/sebrichard/mfgen/inspection/InspectingMetaFields.java @@ -1,144 +1,14...
true
true
public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitClass(PsiClass psiClass) { Set<String> acceptedMetaFieldNames = generateAcceptedMetaFieldNames(psiClass); ...
public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitClass(PsiClass psiClass) { Set<String> acceptedMetaFieldNames = generateAcceptedMetaFieldNames(psiClass); ...
diff --git a/trunk/core/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java b/trunk/core/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java index 48e7b15..fca6736 100644 --- a/trunk/core/src/main/java/org/apache/commons/vfs2/provider/compressed/Co...
true
true
protected CompressedFileFileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs) { super(name, fs); this.container = container; // todo, add getBaseName(String) to FileName String basename = container.getName().getBaseName(); int pos = basenam...
protected CompressedFileFileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs) { super(name, fs); this.container = container; // todo, add getBaseName(String) to FileName String basename = container.getName().getBaseName(); int pos = basenam...
diff --git a/src/com/github/snowindy/getResourceAsStream/TestGetResourceAsStreamBug.java b/src/com/github/snowindy/getResourceAsStream/TestGetResourceAsStreamBug.java index 32a264d..b4c2910 100644 --- a/src/com/github/snowindy/getResourceAsStream/TestGetResourceAsStreamBug.java +++ b/src/com/github/snowindy/getResource...
false
true
public static void main(String[] args) throws Exception { byte[] fileBytes = FileUtils.readFileToByteArray(new File( "src/com/github/snowindy/getResourceAsStream/test-short-enc.xml")); printBytes(fileBytes); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); ...
public static void main(String[] args) throws Exception { byte[] fileBytes = FileUtils.readFileToByteArray(new File( "resources/test/xml/test-short-enc.xml")); printBytes(fileBytes); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); InputStream is = Test...
diff --git a/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/RequestParameterMapMultiPartImpl.java b/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/RequestParameterMapMultiPartImpl.java index 75266eb87..28c118610 100644 --- a/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/...
true
true
public RequestParameterMapMultiPartImpl(BridgeContext bridgeContext, ClientDataRequest clientDataRequest) { try { PortletSession portletSession = clientDataRequest.getPortletSession(); // Determine the uploaded files directory path according to the JSF 2.2 proposal: // https://javaserverfaces-spec-public...
public RequestParameterMapMultiPartImpl(BridgeContext bridgeContext, ClientDataRequest clientDataRequest) { try { PortletSession portletSession = clientDataRequest.getPortletSession(); // Determine the uploaded files directory path according to the JSF 2.2 proposal: // https://javaserverfaces-spec-public...
diff --git a/splitString.java b/splitString.java index 384c577..5b73c3d 100644 --- a/splitString.java +++ b/splitString.java @@ -1,29 +1,29 @@ /* * Copyright (C) 2013 * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * ...
true
true
public static void main(String args[]){ String str = "2.2.0-10.0.59.20134.douglas.master.ev"; // dot is special code, require \\ String delimiter = "\\."; String temp[] = str.split(delimiter); // Printing by delimiter for(int i=0; i < temp.length; i++) System.out.println(temp[i]); if (temp[2]...
public static void main(String args[]){ String str = "2.2.0-10.0.59.20134.douglas.master.ev"; // dot is special code, require \\ String delimiter = "\\."; String temp[] = str.split(delimiter); // Printing by delimiter for(int i=0; i < temp.length; i++) System.out.println(temp[i]); if (temp[2].conta...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/ConfirmInvoice.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/ConfirmInvoice.java index ea6721aa..4d988990 100644 --- a/expenditure-tracking/src/pt...
true
true
public boolean isUserAwarenessNeeded(final RegularAcquisitionProcess process, final User user) { final Person person = user.getExpenditurePerson(); if (person.hasAnyValidAuthorization()) { for (final RequestItem requestItem : process.getRequest().getRequestItemsSet()) { for (PaymentProcessInvoice invoice :...
public boolean isUserAwarenessNeeded(final RegularAcquisitionProcess process, final User user) { final Person person = user.getExpenditurePerson(); if (person.hasAnyValidAuthorization()) { for (final RequestItem requestItem : process.getRequest().getRequestItemsSet()) { for (final UnitItem unitItem : reque...
diff --git a/dfpagent/src/com/github/veithen/dfpagent/protocol/connection/Connection.java b/dfpagent/src/com/github/veithen/dfpagent/protocol/connection/Connection.java index e0f65a9..24b0d42 100644 --- a/dfpagent/src/com/github/veithen/dfpagent/protocol/connection/Connection.java +++ b/dfpagent/src/com/github/veithen/...
true
true
public void run() { try { ml: while (true) { int version = in.readUnsignedShort(); if (version != DFPConstants.VERSION) { Tr.error(TC, Messages._0005E, new Object[] { DFPConstants.VERSION, version }); break; ...
public void run() { try { ml: while (true) { int version = in.readUnsignedShort(); if (version != DFPConstants.VERSION) { Tr.error(TC, Messages._0005E, new Object[] { DFPConstants.VERSION, version }); break; ...
diff --git a/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java b/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java index 894038c..b94959f 100644 --- a/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java +++ b/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java @@ -1,17 +1...
true
true
public int getNumericValue() { if (card.charAt(0) == '9') return 9; return 5; }
public int getNumericValue() { if (card.charAt(0) == 'J') return 10; if (card.charAt(0) == '9') return 9; return 5; }
diff --git a/src/DialogCharacters.java b/src/DialogCharacters.java index 3f8ff54..7f68147 100644 --- a/src/DialogCharacters.java +++ b/src/DialogCharacters.java @@ -1,203 +1,202 @@ /* Mafiamanager - a tool to support the referee of the parlor game "Mafia" Copyright (C) 2011 Thomas Högner This program is...
true
true
public DialogCharacters(SortedMap<String, Player> _playerlist, JFrame _frame, Board _board){ super(_frame, true); // initializing playerlist = _playerlist; board = _board; counterPlayer = playerlist.size(); panelx = new ArrayList<JPanel>(); labelx = new ArrayList<JLabel>(); fieldx = new ArrayList<JT...
public DialogCharacters(SortedMap<String, Player> _playerlist, JFrame _frame, Board _board){ super(_frame, true); // initializing playerlist = _playerlist; board = _board; counterPlayer = playerlist.size(); panelx = new ArrayList<JPanel>(); labelx = new ArrayList<JLabel>(); fieldx = new ArrayList<JT...
diff --git a/src/coinFlipV1/gitmad/app/ResultActivity.java b/src/coinFlipV1/gitmad/app/ResultActivity.java index 51aedc0..5805f74 100644 --- a/src/coinFlipV1/gitmad/app/ResultActivity.java +++ b/src/coinFlipV1/gitmad/app/ResultActivity.java @@ -1,232 +1,232 @@ package coinFlipV1.gitmad.app; import java.io.IOExcepti...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.result); String result = getIntent().getExtras().getString(ResultActivity.PARAM_RESULT); setResult(result); connectionSetup(); //open a writable database connection CoinFlipDbOpenHelper ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.result); String result = getIntent().getExtras().getString(ResultActivity.PARAM_RESULT); setResult(result); connectionSetup(); //open a writable database connection CoinFlipDbOpenHelper ...
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/WorkingDirectoryIT.java index c85905a1..53a068b1 100644 --- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Workin...
true
true
public void verifyOutputDirectory( File childTestDir ) throws IOException { assertTrue( "out.txt doesn't exist: " + outFile.getAbsolutePath(), outFile.exists() ); Properties p = new Properties(); FileInputStream is = new FileInputStream( outFile ); p.load( is ); i...
public void verifyOutputDirectory( File childTestDir ) throws IOException { assertTrue( "out.txt doesn't exist: " + outFile.getAbsolutePath(), outFile.exists() ); Properties p = new Properties(); FileInputStream is = new FileInputStream( outFile ); p.load( is ); i...
diff --git a/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/BaseAnnouncementService.java b/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/BaseAnnouncementService.java index b318818..be62f65 100644 --- a/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/BaseAnnoun...
false
true
public void transferCopyEntities(String fromContext, String toContext, List resourceIds) { // get the channel associated with this site String oChannelRef = channelReference(fromContext, SiteService.MAIN_CONTAINER); AnnouncementChannel oChannel = null; try { oChannel = (AnnouncementChannel) getChannel(oC...
public void transferCopyEntities(String fromContext, String toContext, List resourceIds) { // get the channel associated with this site String oChannelRef = channelReference(fromContext, SiteService.MAIN_CONTAINER); AnnouncementChannel oChannel = null; try { oChannel = (AnnouncementChannel) getChannel(oC...
diff --git a/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/environment/DynamicModulesURIConverter.java b/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/environment/DynamicModulesURIConverter.java index 297f34ee..f9109d95 100644 --- a/plugins/org.eclipse.acceleo.e...
true
true
private URI dynamicNormalize(URI uri) { URI normalized = getURIMap().get(uri); if (normalized == null) { BundleURLConverter conv = new BundleURLConverter(uri.toString()); if (conv.resolveBundle() != null) { normalized = URI.createURI(conv.resolveAsPlatformPlugin()); } } if (normalized == null ...
private URI dynamicNormalize(URI uri) { URI normalized = getURIMap().get(uri); if (normalized == null) { BundleURLConverter conv = new BundleURLConverter(uri.toString()); if (conv.resolveBundle() != null) { normalized = URI.createURI(conv.resolveAsPlatformPlugin()); } } if (normalized == null ...
diff --git a/src/org/opensolaris/opengrok/configuration/Configuration.java b/src/org/opensolaris/opengrok/configuration/Configuration.java index bda5ea3..68a7224 100644 --- a/src/org/opensolaris/opengrok/configuration/Configuration.java +++ b/src/org/opensolaris/opengrok/configuration/Configuration.java @@ -1,662 +1,66...
true
true
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxDecompose.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxDecompose.java index 7367b9ee0..a7d89ff6e 100644 --- a/src/share/classes/com/sun/tools/javafx/comp/JavafxDecompose.java +++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxDecompose.java...
true
true
public void visitSelect(JFXSelect tree) { DiagnosticPosition diagPos = tree.pos(); Symbol sym = tree.sym; Symbol selectSym = JavafxTreeInfo.symbolFor(tree.selected); if (selectSym != null && ((selectSym.kind == Kinds.TYP && sym.kind != Kinds.MTH) || se...
public void visitSelect(JFXSelect tree) { DiagnosticPosition diagPos = tree.pos(); Symbol sym = tree.sym; Symbol selectSym = JavafxTreeInfo.symbolFor(tree.selected); if (selectSym != null && ((selectSym.kind == Kinds.TYP && sym.kind != Kinds.MTH) || se...
diff --git a/java/com/abreen/dungeon/worker/DungeonProtocol.java b/java/com/abreen/dungeon/worker/DungeonProtocol.java index 2b1483b..096bc62 100644 --- a/java/com/abreen/dungeon/worker/DungeonProtocol.java +++ b/java/com/abreen/dungeon/worker/DungeonProtocol.java @@ -1,326 +1,327 @@ package com.abreen.dungeon.worker;...
true
true
public static void process(Player p, String input) throws PlayerIsQuittingException { if (input.isEmpty()) return; String[] tokens = input.split("\\s"); Action action = null; for (Action a : Action.values()) { if (a.isAction(tokens[0])) { action = a; break; } } ...
public static void process(Player p, String input) throws PlayerIsQuittingException { if (input.isEmpty()) return; String[] tokens = input.split("\\s"); Action action = null; for (Action a : Action.values()) { if (a.isAction(tokens[0])) { action = a; break; } } ...
diff --git a/src/main/java/archimulator/sim/uncore/cache/replacement/partitioned/SimpleStaticPartitionedLRUPolicy.java b/src/main/java/archimulator/sim/uncore/cache/replacement/partitioned/SimpleStaticPartitionedLRUPolicy.java index 272c07fa..62c3e3f6 100644 --- a/src/main/java/archimulator/sim/uncore/cache/replacement...
false
true
public SimpleStaticPartitionedLRUPolicy(EvictableCache<StateT> cache, final int numMainThreadWays) { super(cache); this.partitions = new ArrayList<Integer>() {{ add(numMainThreadWays); add(getCache().getAssociativity() - numMainThreadWays); }}; this.partitio...
public SimpleStaticPartitionedLRUPolicy(EvictableCache<StateT> cache, final int numMainThreadWays) { super(cache); this.partitions = new ArrayList<Integer>() {{ add(numMainThreadWays); add(getCache().getAssociativity() - numMainThreadWays); }}; this.partitio...
diff --git a/src/simpleserver/Player.java b/src/simpleserver/Player.java index 6196c7a..3766cf6 100644 --- a/src/simpleserver/Player.java +++ b/src/simpleserver/Player.java @@ -1,992 +1,998 @@ /* * Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS) * * Permission is hereby granted, free of charge, to any...
true
true
public String parseCommand(String message, boolean overridePermissions) { // TODO: Handle aliases of external commands if (closed) { return null; } // Repeat last command if (message.equals(server.getCommandParser().commandPrefix() + "!")) { message = lastCommand; } else { ...
public String parseCommand(String message, boolean overridePermissions) { // TODO: Handle aliases of external commands if (closed) { return null; } // Repeat last command if (message.equals(server.getCommandParser().commandPrefix() + "!")) { message = lastCommand; } else { ...
diff --git a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/AbstractConnectionFactory.java b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/AbstractConnectionFactory.java index 4c6c62c9aa..2d4a8a1387 100644 --- a/spring-integration-ip/src/mai...
true
true
protected void processNioSelections(int selectionCount, final Selector selector, ServerSocketChannel server, Map<SocketChannel, TcpNioConnection> connections) throws IOException { long now = 0; if (this.soTimeout > 0) { Iterator<SocketChannel> it = connections.keySet().iterator(); now = System.currentTime...
protected void processNioSelections(int selectionCount, final Selector selector, ServerSocketChannel server, Map<SocketChannel, TcpNioConnection> connections) throws IOException { long now = 0; if (this.soTimeout > 0) { Iterator<SocketChannel> it = connections.keySet().iterator(); now = System.currentTime...
diff --git a/access-tests/src/test/java/org/apache/access/tests/e2e/TestMovingToProduction.java b/access-tests/src/test/java/org/apache/access/tests/e2e/TestMovingToProduction.java index a05881618..20d9ec796 100644 --- a/access-tests/src/test/java/org/apache/access/tests/e2e/TestMovingToProduction.java +++ b/access-tes...
true
true
public void testMovingTable1() throws Exception { File policyFile = context.getPolicyFile(); Assert.assertTrue(policyFile.delete() && policyFile.createNewFile()); PolicyFileEditor editor = new PolicyFileEditor(policyFile); editor.addPolicy("admin = admin", "groups"); editor.addPolicy("group1 = al...
public void testMovingTable1() throws Exception { File policyFile = context.getPolicyFile(); Assert.assertTrue(policyFile.delete() && policyFile.createNewFile()); PolicyFileEditor editor = new PolicyFileEditor(policyFile); editor.addPolicy("admin = admin", "groups"); editor.addPolicy("group1 = al...
diff --git a/contrib/Karma.java b/contrib/Karma.java index b160f08..aeb9f18 100644 --- a/contrib/Karma.java +++ b/contrib/Karma.java @@ -1,930 +1,930 @@ import uk.co.uwcs.choob.*; import uk.co.uwcs.choob.modules.*; import uk.co.uwcs.choob.support.*; import uk.co.uwcs.choob.support.events.*; import java.sql.*; imp...
false
true
public synchronized void filterKarma( Message mes, Modules mods, IRCInterface irc ) { // Ignore lines that look like commands. if (Pattern.compile(irc.getTriggerRegex()).matcher(mes.getMessage()).find()) return; Matcher reasonMatch = reasonPattern.matcher(mes.getMessage()); boolean hasReason = false; S...
public synchronized void filterKarma( Message mes, Modules mods, IRCInterface irc ) { // Ignore lines that look like commands. if (Pattern.compile(irc.getTriggerRegex()).matcher(mes.getMessage()).find()) return; Matcher reasonMatch = reasonPattern.matcher(mes.getMessage()); boolean hasReason = false; S...
diff --git a/src/main/java/org/jinglenodes/sip/processor/SipProcessor.java b/src/main/java/org/jinglenodes/sip/processor/SipProcessor.java index f93bd35..6c012d5 100644 --- a/src/main/java/org/jinglenodes/sip/processor/SipProcessor.java +++ b/src/main/java/org/jinglenodes/sip/processor/SipProcessor.java @@ -1,1040 +1,1...
true
true
public final void sendJingleTerminate(final Message msg, final SipChannel sipChannel) { try { final CallSession callSession = callSessions.getSession(msg); Participants mainParticipants; try { mainParticipants = msg.getParticipants(); } catc...
public final void sendJingleTerminate(final Message msg, final SipChannel sipChannel) { try { final CallSession callSession = callSessions.getSession(msg); Participants mainParticipants; try { mainParticipants = msg.getParticipants(); } catc...
diff --git a/sopc2dts/sopc2dts/lib/AvalonSystem.java b/sopc2dts/sopc2dts/lib/AvalonSystem.java index 13a3194..4ac3bdb 100644 --- a/sopc2dts/sopc2dts/lib/AvalonSystem.java +++ b/sopc2dts/sopc2dts/lib/AvalonSystem.java @@ -1,96 +1,99 @@ /* sopc2dts - Devicetree generation for Altera systems Copyright (C) 2011 Walter...
false
true
public void recheckComponents() { for(BasicComponent comp : vSystemComponents) { SopcComponentLib.getInstance().finalCheckOnComponent(comp); } /* * Now remove tristate (and other unneeded) bridges. If any. * Also flatten hierarchical qsys designs. */ for(int i=0; i<vSystemComponents.size();) {...
public void recheckComponents() { for(BasicComponent comp : vSystemComponents) { SopcComponentLib.getInstance().finalCheckOnComponent(comp); } /* * Now remove tristate (and other unneeded) bridges. If any. * Also flatten hierarchical qsys designs. */ for(int i=0; i<vSystemComponents.size();) {...
diff --git a/src/test/java/ar/edu/utn/tacs/group5/controller/LoginControllerTest.java b/src/test/java/ar/edu/utn/tacs/group5/controller/LoginControllerTest.java index 0e72240..91b528d 100644 --- a/src/test/java/ar/edu/utn/tacs/group5/controller/LoginControllerTest.java +++ b/src/test/java/ar/edu/utn/tacs/group5/control...
true
true
public void run() throws Exception { tester.start("/Login"); LoginController controller = tester.getController(); assertThat(controller, is(notNullValue())); assertThat(tester.isRedirect(), is(false)); assertThat(tester.getDestinationPath(), is(nullValue())); }
public void run() throws Exception { tester.param(Constants.USER_ID, "123456789"); tester.start("/login"); LoginController controller = tester.getController(); assertThat(controller, is(notNullValue())); assertThat(tester.isRedirect(), is(false)); assertThat(tester.ge...
diff --git a/src/marrc/Driver.java b/src/marrc/Driver.java index efae9f3..4038680 100644 --- a/src/marrc/Driver.java +++ b/src/marrc/Driver.java @@ -1,171 +1,173 @@ package marrc; import java.util.Random; import vision.*; import mobile.*; public class Driver implements Runnable{ final int SPEED = 200; //...
false
true
public void eventOccured(String event) { if(event.contains("QR")) { if(qrDetected || qrSeen.equals("yes")) { return; } qrDetected = true; qrSeen = "yes"; System.out.println("Saw something!!"); driveTowardsQR(); qrDetected = false; } else if (event.contains("bump")) { if(bumped) { return; }...
public void eventOccured(String event) { if(event.contains("QR")) { if(qrDetected || qrSeen.equals("yes")) { return; } qrDetected = true; qrSeen = "yes"; System.out.println("Saw something!!"); driveTowardsQR(); qrDetected = false; } else if (event.contains("bump")) { System.out.print("Tryi...
diff --git a/src/net/dmcloud/cloudkey/Helpers.java b/src/net/dmcloud/cloudkey/Helpers.java index 1dcd07d..57932b1 100644 --- a/src/net/dmcloud/cloudkey/Helpers.java +++ b/src/net/dmcloud/cloudkey/Helpers.java @@ -1,319 +1,319 @@ package net.dmcloud.cloudkey; import java.io.*; import java.net.*; import java.securi...
true
true
static public String sign_url(String url, String secret, int seclevel, String asnum, String ip, String useragent, String[] countries, String[] referers, int expires) throws DCException { expires = (expires == 0) ? (int)(new Date().getTime() + 7200) : expires; // Compute digest String[] tokens = url.split("\\?"...
static public String sign_url(String url, String secret, int seclevel, String asnum, String ip, String useragent, String[] countries, String[] referers, int expires) throws DCException { expires = (expires == 0) ? (int)((new Date().getTime() / 1000) + 7200) : expires; // Compute digest String[] tokens = url.sp...
diff --git a/brix-plugin-menu/src/main/java/brix/plugin/menu/tile/MenuTileEditor.java b/brix-plugin-menu/src/main/java/brix/plugin/menu/tile/MenuTileEditor.java index 1da8803..73b17fa 100644 --- a/brix-plugin-menu/src/main/java/brix/plugin/menu/tile/MenuTileEditor.java +++ b/brix-plugin-menu/src/main/java/brix/plugin/m...
true
true
protected void populateItem(final ListItem<BrixNode> item) { Link<Object> select = new Link<Object>("select") { @Override public void onClick() { currentEntry.setMenuNode(item.getModelObject()); }...
protected void populateItem(final ListItem<BrixNode> item) { Link<Object> select = new Link<Object>("select") { @Override public void onClick() { currentEntry.setMenuNode(item.getModelObject()); }...
diff --git a/maven-gae-plugin/src/main/java/net/kindleit/gae/runner/BackgroundKickStartRunner.java b/maven-gae-plugin/src/main/java/net/kindleit/gae/runner/BackgroundKickStartRunner.java index 0264192..e3a724f 100644 --- a/maven-gae-plugin/src/main/java/net/kindleit/gae/runner/BackgroundKickStartRunner.java +++ b/maven...
true
true
private Thread setupCommandLine(final int monitorPort, final String monitorKey, final List<String> args) { final Commandline commandline = new Commandline("java"); final String classPath = System.getProperty("java.class.path") + File.pathSeparator + pluginPath; commandline.createArg().setValue...
private Thread setupCommandLine(final int monitorPort, final String monitorKey, final List<String> args) { final String javaExe = System.getProperty("java.home") + File.separator + "bin" + File.separator + "java"; final Commandline commandline = new Commandline(javaExe); final String classPath...
diff --git a/src/me/neatmonster/spacertk/PingListener.java b/src/me/neatmonster/spacertk/PingListener.java index 4766c9a..d6d6255 100644 --- a/src/me/neatmonster/spacertk/PingListener.java +++ b/src/me/neatmonster/spacertk/PingListener.java @@ -1,131 +1,132 @@ /* * This file is part of SpaceRTK (http://spacebukkit.x...
true
true
public void run() { try { socket.setSoTimeout(REQUEST_THRESHOLD); } catch (SocketException e) { handleException(e, "Error setting the So Timeout!"); } while (running.get()) { System.out.println("Run"); byte[] buffer = new byte[512]; ...
public void run() { try { socket.setSoTimeout(REQUEST_THRESHOLD); } catch (SocketException e) { handleException(e, "Error setting the So Timeout!"); } while (running.get()) { System.out.println("Run"); byte[] buffer = new byte[512]; ...
diff --git a/core/src/main/java/hudson/tasks/Ant.java b/core/src/main/java/hudson/tasks/Ant.java index 4e15b13..8ddce53 100644 --- a/core/src/main/java/hudson/tasks/Ant.java +++ b/core/src/main/java/hudson/tasks/Ant.java @@ -1,428 +1,427 @@ /* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc...
true
true
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { AbstractProject proj = build.getProject(); ArgumentListBuilder args = new ArgumentListBuilder(); Map<String,String> slaveEnv = EnvVars.getRemote(l...
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { AbstractProject proj = build.getProject(); ArgumentListBuilder args = new ArgumentListBuilder(); EnvVars env = EnvVars.getRemote(launcher.getChann...
diff --git a/src/test/java/org/atlasapi/remotesite/itv/ItvMercuryBrandAdapterTest.java b/src/test/java/org/atlasapi/remotesite/itv/ItvMercuryBrandAdapterTest.java index 4c789d2dc..20a6e2fb5 100644 --- a/src/test/java/org/atlasapi/remotesite/itv/ItvMercuryBrandAdapterTest.java +++ b/src/test/java/org/atlasapi/remotesite...
true
true
public void testShouldGetBrand() throws Exception { String uri = "http://www.itv.com/itvplayer/video/?Filter=Emmerdale"; Brand brand = adapter.fetch(uri); assertNotNull(brand); assertEquals(uri, brand.getCanonicalUri()); assertEquals("itv:Emmerdale", brand.getCurie()...
public void testShouldGetBrand() throws Exception { String uri = "http://www.itv.com/itvplayer/video/?Filter=Emmerdale"; Brand brand = adapter.fetch(uri); assertNotNull(brand); assertEquals(uri, brand.getCanonicalUri()); assertEquals("itv:Emmerdale", brand.getCurie()...
diff --git a/examples/stanfordBlacklight/test/src/edu/stanford/ItemsSplitTests.java b/examples/stanfordBlacklight/test/src/edu/stanford/ItemsSplitTests.java index 767227c..3c10849 100644 --- a/examples/stanfordBlacklight/test/src/edu/stanford/ItemsSplitTests.java +++ b/examples/stanfordBlacklight/test/src/edu/stanford/...
true
true
public void testAllItemsPresent() throws ParserConfigurationException, IOException, SAXException { String barcodeFldName = "barcode_search"; // 3195846 is a giant record for "Science" createIxInitVars("3195846.mrc"); // createIxInitVars("100817_uni_increment.marc"); assertDocPresent("3195846"); /...
public void testAllItemsPresent() throws ParserConfigurationException, IOException, SAXException { String barcodeFldName = "barcode_search"; // 3195846 is a giant record for "Science" createIxInitVars("3195846.mrc"); // createIxInitVars("100817_uni_increment.marc"); assertDocPresent("3195846"); /...
diff --git a/mailarchive-tool/tool/src/java/org/sakaiproject/mailarchive/tool/MailboxAction.java b/mailarchive-tool/tool/src/java/org/sakaiproject/mailarchive/tool/MailboxAction.java index df0da2e..6783b85 100644 --- a/mailarchive-tool/tool/src/java/org/sakaiproject/mailarchive/tool/MailboxAction.java +++ b/mailarchive...
false
true
public void doUpdate(RunData data, Context context) { // access the portlet element id to find our state String peid = ((JetspeedRunData) data).getJs_peid(); SessionState state = ((JetspeedRunData) data).getPortletSessionState(peid); // collect & save in state (for possible form re-draw) // String pagesize...
public void doUpdate(RunData data, Context context) { // access the portlet element id to find our state String peid = ((JetspeedRunData) data).getJs_peid(); SessionState state = ((JetspeedRunData) data).getPortletSessionState(peid); // collect & save in state (for possible form re-draw) // String pagesize...
diff --git a/Algorithms/AdvancedGraph.java b/Algorithms/AdvancedGraph.java index b1df2a5..a32e335 100644 --- a/Algorithms/AdvancedGraph.java +++ b/Algorithms/AdvancedGraph.java @@ -1,82 +1,82 @@ package Algorithms; import java.util.HashMap; import java.util.Map; import java.util.PriorityQueue; import java.util.Q...
true
true
public Graph minSpanTree(Graph g) { Graph result = new Graph(); if (g.numberOfVertices() > 0) { Map<Vertex, Vertex> convert = new HashMap<Vertex, Vertex>(); Queue<Edge> q = new PriorityQueue<Edge>(); Vertex s = g.getVertex(r.nextInt(g.numberOfVertices()) + 1); // Numbered 1 to N convert.put(s, new ...
public Graph minSpanTree(Graph g) { Graph result = new Graph(); if (g.numberOfVertices() > 0) { Map<Vertex, Vertex> convert = new HashMap<Vertex, Vertex>(); Queue<Edge> q = new PriorityQueue<Edge>(); Vertex s = g.getVertex(r.nextInt(g.numberOfVertices()) + 1); // Numbered 1 to N convert.put(s, new ...
diff --git a/src/api/org/openmrs/validator/ObsValidator.java b/src/api/org/openmrs/validator/ObsValidator.java index bb982916..4284ba2c 100644 --- a/src/api/org/openmrs/validator/ObsValidator.java +++ b/src/api/org/openmrs/validator/ObsValidator.java @@ -1,168 +1,167 @@ /** * The contents of this file are subject to...
false
true
private void validateHelper(Obs obs, Errors errors, List<Obs> ancestors, boolean atRootNode) { if (obs.getPersonId() == null) errors.rejectValue("person", "error.null"); if (obs.getObsDatetime() == null) errors.rejectValue("obsDatetime", "error.null"); Concept c = obs.getConcept(); if (c == null) { er...
private void validateHelper(Obs obs, Errors errors, List<Obs> ancestors, boolean atRootNode) { if (obs.getPersonId() == null) errors.rejectValue("person", "error.null"); if (obs.getObsDatetime() == null) errors.rejectValue("obsDatetime", "error.null"); Concept c = obs.getConcept(); if (c == null) { er...
diff --git a/src/net/cscott/sdr/calls/GeneralFormationMatcher.java b/src/net/cscott/sdr/calls/GeneralFormationMatcher.java index ff712ca..6dcc313 100644 --- a/src/net/cscott/sdr/calls/GeneralFormationMatcher.java +++ b/src/net/cscott/sdr/calls/GeneralFormationMatcher.java @@ -1,657 +1,660 @@ package net.cscott.sdr.cal...
true
true
public static FormationMatch doMatch( final Formation input, final List<TaggedFormation> goals, boolean allowUnmatchedDancers, boolean usePhantoms) throws NoMatchException { assert !usePhantoms : "matching with phantoms is not implement...
public static FormationMatch doMatch( final Formation input, final List<TaggedFormation> goals, boolean allowUnmatchedDancers, boolean usePhantoms) throws NoMatchException { assert !usePhantoms : "matching with phantoms is not implement...
diff --git a/AndroidExtensions_Native/src/com/ssd/android/ane/functions/SMSFunction.java b/AndroidExtensions_Native/src/com/ssd/android/ane/functions/SMSFunction.java index a6bc1af..a3b7406 100644 --- a/AndroidExtensions_Native/src/com/ssd/android/ane/functions/SMSFunction.java +++ b/AndroidExtensions_Native/src/com/ss...
true
true
public FREObject call(FREContext context, FREObject[] args) { if(args == null || args.length < 1) { Log.e(AndroidExtensions.TAG, "Invalid arguments number for SMSFunction! (requested: text, optional: recipient)"); return null; } try{ String text = args[0].getAsString(); String recipient = ""; ...
public FREObject call(FREContext context, FREObject[] args) { if(args == null || args.length < 1) { Log.e(AndroidExtensions.TAG, "Invalid arguments number for SMSFunction! (requested: text, optional: recipient)"); return null; } try{ String text = args[0].getAsString(); String recipient = ""; ...
diff --git a/bInfoBooks/src/uk/codingbadgers/binfobooks/commands/CommandBook.java b/bInfoBooks/src/uk/codingbadgers/binfobooks/commands/CommandBook.java index adca16e..4f41af5 100644 --- a/bInfoBooks/src/uk/codingbadgers/binfobooks/commands/CommandBook.java +++ b/bInfoBooks/src/uk/codingbadgers/binfobooks/commands/Comm...
true
true
public boolean onCommand(CommandSender sender, String label, String[] args) { if (!(sender instanceof Player)) { System.out.println("Book commands must be used in game"); return true; } Player player = (Player)sender; // List books if (args.length == 0) { if (Module.hasPermission(player...
public boolean onCommand(CommandSender sender, String label, String[] args) { if (!(sender instanceof Player)) { System.out.println("Book commands must be used in game"); return true; } Player player = (Player)sender; // List books if (args.length == 0) { if (Module.hasPermission(player...
diff --git a/test/com/eteks/sweethome3d/junit/HomeCameraTest.java b/test/com/eteks/sweethome3d/junit/HomeCameraTest.java index ed30077f..b428987e 100644 --- a/test/com/eteks/sweethome3d/junit/HomeCameraTest.java +++ b/test/com/eteks/sweethome3d/junit/HomeCameraTest.java @@ -1,493 +1,493 @@ /* * HomeCameraTest.java 2...
false
true
public void testHomeCamera() throws ComponentSearchException, InterruptedException, NoSuchFieldException, IllegalAccessException, InvocationTargetException { Locale.setDefault(Locale.FRANCE); UserPreferences preferences = new DefaultUserPreferences(); Home home = new Home(); home.getCompass().s...
public void testHomeCamera() throws ComponentSearchException, InterruptedException, NoSuchFieldException, IllegalAccessException, InvocationTargetException { Locale.setDefault(Locale.FRANCE); UserPreferences preferences = new DefaultUserPreferences(); Home home = new Home(); home.getCompass().s...
diff --git a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java index f9775560..dfd37609 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java @@ -1,101 +1,101 ...
true
true
protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); String name = ""; String requestUri = null; String insertUri = null; if (request.getMethod() == Method.POST) { name = request.getHttpRequest().getPartAsStringFailsafe("na...
protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); String name = ""; String requestUri = null; String insertUri = null; if (request.getMethod() == Method.POST) { name = request.getHttpRequest().getPartAsStringFailsafe("na...
diff --git a/src/com/owncloud/android/operations/SynchronizeFileOperation.java b/src/com/owncloud/android/operations/SynchronizeFileOperation.java index 6a79e751b..ec51392db 100644 --- a/src/com/owncloud/android/operations/SynchronizeFileOperation.java +++ b/src/com/owncloud/android/operations/SynchronizeFileOperation....
true
true
protected RemoteOperationResult run(OwnCloudClient client) { RemoteOperationResult result = null; mTransferWasRequested = false; if (!mLocalFile.isDown()) { /// easy decision requestForDownload(mLocalFile); result = new RemoteOperationResult(ResultCode.OK...
protected RemoteOperationResult run(OwnCloudClient client) { RemoteOperationResult result = null; mTransferWasRequested = false; if (!mLocalFile.isDown()) { /// easy decision requestForDownload(mLocalFile); result = new RemoteOperationResult(ResultCode.OK...
diff --git a/modules/weblounge-taglib/src/main/java/ch/entwine/weblounge/taglib/resource/ResourceIteratorTag.java b/modules/weblounge-taglib/src/main/java/ch/entwine/weblounge/taglib/resource/ResourceIteratorTag.java index e30bd9bca..497a2ae70 100644 --- a/modules/weblounge-taglib/src/main/java/ch/entwine/weblounge/tag...
true
true
public int doStartTag() throws JspException { Site site = request.getSite(); repository = site.getContentRepository(); if (repository == null) { logger.debug("Unable to load content repository for site '{}'", site); response.invalidate(); return SKIP_BODY; } // First time searc...
public int doStartTag() throws JspException { Site site = request.getSite(); repository = site.getContentRepository(); if (repository == null) { logger.debug("Unable to load content repository for site '{}'", site); response.invalidate(); return SKIP_BODY; } // First time searc...
diff --git a/modules/cpr/src/test/java/org/atmosphere/cpr/BroadcasterTest.java b/modules/cpr/src/test/java/org/atmosphere/cpr/BroadcasterTest.java index 9be2e5986..d96704669 100644 --- a/modules/cpr/src/test/java/org/atmosphere/cpr/BroadcasterTest.java +++ b/modules/cpr/src/test/java/org/atmosphere/cpr/BroadcasterTest....
true
true
public void testSetBroadcastMethod() throws ExecutionException, InterruptedException, ServletException { AtmosphereConfig config = new AtmosphereFramework() .setAsyncSupport(mock(BlockingIOCometSupport.class)) .init(new ServletConfig() { @Override ...
public void testSetBroadcastMethod() throws ExecutionException, InterruptedException, ServletException { AtmosphereConfig config = new AtmosphereFramework() .setAsyncSupport(mock(BlockingIOCometSupport.class)) .init(new ServletConfig() { @Override ...
diff --git a/src/LocationMapper/SQLConnection.java b/src/LocationMapper/SQLConnection.java index efd806a..bc4e4c0 100755 --- a/src/LocationMapper/SQLConnection.java +++ b/src/LocationMapper/SQLConnection.java @@ -1,236 +1,236 @@ package LocationMapper; import java.sql.Connection; import java.sql.DriverManager; imp...
true
true
public void flush(List<String> stringsToBeSent)// throws SQLException { if(stringsToBeSent == null || stringsToBeSent.size() == 0) { Log.log("Error in flush: if(stringsToBeSent == null || stringsToBeSent.size() == 0) evaluated to true..." + stringsToBeSent); return; } Statement stmt = null; try { ...
public void flush(List<String> stringsToBeSent)// throws SQLException { if(stringsToBeSent == null || stringsToBeSent.size() == 0) { //Log.log("Error in flush: if(stringsToBeSent == null || stringsToBeSent.size() == 0) evaluated to true..." + stringsToBeSent); return; } Statement stmt = null; try { ...
diff --git a/arena/easc/java/src/net/xp_framework/easc/protocol/standard/Serializer.java b/arena/easc/java/src/net/xp_framework/easc/protocol/standard/Serializer.java index 4175af6ba..64b41b4e9 100644 --- a/arena/easc/java/src/net/xp_framework/easc/protocol/standard/Serializer.java +++ b/arena/easc/java/src/net/xp_fram...
true
true
public Object handle(String serialized, Length length, ClassLoader loader) throws Exception { String classnamelength= serialized.substring(2, serialized.indexOf(':', 2)); int offset= classnamelength.length() + 2 + 2; int parsed= Integer.parseInt(classnameleng...
public Object handle(String serialized, Length length, ClassLoader loader) throws Exception { String classnamelength= serialized.substring(2, serialized.indexOf(':', 2)); int offset= classnamelength.length() + 2 + 2; int parsed= Integer.parseInt(classnameleng...
diff --git a/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java b/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java index 57c228b5..6c419ebc 100644 --- a/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java +++ b/grisu-cli...
true
true
public ServiceInterface create(String interfaceUrl, String username, char[] password, String myProxyServer, String myProxyPort, Object[] otherOptions) throws ServiceInterfaceException { try { final QName serviceName = new QName( "http://api.grisu.arcs.org.au/", "GrisuService"); final QName portNam...
public ServiceInterface create(String interfaceUrl, String username, char[] password, String myProxyServer, String myProxyPort, Object[] otherOptions) throws ServiceInterfaceException { try { final QName serviceName = new QName( "http://api.grisu.arcs.org.au/", "GrisuService"); final QName portNam...
diff --git a/commons/src/main/java/org/wikimedia/commons/contributions/ContributionsSyncAdapter.java b/commons/src/main/java/org/wikimedia/commons/contributions/ContributionsSyncAdapter.java index ec133e3d..61ca6bf7 100644 --- a/commons/src/main/java/org/wikimedia/commons/contributions/ContributionsSyncAdapter.java +++...
true
true
public void onPerformSync(Account account, Bundle bundle, String s, ContentProviderClient contentProviderClient, SyncResult syncResult) { // This code is fraught with possibilities of race conditions, but lalalalala I can't hear you! String user = account.name; MWApi api = CommonsApplication...
public void onPerformSync(Account account, Bundle bundle, String s, ContentProviderClient contentProviderClient, SyncResult syncResult) { // This code is fraught with possibilities of race conditions, but lalalalala I can't hear you! String user = account.name; MWApi api = CommonsApplication...
diff --git a/jnalib/test/com/sun/jna/examples/FileMonitorTest.java b/jnalib/test/com/sun/jna/examples/FileMonitorTest.java index 19b62a52..95d02bbc 100644 --- a/jnalib/test/com/sun/jna/examples/FileMonitorTest.java +++ b/jnalib/test/com/sun/jna/examples/FileMonitorTest.java @@ -1,202 +1,204 @@ /* Copyright (c) 2007 Ti...
false
true
public void testMultipleWatches() throws Exception { if (!Platform.isWindows()) return; File subdir1 = createSubdir(tmpdir, "sub1"); File subdir2 = createSubdir(tmpdir, "sub2"); try { monitor.addWatch(subdir1); monitor.addWatch(subdir2); ...
public void testMultipleWatches() throws Exception { if (!Platform.isWindows()) return; File subdir1 = createSubdir(tmpdir, "sub1"); File subdir2 = createSubdir(tmpdir, "sub2"); try { monitor.addWatch(subdir1); monitor.addWatch(subdir2); ...
diff --git a/src/org/proofpad/IdeDocument.java b/src/org/proofpad/IdeDocument.java index 59c62b6..f2caec1 100755 --- a/src/org/proofpad/IdeDocument.java +++ b/src/org/proofpad/IdeDocument.java @@ -1,148 +1,148 @@ package org.proofpad; import java.util.Stack; import javax.swing.text.AttributeSet; import javax.sw...
true
true
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { // Auto indentation if (str.endsWith("\n")) { boolean waitingForName = false; Stack<IndentToken> s = new Stack<IndentToken>(); int lineBeginOffset = 0; Token token = null; int lineIndentLevel = -1; Indent...
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { // Auto indentation if (str.endsWith("\n")) { boolean waitingForName = false; Stack<IndentToken> s = new Stack<IndentToken>(); int lineBeginOffset = 0; Token token = null; int lineIndentLevel = -1; Indent...
diff --git a/src/de/bdh/ks/KrimBlockName.java b/src/de/bdh/ks/KrimBlockName.java index c3a0706..409d85c 100644 --- a/src/de/bdh/ks/KrimBlockName.java +++ b/src/de/bdh/ks/KrimBlockName.java @@ -1,669 +1,669 @@ package de.bdh.ks; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import ...
false
true
public KrimBlockName() { //INIT VALUES KrimBlockName.put("air", "0"); KrimBlockName.put("stone","1"); KrimBlockName.put("grassblock","2"); KrimBlockName.put("dirt","3"); KrimBlockName.put("cobblestone","4"); KrimBlockName.put("woodenplanks","5"); KrimBlockName.put("pinewoodenplanks","5:1"); KrimBloc...
public KrimBlockName() { //INIT VALUES KrimBlockName.put("air", "0"); KrimBlockName.put("stone","1"); KrimBlockName.put("grassblock","2"); KrimBlockName.put("dirt","3"); KrimBlockName.put("cobblestone","4"); KrimBlockName.put("woodenplanks","5"); KrimBlockName.put("pinewoodenplanks","5:1"); KrimBloc...
diff --git a/contrib/src/main/java/com/datatorrent/contrib/adsdimension/Application.java b/contrib/src/main/java/com/datatorrent/contrib/adsdimension/Application.java index d1b9a86bb..27081aab5 100644 --- a/contrib/src/main/java/com/datatorrent/contrib/adsdimension/Application.java +++ b/contrib/src/main/java/com/datat...
false
true
public void populateDAG(DAG dag, Configuration conf) { dag.setAttribute(DAG.APPLICATION_NAME, "AdsDimensionDemoApplication"); InputItemGenerator input = dag.addOperator("input", InputItemGenerator.class); dag.setOutputPortAttribute(input.outputPort, PortContext.QUEUE_CAPACITY, 32 * 1024); dag.setAt...
public void populateDAG(DAG dag, Configuration conf) { dag.setAttribute(DAG.APPLICATION_NAME, "AdsDimensionDemoApplication"); InputItemGenerator input = dag.addOperator("InputGenerator", InputItemGenerator.class); dag.setOutputPortAttribute(input.outputPort, PortContext.QUEUE_CAPACITY, 32 * 1024); ...
diff --git a/src/main/java/mx/edu/um/academia/dao/impl/CursoDaoHibernate.java b/src/main/java/mx/edu/um/academia/dao/impl/CursoDaoHibernate.java index 6d07fe1..a6ca6bf 100644 --- a/src/main/java/mx/edu/um/academia/dao/impl/CursoDaoHibernate.java +++ b/src/main/java/mx/edu/um/academia/dao/impl/CursoDaoHibernate.java @@ ...
true
true
public Map<String, Object> califica(Map<String, String[]> params, ThemeDisplay themeDisplay, User usuario) { try { Examen examen = (Examen) currentSession().get(Examen.class, new Long(params.get("examenId")[0])); Integer totalExamen = 0; Integer totalUsuario = 0; ...
public Map<String, Object> califica(Map<String, String[]> params, ThemeDisplay themeDisplay, User usuario) { try { Examen examen = (Examen) currentSession().get(Examen.class, new Long(params.get("examenId")[0])); Integer totalExamen = 0; Integer totalUsuario = 0; ...
diff --git a/tree/google_quadtree.java b/tree/google_quadtree.java index 7ddecfc..f23274b 100644 --- a/tree/google_quadtree.java +++ b/tree/google_quadtree.java @@ -1,103 +1,103 @@ /*Quadtree google Given a two-dimension image, each pixel is either black or white. If all pixels are black, then this image is black...
true
true
public static QTNode intersection(QTNode rootOne, QTNode rootTwo) { if (rootOne.color == GREY && rootTwo.color == GREY) { // Both contain black & white. QTNode newNode = new QTNode(GREY); for (int i = 0; i < 4; ++i) { newNode.kids[i] = intersection(rootOne...
public static QTNode intersection(QTNode rootOne, QTNode rootTwo) { if (rootOne.color == GREY && rootTwo.color == GREY) { // Both contain black & white. QTNode newNode = new QTNode(GREY); for (int i = 0; i < 4; ++i) { newNode.kids[i] = intersection(rootOne...
diff --git a/orion-viewer/orion_viewer/src/universe/constellation/orion/viewer/OrionViewerActivity.java b/orion-viewer/orion_viewer/src/universe/constellation/orion/viewer/OrionViewerActivity.java index ce40382..3bdfe6d 100644 --- a/orion-viewer/orion_viewer/src/universe/constellation/orion/viewer/OrionViewerActivity.j...
true
true
void initReflowScreen() { final SeekBar reflowSeek = (SeekBar)findMyViewById(R.id.reflow_margin_seeker); reflowSeek.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { ...
void initReflowScreen() { final SeekBar reflowSeek = (SeekBar)findMyViewById(R.id.reflow_margin_seeker); reflowSeek.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { ...
diff --git a/drools-analytics/src/test/java/org/drools/analytics/redundancy/NotesTest.java b/drools-analytics/src/test/java/org/drools/analytics/redundancy/NotesTest.java index 5e83d7f51..1fa48ea42 100644 --- a/drools-analytics/src/test/java/org/drools/analytics/redundancy/NotesTest.java +++ b/drools-analytics/src/test...
true
true
public void testRedundantRestrictionsInPatternPossibilities() throws Exception { StatelessSession session = getStatelessSession(this.getClass() .getResourceAsStream("Notes.drl")); session.setAgendaFilter(new RuleNameMatchesAgendaFilter( "Find redundant restrictions from pattern possibilities")); Col...
public void testRedundantRestrictionsInPatternPossibilities() throws Exception { StatelessSession session = getStatelessSession(this.getClass() .getResourceAsStream("Notes.drl")); session.setAgendaFilter(new RuleNameMatchesAgendaFilter( "Find redundant restrictions from pattern possibilities")); Col...
diff --git a/software/ncireportwriter/test/src/java/gov/nih/nci/evs/reportwriter/test/lexevs/DataUtilsTest.java b/software/ncireportwriter/test/src/java/gov/nih/nci/evs/reportwriter/test/lexevs/DataUtilsTest.java index 409d569..ad890e2 100644 --- a/software/ncireportwriter/test/src/java/gov/nih/nci/evs/reportwriter/tes...
false
true
public void getAssociations() { String scheme = "NCI Thesaurus"; String version = "09.12d"; String code = "C74456"; // CDISC SDTM Anatomical Location Terminology code = "C63923"; // FDA Established Names and Unique Ingredient Identifier Codes Terminology String assocName = "...
public void getAssociations() { String scheme = "NCI Thesaurus"; String version = "09.12d"; String code = "C74456"; // CDISC SDTM Anatomical Location Terminology code = "C63923"; // FDA Established Names and Unique Ingredient Identifier Codes Terminology String assocName = "...
diff --git a/samples/src/main/java/de/agilecoders/wicket/samples/WicketApplication.java b/samples/src/main/java/de/agilecoders/wicket/samples/WicketApplication.java index 130b98e5..f9a378ad 100644 --- a/samples/src/main/java/de/agilecoders/wicket/samples/WicketApplication.java +++ b/samples/src/main/java/de/agilecoders...
true
true
public void init() { super.init(); // wicket markup leads to strange ui problems because css selectors // won't match anymore. getMarkupSettings().setStripWicketTags(true); // Allow fonts. IPackageResourceGuard packageResourceGuard = getResourceSettings().getPackage...
public void init() { super.init(); // wicket markup leads to strange ui problems because css selectors // won't match anymore. getMarkupSettings().setStripWicketTags(true); // Allow fonts. IPackageResourceGuard packageResourceGuard = getResourceSettings().getPackage...
diff --git a/src/org/jaudiotagger/tag/TagOptionSingleton.java b/src/org/jaudiotagger/tag/TagOptionSingleton.java index 9f58ddb3..7d50ac76 100644 --- a/src/org/jaudiotagger/tag/TagOptionSingleton.java +++ b/src/org/jaudiotagger/tag/TagOptionSingleton.java @@ -1,1375 +1,1376 @@ /** * @author : Paul Taylor * @autho...
true
true
public void setToDefault() { keywordMap = new HashMap(); compositeMatchOverwrite = false; endWordDelimiterList = new LinkedList(); filenameDelimiterList = new LinkedList(); filenameTagSave = false; id3v1Save = true; id3v1SaveAlbum = true; id3v1Sav...
public void setToDefault() { keywordMap = new HashMap(); compositeMatchOverwrite = false; endWordDelimiterList = new LinkedList(); filenameDelimiterList = new LinkedList(); filenameTagSave = false; id3v1Save = true; id3v1SaveAlbum = true; id3v1Sav...
diff --git a/src/main/java/com/ixonos/cimd/simulator/CIMDCodecFactory.java b/src/main/java/com/ixonos/cimd/simulator/CIMDCodecFactory.java index 1125fe1..48ba37d 100644 --- a/src/main/java/com/ixonos/cimd/simulator/CIMDCodecFactory.java +++ b/src/main/java/com/ixonos/cimd/simulator/CIMDCodecFactory.java @@ -1,49 +1,49 ...
true
true
public CIMDCodecFactory() { PacketSequenceNumberGenerator gen = new SmsCenterPacketSequenceNumberGenerator(); PacketSerializer serializer = new PacketSerializer(); serializer.setSequenceNumberGenerator(gen); decoder = new CIMDPacketDecoder(serializer); encoder = new CIMDPacketEncoder(serializer); ...
public CIMDCodecFactory() { PacketSequenceNumberGenerator gen = new SmsCenterPacketSequenceNumberGenerator(); PacketSerializer serializer = new PacketSerializer("ser", false); serializer.setSequenceNumberGenerator(gen); decoder = new CIMDPacketDecoder(serializer); encoder = new CIMDPacketEncoder(s...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java index c8bbaf24d..10110f186 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java @@ -1,518 +1,518 @@ packag...
false
true
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return "null"; if (attribute.startsWith("entity")) return new dEntity(getPlayerEntity()) .getAttribute(attribute.fulfill(1)); if...
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return "null"; if (attribute.startsWith("entity")) return new dEntity(getPlayerEntity()) .getAttribute(attribute.fulfill(1)); if...
diff --git a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java b/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java index 8c257797..8b5abe80 100644 --- a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java +++ b/axis2/src/main/java/org/apache/ode/a...
true
true
public void invokeBusinessLogic(MessageContext messageContext) throws AxisFault { String operation = messageContext.getAxisOperation().getName().getLocalPart(); SOAPFactory factory = getSOAPFactory(messageContext); boolean unknown = false; try { i...
public void invokeBusinessLogic(MessageContext messageContext) throws AxisFault { String operation = messageContext.getAxisOperation().getName().getLocalPart(); SOAPFactory factory = getSOAPFactory(messageContext); boolean unknown = false; try { i...
diff --git a/src/individual/Individual.java b/src/individual/Individual.java index 82b2a0f..393cd30 100644 --- a/src/individual/Individual.java +++ b/src/individual/Individual.java @@ -1,144 +1,145 @@ package individual; import genotype.Genome; import genotype.Genotype; import jade.core.AID; import jade.core.Age...
false
true
private void GetSettings() { DFAgentDescription template = new DFAgentDescription(); ServiceDescription templateSd = new ServiceDescription(); templateSd.setType("Settings"); template.addServices(templateSd); SearchConstraints sc = new SearchConstraints(); // We want to receive 1 result ...
private void GetSettings() { DFAgentDescription template = new DFAgentDescription(); ServiceDescription templateSd = new ServiceDescription(); templateSd.setType("Settings"); template.addServices(templateSd); SearchConstraints sc = new SearchConstraints(); // We want to receive 1 result ...
diff --git a/focusns-web/src/main/java/org/focusns/web/modules/profile/ProjectHistoryWidget.java b/focusns-web/src/main/java/org/focusns/web/modules/profile/ProjectHistoryWidget.java index b6957cf..af8a286 100644 --- a/focusns-web/src/main/java/org/focusns/web/modules/profile/ProjectHistoryWidget.java +++ b/focusns-web...
true
true
public String doList(@WidgetAttribute Project project, @WidgetAttribute ProjectUser user, Model model) { // if(user!=null) { ProjectHistory template = createTemplate(user, project); model.addAttribute("template", template); } // ...
public String doList(@WidgetAttribute(required = false) ProjectUser user, @WidgetAttribute Project project, Model model) { // if(user!=null) { ProjectHistory template = createTemplate(user, project); model.addAttribute("template", template); }...
diff --git a/src/minecraft/co/uk/flansmods/client/RenderVehicle.java b/src/minecraft/co/uk/flansmods/client/RenderVehicle.java index e143e34d..a0eb5380 100644 --- a/src/minecraft/co/uk/flansmods/client/RenderVehicle.java +++ b/src/minecraft/co/uk/flansmods/client/RenderVehicle.java @@ -1,119 +1,118 @@ package co.uk.fl...
true
true
public void render(EntityVehicle vehicle, double d, double d1, double d2, float f, float f1) { bindEntityTexture(vehicle); VehicleType type = vehicle.getVehicleType(); GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); float dYaw = (vehicle.axes.getYaw() - ...
public void render(EntityVehicle vehicle, double d, double d1, double d2, float f, float f1) { bindEntityTexture(vehicle); VehicleType type = vehicle.getVehicleType(); GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); float dYaw = (vehicle.axes.getYaw() - ...
diff --git a/Java_practice/src/jp/yahei/lwjgl/SimpleObject.java b/Java_practice/src/jp/yahei/lwjgl/SimpleObject.java index af389ca..ab03dbe 100644 --- a/Java_practice/src/jp/yahei/lwjgl/SimpleObject.java +++ b/Java_practice/src/jp/yahei/lwjgl/SimpleObject.java @@ -1,77 +1,77 @@ package jp.yahei.lwjgl; import static...
false
true
public void draw(){ glPushMatrix(); { glMatrixMode(GL_MODELVIEW); glTranslated(x, y, z); fb.put(rotMatrix); fb.flip(); glMultMatrix(fb); drawGeometry(); } glPopMatrix(); }
public void draw(){ glMatrixMode(GL_MODELVIEW); glPushMatrix(); { glTranslated(x, y, z); fb.put(rotMatrix); fb.flip(); glMultMatrix(fb); drawGeometry(); } glPopMatrix(); }
diff --git a/src/jMyCTCM/JMyCTCM.java b/src/jMyCTCM/JMyCTCM.java index a483402..49c49c5 100644 --- a/src/jMyCTCM/JMyCTCM.java +++ b/src/jMyCTCM/JMyCTCM.java @@ -1,46 +1,46 @@ package jMyCTCM; import java.io.File; import java.util.ArrayList; import java.util.List; import boccaccio.andrea.ctmc.ICTCM; import boc...
true
true
public static void main(String[] args) { List<String> ff = new ArrayList<>(); List<File> lf; ICTCM tmpCTCM; String inputFilename; String outputFilename; int i = -1; int max = -1; ff.add("ctmc"); lf = DirectoryFactory.getInstance().getDirectory(".").getFiles(FileFilterFactory.getInstance().getFileFilt...
public static void main(String[] args) { List<String> ff = new ArrayList<>(); List<File> lf; ICTCM tmpCTCM; String inputFilename; String outputFilename; int i = -1; int max = -1; ff.add("ctmc"); lf = DirectoryFactory.getInstance().getDirectory(".").getFiles(FileFilterFactory.getInstance().getFileFilt...
diff --git a/MyTinyProjects/Snake/src/com/az/Egg.java b/MyTinyProjects/Snake/src/com/az/Egg.java index c62c737..1192c31 100644 --- a/MyTinyProjects/Snake/src/com/az/Egg.java +++ b/MyTinyProjects/Snake/src/com/az/Egg.java @@ -1,74 +1,75 @@ package com.az; import java.awt.*; import java.util.Random; public class ...
true
true
private static Point nextPos() { x = r.nextInt(Yard.COLS-1); y = r.nextInt(Yard.ROWS-1); while(x <1 || y*Yard.CELL_SIZE < 30) { y = r.nextInt(Yard.ROWS-1); } return new Point(x, y); }
private static Point nextPos() { x = r.nextInt(Yard.COLS-1); y = r.nextInt(Yard.ROWS-1); while(x <1 || y*Yard.CELL_SIZE < 30) { x = r.nextInt(Yard.COLS-1); y = r.nextInt(Yard.ROWS-1); } return new Point(x, y); }
diff --git a/zssapp/test/SS_169_Test.java b/zssapp/test/SS_169_Test.java index 252e900..7417a2a 100644 --- a/zssapp/test/SS_169_Test.java +++ b/zssapp/test/SS_169_Test.java @@ -1,18 +1,20 @@ public class SS_169_Test extends SSAbstractTestCase { @Override protected void executeTest() { verifyFalse...
true
true
protected void executeTest() { verifyFalse(isWidgetVisible("$_openFileDialog")); click("jq('$fileMenu button.z-menu-btn')"); waitResponse(); click("jq('$openFile a.z-menu-item-cnt')"); waitResponse(); verifyTrue(isWidgetVisible("$_openFileDialog")); //TODO: need ...
protected void executeTest() { verifyFalse(isWidgetVisible("$_openFileDialog")); click("jq('$fileMenu button.z-menu-btn')"); waitResponse(); click("jq('$openFile a.z-menu-item-cnt')"); waitResponse(); verifyTrue(isWidgetVisible("$_openFileDialog")); doubleClick(j...
diff --git a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/ImportPromotionTests.java b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/ImportPromotionTests.java index 189be03a..232ebcb6 100644 --- a/org.eclipse.virgo.kernel.deploy...
true
true
public void testImportPromotion() throws Throwable { File par = new File("src/test/resources/ImportPromotion.par"); deploy(par); assertNotNull(ApplicationContextUtils.getApplicationContext(this.context, BUNDLE_SYMBOLIC_NAME)); this.deployer.refresh(par.toURI(), "ImporterA"); ...
public void testImportPromotion() throws Throwable { File par = new File("src/test/resources/ImportPromotion.par"); deploy(par); assertNotNull(ApplicationContextUtils.getApplicationContext(this.context, BUNDLE_SYMBOLIC_NAME)); this.deployer.refresh(par.toURI(), "ImporterA"); ...
diff --git a/src/main/java/org/weather/weatherman/activity/ForecastActivity.java b/src/main/java/org/weather/weatherman/activity/ForecastActivity.java index 9500bac..91d3201 100644 --- a/src/main/java/org/weather/weatherman/activity/ForecastActivity.java +++ b/src/main/java/org/weather/weatherman/activity/ForecastActiv...
false
true
protected void onPostExecute(Weather.ForecastWeather forecast) { this.onPreExecute(); super.onPostExecute(forecast); onProgressUpdate(80); if (forecast != null) { // update time TextView uptimeView = (TextView) findViewById(R.id.updateTime); uptimeView.setText(forecast.getTime() + "更新"); /...
protected void onPostExecute(Weather.ForecastWeather forecast) { this.onPreExecute(); super.onPostExecute(forecast); onProgressUpdate(80); if (forecast != null) { // update time TextView uptimeView = (TextView) findViewById(R.id.updateTime); uptimeView.setText(forecast.getTime() + "更新"); /...
diff --git a/src/net/ST392/ChangeHorse/CHCommandExecutor.java b/src/net/ST392/ChangeHorse/CHCommandExecutor.java index 5a7e730..d318e44 100644 --- a/src/net/ST392/ChangeHorse/CHCommandExecutor.java +++ b/src/net/ST392/ChangeHorse/CHCommandExecutor.java @@ -1,268 +1,268 @@ package net.ST392.ChangeHorse; import org.b...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { //Make sure command was not sent from console if (sender instanceof Player == false){ plugin.getLog().info("/ChangeHorse is only available in game."); return true; } //Convert sender to Player Player player...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { //Make sure command was not sent from console if (sender instanceof Player == false){ plugin.getLog().info("/ChangeHorse is only available in game."); return true; } //Convert sender to Player Player player...
diff --git a/src/se/team05/view/EditRouteMapView.java b/src/se/team05/view/EditRouteMapView.java index 363ccc9..c1e34fc 100644 --- a/src/se/team05/view/EditRouteMapView.java +++ b/src/se/team05/view/EditRouteMapView.java @@ -1,97 +1,94 @@ package se.team05.view; import se.team05.R; import se.team05.overlay.CheckPo...
false
true
public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: timerIfLongClick=event.getEventTime(); xScreenCoordinateForLongClick=event.getX(); yScreenCoordinateForLongClick=event.getY(); break; case MotionEvent.ACTION_MOVE: ...
public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: timerIfLongClick=event.getEventTime(); xScreenCoordinateForLongClick=event.getX(); yScreenCoordinateForLongClick=event.getY(); break; case MotionEvent.ACTION_MOVE: ...
diff --git a/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java b/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java index 357ef66..f56e52a 100644 --- a/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java +++ b/trunk/src/edu/umich/lsa/cscs/gridsweeper/DateUtils.java @@ -1,43 +1,43 @@ package edu.umich.ls...
true
true
public static String getDateString(Calendar cal) { int year = cal.get(Calendar.YEAR); int month = cal.get(Calendar.MONTH); int day = cal.get(Calendar.DAY_OF_MONTH) + 1; return format("%d-%02d-%02d", year, month, day); }
public static String getDateString(Calendar cal) { int year = cal.get(Calendar.YEAR); int month = cal.get(Calendar.MONTH) + 1; int day = cal.get(Calendar.DAY_OF_MONTH); return format("%d-%02d-%02d", year, month, day); }
diff --git a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/sample/SampleWSBase.java b/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/sample/SampleWSBase.java index 0d9fdc4e..3bd324e4 100644 --- a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/s...
true
true
protected void checkService(Type type, String project, String svcName, String svcPkg, String svcClass, String msgContent, String appCls) { SWTBotEditor ed = bot.editorByTitle(svcClass + ".java"); ed.show(); String code = ed.toTextEditor().getText(); assertContains("package " + svcPkg...
protected void checkService(Type type, String project, String svcName, String svcPkg, String svcClass, String msgContent, String appCls) { SWTBotEditor ed = bot.editorByTitle(svcClass + ".java"); ed.show(); String code = ed.toTextEditor().getText(); assertContains("package " + svcPkg...
diff --git a/src/com/github/andlyticsproject/DetailsActivity.java b/src/com/github/andlyticsproject/DetailsActivity.java index 1b63b78..8fc1f30 100755 --- a/src/com/github/andlyticsproject/DetailsActivity.java +++ b/src/com/github/andlyticsproject/DetailsActivity.java @@ -1,295 +1,299 @@ package com.github.andlyticspr...
true
true
protected void onCreate(Bundle savedInstanceState) { Log.d(TAG, "onCreate()"); // FragmentManager.enableDebugLogging(true); super.onCreate(savedInstanceState); appName = getDbAdapter().getAppName(packageName); hasRevenue = getIntent().getBooleanExtra(EXTRA_HAS_REVENUE, true); ActionBar actionBar = getS...
protected void onCreate(Bundle savedInstanceState) { Log.d(TAG, "onCreate()"); // FragmentManager.enableDebugLogging(true); super.onCreate(savedInstanceState); appName = getDbAdapter().getAppName(packageName); hasRevenue = getIntent().getBooleanExtra(EXTRA_HAS_REVENUE, true); ActionBar actionBar = getS...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgGetProperties.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgGetProperties.java index 46bdb8331..098b3bb0d 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/ng/SvnNgGetProperties.java +++ b/svnkit/...
true
true
protected SVNProperties run(SVNWCContext context) throws SVNException { boolean pristine = getOperation().getRevision() == SVNRevision.COMMITTED || getOperation().getRevision() == SVNRevision.BASE; SVNNodeKind kind = context.readKind(getFirstTarget(), false); if (kind == SVNNodeKind...
protected SVNProperties run(SVNWCContext context) throws SVNException { boolean pristine = getOperation().getRevision() == SVNRevision.COMMITTED || getOperation().getRevision() == SVNRevision.BASE; SVNNodeKind kind = context.readKind(getFirstTarget(), false); if (kind == SVNNodeKind...
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index 6e88d8639..d482d16ed 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -1,1057 +1,1...
true
true
protected void onPostExecute(Boolean result) { MasterImage.setMaster(mMasterImage); if (isCancelled()) { return; } if (!result) { cannotLoadImage(); } final View loading = findViewById(R.id.loading); ...
protected void onPostExecute(Boolean result) { MasterImage.setMaster(mMasterImage); if (isCancelled()) { return; } if (!result) { cannotLoadImage(); return; } final View loading = findViewBy...
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/P2Util.java b/examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/P2Util.java index 81ee3e9f0..2ade309a9 100644 --- a/examples/or...
true
true
static boolean checkForUpdates() { // Before we show a progress dialog, at least find out that we have // installed content and repos to check. final IProfileRegistry profileRegistry = (IProfileRegistry) ServiceHelper .getService(Activator.bundleContext, IProfileRegistry.class .getName()); if (profil...
static boolean checkForUpdates() { // Before we show a progress dialog, at least find out that we have // installed content and repos to check. final IProfileRegistry profileRegistry = (IProfileRegistry) ServiceHelper .getService(Activator.bundleContext, IProfileRegistry.class .getName()); if (profil...