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/no/arcticdrakefox/wolfbot/roles/Wolf.java b/src/no/arcticdrakefox/wolfbot/roles/Wolf.java index 6f94e6e..ac1d4af 100644 --- a/src/no/arcticdrakefox/wolfbot/roles/Wolf.java +++ b/src/no/arcticdrakefox/wolfbot/roles/Wolf.java @@ -1,94 +1,98 @@ package no.arcticdrakefox.wolfbot.roles; import no.arctic...
true
true
public String nightAction(String message, PlayerList players) { if (!ill) { String[] args = message.trim().split(" ", 2); if (args[0].equals("!kill")) { if (args.length != 2) return "Correct usage: !kill <someone>"; Player target = players.getPlayer(args[1]); if (target == null) return ta...
public String nightAction(String message, PlayerList players) { if (!ill) { String[] args = message.trim().split(" ", 2); if (args[0].equals("!kill")) { if (args.length != 2) return "Correct usage: !kill <someone>"; Player target = players.getPlayer(args[1]); if (target == null) return ta...
diff --git a/vizmap-impl/impl/src/main/java/org/cytoscape/view/vizmap/internal/mappings/ContinuousMappingImpl.java b/vizmap-impl/impl/src/main/java/org/cytoscape/view/vizmap/internal/mappings/ContinuousMappingImpl.java index 42da90e27..60c7e132c 100644 --- a/vizmap-impl/impl/src/main/java/org/cytoscape/view/vizmap/inte...
true
true
private V getRangeValue(K domainValue) { if(points.isEmpty()) return null; ContinuousMappingPoint<K, V> firstPoint = points.get(0); K minDomain = firstPoint.getValue(); // if given domain value is smaller than any in our list, // return the range value for the smallest domain value we have. int firs...
private V getRangeValue(K domainValue) { if (points.isEmpty() || (domainValue instanceof Number && Double.isNaN(((Number)domainValue).doubleValue()))) return null; ContinuousMappingPoint<K, V> firstPoint = points.get(0); K minDomain = firstPoint.getValue(); // if given domain value is smaller than ...
diff --git a/srcj/com/sun/electric/tool/user/ui/PixelDrawing.java b/srcj/com/sun/electric/tool/user/ui/PixelDrawing.java index 7b45df6ee..dac88d1c0 100755 --- a/srcj/com/sun/electric/tool/user/ui/PixelDrawing.java +++ b/srcj/com/sun/electric/tool/user/ui/PixelDrawing.java @@ -1,3222 +1,3223 @@ /* -*- tab-width: 4 -*- ...
true
true
private void drawText(Rectangle rect, Poly.Type style, TextDescriptor descript, String s, byte [][] layerBitMap, EGraphics desc) { // quit if string is null int len = s.length(); if (len == 0) return; // get parameters int col = 0; if (desc != null) col = desc.getColor().getRGB() & 0xFFFFFF; // get te...
private void drawText(Rectangle rect, Poly.Type style, TextDescriptor descript, String s, byte [][] layerBitMap, EGraphics desc) { // quit if string is null int len = s.length(); if (len == 0) return; // get parameters int col = 0; if (desc != null) col = desc.getColor().getRGB() & 0xFFFFFF; // get te...
diff --git a/TraficLight/src/test/java/frans/traficLight/AppTest.java b/TraficLight/src/test/java/frans/traficLight/AppTest.java index 6bcf5a1..fb5e07e 100644 --- a/TraficLight/src/test/java/frans/traficLight/AppTest.java +++ b/TraficLight/src/test/java/frans/traficLight/AppTest.java @@ -1,63 +1,63 @@ package frans.tr...
true
true
public void testApp() { Crossing crossing = new Crossing(); TraficLight traficLight = new TraficLight(crossing); //TODO add test crossing.getEastSensor().setCarDetected(false); crossing.getWestSensor().setCarDetected(false); crossing.getNorthSensor().setCarDetected(false); c...
public void testApp() { Crossing crossing = new Crossing(); TraficLight traficLight = new TraficLight(crossing); //TODO add test crossing.getEastSensor().setCarDetected(false); crossing.getWestSensor().setCarDetected(false); crossing.getNorthSensor().setCarDetected(false); c...
diff --git a/jniast/src/main/uk/ac/starlink/ast/xml/XAstReader.java b/jniast/src/main/uk/ac/starlink/ast/xml/XAstReader.java index aefa5516c..51574e80e 100644 --- a/jniast/src/main/uk/ac/starlink/ast/xml/XAstReader.java +++ b/jniast/src/main/uk/ac/starlink/ast/xml/XAstReader.java @@ -1,165 +1,165 @@ package uk.ac.star...
true
true
synchronized void writeElement( Element el ) { if ( el.hasAttribute( labelName ) ) { appendLine( el.getAttribute( labelName ) + " =" ); } String elName = el.getNodeName(); if ( prefix != null ) { elName = elName.substring( prefix.le...
synchronized void writeElement( Element el ) { if ( el.hasAttribute( labelName ) ) { appendLine( el.getAttribute( labelName ) + " =" ); } String elName = el.getNodeName(); if ( prefix != null ) { elName = elName.substring( prefix.le...
diff --git a/com/imjake9/simplejail/SimpleJailCommandHandler.java b/com/imjake9/simplejail/SimpleJailCommandHandler.java index dccaee7..79e23b1 100644 --- a/com/imjake9/simplejail/SimpleJailCommandHandler.java +++ b/com/imjake9/simplejail/SimpleJailCommandHandler.java @@ -1,311 +1,312 @@ package com.imjake9.simplejail...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if(commandLabel.equalsIgnoreCase("jail")) { if(!hasPermission(sender, "simplejail.jail")) { JailMessage.LACKS_PERMISSIONS.send(sender, "simplejail.jail"); ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if(commandLabel.equalsIgnoreCase("jail")) { if(!hasPermission(sender, "simplejail.jail")) { JailMessage.LACKS_PERMISSIONS.send(sender, "simplejail.jail"); ...
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/menu/FileMenu.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/menu/FileMenu.java index 6d9d8d234..f448cd2df 100644 --- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/menu/FileMenu.java +++ b/flexodesktop/GUI/flexo/src/main/ja...
false
true
private boolean saveForServerPreprocessing() { FlexoProject project = _controller.getProject(); int i = FlexoController.confirmYesNoCancel(FlexoLocalization .localizedForKey("would_you_like_to_check_your_project_consistency_first") + "?"); switch (i) { case JOptionPane.YES_OPTION: ValidateProject valid...
private boolean saveForServerPreprocessing() { FlexoProject project = _controller.getProject(); int i = FlexoController.confirmYesNoCancel(FlexoLocalization .localizedForKey("would_you_like_to_check_your_project_consistency_first") + "?"); switch (i) { case JOptionPane.YES_OPTION: ValidateProject valid...
diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java index 2588bdfb..88146a8f 100644 --- a/vlc-android/src/org/videolan/vlc/Util.java +++ b/vlc-android/src/org/videolan/vlc/Util.java @@ -1,364 +1,361 @@ /*******************************************************************...
false
true
public static boolean hasCompatibleCPU() { // If already checked return cached result if(errorMsg != null) return isCompatible; Properties properties = new Properties(); try { properties.load(new ByteArrayInputStream(Util.readAsset("env.txt", "").getBytes("UTF-8")));...
public static boolean hasCompatibleCPU() { // If already checked return cached result if(errorMsg != null) return isCompatible; Properties properties = new Properties(); try { properties.load(new ByteArrayInputStream(Util.readAsset("env.txt", "").getBytes("UTF-8")));...
diff --git a/src/play/modules/solar/SolarPlugin.java b/src/play/modules/solar/SolarPlugin.java index 4beffba..5f1634c 100644 --- a/src/play/modules/solar/SolarPlugin.java +++ b/src/play/modules/solar/SolarPlugin.java @@ -1,196 +1,200 @@ package play.modules.solar; import java.io.ByteArrayOutputStream; import java....
false
true
public boolean rawInvocation(Request request, Response response) { try { if (Play.mode == Mode.PROD) { return false; } // -- /bespin if (request.path.equals("/solar") || request.path.equals("/solar/")) { response.status = 302; ...
public boolean rawInvocation(Request request, Response response) { try { if (Play.mode == Mode.PROD) { return false; } // -- /bespin if (request.path.equals("/solar") || request.path.equals("/solar/")) { response.status = 302; ...
diff --git a/src/main/java/org/spoutcraft/launcher/technic/InstalledRest.java b/src/main/java/org/spoutcraft/launcher/technic/InstalledRest.java index 2d02eed..c36be30 100644 --- a/src/main/java/org/spoutcraft/launcher/technic/InstalledRest.java +++ b/src/main/java/org/spoutcraft/launcher/technic/InstalledRest.java @@ ...
true
true
public Modpack getModpack() { try { return info.getRest().getModpack(info, getBuild()); } catch (RestfulAPIException e) { e.printStackTrace(); File installed = new File(this.getPackDirectory(), "installed"); if (installed.exists()) { return new FallbackModpack(getName(), getBuild()); } retu...
public Modpack getModpack() { try { return info.getRest().getModpack(info, getBuild()); } catch (RestfulAPIException e) { e.printStackTrace(); File installed = new File(this.getBinDir(), "installed"); if (installed.exists()) { return new FallbackModpack(getName(), getBuild()); } return null...
diff --git a/src/main/java/org/sonatype/ziptest/App.java b/src/main/java/org/sonatype/ziptest/App.java index 8da75e0..f77ad36 100644 --- a/src/main/java/org/sonatype/ziptest/App.java +++ b/src/main/java/org/sonatype/ziptest/App.java @@ -1,191 +1,191 @@ package org.sonatype.ziptest; import java.io.BufferedInputStrea...
true
true
public static void test( final File file, final String sw ) throws IOException { final long started = System.currentTimeMillis(); if ( "zf".equalsIgnoreCase( sw ) ) { testZipFile( file ); } else if ( "zis".equalsIgnoreCase( sw ) ) { ...
public static void test( final File file, final String sw ) throws IOException { final long started = System.currentTimeMillis(); if ( "zf".equalsIgnoreCase( sw ) ) { testZipFile( file ); } else if ( "zis".equalsIgnoreCase( sw ) ) { ...
diff --git a/src/test/java/org/jboss/ejb/client/ipv6/IPv6TestCase.java b/src/test/java/org/jboss/ejb/client/ipv6/IPv6TestCase.java index f9a5388..efabdd9 100644 --- a/src/test/java/org/jboss/ejb/client/ipv6/IPv6TestCase.java +++ b/src/test/java/org/jboss/ejb/client/ipv6/IPv6TestCase.java @@ -1,169 +1,172 @@ /* * JBo...
true
true
public static Collection<Object[]> getIPv6Addresses() throws Exception { final Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces(); if (networkInterfaces == null) { return Collections.emptyList(); } final List<String> ipv6Addresses = ...
public static Collection<Object[]> getIPv6Addresses() throws Exception { final Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces(); if (networkInterfaces == null) { return Collections.emptyList(); } final List<String> ipv6Addresses = ...
diff --git a/src/test/java/uk/co/caprica/vlcj/test/discoverer/MediaDirsTest.java b/src/test/java/uk/co/caprica/vlcj/test/discoverer/MediaDirsTest.java index b24f4d19..0237933f 100644 --- a/src/test/java/uk/co/caprica/vlcj/test/discoverer/MediaDirsTest.java +++ b/src/test/java/uk/co/caprica/vlcj/test/discoverer/MediaDir...
true
true
public MediaDirsTest() throws Exception { MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(); MediaDiscoverer videoMediaDiscoverer = mediaPlayerFactory.newMediaDiscoverer("video_dir"); Thread.sleep(500); // FIXME not acceptable MediaList videoFileList = videoMediaD...
public MediaDirsTest() throws Exception { MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(); MediaDiscoverer videoMediaDiscoverer = mediaPlayerFactory.newMediaDiscoverer("video_dir"); Thread.sleep(500); // FIXME not acceptable MediaList videoFileList = videoMediaD...
diff --git a/src/org/eclipse/core/tests/filesystem/URIUtilTest.java b/src/org/eclipse/core/tests/filesystem/URIUtilTest.java index 9468adc..61860ca 100644 --- a/src/org/eclipse/core/tests/filesystem/URIUtilTest.java +++ b/src/org/eclipse/core/tests/filesystem/URIUtilTest.java @@ -1,80 +1,85 @@ /***********************...
true
true
public void testEquals() { if (EFS.getLocalFileSystem().isCaseSensitive()) { //test that case variants are equal URI one = new java.io.File("c:\\temp\\test").toURI(); URI two = new java.io.File("c:\\TEMP\\test").toURI(); assertTrue("1.0", URIUtil.equals(one, two)); } }
public void testEquals() { if (EFS.getLocalFileSystem().isCaseSensitive()) { //test that case variants are not equal URI one = new java.io.File("c:\\temp\\test").toURI(); URI two = new java.io.File("c:\\TEMP\\test").toURI(); assertTrue("1.0", !URIUtil.equals(one, two)); } else { //test that case var...
diff --git a/src/java/org/apache/bcel/generic/InstructionComparator.java b/src/java/org/apache/bcel/generic/InstructionComparator.java index 115689c8..ac63370b 100644 --- a/src/java/org/apache/bcel/generic/InstructionComparator.java +++ b/src/java/org/apache/bcel/generic/InstructionComparator.java @@ -1,107 +1,107 @@ ...
true
true
public boolean equals(Instruction i1, Instruction i2) { if(i1.opcode == i2.opcode) { if(i1 instanceof Select) { InstructionHandle[] t1 = ((Select)i1).getTargets(); InstructionHandle[] t2 = ((Select)i2).getTargets(); if(t1.length == t2.length) { for(int i = 0; i < t1.length; i++) { i...
public boolean equals(Instruction i1, Instruction i2) { if(i1.opcode == i2.opcode) { if(i1 instanceof Select) { InstructionHandle[] t1 = ((Select)i1).getTargets(); InstructionHandle[] t2 = ((Select)i2).getTargets(); if(t1.length == t2.length) { for(int i = 0; i < t1.length; i++) { i...
diff --git a/bte-io/src/main/java/gr/ekt/bteio/loaders/CSVDataLoader.java b/bte-io/src/main/java/gr/ekt/bteio/loaders/CSVDataLoader.java index 232ec9b..c5a5cf7 100644 --- a/bte-io/src/main/java/gr/ekt/bteio/loaders/CSVDataLoader.java +++ b/bte-io/src/main/java/gr/ekt/bteio/loaders/CSVDataLoader.java @@ -1,216 +1,219 @@...
true
true
public RecordSet getRecords() throws MalformedSourceException { if (reader_ == null) { throw new EmptySourceException("Input file is not open"); } RecordSet rs = null; try { String [] next_line; rs = new RecordSet(); while((next_line = ...
public RecordSet getRecords() throws MalformedSourceException { if (reader_ == null) { throw new EmptySourceException("Input file is not open"); } RecordSet rs = null; try { String [] next_line; rs = new RecordSet(); while((next_line = ...
diff --git a/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java b/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java index f4df20cbd..6112737a1 100644 --- a/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java +++ b/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java @@ -1,120 +1,120 @@ /*...
false
true
public void loadAsync (AssetManager manager, String fileName, FileHandle file, TextureParameter parameter) { info.filename = fileName; if (parameter == null || parameter.textureData == null) { Pixmap pixmap = null; Format format = null; boolean genMipMaps = false; info.texture = null; if (parameter...
public void loadAsync (AssetManager manager, String fileName, FileHandle file, TextureParameter parameter) { info.filename = fileName; if (parameter == null || parameter.textureData == null) { Pixmap pixmap = null; Format format = null; boolean genMipMaps = false; info.texture = null; if (parameter...
diff --git a/examples/rest-assured-itest-java/src/test/java/com/jayway/restassured/itest/java/GivenWhenTheni18nITest.java b/examples/rest-assured-itest-java/src/test/java/com/jayway/restassured/itest/java/GivenWhenTheni18nITest.java index 7697be8d..d8aa168c 100644 --- a/examples/rest-assured-itest-java/src/test/java/co...
true
true
@Test public void given_when_then_using_i18n_works() { // When get("/i18n").then().assertThat().body("ön", equalTo("Är ån")); }
@Test public void given_when_then_using_i18n_works() { get("/i18n").then().assertThat().body("ön", equalTo("Är ån")); }
diff --git a/src/com/android/contacts/socialwidget/SocialWidgetProvider.java b/src/com/android/contacts/socialwidget/SocialWidgetProvider.java index 2ce15ff79..593c4b217 100644 --- a/src/com/android/contacts/socialwidget/SocialWidgetProvider.java +++ b/src/com/android/contacts/socialwidget/SocialWidgetProvider.java @@ ...
true
true
private static void setDisplayNameAndSnippet(Context context, RemoteViews views, CharSequence displayName, CharSequence phoneticName, List<StreamItemEntry> streamItems, PendingIntent defaultIntent) { SpannableStringBuilder sb = new SpannableStringBuilder(); CharSequence name...
private static void setDisplayNameAndSnippet(Context context, RemoteViews views, CharSequence displayName, CharSequence phoneticName, List<StreamItemEntry> streamItems, PendingIntent defaultIntent) { SpannableStringBuilder sb = new SpannableStringBuilder(); CharSequence name...
diff --git a/PaintroidTest/src/org/catrobat/paintroid/test/junit/tools/MoveZoomTest.java b/PaintroidTest/src/org/catrobat/paintroid/test/junit/tools/MoveZoomTest.java index dd58af67..3820c503 100644 --- a/PaintroidTest/src/org/catrobat/paintroid/test/junit/tools/MoveZoomTest.java +++ b/PaintroidTest/src/org/catrobat/pa...
true
true
public void testMove() throws SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { float screenWidth = getActivity().getWindowManager().getDefaultDisplay().getWidth(); float screenHeight = getActivity().getWindowManager().getDefaultDisplay().getHeight(); int offset = 50...
public void testMove() throws SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { float screenWidth = getActivity().getWindowManager().getDefaultDisplay().getWidth(); float screenHeight = getActivity().getWindowManager().getDefaultDisplay().getHeight(); int offset = 50...
diff --git a/bw-calendar-client-webcommon/src/main/java/org/bedework/webcommon/category/FetchCategoriesAction.java b/bw-calendar-client-webcommon/src/main/java/org/bedework/webcommon/category/FetchCategoriesAction.java index a59a6bb..8db0817 100644 --- a/bw-calendar-client-webcommon/src/main/java/org/bedework/webcommon...
true
true
public int doAction(BwRequest request, BwActionFormBase form) throws Throwable { embedCategories(request, false); return forwardSuccess; }
public int doAction(BwRequest request, BwActionFormBase form) throws Throwable { embedEditableCategories(request, false); return forwardSuccess; }
diff --git a/src/main/java/com/mtihc/regionselfservice/v2/plots/PlotWorld.java b/src/main/java/com/mtihc/regionselfservice/v2/plots/PlotWorld.java index 8554365..8d515a7 100644 --- a/src/main/java/com/mtihc/regionselfservice/v2/plots/PlotWorld.java +++ b/src/main/java/com/mtihc/regionselfservice/v2/plots/PlotWorld.java...
true
true
public Set<String> getPotentialHomeless(Set<String> names) { Set<String> result = new HashSet<String>(); World world = getWorld(); for (String name : names) { int count = manager.control.getRegionCountOfPlayer(world, name); if(count - 1 <= 0) { result.add(name); } } }
public Set<String> getPotentialHomeless(Set<String> names) { Set<String> result = new HashSet<String>(); World world = getWorld(); for (String name : names) { int count = manager.control.getRegionCountOfPlayer(world, name); if(count - 1 <= 0) { result.add(name); } } return result; }
diff --git a/src/com/finalyear/controlrobot/MainActivity.java b/src/com/finalyear/controlrobot/MainActivity.java index b231d7b..e999acd 100644 --- a/src/com/finalyear/controlrobot/MainActivity.java +++ b/src/com/finalyear/controlrobot/MainActivity.java @@ -1,300 +1,302 @@ package com.finalyear.controlrobot; import ja...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Amarino.connect(this, DEVICE_ADDRESS); /*forward = (ImageButton) findViewById(R.id.imageButton1); right = (ImageButton) findViewById(R.id.imageButton2); left = (ImageButton) f...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Amarino.connect(this, DEVICE_ADDRESS); /*forward = (ImageButton) findViewById(R.id.imageButton1); right = (ImageButton) findViewById(R.id.imageButton2); left = (ImageButton) f...
diff --git a/src/utils/FileUtils.java b/src/utils/FileUtils.java index 3c3fd25..d7f3ff0 100644 --- a/src/utils/FileUtils.java +++ b/src/utils/FileUtils.java @@ -1,31 +1,38 @@ package utils; import java.io.File; import java.io.FileReader; import java.util.Scanner; public class FileUtils { public static void...
false
true
public static String getStringFromFile (String fileLocation) { try { File f = new File(fileLocation); if(f.exists()) { Scanner in = new Scanner(new FileReader(fileLocation)); String s, str=""; while(in.hasNext() && (s=in.nextLine())!=null) str+=s+"\n"; return str; } else { return null;...
public static String getStringFromFile (String fileLocation) { Scanner in = null; try { File f = new File(fileLocation); if(f.exists()) { in = new Scanner(new FileReader(fileLocation)); String s, str=""; while(in.hasNext() && (s=in.nextLine())!=null) str+=s+"\n"; return str; } else { ...
diff --git a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformFileContext.java b/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformFileContext.java index 903f59f..ccc5d0d 100644 --- a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformFileContext.j...
true
true
private String getSystemBirtHome( ) { return AccessController.doPrivileged( new PrivilegedAction<String>( ) { public String run( ) { String home = System.getProperty( IPlatformConfig.BIRT_HOME ); if ( home == null || home.isEmpty( ) ) { return "."; } return home; } } ); }
private String getSystemBirtHome( ) { return AccessController.doPrivileged( new PrivilegedAction<String>( ) { public String run( ) { String home = System.getProperty( IPlatformConfig.BIRT_HOME ); if ( home == null || "".equals( home ) ) { return "."; } return home; } } ); }
diff --git a/core/src/visad/trunk/Gridded2DDoubleSet.java b/core/src/visad/trunk/Gridded2DDoubleSet.java index 62c7319e3..06c88e413 100644 --- a/core/src/visad/trunk/Gridded2DDoubleSet.java +++ b/core/src/visad/trunk/Gridded2DDoubleSet.java @@ -1,896 +1,896 @@ // // Gridded2DDoubleSet.java // /* VisAD system for...
true
true
public double[][] doubleToGrid(double[][] value) throws VisADException { if (value.length < DomainDimension) { throw new SetException("Gridded2DDoubleSet.doubleToGrid: bad dimension"); } if (ManifoldDimension < 2) { throw new SetException("Gridded2DDoubleSet.doubleToGrid: ManifoldDimension " +...
public double[][] doubleToGrid(double[][] value) throws VisADException { if (value.length < DomainDimension) { throw new SetException("Gridded2DDoubleSet.doubleToGrid: bad dimension"); } if (ManifoldDimension < 2) { throw new SetException("Gridded2DDoubleSet.doubleToGrid: ManifoldDimension " +...
diff --git a/src/main/java/de/codecentric/moviedatabase/service/InMemoryMovieService.java b/src/main/java/de/codecentric/moviedatabase/service/InMemoryMovieService.java index d93fc55..aa9858a 100644 --- a/src/main/java/de/codecentric/moviedatabase/service/InMemoryMovieService.java +++ b/src/main/java/de/codecentric/mov...
true
true
public List<Movie> findMovieByTagsAndSearchString(Set<Tag> tags, Set<String> searchWords) { Set<Movie> taggedMovies = new HashSet<Movie>(); List<Movie> searchResult = new ArrayList<Movie>(); if (tags == null || tags.isEmpty()){ taggedMovies = new HashSet<Movie>(idToMovieMap.values()); } else { for (Ta...
public List<Movie> findMovieByTagsAndSearchString(Set<Tag> tags, Set<String> searchWords) { Set<Movie> taggedMovies = new HashSet<Movie>(); List<Movie> searchResult = new ArrayList<Movie>(); if (tags == null || tags.isEmpty()){ taggedMovies = new HashSet<Movie>(idToMovieMap.values()); } else { for (Ta...
diff --git a/x10.compiler/src/x10/ExtensionInfo.java b/x10.compiler/src/x10/ExtensionInfo.java index 2a561ea3f..7ca8164a3 100644 --- a/x10.compiler/src/x10/ExtensionInfo.java +++ b/x10.compiler/src/x10/ExtensionInfo.java @@ -1,1045 +1,1045 @@ /* * This file is part of the X10 project (http://x10-lang.org). * * ...
true
true
public List<Goal> goals(Job job) { List<Goal> goals = new ArrayList<Goal>(); addValidateOnlyGoals(job, goals); Goal endGoal = goals.remove(goals.size()-1); if (!x10.Configuration.ONLY_TYPE_CHECKING) { if (x10.Configuration.WALA || x10.Configuratio...
public List<Goal> goals(Job job) { List<Goal> goals = new ArrayList<Goal>(); addValidateOnlyGoals(job, goals); Goal endGoal = goals.remove(goals.size()-1); if (!x10.Configuration.ONLY_TYPE_CHECKING) { if (x10.Configuration.WALA || x10.Configuratio...
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/pvm/runtime/AtomicOperationTransitionDestroyScope.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/pvm/runtime/AtomicOperationTransitionDestroyScope.java index 487f6a69e..6da6b05e6 100644 --- a/modules/activiti-engine/src/m...
true
true
public void execute(InterpretableExecution execution) { InterpretableExecution propagatingExecution = null; ActivityImpl activity = (ActivityImpl) execution.getActivity(); // if this transition is crossing a scope boundary if (activity.isScope()) { InterpretableExecution parentScopeInsta...
public void execute(InterpretableExecution execution) { InterpretableExecution propagatingExecution = null; ActivityImpl activity = (ActivityImpl) execution.getActivity(); // if this transition is crossing a scope boundary if (activity.isScope()) { InterpretableExecution parentScopeInsta...
diff --git a/src/fi/helsinki/cs/scheduler3000/cli/NewSchedule.java b/src/fi/helsinki/cs/scheduler3000/cli/NewSchedule.java index 0a3fd09..5a38e0e 100644 --- a/src/fi/helsinki/cs/scheduler3000/cli/NewSchedule.java +++ b/src/fi/helsinki/cs/scheduler3000/cli/NewSchedule.java @@ -1,62 +1,62 @@ package fi.helsinki.cs.sched...
true
true
private void newScheduleDialog() { String in = ""; ArrayList<Day> dates = new ArrayList<Day>(); System.out.println("Enter the period this schedule is for:"); printPrompt(); String period = input.nextLine(); System.out.println("Give dates you want to include in the scedule"); System.out.println("Stop gi...
private void newScheduleDialog() { String in = ""; ArrayList<Day> dates = new ArrayList<Day>(); System.out.println("Enter the period this schedule is for:"); printPrompt(); String period = input.nextLine(); System.out.println("Give dates you want to include in the scedule"); System.out.println("Stop gi...
diff --git a/webit-script/src/main/java/webit/script/core/ast/expressions/ArrayValue.java b/webit-script/src/main/java/webit/script/core/ast/expressions/ArrayValue.java index d06599b4..7783f200 100644 --- a/webit-script/src/main/java/webit/script/core/ast/expressions/ArrayValue.java +++ b/webit-script/src/main/java/web...
true
true
public Object execute(final Context context) { final Expression[] valueExprs; final int len; final Object[] value = new Object[len = (valueExprs = this.valueExprs).length]; int i = 0; while (i < len) { value[i++] = StatmentUtil.execute(valueExprs[i], context); ...
public Object execute(final Context context) { final Expression[] valueExprs; final int len; final Object[] value = new Object[len = (valueExprs = this.valueExprs).length]; int i = 0; while (i < len) { value[i] = StatmentUtil.execute(valueExprs[i], context); ...
diff --git a/nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/access/AbstractPropertiesFileBasedAccessDecisionVoter.java b/nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/access/AbstractPropertiesFileBasedAccessDecisionVoter.java index 7f4a12726..0697ddf63 100644 --- a/nexus/nexus-proxy/src/main/java/o...
false
true
protected Properties loadProperties( String resource ) throws IOException { if ( resource == null ) { throw new IllegalArgumentException( "Authorization source properties file path cannot be 'null'!" ); } Properties result = new Properties(); ...
protected Properties loadProperties( String resource ) throws IOException { if ( resource == null ) { throw new IllegalArgumentException( "Authorization source properties file path cannot be 'null'!" ); } Properties result = new Properties(); ...
diff --git a/src/com/android/browser/FetchUrlMimeType.java b/src/com/android/browser/FetchUrlMimeType.java index 07c9b936..33b58086 100644 --- a/src/com/android/browser/FetchUrlMimeType.java +++ b/src/com/android/browser/FetchUrlMimeType.java @@ -1,138 +1,139 @@ /* * Copyright (C) 2008 The Android Open Source Projec...
true
true
public void run() { // User agent is likely to be null, though the AndroidHttpClient // seems ok with that. AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent); HttpHost httpHost; try { httpHost = Proxy.getPreferredHttpHost(mContext, mUri); ...
public void run() { // User agent is likely to be null, though the AndroidHttpClient // seems ok with that. AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent); HttpHost httpHost; try { httpHost = Proxy.getPreferredHttpHost(mContext, mUri); ...
diff --git a/lib-dempsyimpl/src/main/java/com/nokia/dempsy/container/MpContainer.java b/lib-dempsyimpl/src/main/java/com/nokia/dempsy/container/MpContainer.java index cd86ad0..4a73998 100644 --- a/lib-dempsyimpl/src/main/java/com/nokia/dempsy/container/MpContainer.java +++ b/lib-dempsyimpl/src/main/java/com/nokia/demps...
false
true
public void outputPass() { if (!prototype.isOutputSupported()) return; // take a snapshot of the current container state. LinkedList<InstanceWrapper> toOutput = new LinkedList<InstanceWrapper>(instances.values()); Executor executorService = null; Semaphore taskLock = null; ...
public void outputPass() { if (!prototype.isOutputSupported()) return; // take a snapshot of the current container state. LinkedList<InstanceWrapper> toOutput = new LinkedList<InstanceWrapper>(instances.values()); Executor executorService = null; Semaphore taskLock = null; ...
diff --git a/poem/src/test/java/org/melati/poem/test/PreparedTailoredQueryTest.java b/poem/src/test/java/org/melati/poem/test/PreparedTailoredQueryTest.java index 61c1539ef..4f677aba0 100644 --- a/poem/src/test/java/org/melati/poem/test/PreparedTailoredQueryTest.java +++ b/poem/src/test/java/org/melati/poem/test/Prepar...
false
true
public void testSelection() { EverythingDatabase db = (EverythingDatabase)getDb(); Capability spyMaster = db.getCapabilityTable().ensure("spyMaster"); final Capability moneyPenny = db.getCapabilityTable().ensure("moneyPenny"); User spy = (User)db.getUserTable().newPersistent(); spy.setLogin("spy"...
public void testSelection() { EverythingDatabase db = (EverythingDatabase)getDb(); Capability spyMaster = db.getCapabilityTable().ensure("spyMaster"); final Capability moneyPenny = db.getCapabilityTable().ensure("moneyPenny"); User spy = (User)db.getUserTable().newPersistent(); spy.setLogin("spy"...
diff --git a/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java b/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java index 27ce750dc..a2571883c 100644 --- a/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java +++ b/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java @@ -1,277 +1,278 @@ package ae...
true
true
private void applyChanges() { map.clear(); Collections.sort(annotations, new Comparator<Annotation>() { public int compare(Annotation a1, Annotation a2) { return Float.compare(a1.y, a2.y); } }); Editor editor = new Editor(svgDocument); ...
private void applyChanges() { map.clear(); Collections.sort(annotations, new Comparator<Annotation>() { public int compare(Annotation a1, Annotation a2) { return Float.compare(a1.y, a2.y); } }); Editor editor = new Editor(svgDocument); ...
diff --git a/solvers/java/src/test/java/com/analog/lyric/dimple/test/learning/TestTrainingSet.java b/solvers/java/src/test/java/com/analog/lyric/dimple/test/learning/TestTrainingSet.java index 7fc4a7c4..915a0a27 100644 --- a/solvers/java/src/test/java/com/analog/lyric/dimple/test/learning/TestTrainingSet.java +++ b/sol...
true
true
private void assertTrainingAssignmentInvariants(FactorGraph model, TrainingAssignment assignment) { VariableBase var = assignment.getVariable(model); TrainingAssignmentType type = assignment.getAssignmentType(); Object value = assignment.getValue(); assertSame(var.getSolver(), assignment.getSolverVariable(...
private void assertTrainingAssignmentInvariants(FactorGraph model, TrainingAssignment assignment) { VariableBase var = assignment.getVariable(model); TrainingAssignmentType type = assignment.getAssignmentType(); Object value = assignment.getValue(); assertSame(var.getSolver(), assignment.getSolverVariable(...
diff --git a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/RecordTraverser.java b/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/RecordTraverser.java index d484001e..b9f29af7 100644 --- a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/RecordTraverser.java +++ b/...
false
true
private void store_get(Storage storage,UIRequest request,String path) throws UIException { JSONObject outputJSON = new JSONObject(); try { String[] bits = path.split("/"); String token = bits[0]; Integer indexvalue = Integer.getInteger(bits[1]); String key = UISession.SEARCHTRAVERSER+""+token; if(re...
private void store_get(Storage storage,UIRequest request,String path) throws UIException { JSONObject outputJSON = new JSONObject(); try { String[] bits = path.split("/"); String token = bits[0]; Integer indexvalue = Integer.getInteger(bits[1]); String key = UISession.SEARCHTRAVERSER+""+token; if(re...
diff --git a/src/edu/ucla/cens/wifigpslocation/WiFiGPSLocationService.java b/src/edu/ucla/cens/wifigpslocation/WiFiGPSLocationService.java index c912148..3e9ec7c 100755 --- a/src/edu/ucla/cens/wifigpslocation/WiFiGPSLocationService.java +++ b/src/edu/ucla/cens/wifigpslocation/WiFiGPSLocationService.java @@ -1,1104 +1,1...
true
true
private synchronized void updateLocation(List<String> wifiSet) { long curTime = System.currentTimeMillis(); GPSInfo record; byte[] byteKey = mDigest.digest(wifiSet.toString().getBytes()); String key = new String(byteKey); Log.v(TAG, "Updating cache for: " + wifiSet.toString())...
private synchronized void updateLocation(List<String> wifiSet) { long curTime = System.currentTimeMillis(); GPSInfo record; byte[] byteKey = mDigest.digest(wifiSet.toString().getBytes()); String key = new String(byteKey); Log.v(TAG, "Updating cache for: " + wifiSet.toString())...
diff --git a/src/test/java/org/jvnet/hudson/crypto/RSAPublicKeyUtilTest.java b/src/test/java/org/jvnet/hudson/crypto/RSAPublicKeyUtilTest.java index f9c4134..cce8332 100644 --- a/src/test/java/org/jvnet/hudson/crypto/RSAPublicKeyUtilTest.java +++ b/src/test/java/org/jvnet/hudson/crypto/RSAPublicKeyUtilTest.java @@ -1,2...
false
true
public void testReadPublicKey() throws Exception { RSAPublicKey p = (RSAPublicKey) RSAPublicKeyUtil.readPublicKey("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzBy1GEihAxSgrsEANgCxYwxS8Yy0U7cKq/1MMtr4/IrW2m2rzDcr4a7ZG/p/XrchCMn5eIekq1dYHsB0hY81iJr7jMZi7XbQx/LohF833YhIRctALpNzPunqBxZvOUVDib/dfX6LuoZTOojI/W5UPYrzAj...
public void testReadPublicKey() throws Exception { RSAPublicKey p = (RSAPublicKey) RSAPublicKeyUtil.readPublicKey("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzBy1GEihAxSgrsEANgCxYwxS8Yy0U7cKq/1MMtr4/IrW2m2rzDcr4a7ZG/p/XrchCMn5eIekq1dYHsB0hY81iJr7jMZi7XbQx/LohF833YhIRctALpNzPunqBxZvOUVDib/dfX6LuoZTOojI/W5UPYrzAj...
diff --git a/WEB-INF/src/hygeia/Algorithm.java b/WEB-INF/src/hygeia/Algorithm.java index 2e6b740..6dad44d 100644 --- a/WEB-INF/src/hygeia/Algorithm.java +++ b/WEB-INF/src/hygeia/Algorithm.java @@ -1,137 +1,137 @@ package hygeia; import java.sql.*; import java.security.*; import java.util.StringTokenizer; import ...
false
true
public static Meal suggestMeal0(User u, int type) throws SQLException { if (u == null) { return null; } Database db = u.getDb(); //pulls all meals from the universal meal list and the user's personal meals ResultSet rs = db.execute("select mid from meals w...
public static Meal suggestMeal0(User u, int type) throws SQLException { if (u == null) { return null; } Database db = u.getDb(); //pulls all meals from the universal meal list and the user's personal meals ResultSet rs = db.execute("select mid from meals w...
diff --git a/choco-solver/src/main/java/solver/constraints/propagators/reified/PropImplied.java b/choco-solver/src/main/java/solver/constraints/propagators/reified/PropImplied.java index 6c0f73d5e..3720cd8f0 100644 --- a/choco-solver/src/main/java/solver/constraints/propagators/reified/PropImplied.java +++ b/choco-solv...
false
true
public void propagate(int evtmask) throws ContradictionException { if (bVar.instantiated()) { if (bVar.getBooleanValue() == ESat.TRUE) { reifCons.activate(0); } else { reifCons.activate(1); } setPassive(); } else { ...
public void propagate(int evtmask) throws ContradictionException { if (bVar.instantiated()) { if (bVar.getBooleanValue() == ESat.TRUE) { reifCons.activate(0); } else { reifCons.activate(1); } setPassive(); } else { ...
diff --git a/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java b/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java index c4d77f4bd8..1d4115ecb9 100644 --- a/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java +++ b/core-jndi/src/...
false
true
private org.apache.directory.shared.ldap.model.message.Control convertControl( boolean isRequest, Control jndiControl ) throws DecoderException { String controlIDStr = jndiControl.getID(); org.apache.directory.shared.ldap.model.message.Control control = null; ControlEnum control...
private org.apache.directory.shared.ldap.model.message.Control convertControl( boolean isRequest, Control jndiControl ) throws DecoderException { String controlIDStr = jndiControl.getID(); org.apache.directory.shared.ldap.model.message.Control control = null; ControlEnum control...
diff --git a/src/to/joe/j2mc/admintoolkit/command/WhoIsCommand.java b/src/to/joe/j2mc/admintoolkit/command/WhoIsCommand.java index 59aa80e..10e5e5d 100644 --- a/src/to/joe/j2mc/admintoolkit/command/WhoIsCommand.java +++ b/src/to/joe/j2mc/admintoolkit/command/WhoIsCommand.java @@ -1,58 +1,61 @@ package to.joe.j2mc.admi...
true
true
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { Player target = null; try { target = J2MC_Manager.getVisibility().getPlayer(args[0], sender); } catch (BadPlayerMatchException e) { sender.sendMessage(ChatColo...
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) { if (args.length != 1) { sender.sendMessage(ChatColor.RED + "Usage: /whois <player>"); } Player target = null; try { target = J2MC_Manager.getVisibility...
diff --git a/util/src/main/java/com/psddev/dari/util/Settings.java b/util/src/main/java/com/psddev/dari/util/Settings.java index ca1ab959..a64242c6 100644 --- a/util/src/main/java/com/psddev/dari/util/Settings.java +++ b/util/src/main/java/com/psddev/dari/util/Settings.java @@ -1,455 +1,455 @@ package com.psddev.dari....
true
true
protected Map<String, Object> produce() { return new PeriodicCache<String, Object>(0.0, 10.0) { @Override protected Map<String, Object> update() { // Optional file. Map<String, Object> settings = new TreeMap<String, Object>();...
protected Map<String, Object> produce() { return new PeriodicCache<String, Object>(0.0, 10.0) { @Override protected Map<String, Object> update() { // Optional file. Map<String, Object> settings = new TreeMap<String, Object>();...
diff --git a/modules/extension/wms/src/main/java/org/geotools/map/WMSMapLayer.java b/modules/extension/wms/src/main/java/org/geotools/map/WMSMapLayer.java index 6b13ffdd5..8f645a716 100644 --- a/modules/extension/wms/src/main/java/org/geotools/map/WMSMapLayer.java +++ b/modules/extension/wms/src/main/java/org/geotools/...
true
true
public GridCoverage2D read(GeneralParameterValue[] parameters) throws IllegalArgumentException, IOException { // try to get request params from the request Envelope requestedEnvelope = null; int width = -1; int height = -1; if (paramete...
public GridCoverage2D read(GeneralParameterValue[] parameters) throws IllegalArgumentException, IOException { // try to get request params from the request Envelope requestedEnvelope = null; int width = -1; int height = -1; if (paramete...
diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java index 6d01ec233..8e6aa08b9 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestDialogPanel.java @@ -1,5...
false
true
private void initComponents() { timeGroup = new javax.swing.ButtonGroup(); servicesScrollPane = new javax.swing.JScrollPane(); servicesTable = new javax.swing.JTable(); jPanel1 = new javax.swing.JPanel(); advancedButton = new javax.swing.JButton(); jSeparator2 = new ...
private void initComponents() { timeGroup = new javax.swing.ButtonGroup(); servicesScrollPane = new javax.swing.JScrollPane(); servicesTable = new javax.swing.JTable(); jPanel1 = new javax.swing.JPanel(); advancedButton = new javax.swing.JButton(); jSeparator2 = new ...
diff --git a/src/main/java/hex/Summary.java b/src/main/java/hex/Summary.java index 3c20dbf6e..c10762412 100644 --- a/src/main/java/hex/Summary.java +++ b/src/main/java/hex/Summary.java @@ -1,273 +1,274 @@ package hex; import java.util.Arrays; import water.*; import water.ValueArray.Column; import water.util.Ut...
true
true
public JsonObject toJson(){ JsonObject res = new JsonObject(); res.addProperty("type", _enum?"enum":"number"); res.addProperty("name", _summary._ary._cols[_colId]._name); if(!_enum){ JsonArray min = new JsonArray(); for(double d:_min){ if(Double.isInfinite(d))break;...
public JsonObject toJson(){ JsonObject res = new JsonObject(); res.addProperty("type", _enum?"enum":"number"); res.addProperty("name", _summary._ary._cols[_colId]._name); if(!_enum){ JsonArray min = new JsonArray(); for(double d:_min){ if(Double.isInfinite(d))break;...
diff --git a/src/main/ed/js/JSArray.java b/src/main/ed/js/JSArray.java index f7c4c1a19..4ff794d03 100644 --- a/src/main/ed/js/JSArray.java +++ b/src/main/ed/js/JSArray.java @@ -1,1053 +1,1053 @@ // JSArray.java /** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it...
true
true
protected void init(){ _prototype.set( "toSource" , new JSFunctionCalls0() { public Object call( Scope s , Object foo[] ){ return new JSString( JSON.serialize( s.getThis() ) ); } } ); _prototype.set( "value...
protected void init(){ _prototype.set( "toSource" , new JSFunctionCalls0() { public Object call( Scope s , Object foo[] ){ return new JSString( JSON.serialize( s.getThis() ) ); } } ); _prototype.set( "value...
diff --git a/src/community/web2/core/src/main/java/org/geoserver/web/wicket/GeoServerTablePanel.java b/src/community/web2/core/src/main/java/org/geoserver/web/wicket/GeoServerTablePanel.java index d785d88a79..a6b054ca5b 100644 --- a/src/community/web2/core/src/main/java/org/geoserver/web/wicket/GeoServerTablePanel.java...
true
true
public GeoServerTablePanel(final String id, final GeoServerDataProvider<T> dataProvider, final boolean selectable) { super(id); this.dataProvider = dataProvider; // prepare the selection array selection = new boolean[DEFAULT_ITEMS_PER_PAGE]; ...
public GeoServerTablePanel(final String id, final GeoServerDataProvider<T> dataProvider, final boolean selectable) { super(id); this.dataProvider = dataProvider; // prepare the selection array selection = new boolean[DEFAULT_ITEMS_PER_PAGE]; ...
diff --git a/Android/SQLitePlugin/src/com/phonegap/plugins/sqlitePlugin/SQLitePlugin.java b/Android/SQLitePlugin/src/com/phonegap/plugins/sqlitePlugin/SQLitePlugin.java index 927ef2d..76d3d53 100755 --- a/Android/SQLitePlugin/src/com/phonegap/plugins/sqlitePlugin/SQLitePlugin.java +++ b/Android/SQLitePlugin/src/com/pho...
false
true
public PluginResult execute(String action, JSONArray args, String callbackId) { PluginResult.Status status = PluginResult.Status.OK; String result = ""; try { // TODO: Do we want to allow a user to do this, since they could get // to other app databases? if (action.equals("setStorage")) { this.setS...
public PluginResult execute(String action, JSONArray args, String callbackId) { PluginResult.Status status = PluginResult.Status.OK; String result = ""; try { // TODO: Do we want to allow a user to do this, since they could get // to other app databases? if (action.equals("setStorage")) { this.setS...
diff --git a/module-blog/src/test/java/org/devproof/portal/module/blog/page/BlogEditPageTest.java b/module-blog/src/test/java/org/devproof/portal/module/blog/page/BlogEditPageTest.java index e2534105..c06e8d3e 100644 --- a/module-blog/src/test/java/org/devproof/portal/module/blog/page/BlogEditPageTest.java +++ b/module...
true
true
private void navigateToBlogEditPage() { tester.startPage(BlogPage.class); tester.assertRenderedPage(BlogPage.class); tester.assertContains("This is a sample blog entry."); tester.debugComponentTrees(); tester.clickLink("refreshContainerBlogEntries:repeatingBlogEntries:2:blogV...
private void navigateToBlogEditPage() { tester.startPage(BlogPage.class); tester.assertRenderedPage(BlogPage.class); tester.assertContains("This is a sample blog entry."); tester.debugComponentTrees(); // tester.dumpPage(); tester.clickLink("refreshContainerBlogEntries...
diff --git a/src/Ranges.java b/src/Ranges.java index cbb073e..9625327 100644 --- a/src/Ranges.java +++ b/src/Ranges.java @@ -1,200 +1,205 @@ package srma; import java.io.*; import java.util.*; import net.sf.picard.reference.*; import net.sf.samtools.*; // TODO: // - need to check references are in order // ...
true
true
private void addRange(String line, int lineNumber, Map<String, Integer> m, SAMSequenceDictionary referenceDictionary, int offset) throws Exception { StringTokenizer st = new StringTokenizer(line); int referenceIndex=-1; int startPosition=-1, endPosition=-1; int i=0; ...
private void addRange(String line, int lineNumber, Map<String, Integer> m, SAMSequenceDictionary referenceDictionary, int offset) throws Exception { StringTokenizer st = new StringTokenizer(line); int referenceIndex=-1; int startPosition=-1, endPosition=-1; int i=0; ...
diff --git a/src/java-server-framework/org/xins/server/APIServlet.java b/src/java-server-framework/org/xins/server/APIServlet.java index 62808b93b..f3eaf63f8 100644 --- a/src/java-server-framework/org/xins/server/APIServlet.java +++ b/src/java-server-framework/org/xins/server/APIServlet.java @@ -1,401 +1,401 @@ /* *...
false
true
public void init(ServletConfig config) throws IllegalArgumentException, ServletException { // Check arguments MandatoryArgumentChecker.check("config", config); // Get the ServletContext ServletContext context = config.getServletContext(); if (context == null) { String mess...
public void init(ServletConfig config) throws IllegalArgumentException, ServletException { // Check arguments MandatoryArgumentChecker.check("config", config); // Get the ServletContext ServletContext context = config.getServletContext(); if (context == null) { String mess...
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java index 8cc7f4e2a..73701d825 100644 --- a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java +++ b/bpel...
true
true
public List<BpelProcess> markForDehydration(List<BpelProcess> runningProcesses) { ArrayList<BpelProcess> ripped = new ArrayList<BpelProcess>(); if (_processMaxAge > 0) { // The oldies have to go first long now = System.currentTimeMillis(); for (BpelProcess proces...
public List<BpelProcess> markForDehydration(List<BpelProcess> runningProcesses) { ArrayList<BpelProcess> ripped = new ArrayList<BpelProcess>(); if (_processMaxAge > 0) { // The oldies have to go first long now = System.currentTimeMillis(); for (BpelProcess proces...
diff --git a/src/test/java/de/agilecoders/wicket/requirejs/RequireJsConfigTest.java b/src/test/java/de/agilecoders/wicket/requirejs/RequireJsConfigTest.java index 5209767..5810d31 100644 --- a/src/test/java/de/agilecoders/wicket/requirejs/RequireJsConfigTest.java +++ b/src/test/java/de/agilecoders/wicket/requirejs/Requ...
false
true
public void correctMapIsRendered() throws Exception { tester().startComponentInPage(new RequireJsConfig("id")); tester().assertContains(Pattern.quote("require.config({\n" + " \"baseUrl\": \"../requirejs/\",\n" ...
public void correctMapIsRendered() throws Exception { tester().startComponentInPage(new RequireJsConfig("id")); tester().assertContains(Pattern.quote("require.config({\n" + " \"baseUrl\": \"..//\",\n" + " ...
diff --git a/applications/petascope/src/main/java/petascope/wcps/server/core/DimensionPointElement.java b/applications/petascope/src/main/java/petascope/wcps/server/core/DimensionPointElement.java index 60c2a63c..9bfff750 100644 --- a/applications/petascope/src/main/java/petascope/wcps/server/core/DimensionPointElement...
true
true
public DimensionPointElement(Node node, XmlQuery xq, CoverageInfo covInfo) throws WCPSException { while ((node != null) && node.getNodeName().equals("#" + WCPSConstants.MSG_TEXT)) { node = node.getNextSibling(); } log.trace(node.getNodeName()); ...
public DimensionPointElement(Node node, XmlQuery xq, CoverageInfo covInfo) throws WCPSException { while ((node != null) && node.getNodeName().equals("#" + WCPSConstants.MSG_TEXT)) { node = node.getNextSibling(); } log.trace(node.getNodeName()); ...
diff --git a/org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widgets/SWTBotView.java b/org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widgets/SWTBotView.java index 06c25f4..5c0bd1b 100644 --- a/org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widge...
true
true
public void setFocus() { syncExec(new VoidResult() { public void run() { ((Control) widget).setFocus(); } }); }
public void setFocus() { syncExec(new VoidResult() { public void run() { ((Control) getWidget()).setFocus(); } }); }
diff --git a/deegree-misc/deegree-portnumber-plugin/src/main/java/org/deegree/maven/PortnumberPlugin.java b/deegree-misc/deegree-portnumber-plugin/src/main/java/org/deegree/maven/PortnumberPlugin.java index 2790bf0808..b61d9b15ad 100644 --- a/deegree-misc/deegree-portnumber-plugin/src/main/java/org/deegree/maven/Portnu...
false
true
public void execute() throws MojoExecutionException, MojoFailureException { PrintStream out = null; BufferedReader reader = null; FileLock lock = null; try { File portfile = new File( System.getProperty( "java.io.tmpdir" ) + "/portnumbers" ); ...
public void execute() throws MojoExecutionException, MojoFailureException { PrintStream out = null; BufferedReader reader = null; FileLock lock = null; try { File portfile = new File( System.getProperty( "java.io.tmpdir" ) + "/portnumbers" ); ...
diff --git a/source/src/net/grinder/engine/process/instrumenter/dcr/Jython22Instrumenter.java b/source/src/net/grinder/engine/process/instrumenter/dcr/Jython22Instrumenter.java index fef51118..be7edce9 100644 --- a/source/src/net/grinder/engine/process/instrumenter/dcr/Jython22Instrumenter.java +++ b/source/src/net/gri...
true
true
protected Object instrument(Object target, Recorder recorder) throws NotWrappableTypeException { if (target instanceof PyObject) { // Jython object. if (target instanceof PyInstance) { instrumentPublicMethodsByName(target, "invoke", ...
protected Object instrument(Object target, Recorder recorder) throws NotWrappableTypeException { if (target instanceof PyObject) { // Jython object. if (target instanceof PyInstance) { instrumentPublicMethodsByName(target, "invoke", ...
diff --git a/modules/org.restlet/src/org/restlet/resource/ServerResource.java b/modules/org.restlet/src/org/restlet/resource/ServerResource.java index 1dfee2323..d6bee8c4a 100644 --- a/modules/org.restlet/src/org/restlet/resource/ServerResource.java +++ b/modules/org.restlet/src/org/restlet/resource/ServerResource.java...
true
true
protected Representation doConditionalHandle() throws ResourceException { Representation result = null; if (getConditions().hasSome()) { if (!isExisting() && getConditions().getMatch().contains(Tag.ALL)) { setStatus(Status.CLIENT_ERROR_PRECONDITION_FAILED, ...
protected Representation doConditionalHandle() throws ResourceException { Representation result = null; if (getConditions().hasSome()) { if (!isExisting() && getConditions().getMatch().contains(Tag.ALL)) { setStatus(Status.CLIENT_ERROR_PRECONDITION_FAILED, ...
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index b2493cf97..86540efbb 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -1,926 +1,928 @@ /* * Copyright (C) 2011 The Andr...
true
true
private void bindView(View view, Cursor c, int count) { final CallLogListItemViews views = (CallLogListItemViews) view.getTag(); // Default case: an item in the call log. views.primaryActionView.setVisibility(View.VISIBLE); views.listHeaderTextView.setVisibility(View.GONE); ...
private void bindView(View view, Cursor c, int count) { final CallLogListItemViews views = (CallLogListItemViews) view.getTag(); // Default case: an item in the call log. views.primaryActionView.setVisibility(View.VISIBLE); views.listHeaderTextView.setVisibility(View.GONE); ...
diff --git a/bennu-core/src/myorg/_development/PropertiesManager.java b/bennu-core/src/myorg/_development/PropertiesManager.java index 07793812..a1a39464 100755 --- a/bennu-core/src/myorg/_development/PropertiesManager.java +++ b/bennu-core/src/myorg/_development/PropertiesManager.java @@ -1,117 +1,117 @@ /* * @(#)P...
true
true
public static Config getFenixFrameworkConfig(final String[] domainModels) { final Map<String, CasConfig> casConfigMap = new HashMap<String, CasConfig>(); for (final Object key : properties.keySet()) { final String property = (String) key; int i = property.indexOf(".cas.enable"); if (i >= 0) { fin...
public static Config getFenixFrameworkConfig(final String[] domainModels) { final Map<String, CasConfig> casConfigMap = new HashMap<String, CasConfig>(); for (final Object key : properties.keySet()) { final String property = (String) key; int i = property.indexOf(".cas.enable"); if (i >= 0) { fin...
diff --git a/RichClient/src/main/java/com/tihiy/rclint/implement/ControlPanel.java b/RichClient/src/main/java/com/tihiy/rclint/implement/ControlPanel.java index 0443d44..43b4c28 100644 --- a/RichClient/src/main/java/com/tihiy/rclint/implement/ControlPanel.java +++ b/RichClient/src/main/java/com/tihiy/rclint/implement/C...
true
true
private void initComponent(){ butChooseSignal = new JButton("Choose Signal"); butChooseFirstLayerSignal = new JButton("First Layer Signal"); butChooseBaseSignal = new JButton("Base signal"); butCalculate = new JButton("Calculate"); butDefault = new JButton("Default signal");...
private void initComponent(){ butChooseSignal = new JButton("Choose Signal"); butChooseFirstLayerSignal = new JButton("First Layer Signal"); butChooseBaseSignal = new JButton("Base signal"); butCalculate = new JButton("Calculate"); butDefault = new JButton("Default signal");...
diff --git a/src/edu/osu/cse/meisam/interpreter/Interpreter.java b/src/edu/osu/cse/meisam/interpreter/Interpreter.java index c523365..61e17d7 100644 --- a/src/edu/osu/cse/meisam/interpreter/Interpreter.java +++ b/src/edu/osu/cse/meisam/interpreter/Interpreter.java @@ -1,57 +1,57 @@ /** * Lisp Subinterpreter, an inte...
true
true
public static void main(final String[] args) { try { final Interpreter interpreter = new Interpreter(System.in, System.out); interpreter.interpret(); } catch (final Exception ex) { System.out.println("Error: " + ex.getMessage()); } ...
public static void main(final String[] args) { try { final Interpreter interpreter = new Interpreter(System.in, System.out); interpreter.interpret(); } catch (final Exception ex) { System.err.println("Error: " + ex.getMessage()); } ...
diff --git a/src/java/fedora/server/access/dissemination/DisseminationService.java b/src/java/fedora/server/access/dissemination/DisseminationService.java index 67b5f5546..7959beb4a 100755 --- a/src/java/fedora/server/access/dissemination/DisseminationService.java +++ b/src/java/fedora/server/access/dissemination/Disse...
true
true
public MIMETypedStream assembleDissemination(Context context, String PID, Hashtable h_userParms, DisseminationBindingInfo[] dissBindInfoArray, String reposBaseURL) throws ServerException { if (reposBaseURL == null || reposBaseURL.equals("")) { throw new DisseminationException("[Disseminat...
public MIMETypedStream assembleDissemination(Context context, String PID, Hashtable h_userParms, DisseminationBindingInfo[] dissBindInfoArray, String reposBaseURL) throws ServerException { if (reposBaseURL == null || reposBaseURL.equals("")) { throw new DisseminationException("[Disseminat...
diff --git a/src/webrender/java/nextapp/echo2/webrender/ClientAnalyzerProcessor.java b/src/webrender/java/nextapp/echo2/webrender/ClientAnalyzerProcessor.java index 2f730c4a..a0bc7e5c 100644 --- a/src/webrender/java/nextapp/echo2/webrender/ClientAnalyzerProcessor.java +++ b/src/webrender/java/nextapp/echo2/webrender/Cl...
true
true
private void analyze(ClientProperties clientProperties) { Connection conn = WebRenderServlet.getActiveConnection(); Enumeration localeEnum = conn.getRequest().getLocales(); List localeList = new ArrayList(); while (localeEnum.hasMoreElements()) { localeList.add(l...
private void analyze(ClientProperties clientProperties) { Connection conn = WebRenderServlet.getActiveConnection(); Enumeration localeEnum = conn.getRequest().getLocales(); List localeList = new ArrayList(); while (localeEnum.hasMoreElements()) { localeList.add(l...
diff --git a/src/dataStructure/PointQuadTree.java b/src/dataStructure/PointQuadTree.java index 609c9e5..7255f42 100644 --- a/src/dataStructure/PointQuadTree.java +++ b/src/dataStructure/PointQuadTree.java @@ -1,106 +1,106 @@ package dataStructure; import java.util.ArrayList; import java.math.BigDecimal; /** *...
true
true
private ArrayList<Point> getRect(Node h, Interval2D rect){ if (h == null) return null; double xmin = rect.intervalX.low; double ymin = rect.intervalY.low; double xmax = rect.intervalX.high; double ymax = rect.intervalY.high; if (rect.contains(h.point.getX().doubleValue(), h.point.getY().double...
private ArrayList<Point> getRect(Node h, Interval2D rect){ if (h == null) return null; double xmin = rect.getIntervalX().getLow(); double ymin = rect.getIntervalY().getLow(); double xmax = rect.getIntervalX().getHigh(); double ymax = rect.getIntervalY().getHigh(); if (rect.contains(h.point.get...
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 24ac0ad6..d7f749eb 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -1,644 +1,644 @@ /* * Essentials - ...
true
true
public void onEnable() { execTimer = new ExecuteTimer(); execTimer.start(); i18n = new I18n(this); i18n.onEnable(); execTimer.mark("I18n1"); final PluginManager pm = getServer().getPluginManager(); for (Plugin plugin : pm.getPlugins()) { if (plugin.getDescription().getName().startsWith("Essentials"...
public void onEnable() { execTimer = new ExecuteTimer(); execTimer.start(); i18n = new I18n(this); i18n.onEnable(); execTimer.mark("I18n1"); final PluginManager pm = getServer().getPluginManager(); for (Plugin plugin : pm.getPlugins()) { if (plugin.getDescription().getName().startsWith("Essentials"...
diff --git a/src/org/proofpad/Acl2Parser.java b/src/org/proofpad/Acl2Parser.java index 75f7443..a9cf20e 100755 --- a/src/org/proofpad/Acl2Parser.java +++ b/src/org/proofpad/Acl2Parser.java @@ -1,759 +1,761 @@ package org.proofpad; import java.io.File; import java.io.FileNotFoundException; import java.io.Serializa...
false
true
public ParseResult parse(RSyntaxDocument doc, String style /* ignored */) { DefaultParseResult result = new DefaultParseResult(this); int lines = doc.getDefaultRootElement().getElementCount(); result.setParsedLines(0, lines); if (!Prefs.showErrors.get()) { for (ParseListener pl : parseListeners) { pl.wa...
public ParseResult parse(RSyntaxDocument doc, String style /* ignored */) { DefaultParseResult result = new DefaultParseResult(this); int lines = doc.getDefaultRootElement().getElementCount(); result.setParsedLines(0, lines); if (!Prefs.showErrors.get()) { for (ParseListener pl : parseListeners) { pl.wa...
diff --git a/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java b/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java index 64816b62..0b2755a2 100644 --- a/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java +++ b/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java @...
false
true
public boolean execute(CommandSender sender, String currentAlias, String[] args) { if (!testPermission(sender)) return true; if (args.length < 1 || args[0].length() == 0) { sender.sendMessage(ChatColor.RED + "Usage: /scoreboard <objectives|players|teams>"); return...
public boolean execute(CommandSender sender, String currentAlias, String[] args) { if (!testPermission(sender)) return true; if (args.length < 1 || args[0].length() == 0) { sender.sendMessage(ChatColor.RED + "Usage: /scoreboard <objectives|players|teams>"); return...
diff --git a/src/org/geometerplus/fbreader/network/opds/OpenSearchDescription.java b/src/org/geometerplus/fbreader/network/opds/OpenSearchDescription.java index 5dbd8de0..147ee1e1 100644 --- a/src/org/geometerplus/fbreader/network/opds/OpenSearchDescription.java +++ b/src/org/geometerplus/fbreader/network/opds/OpenSear...
true
true
public String makeQuery(String searchTerms) { final StringBuffer query = new StringBuffer(); final Matcher m = Pattern.compile("\\{(.*)\\}").matcher(Template); while (m.find()) { String name = m.group(1); if (name == null || name.length() == 0 || name.contains(":")) { return null; } final boolean...
public String makeQuery(String searchTerms) { final StringBuffer query = new StringBuffer(); final Matcher m = Pattern.compile("\\{([^}]*)\\}").matcher(Template); while (m.find()) { String name = m.group(1); if (name == null || name.length() == 0 || name.contains(":")) { return null; } final bool...
diff --git a/pipesFilters/src/main/java/edu/integration/patterns/Main.java b/pipesFilters/src/main/java/edu/integration/patterns/Main.java index be2d97e..44b1843 100644 --- a/pipesFilters/src/main/java/edu/integration/patterns/Main.java +++ b/pipesFilters/src/main/java/edu/integration/patterns/Main.java @@ -1,34 +1,34 ...
true
true
public static void main(String[] args) { // Initialize Spring application context ApplicationContext ac = new ClassPathXmlApplicationContext( "classpath:META-INF/spring/integration/spring-integration-context.xml"); // Get the reseller bean Reseller testService = ac.g...
public static void main(String[] args) { // Initialize Spring application context ApplicationContext ac = new ClassPathXmlApplicationContext( "classpath:META-INF/spring/integration/spring-integration-context.xml"); // Get the reseller bean Reseller testService = ac.g...
diff --git a/grid-incubation/incubator/projects/ExtendedSDK43QueryProcessor/projects/SDK43SortLimitQueryProcessor/src/org/cagrid/sdkquery43/extension/processor/CustomQueryProcessor.java b/grid-incubation/incubator/projects/ExtendedSDK43QueryProcessor/projects/SDK43SortLimitQueryProcessor/src/org/cagrid/sdkquery43/exten...
true
true
public Iterator<CQLResult> processQueryAndIterate(CQLQuery query) throws QueryProcessingException { LOG.debug("Starting process query and iterate results"); CQLQuery runQuery = query; if (runQuery.getCQLQueryModifier() != null && runQuery.getCQLQueryModifier().getNamedAttribute() != null) { ...
public Iterator<CQLResult> processQueryAndIterate(CQLQuery query) throws QueryProcessingException { LOG.debug("Starting process query and iterate results"); CQLQuery runQuery = query; if (runQuery.getCQLQueryModifier() != null && runQuery.getCQLQueryModifier().getNamedAttribute() != null) { ...
diff --git a/core/Parser.java b/core/Parser.java index 35ac83a..5dedee6 100644 --- a/core/Parser.java +++ b/core/Parser.java @@ -1,74 +1,74 @@ package core; import java.lang.reflect.Method; import java.lang.String; import cmd.*; /* * Parser * The Parser takes a raw String entered at the prompt. The general f...
true
true
public static Object parse (String rawCmd) { String cmd; String[] params; String[] stringParse; // Remove leading/trailing whitespace rawCmd = rawCmd.trim(); rawCmd = rawCmd.toLowerCase(); //Separate input into individual words and separate into the command...
public static Object parse (String rawCmd) { String cmd; String[] params; String[] stringParse; // Remove leading/trailing whitespace rawCmd = rawCmd.trim(); rawCmd = rawCmd.toLowerCase(); //Separate input into individual words and separate into the command...
diff --git a/src/java/davmail/exchange/VCalendar.java b/src/java/davmail/exchange/VCalendar.java index ceb0bd7..3974958 100644 --- a/src/java/davmail/exchange/VCalendar.java +++ b/src/java/davmail/exchange/VCalendar.java @@ -1,567 +1,570 @@ /* * DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway * Copyright (C) 20...
true
true
protected void fixVCalendar(boolean fromServer) { // set iCal 4 global X-CALENDARSERVER-ACCESS from CLASS if (fromServer) { setPropertyValue("X-CALENDARSERVER-ACCESS", getCalendarServerAccess()); } // iCal 4 global X-CALENDARSERVER-ACCESS String calendarServerAcc...
protected void fixVCalendar(boolean fromServer) { // set iCal 4 global X-CALENDARSERVER-ACCESS from CLASS if (fromServer) { setPropertyValue("X-CALENDARSERVER-ACCESS", getCalendarServerAccess()); } // iCal 4 global X-CALENDARSERVER-ACCESS String calendarServerAcc...
diff --git a/graphml-impl/src/test/java/org/cytoscape/data/reader/graphml/GraphMLReaderTest.java b/graphml-impl/src/test/java/org/cytoscape/data/reader/graphml/GraphMLReaderTest.java index a0898e99f..56864720c 100644 --- a/graphml-impl/src/test/java/org/cytoscape/data/reader/graphml/GraphMLReaderTest.java +++ b/graphml...
false
true
public void testReadAttrGraph() throws Exception { File file = new File("src/test/resources/simpleWithAttributes.xml"); InputStream stream = file.toURI().toURL().openStream(); GraphMLReader reader = new GraphMLReader(stream, layouts, netFactory, viewFactory, rootFactory); assertNotNull(reader); reader.run(tm...
public void testReadAttrGraph() throws Exception { File file = new File("src/test/resources/simpleWithAttributes.xml"); InputStream stream = file.toURI().toURL().openStream(); GraphMLReader reader = new GraphMLReader(stream, layouts, netFactory, viewFactory, rootFactory); assertNotNull(reader); reader.run(tm...
diff --git a/src/gameEngine/GameEngine.java b/src/gameEngine/GameEngine.java index 3b371ac..c2a7123 100644 --- a/src/gameEngine/GameEngine.java +++ b/src/gameEngine/GameEngine.java @@ -1,582 +1,582 @@ package gameEngine; import java.util.*; import participant.Chips; import participant.Player; import table.Tabl...
false
true
public void gameStart() { reset(); /* * temporarily adding players here for testing purposes, * later needs to be modified to create/accept players/spectators */ Player bob = new Player("bob","bob"); BlackjackHand hb = new BlackjackHand(); ArrayList<BlackjackHand> hbb = new ArrayList...
public void gameStart() { reset(); /* * temporarily adding players here for testing purposes, * later needs to be modified to create/accept players/spectators */ Player bob = new Player("bob","bob"); BlackjackHand hb = new BlackjackHand(); ArrayList<BlackjackHand> hbb = new ArrayList...
diff --git a/src/main/java/nl/lolmen/sortal/SBlockListener.java b/src/main/java/nl/lolmen/sortal/SBlockListener.java index 1af51a0..43e9737 100644 --- a/src/main/java/nl/lolmen/sortal/SBlockListener.java +++ b/src/main/java/nl/lolmen/sortal/SBlockListener.java @@ -1,63 +1,63 @@ package nl.lolmen.sortal; import java...
false
true
public void onBlockBreak(BlockBreakEvent event){ Block block = event.getBlock(); if ((block.getType() == Material.SIGN_POST || block.getType() == Material.WALL_SIGN)) { if(!event.getPlayer().hasPermission("sortal.delsign")){ event.getPlayer().sendMessage("[Sortal] You do not have permissions to destroy a re...
public void onBlockBreak(BlockBreakEvent event){ Block block = event.getBlock(); if ((block.getType() == Material.SIGN_POST || block.getType() == Material.WALL_SIGN)) { if(!plugin.loc.containsKey(block.getLocation())){ return; } if(!event.getPlayer().hasPermission("sortal.delsign")){ event.getPlay...
diff --git a/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/war/ui/util/J2EEWebAppItemProvider.java b/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/war/ui/util/J2EEWebAppItemProvider.java index 1e9f72562..c48e3afa7 100644 --- a/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/e...
true
true
public void notifyChanged(Notification notification) { // We only care about adds and removes for the different item provider // groups if (notification.getEventType() == Notification.ADD || notification.getEventType() == Notification.ADD_MANY || notification.getEventType() == Notification.REMOVE || notification...
public void notifyChanged(Notification notification) { if (children == null || children.isEmpty()) initChildren(); // We only care about adds and removes for the different item provider // groups if (notification.getEventType() == Notification.ADD || notification.getEventType() == Notification.ADD_MANY || n...
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/tta/architecture/impl/ArchitectureFactoryImpl.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/tta/architecture/impl/ArchitectureFactoryImpl.java index 820ebbbf3..15a634e86 100644 --- a/eclipse/plugins/net.sf.orcc.backends/sr...
true
true
public TTA createTTADefault(String name) { TTA tta = createTTA(name); // Address spaces tta.setData(createAddressSpace("data", 8, 0, 131071)); tta.setProgram(createAddressSpace("instructions", 8, 0, 8191)); // Buses Bus bus0 = createBusDefault(0, 32); Bus bus1 = createBusDefault(1, 32); tta.getBuses()....
public TTA createTTADefault(String name) { TTA tta = createTTA(name); // Address spaces tta.setData(createAddressSpace("data", 8, 0, 131071)); tta.setProgram(createAddressSpace("instructions", 8, 0, 8191)); // Buses Bus bus0 = createBusDefault(0, 32); Bus bus1 = createBusDefault(1, 32); tta.getBuses()....
diff --git a/usage/src/test/java/com/ning/billing/usage/timeline/TestDateTimeUtils.java b/usage/src/test/java/com/ning/billing/usage/timeline/TestDateTimeUtils.java index fc86f8478..4ef9ea234 100644 --- a/usage/src/test/java/com/ning/billing/usage/timeline/TestDateTimeUtils.java +++ b/usage/src/test/java/com/ning/billi...
true
true
public void testRoundTrip() throws Exception { final DateTime utcNow = clock.getUTCNow(); final int unixSeconds = DateTimeUtils.unixSeconds(utcNow); final DateTime dateTimeFromUnixSeconds = DateTimeUtils.dateTimeFromUnixSeconds(unixSeconds); Assert.assertEquals(Seconds.secondsBetwee...
public void testRoundTrip() throws Exception { final DateTime utcNow = clock.getUTCNow(); final int unixSeconds = DateTimeUtils.unixSeconds(utcNow); final DateTime dateTimeFromUnixSeconds = DateTimeUtils.dateTimeFromUnixSeconds(unixSeconds); Assert.assertEquals(Seconds.secondsBetwee...
diff --git a/src/com/movieadvisor/MovieDetails.java b/src/com/movieadvisor/MovieDetails.java index b5819ac..6993184 100644 --- a/src/com/movieadvisor/MovieDetails.java +++ b/src/com/movieadvisor/MovieDetails.java @@ -1,408 +1,416 @@ package com.movieadvisor; import java.io.IOException; import java.net.HttpURLConne...
false
true
protected void onPostExecute(Movie result) { if(result == null) { Toast.makeText(MovieDetails.this, "Details unavaliable", Toast.LENGTH_SHORT).show(); MovieDetails.this.finish(); return; } m = result; movieId = String.valueOf(m.idRT); movie.setText(m.name); thumb = (ImageView) fin...
protected void onPostExecute(Movie result) { if(result == null) { Toast.makeText(MovieDetails.this, "Details unavaliable", Toast.LENGTH_SHORT).show(); MovieDetails.this.finish(); return; } try { m = result; movieId = String.valueOf(m.idRT); movie.setText(m.name); thumb = (Im...
diff --git a/src/main/java/iReport/iReport.java b/src/main/java/iReport/iReport.java index 80eceda..8dc9cc9 100644 --- a/src/main/java/iReport/iReport.java +++ b/src/main/java/iReport/iReport.java @@ -1,53 +1,52 @@ package iReport; import java.lang.reflect.Field; import java.util.Set; import org.bukkit.command....
true
true
public void onEnable() { try { Field field = SimpleCommandMap.class.getDeclaredField("fallbackCommands"); field.setAccessible(true); ((Set) field.get(null)).add(new HReport(this)); ((Set) field.get(null)).add(new greport(this)); ((Set) field.get(nu...
public void onEnable() { try { SimpleCommandMap map = new SimpleCommandMap(getServer()); map.register("iReport",new HReport(this)); map.register("iReport",new greport(this)); map.register("iReport",new sreport(this)); map.register("iReport",new ire...
diff --git a/merger/src/main/java/com/metamx/druid/merger/coordinator/TaskQueue.java b/merger/src/main/java/com/metamx/druid/merger/coordinator/TaskQueue.java index e16912b4c6..8dd44cb513 100644 --- a/merger/src/main/java/com/metamx/druid/merger/coordinator/TaskQueue.java +++ b/merger/src/main/java/com/metamx/druid/mer...
false
true
public void bootstrap() { giant.lock(); try { Preconditions.checkState(!active, "queue must be stopped"); log.info("Bootstrapping queue (and associated lockbox)"); queue.clear(); taskLockbox.clear(); // Add running tasks to the queue final List<Task> runningTasks = ta...
public void bootstrap() { giant.lock(); try { Preconditions.checkState(!active, "queue must be stopped"); log.info("Bootstrapping queue (and associated lockbox)"); queue.clear(); taskLockbox.clear(); // Add running tasks to the queue final List<Task> runningTasks = ta...
diff --git a/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/ui/form/BooleanFormPropertyRenderer.java b/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/ui/form/BooleanFormPropertyRenderer.java index ebbf88d18..217ede589 100644 --- a/activiti-webapp-explorer2/src/main/java/org/activiti/explor...
true
true
public Field getPropertyField(FormProperty formProperty) { CheckBox checkBox = new CheckBox(getPropertyLabel(formProperty)); checkBox.setRequired(formProperty.isRequired()); checkBox.setEnabled(formProperty.isWritable()); if (formProperty.getValue() != null) { checkBox.setValue(formPropert...
public Field getPropertyField(FormProperty formProperty) { CheckBox checkBox = new CheckBox(getPropertyLabel(formProperty)); checkBox.setRequired(formProperty.isRequired()); checkBox.setEnabled(formProperty.isWritable()); if (formProperty.getValue() != null) { Boolean value = new Boolean(B...
diff --git a/org/python/core/CachedJarsPackageManager.java b/org/python/core/CachedJarsPackageManager.java index 53509ab3..99cf7d4f 100644 --- a/org/python/core/CachedJarsPackageManager.java +++ b/org/python/core/CachedJarsPackageManager.java @@ -1,518 +1,518 @@ // Copyright � Corporation for National Research Initiat...
true
true
private void addJarToPackages(URL jarurl,File jarfile,boolean cache) { try { boolean caching = jarfiles!=null; URLConnection jarconn = null; boolean localfile = true; if (jarfile == null) { jarconn = jarurl.openConnect...
private void addJarToPackages(URL jarurl,File jarfile,boolean cache) { try { boolean caching = jarfiles!=null; URLConnection jarconn = null; boolean localfile = true; if (jarfile == null) { jarconn = jarurl.openConnect...
diff --git a/bwcaldav/src/org/bedework/caldav/bwserver/BwSysIntfImpl.java b/bwcaldav/src/org/bedework/caldav/bwserver/BwSysIntfImpl.java index af5b95b..da5aea3 100644 --- a/bwcaldav/src/org/bedework/caldav/bwserver/BwSysIntfImpl.java +++ b/bwcaldav/src/org/bedework/caldav/bwserver/BwSysIntfImpl.java @@ -1,918 +1,919 @@...
false
true
public void copyMove(BwEvent from, Collection<BwEventProxy>overrides, BwCalendar to, String name, boolean copy, boolean overwrite) throws WebdavException { /* A move of an entity to the same calendar is essentially a renam...
public void copyMove(BwEvent from, Collection<BwEventProxy>overrides, BwCalendar to, String name, boolean copy, boolean overwrite) throws WebdavException { /* A move of an entity to the same calendar is essentially a renam...
diff --git a/sonar-server/src/main/java/org/sonar/server/database/EmbeddedDatabase.java b/sonar-server/src/main/java/org/sonar/server/database/EmbeddedDatabase.java index e678f5551b..9c1a726598 100644 --- a/sonar-server/src/main/java/org/sonar/server/database/EmbeddedDatabase.java +++ b/sonar-server/src/main/java/org/s...
true
true
public void start() { File dbHome = getDataDirectory(settings); if (dbHome.exists() && !dbHome.isDirectory()) { throw new SonarException("Database home " + dbHome.getPath() + " is not a directory"); } if (!dbHome.exists()) { dbHome.mkdirs(); } String port = getSetting(DatabaseProp...
public void start() { File dbHome = getDataDirectory(settings); if (dbHome.exists() && !dbHome.isDirectory()) { throw new SonarException("Database home " + dbHome.getPath() + " is not a directory"); } if (!dbHome.exists()) { dbHome.mkdirs(); } String port = getSetting(DatabaseProp...
diff --git a/src/main/java/jp/sf/fess/job/TriggeredJob.java b/src/main/java/jp/sf/fess/job/TriggeredJob.java index ed8102086..98c56fa8d 100644 --- a/src/main/java/jp/sf/fess/job/TriggeredJob.java +++ b/src/main/java/jp/sf/fess/job/TriggeredJob.java @@ -1,117 +1,122 @@ /* * Copyright 2009-2013 the Fess Project and th...
false
true
public void execute(final ScheduledJob scheduledJob) { final SystemHelper systemHelper = SingletonS2Container .getComponent(SystemHelper.class); final JobLog jobLog = new JobLog(scheduledJob); final String scriptType = scheduledJob.getScriptType(); final String script...
public void execute(final ScheduledJob scheduledJob) { final SystemHelper systemHelper = SingletonS2Container .getComponent(SystemHelper.class); final JobLog jobLog = new JobLog(scheduledJob); final String scriptType = scheduledJob.getScriptType(); final String script...
diff --git a/src/lang/psi/impl/statements/LuaFunctionDefinitionStatementImpl.java b/src/lang/psi/impl/statements/LuaFunctionDefinitionStatementImpl.java index 4b7d3781..fb8996b5 100644 --- a/src/lang/psi/impl/statements/LuaFunctionDefinitionStatementImpl.java +++ b/src/lang/psi/impl/statements/LuaFunctionDefinitionStat...
true
true
public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState resolveState, PsiElement lastParent, @NotNull PsiElement place) { if (lastParent != null && las...
public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState resolveState, PsiElement lastParent, @NotNull PsiElement place) { if (lastParent != null && las...
diff --git a/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/SearchTemplate.java b/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/SearchTemplate.java index 4ae43773..5104e434 100644 --- a/spring-social-twitter/src/main/java/org/springframework/social/twit...
true
true
public SearchResults search(String query, int page, int resultsPerPage, long sinceId, long maxId) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("query", query); parameters.put("rpp", String.valueOf(resultsPerPage)); parameters.put("page", String.valueOf(page)); String searc...
public SearchResults search(String query, int page, int resultsPerPage, long sinceId, long maxId) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("query", query); parameters.put("rpp", String.valueOf(resultsPerPage)); parameters.put("page", String.valueOf(page)); String searc...
diff --git a/core/common/src/test/java/org/openengsb/core/common/workflow/model/ProcessBagTest.java b/core/common/src/test/java/org/openengsb/core/common/workflow/model/ProcessBagTest.java index 5ca050460..ca28be6e3 100644 --- a/core/common/src/test/java/org/openengsb/core/common/workflow/model/ProcessBagTest.java +++ ...
true
true
public void setProcessIdLater_shouldBlockGetter() throws Exception { Callable<String> task = new Callable<String>() { @Override public String call() throws Exception { return pb.getProcessId(); } }; Future<String> processIdFuture = Executor...
public void setProcessIdLater_shouldBlockGetter() throws Exception { Callable<String> task = new Callable<String>() { @Override public String call() throws Exception { return pb.getProcessId(); } }; Future<String> processIdFuture = Executor...
diff --git a/src/me/slaps/iCoLand/LandManager.java b/src/me/slaps/iCoLand/LandManager.java index 6abb094..8b2de45 100644 --- a/src/me/slaps/iCoLand/LandManager.java +++ b/src/me/slaps/iCoLand/LandManager.java @@ -1,330 +1,330 @@ package me.slaps.iCoLand; import java.io.File; import java.sql.Timestamp; import java...
true
true
public boolean modifyPermTags(int id, String args) { HashMap<String, Boolean> perms = Land.parseAddonTags(iCoLand.landMgr.getPerms(id)); if ( args.isEmpty() ) return false; String[] split = args.split(" "); for(String tag : split ) { String[] keys = tag.split(":"...
public boolean modifyPermTags(int id, String args) { HashMap<String, Boolean> perms = Land.parsePermTags(iCoLand.landMgr.getPerms(id)); if ( args.isEmpty() ) return false; String[] split = args.split(" "); for(String tag : split ) { String[] keys = tag.split(":")...
diff --git a/src/com/dmdirc/parser/irc/ProcessListModes.java b/src/com/dmdirc/parser/irc/ProcessListModes.java index b3d94a00f..2a2406467 100644 --- a/src/com/dmdirc/parser/irc/ProcessListModes.java +++ b/src/com/dmdirc/parser/irc/ProcessListModes.java @@ -1,220 +1,227 @@ /* * Copyright (c) 2006-2009 Chris Smith, Sh...
false
true
public void process(String sParam, String[] token) { ChannelInfo channel = getChannelInfo(token[3]); String thisIRCD = myParser.getIRCD(true).toLowerCase(); String item = ""; String owner = ""; byte tokenStart = 4; // Where do the relevent tokens start? boolean isCleverMode = false; long time = 0; char...
public void process(String sParam, String[] token) { ChannelInfo channel = getChannelInfo(token[3]); String thisIRCD = myParser.getIRCD(true).toLowerCase(); String item = ""; String owner = ""; byte tokenStart = 4; // Where do the relevent tokens start? boolean isCleverMode = false; long time = 0; char...
diff --git a/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java b/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java index 657504e72..2ef617a15 100644 --- a/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java +++ ...
true
true
public void deploy(DeploymentEntity deployment) { List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>(); Map<String, ResourceEntity> resources = deployment.getResources(); for (String resourceName : resources.keySet()) { LOG.info("Processing resource " + resou...
public void deploy(DeploymentEntity deployment) { List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>(); Map<String, ResourceEntity> resources = deployment.getResources(); for (String resourceName : resources.keySet()) { LOG.info("Processing resource " + resou...
diff --git a/run-all-junit-tests/testsrc/AllTests.java b/run-all-junit-tests/testsrc/AllTests.java index 57ccf35bf..116812b20 100644 --- a/run-all-junit-tests/testsrc/AllTests.java +++ b/run-all-junit-tests/testsrc/AllTests.java @@ -1,60 +1,60 @@ /* ******************************************************************* ...
true
true
public static TestSuite suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(AjbrowserModuleTests.suite()); suite.addTest(AjdeModuleTests.suite()); suite.addTest(AjdocModuleTests.suite()); suite.addTest(AsmModuleTests.suite()); suite.addT...
public static TestSuite suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(AjbrowserModuleTests.suite()); suite.addTest(AjdeModuleTests.suite()); suite.addTest(AjdocModuleTests.suite()); suite.addTest(AsmModuleTests.suite()); suite.addT...
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSResultSetRow.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSResultSetRow.java index 411c9e041..264963972 100644 --- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSResultSetRow....
true
true
public Object get( String name, Scriptable start ) { if( "_outer".equalsIgnoreCase( name )) { if( this.helper.getParent( )!= null) return helper.getParent( ).getJSRowObject( ); else return null; } int rowIndex = -1; try { rowIndex = odiResult.getCurrentResultIndex( ); } catch ( BirtEx...
public Object get( String name, Scriptable start ) { if( "_outer".equalsIgnoreCase( name )) { if( this.helper.getParent( )!= null) return helper.getParent( ).getJSRowObject( ); else return null; } int rowIndex = -1; try { rowIndex = odiResult.getCurrentResultIndex( ); } catch ( BirtEx...
diff --git a/bobo-browse/src/com/browseengine/bobo/facets/impl/DynamicTimeRangeFacetHandler.java b/bobo-browse/src/com/browseengine/bobo/facets/impl/DynamicTimeRangeFacetHandler.java index 31238c2..d501ac1 100644 --- a/bobo-browse/src/com/browseengine/bobo/facets/impl/DynamicTimeRangeFacetHandler.java +++ b/bobo-browse...
true
true
public DynamicTimeRangeFacetHandler(String name, String dataFacetName, long currentTime, List<String> ranges) throws ParseException { super(name, dataFacetName); _formatter = new ThreadLocal<DecimalFormat>() { protected DecimalFormat initialValue() { return new DecimalFormat(NUMBER_F...
public DynamicTimeRangeFacetHandler(String name, String dataFacetName, long currentTime, List<String> ranges) throws ParseException { super(name, dataFacetName); _formatter = new ThreadLocal<DecimalFormat>() { protected DecimalFormat initialValue() { return new DecimalFormat(NUMBER_F...
diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java b/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java index dcf910f0c1..058dc978ef 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java +++ b/lucene/t...
true
true
public void writeBytes(byte[] b, int offset, int len) throws IOException { long freeSpace = dir.maxSize == 0 ? 0 : dir.maxSize - dir.sizeInBytes(); long realUsage = 0; if (dir.rateLimiter != null && len >= 10) { dir.rateLimiter.pause(len); } // If MockRAMDir crashed since we were opened, t...
public void writeBytes(byte[] b, int offset, int len) throws IOException { long freeSpace = dir.maxSize == 0 ? 0 : dir.maxSize - dir.sizeInBytes(); long realUsage = 0; if (dir.rateLimiter != null && len >= 1000) { dir.rateLimiter.pause(len); } // If MockRAMDir crashed since we were opened,...