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/Experimental/src/package_APLessons_TrialOne/ReadWriteTwo.java b/Experimental/src/package_APLessons_TrialOne/ReadWriteTwo.java index 1dd4f8f..720c71e 100644 --- a/Experimental/src/package_APLessons_TrialOne/ReadWriteTwo.java +++ b/Experimental/src/package_APLessons_TrialOne/ReadWriteTwo.java @@ -1,166 +1,16...
true
true
public static void main(String[] args) { //initialization System.out.println("This program was written by James Daniel"); System.out.println(); String varOne; System.out.print("Enter your name: "); Scanner readStuff = new Scanner(System.in); varOne = readStuff.nextLine(); ...
public static void main(String[] args) { //initialization System.out.println("This program was written by James Daniel"); System.out.println(); String varOne; System.out.print("Enter your name: "); Scanner readStuff = new Scanner(System.in); varOne = readStuff.nextLine(); ...
diff --git a/direWolfInABottle/client/ItemRenderDWIAB.java b/direWolfInABottle/client/ItemRenderDWIAB.java index 535bd5e..26f7966 100644 --- a/direWolfInABottle/client/ItemRenderDWIAB.java +++ b/direWolfInABottle/client/ItemRenderDWIAB.java @@ -1,70 +1,70 @@ package jcj94.direWolfInABottle.client; import org.lwjgl....
false
true
public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch(type) { case EQUIPPED: { Minecraft.getMinecraft().renderEngine.bindTexture("/dwiab/DWIAB.png"); if(!((EntityPlayer)data[1] == Minecraft.getMinecraft().renderViewEntity && Minecraft.getMinecraft().gameSettings.thirdPers...
public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch(type) { case EQUIPPED: { Minecraft.getMinecraft().renderEngine.bindTexture("/jcj94/direWolfInABottle/model/DWIAB.png"); if(!((EntityPlayer)data[1] == Minecraft.getMinecraft().renderViewEntity && Minecraft.getMinecraft(...
diff --git a/test/com/google/inject/internal/LineNumbersTest.java b/test/com/google/inject/internal/LineNumbersTest.java index f35d46e3..dfed5394 100644 --- a/test/com/google/inject/internal/LineNumbersTest.java +++ b/test/com/google/inject/internal/LineNumbersTest.java @@ -1,62 +1,62 @@ /** * Copyright (C) 2008 Goo...
true
true
public void testCanHandleLineNumbersForGuiceGeneratedClasses() { try { Guice.createInjector(new AbstractModule() { protected void configure() { bindInterceptor(Matchers.only(A.class), Matchers.any(), new MethodInterceptor() { public Object invoke(MethodInvocat...
public void testCanHandleLineNumbersForGuiceGeneratedClasses() { try { Guice.createInjector(new AbstractModule() { protected void configure() { bindInterceptor(Matchers.only(A.class), Matchers.any(), new MethodInterceptor() { public Object invoke(MethodInvocat...
diff --git a/src/com/anysoftkeyboard/ui/settings/AddOnListPreference.java b/src/com/anysoftkeyboard/ui/settings/AddOnListPreference.java index 52b940f7..72aafeae 100644 --- a/src/com/anysoftkeyboard/ui/settings/AddOnListPreference.java +++ b/src/com/anysoftkeyboard/ui/settings/AddOnListPreference.java @@ -1,264 +1,263 ...
true
true
public View getView(int position, View convertView, ViewGroup parent) { final AddOn addOn = getItem(position); // inflate layout LayoutInflater inflator = (LayoutInflater) getContext() .getSystemService(Service.LAYOUT_INFLATER_SERVICE); View ro...
public View getView(int position, View convertView, ViewGroup parent) { final AddOn addOn = getItem(position); // inflate layout LayoutInflater inflator = (LayoutInflater) getContext() .getSystemService(Service.LAYOUT_INFLATER_SERVICE); View ro...
diff --git a/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/masking/MaskingTool.java b/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/masking/MaskingTool.java index b5d64eba1..041bbc2ff 100644 --- a/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/masking/MaskingTool.java +++ b/org.dawnsc...
true
true
public void createControl(Composite parent) { scrollComp = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL); final Group composite = new Group(scrollComp, SWT.NONE); composite.setLayout(new GridLayout(1, false)); final IImageTrace image = getImageTrace(); if (image!=null) { composite.setTe...
public void createControl(Composite parent) { scrollComp = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL); final Group composite = new Group(scrollComp, SWT.NONE); composite.setLayout(new GridLayout(1, false)); final IImageTrace image = getImageTrace(); if (image!=null) { composite.setTe...
diff --git a/sitebricks/src/main/java/com/google/sitebricks/compiler/HtmlParser.java b/sitebricks/src/main/java/com/google/sitebricks/compiler/HtmlParser.java index e2c7c2a..1ede460 100644 --- a/sitebricks/src/main/java/com/google/sitebricks/compiler/HtmlParser.java +++ b/sitebricks/src/main/java/com/google/sitebricks/...
true
true
private void parseStartTag() { tq.consume("<"); String tagName = tq.consumeWord(); if (!Strings.empty(tagName)) { // doesn't look like a start tag after all; put < back on stack and handle as text tq.addFirst("&lt;"); parseTextNode(); return; } ...
private void parseStartTag() { tq.consume("<"); String tagName = tq.consumeWord(); if (Strings.empty(tagName)) { // doesn't look like a start tag after all; put < back on stack and handle as text tq.addFirst("&lt;"); parseTextNode(); return; } ...
diff --git a/dspace-api/src/main/java/org/dspace/app/launcher/ScriptLauncher.java b/dspace-api/src/main/java/org/dspace/app/launcher/ScriptLauncher.java index 53a3115e8..910c2b156 100644 --- a/dspace-api/src/main/java/org/dspace/app/launcher/ScriptLauncher.java +++ b/dspace-api/src/main/java/org/dspace/app/launcher/Scr...
true
true
public static void main(String[] args) { // Check that there is at least one argument if (args.length < 1) { System.err.println("You must provide at least one command argument"); display(); System.exit(1); } // Initalise the service ma...
public static void main(String[] args) { // Check that there is at least one argument if (args.length < 1) { System.err.println("You must provide at least one command argument"); display(); System.exit(1); } // Initalise the service ma...
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/edit/InlineCellEditController.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/edit/InlineCellEditController.java index 5e45ca1c..4317b050 100644 --- a/org.eclipse.nebula.widgets.nattable...
true
true
public static boolean editCellInline(ILayerCell cell, Character initialEditValue, final Composite parent, IConfigRegistry configRegistry) { try { ActiveCellEditor.commit(); final List<String> configLabels = cell.getConfigLabels().getLabels(); Rectangle cellBounds = cell.getBounds(); ILayer layer = cell...
public static boolean editCellInline(ILayerCell cell, Character initialEditValue, final Composite parent, IConfigRegistry configRegistry) { try { ActiveCellEditor.commit(); final List<String> configLabels = cell.getConfigLabels().getLabels(); Rectangle cellBounds = cell.getBounds(); ILayer layer = cell...
diff --git a/src/main/java/com/superdownloader/proEasy/processors/FtpSender.java b/src/main/java/com/superdownloader/proEasy/processors/FtpSender.java index 7e4828f..982d47a 100644 --- a/src/main/java/com/superdownloader/proEasy/processors/FtpSender.java +++ b/src/main/java/com/superdownloader/proEasy/processors/FtpSen...
false
true
public void process(Exchange exchange) throws Exception { Message msg = exchange.getIn(); FtpUploader ftpUploader = new FtpUploaderCommons(); String ftp_user = (String) msg.getHeader(Headers.FTP_USERNAME); String ftp_pass = (String) msg.getHeader(Headers.FTP_PASSWORD); String ftp_server = (String) msg.getH...
public void process(Exchange exchange) throws Exception { Message msg = exchange.getIn(); FtpUploader ftpUploader = new FtpUploaderCommons(); String ftp_user = (String) msg.getHeader(Headers.FTP_USERNAME); String ftp_pass = (String) msg.getHeader(Headers.FTP_PASSWORD); String ftp_server = (String) msg.getH...
diff --git a/Bukkit-CleanChat/src/cleanChat/tjnome/main/conf/CleanChatConf.java b/Bukkit-CleanChat/src/cleanChat/tjnome/main/conf/CleanChatConf.java index 9be84b3..60400f3 100644 --- a/Bukkit-CleanChat/src/cleanChat/tjnome/main/conf/CleanChatConf.java +++ b/Bukkit-CleanChat/src/cleanChat/tjnome/main/conf/CleanChatConf....
true
true
public void load() { this.config = new YamlConfiguration(); this.configFile = new File(plugin.getDataFolder(), "config.yml"); //Server this.configDefaults.put("Server.remove-login-msg", false); this.configDefaults.put("Server.remove-logout-msg", false); if (!this.configFile.exists()) { for (String...
public void load() { this.config = new YamlConfiguration(); this.configFile = new File(plugin.getDataFolder(), "config.yml"); //Server this.configDefaults.put("Server.remove-login-msg", true); this.configDefaults.put("Server.remove-logout-msg", true); if (!this.configFile.exists()) { for (String k...
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/AutomaticUpdatesPreferencePage.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/prefs/AutomaticUpdatesPreferencePage.java index bb23bec22..d6dba46bc 100644 --- a/bundles/org.eclipse...
true
true
protected Control createContents(Composite parent) { Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 0; container.setLayout(layout); enabledCheck = new Button(container, SWT.CHECK); enabledCheck.setText(ProvSDKMessages...
protected Control createContents(Composite parent) { Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 0; container.setLayout(layout); enabledCheck = new Button(container, SWT.CHECK); enabledCheck.setText(ProvSDKMessages...
diff --git a/src/en/trudan/ConstructionSites/PlayerCommands.java b/src/en/trudan/ConstructionSites/PlayerCommands.java index 2a22c95..5e08cf6 100644 --- a/src/en/trudan/ConstructionSites/PlayerCommands.java +++ b/src/en/trudan/ConstructionSites/PlayerCommands.java @@ -1,57 +1,57 @@ package en.trudan.ConstructionSites;...
true
true
public static void proccess(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName(); if(commandName.equalsIgnoreCase("construct")) { if(args.length >= 1) { String subcommandName = args[0]; if(subcommandName.equalsIgnoreCase("trade")) { ...
public static void proccess(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName(); if(commandName.equalsIgnoreCase("construct")) { if(args.length >= 1) { String subcommandName = args[0]; if(subcommandName.equalsIgnoreCase("trade")) { ...
diff --git a/core/src/main/java/uk/ac/bbsrc/tgac/miso/core/data/impl/illumina/IlluminaRun.java b/core/src/main/java/uk/ac/bbsrc/tgac/miso/core/data/impl/illumina/IlluminaRun.java index 71a37c237..0001d242f 100644 --- a/core/src/main/java/uk/ac/bbsrc/tgac/miso/core/data/impl/illumina/IlluminaRun.java +++ b/core/src/main...
true
true
public IlluminaRun(String statusXml, User user) { try { Document statusDoc = SubmissionUtils.emptyDocument(); if (statusXml != null && !"".equals(statusXml)) { SubmissionUtils.transform(new UnicodeReader(statusXml), statusDoc); String runName = (statusDoc.getElementsByTagName("RunName...
public IlluminaRun(String statusXml, User user) { try { Document statusDoc = SubmissionUtils.emptyDocument(); if (statusXml != null && !"".equals(statusXml)) { SubmissionUtils.transform(new UnicodeReader(statusXml), statusDoc); String runName = (statusDoc.getElementsByTagName("RunName...
diff --git a/Tanks/src/blueMaggot/BlueMaggot.java b/Tanks/src/blueMaggot/BlueMaggot.java index 904e847..5c9fa20 100644 --- a/Tanks/src/blueMaggot/BlueMaggot.java +++ b/Tanks/src/blueMaggot/BlueMaggot.java @@ -1,183 +1,183 @@ package blueMaggot; import entity.Tank; import gfx.MenuBackground; import gfx.MenuLevelSe...
true
true
public BlueMaggot() { try { ResourceManager. TANK1 = new RGBImage(ImageIO.read(getClass().getResourceAsStream("/graphics/Tank2.png"))); ResourceManager. TANK2 = new RGBImage(ImageIO.read(getClass().getResourceAsStream("/graphics/Tank2.png"))); ResourceManager. TANK3 = new RGBImage(ImageIO.read(getClass()....
public BlueMaggot() { try { ResourceManager. TANK1 = new RGBImage(ImageIO.read(getClass().getResourceAsStream("/graphics/Tank2.png"))); ResourceManager. TANK2 = new RGBImage(ImageIO.read(getClass().getResourceAsStream("/graphics/Tank2.png"))); ResourceManager. TANK3 = new RGBImage(ImageIO.read(getClass()....
diff --git a/src/bcut/UsefullThings.java b/src/bcut/UsefullThings.java index b1a9d26..ce7bb7b 100644 --- a/src/bcut/UsefullThings.java +++ b/src/bcut/UsefullThings.java @@ -1,122 +1,122 @@ package bcut; import java.util.logging.Level; import net.minecraft.src.Block; import net.minecraft.src.Item; import net.mi...
false
true
public void Init(FMLInitializationEvent evt) { usefullthingsBlock = new BlockUsefullThings(usefullthingsblockId); luminolampBlock = new BlockLuminolamp(luminolampBlockId); GameRegistry.registerBlock(usefullthingsBlock, ItemBlockUsefullThing.class); GameRegistry.registerBlock...
public void Init(FMLInitializationEvent evt) { usefullthingsBlock = new BlockUsefullThings(usefullthingsblockId); luminolampBlock = new BlockLuminolamp(luminolampBlockId); GameRegistry.registerBlock(usefullthingsBlock, ItemBlockUsefullThing.class); GameRegistry.registerBlock...
diff --git a/testing-project/asakusa-test-data-provider/src/test/java/com/asakusafw/testdriver/excel/ExcelSheetSinkTest.java b/testing-project/asakusa-test-data-provider/src/test/java/com/asakusafw/testdriver/excel/ExcelSheetSinkTest.java index e12afae7c..1c1f5e6b8 100644 --- a/testing-project/asakusa-test-data-provide...
true
true
public void many_columns() throws Exception { Object[] value = new Object[256]; Map<PropertyName, PropertyType> map = new TreeMap<PropertyName, PropertyType>(); for (int i = 0; i < value.length; i++) { map.put(PropertyName.newInstance(String.format("p%04x", i)), PropertyType.INT)...
public void many_columns() throws Exception { Object[] value = new Object[256]; Map<PropertyName, PropertyType> map = new TreeMap<PropertyName, PropertyType>(); for (int i = 0; i < value.length; i++) { map.put(PropertyName.newInstance(String.format("p%04x", i)), PropertyType.INT)...
diff --git a/p084.java b/p084.java index 26ce60e..b3baade 100644 --- a/p084.java +++ b/p084.java @@ -1,125 +1,136 @@ /* * Solution to Project Euler problem 84 * By Nayuki Minase * * http://nayuki.eigenstate.org/page/project-euler-solutions * https://github.com/nayuki/Project-Euler-solutions */ import ...
false
true
public String run() { final int[] visitCounts = new int[40]; CardDeck chance = new CardDeck(16); CardDeck communityChest = new CardDeck(16); int consecutiveDoubles = 0; int location = 0; for (int i = 0; i < 100000000; i++) { // Roll tetrahedral dice int die0 = random.nextInt(4) + 1; int die1 = ...
public String run() { final int[] visitCounts = new int[40]; CardDeck chance = new CardDeck(16); CardDeck communityChest = new CardDeck(16); int consecutiveDoubles = 0; int location = 0; for (int i = 0; i < 100000000; i++) { // Roll tetrahedral dice int die0 = random.nextInt(4) + 1; int die1 = ...
diff --git a/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.java b/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.java index 509f3791..719958fd 100644 --- a/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.java +++ b/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.ja...
true
true
public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, LinkerServices linkerServices) throws Exception { Object[] arguments = linkRequest.getArguments(); Object receiver = arguments[0]; Class<? extends Object> receiverClass = receiver.getClass(); Map<String, MethodHan...
public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, LinkerServices linkerServices) throws Exception { Object[] arguments = linkRequest.getArguments(); Object receiver = arguments[0]; Class<? extends Object> receiverClass = receiver.getClass(); Map<String, MethodHan...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/AcquisitionProcess.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/AcquisitionProcess.java index 7c830c63..65eae06f 100644 --- a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domai...
true
true
public boolean isAvailableForPerson(final Person person) { final User user = person.getUser(); return ExpenditureTrackingSystem.isAcquisitionCentralGroupMember(user) || ExpenditureTrackingSystem.isAcquisitionCentralManagerGroupMember(user) || ExpenditureTrackingSystem.isAccountingManagerGroupMember(user) ||...
public boolean isAvailableForPerson(final Person person) { final User user = person.getUser(); return ExpenditureTrackingSystem.isAcquisitionCentralGroupMember(user) || ExpenditureTrackingSystem.isAcquisitionCentralManagerGroupMember(user) || ExpenditureTrackingSystem.isAccountingManagerGroupMember(user) ||...
diff --git a/src/jvm/clj_json/JsonExt.java b/src/jvm/clj_json/JsonExt.java index b327cbb..a1fde0a 100644 --- a/src/jvm/clj_json/JsonExt.java +++ b/src/jvm/clj_json/JsonExt.java @@ -1,143 +1,143 @@ package clj_json; import org.codehaus.jackson.JsonToken; import org.codehaus.jackson.JsonParser; import org.codehaus....
true
true
public void generate(Object obj) throws Exception{ if (this.coercions != null) { IFn fn; while ((fn = (IFn)coercions.get(obj.getClass())) != null){ obj = fn.invoke(obj); } } if (obj instanceof String) { ...
public void generate(Object obj) throws Exception{ if (this.coercions != null && obj != null) { IFn fn; while ((fn = (IFn)coercions.get(obj.getClass())) != null){ obj = fn.invoke(obj); } } if (obj instanceof...
diff --git a/galaxy-config-bundler/src/main/java/com/proofpoint/galaxy/configbundler/AddComponentCommand.java b/galaxy-config-bundler/src/main/java/com/proofpoint/galaxy/configbundler/AddComponentCommand.java index 259adc2..1d8147b 100644 --- a/galaxy-config-bundler/src/main/java/com/proofpoint/galaxy/configbundler/Add...
true
true
public Void call() throws Exception { Preconditions.checkNotNull(component, "component is null"); Git git = Git.open(new File(".")); Model model = new Model(git); Preconditions.checkArgument(model.getBundle(component) != null, "Component already exists: %s", compon...
public Void call() throws Exception { Preconditions.checkNotNull(component, "component is null"); Git git = Git.open(new File(".")); Model model = new Model(git); Preconditions.checkArgument(model.getBundle(component) == null, "Component already exists: %s", compon...
diff --git a/src/main/java/com/erdfelt/maven/xmlfresh/XmlFormatter.java b/src/main/java/com/erdfelt/maven/xmlfresh/XmlFormatter.java index 1c10b9b..debc71f 100644 --- a/src/main/java/com/erdfelt/maven/xmlfresh/XmlFormatter.java +++ b/src/main/java/com/erdfelt/maven/xmlfresh/XmlFormatter.java @@ -1,101 +1,99 @@ package...
true
true
public XmlFormatter() { tidy = new Tidy(); // Properties can be found at http://tidy.sourceforge.net/docs/quickref.html Properties props = new Properties(); props.setProperty("output-xml","true"); props.setProperty("input-xml","true"); props.setProperty("add-xml-s...
public XmlFormatter() { tidy = new Tidy(); // Properties can be found at http://tidy.sourceforge.net/docs/quickref.html Properties props = new Properties(); props.setProperty("output-xml","true"); props.setProperty("input-xml","true"); props.setProperty("add-xml-s...
diff --git a/java/opennlp/textgrounder/models/Model.java b/java/opennlp/textgrounder/models/Model.java index 3f060a02..11d5fb95 100644 --- a/java/opennlp/textgrounder/models/Model.java +++ b/java/opennlp/textgrounder/models/Model.java @@ -1,483 +1,484 @@ package opennlp.textgrounder.models; import java.io.IOExcepti...
true
true
public void writeXMLFile(String inputFilename, String outputFilename, List<Location> locations) throws Exception { BufferedWriter out = new BufferedWriter(new FileWriter(outputFilename)); int dotKmlIndex = outputFilename.lastIndexOf(".kml"); String contextFilename = outputFilename...
public void writeXMLFile(String inputFilename, String outputFilename, List<Location> locations) throws Exception { BufferedWriter out = new BufferedWriter(new FileWriter(outputFilename)); int dotKmlIndex = outputFilename.lastIndexOf(".kml"); String contextFilename = outputFilename...
diff --git a/ajaxterm/src/test/java/org/kohsuke/ajaxterm4j/SessionTest.java b/ajaxterm/src/test/java/org/kohsuke/ajaxterm4j/SessionTest.java index 3f535f6..2d4660e 100644 --- a/ajaxterm/src/test/java/org/kohsuke/ajaxterm4j/SessionTest.java +++ b/ajaxterm/src/test/java/org/kohsuke/ajaxterm4j/SessionTest.java @@ -1,29 +1...
false
true
public void basics() throws Exception { Session s = new Session(80,25,Session.getAjaxTerm(),"/bin/bash","-i"); assertThat(s.isAlive(), is(true)); s.write("echo hello world\n"); Thread.sleep(5000); String dump = s.getTerminal().dumpLatin1(); assertThat(dump, containsSt...
public void basics() throws Exception { Session s = new Session(80,25,Session.getAjaxTerm(),"/bin/bash","-i"); assertThat(s.isAlive(), is(true)); s.write("export PS1=:\n"); s.write("echo hello world\n"); Thread.sleep(5000); String dump = s.getTerminal().dumpLatin1(); ...
diff --git a/src/eu/trentorise/smartcampus/ac/UserRegistration.java b/src/eu/trentorise/smartcampus/ac/UserRegistration.java index 0ffc802..4cca452 100644 --- a/src/eu/trentorise/smartcampus/ac/UserRegistration.java +++ b/src/eu/trentorise/smartcampus/ac/UserRegistration.java @@ -1,53 +1,53 @@ package eu.trentorise.sm...
true
true
public static void upgradeuser(final Context ctx, final Activity activity) { builder = new AlertDialog.Builder(ctx); final AMSCAccessProvider accessprovider = new AMSCAccessProvider(); // // dialogbox for registration DialogInterface.OnClickListener updateDialogClickListener; updateDialogClickLis...
public static void upgradeuser(final Context ctx, final Activity activity) { builder = new AlertDialog.Builder(ctx); final AMSCAccessProvider accessprovider = new AMSCAccessProvider(); // // dialogbox for registration DialogInterface.OnClickListener updateDialogClickListener; updateDialogClickLis...
diff --git a/src/haven/Tex.java b/src/haven/Tex.java index 24880d7..a766257 100644 --- a/src/haven/Tex.java +++ b/src/haven/Tex.java @@ -1,72 +1,72 @@ package haven; import java.awt.Color; import java.nio.*; import java.util.*; import javax.media.opengl.*; public abstract class Tex { protected Coord dim;...
true
true
public void crender(GOut g, Coord c, Coord ul, Coord sz, Coord tsz) { if((tsz.x == 0) || (tsz.y == 0)) return; if((c.x >= ul.x + sz.x) || (c.y >= ul.y + sz.y) || (c.x + tsz.x <= 0) || (c.y + tsz.y <= 0)) return; Coord t = new Coord(c); Coord uld = new Coord(0, 0); Coord brd = new Coord(dim); Coo...
public void crender(GOut g, Coord c, Coord ul, Coord sz, Coord tsz) { if((tsz.x == 0) || (tsz.y == 0)) return; if((c.x >= ul.x + sz.x) || (c.y >= ul.y + sz.y) || (c.x + tsz.x <= ul.x) || (c.y + tsz.y <= ul.y)) return; Coord t = new Coord(c); Coord uld = new Coord(0, 0); Coord brd = new Coord(dim)...
diff --git a/gwt/de.graind/src/de/graind/client/widgets/monthly/MonthlyWidgetController.java b/gwt/de.graind/src/de/graind/client/widgets/monthly/MonthlyWidgetController.java index 40f3ae4..56eb5cc 100644 --- a/gwt/de.graind/src/de/graind/client/widgets/monthly/MonthlyWidgetController.java +++ b/gwt/de.graind/src/de/gr...
true
true
private void fetchEventsForMonth(final AsyncCallback<EventEntry[]> callback) { CalendarEventQuery query = CalendarEventQuery .newInstance("http://www.google.com/calendar/feeds/default/private/full"); final DateTime max = DateTime.newInstance(format.parse(year + "-" + month + "-" + CalendarUti...
private void fetchEventsForMonth(final AsyncCallback<EventEntry[]> callback) { CalendarEventQuery query = CalendarEventQuery .newInstance("http://www.google.com/calendar/feeds/default/private/full"); final DateTime max = DateTime.newInstance(format.parse(year + "-" + (month + 1) + "-01")); final ...
diff --git a/src/main/java/com/threerings/tudey/tools/SceneEditor.java b/src/main/java/com/threerings/tudey/tools/SceneEditor.java index 1220ed5f..aac4b0c9 100644 --- a/src/main/java/com/threerings/tudey/tools/SceneEditor.java +++ b/src/main/java/com/threerings/tudey/tools/SceneEditor.java @@ -1,1984 +1,1984 @@ // //...
true
true
protected boolean saveWarning (String message) { if (!_scene.isDirty()) { return true; } int option = JOptionPane.showOptionDialog(_frame, "Discard unsaved changes and " + message + "?", "Discard changes?", JOptionPane.DEFAULT_OPTION, JOptionPane.WARNI...
protected boolean saveWarning (String message) { if ((_scene == null) || !_scene.isDirty()) { return true; } int option = JOptionPane.showOptionDialog(_frame, "Discard unsaved changes and " + message + "?", "Discard changes?", JOptionPane.DEFAULT_OPTIO...
diff --git a/spring-datastore-mongo/src/main/groovy/org/springframework/datastore/mapping/mongo/query/MongoQuery.java b/spring-datastore-mongo/src/main/groovy/org/springframework/datastore/mapping/mongo/query/MongoQuery.java index b3d37b1b..bd4e5498 100644 --- a/spring-datastore-mongo/src/main/groovy/org/springframewor...
true
true
protected List executeQuery(final PersistentEntity entity, final Junction criteria) { final MongoTemplate template = mongoSession.getMongoTemplate(entity); return template.execute(new DBCallback<List>() { @Override public List doInDB(DB db) throws MongoException, DataAccessException { ...
protected List executeQuery(final PersistentEntity entity, final Junction criteria) { final MongoTemplate template = mongoSession.getMongoTemplate(entity); return template.execute(new DBCallback<List>() { @Override public List doInDB(DB db) throws MongoException, DataAccessException { ...
diff --git a/java/src/com/android/inputmethod/latin/CandidateView.java b/java/src/com/android/inputmethod/latin/CandidateView.java index 6fb80adf..11d021cb 100644 --- a/java/src/com/android/inputmethod/latin/CandidateView.java +++ b/java/src/com/android/inputmethod/latin/CandidateView.java @@ -1,359 +1,359 @@ /* * C...
true
true
private void updateSuggestions() { final SuggestedWords suggestions = mSuggestions; clear(); final int count = suggestions.size(); for (int i = 0; i < count; i++) { CharSequence word = suggestions.getWord(i); if (word == null) continue; final int w...
private void updateSuggestions() { final SuggestedWords suggestions = mSuggestions; clear(); final int count = Math.min(mWords.size(), suggestions.size()); for (int i = 0; i < count; i++) { CharSequence word = suggestions.getWord(i); if (word == null) continue...
diff --git a/src/icd3/CyclicDate.java b/src/icd3/CyclicDate.java index 1a2098f..74d273e 100755 --- a/src/icd3/CyclicDate.java +++ b/src/icd3/CyclicDate.java @@ -1,79 +1,79 @@ /** * */ package icd3; /** * A date representation that repeats in a regular modular cycle */ public abstract class CyclicDate<T ex...
true
true
public int minus(T other) { if (null == other) { throw new NullPointerException("Cannot subtract a null Haab Date"); } // Subtract the integer representations int difference = this.toInt() - other.toInt(); int cycle = this.cycle(); // Ensure ...
public int minus(T other) { if (null == other) { throw new NullPointerException("Cannot subtract a null MayanDate"); } // Subtract the integer representations int difference = this.toInt() - other.toInt(); int cycle = this.cycle(); // Ensure ...
diff --git a/src/main/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.java b/src/main/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.java index 6a37472..5a9410b 100644 --- a/src/main/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.java +++ b/src/main/java/org/apache/maven/plugin/pmd/CpdViolationCh...
false
true
protected Map getErrorDetails( XmlPullParser xpp ) throws XmlPullParserException, IOException { int index = 0; int attributeCount = 0; HashMap msgs = new HashMap(); attributeCount = xpp.getAttributeCount(); while ( index < attributeCount ) { m...
protected Map getErrorDetails( XmlPullParser xpp ) throws XmlPullParserException, IOException { int index = 0; int attributeCount = 0; HashMap msgs = new HashMap(); attributeCount = xpp.getAttributeCount(); while ( index < attributeCount ) { m...
diff --git a/org/python/modules/cPickle.java b/org/python/modules/cPickle.java index 145dcf72..0fe1273c 100644 --- a/org/python/modules/cPickle.java +++ b/org/python/modules/cPickle.java @@ -1,2075 +1,2075 @@ /* * Copyright 1998 Finn Bock. * * This program contains material copyrighted by: * Copyright � 1991-1...
true
true
private void save(PyObject object, boolean pers_save) { if (!pers_save) { if (persistent_id != null) { PyObject pid = persistent_id.__call__(object); if (pid != Py.None) { save_pers(pid); return; ...
private void save(PyObject object, boolean pers_save) { if (!pers_save) { if (persistent_id != null) { PyObject pid = persistent_id.__call__(object); if (pid != Py.None) { save_pers(pid); return; ...
diff --git a/StorySense/src/webEncoder/CompleteStoryLoader.java b/StorySense/src/webEncoder/CompleteStoryLoader.java index d621e2c..9f10478 100644 --- a/StorySense/src/webEncoder/CompleteStoryLoader.java +++ b/StorySense/src/webEncoder/CompleteStoryLoader.java @@ -1,231 +1,231 @@ package webEncoder; import java.io....
true
true
public void PreviewUserStories(User myUser,JspWriter out){ DAOFactory myDAOFactory = DAOFactory.getInstance(DAOFactory.MYSQL); AcomplishmentDAO myAcomDAO=myDAOFactory.createAcomplishmentDAO(); LikedStoryDAO myLikeDAO=myDAOFactory.createLikeDAO(); ArrayList<Acomplishment> Stories=(ArrayList<Acomplishment>)myAco...
public void PreviewUserStories(User myUser,JspWriter out){ DAOFactory myDAOFactory = DAOFactory.getInstance(DAOFactory.MYSQL); AcomplishmentDAO myAcomDAO=myDAOFactory.createAcomplishmentDAO(); LikedStoryDAO myLikeDAO=myDAOFactory.createLikeDAO(); ArrayList<Acomplishment> Stories=(ArrayList<Acomplishment>)myAco...
diff --git a/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java b/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java index 5d71179b..6af514ba 100644 --- a/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentA...
true
true
protected void setProperty(String propertyName, Object value) { ExtendedLocator<JQueryLocator> locator = propertyLocator.format(propertyName); final AttributeLocator<?> typeLocator = locator.getAttribute(Attribute.TYPE); final ExtendedLocator<JQueryLocator> optionLocator = locator.getChild(j...
protected void setProperty(String propertyName, Object value) { ExtendedLocator<JQueryLocator> locator = propertyLocator.format(propertyName); final AttributeLocator<?> typeLocator = locator.getAttribute(Attribute.TYPE); final ExtendedLocator<JQueryLocator> optionLocator = locator.getChild(j...
diff --git a/src/main/java/net/trajano/gasprices/GasPricesWidgetProvider.java b/src/main/java/net/trajano/gasprices/GasPricesWidgetProvider.java index 133dd26..326cac6 100644 --- a/src/main/java/net/trajano/gasprices/GasPricesWidgetProvider.java +++ b/src/main/java/net/trajano/gasprices/GasPricesWidgetProvider.java @@ ...
true
true
public static void updateAppWidget(final Context context, final AppWidgetManager appWidgetManager, final int appWidgetId, final PreferenceAdaptor preferences, final RemoteViews remoteViews) { if (!preferences.isUpdateNeeded()) { return; } final CityInfo city = preferences.getWidgetCityInfo(appWidgetId);...
public static void updateAppWidget(final Context context, final AppWidgetManager appWidgetManager, final int appWidgetId, final PreferenceAdaptor preferences, final RemoteViews remoteViews) { if (preferences.isUpdateNeeded()) { return; } final CityInfo city = preferences.getWidgetCityInfo(appWidgetId); ...
diff --git a/src/research/com/sun/speech/engine/recognition/RuleParser.java b/src/research/com/sun/speech/engine/recognition/RuleParser.java index 9990eb93..d91fb682 100644 --- a/src/research/com/sun/speech/engine/recognition/RuleParser.java +++ b/src/research/com/sun/speech/engine/recognition/RuleParser.java @@ -1,426...
false
true
private List<tokenPos> parse(RuleGrammar grammar, RuleSequence rs, String[] input, int pos) { Rule[] rarry = rs.getRules(); if (rarry == null || rarry.length == 0) { return null; } List<tokenPos> p = parse(grammar, rarry[0], input, pos); if (p == null) { ...
private List<tokenPos> parse(RuleGrammar grammar, RuleSequence rs, String[] input, int pos) { Rule[] rarry = rs.getRules(); if (rarry == null || rarry.length == 0) { return null; } List<tokenPos> p = parse(grammar, rarry[0], input, pos); if (p == null) { ...
diff --git a/src/org/digitalcampus/oppia/utils/HTTPConnectionUtils.java b/src/org/digitalcampus/oppia/utils/HTTPConnectionUtils.java index 7742cebf..f531fa29 100644 --- a/src/org/digitalcampus/oppia/utils/HTTPConnectionUtils.java +++ b/src/org/digitalcampus/oppia/utils/HTTPConnectionUtils.java @@ -1,65 +1,65 @@ packag...
true
true
public HTTPConnectionUtils(Context ctx){ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx); httpParameters = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout( httpParameters, Integer.parseInt(prefs.getString(ctx.getString(R.string.prefs_server_timeout_connection...
public HTTPConnectionUtils(Context ctx){ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx); httpParameters = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout( httpParameters, Integer.parseInt(prefs.getString(ctx.getString(R.string.prefs_server_timeout_connection...
diff --git a/lilith/src/main/java/de/huxhorn/lilith/consumers/FileSplitterEventConsumer.java b/lilith/src/main/java/de/huxhorn/lilith/consumers/FileSplitterEventConsumer.java index eed260c0..213ee9ea 100644 --- a/lilith/src/main/java/de/huxhorn/lilith/consumers/FileSplitterEventConsumer.java +++ b/lilith/src/main/java/...
false
true
public void consume(List<EventWrapper<T>> events) { if(events != null && events.size() > 0) { Map<SourceIdentifier, List<EventWrapper<T>>> splittedEvents = new HashMap<SourceIdentifier, List<EventWrapper<T>>>(); for(EventWrapper<T> wrapper : events) { SourceIdentifier si = wrapper.getSourceIdentifier...
public void consume(List<EventWrapper<T>> events) { if(events != null && events.size() > 0) { Map<SourceIdentifier, List<EventWrapper<T>>> splittedEvents = new HashMap<SourceIdentifier, List<EventWrapper<T>>>(); for(EventWrapper<T> wrapper : events) { SourceIdentifier si = wrapper.getSourceIdentifier...
diff --git a/src/main/java/net/preoccupied/bukkit/want/WantPlugin.java b/src/main/java/net/preoccupied/bukkit/want/WantPlugin.java index 1fe9725..a378007 100644 --- a/src/main/java/net/preoccupied/bukkit/want/WantPlugin.java +++ b/src/main/java/net/preoccupied/bukkit/want/WantPlugin.java @@ -1,299 +1,298 @@ package ne...
true
true
public void onLoad() { /* item data */ this.items = new HashMap<String,ItemData>(); this.items_by_id = new TreeMap<Integer,List<ItemData>>(); Configuration conf = null; try { conf = PluginConfiguration.load(this, this.getFile(), "items.yml"); } catch(IOException ioe) { System.out.println(ioe); ...
public void onLoad() { /* item data */ this.items = new HashMap<String,ItemData>(); this.items_by_id = new TreeMap<Integer,List<ItemData>>(); Configuration conf = null; try { conf = PluginConfiguration.load(this, this.getFile(), "items.yml"); } catch(IOException ioe) { System.out.println(ioe); ...
diff --git a/alchemy-core/src/alchemy/libs/LibComm2.java b/alchemy-core/src/alchemy/libs/LibComm2.java index ab89f2b..0b0bedd 100644 --- a/alchemy-core/src/alchemy/libs/LibComm2.java +++ b/alchemy-core/src/alchemy/libs/LibComm2.java @@ -1,73 +1,73 @@ /* * This file is a part of Alchemy OS project. * Copyright (C)...
true
true
protected Object invokeNative(int index, Process p, Object[] args) throws Exception { switch (index) { case 0: { // listCommPorts(): [String] String ports = System.getProperty("microedition.commports"); if (ports == null) ports = ""; return Strings.split(ports, ',', false); } case 1: { // Comm.n...
protected Object invokeNative(int index, Process p, Object[] args) throws Exception { switch (index) { case 0: { // listCommPorts(): [String] String ports = System.getProperty("microedition.commports"); if (ports == null) ports = ""; return Strings.split(ports, ',', false); } case 1: { // Comm.n...
diff --git a/modules/web/src/main/java/org/torquebox/web/servlet/RackFilter.java b/modules/web/src/main/java/org/torquebox/web/servlet/RackFilter.java index a6b9b7774..92dacb492 100644 --- a/modules/web/src/main/java/org/torquebox/web/servlet/RackFilter.java +++ b/modules/web/src/main/java/org/torquebox/web/servlet/Rac...
true
true
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { if (((request.getPathInfo() == null) || (request.getPathInfo().equals( "/" ))) && !(request.getRequestURI().endsWith( "/" ))) { String redirectUri = reques...
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { if (((request.getPathInfo() == null) || (request.getPathInfo().equals( "/" ))) && !(request.getRequestURI().endsWith( "/" ))) { String redirectUri = reques...
diff --git a/src/main/java/org/jboss/aerogear/connectivity/rest/registry/applications/InstallationManagementEndpoint.java b/src/main/java/org/jboss/aerogear/connectivity/rest/registry/applications/InstallationManagementEndpoint.java index 35ce5759..71634b4b 100644 --- a/src/main/java/org/jboss/aerogear/connectivity/res...
true
true
public Response updateInstallation(InstallationImpl entity, @PathParam("variantID") String variantId, @PathParam("installationID") String installationId){ InstallationImpl installation = clientInstallationService.findById(installationId); if(installation == null){ return Response.statu...
public Response updateInstallation(InstallationImpl entity, @PathParam("variantID") String variantId, @PathParam("installationID") String installationId){ InstallationImpl installation = clientInstallationService.findById(installationId); if(installation == null){ return Response.statu...
diff --git a/src/agents/KitStand.java b/src/agents/KitStand.java index e1b0b81..02a7d95 100644 --- a/src/agents/KitStand.java +++ b/src/agents/KitStand.java @@ -1,198 +1,201 @@ package agents; import agents.*; import agents.include.*; import agents.interfaces.*; import java.util.*; public class KitStand { ...
false
true
synchronized public Map<Part, Integer> insertPartsIntoKits(List<Part> send) { Map<Part, Integer> parts = new HashMap<Part,Integer>(); for(Part p: send) { String type = p.getPartName(); if(kits[0]!=null && kits[0].config.containsKey(type)) { ...
synchronized public Map<Part, Integer> insertPartsIntoKits(List<Part> send) { Map<Part, Integer> parts = new HashMap<Part,Integer>(); for(Part p: send) { String type = p.getPartName(); if(kits[0]!=null && kits[0].config.containsKey(type)) { ...
diff --git a/applications/carrot2-examples/examples/org/carrot2/examples/clustering/UsingAttributes.java b/applications/carrot2-examples/examples/org/carrot2/examples/clustering/UsingAttributes.java index 87f375a8f..ca0f9f399 100644 --- a/applications/carrot2-examples/examples/org/carrot2/examples/clustering/UsingAttri...
true
true
public static void main(String [] args) { /* [[[start:using-attributes-raw-map-intro]]] * <div> * <p> * You can change the default behaviour of clustering algorithms and document sources * by changing their <em>attributes</em>. For a complete list of available attribu...
public static void main(String [] args) { /* [[[start:using-attributes-raw-map-intro]]] * <div> * <p> * You can change the default behaviour of clustering algorithms and document sources * by changing their <em>attributes</em>. For a complete list of available attribu...
diff --git a/src/net/mdcreator/tpplus/TPPlusExecutor.java b/src/net/mdcreator/tpplus/TPPlusExecutor.java index b74b19e..2302871 100644 --- a/src/net/mdcreator/tpplus/TPPlusExecutor.java +++ b/src/net/mdcreator/tpplus/TPPlusExecutor.java @@ -1,89 +1,93 @@ package net.mdcreator.tpplus; import org.bukkit.ChatColor; i...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { PluginDescriptionFile pdf = plugin.getDescription(); if(args.length==0){ sender.sendMessage(new String[] { title + "info", ChatColor.DARK_GRAY + "by " + ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { PluginDescriptionFile pdf = plugin.getDescription(); if(args.length==0){ sender.sendMessage(new String[] { title + "info", ChatColor.DARK_GRAY + "by " + ...
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/WorldBorder/ConfigWorldBorder.java b/src/FE_SRC_COMMON/com/ForgeEssentials/WorldBorder/ConfigWorldBorder.java index 318e03d4d..d265d866c 100644 --- a/src/FE_SRC_COMMON/com/ForgeEssentials/WorldBorder/ConfigWorldBorder.java +++ b/src/FE_SRC_COMMON/com/ForgeEssentials/Wo...
true
true
public static void penaltiesConfig(Configuration config) { String penaltyBasePackage = IEffect.class.getPackage().getName() + "."; config.addCustomCategoryComment("Penalties", "This is what will happen to the player if he passes the world boder."); String[] stages = {"Stage1"}; stages = config.get("Penalti...
public static void penaltiesConfig(Configuration config) { String penaltyBasePackage = ForgeEssentials.class.getPackage().getName() + "."; config.addCustomCategoryComment("Penalties", "This is what will happen to the player if he passes the world boder."); String[] stages = {"Stage1"}; stages = config.get(...
diff --git a/src/com/androzic/plugin/tracker/SMSReceiver.java b/src/com/androzic/plugin/tracker/SMSReceiver.java index fc3e226..b69ef25 100644 --- a/src/com/androzic/plugin/tracker/SMSReceiver.java +++ b/src/com/androzic/plugin/tracker/SMSReceiver.java @@ -1,210 +1,210 @@ /* * Androzic - android navigation client th...
true
true
public void onReceive(Context context, Intent intent) { Log.e(TAG, "SMS received"); Bundle extras = intent.getExtras(); if (extras == null) return; StringBuilder messageBuilder = new StringBuilder(); Object[] pdus = (Object[]) extras.get("pdus"); for (int i = 0; i < pdus.length; i++) { SmsMessag...
public void onReceive(Context context, Intent intent) { Log.e(TAG, "SMS received"); Bundle extras = intent.getExtras(); if (extras == null) return; StringBuilder messageBuilder = new StringBuilder(); Object[] pdus = (Object[]) extras.get("pdus"); for (int i = 0; i < pdus.length; i++) { SmsMessag...
diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index e4b32018..2a34aba0 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -1,359 +1,361 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Li...
true
true
void onNewIntent(Intent intent) { Tab current = mTabControl.getCurrentTab(); // When a tab is closed on exit, the current tab index is set to -1. // Reset before proceed as Browser requires the current tab to be set. if (current == null) { // Try to reset the tab in case ...
void onNewIntent(Intent intent) { Tab current = mTabControl.getCurrentTab(); // When a tab is closed on exit, the current tab index is set to -1. // Reset before proceed as Browser requires the current tab to be set. if (current == null) { // Try to reset the tab in case ...
diff --git a/ProcessClaim.java b/ProcessClaim.java index d771f13..da5e2eb 100644 --- a/ProcessClaim.java +++ b/ProcessClaim.java @@ -1,62 +1,62 @@ package jdressel.Derporia64; //James Dressel and James Robertson import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; im...
true
true
public void doPost(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { HttpSession session = request.getSession(); setClaimAssertion(request); if(session.getAttribute("username")==null){ res.sendRedirect(res.encodeRedirectURL("http://apps-swe432.vse.gmu.edu:8080/swe432/jsp/j...
public void doPost(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { HttpSession session = request.getSession(); setClaimAssertion(request); if(session.getAttribute("username")==null){ res.sendRedirect(res.encodeRedirectURL("http://apps-swe432.vse.gmu.edu:8080/swe432/jsp/j...
diff --git a/src/minecraft/assemblyline/common/machine/TileEntityManipulator.java b/src/minecraft/assemblyline/common/machine/TileEntityManipulator.java index 9c0c75f1..25a3bbe5 100644 --- a/src/minecraft/assemblyline/common/machine/TileEntityManipulator.java +++ b/src/minecraft/assemblyline/common/machine/TileEntityMa...
true
true
private ItemStack tryPlaceInPosition(ItemStack itemStack, Vector3 position, ForgeDirection direction) { TileEntity tileEntity = position.getTileEntity(this.worldObj); if (tileEntity != null && itemStack != null) { /** * Try to put items into a chest. */ if (tileEntity instanceof TileEntityMulti) ...
private ItemStack tryPlaceInPosition(ItemStack itemStack, Vector3 position, ForgeDirection direction) { TileEntity tileEntity = position.getTileEntity(this.worldObj); if (tileEntity != null && itemStack != null) { /** * Try to put items into a chest. */ if (tileEntity instanceof TileEntityMulti) ...
diff --git a/src/wvulaunchpad3/XMLWriter.java b/src/wvulaunchpad3/XMLWriter.java index a681b46..1b96eb2 100644 --- a/src/wvulaunchpad3/XMLWriter.java +++ b/src/wvulaunchpad3/XMLWriter.java @@ -1,80 +1,80 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ...
true
true
public void write(String specifiedFilePath) throws FileNotFoundException, IOException { String description = set.getDescription() + "\n"; description += "Cells:\n"; ArrayList<Cell> cells = set.getCells(); for (Cell cell : cells){ description += cell + "\n"; } ...
public void write(String specifiedFilePath) throws FileNotFoundException, IOException { String description = set.getDescription() + "\n"; description += "Cells:\n"; ArrayList<Cell> cells = set.getCells(); for (Cell cell : cells){ description += cell + "\n"; } ...
diff --git a/src/org/eclipse/core/internal/localstore/BlobStore.java b/src/org/eclipse/core/internal/localstore/BlobStore.java index c95d2dca..2fff5e8b 100644 --- a/src/org/eclipse/core/internal/localstore/BlobStore.java +++ b/src/org/eclipse/core/internal/localstore/BlobStore.java @@ -1,167 +1,167 @@ /***************...
true
true
public UniversalUniqueIdentifier addBlob(File target, boolean moveContents) throws CoreException { UniversalUniqueIdentifier uuid = new UniversalUniqueIdentifier(); File dir = folderFor(uuid); if (!dir.exists()) if (!dir.mkdirs()) { String message = Policy.bind("fileOverFolder", dir.getAbsolutePath()); //$NON-N...
public UniversalUniqueIdentifier addBlob(File target, boolean moveContents) throws CoreException { UniversalUniqueIdentifier uuid = new UniversalUniqueIdentifier(); File dir = folderFor(uuid); if (!dir.exists()) if (!dir.mkdirs()) { String message = Policy.bind("localstore.couldNotCreateFolder", dir.getAbsolute...
diff --git a/OVE/src/main/java/BB/MyPageBean.java b/OVE/src/main/java/BB/MyPageBean.java index 6103ea4..85a34cd 100644 --- a/OVE/src/main/java/BB/MyPageBean.java +++ b/OVE/src/main/java/BB/MyPageBean.java @@ -1,195 +1,195 @@ /* * To change this template, choose Tools | Templates * and open the template in the edit...
true
true
public void init() { Long modelId = (Long)FacesContext.getCurrentInstance() .getExternalContext().getSessionMap().get("id"); a = reg.find(modelId); person = (Worker)a.getPerson(); setUsername(a.getUserName()); setAdress(person.getAddress()); setEmailAdres...
public void init() { Long modelId = (Long)FacesContext.getCurrentInstance() .getExternalContext().getSessionMap().get("id"); a = reg.find(modelId); person = a.getPerson(); setUsername(a.getUserName()); setAdress(person.getAddress()); setEmailAdress(person...
diff --git a/solr/src/java/org/apache/solr/handler/MoreLikeThisHandler.java b/solr/src/java/org/apache/solr/handler/MoreLikeThisHandler.java index 5a685c5fe..d5acf3c27 100644 --- a/solr/src/java/org/apache/solr/handler/MoreLikeThisHandler.java +++ b/solr/src/java/org/apache/solr/handler/MoreLikeThisHandler.java @@ -1,4...
true
true
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception { SolrParams params = req.getParams(); SolrIndexSearcher searcher = req.getSearcher(); MoreLikeThisHelper mlt = new MoreLikeThisHelper( params, searcher ); List<Query> filters = SolrPluginUtils.par...
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception { SolrParams params = req.getParams(); SolrIndexSearcher searcher = req.getSearcher(); MoreLikeThisHelper mlt = new MoreLikeThisHelper( params, searcher ); List<Query> filters = SolrPluginUtils.par...
diff --git a/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/print/ProductionCountingPdfService.java b/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/print/ProductionCountingPdfService.java index 48f4d1472f..e9830...
true
true
private void addProductionRecord(Document document, final Entity productionRecord, final Locale locale) throws DocumentException { document.add(new Paragraph(getTranslationService().translate("productionCounting.productionCounting.report.paragraph", locale) + " " ...
private void addProductionRecord(Document document, final Entity productionRecord, final Locale locale) throws DocumentException { document.add(new Paragraph(getTranslationService().translate("productionCounting.productionCounting.report.paragraph", locale) + " " ...
diff --git a/src/main/java/yucatan/communication/ReadOnlyMemberAccessor.java b/src/main/java/yucatan/communication/ReadOnlyMemberAccessor.java index c23157b..7ab9783 100644 --- a/src/main/java/yucatan/communication/ReadOnlyMemberAccessor.java +++ b/src/main/java/yucatan/communication/ReadOnlyMemberAccessor.java @@ -1,1...
true
true
public Object get(String key);
Object get(String key);
diff --git a/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java b/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java index 4a2590b6..2794b5e0 100755 --- a/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter...
true
true
protected Entry getEntryFromRequest(RequestContext request) throws ResponseContextException { Abdera abdera = request.getAbdera(); Parser parser = abdera.getParser(); Document<Entry> entry_doc; try { entry_doc = (Document<Entry>)request.getDocument(parser).clone(); } catch (ParseException e...
protected Entry getEntryFromRequest(RequestContext request) throws ResponseContextException { Abdera abdera = request.getAbdera(); Parser parser = abdera.getParser(); Document<Entry> entry_doc; try { entry_doc = (Document<Entry>)request.getDocument(parser).clone(); } catch (ParseException e...
diff --git a/src/CuadroTablero.java b/src/CuadroTablero.java index e95ac01..a8cbd18 100755 --- a/src/CuadroTablero.java +++ b/src/CuadroTablero.java @@ -1,162 +1,167 @@ /** * @author (Luis Ballinas, Gabriel Ramos Olvera, Fernando Gomez, Francisco * Barros) * @version (9/13/2013) */ import javax.swing.*; im...
false
true
private void cuadroPresionado(java.awt.event.MouseEvent evt) { CuadroTablero[][] cuadros = this.tablero.getCuadros(); // Si hay cuadros en verde de posibles movs regresar a su estado original sólo si ya tiró if (!Tablero.tirando) { this.tablero.restablecerCuadros(); } //...
private void cuadroPresionado(java.awt.event.MouseEvent evt) { CuadroTablero[][] cuadros = this.tablero.getCuadros(); // Si hay cuadros en verde de posibles movs regresar a su estado original sólo si ya tiró if (!Tablero.tirando) { this.tablero.restablecerCuadros(); } //...
diff --git a/src/main/wikiduper/utils/SampleSentences.java b/src/main/wikiduper/utils/SampleSentences.java index bc39108..ea3a8f6 100644 --- a/src/main/wikiduper/utils/SampleSentences.java +++ b/src/main/wikiduper/utils/SampleSentences.java @@ -1,195 +1,195 @@ package wikiduper.utils; import java.io.IOException; i...
false
true
public int run(String[] args) throws Exception { Options options = new Options(); options.addOption(OptionBuilder.withArgName("path") .hasArg().withDescription("output path").create(OUTPUT)); options.addOption(OptionBuilder.withArgName("path") .hasArg().withDe...
public int run(String[] args) throws Exception { Options options = new Options(); options.addOption(OptionBuilder.withArgName("path") .hasArg().withDescription("output path").create(OUTPUT)); options.addOption(OptionBuilder.withArgName("path") .hasArg().withDe...
diff --git a/WEB-INF/lps/server/src/org/openlaszlo/compiler/FileResolver.java b/WEB-INF/lps/server/src/org/openlaszlo/compiler/FileResolver.java index d71a954c..adcd04e2 100644 --- a/WEB-INF/lps/server/src/org/openlaszlo/compiler/FileResolver.java +++ b/WEB-INF/lps/server/src/org/openlaszlo/compiler/FileResolver.java @...
true
true
protected File resolveInternal(CompilationEnvironment env, String pathname, String base) { Logger mLogger = Logger.getLogger(FileResolver.class); final String FILE_PROTOCOL = "file"; String protocol = FILE_PROTOCOL; // The >1 test allows file pathnames to start with DOS // ...
protected File resolveInternal(CompilationEnvironment env, String pathname, String base) { Logger mLogger = Logger.getLogger(FileResolver.class); final String FILE_PROTOCOL = "file"; String protocol = FILE_PROTOCOL; // The >1 test allows file pathnames to start with DOS // ...
diff --git a/safe-online-data-ws/src/main/java/net/link/safeonline/data/ws/DataServiceFactory.java b/safe-online-data-ws/src/main/java/net/link/safeonline/data/ws/DataServiceFactory.java index 6a15e7ed6..868f6ead1 100644 --- a/safe-online-data-ws/src/main/java/net/link/safeonline/data/ws/DataServiceFactory.java +++ b/s...
true
true
public static DataService newInstance() { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); URL wsdlUrl = classLoader.getResource( "liberty-idwsf-dst-ref-v2.1-link.wsdl" ); if (null == wsdlUrl) throw new RuntimeException( "Liberty ID-WSF DST Ref WSDL not ...
public static DataService newInstance() { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); URL wsdlUrl = classLoader.getResource( "liberty-idwsf-dst-ref-v2.1-link.wsdl" ); if (null == wsdlUrl) throw new RuntimeException( "Liberty ID-WSF DST Ref WSDL not ...
diff --git a/src/java/net/sf/jabref/ContentSelectorDialog.java b/src/java/net/sf/jabref/ContentSelectorDialog.java index da56e4591..ba91cb552 100644 --- a/src/java/net/sf/jabref/ContentSelectorDialog.java +++ b/src/java/net/sf/jabref/ContentSelectorDialog.java @@ -1,309 +1,309 @@ package net.sf.jabref; import java....
true
true
private void fillWordSelector() { wordSelector.removeAllItems(); wordSelector.addItem(WORD_FIRSTLINE_TEXT); Vector items = metaData.getData(Globals.SELECTOR_META_PREFIX+currentField); if ((items != null)) { // && (items.size() > 0)) { wordSet = new TreeSet(items); for (Iterator i=wordSet.iterator(); i...
private void fillWordSelector() { wordSelector.removeAllItems(); wordSelector.addItem(WORD_FIRSTLINE_TEXT); Vector items = metaData.getData(Globals.SELECTOR_META_PREFIX+currentField); if ((items != null)) { // && (items.size() > 0)) { wordSet = new TreeSet(items); for (Iterator i=wordSet.iterator(); i...
diff --git a/CookieSlap/src/rageteam/cookieslap/games/GameManager.java b/CookieSlap/src/rageteam/cookieslap/games/GameManager.java index f103a94..b65ded3 100644 --- a/CookieSlap/src/rageteam/cookieslap/games/GameManager.java +++ b/CookieSlap/src/rageteam/cookieslap/games/GameManager.java @@ -1,135 +1,135 @@ package ra...
true
true
public void startGame(Game game){ cookieslap.chat.log("New game commencing.."); game.startGameTimer(); Bukkit.getScheduler().cancelTask(game.counter); game.status = Status.INGAME; game.time = 240; game.setLobbyCount(cookieslap.getConfig().getInt("auto-start.time")); int c = 1; game.loadF...
public void startGame(Game game){ cookieslap.chat.log("New game commencing.."); game.startGameTimer(); Bukkit.getScheduler().cancelTask(game.counter); game.status = Status.INGAME; game.time = 240; game.setLobbyCount(cookieslap.getConfig().getInt("auto-start.time")); int c = 1; game.loadF...
diff --git a/modules/dm4-core/src/main/java/de/deepamehta/core/impl/TypeStorageImpl.java b/modules/dm4-core/src/main/java/de/deepamehta/core/impl/TypeStorageImpl.java index 203442d15..249e352dc 100644 --- a/modules/dm4-core/src/main/java/de/deepamehta/core/impl/TypeStorageImpl.java +++ b/modules/dm4-core/src/main/java/...
true
true
private Map<Long, AssociationDefinitionModel> fetchAssociationDefinitionsUnsorted(Topic typeTopic) { Map<Long, AssociationDefinitionModel> assocDefs = new HashMap(); // // 1) fetch part topic types // Note: we must set fetchRelatingComposite to false here. Fetching the composite of a...
private Map<Long, AssociationDefinitionModel> fetchAssociationDefinitionsUnsorted(Topic typeTopic) { Map<Long, AssociationDefinitionModel> assocDefs = new HashMap(); // // 1) fetch child topic types // Note: we must set fetchRelatingComposite to false here. Fetching the composite of ...
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxModuleBuilder.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxModuleBuilder.java index f51d8f389..7a99bdea7 100644 --- a/src/share/classes/com/sun/tools/javafx/comp/JavafxModuleBuilder.java +++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxMo...
true
true
private void preProcessJfxTopLevel(JCCompilationUnit module) { Name moduleClassName = moduleName(module); // Divide module defs between run method body, Java compilation unit, and module class ListBuffer<JCTree> topLevelDefs = new ListBuffer<JCTree>(); ListBuffer<JCTree> moduleClass...
private void preProcessJfxTopLevel(JCCompilationUnit module) { Name moduleClassName = moduleName(module); // Divide module defs between run method body, Java compilation unit, and module class ListBuffer<JCTree> topLevelDefs = new ListBuffer<JCTree>(); ListBuffer<JCTree> moduleClass...
diff --git a/src/nayuki/sortdemo/algo/CocktailSort.java b/src/nayuki/sortdemo/algo/CocktailSort.java index 799f4ca..8f52cc7 100644 --- a/src/nayuki/sortdemo/algo/CocktailSort.java +++ b/src/nayuki/sortdemo/algo/CocktailSort.java @@ -1,35 +1,37 @@ package nayuki.sortdemo.algo; import nayuki.sortdemo.SortAlgorithm; ...
false
true
public void sort(SortArray array) { int left = 0; int right = array.length(); int i = left; while (left != right) { // Scan right for (; i + 1 < right; i++) array.compareAndSwap(i, i + 1); array.setDone(i); right--; i--; // Scan left for (; i > left; i--) array.compareAndSwap(i...
public void sort(SortArray array) { int left = 0; int right = array.length(); int i = left; while (left < right) { // Scan right for (; i + 1 < right; i++) array.compareAndSwap(i, i + 1); array.setDone(i); right--; i--; if (left == right) break; // Scan left for (; i > left;...
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java index 41e878037..bdba88540 100644 --- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/ManifestPlugin.java +++ b/bundleplugin/src/main/java/o...
false
true
protected Analyzer getAnalyzer( MavenProject project, Map instructions, Properties properties, Jar[] classpath ) throws IOException { PackageVersionAnalyzer analyzer = new PackageVersionAnalyzer(); Properties props = getDefaultProperties( project ); props.putAll( properties ); ...
protected Analyzer getAnalyzer( MavenProject project, Map instructions, Properties properties, Jar[] classpath ) throws IOException { PackageVersionAnalyzer analyzer = new PackageVersionAnalyzer(); Properties props = getDefaultProperties( project ); props.putAll( properties ); ...
diff --git a/src/main/java/net/unit8/sastruts/easyapi/converter/RequestConverter.java b/src/main/java/net/unit8/sastruts/easyapi/converter/RequestConverter.java index fb8787c..bab2fb9 100644 --- a/src/main/java/net/unit8/sastruts/easyapi/converter/RequestConverter.java +++ b/src/main/java/net/unit8/sastruts/easyapi/con...
true
true
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { EasyApiMessageDto dto = null; String nodeName = reader.getNodeName(); if (StringUtil.equals(nodeName, "request")) { dto = new RequestDto(); } else if (StringUtil.equals(nodeName, "response")) { dto = new ResponseD...
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { EasyApiMessageDto dto = null; String nodeName = reader.getNodeName(); if (StringUtil.equals(nodeName, "request")) { dto = new RequestDto(); } else if (StringUtil.equals(nodeName, "response")) { dto = new ResponseD...
diff --git a/src/com/android/phone/MyPhoneNumber.java b/src/com/android/phone/MyPhoneNumber.java index d4008b0..e18c465 100644 --- a/src/com/android/phone/MyPhoneNumber.java +++ b/src/com/android/phone/MyPhoneNumber.java @@ -1,55 +1,59 @@ package com.android.phone; import com.android.internal.telephony.Phone; impo...
false
true
public void onReceive(Context context, Intent intent) { TelephonyManager mTelephonyMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); SharedPreferences prefs = context.getSharedPreferences(MyPhoneNumber.class.getPackage().getName() + "_preferences", Context.MODE_PRIVATE); ...
public void onReceive(Context context, Intent intent) { TelephonyManager mTelephonyMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); SharedPreferences prefs = context.getSharedPreferences(MyPhoneNumber.class.getPackage().getName() + "_preferences", Context.MODE_PRIVATE); ...
diff --git a/src/ultraextreme/view/SpriteFactory.java b/src/ultraextreme/view/SpriteFactory.java index 173c0ff..611ba99 100644 --- a/src/ultraextreme/view/SpriteFactory.java +++ b/src/ultraextreme/view/SpriteFactory.java @@ -1,458 +1,458 @@ /* ============================================================ * Copyright ...
false
true
private SpriteFactory(final SimpleBaseGameActivity activity) { Dimension screenDimension = new Dimension(activity.getResources() .getDisplayMetrics().widthPixels, activity.getResources() .getDisplayMetrics().heightPixels); GameObjectSprite.setScreenDimension(screenDimension); textureMap = new HashMap<Obj...
private SpriteFactory(final SimpleBaseGameActivity activity) { Dimension screenDimension = new Dimension(activity.getResources() .getDisplayMetrics().widthPixels, activity.getResources() .getDisplayMetrics().heightPixels); GameObjectSprite.setScreenDimension(screenDimension); textureMap = new HashMap<Obj...
diff --git a/src/main/java/hudson/maven/reporters/SurefireArchiver.java b/src/main/java/hudson/maven/reporters/SurefireArchiver.java index 361a9f0..443f39b 100644 --- a/src/main/java/hudson/maven/reporters/SurefireArchiver.java +++ b/src/main/java/hudson/maven/reporters/SurefireArchiver.java @@ -1,214 +1,214 @@ /* *...
true
true
public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, final BuildListener listener, Throwable error) throws InterruptedException, IOException { if (!isSurefireTest(mojo)) return true; listener.getLogger().println(Messages.SurefireArchiver_Recording()); File rep...
public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, final BuildListener listener, Throwable error) throws InterruptedException, IOException { if (!isSurefireTest(mojo)) return true; listener.getLogger().println(Messages.SurefireArchiver_Recording()); File rep...
diff --git a/java/servers/src/org/xtreemfs/mrc/osdselection/DCMapPolicyBase.java b/java/servers/src/org/xtreemfs/mrc/osdselection/DCMapPolicyBase.java index 16dce9d3..213c487c 100644 --- a/java/servers/src/org/xtreemfs/mrc/osdselection/DCMapPolicyBase.java +++ b/java/servers/src/org/xtreemfs/mrc/osdselection/DCMapPolic...
true
true
private void readConfig(Properties p) { String tmp = p.getProperty("datacenters"); if (tmp == null) { throw new IllegalArgumentException("Cannot initialize " + this.getClass().getSimpleName() + ": a list of datacenters must be specified in the configuration"); ...
private void readConfig(Properties p) { String tmp = p.getProperty("datacenters"); if (tmp == null) { throw new IllegalArgumentException("Cannot initialize " + this.getClass().getSimpleName() + ": a list of datacenters must be specified in the configuration"); ...
diff --git a/src/pl/synth/pinry/PinryContentProvider.java b/src/pl/synth/pinry/PinryContentProvider.java index ea4cdf6..3e4d82f 100644 --- a/src/pl/synth/pinry/PinryContentProvider.java +++ b/src/pl/synth/pinry/PinryContentProvider.java @@ -1,180 +1,180 @@ package pl.synth.pinry; import android.accounts.Account; i...
true
true
public Uri insert(Uri uri, ContentValues initial) { if (uriMatcher.match(uri) != PINS) { throw new IllegalArgumentException("Unknown URI " + uri); } ContentValues values; if (initial != null) { values = new ContentValues(initial); } else { ...
public Uri insert(Uri uri, ContentValues initial) { if (uriMatcher.match(uri) != PINS) { throw new IllegalArgumentException("Unknown URI " + uri); } ContentValues values; if (initial != null) { values = new ContentValues(initial); } else { ...
diff --git a/src/gtna/plot/Plotting.java b/src/gtna/plot/Plotting.java index b9816579..b6297d17 100644 --- a/src/gtna/plot/Plotting.java +++ b/src/gtna/plot/Plotting.java @@ -1,325 +1,326 @@ /* =========================================================== * GTNA : Graph-Theoretic Network Analyzer * =================...
false
true
public static boolean single(Series[][] s, Metric[] metrics, String folder, Type type, Style style) { Timer timer = new Timer("single (" + s.length + "|" + s[0].length + ") (" + type + "|" + style + ")"); double[][] x = new double[s.length][]; ArrayList<String> labels = new ArrayList<String>(); for (int...
public static boolean single(Series[][] s, Metric[] metrics, String folder, Type type, Style style) { Timer timer = new Timer("single (" + s.length + "|" + s[0].length + ") (" + type + "|" + style + ")"); double[][] x = new double[s.length][]; ArrayList<String> labels = new ArrayList<String>(); for (int...
diff --git a/web/src/main/java/org/eurekastreams/web/client/ui/pages/profile/settings/GroupProfileSettingsTabContent.java b/web/src/main/java/org/eurekastreams/web/client/ui/pages/profile/settings/GroupProfileSettingsTabContent.java index 9768aeedb..0c5f9cd91 100644 --- a/web/src/main/java/org/eurekastreams/web/client/...
true
true
public void setEntity(final DomainGroupModelView entity) { // Set the banner. Session.getInstance().getEventBus().notifyObservers(new SetBannerEvent(entity)); final FormBuilder form = new FormBuilder("", GroupModel.getInstance(), Method.UPDATE); EventBus.getInstance().addObserv...
public void setEntity(final DomainGroupModelView entity) { // Set the banner. Session.getInstance().getEventBus().notifyObservers(new SetBannerEvent(entity)); final FormBuilder form = new FormBuilder("", GroupModel.getInstance(), Method.UPDATE); EventBus.getInstance().addObserv...
diff --git a/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java b/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java index 1a2c014b..d7d448c0 100644 --- a/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java +++ b/src/uk/ac/cam/db538/dexter/dex/code/DexCode_AssemblingState.java @...
true
true
public DexCode_AssemblingState(DexCode code, DexAssemblingCache cache, Map<DexRegister, Integer> regAlloc) { this.cache = cache; this.registerAllocation = regAlloc; this.code = code; // initialise elementOffsets // start by setting the size of each instruction to 1 // later on, it will get in...
public DexCode_AssemblingState(DexCode code, DexAssemblingCache cache, Map<DexRegister, Integer> regAlloc) { this.cache = cache; this.registerAllocation = regAlloc; this.code = code; // initialise elementOffsets // start by setting the size of each instruction to 1 // later on, it will get in...
diff --git a/src/main/java/com/threerings/getdown/util/ConnectionUtil.java b/src/main/java/com/threerings/getdown/util/ConnectionUtil.java index ee7857b..04bc1d7 100644 --- a/src/main/java/com/threerings/getdown/util/ConnectionUtil.java +++ b/src/main/java/com/threerings/getdown/util/ConnectionUtil.java @@ -1,47 +1,49 ...
true
true
public static URLConnection open (URL url) throws IOException { URLConnection conn = url.openConnection(); // If URL has a username:password@ before hostname, use HTTP basic auth String userInfo = url.getUserInfo(); if (userInfo != null) { // Remove any perce...
public static URLConnection open (URL url) throws IOException { URLConnection conn = url.openConnection(); // If URL has a username:password@ before hostname, use HTTP basic auth String userInfo = url.getUserInfo(); if (userInfo != null) { // Remove any perce...
diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/EditPeopleControlSet.java b/astrid/plugin-src/com/todoroo/astrid/actfm/EditPeopleControlSet.java index 91f2450f2..0b3cca324 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/EditPeopleControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/EditPeopl...
false
true
private void shareTask(final JSONObject sharedWith) { final JSONArray emails = sharedWith.optJSONArray("p"); final ProgressDialog pd = DialogUtilities.progressDialog(activity, activity.getString(R.string.DLG_please_wait)); new Thread() { @Override pub...
private void shareTask(final JSONObject sharedWith) { final JSONArray emails = sharedWith.optJSONArray("p"); final ProgressDialog pd = DialogUtilities.progressDialog(activity, activity.getString(R.string.DLG_please_wait)); new Thread() { @Override pub...
diff --git a/contentconnector-core/src/main/java/com/gentics/cr/CRConfigFileLoader.java b/contentconnector-core/src/main/java/com/gentics/cr/CRConfigFileLoader.java index cf7f8dd4..fff453da 100644 --- a/contentconnector-core/src/main/java/com/gentics/cr/CRConfigFileLoader.java +++ b/contentconnector-core/src/main/java/...
true
true
private void loadConfigFile(final String path) { String errorMessage = "Could not load configuration file at: " + CRUtil.resolveSystemProperties("${" + CRUtil.PORTALNODE_CONFPATH + "}/rest/" + this.getName() + ".properties") + "!"; try { //LOAD SERVLET CONFIGURATION String confpath...
private void loadConfigFile(final String path) { String errorMessage = "Could not load configuration file at: " + CRUtil.resolveSystemProperties("${" + CRUtil.PORTALNODE_CONFPATH + "}/rest/" + this.getName() + ".properties") + "!"; try { //LOAD SERVLET CONFIGURATION String confpath...
diff --git a/src/edu/ucsb/cs290/touch/to/chat/AuthActivity.java b/src/edu/ucsb/cs290/touch/to/chat/AuthActivity.java index c9abc92..a81cad4 100644 --- a/src/edu/ucsb/cs290/touch/to/chat/AuthActivity.java +++ b/src/edu/ucsb/cs290/touch/to/chat/AuthActivity.java @@ -1,23 +1,26 @@ package edu.ucsb.cs290.touch.to.chat; ...
true
true
public void submitPassword(View view) { EditText e = (EditText) findViewById(R.id.enter_password); setResult(RESULT_OK, new Intent().putExtra("edu.ucsb.cs290.touch.to.chat.password", e.getText().toString())); e.setText("Password Stored"); finish(); }
public void submitPassword(View view) { EditText e = (EditText) findViewById(R.id.enter_password); setResult(RESULT_OK, new Intent().putExtra("edu.ucsb.cs290.touch.to.chat.password", e.getText().toString())); if(e.getText().length() ==0) { return; } e.setText("Password Stored"); ...
diff --git a/src/main/java/org/jboss/lectures/auction/LoginManagerBean.java b/src/main/java/org/jboss/lectures/auction/LoginManagerBean.java index 79115ec..0ee89dd 100644 --- a/src/main/java/org/jboss/lectures/auction/LoginManagerBean.java +++ b/src/main/java/org/jboss/lectures/auction/LoginManagerBean.java @@ -1,111 +...
true
true
private void authenticateUser(String email, String password) throws InvalidUserException { SecurityFactory.prepare(); try { String configFile = "config/authentication.conf"; PicketBoxConfiguration idtrustConfig = new PicketBoxConfiguration(); idtrustConfig.load(configFile); Authent...
private void authenticateUser(String email, String password) throws InvalidUserException { SecurityFactory.prepare(); try { String configFile = "security/auth-conf.xml"; PicketBoxConfiguration idtrustConfig = new PicketBoxConfiguration(); idtrustConfig.load(configFile); Authenticat...
diff --git a/platform-infrastructure/security/PolicyNegotiator/src/main/java/org/societies/security/policynegotiator/provider/ProviderServiceMgr.java b/platform-infrastructure/security/PolicyNegotiator/src/main/java/org/societies/security/policynegotiator/provider/ProviderServiceMgr.java index 3b78c5ce5..ba746d85d 1006...
false
true
public void addService(ServiceResourceIdentifier serviceId, String slaXml, URI fileServer, List<String> files, INegotiationProviderSLMCallback callback) throws NegotiationException { LOG.info("addService({}, ..., {}, " + files + ")", serviceId, fileServer); IIdentity provider = groupMgr.getIdMgr().getThis...
public void addService(ServiceResourceIdentifier serviceId, String slaXml, URI fileServer, List<String> files, INegotiationProviderSLMCallback callback) throws NegotiationException { LOG.info("addService({}, ..., {}, " + files + ")", serviceId, fileServer); IIdentity provider = groupMgr.getIdMgr().getThis...
diff --git a/Curriculum/src/main/java/ua/dp/primat/curriculum/view/EditPage.java b/Curriculum/src/main/java/ua/dp/primat/curriculum/view/EditPage.java index 695a8be..a1b2d36 100644 --- a/Curriculum/src/main/java/ua/dp/primat/curriculum/view/EditPage.java +++ b/Curriculum/src/main/java/ua/dp/primat/curriculum/view/EditP...
true
true
protected void onSubmit() { final Integer parseSheet = textParseSheet.getConvertedInput(); final Integer parseStart = textParseStart.getConvertedInput(); final Integer parseEnd = textParseEnd.getConvertedInput(); final Integer parseSemesters = textParseSemester.ge...
protected void onSubmit() { final Integer parseSheet = textParseSheet.getConvertedInput(); final Integer parseStart = textParseStart.getConvertedInput(); final Integer parseEnd = textParseEnd.getConvertedInput(); final Integer parseSemesters = textParseSemester.ge...
diff --git a/src/biz/bokhorst/xprivacy/PrivacyService.java b/src/biz/bokhorst/xprivacy/PrivacyService.java index ff20e7de..a7620664 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyService.java +++ b/src/biz/bokhorst/xprivacy/PrivacyService.java @@ -1,1299 +1,1300 @@ package biz.bokhorst.xprivacy; import java.io.File;...
true
true
public List<ParcelableRestriction> getUsageList(int uid) throws RemoteException { List<ParcelableRestriction> result = new ArrayList<ParcelableRestriction>(); try { enforcePermission(); SQLiteDatabase db = getDatabase(); db.beginTransaction(); try { Cursor cursor; if (uid == 0) ...
public List<ParcelableRestriction> getUsageList(int uid) throws RemoteException { List<ParcelableRestriction> result = new ArrayList<ParcelableRestriction>(); try { enforcePermission(); SQLiteDatabase db = getDatabase(); db.beginTransaction(); try { Cursor cursor; if (uid == 0) ...
diff --git a/src/main/java/net/loadingchunks/plugins/PushEnder/PushUser.java b/src/main/java/net/loadingchunks/plugins/PushEnder/PushUser.java index 194551f..e3514ae 100644 --- a/src/main/java/net/loadingchunks/plugins/PushEnder/PushUser.java +++ b/src/main/java/net/loadingchunks/plugins/PushEnder/PushUser.java @@ -1,2...
true
true
public PushUser(String name, ConfigurationSection cs) { if(cs.contains("userToken")) userToken = cs.getString("userToken"); if(!cs.contains("events")) return; for(String key : cs.getConfigurationSection("events").getKeys(false)) { eventConfig.put(key, cs.getBoolean("events." + key)); } }
public PushUser(String name, ConfigurationSection cs) { if(cs.contains("token")) userToken = cs.getString("token"); if(!cs.contains("events")) return; for(String key : cs.getConfigurationSection("events").getKeys(false)) { eventConfig.put(key, cs.getBoolean("events." + key)); } }
diff --git a/facets/src/main/java/org/ilrt/wf/facets/impl/FlatFacetImpl.java b/facets/src/main/java/org/ilrt/wf/facets/impl/FlatFacetImpl.java index bf45ae0..6c0652a 100644 --- a/facets/src/main/java/org/ilrt/wf/facets/impl/FlatFacetImpl.java +++ b/facets/src/main/java/org/ilrt/wf/facets/impl/FlatFacetImpl.java @@ -1,1...
true
true
public Facet create(FacetEnvironment environment) throws FacetException { FacetStateImpl state; String type = environment.getConfig().get(Facet.CONSTRAINT_TYPE); String property = environment.getConfig().get(Facet.LINK_PROPERTY); String invertVal = environment.getConfig().get(Facet.L...
public Facet create(FacetEnvironment environment) throws FacetException { FacetStateImpl state; String type = environment.getConfig().get(Facet.CONSTRAINT_TYPE); String property = environment.getConfig().get(Facet.LINK_PROPERTY); String invertVal = environment.getConfig().get(Facet.L...
diff --git a/org.dawnsci.conversion.test/src/org/dawnsci/conversion/NCDConvertTest.java b/org.dawnsci.conversion.test/src/org/dawnsci/conversion/NCDConvertTest.java index 01656137..ac524326 100644 --- a/org.dawnsci.conversion.test/src/org/dawnsci/conversion/NCDConvertTest.java +++ b/org.dawnsci.conversion.test/src/org/...
false
true
public void testNCDMultiFile() throws Exception { IConversionService service = new ConversionServiceImpl(); // Determine path to test file final String path = getTestFilePath("results_i22-118040_Pilatus2M_010513_125108.nxs"); final String path1 = getTestFilePath("results_i22-102527_Pilatus2M_280313_11243...
public void testNCDMultiFile() throws Exception { IConversionService service = new ConversionServiceImpl(); // Determine path to test file final String resultName = "results_i22-118040_Pilatus2M_010513_125108"; final String resultName2 = "results_i22-102527_Pilatus2M_280313_112434"; final String result...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java index cbdb801f3..6cc477029 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListVi...
true
true
public void createPartControl(Composite parent) { themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); themeManager.addPropertyChangeListener(THEME_CHANGE_LISTENER); filteredTree = new TaskListFilteredTree(parent, SWT.MULTI | SWT.VERTICAL | /*SWT.H_SCROLL |*/ SWT.V_SCROLL | SWT.FU...
public void createPartControl(Composite parent) { themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); themeManager.addPropertyChangeListener(THEME_CHANGE_LISTENER); filteredTree = new TaskListFilteredTree(parent, SWT.MULTI | SWT.VERTICAL | /*SWT.H_SCROLL |*/ SWT.V_SCROLL | SWT.FU...
diff --git a/pdisk-server/war/src/main/java/eu/stratuslab/storage/disk/utils/ProcessUtils.java b/pdisk-server/war/src/main/java/eu/stratuslab/storage/disk/utils/ProcessUtils.java index b207e79..3b6ea15 100644 --- a/pdisk-server/war/src/main/java/eu/stratuslab/storage/disk/utils/ProcessUtils.java +++ b/pdisk-server/war/...
false
true
public static void execute(ProcessBuilder pb, String errorMsg) { int returnCode = 1; Process process; try { process = pb.start(); boolean blocked = true; while (blocked) { process.waitFor(); blocked = false; } returnCode = process.exitValue(); } catch (IOException e) { throw new Re...
public static void execute(ProcessBuilder pb, String errorMsg) { int returnCode = 1; Process process; try { process = pb.start(); boolean blocked = true; while (blocked) { process.waitFor(); blocked = false; } returnCode = process.exitValue(); } catch (IOException e) { throw new Re...
diff --git a/javarmi/StockExClient/src/stockexclient/InteractionManager.java b/javarmi/StockExClient/src/stockexclient/InteractionManager.java index 90078fe..4583025 100644 --- a/javarmi/StockExClient/src/stockexclient/InteractionManager.java +++ b/javarmi/StockExClient/src/stockexclient/InteractionManager.java @@ -1,3...
true
true
public void init() throws RemoteException { String command; int quantity = 0; String[] commandString; boolean isExit = false; do { System.out.println(isLoggedIn() ? client.getUsername() + " >" : " >"); command = getInput(); co...
public void init() throws RemoteException { String command; int quantity = 0; String[] commandString; boolean isExit = false; do { System.out.println(isLoggedIn() ? client.getUsername() + " >" : " >"); command = getInput(); co...
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/ngodatabase/OrganizationNewsFeedView.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/ngodatabase/OrganizationNewsFeedView.java index e5c61229c..fe002818d 100644 --- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/ngod...
true
true
public SyndFeed buildFeed(Context context) throws CannotExecuteQueryException, TableException, CannotGenerateFeedException, TemplateNotFoundException, MergingException, EntityDoesNotExistException, ProcessingException { CoralSession coralSession = (CoralSession)context.getAttribu...
public SyndFeed buildFeed(Context context) throws CannotExecuteQueryException, TableException, CannotGenerateFeedException, TemplateNotFoundException, MergingException, EntityDoesNotExistException, ProcessingException { CoralSession coralSession = (CoralSession)context.getAttribu...
diff --git a/nuxeo-drive-server/nuxeo-drive-core/src/test/java/org/nuxeo/drive/service/adapter/TestDefaultTopLevelFolderItemFactory.java b/nuxeo-drive-server/nuxeo-drive-core/src/test/java/org/nuxeo/drive/service/adapter/TestDefaultTopLevelFolderItemFactory.java index 1f8b8d8d..4c9a3e08 100644 --- a/nuxeo-drive-server/...
true
true
public void testFactory() throws Exception { // ------------------------------------------------------------- // Check TopLevelFolderItemFactory#getTopLevelFolderItem(String // userName) // ------------------------------------------------------------- FolderItem topLevelFold...
public void testFactory() throws Exception { // ------------------------------------------------------------- // Check TopLevelFolderItemFactory#getTopLevelFolderItem(String // Principal) // ------------------------------------------------------------- FolderItem topLevelFol...
diff --git a/srcj/com/sun/electric/tool/io/output/Spice.java b/srcj/com/sun/electric/tool/io/output/Spice.java index 887da3c85..9683fa160 100755 --- a/srcj/com/sun/electric/tool/io/output/Spice.java +++ b/srcj/com/sun/electric/tool/io/output/Spice.java @@ -1,3358 +1,3356 @@ /* -*- tab-width: 4 -*- * * Electric(tm)...
false
true
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info) { if (cell == topCell) { Netlist netList = cni.getNetList(); Global.Set globals = netList.getGlobals(); int globalSize = globals.size(); if (!Simulation.isSpiceU...
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info) { if (cell == topCell) { Netlist netList = cni.getNetList(); Global.Set globals = netList.getGlobals(); int globalSize = globals.size(); if (!Simulation.isSpiceU...
diff --git a/src/ICS/SND/Utilities/HibernateUtil.java b/src/ICS/SND/Utilities/HibernateUtil.java index 476157a..63acc78 100644 --- a/src/ICS/SND/Utilities/HibernateUtil.java +++ b/src/ICS/SND/Utilities/HibernateUtil.java @@ -1,33 +1,32 @@ package ICS.SND.Utilities; import org.hibernate.SessionFactory; import org.h...
true
true
private static SessionFactory buildSessionFactory() { try { Configuration config = new Configuration().configure("hibernate.cfg.xml"); config.addPackage("ICS.SND.Entities").addAnnotatedClass(Entry.class); SessionFactory factory = config.buildSessionFactory(); ...
private static SessionFactory buildSessionFactory() { try { Configuration config = new Configuration().configure("hibernate.cfg.xml"); config.addPackage("ICS.SND.Entities").addAnnotatedClass(Entry.class); return config.buildSessionFactory(); } catch (Throwable ex)...
diff --git a/plugins/org.bonitasoft.studio.expression.editor/src/org/bonitasoft/studio/expression/editor/provider/SelectionAwareExpressionEditor.java b/plugins/org.bonitasoft.studio.expression.editor/src/org/bonitasoft/studio/expression/editor/provider/SelectionAwareExpressionEditor.java index 9648a529fc..943a053874 10...
true
true
protected boolean compatibleReturnType(Expression inputExpression,Expression e) { final String currentReturnType = inputExpression.getReturnType(); final String expressionReturnType = e.getReturnType(); if(currentReturnType.equals(expressionReturnType)){ return true; } try{ Class<?> currentReturnTyp...
protected boolean compatibleReturnType(Expression inputExpression,Expression e) { final String currentReturnType = inputExpression.getReturnType(); final String expressionReturnType = e.getReturnType(); if(currentReturnType.equals(expressionReturnType)){ return true; } try{ Class<?> currentReturnTyp...
diff --git a/src/be/ibridge/kettle/job/JobMeta.java b/src/be/ibridge/kettle/job/JobMeta.java index 477be6a3..24310a5a 100644 --- a/src/be/ibridge/kettle/job/JobMeta.java +++ b/src/be/ibridge/kettle/job/JobMeta.java @@ -1,1716 +1,1716 @@ /********************************************************************** ** ...
true
true
public JobMeta(LogWriter log, Repository rep, String jobname, RepositoryDirectory repdir, IProgressMonitor monitor) throws KettleException { this.log = log; try { // Clear everything... clear(); directory = repdir; // Get the transformation id setID( rep.getJobID(jobname, repdir.getI...
public JobMeta(LogWriter log, Repository rep, String jobname, RepositoryDirectory repdir, IProgressMonitor monitor) throws KettleException { this.log = log; try { // Clear everything... clear(); directory = repdir; // Get the transformation id setID( rep.getJobID(jobname, repdir.getI...
diff --git a/gndms/src/de/zib/gndms/gndms/security/HostAndUserDetailsService.java b/gndms/src/de/zib/gndms/gndms/security/HostAndUserDetailsService.java index c513aa46..836cb503 100644 --- a/gndms/src/de/zib/gndms/gndms/security/HostAndUserDetailsService.java +++ b/gndms/src/de/zib/gndms/gndms/security/HostAndUserDetai...
true
true
public UserDetails loadUserDetails( final PreAuthenticatedAuthenticationToken preAuthenticatedAuthenticationToken ) throws UsernameNotFoundException { // todo check host cert String dn = ( String ) preAuthenticatedAuthenticationToken.getPrincipal(); try { ...
public UserDetails loadUserDetails( final PreAuthenticatedAuthenticationToken preAuthenticatedAuthenticationToken ) throws UsernameNotFoundException { String dn = ( String ) preAuthenticatedAuthenticationToken.getPrincipal(); try { if( GridMapUserDetailsServ...
diff --git a/rhogen-wizard/src/rhogenwizard/buildfile/CustomConverter.java b/rhogen-wizard/src/rhogenwizard/buildfile/CustomConverter.java index a02e91c..cbf89ff 100644 --- a/rhogen-wizard/src/rhogenwizard/buildfile/CustomConverter.java +++ b/rhogen-wizard/src/rhogenwizard/buildfile/CustomConverter.java @@ -1,250 +1,25...
true
true
private void fillCommentsMap(String filePath) { try { FileInputStream fStream = new FileInputStream(filePath); DataInputStream in = new DataInputStream(fStream); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine = null; StringBuilder c...
private void fillCommentsMap(String filePath) { try { FileInputStream fStream = new FileInputStream(filePath); DataInputStream in = new DataInputStream(fStream); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine = null; StringBuilder c...
diff --git a/mes-plugins/mes-plugins-technologies/src/main/java/com/qcadoo/mes/technologies/TechnologyTreeNumberingHooks.java b/mes-plugins/mes-plugins-technologies/src/main/java/com/qcadoo/mes/technologies/TechnologyTreeNumberingHooks.java index 1ffcf7cb23..5d8bfb5b1a 100644 --- a/mes-plugins/mes-plugins-technologies/...
true
true
public void rebuildTreeNumbering(final ViewDefinitionState view) { FormComponent form = (FormComponent) view.getComponentByReference("form"); Long technologyId = form.getEntityId(); if (technologyId == null) { return; } Entity technology = getTechnologyById(techn...
public void rebuildTreeNumbering(final ViewDefinitionState view) { FormComponent form = (FormComponent) view.getComponentByReference("form"); Long technologyId = form.getEntityId(); if (technologyId == null) { return; } Entity technology = getTechnologyById(techn...