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/org/apache/xerces/impl/xs/XSConstraints.java b/src/org/apache/xerces/impl/xs/XSConstraints.java index a0ab6772f..28db4ed71 100644 --- a/src/org/apache/xerces/impl/xs/XSConstraints.java +++ b/src/org/apache/xerces/impl/xs/XSConstraints.java @@ -1,1441 +1,1442 @@ /* * The Apache Software License, Vers...
true
true
private static void particleValidRestriction(XSParticleDecl dParticle, SubstitutionGroupHandler dSGHandler, XSParticleDecl bParticle, SubstitutionGroupHandler bSGHandler, ...
private static void particleValidRestriction(XSParticleDecl dParticle, SubstitutionGroupHandler dSGHandler, XSParticleDecl bParticle, SubstitutionGroupHandler bSGHandler, ...
diff --git a/charaparser/src/semanticMarkup/ling/extract/lib/PPChunkProcessor.java b/charaparser/src/semanticMarkup/ling/extract/lib/PPChunkProcessor.java index a2812787..a98bd0a8 100644 --- a/charaparser/src/semanticMarkup/ling/extract/lib/PPChunkProcessor.java +++ b/charaparser/src/semanticMarkup/ling/extract/lib/PPC...
true
true
protected ArrayList<DescriptionTreatmentElement> processChunk(Chunk chunk, ProcessingContext processingContext) { ArrayList<DescriptionTreatmentElement> result = new ArrayList<DescriptionTreatmentElement>(); ProcessingContextState processingContextState = processingContext.getCurrentState(); LinkedList<Descri...
protected ArrayList<DescriptionTreatmentElement> processChunk(Chunk chunk, ProcessingContext processingContext) { ArrayList<DescriptionTreatmentElement> result = new ArrayList<DescriptionTreatmentElement>(); ProcessingContextState processingContextState = processingContext.getCurrentState(); LinkedList<Descri...
diff --git a/Rania/src/com/game/rania/model/element/Player.java b/Rania/src/com/game/rania/model/element/Player.java index ca8b043..f6762f1 100644 --- a/Rania/src/com/game/rania/model/element/Player.java +++ b/Rania/src/com/game/rania/model/element/Player.java @@ -1,109 +1,111 @@ package com.game.rania.model.element; ...
true
true
public boolean draw(SpriteBatch sprite, ShapeRenderer shape) { if (planet > 0) { angle.value = 0.0f; position.set(target.object.position); return true; } if (body.wear <= 0) { deadText.draw(sprite, position.x, position.y); return true; } target.dra...
public boolean draw(SpriteBatch sprite, ShapeRenderer shape) { if (planet > 0) { angle.value = 0.0f; position.set(target.object.position); return true; } if (body.wear <= 0) { deadText.draw(sprite, position.x, position.y); return true; } target.dra...
diff --git a/src/com/jambit/coffeeparty/AvatarActivity.java b/src/com/jambit/coffeeparty/AvatarActivity.java index 0501b3d..2126a19 100644 --- a/src/com/jambit/coffeeparty/AvatarActivity.java +++ b/src/com/jambit/coffeeparty/AvatarActivity.java @@ -1,63 +1,68 @@ package com.jambit.coffeeparty; import android.app.Ac...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.avataractivity); imageAdapter = new ImageAdapter(this); Gallery g = (Gallery) findViewById(R.id.gallery1); g.setAdapter(imageAdapter); TextView playerNameText...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.avataractivity); imageAdapter = new ImageAdapter(this); Gallery g = (Gallery) findViewById(R.id.gallery1); g.setAdapter(imageAdapter); TextView playerNameText...
diff --git a/freemind/plugins/map/MapDialog.java b/freemind/plugins/map/MapDialog.java index 35205c0..c9e8edc 100644 --- a/freemind/plugins/map/MapDialog.java +++ b/freemind/plugins/map/MapDialog.java @@ -1,989 +1,990 @@ package plugins.map; //License: GPL. Copyright 2008 by Jan Peter Stotz import java.awt.AWTEv...
true
true
public void startupMapHook() { super.startupMapHook(); mMyMindMapController = super.getMindMapController(); getMindMapController().getController().getMapModuleManager() .addListener(this); mMapDialog = new JDialog(getController().getFrame().getJFrame(), false /* unmodal */); mMapDialog.setTitle(getResour...
public void startupMapHook() { super.startupMapHook(); mMyMindMapController = super.getMindMapController(); getMindMapController().getController().getMapModuleManager() .addListener(this); mMapDialog = new JDialog(getController().getFrame().getJFrame(), false /* unmodal */); mMapDialog.setTitle(getResour...
diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java index 896306952..eec243d31 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifact...
true
true
protected ArtifactResolutionResult collect( Set artifacts, ArtifactRepository localRepository, Set remoteRepositories, ArtifactMetadataSource source, ...
protected ArtifactResolutionResult collect( Set artifacts, ArtifactRepository localRepository, Set remoteRepositories, ArtifactMetadataSource source, ...
diff --git a/src/ZoneDessin.java b/src/ZoneDessin.java index bf95f9e..88d20c3 100755 --- a/src/ZoneDessin.java +++ b/src/ZoneDessin.java @@ -1,354 +1,354 @@ import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; ...
true
true
public void paintComponent(Graphics gd){ Graphics2D g = (Graphics2D)gd; //Calcul de l'ecart de la zone de dessin pour centrer le dessin ecartHorizontal = (this.getWidth() - largeurDessin)/2; ecartVertical = (this.getHeight() - hauteurDessin)/2; //ETAPE 1 : Afficher la zone de dessin g.setColor...
public void paintComponent(Graphics gd){ Graphics2D g = (Graphics2D)gd; //Calcul de l'ecart de la zone de dessin pour centrer le dessin ecartHorizontal = (this.getWidth() - largeurDessin)/2; ecartVertical = (this.getHeight() - hauteurDessin)/2; //ETAPE 1 : Afficher la zone de dessin g.setColor...
diff --git a/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommenderIRStatsEvaluator.java b/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommenderIRStatsEvaluator.java index b142980cb..c432b42bd 100644 --- a/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommende...
true
true
public IRStatistics evaluate(RecommenderBuilder recommenderBuilder, DataModelBuilder dataModelBuilder, DataModel dataModel, Rescorer<Long> rescorer, int at, double...
public IRStatistics evaluate(RecommenderBuilder recommenderBuilder, DataModelBuilder dataModelBuilder, DataModel dataModel, Rescorer<Long> rescorer, int at, double...
diff --git a/utils/ConvertToOmeTiff.java b/utils/ConvertToOmeTiff.java index b39056cf0..37ae062ea 100644 --- a/utils/ConvertToOmeTiff.java +++ b/utils/ConvertToOmeTiff.java @@ -1,45 +1,52 @@ // // ConvertToOmeTiff.java // import java.awt.image.BufferedImage; import java.util.Hashtable; import loci.formats.*; i...
false
true
public static void main(String[] args) throws Exception { if (args.length == 0) { System.out.println("Usage: java ConvertToOmeTiff file1 file2 ..."); return; } ImageReader reader = new ImageReader(); TiffWriter writer = new TiffWriter(); // record metadata to OME-XML format OMEXMLM...
public static void main(String[] args) throws Exception { if (args.length == 0) { System.out.println("Usage: java ConvertToOmeTiff file1 file2 ..."); return; } ImageReader reader = new ImageReader(); TiffWriter writer = new TiffWriter(); // record metadata to OME-XML format OMEXMLM...
diff --git a/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ApplicationWorkbenchAdvisor.java b/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ApplicationWorkbenchAdvisor.java index 434e32839..d2f38bcb5 100755 --- a/source/trunk/plugins/org.marketce...
false
true
private void declareIdeWorkbenchImages() { final String ICONS_PATH = "$nl$/icons/full/";//$NON-NLS-1$ final String PATH_ETOOL = ICONS_PATH + "etool16/"; // Enabled toolbar icons.//$NON-NLS-1$ Bundle ideBundle = Platform.getBundle(IDEWorkbenchPlugin.IDE_WORKBENCH); declareIdeWorkbenchImage(ideBundle, IDE...
private void declareIdeWorkbenchImages() { final String ICONS_PATH = "$nl$/icons/full/";//$NON-NLS-1$ final String PATH_ETOOL = ICONS_PATH + "etool16/"; // Enabled toolbar icons.//$NON-NLS-1$ final String PATH_OBJECT = ICONS_PATH + "obj16/"; // Model object icons//$NON-NLS-1$ Bundle ideBundle = Platform.getB...
diff --git a/src/org/openswing/swing/client/TextControl.java b/src/org/openswing/swing/client/TextControl.java index b16f015..fbce2ac 100644 --- a/src/org/openswing/swing/client/TextControl.java +++ b/src/org/openswing/swing/client/TextControl.java @@ -1,389 +1,390 @@ package org.openswing.swing.client; import java...
false
true
private void addKeyListener() { textBox.addKeyListener(new KeyAdapter() { public final void keyReleased(KeyEvent e) { e.consume(); } public final void keyTyped(KeyEvent e) { if (textBox.getText()!=null && textBox.getText().length()>=maxCharacters && e.ge...
private void addKeyListener() { textBox.addKeyListener(new KeyAdapter() { public final void keyReleased(KeyEvent e) { e.consume(); } public final void keyTyped(KeyEvent e) { if (textBox.getText()!=null && textBox.getText().length()>=maxCharacters && e.ge...
diff --git a/src/ui/Coordinate.java b/src/ui/Coordinate.java index 8d3b039..67cd04d 100644 --- a/src/ui/Coordinate.java +++ b/src/ui/Coordinate.java @@ -1,19 +1,20 @@ package ui; public class Coordinate { public int x; public int y; public Coordinate(int x, int y) { this.x = x; this.y = y; } @Ov...
true
true
public boolean equals(Object a) { boolean t = false; if ((((Coordinate) a).x == x) && (((Coordinate) a).y == y)) t = true; return t; }
public boolean equals(Object a) { boolean t = false; if ((a instanceof Coordinate) && (((Coordinate) a).x == x) && (((Coordinate) a).y == y)) t = true; return t; }
diff --git a/net.beaconcontroller.routing/src/main/java/net/beaconcontroller/routing/internal/Routing.java b/net.beaconcontroller.routing/src/main/java/net/beaconcontroller/routing/internal/Routing.java index f48bf1f..3139592 100644 --- a/net.beaconcontroller.routing/src/main/java/net/beaconcontroller/routing/internal/...
true
true
public void pushRoute(OFMessageFactory factory, OFMatch match, Route route, Device dstDevice, int bufferId) { OFFlowMod fm = (OFFlowMod) factory.getMessage(OFType.FLOW_MOD); OFActionOutput action = new OFActionOutput(); List<OFAction> actions = new ArrayList<OFAction>(); actions.add(...
public void pushRoute(OFMessageFactory factory, OFMatch match, Route route, Device dstDevice, int bufferId) { OFFlowMod fm = (OFFlowMod) factory.getMessage(OFType.FLOW_MOD); OFActionOutput action = new OFActionOutput(); List<OFAction> actions = new ArrayList<OFAction>(); actions.add(...
diff --git a/io-impl/impl/src/main/java/org/cytoscape/io/internal/util/vizmap/CalculatorConverter.java b/io-impl/impl/src/main/java/org/cytoscape/io/internal/util/vizmap/CalculatorConverter.java index 85f5cd3fd..6244409d8 100644 --- a/io-impl/impl/src/main/java/org/cytoscape/io/internal/util/vizmap/CalculatorConverter....
true
true
private Object getMappingFunction(Properties props, String mapperName, VisualProperty vp) { String baseKey = null; String functionType = null; while (functionType == null) { // e.g. "edgeColorCalculator.MyStyle-Edge Color-Discrete Mapper.mapping." baseKey = (legacyKey != null ? legacyKey : key) + "." + ...
private Object getMappingFunction(Properties props, String mapperName, VisualProperty vp) { String baseKey = null; String functionType = null; while (functionType == null) { // e.g. "edgeColorCalculator.MyStyle-Edge Color-Discrete Mapper.mapping." baseKey = (legacyKey != null ? legacyKey : key) + "." + ...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInRegistryFinder.java b/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInRegistryFinder.java index 7ecaeeb82..95ae4ba91 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInRegistryFinder.java +++ b/org.emftext.sdk/src/org/emftext...
false
true
private static void init() { synchronized (GenPackageInRegistryFinder.class) { if (!isInitialized) { //search all registered generator models final Map<String, URI> packageNsURIToGenModelLocationMap = EcorePlugin.getEPackageNsURIToGenModelLocationMap(); for (String nextNS : packageNsURIToGenModelLocat...
private static void init() { synchronized (GenPackageInRegistryFinder.class) { if (!isInitialized) { //search all registered generator models final Map<String, URI> packageNsURIToGenModelLocationMap = EcorePlugin.getEPackageNsURIToGenModelLocationMap(); for (String nextNS : packageNsURIToGenModelLocat...
diff --git a/tests/native-media/src/com/example/nativemedia/NativeMedia.java b/tests/native-media/src/com/example/nativemedia/NativeMedia.java index 01636d2..82d579d 100644 --- a/tests/native-media/src/com/example/nativemedia/NativeMedia.java +++ b/tests/native-media/src/com/example/nativemedia/NativeMedia.java @@ -1,3...
false
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); mGLView1 = (MyGLSurfaceView) findViewById(R.id.glsurfaceview1); mGLView2 = (MyGLSurfaceView) findViewById(R.id.glsurfaceview2); //setContentView(mGLView); //setRequestedOrie...
public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); mGLView1 = (MyGLSurfaceView) findViewById(R.id.glsurfaceview1); mGLView2 = (MyGLSurfaceView) findViewById(R.id.glsurfaceview2); //setContentView(mGLView); //setRequestedOrie...
diff --git a/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java b/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java index 5d402b261e..26f555f223 100644 --- a/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLog...
true
true
public void initialize(String configLocation) { Assert.notNull(configLocation, "ConfigLocation must not be null"); String resolvedLocation = SystemPropertyUtils.resolvePlaceholders(configLocation); ILoggerFactory factory = StaticLoggerBinder.getSingleton().getLoggerFactory(); Assert.isInstanceOf(ILoggerFactory...
public void initialize(String configLocation) { Assert.notNull(configLocation, "ConfigLocation must not be null"); String resolvedLocation = SystemPropertyUtils.resolvePlaceholders(configLocation); ILoggerFactory factory = StaticLoggerBinder.getSingleton().getLoggerFactory(); Assert.isInstanceOf( LoggerCon...
diff --git a/update/org.eclipse.update.scheduler/src/org/eclipse/update/internal/scheduler/AutomaticUpdatesJob.java b/update/org.eclipse.update.scheduler/src/org/eclipse/update/internal/scheduler/AutomaticUpdatesJob.java index 3878f7558..bbc01928a 100644 --- a/update/org.eclipse.update.scheduler/src/org/eclipse/update/...
true
true
public IStatus run(IProgressMonitor monitor) { if (UpdateCore.DEBUG) { UpdateCore.debug("Automatic update search started."); //$NON-NLS-1$ } searchRequest = UpdateUtils.createNewUpdatesRequest(null); try { if (resultCollector == null) resultCollector = new AutomaticSearchResultCollector(); searchR...
public IStatus run(IProgressMonitor monitor) { if (UpdateCore.DEBUG) { UpdateCore.debug("Automatic update search started."); //$NON-NLS-1$ } searchRequest = UpdateUtils.createNewUpdatesRequest(null); try { if (resultCollector == null) resultCollector = new AutomaticSearchResultCollector(); searchR...
diff --git a/server/src/main/java/us/codecraft/blackhole/forward/MultiUDPReceiver.java b/server/src/main/java/us/codecraft/blackhole/forward/MultiUDPReceiver.java index 244b688..8aff094 100755 --- a/server/src/main/java/us/codecraft/blackhole/forward/MultiUDPReceiver.java +++ b/server/src/main/java/us/codecraft/blackho...
true
true
private void handleAnswer(ByteBuffer byteBuffer, SocketAddress remoteAddress) throws IOException { byte[] answer = Arrays.copyOfRange(byteBuffer.array(), 0, byteBuffer.remaining()); final Message message = new Message(answer); // fake dns server return an answer, it must be dns pollution if (remoteAddre...
private void handleAnswer(ByteBuffer byteBuffer, SocketAddress remoteAddress) throws IOException { byte[] answer = Arrays.copyOfRange(byteBuffer.array(), 0, byteBuffer.remaining()); final Message message = new Message(answer); // fake dns server return an answer, it must be dns pollution if (remoteAddre...
diff --git a/src/main/java/com/cloudbees/plugins/credentials/common/StandardCertificateCredentials.java b/src/main/java/com/cloudbees/plugins/credentials/common/StandardCertificateCredentials.java index dcb8ce8..a09c3c6 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/common/StandardCertificateCredentials.j...
true
true
public static String getSubjectDN(@NonNull KeyStore keyStore) { keyStore.getClass(); // throw NPE if null try { for (Enumeration<String> enumeration = keyStore.aliases(); enumeration.hasMoreElements(); ) { String alias = enumeration.nextElement(); ...
public static String getSubjectDN(@NonNull KeyStore keyStore) { keyStore.getClass(); // throw NPE if null try { for (Enumeration<String> enumeration = keyStore.aliases(); enumeration.hasMoreElements(); ) { String alias = enumeration.nextElement(); ...
diff --git a/src/episode_3/SimpleOGLRenderer.java b/src/episode_3/SimpleOGLRenderer.java index a9e6302..55ea7b3 100644 --- a/src/episode_3/SimpleOGLRenderer.java +++ b/src/episode_3/SimpleOGLRenderer.java @@ -1,77 +1,80 @@ /* * Copyright (c) 2012, Oskar Veerhoek * All rights reserved. * * Redistribution and us...
false
true
public static void main(String[] args) { try { Display.setDisplayMode(new DisplayMode(640, 480)); Display.setTitle("Hello, LWJGL!"); Display.create(); } catch (LWJGLException e) { e.printStackTrace(); } glMatrixMode(GL_PROJECTION); ...
public static void main(String[] args) { try { Display.setDisplayMode(new DisplayMode(640, 480)); Display.setTitle("Hello, LWJGL!"); Display.create(); } catch (LWJGLException e) { e.printStackTrace(); Display.destroy(); System.e...
diff --git a/src/org/carballude/sherlock/controller/revealers/TVE.java b/src/org/carballude/sherlock/controller/revealers/TVE.java index 28f429e..4847df2 100644 --- a/src/org/carballude/sherlock/controller/revealers/TVE.java +++ b/src/org/carballude/sherlock/controller/revealers/TVE.java @@ -1,152 +1,157 @@ package or...
false
true
public String revealLink(String link) throws MalformedURLException, IOException, InvalidLinkException { if(isTVEALaCarta(link)) return getTVEALaCarta(link); if(isRTVELink(link)) return getRTVELink(link); String id = getId(link); String url = generateVideoXmlUrl(id); String source = ""; try { ...
public String revealLink(String link) throws MalformedURLException, IOException, InvalidLinkException { if(isTVEALaCarta(link)) return getTVEALaCarta(link); if(isRTVELink(link)) return getRTVELink(link); String id = getId(link); String source = ""; try { source = HTML.HTMLSource(link); Str...
diff --git a/src/directi/androidteam/training/chatclient/Chat/ChatFragment.java b/src/directi/androidteam/training/chatclient/Chat/ChatFragment.java index db1cd4e..b6a1d1f 100644 --- a/src/directi/androidteam/training/chatclient/Chat/ChatFragment.java +++ b/src/directi/androidteam/training/chatclient/Chat/ChatFragment....
true
true
public void onActivityCreated(Bundle savedInstanceState){ super.onActivityCreated(savedInstanceState); adaptor = new ChatListAdaptor(getActivity(), chatListItems); ListView lv = getListView(); LayoutInflater linf = getLayoutInflater(savedInstanceState); ViewGroup header = (V...
public void onActivityCreated(Bundle savedInstanceState){ super.onActivityCreated(savedInstanceState); adaptor = new ChatListAdaptor(getActivity(), chatListItems); ListView lv = getListView(); LayoutInflater linf = getLayoutInflater(savedInstanceState); ViewGroup header = (V...
diff --git a/src/unit-tests/java/com/forum/web/controller/QuestionControllerTest.java b/src/unit-tests/java/com/forum/web/controller/QuestionControllerTest.java index 5926600..18f55d4 100644 --- a/src/unit-tests/java/com/forum/web/controller/QuestionControllerTest.java +++ b/src/unit-tests/java/com/forum/web/controller...
true
true
public void shouldReturnPostedQuestion(){ QuestionService mockedQuestionService = mock(QuestionService.class); Map<String, String> params = new HashMap<String, String>(); params.put("title", "Question Title"); params.put("description", "Question Description"); mockedQuestionS...
public void shouldReturnPostedQuestion(){ QuestionService mockedQuestionService = mock(QuestionService.class); Map<String, String> params = new HashMap<String, String>(); params.put("questionTitle", "Question Title"); params.put("editor", "Question Description"); mockedQuesti...
diff --git a/java/client/src/org/openqa/selenium/chrome/ChromeDriverService.java b/java/client/src/org/openqa/selenium/chrome/ChromeDriverService.java index f3b3fa174..e5ad91fc2 100644 --- a/java/client/src/org/openqa/selenium/chrome/ChromeDriverService.java +++ b/java/client/src/org/openqa/selenium/chrome/ChromeDriver...
true
true
public static ChromeDriverService createDefaultService() { String defaultPath = findExecutable("chromedriver"); String exePath = System.getProperty(CHROME_DRIVER_EXE_PROPERTY, defaultPath); checkState(exePath != null, "The path to the chromedriver executable must be set by the %s system property",...
public static ChromeDriverService createDefaultService() { String defaultPath = findExecutable("chromedriver"); String exePath = System.getProperty(CHROME_DRIVER_EXE_PROPERTY, defaultPath); checkState(exePath != null, "The path to the chromedriver executable must be set by the %s system property;"...
diff --git a/src/org/dita/dost/platform/Integrator.java b/src/org/dita/dost/platform/Integrator.java index 7f10a4cb3..19956b8d0 100644 --- a/src/org/dita/dost/platform/Integrator.java +++ b/src/org/dita/dost/platform/Integrator.java @@ -1,418 +1,421 @@ /* * This file is part of the DITA Open Toolkit project hosted o...
true
true
public void execute() { if (logger == null) { logger = new DITAOTJavaLogger(); } if (!ditaDir.isAbsolute()) { ditaDir = new File(basedir, ditaDir.getPath()); } // Read the properties file, if it exists. properties = new Properties(); i...
public void execute() { if (logger == null) { logger = new DITAOTJavaLogger(); } if (!ditaDir.isAbsolute()) { ditaDir = new File(basedir, ditaDir.getPath()); } // Read the properties file, if it exists. properties = new Properties(); i...
diff --git a/opal-reporting/src/main/java/org/obiba/opal/reporting/service/impl/BasicBirtReportServiceImpl.java b/opal-reporting/src/main/java/org/obiba/opal/reporting/service/impl/BasicBirtReportServiceImpl.java index 737f6f2b2..1a1e0f1d0 100644 --- a/opal-reporting/src/main/java/org/obiba/opal/reporting/service/impl/...
false
true
public void render(String format, Map<String, String> parameters, String reportDesign, String reportOutput) { Runtime r = Runtime.getRuntime(); try { Process p = r.exec(getBirtCommandLine(format, parameters, reportDesign, reportOutput)); OutputPurger outputErrorPurger = new OutputPurger(p.getErr...
public void render(String format, Map<String, String> parameters, String reportDesign, String reportOutput) { Runtime r = Runtime.getRuntime(); try { Process p = r.exec(getBirtCommandLine(format, parameters, reportDesign, reportOutput)); OutputPurger outputErrorPurger = new OutputPurger(p.getErr...
diff --git a/src/main/java/se/tla/mavenversionbumper/Main.java b/src/main/java/se/tla/mavenversionbumper/Main.java index 2091f5e..e469805 100644 --- a/src/main/java/se/tla/mavenversionbumper/Main.java +++ b/src/main/java/se/tla/mavenversionbumper/Main.java @@ -1,332 +1,332 @@ /* * Copyright (c) 2012 Jim Svensson <ji...
true
true
public static void main(String args[]) { OptionParser parser = new OptionParser() { { acceptsAll(Option.DRYRUN.getAliases(), Option.DRYRUN.getHelpText()); acceptsAll(Option.PREPARETEST.getAliases(), Option.PREPARETEST.getHelpText()); acceptsAll(Op...
public static void main(String args[]) { OptionParser parser = new OptionParser() { { acceptsAll(Option.DRYRUN.getAliases(), Option.DRYRUN.getHelpText()); acceptsAll(Option.PREPARETEST.getAliases(), Option.PREPARETEST.getHelpText()); acceptsAll(Op...
diff --git a/src/jvm/clojure/lang/PersistentVector.java b/src/jvm/clojure/lang/PersistentVector.java index b842fc43..460a4069 100644 --- a/src/jvm/clojure/lang/PersistentVector.java +++ b/src/jvm/clojure/lang/PersistentVector.java @@ -1,748 +1,748 @@ /** * Copyright (c) Rich Hickey. All rights reserved. * The ...
true
true
public TransientVector pop(){ ensureEditable(); if(cnt == 0) throw new IllegalStateException("Can't pop empty vector"); if(cnt == 1) { cnt = 0; return this; } int i = cnt - 1; //pop in tail? if((i & 0x01f) > 0) { --cnt; return this; } Object[] newtail = arrayFor(cnt - 2); N...
public TransientVector pop(){ ensureEditable(); if(cnt == 0) throw new IllegalStateException("Can't pop empty vector"); if(cnt == 1) { cnt = 0; return this; } int i = cnt - 1; //pop in tail? if((i & 0x01f) > 0) { --cnt; return this; } Object[] newtail = arrayFor(cnt - 2); N...
diff --git a/src/main/org/jboss/seam/log/LogImpl.java b/src/main/org/jboss/seam/log/LogImpl.java index 0bbb078b..3b7870fd 100644 --- a/src/main/org/jboss/seam/log/LogImpl.java +++ b/src/main/org/jboss/seam/log/LogImpl.java @@ -1,175 +1,175 @@ package org.jboss.seam.log; import java.io.Externalizable; import java.i...
true
true
private Object interpolate(Object object, Object... params) { if (object instanceof String) { try { return Interpolator.instance().interpolate( (String) object, params ); } catch (Exception e) { log.error("exception interpolating string: " + object, e); ...
private Object interpolate(Object object, Object... params) { if (object instanceof String) { try { object = Interpolator.instance().interpolate( (String) object, params ); } catch (Exception e) { log.error("exception interpolating string: " + object, e); ...
diff --git a/src/tng/Main.java b/src/tng/Main.java index 55d7ee5..64208c2 100644 --- a/src/tng/Main.java +++ b/src/tng/Main.java @@ -1,67 +1,67 @@ package tng; import java.io.File; import java.util.List; import models.Method; import models.Pair; import git.GitController; import db.DatabaseConnector; impor...
false
true
public static void main(String[] args) { System.out.println("TNG developed by eggnet."); System.out.println(); try { if (args.length < 4 ) { System.out.println("Retry: TNG [dbname] [repository] [branch] [configFile] <commitFile> <port>"); throw new ArrayIndexOutOfBoundsException(); } else { ...
public static void main(String[] args) { System.out.println("TNG developed by eggnet."); System.out.println(); try { if (args.length < 4 ) { System.out.println("Retry: TNG [dbname] [repository] [branch] [configFile] <commitFile> <port>"); throw new ArrayIndexOutOfBoundsException(); } else { ...
diff --git a/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java b/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java index 3f93afc..f9b6e19 100644 --- a/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java +++ b/src/com/android/settings/cyanogenmod/AutoBright...
false
true
public View getView(int position, View convertView, ViewGroup parent) { final Holder holder; if (convertView == null) { convertView = getLayoutInflater().inflate( R.layout.auto_brightness_list_item, parent, false); holder = new Hol...
public View getView(int position, View convertView, ViewGroup parent) { final Holder holder; if (convertView == null) { convertView = getLayoutInflater().inflate( R.layout.auto_brightness_list_item, parent, false); holder = new Hol...
diff --git a/src/net/mcft/copy/betterstorage/BetterStorage.java b/src/net/mcft/copy/betterstorage/BetterStorage.java index e6503b6..f8eab7f 100644 --- a/src/net/mcft/copy/betterstorage/BetterStorage.java +++ b/src/net/mcft/copy/betterstorage/BetterStorage.java @@ -1,183 +1,183 @@ package net.mcft.copy.betterstorage; ...
true
true
private void addRecipes() { // Crate recipe GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(crate), "o/o", "/ /", "o/o", 'o', "plankWood", '/', Item.stick)); // Reinforced chest recipes for (ChestMaterial material : ChestMaterial.materials) GameRegistry.addRecipe(materi...
private void addRecipes() { // Crate recipe GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(crate), "o/o", "/ /", "o/o", 'o', "plankWood", '/', Item.stick)); // Reinforced chest recipes for (ChestMaterial material : ChestMaterial.materials) GameRegistry.addRecipe(materi...
diff --git a/de.walware.statet.rtm.ggplot.core/src/de/walware/statet/rtm/ggplot/core/GGPlotRCodeGen.java b/de.walware.statet.rtm.ggplot.core/src/de/walware/statet/rtm/ggplot/core/GGPlotRCodeGen.java index f1b435fc..2587fc3d 100644 --- a/de.walware.statet.rtm.ggplot.core/src/de/walware/statet/rtm/ggplot/core/GGPlotRCode...
true
true
public void genRCode(final GGPlot plot) { appendAssign(fPlotVar); { final E2R e2r = E2R_PROPERTIES.get(GGPlotPackage.GG_PLOT); final FunBuilder fun = appendFun(e2r.getRFun()); appendData(fun, plot); appendAes(fun, plot, e2r); fun.close(); appendNewLine(); addFacet(plot.getFacet()); add...
public void genRCode(final GGPlot plot) { appendAssign(fPlotVar); { final E2R e2r = E2R_PROPERTIES.get(GGPlotPackage.GG_PLOT); final FunBuilder fun = appendFun(e2r.getRFun()); appendData(fun, plot); appendAes(fun, plot, e2r); fun.close(); appendNewLine(); addFacet(plot.getFacet()); add...
diff --git a/modules/foundation/hud/src/classes/org/jdesktop/wonderland/modules/hud/client/HUDCompassLayoutManager.java b/modules/foundation/hud/src/classes/org/jdesktop/wonderland/modules/hud/client/HUDCompassLayoutManager.java index cdcc6f4c1..5f0feb598 100644 --- a/modules/foundation/hud/src/classes/org/jdesktop/won...
true
true
public Vector2f getLocation(HUDComponent component) { Vector2f location = new Vector2f(); if (component == null) { return location; } HUDView2D view2d = (HUDView2D) hudViewMap.get(component); if (view2d == null) { return location; } ...
public Vector2f getLocation(HUDComponent component) { Vector2f location = new Vector2f(); if (component == null) { return location; } HUDView2D view2d = (HUDView2D) hudViewMap.get(component); if (view2d == null) { return location; } ...
diff --git a/src/org/sagemath/droid/CellListFragment.java b/src/org/sagemath/droid/CellListFragment.java index 23dd04f..7fa6de9 100644 --- a/src/org/sagemath/droid/CellListFragment.java +++ b/src/org/sagemath/droid/CellListFragment.java @@ -1,66 +1,66 @@ package org.sagemath.droid; import java.util.LinkedList; i...
true
true
public void switchToGroup(String group) { CellCollection cellCollection = CellCollection.getInstance(); cells.clear(); if (group == null) { LinkedList<CellData> data = cellCollection.getCurrentGroup(); if (data != null) cells.addAll(data); else return; } else cells.addAll(cellCollection.g...
public void switchToGroup(String group) { CellCollection cellCollection = CellCollection.getInstance(); cells.clear(); if (group == null) { LinkedList<CellData> data = cellCollection.getCurrentGroup(); if (data != null) cells.addAll(data); else return; } else cells.addAll(cellCollection.g...
diff --git a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Sb_stadtbildserieEditor.java b/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Sb_stadtbildserieEditor.java index 1de6f470..ff59499e 100644 --- a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Sb_stadtbildserieEditor.ja...
true
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); sqlDateToUtilDateConverter = new de.cismet.cids.editors.converters.SqlDateToUtilDateConverter(); sqlDateToStringConverter = new de.cismet.cids...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); sqlDateToUtilDateConverter = new de.cismet.cids.editors.converters.SqlDateToUtilDateConverter(); sqlDateToStringConverter = new de.cismet.cids...
diff --git a/src/com/slidellrobotics/reboundrumble/Main.java b/src/com/slidellrobotics/reboundrumble/Main.java index 16d39b7..de6c5e0 100644 --- a/src/com/slidellrobotics/reboundrumble/Main.java +++ b/src/com/slidellrobotics/reboundrumble/Main.java @@ -1,76 +1,76 @@ /*--------------------------------------------------...
false
true
public void robotInit() { // instantiate the command used for the autonomous period //autonomousCommand = new ExampleCommand(); // Initialize all subsystems CommandBase.init(); SmartDashboard.putData(Scheduler.getInstance()); cc = new CriteriaCollection(); ...
public void robotInit() { // instantiate the command used for the autonomous period //autonomousCommand = new ExampleCommand(); // Initialize all subsystems CommandBase.init(); SmartDashboard.putData(Scheduler.getInstance()); cc = new CriteriaCollection(); ...
diff --git a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/EmployeeLeavesManagement.java b/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/EmployeeLeavesManagement.java index eaacac99..fc529e0c 100644 --- a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/Employ...
true
true
protected Map<String, Object> prepareParametersForLeavePrintout() throws NoSuchAlgorithmException, UnsupportedEncodingException { if (employeeLeaveHome.isManaged()) { Employee employee = getEntityManager().merge(employeeHome.getInstance()); EmployeeLeave leave = employeeLeaveHome.ge...
protected Map<String, Object> prepareParametersForLeavePrintout() throws NoSuchAlgorithmException, UnsupportedEncodingException { if (employeeLeaveHome.isManaged()) { Employee employee = getEntityManager().merge(employeeHome.getInstance()); EmployeeLeave leave = employeeLeaveHome.ge...
diff --git a/src/java/axiom/objectmodel/dom/UrlAnalyzer.java b/src/java/axiom/objectmodel/dom/UrlAnalyzer.java index 930d7c7..31d126e 100644 --- a/src/java/axiom/objectmodel/dom/UrlAnalyzer.java +++ b/src/java/axiom/objectmodel/dom/UrlAnalyzer.java @@ -1,59 +1,61 @@ package axiom.objectmodel.dom; import java.io.IOE...
false
true
public TokenStream tokenStream(String fieldName, final Reader reader) { return new TokenStream() { private final Pattern stripTokens = Pattern.compile("^(http:/|www|com|org|net)"); private final Pattern endTokens = Pattern.compile("(\\.|/|-|_|\\?)$"); private boolean done = false; ...
public TokenStream tokenStream(String fieldName, final Reader reader) { return new TokenStream() { private final Pattern stripTokens = Pattern.compile("^(http:/|www|com|org|net)"); private final Pattern endTokens = Pattern.compile("(\\.|/|-|_|\\?)$"); private boolean done = false; ...
diff --git a/core/src/main/java/org/kohsuke/stapler/jsr269/QueryParameterAnnotationProcessor.java b/core/src/main/java/org/kohsuke/stapler/jsr269/QueryParameterAnnotationProcessor.java index 628371865..df7de2509 100644 --- a/core/src/main/java/org/kohsuke/stapler/jsr269/QueryParameterAnnotationProcessor.java +++ b/core...
true
true
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { try { Set<? extends Element> params = roundEnv.getElementsAnnotatedWith(QueryParameter.class); Set<ExecutableElement> methods = new HashSet<ExecutableElement>(); for (Element p : ...
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { try { Set<? extends Element> params = roundEnv.getElementsAnnotatedWith(QueryParameter.class); Set<ExecutableElement> methods = new HashSet<ExecutableElement>(); for (Element p : ...
diff --git a/src/org/objectweb/proactive/examples/nbody/barneshut/Domain.java b/src/org/objectweb/proactive/examples/nbody/barneshut/Domain.java index 9a8df9c74..d6a645d64 100644 --- a/src/org/objectweb/proactive/examples/nbody/barneshut/Domain.java +++ b/src/org/objectweb/proactive/examples/nbody/barneshut/Domain.java...
true
true
public void moveAndDraw() { this.maestro.notifyFinished(this.identification, this.rock); this.moveBody(); if (this.display == null) { // if no display, only the first Domain outputs message to say recompute is going on if (this.identification == 0) { logger.info...
public void moveAndDraw() { this.maestro.notifyFinished(this.identification, this.rock); this.moveBody(); if (this.display == null) { // if no display, only the first Domain outputs message to say recompute is going on if (this.identification == 0) { logger.info...
diff --git a/ratpack-groovy/src/main/java/ratpack/groovy/templating/internal/TemplateCompiler.java b/ratpack-groovy/src/main/java/ratpack/groovy/templating/internal/TemplateCompiler.java index ef4827c4e..6bb8eb8a6 100644 --- a/ratpack-groovy/src/main/java/ratpack/groovy/templating/internal/TemplateCompiler.java +++ b/r...
true
true
public CompiledTemplate compile(ByteBuf templateSource, String name) throws CompilationFailedException, IOException { ByteBuf scriptSource = byteBufAllocator.buffer(templateSource.capacity()); parser.parse(templateSource, scriptSource); String scriptSourceString = scriptSource.toString(CharsetUtil.UTF_8)...
public CompiledTemplate compile(ByteBuf templateSource, String name) throws CompilationFailedException, IOException { ByteBuf scriptSource = byteBufAllocator.buffer(templateSource.capacity()); parser.parse(templateSource, scriptSource); String scriptSourceString = scriptSource.toString(CharsetUtil.UTF_8)...
diff --git a/src/de/anormalmedia/vividswinganimations/bounds/BoundsAnimation.java b/src/de/anormalmedia/vividswinganimations/bounds/BoundsAnimation.java index 7789170..c1d6ef9 100644 --- a/src/de/anormalmedia/vividswinganimations/bounds/BoundsAnimation.java +++ b/src/de/anormalmedia/vividswinganimations/bounds/BoundsAn...
true
true
public void animate( long timeProgress ) { int nextX = targetBounds.x; int nextY = targetBounds.y; int nextWidth = targetBounds.width; int nextHeight = targetBounds.height; if( targetBounds.x != -1 ) { int deltaX = targetBounds.x - initialBounds.x; nex...
public void animate( long timeProgress ) { int nextX = targetBounds.x; int nextY = targetBounds.y; int nextWidth = targetBounds.width; int nextHeight = targetBounds.height; if( targetBounds.x != -1 ) { int deltaX = targetBounds.x - initialBounds.x; nex...
diff --git a/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ElementPlacer.java b/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ElementPlacer.java index c757d9ce..509e2986 100644 --- a/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/util/ElementPlacer.java +++ b/plugins/org.ecl...
true
true
public static void niceInsertBefore(WSDLElement parent, Node newChild, Node referenceChild) { boolean was = ReconciliationHelper.isUpdatingDom(parent); Element parentElement = parent.getElement(); if (parent instanceof ExtensionActivity){ parentElement = ReconciliationHelper.getExtensionActivityChildEle...
public static void niceInsertBefore(WSDLElement parent, Node newChild, Node referenceChild) { boolean was = ReconciliationHelper.isUpdatingDom(parent); Element parentElement = parent.getElement(); if (parent instanceof ExtensionActivity){ parentElement = ReconciliationHelper.getExtensionActivityChildEle...
diff --git a/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/UIAlertView.java b/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/UIAlertView.java index 92ed2401..d2881107 100644 --- a/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/UIAlertView.java +++ b/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/UIAlertView.java @...
false
true
private void doLayout() { int x; int y; int width; int height; // Compute AlertView's boundary if (buttons.size() != 2) { width = 2 * FRAME_SIZE + 2 * INSETS + FULL_BUTTON_WIDTH; height = 2 * FRAME_SIZE + LABEL_INSETS + buttons.size() * INSETS...
private void doLayout() { int x; int y; int width; int height; // Compute AlertView's boundary if (buttons.size() != 2) { width = 2 * FRAME_SIZE + 2 * INSETS + FULL_BUTTON_WIDTH; height = 2 * FRAME_SIZE + LABEL_INSETS + buttons.size() * INSETS...
diff --git a/src/main/ed/appserver/URLFixer.java b/src/main/ed/appserver/URLFixer.java index 80f013c7b..0e6639e8d 100644 --- a/src/main/ed/appserver/URLFixer.java +++ b/src/main/ed/appserver/URLFixer.java @@ -1,203 +1,206 @@ // URLFixer.java /** * Copyright (C) 2008 10gen Inc. * * This program is free so...
false
true
public void fix( String url , Appendable a ){ if ( url == null ) return; if ( url.length() == 0 ) return; // parse out options boolean nocdn = false; boolean forcecdn = false; if ( url.startsWith(...
public void fix( String url , Appendable a ){ if ( url == null ) return; if ( url.length() == 0 ) return; // parse out options boolean nocdn = false; boolean forcecdn = false; if ( url.startsWith(...
diff --git a/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AsynchronousPolicyGetter.java b/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AsynchronousPolicyGetter.java index 538be47..24ac77a 100644 --- a/ajax-components/src...
false
true
public void onResponseReceived(final Request request, final Response response) { Element rootElement = XMLParser.parse(response.getText()).getDocumentElement(); //Window.alert("Root element: " + rootElement.getTagName()); // Get use-inherited-policies attribute String useInheritedPoliciesS...
public void onResponseReceived(final Request request, final Response response) { Element rootElement = XMLParser.parse(response.getText()).getDocumentElement(); //Window.alert("Root element: " + rootElement.getTagName()); // Get use-inherited-policies attribute String useInheritedPoliciesS...
diff --git a/src/org/vamp/util/blur/gaussian/GaussianBlurRenderFrameForkJoin.java b/src/org/vamp/util/blur/gaussian/GaussianBlurRenderFrameForkJoin.java index f226dc9..1510717 100644 --- a/src/org/vamp/util/blur/gaussian/GaussianBlurRenderFrameForkJoin.java +++ b/src/org/vamp/util/blur/gaussian/GaussianBlurRenderFrameF...
true
true
public static float[] makeKernel(final int pRadius) { final float sigma = pRadius / 3; final float sigmaSquared2 = 2 * sigma * sigma; final float sqrtSigmaPi2 = (float) Math.sqrt(2 * Math.PI * sigma); final float radiusSquared = pRadius * pRadius; final int rowCount = (pRadius * 2) + 1; final float[] kern...
public static float[] makeKernel(final int pRadius) { final float sigma = pRadius / 3f; final float sigmaSquared2 = 2 * sigma * sigma; final float sqrtSigmaPi2 = (float) Math.sqrt(2 * Math.PI * sigma); final float radiusSquared = pRadius * pRadius; final int rowCount = (pRadius * 2) + 1; final float[] ker...
diff --git a/src/com/dmdirc/logger/Logger.java b/src/com/dmdirc/logger/Logger.java index 4e0e1a2e8..be4ffe067 100644 --- a/src/com/dmdirc/logger/Logger.java +++ b/src/com/dmdirc/logger/Logger.java @@ -1,197 +1,200 @@ /* * Copyright (c) 2006-2007 Chris Smith, Shane Mc Cormack, Gregory Holmes * * Permission is her...
false
true
private static synchronized OutputStream createNewErrorFile(final ProgramError error) { if (errorDir == null) { errorDir = new File(Config.getConfigDir() + "errors"); if (!errorDir.exists()) { errorDir.mkdirs(); } } final File erro...
private static synchronized OutputStream createNewErrorFile(final ProgramError error) { if (errorDir == null) { errorDir = new File(Config.getConfigDir() + "errors"); if (!errorDir.exists()) { errorDir.mkdirs(); } } final File erro...
diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/util/PluginBrokerTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/util/PluginBrokerTest.java index 940b57652..13c03c3e5 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/util/PluginBrokerTest.java +++ b/activemq-core...
false
true
protected void assertMessageValid(int index, Message message) throws JMSException { // check if broker path has been set assertEquals("localhost", message.getStringProperty("BrokerPath")); ActiveMQMessage amqMsg = (ActiveMQMessage)message; if (index == 7) { // check custom expiration assertEquals(200...
protected void assertMessageValid(int index, Message message) throws JMSException { // check if broker path has been set assertEquals("localhost", message.getStringProperty("BrokerPath")); ActiveMQMessage amqMsg = (ActiveMQMessage)message; if (index == 7) { // check custom expiration assertTrue("expi...
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/viewframework/builder/SimpleLayout.java b/gui/src/main/java/org/jboss/as/console/client/shared/viewframework/builder/SimpleLayout.java index 417ad074..e522211e 100644 --- a/gui/src/main/java/org/jboss/as/console/client/shared/viewframework/builder/Simple...
true
true
public Widget build() { layout = new LayoutPanel(); layout.setStyleName("fill-layout"); FakeTabPanel titleBar = null; if(!isPlain) { titleBar = new FakeTabPanel(title); layout.add(titleBar); } if(this.toolStrip !=null) { ...
public Widget build() { layout = new LayoutPanel(); layout.setStyleName("fill-layout"); FakeTabPanel titleBar = null; if(!isPlain) { titleBar = new FakeTabPanel(title); layout.add(titleBar); } if(this.toolStrip !=null) { ...
diff --git a/src/main/java/net/pms/network/RequestV2.java b/src/main/java/net/pms/network/RequestV2.java index 453a64cd2..a88ad195c 100644 --- a/src/main/java/net/pms/network/RequestV2.java +++ b/src/main/java/net/pms/network/RequestV2.java @@ -1,964 +1,964 @@ /* * PS3 Media Server, for streaming any medias to your ...
false
true
public ChannelFuture answer( HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate ) throws IOException { ChannelFuture future = null; long CLoverride = -2; // 0 and above are valid Content-Length values, -1 means omit StringBuilder response ...
public ChannelFuture answer( HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate ) throws IOException { ChannelFuture future = null; long CLoverride = -2; // 0 and above are valid Content-Length values, -1 means omit StringBuilder response ...
diff --git a/src/org/daxplore/presenter/server/servlets/AdminPanelServlet.java b/src/org/daxplore/presenter/server/servlets/AdminPanelServlet.java index 8ff895d..8dac209 100644 --- a/src/org/daxplore/presenter/server/servlets/AdminPanelServlet.java +++ b/src/org/daxplore/presenter/server/servlets/AdminPanelServlet.java...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) { try { Locale locale = new Locale("en"); String pageTitle = "Daxplore Admin"; if (adminHtmlTemplate == null) { try { adminHtmlTemplate = IOUtils.toString(getServletContext().getResourceAsStream("/templates/adm...
protected void doGet(HttpServletRequest request, HttpServletResponse response) { try { Locale locale = new Locale("en"); String pageTitle = "Daxplore Admin"; if (adminHtmlTemplate == null) { try { adminHtmlTemplate = IOUtils.toString(getServletContext().getResourceAsStream("/templates/adm...
diff --git a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/UI/Adapters/ResultNodeAdapter.java b/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/UI/Adapters/ResultNodeAdapter.java index 112d7f3..cb53744 100644 --- a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/UI/Adapters/ResultNodeAda...
true
true
public View getView(int position, View convertView, ViewGroup parent) { TextView item = convertView == null ? (TextView) LayoutInflater.from(getContext()).inflate(R.layout.list_item, null) : (TextView) convertView; ResultNode node = getItem(position); String txt = ""; for (Map.Entry<String, String> e : node....
public View getView(int position, View convertView, ViewGroup parent) { TextView item = convertView == null ? (TextView) LayoutInflater.from(getContext()).inflate(R.layout.list_item, null) : (TextView) convertView; ResultNode node = getItem(position); String txt = ""; for (Map.Entry<String, String> e : node....
diff --git a/src/main/java/ca/mcpnet/RailDriver/RailDriverTask.java b/src/main/java/ca/mcpnet/RailDriver/RailDriverTask.java index 3da80f3..cf27f1a 100644 --- a/src/main/java/ca/mcpnet/RailDriver/RailDriverTask.java +++ b/src/main/java/ca/mcpnet/RailDriver/RailDriverTask.java @@ -1,529 +1,533 @@ package ca.mcpnet.Rail...
false
true
private boolean advance() { // Check to make sure ground under is solid for (int lx = 0; lx < 3; lx++) { for (int lz = 0; lz < RailDriver.raildriverblocklist[lx][0].length; lz++) { Block block = getRelativeBlock(lz,lx,-1); if (block.isEmpty() || block.isLiquid()) { localbroadcast("Raildriver encoun...
private boolean advance() { // Check to make sure ground under is solid for (int lx = 0; lx < 3; lx++) { for (int lz = 0; lz < RailDriver.raildriverblocklist[lx][0].length; lz++) { Block block = getRelativeBlock(lz,lx,-1); if (block.isEmpty() || block.isLiquid()) { localbroadcast("Raildriver encoun...
diff --git a/LaTeXDraw/src/net/sf/latexdraw/mapping/ShapeList2ViewListMapping.java b/LaTeXDraw/src/net/sf/latexdraw/mapping/ShapeList2ViewListMapping.java index 07ee8b98..ddcdd4e9 100644 --- a/LaTeXDraw/src/net/sf/latexdraw/mapping/ShapeList2ViewListMapping.java +++ b/LaTeXDraw/src/net/sf/latexdraw/mapping/ShapeList2Vi...
false
true
public void onObjectAdded(final Object list, final Object object, final int index) { super.onObjectAdded(list, object, index); if(object instanceof IShape) { MappingRegistry.REGISTRY.addMapping(new Shape2ViewMapping((IShape)object, index==-1 ? target.get(target.size()-1) : target.get(index))); // If the sh...
public void onObjectAdded(final Object list, final Object object, final int index) { super.onObjectAdded(list, object, index); if(object instanceof IShape) { final IViewShape view = index==-1 ? target.get(target.size()-1) : target.get(index); MappingRegistry.REGISTRY.addMapping(new Shape2ViewMapping((IShape...
diff --git a/BitCrusher/src/com/noisepages/nettoyeur/bitcrusher/MainActivity.java b/BitCrusher/src/com/noisepages/nettoyeur/bitcrusher/MainActivity.java index 6d7215c..606755d 100644 --- a/BitCrusher/src/com/noisepages/nettoyeur/bitcrusher/MainActivity.java +++ b/BitCrusher/src/com/noisepages/nettoyeur/bitcrusher/MainA...
true
true
protected void onStart() { super.onStart(); try { if (Build.VERSION.SDK_INT >= 17) { createBitCrusher(); } else { createBitCrusherDefault(); } setCrush(crushBar.getProgress()); if (playSwitch.isChecked()) { bitCrusher.start(); } } catch (IOException e) { throw new RuntimeExceptio...
protected void onStart() { super.onStart(); try { bitCrusher = (Build.VERSION.SDK_INT >= 17) ? createBitCrusher() : createBitCrusherDefault(); setCrush(crushBar.getProgress()); if (playSwitch.isChecked()) { bitCrusher.start(); } } catch (IOException e) { throw new RuntimeException(e); ...
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/PluginStarter.java b/apps/routerconsole/java/src/net/i2p/router/web/PluginStarter.java index f6aa9adb4..7c7c11b47 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/PluginStarter.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/PluginStarter....
true
true
static boolean startPlugin(RouterContext ctx, String appName) throws Exception { Log log = ctx.logManager().getLog(PluginStarter.class); File pluginDir = new File(ctx.getAppDir(), PluginUpdateHandler.PLUGIN_DIR + '/' + appName); if ((!pluginDir.exists()) || (!pluginDir.isDirectory())) { ...
static boolean startPlugin(RouterContext ctx, String appName) throws Exception { Log log = ctx.logManager().getLog(PluginStarter.class); File pluginDir = new File(ctx.getAppDir(), PluginUpdateHandler.PLUGIN_DIR + '/' + appName); if ((!pluginDir.exists()) || (!pluginDir.isDirectory())) { ...
diff --git a/jkit/java/stages/InnerClassRewrite.java b/jkit/java/stages/InnerClassRewrite.java index f1080c6..acc8fce 100755 --- a/jkit/java/stages/InnerClassRewrite.java +++ b/jkit/java/stages/InnerClassRewrite.java @@ -1,953 +1,954 @@ package jkit.java.stages; import static jkit.compiler.SyntaxError.syntax_error;...
true
true
protected Expr doAssignment(Stmt.Assignment def) { // first, do the right-hand side def.setRhs(doExpression(def.rhs())); // second, so the left-hand side. if(def.lhs() instanceof Expr.Deref) { Expr.Deref e = (Expr.Deref) def.lhs(); Type tmp = (Type) e.target().attribute(Type.class); if(...
protected Expr doAssignment(Stmt.Assignment def) { // first, do the right-hand side def.setRhs(doExpression(def.rhs())); // second, so the left-hand side. if(def.lhs() instanceof Expr.Deref) { Expr.Deref e = (Expr.Deref) def.lhs(); Type tmp = (Type) e.target().attribute(Type.class); if(...
diff --git a/src/com/dmdirc/ui/textpane/TextPaneCanvas.java b/src/com/dmdirc/ui/textpane/TextPaneCanvas.java index cb013637b..adee23dc9 100644 --- a/src/com/dmdirc/ui/textpane/TextPaneCanvas.java +++ b/src/com/dmdirc/ui/textpane/TextPaneCanvas.java @@ -1,498 +1,496 @@ /* * Copyright (c) 2006-2007 Chris Smith, Shane ...
false
true
public void paintComponent(final Graphics g) { final Graphics2D graphics2D = (Graphics2D) g; final float formatWidth = getWidth(); final float formatHeight = getHeight(); g.setColor(textPane.getBackground()); g.fillRect(0, 0, (int) formatWidth, (int) formatH...
public void paintComponent(final Graphics g) { final Graphics2D graphics2D = (Graphics2D) g; final float formatWidth = getWidth(); final float formatHeight = getHeight(); g.setColor(textPane.getBackground()); g.fillRect(0, 0, (int) formatWidth, (int) formatH...
diff --git a/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java b/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java index d65b37318..ed573edad 100644 --- a/studio-connection-core/src/main/java/org/apache/directory/stu...
true
true
private static ConnectionParameter readConnection( Element element ) throws ConnectionIOException { ConnectionParameter connection = new ConnectionParameter(); // ID Attribute idAttribute = element.attribute( ID_TAG ); if ( idAttribute != null ) { connection....
private static ConnectionParameter readConnection( Element element ) throws ConnectionIOException { ConnectionParameter connection = new ConnectionParameter(); // ID Attribute idAttribute = element.attribute( ID_TAG ); if ( idAttribute != null ) { connection....
diff --git a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java index 1dd4118b..48f92cab 100644 --- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java +++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java @@ -1,763 +1,768 @@ /* -*- Mode: java; t...
true
true
public void put(int index, Scriptable start, Object value) { Object parent = Undefined.instance; // Convert text into XML if needed. XMLObject xmlValue; // Special-case checks for undefined and null if (value == null) { value = "null"; } else if (value instanceof Undefined) { value = "undefined"; ...
public void put(int index, Scriptable start, Object value) { Object parent = Undefined.instance; // Convert text into XML if needed. XMLObject xmlValue; // Special-case checks for undefined and null if (value == null) { value = "null"; } else if (value instanceof Undefined) { value = "undefined"; ...
diff --git a/src/com/jidesoft/swing/JideScrollPaneLayout.java b/src/com/jidesoft/swing/JideScrollPaneLayout.java index 894b8d8b..aaeabb64 100644 --- a/src/com/jidesoft/swing/JideScrollPaneLayout.java +++ b/src/com/jidesoft/swing/JideScrollPaneLayout.java @@ -1,1014 +1,1014 @@ /* * @(#)${NAME}.java * * Copyright ...
false
true
public void layoutContainer(Container parent) { /* Sync the (now obsolete) policy fields with the * JScrollPane. */ JScrollPane scrollPane = (JScrollPane) parent; vsbPolicy = scrollPane.getVerticalScrollBarPolicy(); hsbPolicy = scrollPane.getHorizontalScrollBarPolic...
public void layoutContainer(Container parent) { /* Sync the (now obsolete) policy fields with the * JScrollPane. */ JScrollPane scrollPane = (JScrollPane) parent; vsbPolicy = scrollPane.getVerticalScrollBarPolicy(); hsbPolicy = scrollPane.getHorizontalScrollBarPolic...
diff --git a/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java b/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java index 6d020ed1..f3a3b575 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java +++ b/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java @@ -1,864 +1,865 @@ /* * This file is part of SWADroid. * * ...
true
true
private void createBaseMenu() { mExpandableListView.setVisibility(View.VISIBLE); if (mExpandableListView.getAdapter() == null || currentRole == -1) { //the menu base is equal to students menu. currentRole = Constants.STUDENT_TYPE_CODE; //Order: // 1- ...
private void createBaseMenu() { mExpandableListView.setVisibility(View.VISIBLE); if (mExpandableListView.getAdapter() == null || currentRole == -1) { //the menu base is equal to students menu. currentRole = Constants.STUDENT_TYPE_CODE; //Order: // 1- ...
diff --git a/com/ngc0202/warningplugin/WarningPlugin.java b/com/ngc0202/warningplugin/WarningPlugin.java index c44eff8..c615709 100644 --- a/com/ngc0202/warningplugin/WarningPlugin.java +++ b/com/ngc0202/warningplugin/WarningPlugin.java @@ -1,138 +1,167 @@ package com.ngc0202.warningplugin; import java.io.File; im...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { warns.load(); if (commandLabel.equalsIgnoreCase("warnen")) { if (args.length == 0) { return false; } Player ply; if (args[0].equalsIgnoreC...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { warns.load(); if (commandLabel.equalsIgnoreCase("warnen")) { if (args.length == 0) { return false; } if (sender.hasPermission("WarningPlugin.warnen"))...
diff --git a/liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateIndexGenerator.java b/liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateIndexGenerator.java index ae4f0f5f..9a60ced2 100644 --- a/liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateIndexGenerator.java +++ b/liquibase-co...
true
true
public Sql[] generateSql(CreateIndexStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { StringBuffer buffer = new StringBuffer(); buffer.append("CREATE "); if (statement.isUnique() != null && statement.isUnique()) { buffer.append("UNIQUE "); } ...
public Sql[] generateSql(CreateIndexStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) { StringBuffer buffer = new StringBuffer(); buffer.append("CREATE "); if (statement.isUnique() != null && statement.isUnique()) { buffer.append("UNIQUE "); } ...
diff --git a/deegree-services/src/main/java/org/deegree/services/wfs/GetFeatureHandler.java b/deegree-services/src/main/java/org/deegree/services/wfs/GetFeatureHandler.java index 21c591dcba..47a7388e0c 100644 --- a/deegree-services/src/main/java/org/deegree/services/wfs/GetFeatureHandler.java +++ b/deegree-services/src...
true
true
private void writeFeatureMembersCached( Version wfsVersion, XMLStreamWriter xmlStream, GetFeatureAnalyzer analyzer, GMLVersion outputFormat, String xLinkTemplate, int traverseXLinkDepth, int traverseXLinkExpiry, int maxFeatures ...
private void writeFeatureMembersCached( Version wfsVersion, XMLStreamWriter xmlStream, GetFeatureAnalyzer analyzer, GMLVersion outputFormat, String xLinkTemplate, int traverseXLinkDepth, int traverseXLinkExpiry, int maxFeatures ...
diff --git a/src/com/github/kaitoyuuki/MagicArrows/BowListener.java b/src/com/github/kaitoyuuki/MagicArrows/BowListener.java index b2730ef..1b5878a 100644 --- a/src/com/github/kaitoyuuki/MagicArrows/BowListener.java +++ b/src/com/github/kaitoyuuki/MagicArrows/BowListener.java @@ -1,377 +1,376 @@ package com.github.kai...
false
true
public void onArrowHit(ProjectileHitEvent event) { Projectile projectile = (Projectile) event.getEntity(); Location loc = projectile.getLocation(); Block block = loc.getBlock(); Entity shooter = projectile.getShooter(); Player player = null; List<Integer> hotslots = new ArrayList<Integer>(); World world ...
public void onArrowHit(ProjectileHitEvent event) { Projectile projectile = (Projectile) event.getEntity(); Location loc = projectile.getLocation(); Block block = loc.getBlock(); Entity shooter = projectile.getShooter(); Player player = null; World world = projectile.getWorld(); for (Player pcheck : Bukki...
diff --git a/atlassian-plugins-refimpl/src/main/java/com/atlassian/plugin/refimpl/ContainerManager.java b/atlassian-plugins-refimpl/src/main/java/com/atlassian/plugin/refimpl/ContainerManager.java index 263bd0fd..3cac12e3 100644 --- a/atlassian-plugins-refimpl/src/main/java/com/atlassian/plugin/refimpl/ContainerManager...
true
true
public ContainerManager(ServletContext servletContext) { instance = this; webResourceIntegration = new SimpleWebResourceIntegration(servletContext); webResourceManager = new WebResourceManagerImpl(webResourceIntegration); File pluginDir = new File(servletContext.getRealPath("/WE...
public ContainerManager(ServletContext servletContext) { instance = this; webResourceIntegration = new SimpleWebResourceIntegration(servletContext); webResourceManager = new WebResourceManagerImpl(webResourceIntegration); File pluginDir = new File(servletContext.getRealPath("/WE...
diff --git a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/rest/FancyURLResponseWrapper.java b/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/rest/FancyURLResponseWrapper.java index a3010ab07..9194bca57 100644 --- a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web...
false
true
protected String rewriteUrl(String url, DocumentView docView, URLPolicyService service) throws Exception { // try to get outcome that was saved in request by // FancyNavigationHandler String newViewId = (String) request.getAttribute(URLPolicyService.POST_OUTCOME_REQUEST_KEY); ...
protected String rewriteUrl(String url, DocumentView docView, URLPolicyService service) throws Exception { // try to get outcome that was saved in request by // FancyNavigationHandler String newViewId = (String) request.getAttribute(URLPolicyService.POST_OUTCOME_REQUEST_KEY); ...
diff --git a/src/com/vloxlands/scene/SceneNewGame.java b/src/com/vloxlands/scene/SceneNewGame.java index 9c3e6ad..79cf5b0 100644 --- a/src/com/vloxlands/scene/SceneNewGame.java +++ b/src/com/vloxlands/scene/SceneNewGame.java @@ -1,108 +1,108 @@ package com.vloxlands.scene; import static org.lwjgl.opengl.GL11.*; ...
true
true
public void init() { if (!Game.client.isConnected()) Game.client.connectToServer(Game.IP); setBackground(); // setUserZone(); setTitle(Tr._("newGame")); content.add(new Container(0, 115, Display.getWidth() - TextButton.WIDTH - 90, Display.getHeight() - 220 - TextButton.HEIGHT - 30)); // lobby ...
public void init() { if (Game.client != null && !Game.client.isConnected()) Game.client.connectToServer(Game.IP); setBackground(); // setUserZone(); setTitle(Tr._("newGame")); content.add(new Container(0, 115, Display.getWidth() - TextButton.WIDTH - 90, Display.getHeight() - 220 - TextButton.HEIGHT...
diff --git a/src/main/java/org/zisist/leaderboard/LeaderboardsHandlerImpl.java b/src/main/java/org/zisist/leaderboard/LeaderboardsHandlerImpl.java index 91ef378..35cbab1 100644 --- a/src/main/java/org/zisist/leaderboard/LeaderboardsHandlerImpl.java +++ b/src/main/java/org/zisist/leaderboard/LeaderboardsHandlerImpl.java...
true
true
public final void handleLeaderboards(Configuration configuration) { LeaderboardConfiguration leaderboardConfiguration = configurationLoader.getConfiguration(configuration.getConfigurationName()); log.info(String.format("Loaded configuration %s...", leaderboardConfiguration.getName())); Map<S...
public final void handleLeaderboards(Configuration configuration) { LeaderboardConfiguration leaderboardConfiguration = configurationLoader.getConfiguration(configuration.getConfigurationName()); log.info(String.format("Loaded configuration %s...", leaderboardConfiguration.getName())); Map<S...
diff --git a/src/com/davecoss/android/genericserver/GenericServer.java b/src/com/davecoss/android/genericserver/GenericServer.java index da3612d..4922c51 100644 --- a/src/com/davecoss/android/genericserver/GenericServer.java +++ b/src/com/davecoss/android/genericserver/GenericServer.java @@ -1,608 +1,609 @@ package co...
true
true
public void run() { boolean has_fatal_error = false; handler.info("GenericServer.run", "Thread Run Called"); while (!Thread.currentThread().isInterrupted() && !has_fatal_error) { try { if (this.listener == null) start_server(); handler.info("GenericServer.run", "Listening on port " + port); S...
public void run() { boolean has_fatal_error = false; handler.info("GenericServer.run", "Thread Run Called"); while (!Thread.currentThread().isInterrupted() && !has_fatal_error) { try { if (this.listener == null) start_server(); handler.info("GenericServer.run", "Listening on port " + port); S...
diff --git a/cosmo/src/main/java/org/osaf/cosmo/dao/hibernate/StandardQueryCriteriaBuilder.java b/cosmo/src/main/java/org/osaf/cosmo/dao/hibernate/StandardQueryCriteriaBuilder.java index e782b1d67..bdf1a4c08 100644 --- a/cosmo/src/main/java/org/osaf/cosmo/dao/hibernate/StandardQueryCriteriaBuilder.java +++ b/cosmo/src/...
true
true
public Criteria buildQueryCriteria(Session session, PageCriteria<SortType> pageCriteria) { Criteria crit = session.createCriteria(clazz); // If page size is -1, that means get all users if(pageCriteria.getPageSize()>0) { crit.setMaxResults(...
public Criteria buildQueryCriteria(Session session, PageCriteria<SortType> pageCriteria) { Criteria crit = session.createCriteria(clazz); // If page size is -1, that means get all users if(pageCriteria.getPageSize()>0) { crit.setMaxResults(...
diff --git a/src/main/java/ditl/graphs/NS2Movement.java b/src/main/java/ditl/graphs/NS2Movement.java index 9bf6a0c..3c033e4 100644 --- a/src/main/java/ditl/graphs/NS2Movement.java +++ b/src/main/java/ditl/graphs/NS2Movement.java @@ -1,150 +1,150 @@ /*********************************************************************...
true
true
public static void fromNS2(MovementTrace movement, InputStream in, Long maxTime, double timeMul, long ticsPerSecond, long offset, final boolean fixPauseTimes, IdGenerator idGen) throws IOException { final StatefulWriter<MovementEvent, Movement> movementWriter = movement.getWriter();...
public static void fromNS2(MovementTrace movement, InputStream in, Long maxTime, double timeMul, long ticsPerSecond, long offset, final boolean fixPauseTimes, IdGenerator idGen) throws IOException { final StatefulWriter<MovementEvent, Movement> movementWriter = movement.getWriter();...
diff --git a/src/main/java/com/dianping/wizard/widget/concurrent/Executor.java b/src/main/java/com/dianping/wizard/widget/concurrent/Executor.java index 2c09a23..4927449 100644 --- a/src/main/java/com/dianping/wizard/widget/concurrent/Executor.java +++ b/src/main/java/com/dianping/wizard/widget/concurrent/Executor.java...
true
true
public void init() { int corePoolSize= Configuration.get("concurrent.threadPool.corePoolSize",50,Integer.class); int maximumPoolSize= Configuration.get("concurrent.threadPool.maximumPoolSize",50,Integer.class); int keepAliveTime= Configuration.get("concurrent.threadPool.keepAliveTime",00,Int...
public void init() { int corePoolSize= Configuration.get("concurrent.threadPool.corePoolSize",50,Integer.class); int maximumPoolSize= Configuration.get("concurrent.threadPool.maximumPoolSize",50,Integer.class); int keepAliveTime= Configuration.get("concurrent.threadPool.keepAliveTime",0,Inte...
diff --git a/src/com/jme/image/Texture.java b/src/com/jme/image/Texture.java index 878e764e6..42747e13f 100644 --- a/src/com/jme/image/Texture.java +++ b/src/com/jme/image/Texture.java @@ -1,1598 +1,1600 @@ /* * Copyright (c) 2003-2009 jMonkeyEngine * All rights reserved. * * Redistribution and use in source a...
true
true
public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof Texture)) { return false; } Texture that = (Texture) other; if (this.textureId != that.textureId) return false; if (th...
public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof Texture)) { return false; } Texture that = (Texture) other; if (this.textureId != that.textureId) return false; if (th...
diff --git a/modules/dar/src/main/java/org/cipango/dar/DefaultApplicationRouter.java b/modules/dar/src/main/java/org/cipango/dar/DefaultApplicationRouter.java index 03255a2..ab38eab 100644 --- a/modules/dar/src/main/java/org/cipango/dar/DefaultApplicationRouter.java +++ b/modules/dar/src/main/java/org/cipango/dar/Defau...
false
true
public SipApplicationRouterInfo getNextApplication(SipServletRequest initialRequest, SipApplicationRoutingRegion region, SipApplicationRoutingDirective directive, SipTargetedRequestInfo toto, Serializable stateInfo) { if (!_matchOnNewOutgoingRequests && initialRequest.getInitialRemoteAddr() == null) return nu...
public SipApplicationRouterInfo getNextApplication(SipServletRequest initialRequest, SipApplicationRoutingRegion region, SipApplicationRoutingDirective directive, SipTargetedRequestInfo toto, Serializable stateInfo) { if (!_matchOnNewOutgoingRequests && initialRequest.getInitialRemoteAddr() == null) return nu...
diff --git a/maven-project/src/main/java/org/apache/maven/project/builder/ArtifactModelContainerFactory.java b/maven-project/src/main/java/org/apache/maven/project/builder/ArtifactModelContainerFactory.java index 31c1a7d73..6eca64094 100644 --- a/maven-project/src/main/java/org/apache/maven/project/builder/ArtifactMode...
false
true
private ArtifactModelContainer( List<ModelProperty> properties ) { this.properties = new ArrayList<ModelProperty>( properties ); this.properties = Collections.unmodifiableList( this.properties ); String uri = findBaseUriFrom( this.properties ); for ( Mode...
private ArtifactModelContainer( List<ModelProperty> properties ) { this.properties = new ArrayList<ModelProperty>( properties ); this.properties = Collections.unmodifiableList( this.properties ); String uri = findBaseUriFrom( this.properties ); for ( Mode...
diff --git a/editor/src/main/java/com/nebula2d/editor/ui/MainFrame.java b/editor/src/main/java/com/nebula2d/editor/ui/MainFrame.java index 21e7dbe..6aab365 100644 --- a/editor/src/main/java/com/nebula2d/editor/ui/MainFrame.java +++ b/editor/src/main/java/com/nebula2d/editor/ui/MainFrame.java @@ -1,107 +1,107 @@ /* *...
false
true
public MainFrame() { super("Nebula2D"); instance = this; setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); JScrollPane sp = new JScrollPane(sceneGraph); sp.setPreferredSize(new Dimension(300, 600)); getContentPane().add(toolbar, BorderLayout.NORTH); ...
public MainFrame() { super("Nebula2D"); instance = this; setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); JScrollPane sp = new JScrollPane(sceneGraph); sp.setPreferredSize(new Dimension(300, 600)); getContentPane().add(toolbar, BorderLayout.NORTH); ge...
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/actions/AbstractApplyMylarAction.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/actions/AbstractApplyMylarAction.java index 68d0f2280..f70db02f0 100644 --- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/...
false
true
protected boolean installInterestFilter(StructuredViewer viewer) { try { if (viewer != null) { boolean found = false; for (int i = 0; i < viewer.getFilters().length; i++) { ViewerFilter viewerFilter = viewer.getFilters()[i]; if (viewerFilter instanceof InterestFilter) found = true; } ...
protected boolean installInterestFilter(StructuredViewer viewer) { try { if (viewer != null) { boolean found = false; for (int i = 0; i < viewer.getFilters().length; i++) { ViewerFilter viewerFilter = viewer.getFilters()[i]; if (viewerFilter instanceof InterestFilter) { found = true; ...
diff --git a/src/main/java/views/gui/components/LimitedDocument.java b/src/main/java/views/gui/components/LimitedDocument.java index eb6d59a..c247e3b 100644 --- a/src/main/java/views/gui/components/LimitedDocument.java +++ b/src/main/java/views/gui/components/LimitedDocument.java @@ -1,21 +1,23 @@ package views.gui.co...
false
true
public void insertString(int offs, String str, AttributeSet attr) throws BadLocationException { if(str == null || getLength() + str.length() > limit) return; super.insertString(offs, str, attr); }
public void insertString(int offs, String str, AttributeSet attr) throws BadLocationException { if(str == null) return; if(getLength() + str.length() > limit) str = str.substring(0, limit-getLength()); super.insertString(offs, str, attr); }
diff --git a/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java b/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java index f1392b4cb..1043b7cb2 100644 --- a/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.jav...
true
true
public static TokenStream getTokenStream(TermPositionVector tpv, boolean tokenPositionsGuaranteedContiguous) { if (!tokenPositionsGuaranteedContiguous && tpv.getTermPositions(0) != null) { return new TokenStreamFromTermPositionVector(tpv); } // an object used to iterate across an array of tok...
public static TokenStream getTokenStream(TermPositionVector tpv, boolean tokenPositionsGuaranteedContiguous) { if (!tokenPositionsGuaranteedContiguous && tpv.getTermPositions(0) != null) { return new TokenStreamFromTermPositionVector(tpv); } // an object used to iterate across an array of tok...
diff --git a/common/src/main/java/com/redhat/qe/jon/common/util/AS7SSHClient.java b/common/src/main/java/com/redhat/qe/jon/common/util/AS7SSHClient.java index 8b21e30d..abc06ec6 100644 --- a/common/src/main/java/com/redhat/qe/jon/common/util/AS7SSHClient.java +++ b/common/src/main/java/com/redhat/qe/jon/common/util/AS7...
true
true
public Date getStartupTime(String logFile) { String dateStringFilteringCommand = ""; if (logFile.endsWith("server.log")) { dateStringFilteringCommand += "grep '\\[org\\.jboss\\.modules\\]' " +asHome+"/"+logFile +" | tail -n -1 | awk -F , '{print $1}'"; } else { dateStri...
public Date getStartupTime(String logFile) { String dateStringFilteringCommand = ""; if (logFile.endsWith("server.log")) { dateStringFilteringCommand += "grep '\\[org\\.jboss\\.modules\\]' " +asHome+"/"+logFile +" | tail -1 | awk -F , '{print $1}'"; } else { dateStringF...
diff --git a/src/main/java/hu/sztaki/ilab/longneck/dns/ReverseDns.java b/src/main/java/hu/sztaki/ilab/longneck/dns/ReverseDns.java index 14f631a..b0c7dd3 100644 --- a/src/main/java/hu/sztaki/ilab/longneck/dns/ReverseDns.java +++ b/src/main/java/hu/sztaki/ilab/longneck/dns/ReverseDns.java @@ -1,151 +1,151 @@ package hu...
true
true
public void apply(final Record record, VariableSpace variables) throws CheckError { // Get thread-local lookup service if (lookupService == null) { lookupService = lookupServiceFactory.getLookupService(); } try { String ipAddr = BlockUtils.getValue(IPFIELD, ...
public void apply(final Record record, VariableSpace variables) throws CheckError { // Get thread-local lookup service if (lookupService == null) { lookupService = lookupServiceFactory.getLookupService(); } try { String ipAddr = BlockUtils.getValue(IPFIELD, ...
diff --git a/src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetcher.java b/src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetcher.java index 5f43f4b..d3866ec 100644 --- a/src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetcher.java +++ b/src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetcher.java @@ -1,295 +1,295 @@...
false
true
public PageFetchResult fetchHeader(WebURL webUrl) { PageFetchResult fetchResult = new PageFetchResult(); String toFetchURL = webUrl.getURL(); HttpGet get = null; try { get = new HttpGet(toFetchURL); synchronized (mutex) { long now = (new Date()).getTime(); if (now - lastFetchTime < config.getPoli...
public PageFetchResult fetchHeader(WebURL webUrl) { PageFetchResult fetchResult = new PageFetchResult(); String toFetchURL = webUrl.getURL(); HttpGet get = null; try { get = new HttpGet(toFetchURL); synchronized (mutex) { long now = (new Date()).getTime(); if (now - lastFetchTime < config.getPoli...
diff --git a/src/main/java/Commands/regalowl/hyperconomy/Browseshop.java b/src/main/java/Commands/regalowl/hyperconomy/Browseshop.java index e781357..34aca56 100644 --- a/src/main/java/Commands/regalowl/hyperconomy/Browseshop.java +++ b/src/main/java/Commands/regalowl/hyperconomy/Browseshop.java @@ -1,129 +1,129 @@ pa...
false
true
Browseshop(String args[], CommandSender sender, Player player, String playerecon) { HyperConomy hc = HyperConomy.hc; ShopFactory s = hc.getShopFactory(); DataHandler sf = hc.getDataFunctions(); Calculation calc = hc.getCalculation(); LanguageFile L = hc.getLanguageFile(); ArrayList<String> aargs = new Arra...
Browseshop(String args[], CommandSender sender, Player player, String playerecon) { HyperConomy hc = HyperConomy.hc; ShopFactory s = hc.getShopFactory(); DataHandler sf = hc.getDataFunctions(); Calculation calc = hc.getCalculation(); LanguageFile L = hc.getLanguageFile(); ArrayList<String> aargs = new Arra...
diff --git a/src/java/org/jdesktop/swingx/graphics/BlendComposite.java b/src/java/org/jdesktop/swingx/graphics/BlendComposite.java index f78286a9..c33859dd 100644 --- a/src/java/org/jdesktop/swingx/graphics/BlendComposite.java +++ b/src/java/org/jdesktop/swingx/graphics/BlendComposite.java @@ -1,818 +1,818 @@ /* * $...
true
true
public static Blender getBlenderFor(BlendComposite composite) { switch (composite.getMode()) { case ADD: return new Blender() { @Override public void blend(int[] src, int[] dst, int[] result) { ...
public static Blender getBlenderFor(BlendComposite composite) { switch (composite.getMode()) { case ADD: return new Blender() { @Override public void blend(int[] src, int[] dst, int[] result) { ...
diff --git a/src/main/java/com/hubspot/dropwizard/guice/GuiceBundle.java b/src/main/java/com/hubspot/dropwizard/guice/GuiceBundle.java index 34c2d55..3e884bf 100644 --- a/src/main/java/com/hubspot/dropwizard/guice/GuiceBundle.java +++ b/src/main/java/com/hubspot/dropwizard/guice/GuiceBundle.java @@ -1,118 +1,118 @@ pa...
false
true
public void run(final T configuration, final Environment environment) { container.setResourceConfig(environment.jersey().getResourceConfig()); container.getServletContext().addFilter("Guice Filter", GuiceFilter.class); environment.jersey().replace(new Function<ResourceConfig, ServletContaine...
public void run(final T configuration, final Environment environment) { container.setResourceConfig(environment.jersey().getResourceConfig()); environment.jersey().replace(new Function<ResourceConfig, ServletContainer>() { @Nullable @Override public ServletContain...
diff --git a/src/haven/Material.java b/src/haven/Material.java index 14156f28..ee9c29a7 100644 --- a/src/haven/Material.java +++ b/src/haven/Material.java @@ -1,262 +1,262 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
false
true
public Res(Resource res, byte[] buf) { res.super(); id = Utils.uint16d(buf, 0); int[] off = {2}; while(off[0] < buf.length) { String thing = Utils.strd(buf, off).intern(); if(thing == "col") { Color amb = col(buf, off); Color dif = col(buf, off); Color spc = col(buf, off); ...
public Res(Resource res, byte[] buf) { res.super(); id = Utils.uint16d(buf, 0); int[] off = {2}; while(off[0] < buf.length) { String thing = Utils.strd(buf, off).intern(); if(thing == "col") { Color amb = col(buf, off); Color dif = col(buf, off); Color spc = col(buf, off); ...
diff --git a/WEB-INF/src/edu/wustl/catissuecore/deid/DeidReport.java b/WEB-INF/src/edu/wustl/catissuecore/deid/DeidReport.java index f78924889..8bf939c48 100644 --- a/WEB-INF/src/edu/wustl/catissuecore/deid/DeidReport.java +++ b/WEB-INF/src/edu/wustl/catissuecore/deid/DeidReport.java @@ -1,238 +1,238 @@ /** * */ ...
true
true
public void run() { try { org.jdom.Document currentRequestDocument = new org.jdom.Document(new Element("Dataset")); SpecimenCollectionGroup scg=ispr.getSpecimenCollectionGroup(); Participant participant=scg.getCollectionProtocolRegistration().getParticipant(); TextContent tc=ispr.getTextContent();...
public void run() { try { org.jdom.Document currentRequestDocument = new org.jdom.Document(new Element("Dataset")); SpecimenCollectionGroup scg=ispr.getSpecimenCollectionGroup(); Participant participant=scg.getCollectionProtocolRegistration().getParticipant(); TextContent tc=ispr.getTextContent();...
diff --git a/powershell/jaxrs/src/main/java/com/redhat/rhevm/api/powershell/resource/PowerShellIsosResource.java b/powershell/jaxrs/src/main/java/com/redhat/rhevm/api/powershell/resource/PowerShellIsosResource.java index 299694d2..80c76080 100644 --- a/powershell/jaxrs/src/main/java/com/redhat/rhevm/api/powershell/reso...
false
true
public Isos list() { StringBuilder buf = new StringBuilder(); buf.append("get-isoimages"); buf.append(" -datacenterid " + PowerShellUtils.escape(dataCenterId)); Isos ret = new Isos(); for (Iso iso : PowerShellIso.parse(parser, PowerShellCmd.runCommand(getPool(), buf.toString(...
public Isos list() { StringBuilder buf = new StringBuilder(); buf.append("$d = get-datacenter " + PowerShellUtils.escape(dataCenterId)); buf.append("; "); buf.append("if ($d.status -eq \"Up\") { "); buf.append("get-isoimages"); buf.append(" -datacenterid " + PowerShel...
diff --git a/codemodel/src/com/sun/codemodel/JInvocation.java b/codemodel/src/com/sun/codemodel/JInvocation.java index 010f7158..195262bd 100644 --- a/codemodel/src/com/sun/codemodel/JInvocation.java +++ b/codemodel/src/com/sun/codemodel/JInvocation.java @@ -1,136 +1,136 @@ /* * Copyright 2004 Sun Microsystems, Inc....
false
true
public void generate(JFormatter f) { if (isConstructor && type.isArray()) { // [RESULT] new T[]{arg1,arg2,arg3,...}; f.p("new").t(type).p('{'); } else { if (isConstructor) f.p("new").t(type).p('('); else if (object != null) ...
public void generate(JFormatter f) { if (isConstructor && type.isArray()) { // [RESULT] new T[]{arg1,arg2,arg3,...}; f.p("new").g(type).p('{'); } else { if (isConstructor) f.p("new").g(type).p('('); else if (object != null) ...
diff --git a/src/main/java/com/philihp/weblabora/model/building/ForestHut.java b/src/main/java/com/philihp/weblabora/model/building/ForestHut.java index db2e6e1..f773cff 100644 --- a/src/main/java/com/philihp/weblabora/model/building/ForestHut.java +++ b/src/main/java/com/philihp/weblabora/model/building/ForestHut.java...
true
true
public void use(Board board, UsageParamCoordinates input) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); Terrain spot = player.getLandscape() .getTerrainAt(input.getCoordinate()); if (spot.getTerrainUse() != TerrainUseEnum.FOREST) throw new WeblaboraException(get...
public void use(Board board, UsageParamCoordinates input) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); Terrain spot = player.getLandscape() .getTerrainAt(input.getCoordinate()); if (spot.getTerrainUse() != TerrainUseEnum.FOREST) throw new WeblaboraException(get...
diff --git a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/version/ReadWriteVersionManager.java b/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/version/ReadWriteVersionManager.java index b60324c439..848d82870e 100644 --- a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/version/ReadWriteVersionManager.j...
true
true
public Tree checkin(@Nonnull Tree versionable) throws RepositoryException, InvalidItemStateException, UnsupportedRepositoryOperationException { if (workspaceRoot.hasPendingChanges()) { throw new InvalidItemStateException("Unable to perform checkin. " + ...
public Tree checkin(@Nonnull Tree versionable) throws RepositoryException, InvalidItemStateException, UnsupportedRepositoryOperationException { if (workspaceRoot.hasPendingChanges()) { throw new InvalidItemStateException("Unable to perform checkin. " + ...
diff --git a/app/controllers/VoteController.java b/app/controllers/VoteController.java index 459dd62..850519f 100644 --- a/app/controllers/VoteController.java +++ b/app/controllers/VoteController.java @@ -1,68 +1,68 @@ package controllers; import play.*; import play.mvc.*; import play.data.*; import views.html.*...
false
true
public static Result vote(){ if(User.getUserTypeId(User.findByUsername(request().username())) == 9) { return ok(views.html.adminVote.render(Project.findAllProject() , Criteria.all() , projectForm , ballotForm , User.findByUsername(request().username())) ...
public static Result vote(){ if(User.getUserTypeId(User.findByUsername(request().username())) == 9) { return ok(views.html.adminVote.render(Project.findAllProject() , Criteria.all() , projectForm , ballotForm , User.findByUsername(request().username())) ...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/HouseNumber.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/HouseNumber.java index e3ef3a82..5e07529a 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/HouseNumber.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/model/HouseNumber.java @@ -1,53 +1,53 @@ /*...
true
true
public int getHouseNumberCount() { if (nodeList == null) { return 0; } if (nodeList.size() > 1) { return (nodeList.size()); } return 0; }
public int getHouseNumberCount() { if (nodeList == null) { return 0; } if (nodeList.size() >= 1) { return (nodeList.size()); } return 0; }
diff --git a/src/openmap/com/bbn/openmap/gui/time/TimeSliderLayer.java b/src/openmap/com/bbn/openmap/gui/time/TimeSliderLayer.java index 0ea6e3a1..48123867 100644 --- a/src/openmap/com/bbn/openmap/gui/time/TimeSliderLayer.java +++ b/src/openmap/com/bbn/openmap/gui/time/TimeSliderLayer.java @@ -1,1042 +1,1042 @@ // ***...
true
true
public synchronized OMGraphicList getControlWidgetList(Projection proj) { Projection projection = getProjection(); OMGraphicList controlWidgetList = new OMGraphicList(); // triangle indicating center of selection ImageIcon selectionPointImage; DrawingAttributes da = new DrawingAttri...
public synchronized OMGraphicList getControlWidgetList(Projection proj) { Projection projection = getProjection(); OMGraphicList controlWidgetList = new OMGraphicList(); // triangle indicating center of selection ImageIcon selectionPointImage; DrawingAttributes da = new DrawingAttri...
diff --git a/src/main/java/org/cujau/utils/csv/CSVSymbols.java b/src/main/java/org/cujau/utils/csv/CSVSymbols.java index 6e57613..d9df5dc 100644 --- a/src/main/java/org/cujau/utils/csv/CSVSymbols.java +++ b/src/main/java/org/cujau/utils/csv/CSVSymbols.java @@ -1,61 +1,61 @@ package org.cujau.utils.csv; import java....
false
true
private void buildDefaults( Locale locale ) { separator = DEFAULT_SEPARATOR; lineSeparator = System.getProperty( "line.separator" ); // // Try to determine what the record separator should be. // DecimalFormatSymbols dfs = new DecimalFormatSymbols( locale ); ...
private void buildDefaults( Locale locale ) { separator = DEFAULT_SEPARATOR; lineSeparator = System.getProperty( "line.separator" ); // // Try to determine what the record separator should be. // DecimalFormatSymbols dfs = new DecimalFormatSymbols( locale ); ...