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/cytoscape/dialogs/plugins/LicenseDialog.java b/src/cytoscape/dialogs/plugins/LicenseDialog.java index 64fef2568..1fec37fe1 100644 --- a/src/cytoscape/dialogs/plugins/LicenseDialog.java +++ b/src/cytoscape/dialogs/plugins/LicenseDialog.java @@ -1,315 +1,315 @@ package cytoscape.dialogs.plugins; impo...
true
true
private void initComponents() { licenseSplitPane = new javax.swing.JSplitPane(); pluginListScrollPane = new javax.swing.JScrollPane(); pluginList = new javax.swing.JList(); licenseScrollPane = new javax.swing.JScrollPane(); licensePanel = new javax.swing.JEditorPane(); ...
private void initComponents() { licenseSplitPane = new javax.swing.JSplitPane(); pluginListScrollPane = new javax.swing.JScrollPane(); pluginList = new javax.swing.JList(); licenseScrollPane = new javax.swing.JScrollPane(); licensePanel = new javax.swing.JEditorPane(); ...
diff --git a/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/SiteHandler.java b/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/SiteHandler.java index a90c5bbc..63f61084 100644 --- a/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/SiteHandler.java +++ b/portal-impl/...
true
true
public void includeTabs(PortalRenderContext rcontext, HttpServletRequest req, Session session, String siteId, String prefix, boolean addLogout) throws IOException { if (rcontext.uses(INCLUDE_TABS)) { // for skinning String siteType = portal.calcSiteType(siteId); String origPrefix = prefix; //...
public void includeTabs(PortalRenderContext rcontext, HttpServletRequest req, Session session, String siteId, String prefix, boolean addLogout) throws IOException { if (rcontext.uses(INCLUDE_TABS)) { // for skinning String siteType = portal.calcSiteType(siteId); String origPrefix = prefix; //...
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java index de1fc3d29..c43266cd1 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java +++ b/bund...
true
true
public static IProject[] importProjectSet(String filename, Shell shell, IProgressMonitor monitor) throws InvocationTargetException { InputStreamReader reader = null; try { reader = new InputStreamReader(new FileInputStream(filename), "UTF-8"); //$NON-NLS-1$ SAXParserFactory factory = SAXParserFactory.new...
public static IProject[] importProjectSet(String filename, Shell shell, IProgressMonitor monitor) throws InvocationTargetException { InputStreamReader reader = null; try { reader = new InputStreamReader(new FileInputStream(filename), "UTF-8"); //$NON-NLS-1$ SAXParserFactory factory = SAXParserFactory.new...
diff --git a/src/org/i4qwee/chgk/trainer/view/dialogs/BrainConfirmationDialog.java b/src/org/i4qwee/chgk/trainer/view/dialogs/BrainConfirmationDialog.java index 0e90227..13530f9 100644 --- a/src/org/i4qwee/chgk/trainer/view/dialogs/BrainConfirmationDialog.java +++ b/src/org/i4qwee/chgk/trainer/view/dialogs/BrainConfirm...
false
true
public BrainConfirmationDialog() { GameStateManager.getInstance().addListener(this); setResizable(false); setModal(true); contentPane.setBorder(DefaultUIProvider.getDefaultEmptyEtchedEmptyBorder()); setContentPane(contentPane); getRootPane().setDefaultButton(co...
public BrainConfirmationDialog() { GameStateManager.getInstance().addListener(this); setResizable(false); setModal(true); contentPane.setBorder(DefaultUIProvider.getDefaultEmptyEtchedEmptyBorder()); setContentPane(contentPane); getRootPane().setDefaultButton(co...
diff --git a/src/main/java/features/mouse/Myers.java b/src/main/java/features/mouse/Myers.java index 585dc6e..a6ecf89 100644 --- a/src/main/java/features/mouse/Myers.java +++ b/src/main/java/features/mouse/Myers.java @@ -1,22 +1,22 @@ package features.mouse; public class Myers implements features.Myers { @Ove...
false
true
public String getName(int lineA, int lineB, int lineC) { if (lineA <= 0 || lineB <= 0 || lineC <= 0) { throw new IllegalArgumentException(); } if (lineA == lineB && lineB == lineC) { return "���O�p�`"; } else if (lineA == lineB || lineB == lineC || lineC == lineA) { return "�񓙕ӎO�p�`"; } else {...
public String getName(int lineA, int lineB, int lineC) { if (lineA <= 0 || lineB <= 0 || lineC <= 0) { throw new IllegalArgumentException(); } if (lineA == lineB && lineB == lineC) { return ""; } else if (lineA == lineB || lineB == lineC || lineC == lineA) { return ""; } else { return ""; ...
diff --git a/plugins/org.eclipse.dltk.ruby.formatter/src/org/eclipse/dltk/ruby/formatter/internal/RubyFormatterNodeBuilder.java b/plugins/org.eclipse.dltk.ruby.formatter/src/org/eclipse/dltk/ruby/formatter/internal/RubyFormatterNodeBuilder.java index 72e3b583..d85807f3 100644 --- a/plugins/org.eclipse.dltk.ruby.formatt...
false
true
public IFormatterContainerNode build(RubyParserResult result, final IFormatterDocument document) { final IFormatterContainerNode root = new FormatterRootNode(document); start(root); result.getAST().accept(new AbstractVisitor() { protected Instruction visitNode(Node visited) { visitChildren(visited); ...
public IFormatterContainerNode build(RubyParserResult result, final IFormatterDocument document) { final IFormatterContainerNode root = new FormatterRootNode(document); start(root); result.getAST().accept(new AbstractVisitor() { protected Instruction visitNode(Node visited) { visitChildren(visited); ...
diff --git a/StructAlgoSim/sim/functions/Set.java b/StructAlgoSim/sim/functions/Set.java index 7bbcbbe..1e4d5af 100644 --- a/StructAlgoSim/sim/functions/Set.java +++ b/StructAlgoSim/sim/functions/Set.java @@ -1,152 +1,152 @@ package sim.functions; import java.awt.Rectangle; import java.awt.event.ActionEvent; impo...
false
true
public void actionPerformed(ActionEvent e) { if(v != null){ if(l instanceof Variable){ if(singleChar){ String val = v.getValue(); if(val.length()>0){ String ch = val.substring(0, 1); v.setValue(val.substring(1)); String tarVal = ((Variable) l).getValue(); tarVal += ch; ((Va...
public void actionPerformed(ActionEvent e) { if(v != null){ if(l instanceof Variable){ if(singleChar){ String val = v.getValue(); if(val.length()>0){ String ch = val.substring(0, 1); v.setValue(val.substring(1)); String tarVal = ((Variable) l).getValue(); tarVal += ch; ((Va...
diff --git a/src/java/com/idega/block/news/data/News.java b/src/java/com/idega/block/news/data/News.java index 4c23cc0..0156dc2 100755 --- a/src/java/com/idega/block/news/data/News.java +++ b/src/java/com/idega/block/news/data/News.java @@ -1,130 +1,130 @@ //idega 2000 - �gir og eiki package com.idega.block.news.da...
true
true
public void initializeAttributes(){ addAttribute(getIDColumnName()); addAttribute(getNewsCategoryIdColumnName(), "Category", true, true, Integer.class, "many-to-one",NewsCategory.class); addAttribute(getHeadLineColumnName(), "Headline", true, true, String.class); addAttribute(getNewsTextColumnName(), ...
public void initializeAttributes(){ addAttribute(getIDColumnName()); addAttribute(getNewsCategoryIdColumnName(), "Category", true, true, Integer.class, "many-to-one",NewsCategory.class); addAttribute(getHeadLineColumnName(), "Headline", true, true, String.class); addAttribute(getNewsTextColumnName(), ...
diff --git a/cipango-tests/src/test/java/org/cipango/sipunit/test/ReliableTest.java b/cipango-tests/src/test/java/org/cipango/sipunit/test/ReliableTest.java index 19f153a..4e9caa3 100644 --- a/cipango-tests/src/test/java/org/cipango/sipunit/test/ReliableTest.java +++ b/cipango-tests/src/test/java/org/cipango/sipunit/te...
true
true
public void test100RelUac(final boolean latePrackAnswer) throws Exception { UaRunnable call = new UaRunnable(_ua) { @Override public void doTest() throws Throwable { SipServletRequest invite = waitForInitialRequest(); assertThat(invite.getMethod(), is(equalTo(SipMethods.INVITE))); assertThat(...
public void test100RelUac(final boolean latePrackAnswer) throws Exception { UaRunnable call = new UaRunnable(_ua) { @Override public void doTest() throws Throwable { SipServletRequest invite = waitForInitialRequest(); assertThat(invite.getMethod(), is(equalTo(SipMethods.INVITE))); assertThat(...
diff --git a/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/ExternalSourceFolderRoot.java b/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/ExternalSourceFolderRoot.java index e74a7d5b..44906b2d 100644 --- a/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/ExternalSourceFolderRoot...
false
true
protected void computeFolderChildren(File folder, String[] pkgName, ArrayList vChildren) throws RubyModelException { ISourceFolder pkg = getSourceFolder(pkgName); vChildren.add(pkg); try { RubyProject rubyProject = (RubyProject) getRubyProject(); RubyModelManager manager = RubyModelManager.getRubyModelMan...
protected void computeFolderChildren(File folder, String[] pkgName, ArrayList vChildren) throws RubyModelException { ISourceFolder pkg = getSourceFolder(pkgName); vChildren.add(pkg); try { RubyModelManager manager = RubyModelManager.getRubyModelManager(); File[] members = folder.listFiles(); for (int ...
diff --git a/order_system/src/ntnu/it1901/gruppe4/db/OrderMaker.java b/order_system/src/ntnu/it1901/gruppe4/db/OrderMaker.java index b5d9183..9dac030 100644 --- a/order_system/src/ntnu/it1901/gruppe4/db/OrderMaker.java +++ b/order_system/src/ntnu/it1901/gruppe4/db/OrderMaker.java @@ -1,256 +1,256 @@ /** * */ pac...
true
true
public void save() { if (isValid()) { if (hasBeenSaved) { DataAPI.addOrder(order); hasBeenSaved = true; } else { DataAPI.updateOrder(order); } for (OrderItem item : addQue) { DataAPI.addOrderItem(item); } for (OrderItem item : remQue) { DataAPI.remOrderItem(item); } for (O...
public void save() { if (isValid()) { if (!hasBeenSaved) { DataAPI.addOrder(order); hasBeenSaved = true; } else { DataAPI.updateOrder(order); } for (OrderItem item : addQue) { DataAPI.addOrderItem(item); } for (OrderItem item : remQue) { DataAPI.remOrderItem(item); } for (...
diff --git a/src/org/jf/Penroser/MomentumController.java b/src/org/jf/Penroser/MomentumController.java index 5b788e4..6d585fa 100644 --- a/src/org/jf/Penroser/MomentumController.java +++ b/src/org/jf/Penroser/MomentumController.java @@ -1,150 +1,150 @@ package org.jf.Penroser; import android.text.method.MovementMet...
true
true
public void touchReleased() { releaseTime= System.currentTimeMillis(); touchActive = false; int oldestIndex = nextMovement; long newestTime = -1; for (int i=nextMovement-1; i>nextMovement-11; i--) { int index = MathUtil.positiveMod(i, NUM_TOUCHES); P...
public void touchReleased() { releaseTime= System.currentTimeMillis(); touchActive = false; int oldestIndex = nextMovement; long newestTime = -1; for (int i=nextMovement-1; i>nextMovement-11; i--) { int index = MathUtil.positiveMod(i, NUM_TOUCHES); P...
diff --git a/source/de/anomic/plasma/plasmaSearchRankingProfile.java b/source/de/anomic/plasma/plasmaSearchRankingProfile.java index 95119a2a0..5d95dcd63 100644 --- a/source/de/anomic/plasma/plasmaSearchRankingProfile.java +++ b/source/de/anomic/plasma/plasmaSearchRankingProfile.java @@ -1,324 +1,325 @@ // plasmaSearc...
true
true
public plasmaSearchRankingProfile(String prefix, String profile) { this("text"); // set defaults if ((profile != null) && (profile.length() > 0)) { //parse external form HashMap coeff = new HashMap(); String[] elts = ((profile.startsWith("{") && (profile.endsWith(...
public plasmaSearchRankingProfile(String prefix, String profile) { this("text"); // set defaults if ((profile != null) && (profile.length() > 0)) { //parse external form HashMap coeff = new HashMap(); String[] elts = ((profile.startsWith("{") && (profile.endsWith(...
diff --git a/java/lycanite/lycanitesmobs/api/entity/EntityPortal.java b/java/lycanite/lycanitesmobs/api/entity/EntityPortal.java index ba208362..de2a39f8 100644 --- a/java/lycanite/lycanitesmobs/api/entity/EntityPortal.java +++ b/java/lycanite/lycanitesmobs/api/entity/EntityPortal.java @@ -1,205 +1,205 @@ package lyca...
true
true
public void onUpdate() { // Move: if(!this.worldObj.isRemote && !this.isDead && ( this.shootingEntity == null || !this.shootingEntity.isEntityAlive() || this.portalItem == null || this.shootingEntity.getItemInUse() == null || this.shootingEntity.getItemInUse().getItem() != this.portal...
public void onUpdate() { // Move: if(!this.worldObj.isRemote && !this.isDead && ( this.shootingEntity == null || !this.shootingEntity.isEntityAlive() || this.portalItem == null || this.portalItem.portalEntity != this) ) { this.setDead(); return; } this.moveT...
diff --git a/src/com/cooliris/media/MediaBucketList.java b/src/com/cooliris/media/MediaBucketList.java index eb715d1..6508d95 100644 --- a/src/com/cooliris/media/MediaBucketList.java +++ b/src/com/cooliris/media/MediaBucketList.java @@ -1,261 +1,262 @@ package com.cooliris.media; import java.util.ArrayList; import...
false
true
public void add(int slotId, MediaFeed feed, boolean removeIfAlreadyAdded) { if (slotId == Shared.INVALID) { return; } setDirty(); final ArrayList<MediaBucket> selectedBuckets = mBuckets; final int numSelectedBuckets = selectedBuckets.size(); MediaSet media...
public void add(int slotId, MediaFeed feed, boolean removeIfAlreadyAdded) { if (slotId == Shared.INVALID) { return; } setDirty(); final ArrayList<MediaBucket> selectedBuckets = mBuckets; final int numSelectedBuckets = selectedBuckets.size(); MediaSet media...
diff --git a/src/jvm/storm/starter/bolt/RedisLinksPublisherBolt.java b/src/jvm/storm/starter/bolt/RedisLinksPublisherBolt.java index 88a2800..f78e211 100644 --- a/src/jvm/storm/starter/bolt/RedisLinksPublisherBolt.java +++ b/src/jvm/storm/starter/bolt/RedisLinksPublisherBolt.java @@ -1,105 +1,105 @@ package storm.star...
true
true
public List<Object> filter(Status status) { URLEntity urls[] = status.getURLEntities(); if(urls == null) { return null; } URL finalUrl = null; List<Object> marketUrls = new LinkedList<Object>(); for(URLEntity url: urls) { finalUrl = getFinalUrl(url.getURL()); if(finalUrl == null) { c...
public List<Object> filter(Status status) { URLEntity urls[] = status.getURLEntities(); if(urls == null) { return null; } URL finalUrl = null; List<Object> marketUrls = new LinkedList<Object>(); for(URLEntity url: urls) { finalUrl = getFinalUrl(url.getURL()); if(finalUrl == null) { c...
diff --git a/soar-robotics/splinter-soar/src/splintersoar/vis/Viewer.java b/soar-robotics/splinter-soar/src/splintersoar/vis/Viewer.java index 422847681..1650a1068 100644 --- a/soar-robotics/splinter-soar/src/splintersoar/vis/Viewer.java +++ b/soar-robotics/splinter-soar/src/splintersoar/vis/Viewer.java @@ -1,203 +1,20...
false
true
public Viewer() { lcm = LCM.getSingleton(); lcm.subscribe(LCMInfo.SPLINTER_STATE_CHANNEL, this); lcm.subscribe(LCMInfo.WAYPOINTS_CHANNEL, this); lcm.subscribe(LCMInfo.COORDS_CHANNEL, this); lcm.subscribe(LCMInfo.PARTICLES_CHANNEL, this); lcm.subscribe(LCMInfo.LASER_FRONT_CHANNEL, this); lcm.subscribe(LCM...
public Viewer() { lcm = LCM.getSingleton(); lcm.subscribe(LCMInfo.SPLINTER_STATE_CHANNEL, this); lcm.subscribe(LCMInfo.WAYPOINTS_CHANNEL, this); lcm.subscribe(LCMInfo.COORDS_CHANNEL, this); lcm.subscribe(LCMInfo.PARTICLES_CHANNEL, this); lcm.subscribe(LCMInfo.LASER_FRONT_CHANNEL, this); lcm.subscribe(LCM...
diff --git a/htroot/CrawlProfileEditor_p.java b/htroot/CrawlProfileEditor_p.java index 30ed6f471..b91adffd4 100644 --- a/htroot/CrawlProfileEditor_p.java +++ b/htroot/CrawlProfileEditor_p.java @@ -1,247 +1,248 @@ // CrawlProfileEditor_p.java // (C) 2005, by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., German...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch<?> env) { final servletProperties prop = new servletProperties(); final plasmaSwitchboard sb = (plasmaSwitchboard)env; // read post for handle String handle = (post == null) ? "" : post.g...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch<?> env) { final servletProperties prop = new servletProperties(); final plasmaSwitchboard sb = (plasmaSwitchboard)env; // read post for handle String handle = (post == null) ? "" : post.g...
diff --git a/test/src/net/sf/freecol/common/model/ColonyProductionTest.java b/test/src/net/sf/freecol/common/model/ColonyProductionTest.java index e3da7adc1..1e2df46ea 100644 --- a/test/src/net/sf/freecol/common/model/ColonyProductionTest.java +++ b/test/src/net/sf/freecol/common/model/ColonyProductionTest.java @@ -1,8...
true
true
public void testProductionOne() { Game game = getStandardGame(); Player dutch = game.getPlayer("model.nation.dutch"); Tile[][] tiles = new Tile[10][15]; for (int x = 0; x < 10; x++) { for (int y = 0; y < 15; y++) { tiles[x][y] = new Tile(game, FreeCol....
public void testProductionOne() { Game game = getStandardGame(); Player dutch = game.getPlayer("model.nation.dutch"); Tile[][] tiles = new Tile[10][15]; for (int x = 0; x < 10; x++) { for (int y = 0; y < 15; y++) { tiles[x][y] = new Tile(game, FreeCol....
diff --git a/src/net/java/sip/communicator/service/protocol/ProtocolProviderFactory.java b/src/net/java/sip/communicator/service/protocol/ProtocolProviderFactory.java index 7feeaa228..825f3bd45 100644 --- a/src/net/java/sip/communicator/service/protocol/ProtocolProviderFactory.java +++ b/src/net/java/sip/communicator/s...
true
true
protected void loadStoredAccounts(BundleContext bundleContext) { String sourcePackageName = getFactoryImplPackageName(); ServiceReference confReference = bundleContext.getServiceReference( ConfigurationService.class.getName()); ConfigurationService configurat...
protected void loadStoredAccounts(BundleContext bundleContext) { String sourcePackageName = getFactoryImplPackageName(); ServiceReference confReference = bundleContext.getServiceReference( ConfigurationService.class.getName()); ConfigurationService configurat...
diff --git a/src/org/nbphpcouncil/modules/php/yii/ui/options/YiiOptions.java b/src/org/nbphpcouncil/modules/php/yii/ui/options/YiiOptions.java index 682eabb..0705b8d 100644 --- a/src/org/nbphpcouncil/modules/php/yii/ui/options/YiiOptions.java +++ b/src/org/nbphpcouncil/modules/php/yii/ui/options/YiiOptions.java @@ -1,9...
true
true
public synchronized String getYiiScript() { String yiiScript = getPreferences().get(PARAMS_FOR_PROJECT, null); if (yiiScript == null) { List<String> scripts = FileUtils.findFileOnUsersPath(YiiScript.YII_SCRIPT_NAME_LONG); if (!scripts.isEmpty()) { yiiScript = ...
public synchronized String getYiiScript() { String yiiScript = getPreferences().get(PARAMS_FOR_PROJECT, null); if (yiiScript == null) { List<String> scripts = FileUtils.findFileOnUsersPath(YiiScript.YII_SCRIPT_NAME_LONG); if (!scripts.isEmpty()) { yiiScript = ...
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/PageController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/PageController.java index d082690f4..785bb031b 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/PageController.java +++ b/w...
true
true
protected ResponseValues processRequest(VitroRequest vreq) throws Exception { Map<String,Object> mapForTemplate = new HashMap<String,Object>(); Map<String,Object>page; //figure out what page we are trying to get ...
protected ResponseValues processRequest(VitroRequest vreq) throws Exception { Map<String,Object> mapForTemplate = new HashMap<String,Object>(); Map<String,Object>page; //figure out what page we are trying to get ...
diff --git a/loci/formats/ImageViewer.java b/loci/formats/ImageViewer.java index 2b51a6736..f28100548 100644 --- a/loci/formats/ImageViewer.java +++ b/loci/formats/ImageViewer.java @@ -1,322 +1,323 @@ // // ImageViewer.java // /* LOCI Bio-Formats package for reading and converting biological file formats. Copyr...
true
true
public ImageViewer() { super(TITLE); setDefaultCloseOperation(DISPOSE_ON_CLOSE); pane = new JPanel(); pane.setLayout(new BorderLayout()); setContentPane(pane); setSize(350, 350); // default size // navigation slider slider = new JSlider(1, 1); slider.setVisible(false); slider....
public ImageViewer() { super(TITLE); setDefaultCloseOperation(DISPOSE_ON_CLOSE); pane = new JPanel(); pane.setLayout(new BorderLayout()); setContentPane(pane); setSize(350, 350); // default size // navigation slider slider = new JSlider(1, 1); slider.setVisible(false); slider....
diff --git a/src/GuessNumber.java b/src/GuessNumber.java index 204c28a..37edd60 100644 --- a/src/GuessNumber.java +++ b/src/GuessNumber.java @@ -1,134 +1,134 @@ import java.util.Random; import java.util.Scanner; public class GuessNumber { /** * The max range in the randomize method. */ protected st...
true
true
public static void main(String[] args) { String userName = getUserName(); System.out.println("Welcome " + userName + ", lets play a game. Guess a number bwtween 1 and 10."); int randomInt = getRandomNumber(maxRange); // Control if the user have entered the correct value. boolean passed...
public static void main(String[] args) { String userName = getUserName(); System.out.println("Welcome " + userName + ", lets play a game. Guess a number bwtween 1 and 10."); int randomInt = getRandomNumber(maxRange); // Control if the user have entered the correct value. boolean passed...
diff --git a/java/src/se/sveaekonomi/webpay/integration/hosted/payment/HostedPayment.java b/java/src/se/sveaekonomi/webpay/integration/hosted/payment/HostedPayment.java index 299e6eb..5fd38d7 100644 --- a/java/src/se/sveaekonomi/webpay/integration/hosted/payment/HostedPayment.java +++ b/java/src/se/sveaekonomi/webpay/i...
true
true
public String validateOrder() { String errors = ""; if (this.returnUrl.equals("")) { errors += "MISSING VALUE - Return url is required, setReturnUrl(...).\n"; } HostedOrderValidator validator = new HostedOrderValidator(); // Check if payment method is EU country, PaymentMethod: INVOICE or PAYMENTPLAN i...
public String validateOrder() { String errors = ""; if (this.returnUrl.equals("")) { errors += "MISSING VALUE - Return url is required, setReturnUrl(...).\n"; } HostedOrderValidator validator = new HostedOrderValidator(); // Check if payment method is EU country, PaymentMethod: INVOICE or PAYMENTPLAN i...
diff --git a/usage/src/test/java/com/ning/billing/usage/timeline/samples/TestScalarSample.java b/usage/src/test/java/com/ning/billing/usage/timeline/samples/TestScalarSample.java index 98626a330..74a2adbd2 100644 --- a/usage/src/test/java/com/ning/billing/usage/timeline/samples/TestScalarSample.java +++ b/usage/src/tes...
false
true
public void testFromObject() throws Exception { verifyFromObject(null, 0.0, null, SampleOpcode.NULL); verifyFromObject((byte) 1, (double) 1, 1, SampleOpcode.BYTE); verifyFromObject((short) 128, (double) 128, (short) 128, SampleOpcode.SHORT); verifyFromObject(32767, (double) 32767, ...
public void testFromObject() throws Exception { verifyFromObject(null, 0.0, null, SampleOpcode.NULL); verifyFromObject((byte) 1, (double) 1, (byte) 1, SampleOpcode.BYTE); verifyFromObject((short) 128, (double) 128, (short) 128, SampleOpcode.SHORT); verifyFromObject(32767, (double) ...
diff --git a/src/com/omartech/tdg/action/customer/CustomerOrderAction.java b/src/com/omartech/tdg/action/customer/CustomerOrderAction.java index fe8f281..9815a1f 100644 --- a/src/com/omartech/tdg/action/customer/CustomerOrderAction.java +++ b/src/com/omartech/tdg/action/customer/CustomerOrderAction.java @@ -1,156 +1,15...
true
true
public JsonMessage complainOrder(@RequestParam int orderId, @RequestParam int reasonId, @RequestParam String comment, Locale locale){ Order order = orderService.getOrderById(orderId); JsonMessage message = new JsonMessage(); Date orderDate = order.getCreateAt(); Date now = new Date(System.currentTimeMillis());...
public JsonMessage complainOrder(@RequestParam int orderId, @RequestParam int reasonId, @RequestParam String comment, Locale locale){ Order order = orderService.getOrderById(orderId); JsonMessage message = new JsonMessage(); Date orderDate = order.getCreateAt(); Date now = new Date(System.currentTimeMillis());...
diff --git a/openejb/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/JsonExecutor.java b/openejb/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/JsonExecutor.java index d10d6636b..6f26bb338 100644 --- a/openejb/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/JsonExecutor.java +++ b/openejb/to...
false
true
public static void execute(final HttpServletRequest req, final HttpServletResponse resp, final Executor executor) { try { final Map<String, Object> result = new HashMap<String, Object>(); executor.call(result); resp.setContentType("application/json"); resp.s...
public static void execute(final HttpServletRequest req, final HttpServletResponse resp, final Executor executor) { try { final Map<String, Object> result = new HashMap<String, Object>(); executor.call(result); resp.setContentType("application/json"); resp.s...
diff --git a/floggy-persistence-android-core/src/main/java/org/floggy/persistence/android/PersistableManager.java b/floggy-persistence-android-core/src/main/java/org/floggy/persistence/android/PersistableManager.java index e921876..5d2ddfb 100755 --- a/floggy-persistence-android-core/src/main/java/org/floggy/persistenc...
true
true
public void load(Object object, long id, boolean lazy) throws FloggyException { if (object == null) { throw new IllegalArgumentException( "The persistable object cannot be null!"); } Metadata metadata = MetadataManager.getMetadata(object.getClass()); String tableName = metadata.getTableName(); SQL...
public void load(Object object, long id, boolean lazy) throws FloggyException { if (object == null) { throw new IllegalArgumentException( "The persistable object cannot be null!"); } Metadata metadata = MetadataManager.getMetadata(object.getClass()); String tableName = metadata.getTableName(); SQL...
diff --git a/src/main/java/ru/xrm/app/dao/DAOFactory.java b/src/main/java/ru/xrm/app/dao/DAOFactory.java index 54ac843..ba6e70a 100644 --- a/src/main/java/ru/xrm/app/dao/DAOFactory.java +++ b/src/main/java/ru/xrm/app/dao/DAOFactory.java @@ -1,36 +1,37 @@ package ru.xrm.app.dao; import java.util.HashMap; import jav...
true
true
public <T extends GenericDAO> T getDao(Class<T> daoClazz){ T dao=daoClazz.cast( daos.get(daoClazz) ); if (dao!=null){ return dao; }else{ try { dao = daoClazz.newInstance(); daos.put(daoClazz, dao); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e...
public <T extends GenericDAO> T getDao(Class<T> daoClazz){ T dao=daoClazz.cast( daos.get(daoClazz) ); if (dao!=null){ return dao; }else{ try { dao = daoClazz.newInstance(); daos.put(daoClazz, dao); return dao; } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalA...
diff --git a/pa1/java/src/cs224n/langmodel/NGram.java b/pa1/java/src/cs224n/langmodel/NGram.java index 813f34d..6a5ae3a 100644 --- a/pa1/java/src/cs224n/langmodel/NGram.java +++ b/pa1/java/src/cs224n/langmodel/NGram.java @@ -1,141 +1,141 @@ package cs224n.langmodel; import java.util.ArrayList; import java.util.Col...
false
true
public double checkModel() { int checked = 0; double sum = 0.0; for (List<String> prefix : knownPrefixes()) { double sample = Math.random(); // We expect to check ~10 distributions if (sample < 10.0 / knownPrefixes().size()) { checked++; sum += checkModelForPrefix(prefix)...
public double checkModel() { int checked = 0; double sum = 0.0; for (List<String> prefix : knownPrefixes()) { double sample = Math.random(); // We expect to check ~10 distributions if (sample < 10.0 / knownPrefixes().size()) { checked++; sum += checkModelForPrefix(prefix)...
diff --git a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmePosterizationFilter.java b/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmePosterizationFilter.java index f26525252..b4809f0c9 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmePosterizationFilter.java +++ b/sdk/jme3-core/src/com/jme3/g...
true
true
protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("Posterization"); set.setName(Node.class.getName()); PosterizationFilter obj = (PosterizationFilter) filter; if (obj == null) { ...
protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = Sheet.createPropertiesSet(); set.setDisplayName("Posterization"); set.setName(Node.class.getName()); PosterizationFilter obj = (PosterizationFilter) filter; if (obj == null) { ...
diff --git a/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java b/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java index 745929bb..5e47ae11 100644 --- a/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java +++ b/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java @@ -1,179 +1,...
false
true
private void initComponents() { User user; if (id == null) { id = getSession().getUserId(); } user = userManager.findUserById(id, true); if (user == null) { logger.warn("Not founded user for UserHistory page with id: " + id); error("A megad...
private void initComponents() { User user; if (id == null) { id = getSession().getUserId(); } user = userManager.findUserById(id, true); if (user == null) { logger.warn("Not founded user for UserHistory page with id: " + id); error("A megad...
diff --git a/CS425MP2/src/Machine.java b/CS425MP2/src/Machine.java index fe863f8..a2e8527 100644 --- a/CS425MP2/src/Machine.java +++ b/CS425MP2/src/Machine.java @@ -1,318 +1,319 @@ import java.io.*; import java.net.*; import java.util.HashMap; import java.util.Vector; import java.io.ByteArrayInputStream; im...
true
true
public static void main(String[] args) { boolean mflag = false; Machine m; if (args.length == 2) { mflag = args[1].equals("mastermode"); m = new Machine(mflag); } else { m = new Machine(); } m.memberList = new Vector<String>(); m.myFileList = new Vector<String>(); System.out.println("in mac...
public static void main(String[] args) { boolean mflag = false; Machine m; if (args.length == 2) { mflag = args[1].equals("mastermode"); m = new Machine(mflag); } else { m = new Machine(); } m.memberList = new Vector<String>(); m.myFileList = new Vector<String>(); System.out.println("in mac...
diff --git a/src/com/anibug/smsmanager/model/ContactManager.java b/src/com/anibug/smsmanager/model/ContactManager.java index d9c5704..884926d 100644 --- a/src/com/anibug/smsmanager/model/ContactManager.java +++ b/src/com/anibug/smsmanager/model/ContactManager.java @@ -1,145 +1,144 @@ package com.anibug.smsmanager.mode...
true
true
public Contact getContactFromPickResult(Uri data){ try { ContentResolver contect_resolver = context.getContentResolver(); Cursor c = contect_resolver.query(data, null, null, null, null); if (c.moveToFirst()) { String name = null; String number = null; String id = c.getStri...
public Contact getContactFromPickResult(Uri data){ try { ContentResolver contect_resolver = context.getContentResolver(); Cursor c = contect_resolver.query(data, null, null, null, null); if (c.moveToFirst()) { String name = null; String number = null; String id = c.getStri...
diff --git a/cloudinary-core/src/main/java/com/cloudinary/Url.java b/cloudinary-core/src/main/java/com/cloudinary/Url.java index 396c14c..3881fbc 100644 --- a/cloudinary-core/src/main/java/com/cloudinary/Url.java +++ b/cloudinary-core/src/main/java/com/cloudinary/Url.java @@ -1,183 +1,183 @@ package com.cloudinary; ...
true
true
public String generate(String source) { if (type.equals("fetch") && StringUtils.isNotBlank(format)) { transformation().fetchFormat(format); this.format = null; } String transformationStr = transformation().generate(); if (StringUtils.isBlank(this.cloudName)) { throw new IllegalArgumentException("Must ...
public String generate(String source) { if (type.equals("fetch") && StringUtils.isNotBlank(format)) { transformation().fetchFormat(format); this.format = null; } String transformationStr = transformation().generate(); if (StringUtils.isBlank(this.cloudName)) { throw new IllegalArgumentException("Must ...
diff --git a/Slick/tools/org/newdawn/slick/tools/peditor/ColorPanel.java b/Slick/tools/org/newdawn/slick/tools/peditor/ColorPanel.java index 0d6bc7c..07f6377 100644 --- a/Slick/tools/org/newdawn/slick/tools/peditor/ColorPanel.java +++ b/Slick/tools/org/newdawn/slick/tools/peditor/ColorPanel.java @@ -1,230 +1,228 @@ pa...
false
true
public ColorPanel() { grad = new GradientEditor(); grad.setBorder(BorderFactory.createTitledBorder("Color Change")); grad.setBounds(0,0,280,100); add(grad); grad.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { updateColors(); } }); yPos+=90; startAl...
public ColorPanel() { grad = new GradientEditor(); grad.setBorder(BorderFactory.createTitledBorder("Color Change")); grad.setBounds(0,0,280,100); add(grad); grad.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { updateColors(); } }); yPos+=70; startAl...
diff --git a/src/net/brwyatt/badscience/levels/levels/TestLevel.java b/src/net/brwyatt/badscience/levels/levels/TestLevel.java index 7e0ec83..5be612a 100644 --- a/src/net/brwyatt/badscience/levels/levels/TestLevel.java +++ b/src/net/brwyatt/badscience/levels/levels/TestLevel.java @@ -1,384 +1,392 @@ /* * Copyright ...
false
true
private void runGame(){ run=true; int counter=1; //tick-tock counter while(run){ if(pause){//if game has been paused //create and display menu PauseMenuOverlayBackground bg=new PauseMenuOverlayBackground(); MenuItem item1=new MenuItem(4, true, "Exit to Main Menu"); screenObjects.addToTop(b...
private void runGame(){ run=true; int counter=1; //tick-tock counter while(run){ if(pause){//if game has been paused //create and display menu PauseMenuOverlayBackground bg=new PauseMenuOverlayBackground(); MenuItem item1=new MenuItem(4, true, "Exit to Main Menu"); screenObjects.addToTop(b...
diff --git a/src/game/Game.java b/src/game/Game.java index c345f7a..3cb86a3 100644 --- a/src/game/Game.java +++ b/src/game/Game.java @@ -1,164 +1,165 @@ package game; import game.Player.ShipType; import game.types.AsteroidField; import game.types.Bandits; import input.KeyboardListener; import input.XboxInputLis...
false
true
public static void init() { System.out.println(Runtime.getRuntime().availableProcessors() + " available cores detected"); try { Settings.init(); } catch (IOException e) { e.printStackTrace(); } catch (Base64DecodingException e) { // TODO Auto-gener...
public static void init() { System.out.println(Runtime.getRuntime().availableProcessors() + " available cores detected"); try { Settings.init(); } catch (IOException e) { e.printStackTrace(); } catch (Base64DecodingException e) { // TODO Auto-gener...
diff --git a/src/com/cole2sworld/ColeBans/commands/Actions.java b/src/com/cole2sworld/ColeBans/commands/Actions.java index b52d4b8..cf17464 100644 --- a/src/com/cole2sworld/ColeBans/commands/Actions.java +++ b/src/com/cole2sworld/ColeBans/commands/Actions.java @@ -1,113 +1,113 @@ package com.cole2sworld.ColeBans.comma...
false
true
public String run(String[] args, CommandSender admin) throws Exception { if (!(new PermissionSet(admin).canLog)) return ChatColor.RED+"You don't have permission to do that."; if (args.length < 2) return ChatColor.RED+"Not enough arguments."; String by = null; String to = null; long units = -1; Unit unit = ...
public String run(String[] args, CommandSender admin) throws Exception { if (!(new PermissionSet(admin).canLog)) return ChatColor.RED+"You don't have permission to do that."; if (args.length < 2) return ChatColor.RED+"Not enough arguments."; String by = null; String to = null; long units = -1; Unit unit = ...
diff --git a/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/tika/TikaDocumentReader.java b/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/tika/TikaDocumentReader.java index 1baeb44a..8788cc79 100644 --- a/exo.core.component.document/src/main/java/org/e...
true
true
public Properties getProperties(final InputStream is) throws IOException, DocumentReadException { try { return (Properties)AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() { public Object run() throws Exception { try ...
public Properties getProperties(final InputStream is) throws IOException, DocumentReadException { try { return (Properties)AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() { public Object run() throws Exception { try ...
diff --git a/src/main/java/org/elasticsearch/river/jdbc/JDBCRiver.java b/src/main/java/org/elasticsearch/river/jdbc/JDBCRiver.java index ed37b53b..ec3c11f2 100644 --- a/src/main/java/org/elasticsearch/river/jdbc/JDBCRiver.java +++ b/src/main/java/org/elasticsearch/river/jdbc/JDBCRiver.java @@ -1,258 +1,258 @@ /* * L...
true
true
public JDBCRiver(RiverName riverName, RiverSettings riverSettings, @RiverIndexName String riverIndexName, Client client) { super(riverName, riverSettings); // riverIndexName = _river Map<String, Object> sourceSettings = riverSettings...
public JDBCRiver(RiverName riverName, RiverSettings riverSettings, @RiverIndexName String riverIndexName, Client client) { super(riverName, riverSettings); // riverIndexName = _river Map<String, Object> sourceSettings = riverSettings...
diff --git a/src/de/uni_koblenz/jgralab/impl/trans/ReversedEdgeImpl.java b/src/de/uni_koblenz/jgralab/impl/trans/ReversedEdgeImpl.java index 8be759510..ca4a5379c 100644 --- a/src/de/uni_koblenz/jgralab/impl/trans/ReversedEdgeImpl.java +++ b/src/de/uni_koblenz/jgralab/impl/trans/ReversedEdgeImpl.java @@ -1,219 +1,219 @@...
false
true
public void setNextIncidenceInternal(EdgeBase nextIncidence) { if (graph.isLoading()) { this.nextIncidence = new VersionedReferenceImpl<IncidenceImpl>( normalEdge, (EdgeBaseImpl) nextIncidence); } else { TransactionImpl transaction = (TransactionImpl) graph .getCurrentTransaction(); if (transact...
public void setNextIncidenceInternal(EdgeBase nextIncidence) { if (graph.isLoading()) { this.nextIncidence = new VersionedReferenceImpl<IncidenceImpl>( normalEdge, (IncidenceImpl) nextIncidence); } else { TransactionImpl transaction = (TransactionImpl) graph .getCurrentTransaction(); if (transac...
diff --git a/src/com/android/gallery3d/app/Gallery.java b/src/com/android/gallery3d/app/Gallery.java index 1ffa6ec..ebfa984 100644 --- a/src/com/android/gallery3d/app/Gallery.java +++ b/src/com/android/gallery3d/app/Gallery.java @@ -1,250 +1,252 @@ /* * Copyright (C) 2009 The Android Open Source Project * * Lice...
true
true
private void startViewAction(Intent intent) { Boolean slideshow = intent.getBooleanExtra(EXTRA_SLIDESHOW, false); getStateManager().setLaunchGalleryOnTop(true); if (slideshow) { getActionBar().hide(); DataManager manager = getDataManager(); Path path = man...
private void startViewAction(Intent intent) { Boolean slideshow = intent.getBooleanExtra(EXTRA_SLIDESHOW, false); getStateManager().setLaunchGalleryOnTop(true); if (slideshow) { getActionBar().hide(); DataManager manager = getDataManager(); Path path = man...
diff --git a/Main/DecisionTreeNode.java b/Main/DecisionTreeNode.java index 9cb4ba6..4a50d0e 100644 --- a/Main/DecisionTreeNode.java +++ b/Main/DecisionTreeNode.java @@ -1,68 +1,69 @@ package Main; import java.util.ArrayList; import java.util.List; import util.Example; import AttributeValues.AttributeValue; im...
true
true
public int predictOutcome(Example e) { if (outcome != 0) { return outcome; } else { for (DecisionTreeNode child : children) { if (child.aValue.equals(rootAttribute .getExampleAttributeValue(e))) { return child.predictOutcome(e); } } } return -1; }
public int predictOutcome(Example e) { if (outcome != 0) { return outcome; } else { for (DecisionTreeNode child : children) { if (child.aValue.equals(rootAttribute .getExampleAttributeValue(e))) { return child.predictOutcome(e); } } } // return -1 if the process failed return -1; ...
diff --git a/arq-helper/src/main/java/org/charleech/arq/eval/helper/AbstractMarker.java b/arq-helper/src/main/java/org/charleech/arq/eval/helper/AbstractMarker.java index 873f8c1..8234738 100644 --- a/arq-helper/src/main/java/org/charleech/arq/eval/helper/AbstractMarker.java +++ b/arq-helper/src/main/java/org/charleech...
true
true
public final Marker getMarker() { return MarkerWrapper.getINSTANCE().getMarker(this.getClass()); }
public Marker getMarker() { return MarkerWrapper.getINSTANCE().getMarker(this.getClass()); }
diff --git a/Test/src/instrumentTest/java/com/bingzer/android/dbv/test/ITableTest.java b/Test/src/instrumentTest/java/com/bingzer/android/dbv/test/ITableTest.java index 03d8a38..23db391 100644 --- a/Test/src/instrumentTest/java/com/bingzer/android/dbv/test/ITableTest.java +++ b/Test/src/instrumentTest/java/com/bingzer/...
false
true
public void testNullValues_AllTests(){ // select id assertTrue(db.get("Customers").selectId("Name is not null And Address is null") > 0); assertTrue(db.get("Customers").selectId("Name LIKE ? AND Address is ?", "%player%", null) > 0); // count assertTrue(db.get("Customers").c...
public void testNullValues_AllTests(){ // select id assertTrue(db.get("Customers").selectId("Name is not null And Address is null") > 0); assertTrue(db.get("Customers").selectId("Name LIKE ? AND Address is ?", "%player%", null) > 0); // count assertTrue(db.get("Customers").c...
diff --git a/src/main/java/com/alta189/simplesave/DatabaseFactory.java b/src/main/java/com/alta189/simplesave/DatabaseFactory.java index 2b4f71b..3282d6e 100644 --- a/src/main/java/com/alta189/simplesave/DatabaseFactory.java +++ b/src/main/java/com/alta189/simplesave/DatabaseFactory.java @@ -1,76 +1,77 @@ /* * This ...
true
true
public static Database createNewDatabase(Configuration config) { switch (config.getDriver()) { case MYSQL: String mySQLUser = config.getProperty(MySQLConstants.User); if (mySQLUser == null || mySQLUser.isEmpty()) { throw new IllegalArgumentException("Username is null or empty!"); } String my...
public static Database createNewDatabase(Configuration config) { switch (config.getDriver()) { case MYSQL: String mySQLUser = config.getProperty(MySQLConstants.User); if (mySQLUser == null || mySQLUser.isEmpty()) { throw new IllegalArgumentException("Username is null or empty!"); } String my...
diff --git a/gitools-core/src/main/java/org/gitools/core/analysis/combination/CombinationProcessor.java b/gitools-core/src/main/java/org/gitools/core/analysis/combination/CombinationProcessor.java index c4c6ab31..125d9113 100644 --- a/gitools-core/src/main/java/org/gitools/core/analysis/combination/CombinationProcessor...
false
true
public void run(@NotNull IProgressMonitor monitor) throws AnalysisException { Date startTime = new Date(); // Prepare data IMatrix data = analysis.getData().get(); if (analysis.isTransposeData()) { data = new TransposedMatrixView(data); } final int numC...
public void run(@NotNull IProgressMonitor monitor) throws AnalysisException { Date startTime = new Date(); // Prepare data IMatrix data = analysis.getData().get(); if (analysis.isTransposeData()) { data = new TransposedMatrixView(data); } final int numC...
diff --git a/2012Robot/src/edu/wpi/first/wpilibj/templates/commands/Aim.java b/2012Robot/src/edu/wpi/first/wpilibj/templates/commands/Aim.java index 2cdfd85..fc67dae 100644 --- a/2012Robot/src/edu/wpi/first/wpilibj/templates/commands/Aim.java +++ b/2012Robot/src/edu/wpi/first/wpilibj/templates/commands/Aim.java @@ -1,5...
true
true
protected void execute() { try { NetworkTable SDTable = new NetworkTable(); SDTable = NetworkTable.getTable("SmartDashboard"); for (int i = 0; i < SDTable.getSubTable("camera").getKeys().size(); i++) { double x = SDTable.getSubTable("camera").getDoub...
protected void execute() { try { NetworkTable SDTable = new NetworkTable(); SDTable = NetworkTable.getTable("SmartDashboard"); for (int i = 0; i < (SDTable.getSubTable("camera").getKeys().size())/2; i++) { double x = SDTable.getSubTable("camera").get...
diff --git a/crono/src/crono/OptionParser.java b/crono/src/crono/OptionParser.java index 26ac1b4..835465d 100644 --- a/crono/src/crono/OptionParser.java +++ b/crono/src/crono/OptionParser.java @@ -1,150 +1,149 @@ package crono; public class OptionParser { public enum OptionType { SHORT_OPTION, LONG_OPTION,...
true
true
public int getopt(Option[] options) { if(done || current >= args.length) { return -1; } this.optopt = null; this.optchar = null; int arglen = args[current].length(); if(subarg == -1) { if("--".equals(args[current]) || "//".equals(args[current])) { System.err.println("Found stream stop symbol")...
public int getopt(Option[] options) { if(done || current >= args.length) { return -1; } this.optopt = null; this.optchar = null; int arglen = args[current].length(); if(subarg == -1) { if("--".equals(args[current]) || "//".equals(args[current])) { System.err.println("Found stream stop symbol")...
diff --git a/src/com/github/ktrnka/droidling/InterpersonalActivity.java b/src/com/github/ktrnka/droidling/InterpersonalActivity.java index 8ce9ac1..7c1baf2 100644 --- a/src/com/github/ktrnka/droidling/InterpersonalActivity.java +++ b/src/com/github/ktrnka/droidling/InterpersonalActivity.java @@ -1,547 +1,547 @@ packag...
false
true
private void scanSMS() { displayStats = new InterpersonalStats(); long time = System.currentTimeMillis(); /*************** LOAD CONTACTS *******************/ ExtendedApplication app = (ExtendedApplication) getApplication(); if (!app.blockingLoadContacts()) { warning("No contacts found"); } s...
private void scanSMS() { displayStats = new InterpersonalStats(); long time = System.currentTimeMillis(); /*************** LOAD CONTACTS *******************/ ExtendedApplication app = (ExtendedApplication) getApplication(); if (!app.blockingLoadContacts()) { warning("No contacts found"); } s...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/EditRepositoryWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/EditRepositoryWizard.java index 34ed40e31..71b2636c7 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal...
false
true
public boolean performFinish() { if (canFinish()) { TaskRepository repository = new TaskRepository(abstractRepositorySettingsPage.getRepository().getKind(), abstractRepositorySettingsPage.getServerUrl(), abstractRepositorySettingsPage.getVersion()); repository.setAuthenticationCredentials(abstractReposit...
public boolean performFinish() { if (canFinish()) { MylarTaskListPlugin.getRepositoryManager().removeRepository(oldRepository); TaskRepository repository = new TaskRepository(abstractRepositorySettingsPage.getRepository().getKind(), abstractRepositorySettingsPage.getServerUrl(), abstractRepositorySettings...
diff --git a/cdi/tests/org.jboss.tools.cdi.seam.text.ext.test/src/org/jboss/tools/cdi/seam/text/ext/test/XMLInjectedPointHyperlinkDetectorTest.java b/cdi/tests/org.jboss.tools.cdi.seam.text.ext.test/src/org/jboss/tools/cdi/seam/text/ext/test/XMLInjectedPointHyperlinkDetectorTest.java index 88cb22ff2..577aedf67 100644 -...
true
true
public void testXMLInjectedPointHyperlinkDetector() throws Exception { ArrayList<TestRegion> regionList = new ArrayList<TestRegion>(); regionList.add(new TestRegion(2166, 15/*"s:Inject"*/, new TestHyperlink[]{ new TestHyperlink(InjectedPointHyperlink.class, CDIExtensionsMessages.CDI_INJECTED_POINT_HYPERLINK...
public void testXMLInjectedPointHyperlinkDetector() throws Exception { ArrayList<TestRegion> regionList = new ArrayList<TestRegion>(); regionList.add(new TestRegion(/*2166, 15*/"<test04:myType6", new TestHyperlink[]{ new TestHyperlink(InjectedPointHyperlink.class, CDIExtensionsMessages.CDI_INJECTED_POINT_HY...
diff --git a/farrago/src/net/sf/farrago/namespace/impl/MedAbstractColumnSet.java b/farrago/src/net/sf/farrago/namespace/impl/MedAbstractColumnSet.java index 30966e90b..0c671b95c 100644 --- a/farrago/src/net/sf/farrago/namespace/impl/MedAbstractColumnSet.java +++ b/farrago/src/net/sf/farrago/namespace/impl/MedAbstractCo...
false
true
protected RelNode toLenientRel( RelOptCluster cluster, RelNode child, RelDataType targetRowType, RelDataType srcRowType) { ArrayList<RexNode> rexNodeList = new ArrayList(); RexBuilder rexBuilder = cluster.getRexBuilder(); FarragoWarningQueue warningQueue =...
protected RelNode toLenientRel( RelOptCluster cluster, RelNode child, RelDataType targetRowType, RelDataType srcRowType) { ArrayList<RexNode> rexNodeList = new ArrayList(); RexBuilder rexBuilder = cluster.getRexBuilder(); FarragoWarningQueue warningQueue =...
diff --git a/de.walware.statet.r.core/srcDebug/de/walware/statet/r/nico/RJREnvIndexChecker.java b/de.walware.statet.r.core/srcDebug/de/walware/statet/r/nico/RJREnvIndexChecker.java index c5328f5b..9a2b5519 100644 --- a/de.walware.statet.r.core/srcDebug/de/walware/statet/r/nico/RJREnvIndexChecker.java +++ b/de.walware.s...
true
true
public int check(final RService r, final IProgressMonitor monitor) throws CoreException { if (!fIndex.preCheck()) { return NOT_AVAILABLE; } Exception errorCause = null; try { final double lastChange = RDataUtil.checkSingleNumValue(r.evalData("max(file.info(.libPaths())$mtime)", monitor)); //$NON-NLS-1...
public int check(final RService r, final IProgressMonitor monitor) throws CoreException { if (!fIndex.preCheck()) { return NOT_AVAILABLE; } Exception errorCause = null; try { final double lastChange = RDataUtil.checkSingleNumValue(r.evalData("max(file.info(.libPaths())$mtime)", monitor)); //$NON-NLS-1...
diff --git a/src/org/python/core/PyString.java b/src/org/python/core/PyString.java index 827ea525..a33f5d11 100644 --- a/src/org/python/core/PyString.java +++ b/src/org/python/core/PyString.java @@ -1,2592 +1,2598 @@ /// Copyright (c) Corporation for National Research Initiatives package org.python.core; import ja...
false
true
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = false; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIndex = -1; ...
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = false; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIndex = -1; ...
diff --git a/src/test/java/eu/dm2e/ws/MainTest.java b/src/test/java/eu/dm2e/ws/MainTest.java index 14087a3..21354eb 100644 --- a/src/test/java/eu/dm2e/ws/MainTest.java +++ b/src/test/java/eu/dm2e/ws/MainTest.java @@ -1,59 +1,59 @@ package eu.dm2e.ws; import org.glassfish.grizzly.http.server.HttpServer; import ...
true
true
protected void setUp() throws Exception { super.setUp(); //start the Grizzly2 web container httpServer = Main.startServer(); // create the client Client c = Client.create(); r = c.resource(Main.BASE_URI); }
protected void setUp() throws Exception { super.setUp(); //start the Grizzly2 web container httpServer = Main.startServer(); // create the client Client c = Client.create(); r = c.resource(Main.getBaseURI()); }
diff --git a/projects/template/src/java/org/springmodules/template/providers/stemp/resolvers/StempelExpressionResolver.java b/projects/template/src/java/org/springmodules/template/providers/stemp/resolvers/StempelExpressionResolver.java index c36fb912..3a016f59 100644 --- a/projects/template/src/java/org/springmodules/...
true
true
public String resolve(String expression, Map model) { Object result = null; try { Stempel.evaluate(expression, model); } catch (ExpressionEvaluationException eee) { log.error("Could not resolve stempel expressoin '" + expression + "'.", eee); } return...
public String resolve(String expression, Map model) { Object result = null; try { result = Stempel.evaluate(expression, model); } catch (ExpressionEvaluationException eee) { log.error("Could not resolve stempel expressoin '" + expression + "'.", eee); } ...
diff --git a/src/org/linphone/VideoCallActivity.java b/src/org/linphone/VideoCallActivity.java index f10a1a8..fbd8619 100644 --- a/src/org/linphone/VideoCallActivity.java +++ b/src/org/linphone/VideoCallActivity.java @@ -1,195 +1,195 @@ /* VideoCallActivity.java Copyright (C) 2010 Belledonne Communications, Grenobl...
true
true
public void onCreate(Bundle savedInstanceState) { launched = true; Log.d("onCreate VideoCallActivity"); super.onCreate(savedInstanceState); setContentView(R.layout.videocall); mVideoView = (SurfaceView) findViewById(R.id.video_surface); mVideoCaptureView = (SurfaceView) findViewById(R.id.video_capture...
public void onCreate(Bundle savedInstanceState) { launched = true; Log.d("onCreate VideoCallActivity"); super.onCreate(savedInstanceState); setContentView(R.layout.videocall); mVideoView = (SurfaceView) findViewById(R.id.video_surface); mVideoCaptureView = (SurfaceView) findViewById(R.id.video_capture...
diff --git a/src/lab/cgcl/myOCR/util/JsonUtil.java b/src/lab/cgcl/myOCR/util/JsonUtil.java index 02f449e..6a9b1d0 100644 --- a/src/lab/cgcl/myOCR/util/JsonUtil.java +++ b/src/lab/cgcl/myOCR/util/JsonUtil.java @@ -1,16 +1,17 @@ package lab.cgcl.myOCR.util; import net.sf.json.JSONObject; public class JsonUtil { ...
true
true
public static String jsonUtil ( Object Jstring , String param) { String ret = ""; try { JSONObject jsonobj = JSONObject.fromObject(Jstring); ret = jsonobj.get(param).toString(); } catch (Exception e) { e.printStackTrace(); } return ret; }
public static String jsonUtil ( Object Jstring , String param) { String ret = ""; try { JSONObject jsonobj = JSONObject.fromObject(Jstring); ret = jsonobj.get(param).toString(); } catch (Exception e) { //e.printStackTrace(); System.out.println("invalid json string"); } return ret; }
diff --git a/JTLV/GROne/GROneMain.java b/JTLV/GROne/GROneMain.java index 11ef477..10d1d39 100644 --- a/JTLV/GROne/GROneMain.java +++ b/JTLV/GROne/GROneMain.java @@ -1,129 +1,129 @@ import net.sf.javabdd.BDD; import net.sf.javabdd.BDDVarSet; import net.sf.javabdd.BDD.BDDIterator; import edu.wis.jtlv.env.Env; import...
true
true
public static void main(String[] args) throws Exception { // uncomment to use a C BDD package //System.setProperty("bdd", "buddy"); GROneParser.just_initial = true; // GRParser.just_safety = true; // Check that we have enough arguments if (args.length < 2) { System.err.println("Us...
public static void main(String[] args) throws Exception { // uncomment to use a C BDD package //System.setProperty("bdd", "buddy"); GROneParser.just_initial = true; // GRParser.just_safety = true; // Check that we have enough arguments if (args.length < 2) { System.err.println("Us...
diff --git a/4dnest/src/org/fourdnest/androidclient/Egg.java b/4dnest/src/org/fourdnest/androidclient/Egg.java index 9164396..83a81b3 100644 --- a/4dnest/src/org/fourdnest/androidclient/Egg.java +++ b/4dnest/src/org/fourdnest/androidclient/Egg.java @@ -1,311 +1,311 @@ package org.fourdnest.androidclient; import jav...
false
true
public fileType getMimeType() { String mime = ""; if (this.localFileURI != null || this.remoteFileURI != null) { if (this.getLocalFileURI() != null) { mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension( MimeTypeMap.getFileExtensionFromUrl(t...
public fileType getMimeType() { String mime = ""; if (this.localFileURI != null || this.remoteFileURI != null) { if (this.getLocalFileURI() != null) { mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension( MimeTypeMap.getFileExtensionFromUrl(t...
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java b/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java index a1018ffb..32da5b61 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java @...
true
true
public void processEncodedText( byte[] string ) throws IOException { /* Note on variable names. There are three different units being used * in this code. Character sizes are given in glyph units, text locations * are initially given in text units, and we want to save the data in ...
public void processEncodedText( byte[] string ) throws IOException { /* Note on variable names. There are three different units being used * in this code. Character sizes are given in glyph units, text locations * are initially given in text units, and we want to save the data in ...
diff --git a/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java b/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java index dd5c8dae1..92c3f838a 100644 --- a/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java +++ b/utils/src/main/java/org/apache/mahout/utils/ve...
true
true
public static void main(String[] args) throws IOException { DefaultOptionBuilder obuilder = new DefaultOptionBuilder(); ArgumentBuilder abuilder = new ArgumentBuilder(); GroupBuilder gbuilder = new GroupBuilder(); Option inputOpt = obuilder.withLongName("dir").withRequired(true).withArgument( ...
public static void main(String[] args) throws IOException { DefaultOptionBuilder obuilder = new DefaultOptionBuilder(); ArgumentBuilder abuilder = new ArgumentBuilder(); GroupBuilder gbuilder = new GroupBuilder(); Option inputOpt = obuilder.withLongName("dir").withRequired(true).withArgument( ...
diff --git a/src/test/java/lv/jug/javaday/androidapp/application/DrawableServiceRoboTest.java b/src/test/java/lv/jug/javaday/androidapp/application/DrawableServiceRoboTest.java index a10a498..c074798 100644 --- a/src/test/java/lv/jug/javaday/androidapp/application/DrawableServiceRoboTest.java +++ b/src/test/java/lv/jug...
true
true
public void shouldFindPortraitDrawable() { Drawable expected = context.getResources().getDrawable(R.drawable.portrait); Drawable actual = service.loadDrawable("portrait"); assertThat(actual.toString(), equalTo(expected.toString())); }
public void shouldFindPortraitDrawable() { Drawable expected = context.getResources().getDrawable(R.drawable.ch); Drawable actual = service.loadDrawable("ch"); assertThat(actual.toString(), equalTo(expected.toString())); }
diff --git a/src/soot/jimple/toolkits/callgraph/CallGraphPack.java b/src/soot/jimple/toolkits/callgraph/CallGraphPack.java index 7350fb73..aafc82e7 100644 --- a/src/soot/jimple/toolkits/callgraph/CallGraphPack.java +++ b/src/soot/jimple/toolkits/callgraph/CallGraphPack.java @@ -1,53 +1,53 @@ /* Soot - a J*va Optimizat...
true
true
protected void internalApply() { super.internalApply(); ClinitElimTransformer trimmer = new ClinitElimTransformer(); CGOptions options = new CGOptions( PhaseOptions.v().getPhaseOptions(this) ); if( options.trim_clinit() ) { for( Iterator clIt = Scene.v().getClasses(...
protected void internalApply() { super.internalApply(); ClinitElimTransformer trimmer = new ClinitElimTransformer(); CGOptions options = new CGOptions( PhaseOptions.v().getPhaseOptions(this) ); if( options.trim_clinit() ) { for( Iterator clIt = Scene.v().getClasses(...
diff --git a/TPE4/src/geneticalgorithm/selector/MixtedSelector.java b/TPE4/src/geneticalgorithm/selector/MixtedSelector.java index 2626da2..c36f1b6 100644 --- a/TPE4/src/geneticalgorithm/selector/MixtedSelector.java +++ b/TPE4/src/geneticalgorithm/selector/MixtedSelector.java @@ -1,45 +1,45 @@ package geneticalgorithm...
true
true
public int[] select() { int[] bests1 = elite.selectBestK(config.ke_mixted); int[] bests2 = s2.select(); int[] selected = new int[(int) (config.N * config.G)]; int i = 0; // choose all k_e candidates selected by the elite selector for (; i < bests1.length; i++) { selected[i] = bests1[i]; } // choose ...
public int[] select() { int[] bests1 = elite.selectBestK(config.ke_mixted); int[] bests2 = s2.select(); int[] selected = new int[(int) (config.N * config.G)]; int i = 0; // choose all k_e candidates selected by the elite selector for (; i < bests1.length; i++) { selected[i] = bests1[i]; } // choose ...
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index 1e122a72..9c10f0ad 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -1,1414 +1,1414 @@ /* * Copyright (C) 2007 The Andr...
true
true
private int buildDropDown() { ViewGroup dropDownView; int otherHeights = 0; if (mAdapter != null) { InputMethodManager imm = InputMethodManager.peekInstance(); if (imm != null) { int N = mAdapter.getCount(); if (N > 20) N = 20; ...
private int buildDropDown() { ViewGroup dropDownView; int otherHeights = 0; if (mAdapter != null) { InputMethodManager imm = InputMethodManager.peekInstance(); if (imm != null) { int N = mAdapter.getCount(); if (N > 20) N = 20; ...
diff --git a/plugins/hooks/conext-login-hook/docroot/WEB-INF/src/nl/proteon/liferay/surfnet/security/auth/ConextAutoLogin.java b/plugins/hooks/conext-login-hook/docroot/WEB-INF/src/nl/proteon/liferay/surfnet/security/auth/ConextAutoLogin.java index d125f5a..62698b4 100644 --- a/plugins/hooks/conext-login-hook/docroot/W...
false
true
public String[] login(HttpServletRequest request, HttpServletResponse response) throws AutoLoginException { String[] credentials = null; try { long companyId = PortalUtil.getCompanyId(request); String emailAddress = StringPool.BLANK; String firstName = StringPool.BLANK; String lastName = Str...
public String[] login(HttpServletRequest request, HttpServletResponse response) throws AutoLoginException { String[] credentials = null; try { long companyId = PortalUtil.getCompanyId(request); String emailAddress = StringPool.BLANK; String firstName = StringPool.BLANK; String lastName = Str...
diff --git a/src/org/yaoha/OsmNode.java b/src/org/yaoha/OsmNode.java index 6c4d158..6540943 100644 --- a/src/org/yaoha/OsmNode.java +++ b/src/org/yaoha/OsmNode.java @@ -1,245 +1,251 @@ package org.yaoha; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.HashMap; impo...
true
true
public void parseOpeningHours() { String openingHoursString = this.getOpening_hours(); // If the node doesn't have a key 'opening_hours', the weekDayMap is to remain null if (openingHoursString == null) return; openingHoursString = openingHoursString.toLowerCase(); /...
public void parseOpeningHours() { String openingHoursString = this.getOpening_hours(); // If the node doesn't have a key 'opening_hours', the weekDayMap is to remain null if (openingHoursString == null) return; openingHoursString = openingHoursString.toLowerCase(); /...
diff --git a/src/servers/src/org/xtreemfs/osd/rwre/RWReplicationStage.java b/src/servers/src/org/xtreemfs/osd/rwre/RWReplicationStage.java index 1ce3eb3c..e18dff0f 100644 --- a/src/servers/src/org/xtreemfs/osd/rwre/RWReplicationStage.java +++ b/src/servers/src/org/xtreemfs/osd/rwre/RWReplicationStage.java @@ -1,938 +1,...
false
true
private void processPrepareOp(StageRequest method) { final RWReplicationCallback callback = (RWReplicationCallback)method.getCallback(); try { final FileCredentials credentials = (FileCredentials) method.getArgs()[0]; final XLocations loc = (XLocations) method.getArgs()[1]; ...
private void processPrepareOp(StageRequest method) { final RWReplicationCallback callback = (RWReplicationCallback)method.getCallback(); try { final FileCredentials credentials = (FileCredentials) method.getArgs()[0]; final XLocations loc = (XLocations) method.getArgs()[1]; ...
diff --git a/svm.persistence.hibernate/src/svm/persistence/hibernate/dao/AbstractDAO.java b/svm.persistence.hibernate/src/svm/persistence/hibernate/dao/AbstractDAO.java index 737415e..7582676 100644 --- a/svm.persistence.hibernate/src/svm/persistence/hibernate/dao/AbstractDAO.java +++ b/svm.persistence.hibernate/src/sv...
true
true
public List<T> find(Integer sessionId, CompareObject[] compares) throws NoSessionFoundException { Session session = HibernateUtil.getSession(sessionId); StringBuffer hql = new StringBuffer(); hql.append(String.format("FROM %s WHERE %s %s '%s'", clazz.getName())); for (int i = 1; i < ...
public List<T> find(Integer sessionId, CompareObject[] compares) throws NoSessionFoundException { Session session = HibernateUtil.getSession(sessionId); StringBuffer hql = new StringBuffer(); hql.append(String.format("FROM %s WHERE %s %s '%s'", clazz.getName(), compares[0].getColumn(), compa...
diff --git a/src/org/kered/dko/CSV.java b/src/org/kered/dko/CSV.java index cf60723..2c5226d 100644 --- a/src/org/kered/dko/CSV.java +++ b/src/org/kered/dko/CSV.java @@ -1,263 +1,266 @@ package org.kered.dko; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNot...
false
true
private static <T extends Table> Iterator<T> createIterator( final Class<T> cls, final Constructor<T> constructor, final Reader _r, final boolean closeOnFinish) { final BufferedReader r = new BufferedReader(_r); return new Iterator<T>() { private T next = null; private boolean first = true; private...
private static <T extends Table> Iterator<T> createIterator( final Class<T> cls, final Constructor<T> constructor, final Reader _r, final boolean closeOnFinish) { final BufferedReader r = new BufferedReader(_r); return new Iterator<T>() { private T next = null; private boolean first = true; private...
diff --git a/src/service/GameStateSaxHandler.java b/src/service/GameStateSaxHandler.java index bad4abb..649a919 100644 --- a/src/service/GameStateSaxHandler.java +++ b/src/service/GameStateSaxHandler.java @@ -1,62 +1,62 @@ package service; import java.util.ArrayList; import model.GameState; import model.core.Inva...
true
true
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { super.startElement(uri, localName, qName, atts); switch (qName) { case "level": levels.add(new GameState(Integer.valueOf(atts.getValue("id")))); ...
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { super.startElement(uri, localName, qName, atts); switch (qName) { case "level": levels.add(new GameState(Integer.valueOf(atts.getValue("id")))); ...
diff --git a/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/jobs/LoadConfigurationRunnable.java b/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/jobs/LoadConfigurationRunnable.java index 1091efb44..002ca3956 10...
true
true
private ConfigBean readConfiguration( ConnectionServerConfigurationInput input, StudioProgressMonitor monitor ) throws Exception { if ( input != null ) { SchemaManager schemaManager = ApacheDS2ConfigurationPlugin.getDefault().getSchemaManager(); // Getting the br...
private ConfigBean readConfiguration( ConnectionServerConfigurationInput input, StudioProgressMonitor monitor ) throws Exception { if ( input != null ) { SchemaManager schemaManager = ApacheDS2ConfigurationPlugin.getDefault().getSchemaManager(); // Getting the br...
diff --git a/DistFileSystem/src/distserver/ServCheckPosition.java b/DistFileSystem/src/distserver/ServCheckPosition.java index fd6df05..cfbabc4 100644 --- a/DistFileSystem/src/distserver/ServCheckPosition.java +++ b/DistFileSystem/src/distserver/ServCheckPosition.java @@ -1,170 +1,171 @@ /** * @author paul */ pac...
true
true
public void run() { try { System.out.println("In thread for check position"); this.distConfig = DistConfig.get_Instance(); // Get the input stream for the client BufferedReader inStream = new BufferedReader ( new Input...
public void run() { try { System.out.println("In thread for check position"); this.distConfig = DistConfig.get_Instance(); // Get the input stream for the client BufferedReader inStream = new BufferedReader ( new Input...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/api/v2/DataQueryHandler.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/api/v2/DataQueryHandler.java index c9f50ec86..5eb09c283 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/api/v2/DataQueryHandler.java +++ b/atlas-web/...
true
true
public Object getResponse(Map query) { Object value = query.get("experimentAccession"); if (value == null) { return new Error("Experiment accession is not specified"); } else if (!(value instanceof String)) { return new Error("Experiment accession must be a string"); ...
public Object getResponse(Map query) { Object value = query.get("experimentAccession"); if (value == null) { return new Error("Experiment accession is not specified"); } else if (!(value instanceof String)) { return new Error("Experiment accession must be a string"); ...
diff --git a/entitymanager/src/main/java/org/hibernate/ejb/packaging/NativeScanner.java b/entitymanager/src/main/java/org/hibernate/ejb/packaging/NativeScanner.java index a855d5a088..66c965cef2 100644 --- a/entitymanager/src/main/java/org/hibernate/ejb/packaging/NativeScanner.java +++ b/entitymanager/src/main/java/org/...
false
true
public Set<NamedInputStream> getFilesInJar(URL jarToScan, Set<String> filePatterns) { StringBuilder sb = new StringBuilder("URL: ").append( jarToScan ) .append( "\n" ); for (String pattern : filePatterns) { sb.append( " " ).append( pattern ).append( "\n" ); } JarVisitor jarVisitor = getVisitor( jarToSc...
public Set<NamedInputStream> getFilesInJar(URL jarToScan, Set<String> filePatterns) { StringBuilder sb = new StringBuilder("URL: ").append( jarToScan ) .append( "\n" ); for (String pattern : filePatterns) { sb.append( " " ).append( pattern ).append( "\n" ); } JarVisitor jarVisitor = getVisitor( jarToSc...
diff --git a/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCookBook.java b/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCookBook.java index 84d57cd0..47a947b9 100644 --- a/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCookBook.java +++ b/extrabiomes/src/extrabiomes/module/fabrica/recipe/WoodCoo...
true
true
private static void addPlankCustomRecipes() { Optional<? extends Block> stairs = BlockManager.ACACIASTAIRS .getBlock(); if (stairs.isPresent()) { final IRecipe recipe = new ShapedOreRecipe(new ItemStack( stairs.get(), 4), new String[] { "p ", "pp ", "ppp" }, 'p', "plankAcacia"); Extrabiomes....
private static void addPlankCustomRecipes() { Optional<? extends Block> stairs = BlockManager.ACACIASTAIRS .getBlock(); if (stairs.isPresent()) { final IRecipe recipe = new ShapedOreRecipe(new ItemStack( stairs.get(), 4), new String[] { "p ", "pp ", "ppp" }, 'p', "plankAcacia"); Extrabiomes....
diff --git a/Paintroid/src/org/catrobat/paintroid/command/implementation/BitmapCommand.java b/Paintroid/src/org/catrobat/paintroid/command/implementation/BitmapCommand.java index 66c41a4d..56c48c5c 100644 --- a/Paintroid/src/org/catrobat/paintroid/command/implementation/BitmapCommand.java +++ b/Paintroid/src/org/catrob...
true
true
public void run(Canvas canvas, Bitmap bitmap) { if (mBitmap == null && mFileToStoredBitmap != null) { mBitmap = FileIO.getBitmapFromFile(mFileToStoredBitmap); } if (mBitmap != null) { if (bitmap != null) { bitmap.eraseColor(Color.TRANSPARENT); } PaintroidApplication.drawingSurface.setBitmap(mBitm...
public void run(Canvas canvas, Bitmap bitmap) { if (mBitmap == null && mFileToStoredBitmap != null) { mBitmap = FileIO.getBitmapFromFile(mFileToStoredBitmap); // mBitmap = BitmapFactory.decodeFile(mFileToStoredBitmap // .getAbsolutePath()); } if (mBitmap != null) { if (bitmap != null) { bitmap.er...
diff --git a/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java b/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java index f29d73ab..0ee48f6b 100644 --- a/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java +++ b/App/src/com/dozuki/ifixit/ui/IntentFilterActivity.java @@ -1,163 +1,163 @@ package com.dozuki.i...
true
true
private void handlePathNavigation() { Intent intent = null; List<String> segments = mUri.getPathSegments(); String prefix = segments.get(0); try { if (prefix.equalsIgnoreCase("guide")) { if (segments.get(1).equalsIgnoreCase("search")) { String query = segm...
private void handlePathNavigation() { Intent intent = null; List<String> segments = mUri.getPathSegments(); String prefix = segments.get(0); try { if (prefix.equalsIgnoreCase("guide") || prefix.equalsIgnoreCase("teardown")) { if (segments.get(1).equalsIgnoreCase("search"...
diff --git a/src/java/control/HiberBDDConnector.java b/src/java/control/HiberBDDConnector.java index b921a6c..d604f6a 100644 --- a/src/java/control/HiberBDDConnector.java +++ b/src/java/control/HiberBDDConnector.java @@ -1,106 +1,108 @@ /* * To change this template, choose Tools | Templates * and open the template...
true
true
public boolean insertUser(User u) { boolean out = false; if (userExist(u.getNom()) == false) { connect(); byte admin = 0; u.setAdmin(admin); System.err.println("user " + u.getNom() + " pass " + u.getPassword()); session.getTransaction().co...
public boolean insertUser(User u) { boolean out = false; if (userExist(u.getNom()) == false) { connect(); byte admin = 0; u.setAdmin(admin); System.err.println("user " + u.getNom() + " pass " + u.getPassword()+ " postcode" + u.getPostcode() ...
diff --git a/src/org/mozilla/javascript/optimizer/Optimizer.java b/src/org/mozilla/javascript/optimizer/Optimizer.java index 0a9d7866..55294307 100644 --- a/src/org/mozilla/javascript/optimizer/Optimizer.java +++ b/src/org/mozilla/javascript/optimizer/Optimizer.java @@ -1,506 +1,507 @@ /* ***** BEGIN LICENSE BLOCK ***...
true
true
private int rewriteForNumberVariables(Node n, int desired) { switch (n.getType()) { case Token.EXPR_VOID : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child, NumberType); if (type == NumberType) ...
private int rewriteForNumberVariables(Node n, int desired) { switch (n.getType()) { case Token.EXPR_VOID : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child, NumberType); if (type == NumberType) ...
diff --git a/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java b/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java index 9dd13dbd..c49250f3 100644 --- a/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java +++ b/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java @@ -1,371 +1,371 @@ package uk.ac.eb...
false
true
public SampleData convert(SampleData sampleIn) throws ParseException, SQLException { String table = null; String prefix = null; if (sampleIn.msi.submissionReferenceLayer == true) { prefix = "SAME"; table = "SAMPLE_REFERENCE"; } else if (sampleIn.msi.submission...
public SampleData convert(SampleData sampleIn) throws ParseException, SQLException { String table = null; String prefix = null; if (sampleIn.msi.submissionReferenceLayer == true) { prefix = "SAME"; table = "SAMPLE_REFERENCE"; } else if (sampleIn.msi.submission...
diff --git a/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/MirrorGenerator.java b/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/MirrorGenerator.java index 1cc682eb..4189ddbd 100644 --- a/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/MirrorGenerator...
true
true
public void run(IProgressMonitor monitor) throws CoreException { LogUtils.info("Starting mirror generation"); long start = TimeUtils.getNow(); Builder builder = getBuilder(); File destination = new File(builder.getBuildRoot(), Builder.REPO_FOLDER_FINAL); URI finalURI = Builder.createURI(destination); Fil...
public void run(IProgressMonitor monitor) throws CoreException { LogUtils.info("Starting mirror generation"); long start = TimeUtils.getNow(); Builder builder = getBuilder(); File destination = new File(builder.getBuildRoot(), Builder.REPO_FOLDER_FINAL); URI finalURI = Builder.createURI(destination); Fil...
diff --git a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/app/WebEngineExceptionMapper.java b/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/app/WebEngineExceptionMapper.java index bba2d401..bd84eef8 100644 --- a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/app/WebEngineException...
false
true
public Response toResponse(Throwable cause) { if (cause instanceof NotFoundException) { NotFoundException nfe = (NotFoundException) cause; log.error("JAX-RS 404 Not Found: " + nfe.getNotFoundUri()); } else { log.error("Exception in JAX-RS processing", cause); ...
public Response toResponse(Throwable cause) { if (cause instanceof NotFoundException) { NotFoundException nfe = (NotFoundException) cause; log.warn("JAX-RS 404 Not Found: " + nfe.getNotFoundUri()); } else { log.warn("Exception in JAX-RS processing", cause); ...
diff --git a/src/cytoscape/actions/PluginUpdateAction.java b/src/cytoscape/actions/PluginUpdateAction.java index 6add5b1ab..b981b7c0c 100644 --- a/src/cytoscape/actions/PluginUpdateAction.java +++ b/src/cytoscape/actions/PluginUpdateAction.java @@ -1,86 +1,86 @@ /** * */ package cytoscape.actions; import java...
true
true
public void actionPerformed(ActionEvent e) { PluginUpdateDialog Dialog = new PluginUpdateDialog(Cytoscape .getDesktop()); if (!PluginManager.usingWebstartManager()) { boolean updateFound = false; PluginManager Mgr = PluginManager.getPluginManager(); // Find updates for (PluginInfo Current : Mgr.ge...
public void actionPerformed(ActionEvent e) { PluginUpdateDialog Dialog = new PluginUpdateDialog(Cytoscape .getDesktop()); if (!PluginManager.usingWebstartManager()) { boolean updateFound = false; PluginManager Mgr = PluginManager.getPluginManager(); // Find updates for (PluginInfo Current : Mgr.ge...
diff --git a/src/mapred/org/apache/hadoop/mapred/join/Parser.java b/src/mapred/org/apache/hadoop/mapred/join/Parser.java index 6e3b6f64f..741e1c49a 100644 --- a/src/mapred/org/apache/hadoop/mapred/join/Parser.java +++ b/src/mapred/org/apache/hadoop/mapred/join/Parser.java @@ -1,497 +1,497 @@ /** * Licensed to the Ap...
true
true
public void parse(List<Token> ll, JobConf job) throws IOException { StringBuilder sb = new StringBuilder(); Iterator<Token> i = ll.iterator(); while (i.hasNext()) { Token t = i.next(); if (TType.COMMA.equals(t.getType())) { try { inf = (InputFormat)ReflectionU...
public void parse(List<Token> ll, JobConf job) throws IOException { StringBuilder sb = new StringBuilder(); Iterator<Token> i = ll.iterator(); while (i.hasNext()) { Token t = i.next(); if (TType.COMMA.equals(t.getType())) { try { inf = (InputFormat)ReflectionUt...
diff --git a/src/test/java/com/voltvoodoo/brew/CommonModuleToAmdConverterTest.java b/src/test/java/com/voltvoodoo/brew/CommonModuleToAmdConverterTest.java index 425a8ee..5acc60d 100644 --- a/src/test/java/com/voltvoodoo/brew/CommonModuleToAmdConverterTest.java +++ b/src/test/java/com/voltvoodoo/brew/CommonModuleToAmdCo...
true
true
public void shouldConvertModuleFormat() throws IOException { CommonModuleToAmdConverter converter = new CommonModuleToAmdConverter(); File moduleFile = getCommonModuleFile(); String result = converter.convert(moduleFile.getAbsolutePath()); assertEquals(expe...
public void shouldConvertModuleFormat() throws IOException { CommonModuleToAmdConverter converter = new CommonModuleToAmdConverter(); File moduleFile = getCommonModuleFile(); String result = converter.convert(moduleFile.getAbsolutePath()).trim(); assertEqua...
diff --git a/farrago/src/net/sf/farrago/test/FarragoQueryTest.java b/farrago/src/net/sf/farrago/test/FarragoQueryTest.java index 3599cb063..edd1ba3cb 100644 --- a/farrago/src/net/sf/farrago/test/FarragoQueryTest.java +++ b/farrago/src/net/sf/farrago/test/FarragoQueryTest.java @@ -1,517 +1,519 @@ /* // $Id$ // Farrag...
true
true
public void testUdxRelMetadata() throws Exception { String sql = "create schema udx"; stmt.executeUpdate(sql); sql = "create function udx.digest(c cursor) " + "returns table(c.*, row_digest int) " + "language java " + "para...
public void testUdxRelMetadata() throws Exception { String sql = "create schema udx"; stmt.executeUpdate(sql); sql = "create function udx.digest(c cursor) " + "returns table(c.*, row_digest int) " + "language java " + "para...
diff --git a/src/backend/test/java/jamm/AllTests.java b/src/backend/test/java/jamm/AllTests.java index 61da60e..96cc0a0 100644 --- a/src/backend/test/java/jamm/AllTests.java +++ b/src/backend/test/java/jamm/AllTests.java @@ -1,294 +1,296 @@ /* * Jamm * Copyright (C) 2002 Dave Dribin and Keith Garner * * This...
false
true
private static void setupLdapData() throws Exception { Hashtable env; DirContext context; DirContext element; BasicAttributes attributes; BasicAttribute objectClass; // Bind as manager env = new Hashtable(); env.put(Context.INITIAL_CON...
private static void setupLdapData() throws Exception { Hashtable env; DirContext context; DirContext element; BasicAttributes attributes; BasicAttribute objectClass; // Bind as manager env = new Hashtable(); env.put(Context.INITIAL_CON...
diff --git a/minecraft/shadow/mods/metallurgy/nether/ClientProxy.java b/minecraft/shadow/mods/metallurgy/nether/ClientProxy.java index 81007db..c4e617c 100644 --- a/minecraft/shadow/mods/metallurgy/nether/ClientProxy.java +++ b/minecraft/shadow/mods/metallurgy/nether/ClientProxy.java @@ -1,51 +1,51 @@ package shadow.m...
true
true
public void addNames() { CoreClientProxy.addNamesToSet(mod_MetallurgyNether.alloys); CoreClientProxy.addNamesToSet(mod_MetallurgyNether.ores); for(String name : NF_GuiNetherForge.names) LanguageRegistry.instance().addStringLocalization("tile.NetherForge." + name + "Forge.name", name + " Forge"); ...
public void addNames() { CoreClientProxy.addNamesToSet(mod_MetallurgyNether.alloys); CoreClientProxy.addNamesToSet(mod_MetallurgyNether.ores); for(String name : NF_GuiNetherForge.names) LanguageRegistry.instance().addStringLocalization("tile.NetherForge." + name + "Forge.name", name + " Smelter"); ...
diff --git a/src/main/java/com/superdownloader/proEasy/processors/FileReceiver.java b/src/main/java/com/superdownloader/proEasy/processors/FileReceiver.java index 97dc16e..fd27b12 100644 --- a/src/main/java/com/superdownloader/proEasy/processors/FileReceiver.java +++ b/src/main/java/com/superdownloader/proEasy/processo...
false
true
public void process(Exchange exchange) throws Exception { Message msg = exchange.getIn(); LOGGER.debug("{}", msg.getHeaders()); Matcher m = pattern.matcher((String) msg.getHeader(Exchange.FILE_NAME)); if (m.matches()) { String username = m.group(1); String filepath = (String) msg.getHeader(Exchange.FILE...
public void process(Exchange exchange) throws Exception { Message msg = exchange.getIn(); LOGGER.debug("{}", msg.getHeaders()); Matcher m = pattern.matcher((String) msg.getHeader(Exchange.FILE_NAME)); if (m.matches()) { String username = m.group(1); String filepath = (String) msg.getHeader(Exchange.FILE...
diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher2/BubbleTextView.java index d02f597b..ad01fac4 100644 --- a/src/com/android/launcher2/BubbleTextView.java +++ b/src/com/android/launcher2/BubbleTextView.java @@ -1,313 +1,313 @@ /* * Copyright (C) 2008 The Android Open Source Projec...
true
true
public void draw(Canvas canvas) { if (mPressedOrFocusedBackground != null && (isPressed() || isFocused())) { // The blue glow can extend outside of our clip region, so we first temporarily expand // the canvas's clip region canvas.save(Canvas.CLIP_SAVE_FLAG); ...
public void draw(Canvas canvas) { if (mPressedOrFocusedBackground != null && (isPressed() || isFocused())) { // The blue glow can extend outside of our clip region, so we first temporarily expand // the canvas's clip region canvas.save(Canvas.CLIP_SAVE_FLAG); ...
diff --git a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/DiffractionMetadata.java b/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/DiffractionMetadata.java index 71c10ee76..165d36320 100644 --- a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/Diffract...
true
true
public IDiffractionMetadata clone() { DiffractionMetadata c = new DiffractionMetadata(getFileName(), oProps, env); c.setCreationDate(date); c.setMetadata(metadata); if (dataNames.size() > 0) { String name = dataNames.get(0); int[] shape = shapes.get(name); if(shape.length>0) c.setImageInfo(name, s...
public IDiffractionMetadata clone() { DiffractionMetadata c = new DiffractionMetadata(getFileName(), oProps, env); c.setCreationDate(date); c.setMetadata(metadata); if (dataNames.size() > 0) { String name = dataNames.get(0); int[] shape = shapes.get(name); if(shape!= null && shape.length>0) c.setI...
diff --git a/src/main/java/me/shock/avatarpvp/commands/Anti.java b/src/main/java/me/shock/avatarpvp/commands/Anti.java index 926a67d..8cf1fe6 100644 --- a/src/main/java/me/shock/avatarpvp/commands/Anti.java +++ b/src/main/java/me/shock/avatarpvp/commands/Anti.java @@ -1,156 +1,156 @@ package me.shock.avatarpvp.command...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { String apvp = ChatColor.BLUE + "[" + ChatColor.WHITE + "AvatarPvP" + ChatColor.BLUE + "]" + ChatColor.WHITE + ": "; String noperm = apvp + "You don't have permission to use this."; /** * Quick check if sender is pla...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { String apvp = ChatColor.BLUE + "[" + ChatColor.WHITE + "AvatarPvP" + ChatColor.BLUE + "]" + ChatColor.WHITE + ": "; String noperm = apvp + "You don't have permission to use this."; /** * Quick check if sender is pla...
diff --git a/tests/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java b/tests/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java index 68766d12d..f231a82f4 100644 --- a/tests/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/d...
true
true
public void dummyTest() { String prefMenu = "Preferences"; String prefDlg = prefMenu; String windowMenu = "Window"; if (isOSX()) { prefMenu = "Preferences..."; windowMenu = "Eclipse"; } SWTWorkbenchBot bot = new SWTWorkbenchBot(); bot.menu(windowMenu).menu(prefMenu).click(); bot.waitUntil(shellIs...
public void dummyTest() { String prefMenu = "Preferences"; String prefDlg = prefMenu; String windowMenu = "Window"; if (isOSX()) { prefMenu = "Preferences"; windowMenu = "Eclipse"; } SWTWorkbenchBot bot = new SWTWorkbenchBot(); bot.menu(windowMenu).menu(prefMenu).click(); bot.waitUntil(shellIsAct...
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java index 0f2112809..3d9c02f4e 100644 --- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java +++ b/svnkit/src/org/tmatesoft/svn/core/internal/...
true
true
private SVNEntry readEntry(BufferedReader reader, int entryNumber) throws IOException, SVNException { String line = reader.readLine(); if (line == null && entryNumber > 1) { return null; } String name = parseString(line); name = name != null ? name : getThisDirNa...
private SVNEntry readEntry(BufferedReader reader, int entryNumber) throws IOException, SVNException { String line = reader.readLine(); if (line == null && entryNumber > 1) { return null; } String name = parseString(line); name = name != null ? name : getThisDirNa...
diff --git a/src/org/objectweb/proactive/core/ssh/JSchSingleton.java b/src/org/objectweb/proactive/core/ssh/JSchSingleton.java index d01e5c909..2156dbc9f 100644 --- a/src/org/objectweb/proactive/core/ssh/JSchSingleton.java +++ b/src/org/objectweb/proactive/core/ssh/JSchSingleton.java @@ -1,187 +1,189 @@ /* * #######...
true
true
static public Session getSession(String username, String hostname, String sshPort) throws IOException { if (_hash == null) { _hash = new Hashtable(); } String key = sshPort + username + hostname; Object val = _hash.get(key); Session session; if (va...
static public Session getSession(String username, String hostname, String sshPort) throws IOException { if (_hash == null) { _hash = new Hashtable(); } String key = sshPort + username + hostname; Object val = _hash.get(key); Session session; if (va...