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/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/InlineContainerArea.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/InlineContainerArea.java index 0c538106a..da7e02fe7 100644 --- a/plugins/org.eclipse.birt.report...
true
true
protected void close( boolean isLastLine ) throws BirtException { // TODO support specified height/width/alignment int contentWidth = currentIP; if ( lineCount == 1 ) { if ( specifiedWidth > contentWidth ) { contentWidth = specifiedWidth; } } setContentWidth( contentWidth ); int height = 0;...
protected void close( boolean isLastLine ) throws BirtException { // TODO support specified height/width/alignment int contentWidth = currentIP; if ( lineCount == 1 ) { if ( specifiedWidth > contentWidth ) { contentWidth = specifiedWidth; } } setContentWidth( contentWidth ); int height = 0;...
diff --git a/nexus/nexus-configuration/src/main/java/org/sonatype/nexus/configuration/model/CRepositoryCoreConfiguration.java b/nexus/nexus-configuration/src/main/java/org/sonatype/nexus/configuration/model/CRepositoryCoreConfiguration.java index 1f8599782..30006c34e 100644 --- a/nexus/nexus-configuration/src/main/java...
true
true
protected void copyTransients( Object source, Object destination ) { ( (CRepository) destination ).setExternalConfiguration( ( (CRepository) source ).getExternalConfiguration() ); ( (CRepository) destination ).externalConfigurationImple = ( (CRepository) source ).externalConfigurationImple; ...
protected void copyTransients( Object source, Object destination ) { ( (CRepository) destination ).setExternalConfiguration( ( (CRepository) source ).getExternalConfiguration() ); ( (CRepository) destination ).externalConfigurationImple = ( (CRepository) source ).externalConfigurationImple; ...
diff --git a/library/src/com/viewpagerindicator/TitlePageIndicator.java b/library/src/com/viewpagerindicator/TitlePageIndicator.java index 1c91c26..c8a27b3 100644 --- a/library/src/com/viewpagerindicator/TitlePageIndicator.java +++ b/library/src/com/viewpagerindicator/TitlePageIndicator.java @@ -1,784 +1,785 @@ /* *...
false
true
protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (mViewPager == null) { return; } final int count = mViewPager.getAdapter().getCount(); if (count == 0) { return; } //Calculate views bounds ArrayList<RectF> bound...
protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (mViewPager == null) { return; } final int count = mViewPager.getAdapter().getCount(); if (count == 0) { return; } //Calculate views bounds ArrayList<RectF> bound...
diff --git a/OsceManager/src/main/java/ch/unibas/medizin/osce/client/style/widgets/IconButton.java b/OsceManager/src/main/java/ch/unibas/medizin/osce/client/style/widgets/IconButton.java index f0eb4ff0..aa89756e 100644 --- a/OsceManager/src/main/java/ch/unibas/medizin/osce/client/style/widgets/IconButton.java +++ b/Osc...
false
true
private void construct() { String html = ICON_HTML_OPEN + icon; if (!isEnabled()) { html += ICON_DISABLED; } if (text.length() == 0) { html += ICON_HTML_ICONONLY + ICON_HTML_CLOSE; } else { html += ICON_HTML_CLOSE + text; } SafeHtmlBuilder builder = new SafeHtmlBuilder(); builder.appendHtml...
private void construct() { String html = ICON_HTML_OPEN + icon; if (!isEnabled()) { html += ICON_DISABLED; } if (text.length() == 0) { html += ICON_HTML_ICONONLY + ICON_HTML_CLOSE; super.removeStyleName("gwt-Button-WithIconText"); } else { html += ICON_HTML_CLOSE + text; super.addStyleName(...
diff --git a/stripes/src/net/sourceforge/stripes/action/FileBean.java b/stripes/src/net/sourceforge/stripes/action/FileBean.java index 8dc08f6d..8595b00c 100644 --- a/stripes/src/net/sourceforge/stripes/action/FileBean.java +++ b/stripes/src/net/sourceforge/stripes/action/FileBean.java @@ -1,170 +1,172 @@ /* Copyright...
true
true
public void save(File toFile) throws IOException { // Since File.renameTo doesn't tell you anything about why it failed, we test // for some common reasons for failure ahead of time and give a bit more info if (!this.file.exists()) { throw new IOException ("Some t...
public void save(File toFile) throws IOException { // Since File.renameTo doesn't tell you anything about why it failed, we test // for some common reasons for failure ahead of time and give a bit more info if (!this.file.exists()) { throw new IOException ("Some t...
diff --git a/insight/insight-elasticsearch/src/test/java/org/elasticsearch/discovery/fabric/NodeJsonTest.java b/insight/insight-elasticsearch/src/test/java/org/elasticsearch/discovery/fabric/NodeJsonTest.java index 199c42d23..733538719 100644 --- a/insight/insight-elasticsearch/src/test/java/org/elasticsearch/discovery...
true
true
public void testJson() throws Exception { Map<String, String> attr = new HashMap<String, String>(); attr.put("key", "value"); DiscoveryNode n = new DiscoveryNode("thename", "theid", new InetSocketTransportAddress("thehost", 3234), attr); FabricDiscovery.ESNode node = new FabricDiscov...
public void testJson() throws Exception { Map<String, String> attr = new HashMap<String, String>(); attr.put("key", "value"); DiscoveryNode n = new DiscoveryNode("thename", "theid", new InetSocketTransportAddress("thehost", 3234), attr); FabricDiscovery.ESNode node = new FabricDiscov...
diff --git a/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java b/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java index 98415f251..205f45db0 100644 --- a/plugins/valueeditors/src/main/java/org/apache/directory...
false
true
protected Control createDialogArea( Composite parent ) { Composite composite = ( Composite ) super.createDialogArea( parent ); GridData gd = new GridData( GridData.FILL_BOTH ); gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH ) * 3 / 2; gd...
protected Control createDialogArea( Composite parent ) { Composite composite = ( Composite ) super.createDialogArea( parent ); GridData gd = new GridData( GridData.FILL_BOTH ); gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH ) * 3 / 2; gd...
diff --git a/src/plugins/Library/util/concurrent/ObjectProcessor.java b/src/plugins/Library/util/concurrent/ObjectProcessor.java index fc916cd..f0dd4da 100644 --- a/src/plugins/Library/util/concurrent/ObjectProcessor.java +++ b/src/plugins/Library/util/concurrent/ObjectProcessor.java @@ -1,331 +1,328 @@ /* This code i...
true
true
private static synchronized void ensureAutoHandler() { if (auto != null) { return; } auto = new Thread() { @Override public void run() { final int timeout = 4; int t = timeout; while (!pending.isEmpty() && (t=timeout) == timeout || t-- > 0) { for (Iterator<ObjectProcessor> it = pending.keySet()...
private static synchronized void ensureAutoHandler() { if (auto != null) { return; } auto = new Thread() { @Override public void run() { final int timeout = 4; int t = timeout; while (!pending.isEmpty() && (t=timeout) == timeout || t-- > 0) { for (Iterator<ObjectProcessor> it = pending.keySet()...
diff --git a/src/client/SessionClient.java b/src/client/SessionClient.java index 73890a3..4dd5676 100644 --- a/src/client/SessionClient.java +++ b/src/client/SessionClient.java @@ -1,205 +1,205 @@ package client; import java.io.IOException; import java.net.Socket; import java.util.ArrayList; import brute.Bonus...
true
true
public ArrayList<Bonus> getBruteBonus(int id) throws IOException { Writer w = new WriterClient(this.socket.getOutputStream()); System.out.println("Client send: " + (byte) Protocol.GET_BRUTE_BONUS + " [GET_BRUTE_BONUS] " + id); w.writeDiscriminant(Protocol.GET_BRUTE_BONUS); w.writeInt(id); w.send(); R...
public ArrayList<Bonus> getBruteBonus(int id) throws IOException { Writer w = new WriterClient(this.socket.getOutputStream()); System.out.println("Client send: " + (byte) Protocol.GET_BRUTE_BONUS + " [GET_BRUTE_BONUS] " + id); w.writeDiscriminant(Protocol.GET_BRUTE_BONUS); w.writeInt(id); w.send(); R...
diff --git a/gnu/testlet/java/lang/Integer/parseInt.java b/gnu/testlet/java/lang/Integer/parseInt.java index 6ca291ad..823ed214 100644 --- a/gnu/testlet/java/lang/Integer/parseInt.java +++ b/gnu/testlet/java/lang/Integer/parseInt.java @@ -1,136 +1,137 @@ /* Copyright (C) 2002 Free Software Foundation, Inc. * Written...
false
true
public void test(TestHarness harness) { int i; i = Integer.parseInt("0"); harness.check(i, 0); i = Integer.parseInt("1"); harness.check(i, 1); i = Integer.parseInt("000"); harness.check(i, 0); i = Integer.parseInt("007"); harness.check(i, 7); i = Integer.parseInt("-0"); ...
public void test(TestHarness harness) { int i; i = Integer.parseInt("0"); harness.check(i, 0); i = Integer.parseInt("1"); harness.check(i, 1); i = Integer.parseInt("000"); harness.check(i, 0); i = Integer.parseInt("007"); harness.check(i, 7); i = Integer.parseInt("-0"); ...
diff --git a/src/main/java/org/jenkinsci/plugins/buildresulttrigger/BuildResultTrigger.java b/src/main/java/org/jenkinsci/plugins/buildresulttrigger/BuildResultTrigger.java index c6946e3..4edf9d0 100644 --- a/src/main/java/org/jenkinsci/plugins/buildresulttrigger/BuildResultTrigger.java +++ b/src/main/java/org/jenkinsc...
false
true
private boolean checkIfModifiedJob(BuildResultTriggerInfo configuredTriggerJobInfo, BuildResultTriggerContext oldContext, BuildResultTriggerContext newContext, XTriggerLog log) throws XTriggerExcepti...
private boolean checkIfModifiedJob(BuildResultTriggerInfo configuredTriggerJobInfo, BuildResultTriggerContext oldContext, BuildResultTriggerContext newContext, XTriggerLog log) throws XTriggerExcepti...
diff --git a/mmstudio/src/org/micromanager/acquisition/MMImageCache.java b/mmstudio/src/org/micromanager/acquisition/MMImageCache.java index 9cfeebe61..77cc9cdfb 100644 --- a/mmstudio/src/org/micromanager/acquisition/MMImageCache.java +++ b/mmstudio/src/org/micromanager/acquisition/MMImageCache.java @@ -1,228 +1,229 @@...
true
true
private void checkForChangingTags(TaggedImage taggedImg) { if (firstTags_ == null) { firstTags_ = taggedImg.tags; } else { Iterator<String> keys = taggedImg.tags.keys(); while (keys.hasNext()) { String key = keys.next(); try { if (!firstTa...
private void checkForChangingTags(TaggedImage taggedImg) { if (firstTags_ == null) { firstTags_ = taggedImg.tags; } else { Iterator<String> keys = taggedImg.tags.keys(); while (keys.hasNext()) { String key = keys.next(); try { if (!firstTa...
diff --git a/src/com/discretelab/fantasycard/MainActivity.java b/src/com/discretelab/fantasycard/MainActivity.java index 9d3c6e9..ae84012 100644 --- a/src/com/discretelab/fantasycard/MainActivity.java +++ b/src/com/discretelab/fantasycard/MainActivity.java @@ -1,159 +1,159 @@ package com.discretelab.fantasycard; im...
false
true
public void init() { setDensity(); appOnAttachedToWindow(); mySlotView = (MyCardSlotViewGroup)findViewById(R.id.myslotview); ///TurnCount初期化 mtxtTurnCnt = new TextView(this); mtxtTurnCnt.setTextColor(Color.rgb(246, 196, 5)); mtxtTurnCnt.setText("Turn : 0"); mySlotView.addView(mtxtTurnCnt); ...
public void init() { setDensity(); appOnAttachedToWindow(); mySlotView = (MyCardSlotViewGroup)findViewById(R.id.myslotview); ///TurnCount初期化 mtxtTurnCnt = new TextView(this); mtxtTurnCnt.setTextColor(Color.rgb(246, 196, 5)); mtxtTurnCnt.setText("Turn : 0"); mySlotView.addView(mtxtTurnCnt); ...
diff --git a/seedboxer-web/src/main/java/net/seedboxer/web/controller/rs/TorrentsAPI.java b/seedboxer-web/src/main/java/net/seedboxer/web/controller/rs/TorrentsAPI.java index d145250..f6a6cba 100644 --- a/seedboxer-web/src/main/java/net/seedboxer/web/controller/rs/TorrentsAPI.java +++ b/seedboxer-web/src/main/java/net/...
true
true
public @ResponseBody APIResponse addTorrent(@RequestPart("file") MultipartFile file) { try { if (file.getName().endsWith(".torrent")) { controller.addTorrent(getUser(), file.getName(), file.getInputStream()); return APIResponse.createSuccessfulResponse(); } else { return APIResponse.createErrorResp...
public @ResponseBody APIResponse addTorrent(@RequestPart("file") MultipartFile file) { try { String filename = file.getOriginalFilename(); if (filename.endsWith(".torrent")) { controller.addTorrent(getUser(), filename, file.getInputStream()); return APIResponse.createSuccessfulResponse(); } else { ...
diff --git a/flexodesktop/model/flexofoundation/src/main/java/org/openflexo/foundation/viewpoint/AddIndividual.java b/flexodesktop/model/flexofoundation/src/main/java/org/openflexo/foundation/viewpoint/AddIndividual.java index abaced126..6655420de 100644 --- a/flexodesktop/model/flexofoundation/src/main/java/org/openfl...
true
true
protected String getAssertionsFMLRepresentation(FMLRepresentationContext context) { if (getDataAssertions().size() > 0) { StringBuffer sb = new StringBuffer(); for (DataPropertyAssertion a : getDataAssertions()) { sb.append(" " + a.getOntologyProperty().getName() + " = " + a.getValue().toString() + ";" + ...
protected String getAssertionsFMLRepresentation(FMLRepresentationContext context) { if (getDataAssertions().size() > 0) { StringBuffer sb = new StringBuffer(); for (DataPropertyAssertion a : getDataAssertions()) { if (a.getOntologyProperty() != null) { sb.append(" " + a.getOntologyProperty().getName(...
diff --git a/org.caleydo.view.entourage/src/org/caleydo/view/entourage/contextmenu/AddPathwayActionFactory.java b/org.caleydo.view.entourage/src/org/caleydo/view/entourage/contextmenu/AddPathwayActionFactory.java index a26a2e07e..7e6baf9ae 100644 --- a/org.caleydo.view.entourage/src/org/caleydo/view/entourage/contextme...
true
true
public Collection<Pair<String, ? extends IAction>> create(PathwayGraph pathway, Object sender) { final AddPathwayEvent event = new AddPathwayEvent(pathway, EEmbeddingID.PATHWAY_LEVEL1); event.setSender(sender); List<Pair<String, ? extends IAction>> actions = new ArrayList<>(); actions.add(Pair.make("Show " + ...
public Collection<Pair<String, ? extends IAction>> create(PathwayGraph pathway, Object sender) { final AddPathwayEvent event = new AddPathwayEvent(pathway, EEmbeddingID.PATHWAY_LEVEL1); event.setSender(sender); List<Pair<String, ? extends IAction>> actions = new ArrayList<>(); actions.add(Pair.make("Show " + ...
diff --git a/web/src/main/java/org/openmrs/web/taglib/PortletTag.java b/web/src/main/java/org/openmrs/web/taglib/PortletTag.java index 2ec7373c..40f4c59c 100644 --- a/web/src/main/java/org/openmrs/web/taglib/PortletTag.java +++ b/web/src/main/java/org/openmrs/web/taglib/PortletTag.java @@ -1,226 +1,226 @@ /** * The ...
true
true
public int doStartTag() throws JspException { if (url == null) { log.warn("URL came through as NULL to PortletTag - this is a big problem"); url = ""; } if (id == null) id = ""; try { if (url.equals("")) pageContext.getOut().print("Every portlet must be defined with a URI"); else { ...
public int doStartTag() throws JspException { if (url == null) { log.warn("URL came through as NULL to PortletTag - this is a big problem"); url = ""; } if (id == null) id = ""; try { if (url.equals("")) pageContext.getOut().print("Every portlet must be defined with a URI"); else { ...
diff --git a/oracle/src/main/java/org/archive/accesscontrol/model/HibernateRuleDao.java b/oracle/src/main/java/org/archive/accesscontrol/model/HibernateRuleDao.java index 22a9b6b..e2f92d1 100644 --- a/oracle/src/main/java/org/archive/accesscontrol/model/HibernateRuleDao.java +++ b/oracle/src/main/java/org/archive/acces...
true
true
public List<Rule> getRulesModifiedAfter(String timestamp, String who, String customRestrict) throws ParseException { Date date = ArchiveUtils.getDate(timestamp); String ruleWhereQuery = "from Rule rule where "; if (customRestrict != null) { ruleWhereQuery += customRestrict; ...
public List<Rule> getRulesModifiedAfter(String timestamp, String who, String customRestrict) throws ParseException { Date date = (timestamp != null ? ArchiveUtils.getDate(timestamp) : null); String ruleWhereQuery = "from Rule rule where "; if (customRestrict != null) { ruleWhe...
diff --git a/plugins-dev/planning/pt/lsts/neptus/plugins/planning/PlanEditor.java b/plugins-dev/planning/pt/lsts/neptus/plugins/planning/PlanEditor.java index 82d6644f3..7e5372795 100644 --- a/plugins-dev/planning/pt/lsts/neptus/plugins/planning/PlanEditor.java +++ b/plugins-dev/planning/pt/lsts/neptus/plugins/planning...
true
true
public void mouseClicked(MouseEvent event, StateRenderer2D source) { final StateRenderer2D renderer = source; final Point2D mousePoint = event.getPoint(); if (delegate != null) { if (event.getClickCount() == 2) { delegate.setActive(false, source); ...
public void mouseClicked(MouseEvent event, StateRenderer2D source) { final StateRenderer2D renderer = source; final Point2D mousePoint = event.getPoint(); if (delegate != null) { if (event.getClickCount() == 2) { delegate.setActive(false, source); ...
diff --git a/src/com/lolbro/nian/MainActivity.java b/src/com/lolbro/nian/MainActivity.java index 9ab3bec..d940ad1 100644 --- a/src/com/lolbro/nian/MainActivity.java +++ b/src/com/lolbro/nian/MainActivity.java @@ -1,387 +1,387 @@ package com.lolbro.nian; import org.andengine.engine.camera.SmoothCamera; import org.a...
false
true
public void onUpdate(float pSecondsElapsed) { Body playerBody = mPlayer.getBody(); float x = mPlayer.getBodyPositionX(true); float y = mPlayer.getBodyPositionY(true); float rollMovement = PLAYER_ROLL_SPEED * pSecondsElapsed; if (moveUp == true) { if (y > rollToPosition) { playerBody.setTransfor...
public void onUpdate(float pSecondsElapsed) { Body playerBody = mPlayer.getBody(); float x = mPlayer.getBodyPositionX(true); float y = mPlayer.getBodyPositionY(true); float rollMovement = PLAYER_ROLL_SPEED * pSecondsElapsed; if (moveUp == true) { if (y - rollMovement > rollToPosition) { playerB...
diff --git a/src/org/jruby/util/CommandlineParser.java b/src/org/jruby/util/CommandlineParser.java index e15e182ab..44761adfc 100644 --- a/src/org/jruby/util/CommandlineParser.java +++ b/src/org/jruby/util/CommandlineParser.java @@ -1,321 +1,321 @@ /***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1...
true
true
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : main.printUsage(); ...
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : main.printUsage(); ...
diff --git a/src/de/zigapeda/flowspring/data/YoutubeSearch.java b/src/de/zigapeda/flowspring/data/YoutubeSearch.java index 25887d5..8b2db38 100644 --- a/src/de/zigapeda/flowspring/data/YoutubeSearch.java +++ b/src/de/zigapeda/flowspring/data/YoutubeSearch.java @@ -1,112 +1,118 @@ package de.zigapeda.flowspring.data; ...
true
true
public List<DataNode> getYoutubeTracks(DataNode parent) { List<DataNode> list = new LinkedList<>(); search = search.replace(' ', '+'); String searchUrl = "http://www.youtube.com/results?search_query=" + search; try { URL u = new URL(searchUrl); InputStream is = u.openConnection().getInputStream(); ...
public List<DataNode> getYoutubeTracks(DataNode parent) { List<DataNode> list = new LinkedList<>(); search = search.replace(' ', '+'); String searchUrl = "http://www.youtube.com/results?search_query=" + search; try { URL u = new URL(searchUrl); InputStream is = u.openConnection().getInputStream(); ...
diff --git a/src/main/java/ly/bit/nsq/lookupd/AbstractLookupd.java b/src/main/java/ly/bit/nsq/lookupd/AbstractLookupd.java index 16c7a53..2e2f76c 100644 --- a/src/main/java/ly/bit/nsq/lookupd/AbstractLookupd.java +++ b/src/main/java/ly/bit/nsq/lookupd/AbstractLookupd.java @@ -1,61 +1,64 @@ package ly.bit.nsq.lookupd; ...
true
true
public static List<String> parseResponseForProducers(Reader response){ ObjectMapper mapper = new ObjectMapper(); List<String> outputs = new ArrayList<String>(); try { JsonNode rootNode = mapper.readTree(response); JsonNode producers = rootNode.path("data").path("producers"); Iterator<JsonNode> prod...
public static List<String> parseResponseForProducers(Reader response){ ObjectMapper mapper = new ObjectMapper(); List<String> outputs = new ArrayList<String>(); try { JsonNode rootNode = mapper.readTree(response); JsonNode producers = rootNode.path("data").path("producers"); Iterator<JsonNode> prod...
diff --git a/psl-core/src/main/java/edu/umd/cs/psl/model/formula/traversal/FormulaEventAnalysis.java b/psl-core/src/main/java/edu/umd/cs/psl/model/formula/traversal/FormulaEventAnalysis.java index e9b2f911..7c149028 100644 --- a/psl-core/src/main/java/edu/umd/cs/psl/model/formula/traversal/FormulaEventAnalysis.java +++...
true
true
public FormulaEventAnalysis(Formula f) { formula = f; dependence = ArrayListMultimap.create(); //FormulaTraverser.traverse(formula, new FormulaAnalyser()); queries = new HashSet<Formula>(); Conjunction c = ((Conjunction) formula).flatten(); Vector<Formula> necessary = new Vector<Formula>(c.getNoFormulas...
public FormulaEventAnalysis(Formula f) { formula = f; dependence = ArrayListMultimap.create(); //FormulaTraverser.traverse(formula, new FormulaAnalyser()); queries = new HashSet<Formula>(); Conjunction c = ((Conjunction) formula).flatten(); Vector<Formula> necessary = new Vector<Formula>(c.getNoFormulas...
diff --git a/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java b/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java index 1102ee57..f5a56d86 100644 --- a/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java +++ b/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java @@ -1,669 +1,...
true
true
public HiveConnection(String uri, Properties info) throws SQLException { if (!uri.startsWith(URI_PREFIX)) { throw new SQLException("Invalid URL: " + uri, "08S01"); } // remove prefix uri = uri.substring(URI_PREFIX.length()); // If uri is not specified, use local mode. if (uri.isEmpty()...
public HiveConnection(String uri, Properties info) throws SQLException { if (!uri.startsWith(URI_PREFIX)) { throw new SQLException("Invalid URL: " + uri, "08S01"); } // remove prefix uri = uri.substring(URI_PREFIX.length()); // If uri is not specified, use local mode. if (uri.isEmpty()...
diff --git a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/Subscription.java b/entitlement/src/main/java/com/ning/billing/entitlement/api/user/Subscription.java index 396838e74..521c89b36 100644 --- a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/Subscription.java +++ b/entitlement/s...
false
true
private void rebuildTransitions() { List<IEvent> events = dao.getEventsForSubscription(id); if (events == null) { return; } SubscriptionState nextState = null; String nextPlanName = null; String nextPhaseName = null; String nextPriceList = null; ...
private void rebuildTransitions() { List<IEvent> events = dao.getEventsForSubscription(id); if (events == null) { return; } SubscriptionState nextState = null; String nextPlanName = null; String nextPhaseName = null; String nextPriceList = null; ...
diff --git a/src/com/ikai/photosharing/server/UserImageServiceImpl.java b/src/com/ikai/photosharing/server/UserImageServiceImpl.java index 44776db..661e806 100644 --- a/src/com/ikai/photosharing/server/UserImageServiceImpl.java +++ b/src/com/ikai/photosharing/server/UserImageServiceImpl.java @@ -1,50 +1,50 @@ package ...
true
true
public void deleteImage(String key) { UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); UploadedImageDao dao = new UploadedImageDao(); UploadedImage image = dao.get(key); if(image.getOwnerId() == user.getUserId()) { dao.delete(key); } }
public void deleteImage(String key) { UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); UploadedImageDao dao = new UploadedImageDao(); UploadedImage image = dao.get(key); if(image.getOwnerId().equals(user.getUserId())) { dao.delete(key); } }
diff --git a/user/src/main/java/org/tessell/model/dsl/ListBoxIdentityAdaptor.java b/user/src/main/java/org/tessell/model/dsl/ListBoxIdentityAdaptor.java index 1de209f9..f875c457 100644 --- a/user/src/main/java/org/tessell/model/dsl/ListBoxIdentityAdaptor.java +++ b/user/src/main/java/org/tessell/model/dsl/ListBoxIdenti...
true
true
public String toDisplay(P option) { return option.toString(); }
public String toDisplay(P option) { return option == null ? null : option.toString(); }
diff --git a/cat-core/src/main/java/com/dianping/cat/build/StorageComponentConfigurator.java b/cat-core/src/main/java/com/dianping/cat/build/StorageComponentConfigurator.java index d806d74c..558aa11d 100644 --- a/cat-core/src/main/java/com/dianping/cat/build/StorageComponentConfigurator.java +++ b/cat-core/src/main/jav...
true
true
public List<Component> defineComponents() { List<Component> all = new ArrayList<Component>(); all.add(C(Bucket.class, String.class.getName(), LocalStringBucket.class) // .is(PER_LOOKUP) // .req(MessagePathBuilder.class)); all.add(C(Bucket.class, MessageTree.class.getName(), LocalMessageBucket.cl...
public List<Component> defineComponents() { List<Component> all = new ArrayList<Component>(); all.add(C(Bucket.class, String.class.getName(), LocalStringBucket.class) // .is(PER_LOOKUP) // .req(MessagePathBuilder.class)); all.add(C(Bucket.class, MessageTree.class.getName(), LocalMessageBucket.cl...
diff --git a/src/main/java/jannovar/Jannovar.java b/src/main/java/jannovar/Jannovar.java index 21be3c46..91b880ab 100644 --- a/src/main/java/jannovar/Jannovar.java +++ b/src/main/java/jannovar/Jannovar.java @@ -1,563 +1,563 @@ package jannovar; /** Command line functions from apache */ import org.apache.commons.cl...
true
true
private void parseCommandLineArguments(String[] args) { try { Options options = new Options(); options.addOption(new Option("h","help",false,"Shows this help")); options.addOption(new Option("U","nfsp",true,"Path to directory with UCSC files.")); options.addOption(new Option("S","serialize...
private void parseCommandLineArguments(String[] args) { try { Options options = new Options(); options.addOption(new Option("h","help",false,"Shows this help")); options.addOption(new Option("U","nfsp",true,"Path to directory with UCSC files.")); options.addOption(new Option("S","serialize...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tests/src/org/eclipse/tcf/te/tests/concurrent/ConcurrentTestCase.java b/target_explorer/plugins/org.eclipse.tcf.te.tests/src/org/eclipse/tcf/te/tests/concurrent/ConcurrentTestCase.java index 3274f418a..99a62e812 100644 --- a/target_explorer/plugins/org.eclipse.tcf...
true
true
public void testSingleThreadExecutorService() { // Get the execution service instance IExecutor executor = Executors.newExecutor("org.eclipse.tcf.te.runtime.concurrent.executors.singleThreaded"); //$NON-NLS-1$ assertNotNull("Failed to get executor instance!", executor); //$NON-NLS-1$ assertTrue("Executor not i...
public void testSingleThreadExecutorService() { // Get the execution service instance IExecutor executor = Executors.newExecutor("org.eclipse.tcf.te.runtime.concurrent.executors.singleThreaded"); //$NON-NLS-1$ assertNotNull("Failed to get executor instance!", executor); //$NON-NLS-1$ assertTrue("Executor not i...
diff --git a/bamboo-sonar-tasks/src/main/java/com/marvelution/bamboo/plugins/sonar/tasks/configuration/AbstractSonarMavenBuildTaskConfigurator.java b/bamboo-sonar-tasks/src/main/java/com/marvelution/bamboo/plugins/sonar/tasks/configuration/AbstractSonarMavenBuildTaskConfigurator.java index d0abd0c..0c78c7d 100644 --- a...
true
true
public Map<String, String> generateTaskConfigMap(@NotNull final ActionParametersMap params, @Nullable final TaskDefinition previousTaskDefinition) { Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition); taskConfiguratorHelper.populateTaskConfigMapWithActionParameters(config...
public Map<String, String> generateTaskConfigMap(@NotNull final ActionParametersMap params, @Nullable final TaskDefinition previousTaskDefinition) { Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition); taskConfiguratorHelper.populateTaskConfigMapWithActionParameters(config...
diff --git a/tests/sprints/sprint0_3/src/test/java/luminis/CompleteAlarmsWorkflowTest.java b/tests/sprints/sprint0_3/src/test/java/luminis/CompleteAlarmsWorkflowTest.java index 93ef63f30..b4af20f69 100644 --- a/tests/sprints/sprint0_3/src/test/java/luminis/CompleteAlarmsWorkflowTest.java +++ b/tests/sprints/sprint0_3/s...
true
true
private TestInitInfo setUp() throws ResourceException, ProtocolException { initBundles(); //clear resource repo List<IResource> resources = resourceManager.listResources(); for (IResource resource : resources){ if (resource.getState().equals(ILifecycle.State.ACTIVE)) resourceManager.stopResource(r...
private TestInitInfo setUp() throws ResourceException, ProtocolException { initBundles(); //clear resource repo List<IResource> resources = resourceManager.listResources(); for (IResource resource : resources){ if (resource.getState().equals(ILifecycle.State.ACTIVE)) resourceManager.stopResource(r...
diff --git a/modules/activiti-rest/src/main/java/org/activiti/rest/util/ActivitiWebScript.java b/modules/activiti-rest/src/main/java/org/activiti/rest/util/ActivitiWebScript.java index 1bd3eb86..19d94ade 100644 --- a/modules/activiti-rest/src/main/java/org/activiti/rest/util/ActivitiWebScript.java +++ b/modules/activit...
true
true
Map<String, Object> getFormVariables() { Map<String, Object> map = new HashMap<String, Object>(); Iterator keys = jsonBody.keys(); String key, typeKey, type; String[] keyPair; Object value; while (keys.hasNext()) { key = (String) keys.next(); keyPair = key.split("...
Map<String, Object> getFormVariables() { Map<String, Object> map = new HashMap<String, Object>(); Iterator keys = jsonBody.keys(); String key, typeKey, type; String[] keyPair; Object value; while (keys.hasNext()) { key = (String) keys.next(); keyPair = key.split("...
diff --git a/src/ttree/pipin/i2c/MD25Test.java b/src/ttree/pipin/i2c/MD25Test.java index c1663c5..b85b3d3 100644 --- a/src/ttree/pipin/i2c/MD25Test.java +++ b/src/ttree/pipin/i2c/MD25Test.java @@ -1,57 +1,57 @@ package ttree.pipin.i2c; import java.io.BufferedReader; import java.io.IOException; import java.io.Inpu...
true
true
public static void main(String[] args) throws IOException { // RPi external I2C bus final I2CBus piExtBus = I2CFactory.getInstance(1); // Default address for MD25 board final I2CDevice md25 = piExtBus.getDevice(0x58); int revision = md25.read(MD25.REG_REVISION); System.out.print("MD25 revision " + re...
public static void main(String[] args) throws IOException { // RPi external I2C bus final I2CBus piExtBus = I2CFactory.getInstance(1); // Default address for MD25 board final I2CDevice md25 = piExtBus.getDevice(0x58); int revision = md25.read(MD25.REG_REVISION); System.out.print("MD25 revision " + re...
diff --git a/src/main/java/cz/muni/fi/xklinec/whiteboxAES/generator/AEShelper.java b/src/main/java/cz/muni/fi/xklinec/whiteboxAES/generator/AEShelper.java index a39c74c..0c036c7 100644 --- a/src/main/java/cz/muni/fi/xklinec/whiteboxAES/generator/AEShelper.java +++ b/src/main/java/cz/muni/fi/xklinec/whiteboxAES/generato...
true
true
public void build(boolean encrypt){ field = new GF2mField(8, POLYNOMIAL); System.out.println(field); int i,c,cur = 1; gInv[0] = -1; for(i=0; i<AES_FIELD_SIZE; i++){ g[i] = cur; gInv[cur] = i; cur = field.mult(cur, GENERATOR); } ...
public void build(boolean encrypt){ field = new GF2mField(8, POLYNOMIAL); System.out.println(field); int i,c,cur = 1; gInv[0] = -1; for(i=0; i<AES_FIELD_SIZE; i++){ g[i] = cur; gInv[cur] = i; cur = field.mult(cur, GENERATOR); } ...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java index 9fd47e6b..8026b9d6 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java +++ b/Essentials/src/com/earth2me/essentials/commands/Com...
true
true
public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception { if (args.length < 1) { user.sendMessage("§cUsage: /" + commandLabel + " [list|item] <player>"); return; } User target = user; if (args.length > 1 && user.isAuthorized("essentials.u...
public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception { if (args.length < 1) { user.sendMessage("§cUsage: /" + commandLabel + " [list|item] <player>"); return; } User target = user; if (args.length > 1 && user.isAuthorized("essentials.u...
diff --git a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java b/src/java/org/apache/nutch/crawl/CrawlDbReducer.java index cbfaf38b..13d8b749 100644 --- a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java +++ b/src/java/org/apache/nutch/crawl/CrawlDbReducer.java @@ -1,129 +1,130 @@ /** * Copyright 2005 The Apach...
true
true
public void reduce(WritableComparable key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { CrawlDatum highest = null; CrawlDatum old = null; byte[] signature = null; float scoreIncrement = 0.0f; while (values.hasNext()) { CrawlDatum...
public void reduce(WritableComparable key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { CrawlDatum highest = null; CrawlDatum old = null; byte[] signature = null; float scoreIncrement = 0.0f; while (values.hasNext()) { CrawlDatum...
diff --git a/src/com/modcrafting/diablodrops/listeners/TomeListener.java b/src/com/modcrafting/diablodrops/listeners/TomeListener.java index e19390d..d15b0ef 100644 --- a/src/com/modcrafting/diablodrops/listeners/TomeListener.java +++ b/src/com/modcrafting/diablodrops/listeners/TomeListener.java @@ -1,131 +1,129 @@ pa...
false
true
public void onRightClick(final PlayerInteractEvent e) { if ((e.getAction().equals(Action.RIGHT_CLICK_AIR) || e.getAction() .equals(Action.RIGHT_CLICK_BLOCK)) && e.getPlayer().getItemInHand().getType() .equals(Material.WRITTEN_BOOK)) { ...
public void onRightClick(final PlayerInteractEvent e) { if ((e.getAction().equals(Action.RIGHT_CLICK_AIR) || e.getAction() .equals(Action.RIGHT_CLICK_BLOCK)) && e.getPlayer().getItemInHand().getType() .equals(Material.WRITTEN_BOOK)) { ...
diff --git a/eol-globi-data-tool/src/test/java/org/eol/globi/service/EOLServiceIT.java b/eol-globi-data-tool/src/test/java/org/eol/globi/service/EOLServiceIT.java index 4b2d4ba9..6ec47a5b 100644 --- a/eol-globi-data-tool/src/test/java/org/eol/globi/service/EOLServiceIT.java +++ b/eol-globi-data-tool/src/test/java/org/e...
true
true
public void lookupByNameYieldsMoreThanOneMatches() throws TaxonPropertyLookupServiceException { // this species has two matches http://eol.org/27383107 and http://eol.org/209714, first is picked assertThat(lookupPageIdByScientificName("Copadichromis insularis"), is("EOL:27383107")); // bel...
public void lookupByNameYieldsMoreThanOneMatches() throws TaxonPropertyLookupServiceException { // this species has two matches http://eol.org/27383107 and http://eol.org/209714, first is picked assertThat(lookupPageIdByScientificName("Copadichromis insularis"), is("EOL:209714")); // below...
diff --git a/ProjectRSC/Server/src/org/darkquest/gs/plugins/npcs/Boat.java b/ProjectRSC/Server/src/org/darkquest/gs/plugins/npcs/Boat.java index ce50e11..a55c30e 100644 --- a/ProjectRSC/Server/src/org/darkquest/gs/plugins/npcs/Boat.java +++ b/ProjectRSC/Server/src/org/darkquest/gs/plugins/npcs/Boat.java @@ -1,129 +1,12...
true
true
public void onTalkToNpc(Player player, final Npc npc) { if(!DataConversions.inArray(boatMen, npc.getID())) { return; } if(npc.getID() == 163) { player.informOfNpcMessage(new ChatMessage(npc, "G'day sailor, would you like a free trip to Port Sarim", player)); player.setBusy(true); world.getDelayedEven...
public void onTalkToNpc(Player player, final Npc npc) { if(!DataConversions.inArray(boatMen, npc.getID())) { return; } if(npc.getID() == 163) { player.informOfNpcMessage(new ChatMessage(npc, "G'day sailor, would you like a free trip to Port Sarim", player)); player.setBusy(true); world.getDelayedEven...
diff --git a/src/Region.java b/src/Region.java index 6cbeed8..02b6467 100644 --- a/src/Region.java +++ b/src/Region.java @@ -1,25 +1,27 @@ import java.util.HashMap; class Region extends Zone{ private HashMap<String, Zone> zones; public Region(String name){ this(name,0); } public Reg...
true
true
public Zone getZone(String zoneName){ // add zone to the hashmap if it isn't found if (!zones.containsKey(zoneName)) zones.put(zoneName, new Zone(zoneName)); return zones.get(zoneName); }
public Zone getZone(String zoneName){ // if a zone is not in the map, throw an exception // we don't instantiate because we don't know the type // of Zone (can be Region or Town) if (!zones.containsKey(zoneName)) throw new IllegalArgumentException(); return zones....
diff --git a/src/main/java/org/subethamail/smtp/command/AuthCommand.java b/src/main/java/org/subethamail/smtp/command/AuthCommand.java index a191e4e..c278ee4 100644 --- a/src/main/java/org/subethamail/smtp/command/AuthCommand.java +++ b/src/main/java/org/subethamail/smtp/command/AuthCommand.java @@ -1,113 +1,113 @@ pa...
true
true
public void execute(String commandString, Session sess) throws IOException { if (sess.isAuthenticated()) { sess.sendResponse("503 Refusing any other AUTH command."); return; } AuthenticationHandlerFactory authFactory = sess.getServer().getAuthenticationHandlerFactory(); if (authFactory == null) ...
public void execute(String commandString, Session sess) throws IOException { if (sess.isAuthenticated()) { sess.sendResponse("503 Refusing any other AUTH command."); return; } AuthenticationHandlerFactory authFactory = sess.getServer().getAuthenticationHandlerFactory(); if (authFactory == null) ...
diff --git a/src/java-common/org/xins/common/text/SimplePatternParser.java b/src/java-common/org/xins/common/text/SimplePatternParser.java index 9038c21e9..6dba66ed7 100644 --- a/src/java-common/org/xins/common/text/SimplePatternParser.java +++ b/src/java-common/org/xins/common/text/SimplePatternParser.java @@ -1,187 +...
true
true
private String convertToPerl5RegularExpression(String pattern) throws NullPointerException, ParseException { char[] contents = pattern.toCharArray(); int size = contents.length; FastStringBuffer buffer = new FastStringBuffer(size * 2); char prevChar = (char) 0; for (int i= 0; i < s...
private String convertToPerl5RegularExpression(String pattern) throws NullPointerException, ParseException { char[] contents = pattern.toCharArray(); int size = contents.length; FastStringBuffer buffer = new FastStringBuffer(size * 2); char prevChar = (char) 0; for (int i= 0; i < s...
diff --git a/src/cl/votainteligente/inspector/client/presenters/HomePresenter.java b/src/cl/votainteligente/inspector/client/presenters/HomePresenter.java index c83514e..25a4a6c 100644 --- a/src/cl/votainteligente/inspector/client/presenters/HomePresenter.java +++ b/src/cl/votainteligente/inspector/client/presenters/Ho...
true
true
public void initBillTable() { while (getView().getBillTable().getColumnCount() > 0) { getView().getBillTable().removeColumn(0); } // Creates bulletin column TextColumn<Bill> bulletinColumn = new TextColumn<Bill>() { @Override public String getValue(Bill bill) { return bill.getBulletinNumber(); ...
public void initBillTable() { while (getView().getBillTable().getColumnCount() > 0) { getView().getBillTable().removeColumn(0); } // Creates bulletin column TextColumn<Bill> bulletinColumn = new TextColumn<Bill>() { @Override public String getValue(Bill bill) { return bill.getBulletinNumber(); ...
diff --git a/wingx/src/java/org/wingx/plaf/css/CalendarCG.java b/wingx/src/java/org/wingx/plaf/css/CalendarCG.java index d57094a..57da781 100644 --- a/wingx/src/java/org/wingx/plaf/css/CalendarCG.java +++ b/wingx/src/java/org/wingx/plaf/css/CalendarCG.java @@ -1,188 +1,188 @@ package org.wingx.plaf.css; import java...
false
true
public void writeInternal(Device device, XCalendar component) throws java.io.IOException { final String idComponent = component.getName(); final String idValue = idComponent + "val"; final String idButton = idComponent + "btn"; final String idContainer = idComponent + "con"; ...
public void writeInternal(Device device, XCalendar component) throws java.io.IOException { final String idComponent = component.getName(); final String idValue = idComponent + "val"; final String idButton = idComponent + "btn"; final String idContainer = idComponent + "con"; ...
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/serviceregistry/ServiceUse.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/serviceregistry/ServiceUse.java index b67baf9b..db8b7a56 100755 --- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/servi...
true
true
Object getService() { if ((useCount > 0) || (factory == null)) { useCount++; return cachedService; } if (Debug.DEBUG && Debug.DEBUG_SERVICES) { Debug.println("getService[factory=" + registration.getBundle() + "](" + context.getBundleImpl() + "," + registration + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON...
Object getService() { if ((useCount > 0) || (factory == null)) { useCount++; return cachedService; } if (Debug.DEBUG && Debug.DEBUG_SERVICES) { Debug.println("getService[factory=" + registration.getBundle() + "](" + context.getBundleImpl() + "," + registration + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON...
diff --git a/src/main/org/jboss/messaging/core/security/impl/SecurityStoreImpl.java b/src/main/org/jboss/messaging/core/security/impl/SecurityStoreImpl.java index a39fa53fa..e1c62ba22 100644 --- a/src/main/org/jboss/messaging/core/security/impl/SecurityStoreImpl.java +++ b/src/main/org/jboss/messaging/core/security/imp...
true
true
public void check(final SimpleString address, final CheckType checkType, final ServerSession session) throws Exception { if (securityEnabled) { if (trace) { log.trace("checking access permissions to " + address); } if (checkCached(address, checkType)) { // OK...
public void check(final SimpleString address, final CheckType checkType, final ServerSession session) throws Exception { if (securityEnabled) { if (trace) { log.trace("checking access permissions to " + address); } if (checkCached(address, checkType)) { // OK...
diff --git a/metamodel/kevoree/org.kevoree.modeling.sample.kevoree.test/src/test/java/org/kevoree/test/LoadJSonTest.java b/metamodel/kevoree/org.kevoree.modeling.sample.kevoree.test/src/test/java/org/kevoree/test/LoadJSonTest.java index c0aa1726..2dea1baf 100644 --- a/metamodel/kevoree/org.kevoree.modeling.sample.kevor...
true
true
public void bench() { ModelCompare compare = new DefaultModelCompare(); long before = System.currentTimeMillis(); KMFContainer root = loader.loadModelFromStream(this.getClass().getClassLoader().getResourceAsStream("jedModel.json")).get(0); KMFContainer root2 = loader.loadModelFr...
public void bench() { ModelCompare compare = new DefaultModelCompare(); long before = System.currentTimeMillis(); KMFContainer root = loader.loadModelFromStream(this.getClass().getClassLoader().getResourceAsStream("jedModel.json")).get(0); KMFContainer root2 = loader.loadModelFr...
diff --git a/WifiSim/src/WifiGUI.java b/WifiSim/src/WifiGUI.java index 5e10d96..3fbb663 100644 --- a/WifiSim/src/WifiGUI.java +++ b/WifiSim/src/WifiGUI.java @@ -1,143 +1,143 @@ import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEv...
true
true
public static void main(String[] args) { //FRAME SETUP JFrame frame = new JFrame("Team 4 WIFI Simulator"); frame.setLayout(new BorderLayout()); //LEFT AND RIGHT PANEL DECLRATION AND SETUP final JPanel leftPanel = new JPanel(); leftPanel.setLayout(new Bo...
public static void main(String[] args) { //FRAME SETUP JFrame frame = new JFrame("Team 4 WIFI Simulator"); frame.setLayout(new BorderLayout()); //LEFT AND RIGHT PANEL DECLRATION AND SETUP final JPanel leftPanel = new JPanel(); leftPanel.setLayout(new Bo...
diff --git a/src/il/technion/ewolf/server/WebGuiHttpService.java b/src/il/technion/ewolf/server/WebGuiHttpService.java index 1fd7aca..e37eff1 100644 --- a/src/il/technion/ewolf/server/WebGuiHttpService.java +++ b/src/il/technion/ewolf/server/WebGuiHttpService.java @@ -1,73 +1,74 @@ package il.technion.ewolf.server; ...
true
true
protected void doService(HttpRequest req, HttpResponse res, HttpContext context) throws HttpException, IOException { boolean authorized = false; if (req.containsHeader("Cookie")) { Header[] headers = req.getHeaders("Cookie"); for (Header h : headers) { String cookie = h.getValue(); if (sessionStor...
protected void doService(HttpRequest req, HttpResponse res, HttpContext context) throws HttpException, IOException { boolean authorized = false; if (req.containsHeader("Cookie")) { Header[] headers = req.getHeaders("Cookie"); for (Header h : headers) { String cookie = h.getValue(); String key = co...
diff --git a/sandbox/rar/EightToCarRobustnessBatch.java b/sandbox/rar/EightToCarRobustnessBatch.java index e7ed5c16..eae1e703 100644 --- a/sandbox/rar/EightToCarRobustnessBatch.java +++ b/sandbox/rar/EightToCarRobustnessBatch.java @@ -1,190 +1,190 @@ package rar; import java.io.BufferedWriter; import java.io.FileW...
true
true
public EightToCarRobustnessBatch(Class<?>[] mainClasses) { int counter = 0; for(int ci=0; ci<mainClasses.length; ci++) { // Efficiency experiments, 0% failure risk, varying packet loss if(!EightToCarSettings.SKIP_EFFICIENCY) for(float risk = EightToCarSettings...
public EightToCarRobustnessBatch(Class<?>[] mainClasses) { int counter = 0; for(int ci=0; ci<mainClasses.length; ci++) { // Efficiency experiments, 0% failure risk, varying packet loss if(!EightToCarSettings.SKIP_EFFICIENCY) for(float risk = EightToCarSettings...
diff --git a/src/main/java/org/elasticsearch/index/query/TermsFilterParser.java b/src/main/java/org/elasticsearch/index/query/TermsFilterParser.java index 4917f64dfaa..520e1f2d470 100644 --- a/src/main/java/org/elasticsearch/index/query/TermsFilterParser.java +++ b/src/main/java/org/elasticsearch/index/query/TermsFilte...
true
true
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); MapperService.SmartNameFieldMappers smartNameFieldMappers; Boolean cache = null; String filterName = null; String currentFieldName =...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); MapperService.SmartNameFieldMappers smartNameFieldMappers; Boolean cache = null; String filterName = null; String currentFieldName =...
diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ConstructTaskOutstandingTableFromMasterTable.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ConstructTaskOutstandingTableFromMasterTable.java index 91c5d1e09..9bf3db85b 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/mes...
true
true
protected void extras(long itemId, long createdAt) { super.extras(itemId, createdAt); TodorooCursor<Metadata> tagMetadata = metadataDao.query(Query.select(Metadata.PROPERTIES) .where(Criterion.and(MetadataCriteria.byTaskAndwithKey(itemId, TaskToTagMetadata.KEY), Metadata.DELETION_DAT...
protected void extras(long itemId, long createdAt) { super.extras(itemId, createdAt); TodorooCursor<Metadata> tagMetadata = metadataDao.query(Query.select(Metadata.PROPERTIES) .where(Criterion.and(MetadataCriteria.byTaskAndwithKey(itemId, TaskToTagMetadata.KEY), Metadata.DELETION_DAT...
diff --git a/src/mainpackage/mysql/Retrieve.java b/src/mainpackage/mysql/Retrieve.java index 094322e..aebb2bd 100644 --- a/src/mainpackage/mysql/Retrieve.java +++ b/src/mainpackage/mysql/Retrieve.java @@ -1,141 +1,140 @@ package mainpackage.mysql; import java.io.FileInputStream; import java.io.FileNotFoundExceptio...
false
true
public void upcomingActivityRetrieveMySQL() { Connection connection = null; PreparedStatement pStatement = null; ResultSet resultSet = null; Properties props = new Properties(); FileInputStream inStream = null; try { inStream = new FileInputStream("/usr/local/mysql/database.properties"); pr...
public void upcomingActivityRetrieveMySQL() { Connection connection = null; PreparedStatement pStatement = null; ResultSet resultSet = null; Properties props = new Properties(); FileInputStream inStream = null; try { inStream = new FileInputStream("/usr/local/mysql/database.properties"); pr...
diff --git a/src-ai/hughai/ui/ConsoleJava.java b/src-ai/hughai/ui/ConsoleJava.java index b852bdb..c05d2f7 100644 --- a/src-ai/hughai/ui/ConsoleJava.java +++ b/src-ai/hughai/ui/ConsoleJava.java @@ -1,206 +1,224 @@ // Copyright Hugh Perkins 2009 // hughperkins@gmail.com http://manageddreams.com // // This program is ...
false
true
public void actionPerformed( ActionEvent event ) { try { // String ourdir = "/home/user/persist/workspace/Test/"; String ourdir = playerObjects.getCSAI().getAIDirectoryPath(); System.out.println( textarea.getText() ); new File( ourdir + "src-console" + File...
public void actionPerformed( ActionEvent event ) { try { // String ourdir = "/home/user/persist/workspace/Test/"; String ourdir = playerObjects.getCSAI().getAIDirectoryPath(); System.out.println( textarea.getText() ); new File( ourdir + "src-console" + File...
diff --git a/src/com/example/Adapter/SolutionAdapter.java b/src/com/example/Adapter/SolutionAdapter.java index b57655c..2ef6673 100644 --- a/src/com/example/Adapter/SolutionAdapter.java +++ b/src/com/example/Adapter/SolutionAdapter.java @@ -1,85 +1,85 @@ package com.example.Adapter; import java.util.Arrays; import...
false
true
public boolean add(String w, int tagPosition) { for (int i = 0; i < data.length; i++) { if (!w.equals("") && data[i].equals(SPACE)) { data[i] = w; count++; tag[i] = tagPosition; notifyDataSetChanged(); if (count == data.length) return false; return true; } } return false; }
public boolean add(String w, int tagPosition) { for (int i = 0; i < data.length; i++) { if (count == data.length) return false; if (!w.equals("") && data[i].equals(SPACE)) { data[i] = w; count++; tag[i] = tagPosition; notifyDataSetChanged(); return true; } } return false; }
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JSF2ValidatorTest.java b/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JSF2ValidatorTest.java index 71196d9b5..82bdde06c 100644 --- a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/...
true
true
public void testCAforIncludeTaglibInInenerNodes() throws Throwable { IFile file = (IFile) TestUtil.getComponentPath("JBIDE/6922/jbide6922.xhtml", //$NON-NLS-1$ JsfAllTests.IMPORT_JSF_20_PROJECT_NAME); IEditorInput input = new FileEditorInput(file); JSPMultiPageEditor multiPageEditor =...
public void testCAforIncludeTaglibInInenerNodes() throws Throwable { IFile file = (IFile) TestUtil.getComponentPath("JBIDE/6922/jbide6922.xhtml", //$NON-NLS-1$ JsfAllTests.IMPORT_JSF_20_PROJECT_NAME); IEditorInput input = new FileEditorInput(file); JSPMultiPageEditor multiPageEditor =...
diff --git a/tests/gdx-tests/src/com/badlogic/gdx/tests/Scene2dTest.java b/tests/gdx-tests/src/com/badlogic/gdx/tests/Scene2dTest.java index 616443b7e..dd02234eb 100644 --- a/tests/gdx-tests/src/com/badlogic/gdx/tests/Scene2dTest.java +++ b/tests/gdx-tests/src/com/badlogic/gdx/tests/Scene2dTest.java @@ -1,179 +1,179 @@...
true
true
public void create () { stage = new Stage(); Gdx.input.setInputProcessor(stage); final TextureRegion region = new TextureRegion(new Texture("data/badlogic.jpg")); final Actor actor = new Actor() { public void draw (SpriteBatch batch, float parentAlpha) { Color color = getColor(); batch.setColor(col...
public void create () { stage = new Stage(); Gdx.input.setInputProcessor(stage); final TextureRegion region = new TextureRegion(new Texture("data/badlogic.jpg")); final Actor actor = new Actor() { public void draw (SpriteBatch batch, float parentAlpha) { Color color = getColor(); batch.setColor(col...
diff --git a/src/test/java/org/mxupdate/test/util/TestParameterCache.java b/src/test/java/org/mxupdate/test/util/TestParameterCache.java index 15b67b33..c912a39a 100644 --- a/src/test/java/org/mxupdate/test/util/TestParameterCache.java +++ b/src/test/java/org/mxupdate/test/util/TestParameterCache.java @@ -1,100 +1,100 ...
true
true
protected Properties readProperties(final Context _context) throws IOException { final Properties props = new Properties(); props.load(new FileInputStream("src/org/mxupdate/mapping.properties")); return props; }
protected Properties readProperties(final Context _context) throws IOException { final Properties props = new Properties(); props.load(new FileInputStream("src/main/resources/org/mxupdate/mapping.properties")); return props; }
diff --git a/src/factory/server/managers/kitAssemblyManager/UpdateServer.java b/src/factory/server/managers/kitAssemblyManager/UpdateServer.java index 6debd4e..22b55ec 100755 --- a/src/factory/server/managers/kitAssemblyManager/UpdateServer.java +++ b/src/factory/server/managers/kitAssemblyManager/UpdateServer.java @@ ...
true
true
public void movePartstoStand(int nest, int stand, int[] pos, int[] indexes) { if (isMovePartstoStand) { flag = true; boolean f = true; if (!probot.isMoving()) { if (stands.get(stand).getKit() != null){ Part[] p = new Part[4]; ...
public void movePartstoStand(int nest, int stand, int[] pos, int[] indexes) { if (isMovePartstoStand) { flag = true; boolean f = true; if (!probot.isMoving()) { if (stands.get(stand).getKit() != null){ Part[] p = new Part[4]; ...
diff --git a/src/main/java/tconstruct/client/tabs/AbstractTab.java b/src/main/java/tconstruct/client/tabs/AbstractTab.java index 97da51632..3fa1604d1 100644 --- a/src/main/java/tconstruct/client/tabs/AbstractTab.java +++ b/src/main/java/tconstruct/client/tabs/AbstractTab.java @@ -1,67 +1,68 @@ package tconstruct.clien...
true
true
public void drawButton (Minecraft mc, int mouseX, int mouseY) { if (this.visible) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); int yTexPos = this.enabled ? 3 : 32; int ySize = this.enabled ? 28 : 32; int xOffset = this.id == 2 ? 0 : 1; m...
public void drawButton (Minecraft mc, int mouseX, int mouseY) { if (this.visible) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); int yTexPos = this.enabled ? 3 : 32; int ySize = this.enabled ? 28 : 32; int xOffset = this.id == 2 ? 0 : 1; m...
diff --git a/treeview/src/main/uk/ac/starlink/treeview/NdxDataNode.java b/treeview/src/main/uk/ac/starlink/treeview/NdxDataNode.java index 95c4d9a30..9ed9c3481 100644 --- a/treeview/src/main/uk/ac/starlink/treeview/NdxDataNode.java +++ b/treeview/src/main/uk/ac/starlink/treeview/NdxDataNode.java @@ -1,436 +1,444 @@ pa...
true
true
public static void addDataViews( DetailViewer dv, final Ndx ndx ) throws IOException{ Requirements req = new Requirements( AccessMode.READ ) .setRandom( true ); final NDArray image = NDArrays.toRequiredArray( Ndxs.getMaskedImage( ndx ), req ); ...
public static void addDataViews( DetailViewer dv, final Ndx ndx ) throws IOException{ Requirements req = new Requirements( AccessMode.READ ) .setRandom( true ); final NDArray image = NDArrays.toRequiredArray( Ndxs.getMaskedImage( ndx ), req ); ...
diff --git a/src/paulscode/android/mupen64plusae/input/TouchController.java b/src/paulscode/android/mupen64plusae/input/TouchController.java index 27cf7163..968d1dcf 100644 --- a/src/paulscode/android/mupen64plusae/input/TouchController.java +++ b/src/paulscode/android/mupen64plusae/input/TouchController.java @@ -1,461...
false
true
private void processButtonTouch( boolean touched, int xLocation, int yLocation, long timeElapsed, int pid ) { // Determine the index of the button that was pressed int index = touched ? mTouchMap.getButtonPress( xLocation, yLocation ) : mPointerMap.get...
private void processButtonTouch( boolean touched, int xLocation, int yLocation, long timeElapsed, int pid ) { // Determine the index of the button that was pressed int index = touched ? mTouchMap.getButtonPress( xLocation, yLocation ) : mPointerMap.get...
diff --git a/2012/11/13/src/StaticBitSet.java b/2012/11/13/src/StaticBitSet.java index 459c0d6..66603b7 100644 --- a/2012/11/13/src/StaticBitSet.java +++ b/2012/11/13/src/StaticBitSet.java @@ -1,61 +1,62 @@ import java.util.Arrays; public class StaticBitSet { long[] data; public StaticBitSet(int sizeinb...
true
true
public int nextSetBit(int i) { int x = i / 64; long w = data[x]; w >>>= (i % 64); if (w != 0) { return i + Long.numberOfTrailingZeros(w); } ++x; for (; x < data.length; ++x) { if (data[x] != 0) { return x * 64 + Long.numberOfTrailingZeros(data[x]); } } ret...
public int nextSetBit(int i) { int x = i / 64; if(x>=data.length) return -1; long w = data[x]; w >>>= (i % 64); if (w != 0) { return i + Long.numberOfTrailingZeros(w); } ++x; for (; x < data.length; ++x) { if (data[x] != 0) { return x * 64 + Long.numberOfTrailingZer...
diff --git a/src/main/java/de/cinovo/q/query/type/impl/TypeSymbol.java b/src/main/java/de/cinovo/q/query/type/impl/TypeSymbol.java index 2c17d14..3641f9c 100644 --- a/src/main/java/de/cinovo/q/query/type/impl/TypeSymbol.java +++ b/src/main/java/de/cinovo/q/query/type/impl/TypeSymbol.java @@ -1,60 +1,60 @@ // ---------...
true
true
public ValueFactory<String, Type<String>> geValueFactory() { return new ValueFactory<String, Type<String>>() { @Override public Value<String, ? extends Type<String>> create(final String value) { return SymbolValue.from(value); } @Override public Value<String, ? extends Type<String>> fromQ(...
public ValueFactory<String, Type<String>> geValueFactory() { return new ValueFactory<String, Type<String>>() { @Override public Value<String, ? extends Type<String>> create(final String value) { return SymbolValue.from(value); } @Override public Value<String, ? extends Type<String>> fromQ(...
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/CommonViewerAdvisor.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/CommonViewerAdvisor.java index df9131b36..97c1f4a96 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/CommonVi...
true
true
public CommonViewerAdvisor(Composite parent, ISynchronizePageConfiguration configuration) { super(configuration); final CommonViewer viewer = CommonViewerAdvisor.createViewer(parent, configuration, this); TeamUI.getTeamContentProviderManager().addPropertyChangeListener(this); configuration.addPropertyChangeLis...
public CommonViewerAdvisor(Composite parent, ISynchronizePageConfiguration configuration) { super(configuration); final CommonViewer viewer = CommonViewerAdvisor.createViewer(parent, configuration, this); TeamUI.getTeamContentProviderManager().addPropertyChangeListener(this); configuration.addPropertyChangeLis...
diff --git a/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java b/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java index c95d8475d6..ef656d53be 100644 --- a/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.j...
false
true
protected void injectLdifs( DirectoryService service, InheritableSettings settings ) { List<String> ldifs = new ArrayList<String>(); List<String> ldifFiles = new ArrayList<String>(); // First inject the LDIF files if any ldifFiles = settings.getLdifFiles( ldifFiles ); ...
protected void injectLdifs( DirectoryService service, InheritableSettings settings ) { List<String> ldifs = new ArrayList<String>(); List<String> ldifFiles = new ArrayList<String>(); // First inject the LDIF files if any ldifFiles = settings.getLdifFiles( ldifFiles ); ...
diff --git a/plugins/sonar-reviews-plugin/src/test/java/org/sonar/plugins/reviews/jira/JiraLinkReviewActionTest.java b/plugins/sonar-reviews-plugin/src/test/java/org/sonar/plugins/reviews/jira/JiraLinkReviewActionTest.java index eeade69d6a..b73832cc59 100644 --- a/plugins/sonar-reviews-plugin/src/test/java/org/sonar/pl...
true
true
public void shouldExecute() throws Exception { ReviewContext reviewContext = ReviewContextTestUtils.createReviewContext("review={id=45}; user={login=paul}; params={comment.text=Hello world}"); action.execute(reviewContext); verify(reviewDao).findById(45L); verify(userFinder).findByLogin("paul"); ...
public void shouldExecute() throws Exception { ReviewContext reviewContext = ReviewContextTestUtils.createReviewContext("review={id=45}; user={login=paul}; params={comment.text=Hello world}"); action.execute(reviewContext); verify(reviewDao).findById(45L); verify(userFinder).findByLogin("paul"); ...
diff --git a/src/java/org/apache/fop/fo/expr/NamedColorFunction.java b/src/java/org/apache/fop/fo/expr/NamedColorFunction.java index 2bceec8dc..53b9effdb 100644 --- a/src/java/org/apache/fop/fo/expr/NamedColorFunction.java +++ b/src/java/org/apache/fop/fo/expr/NamedColorFunction.java @@ -1,112 +1,111 @@ /* * License...
false
true
public Property eval(Property[] args, PropertyInfo pInfo) throws PropertyException { // Map color profile NCNAME to src from declarations/color-profile element String colorProfileName = args[3].getString(); String colorName = args[4].getString(); Declaration...
public Property eval(Property[] args, PropertyInfo pInfo) throws PropertyException { // Map color profile NCNAME to src from declarations/color-profile element String colorProfileName = args[3].getString(); String colorName = args[4].getString(); Declaration...
diff --git a/src/com/evervolv/EVParts/UiOptions.java b/src/com/evervolv/EVParts/UiOptions.java index 5ea5c24..cddcc07 100644 --- a/src/com/evervolv/EVParts/UiOptions.java +++ b/src/com/evervolv/EVParts/UiOptions.java @@ -1,89 +1,89 @@ package com.evervolv.EVParts; import com.evervolv.EVParts.R; import com.evervo...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.ui_options); PreferenceScreen prefSet = getPreferenceScreen(); mUseScreenOnAnim = (CheckBoxPreference)prefSet.findPreference(USE_SCREENON_ANIM); mUseScreenOnAnim.setChecked(Settings.Sys...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.ui_options); PreferenceScreen prefSet = getPreferenceScreen(); mUseScreenOnAnim = (CheckBoxPreference)prefSet.findPreference(USE_SCREENON_ANIM); mUseScreenOnAnim.setChecked(Settings.Sys...
diff --git a/beam-gpf-common/src/main/java/org/esa/beam/gpf/common/mosaic/ui/MosaicFormModel.java b/beam-gpf-common/src/main/java/org/esa/beam/gpf/common/mosaic/ui/MosaicFormModel.java index 5c0c56c27..36ae058d2 100644 --- a/beam-gpf-common/src/main/java/org/esa/beam/gpf/common/mosaic/ui/MosaicFormModel.java +++ b/beam...
false
true
public Product getReferenceProduct() throws IOException { if (container.getValue(PROPERTY_SOURCE_PRODUCT_FILES) != null) { final File[] files = (File[]) container.getValue(PROPERTY_SOURCE_PRODUCT_FILES); if (files.length > 0) { try { if (!files[0]....
public Product getReferenceProduct() throws IOException { if (container.getValue(PROPERTY_SOURCE_PRODUCT_FILES) != null) { final File[] files = (File[]) container.getValue(PROPERTY_SOURCE_PRODUCT_FILES); if (files.length > 0) { try { if (!files[0]....
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java index ff723e06f..d68ca5069 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/inter...
true
true
protected void createOptionsGroup(Composite control) { GridLayout sashFormLayout = new GridLayout(); sashFormLayout.numColumns = 4; sashFormLayout.marginHeight = 5; sashFormLayout.marginWidth = 5; sashFormLayout.horizontalSpacing = 5; final Composite composite = new Composite(control, SWT.NONE); composi...
protected void createOptionsGroup(Composite control) { GridLayout sashFormLayout = new GridLayout(); sashFormLayout.numColumns = 4; sashFormLayout.marginHeight = 5; sashFormLayout.marginWidth = 5; sashFormLayout.horizontalSpacing = 5; final Composite composite = new Composite(control, SWT.NONE); composi...
diff --git a/src/org/biojava/bio/seq/db/biosql/HypersonicDBHelper.java b/src/org/biojava/bio/seq/db/biosql/HypersonicDBHelper.java index 3a5af9a5d..db1150b35 100644 --- a/src/org/biojava/bio/seq/db/biosql/HypersonicDBHelper.java +++ b/src/org/biojava/bio/seq/db/biosql/HypersonicDBHelper.java @@ -1,99 +1,99 @@ /* -*- c...
true
true
public boolean containsTable(DataSource ds, String tablename) { if (ds == null) { throw new NullPointerException("Require a datasource."); } if ((tablename == null) || (tablename.length() == 0)) { throw new IllegalArgumentException("Invalid table name given"); ...
public boolean containsTable(DataSource ds, String tablename) { if (ds == null) { throw new NullPointerException("Require a datasource."); } if ((tablename == null) || (tablename.length() == 0)) { throw new IllegalArgumentException("Invalid table name given"); ...
diff --git a/src/main/java/be/Balor/Manager/Commands/Items/Kit.java b/src/main/java/be/Balor/Manager/Commands/Items/Kit.java index 7af999f3..4399f092 100644 --- a/src/main/java/be/Balor/Manager/Commands/Items/Kit.java +++ b/src/main/java/be/Balor/Manager/Commands/Items/Kit.java @@ -1,101 +1,102 @@ /*******************...
false
true
public void execute(CommandSender sender, String... args) { // which material? Player target; if (args.length == 0) { Utils.sI18n(sender, "kitList", "list", ACHelper.getInstance().getKitList()); return; } ArrayList<ItemStack> items = ACHelper.getInstance().getKit(args[0]); if(items==null) { Util...
public void execute(CommandSender sender, String... args) { // which material? Player target; if (args.length == 0) { Utils.sI18n(sender, "kitList", "list", ACHelper.getInstance().getKitList()); return; } ArrayList<ItemStack> items = ACHelper.getInstance().getKit(args[0]); if(items.isEmpty()) { ...
diff --git a/restcomm.rcml/src/main/java/org/mobicents/servlet/sip/restcomm/interpreter/tagstrategy/GatherTagStrategy.java b/restcomm.rcml/src/main/java/org/mobicents/servlet/sip/restcomm/interpreter/tagstrategy/GatherTagStrategy.java index ee7e0b96f..530d77b6a 100644 --- a/restcomm.rcml/src/main/java/org/mobicents/ser...
true
true
@Override public void execute(final RcmlInterpreter interpreter, final RcmlInterpreterContext context, final RcmlTag tag) throws TagStrategyException { try { // Collect some digits. final List<URI> announcements = getAnnouncements(interpreter, context, tag); final Call call = context.getCall(); ...
@Override public void execute(final RcmlInterpreter interpreter, final RcmlInterpreterContext context, final RcmlTag tag) throws TagStrategyException { try { // Collect some digits. final List<URI> announcements = getAnnouncements(interpreter, context, tag); final Call call = context.getCall(); ...
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/core/services/MusicTrackRetrievalIntentService.java b/serenity-app/src/main/java/us/nineworlds/serenity/core/services/MusicTrackRetrievalIntentService.java index 3da60272..9a586aa9 100644 --- a/serenity-app/src/main/java/us/nineworlds/serenity/core/services...
true
true
protected void createVideoContent(MediaContainer mc) { String baseUrl = factory.baseURL(); List<Track> tracks = mc.getTracks(); String mediaTagId = Long.valueOf(mc.getMediaTagVersion()).toString(); for (Track track : tracks) { AudioTrackContentInfo mpi = new AudioTrackContentInfo(); mpi.setMediaTagIdenti...
protected void createVideoContent(MediaContainer mc) { String baseUrl = factory.baseURL(); List<Track> tracks = mc.getTracks(); String mediaTagId = Long.valueOf(mc.getMediaTagVersion()).toString(); for (Track track : tracks) { AudioTrackContentInfo mpi = new AudioTrackContentInfo(); mpi.setMediaTagIdenti...
diff --git a/src/org/irmacard/web/restapi/resources/VerificationProtocolResource.java b/src/org/irmacard/web/restapi/resources/VerificationProtocolResource.java index 868c5d1..e9567d7 100644 --- a/src/org/irmacard/web/restapi/resources/VerificationProtocolResource.java +++ b/src/org/irmacard/web/restapi/resources/Verif...
true
true
public String step1(int crednr, String value, String verificationId) { Gson gson = new GsonBuilder(). setPrettyPrinting(). registerTypeAdapter(IResponseAPDU.class, new ResponseAPDUDeserializer()). create(); // Get the nonce based on the id @SuppressWarnings("unchecked") Map<String ,BigInteger> n...
public String step1(int crednr, String value, String verificationId) { Gson gson = new GsonBuilder(). setPrettyPrinting(). registerTypeAdapter(IResponseAPDU.class, new ResponseAPDUDeserializer()). create(); // Get the nonce based on the id @SuppressWarnings("unchecked") Map<String ,BigInteger> n...
diff --git a/org.emftext.sdk.ui/src/org/emftext/sdk/ui/actions/GenerateAllAction.java b/org.emftext.sdk.ui/src/org/emftext/sdk/ui/actions/GenerateAllAction.java index 0114b0bfd..cc7f2edee 100644 --- a/org.emftext.sdk.ui/src/org/emftext/sdk/ui/actions/GenerateAllAction.java +++ b/org.emftext.sdk.ui/src/org/emftext/sdk/u...
true
true
private void process(IResource resource) throws CoreException { if (resource instanceof IFile) { final IFile file = (IFile) resource; String fileExtension = file.getFileExtension(); Job job = null; if (fileExtension.equals(new CsMetaInformation().getSyntaxName())) { job = new GenerateResourcePluginsJ...
private void process(IResource resource) throws CoreException { if (resource instanceof IFile) { final IFile file = (IFile) resource; String fileExtension = file.getFileExtension(); Job job = null; if (fileExtension == null) { return; } if (fileExtension.equals(new CsMetaInformation().getSyntax...
diff --git a/lenskit-slopeone/src/main/java/org/grouplens/lenskit/slopeone/SlopeOneRatingPredictor.java b/lenskit-slopeone/src/main/java/org/grouplens/lenskit/slopeone/SlopeOneRatingPredictor.java index b40f68b45..efd8e95a4 100644 --- a/lenskit-slopeone/src/main/java/org/grouplens/lenskit/slopeone/SlopeOneRatingPredict...
true
true
public void score(@Nonnull UserHistory<? extends Event> history, @Nonnull MutableSparseVector scores) { SparseVector user = RatingVectorUserHistorySummarizer.makeRatingVector(history); int nUnpred = 0; for (VectorEntry e: scores.fast(VectorEntry.State.EITHER)) { ...
public void score(@Nonnull UserHistory<? extends Event> history, @Nonnull MutableSparseVector scores) { SparseVector user = RatingVectorUserHistorySummarizer.makeRatingVector(history); int nUnpred = 0; for (VectorEntry e: scores.fast(VectorEntry.State.EITHER)) { ...
diff --git a/loci/visbio/MacAdapter.java b/loci/visbio/MacAdapter.java index 6033a0b61..10b30915d 100644 --- a/loci/visbio/MacAdapter.java +++ b/loci/visbio/MacAdapter.java @@ -1,97 +1,97 @@ // // MacAdapter.java // /* VisBio application for visualization of multidimensional biological image data. Copyright (C)...
true
true
public void handleAbout(ApplicationEvent evt) { HelpManager hm = (HelpManager) bio.getManager(HelpManager.class); if (hm == null) evt.setHandled(false); else { evt.setHandled(true); hm.helpShow("About"); } }
public void handleAbout(ApplicationEvent evt) { HelpManager hm = (HelpManager) bio.getManager(HelpManager.class); if (hm == null) evt.setHandled(false); else { evt.setHandled(true); hm.helpAbout(); } }
diff --git a/src/de/quadrillenschule/liquidroid/model/Initiativen.java b/src/de/quadrillenschule/liquidroid/model/Initiativen.java index b894b7f..e0904bc 100644 --- a/src/de/quadrillenschule/liquidroid/model/Initiativen.java +++ b/src/de/quadrillenschule/liquidroid/model/Initiativen.java @@ -1,176 +1,180 @@ /* * To ...
true
true
public void setSelectedIssue(int issueid, boolean value) { String selectedIssuesString = instancePrefs.getString("selectedissues", ""); if (value) { //Shall be selected if (this.getSelectedIssues().findByIssueID(issueid).size() == 0) { //is not selected ...
public void setSelectedIssue(int issueid, boolean value) { String selectedIssuesString = instancePrefs.getString("selectedissues", ""); if (value) { //Shall be selected if (this.getSelectedIssues().findByIssueID(issueid).size() == 0) { //is not selected ...
diff --git a/server-coreless/src/main/java/org/openqa/selenium/server/testgenerator/XlateHtmlSeleneseToJava.java b/server-coreless/src/main/java/org/openqa/selenium/server/testgenerator/XlateHtmlSeleneseToJava.java index 3d1c702b..ca2a3449 100644 --- a/server-coreless/src/main/java/org/openqa/selenium/server/testgenera...
false
true
private static String XlateSeleneseStatementTokens(String op, String[] tokens, String oldLine) { boolean isBoolean = isBoolean(op); String commentedSelenese = "\t\t\t// " + oldLine .replaceFirst(BEGIN_SELENESE, "") .replaceFirst(END_SELENESE, "") .replaceAll(SELENESE_TOKEN_DI...
private static String XlateSeleneseStatementTokens(String op, String[] tokens, String oldLine) { boolean isBoolean = isBoolean(op); String commentedSelenese = "\t\t\t// " + oldLine .replaceFirst(BEGIN_SELENESE, "") .replaceFirst(END_SELENESE, "") .replaceAll(SELENESE_TOKEN_DI...
diff --git a/PartManager.java b/PartManager.java index 4d38134..c2a22de 100644 --- a/PartManager.java +++ b/PartManager.java @@ -1,210 +1,210 @@ import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public class PartManager extends JPanel { private PartsClient myClient; privat...
false
true
public PartManager( PartsClient pc ){ myClient = pc; pName = new JLabel("Part Name: "); pNumber = new JLabel("Part Number: "); pInfo = new JLabel("Part Info: "); pEdit = new JLabel("Number of part to be changed/deleted: "); pEdit2 = new JLabel("Part will be changed to new part above"); tName = new JTe...
public PartManager( PartsClient pc ){ myClient = pc; pName = new JLabel("Part Name: "); pNumber = new JLabel("Part Number: "); pInfo = new JLabel("Part Info: "); pEdit = new JLabel("Number of part to be changed/deleted: "); pEdit2 = new JLabel("Part will be changed to new part above"); tName = new JTe...
diff --git a/taskmodel/taskmodel-core-view/src/de/thorstenberger/taskmodel/view/CommitAction.java b/taskmodel/taskmodel-core-view/src/de/thorstenberger/taskmodel/view/CommitAction.java index 5ca5de6..c537678 100644 --- a/taskmodel/taskmodel-core-view/src/de/thorstenberger/taskmodel/view/CommitAction.java +++ b/taskmode...
true
true
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionMessages msgs = new ActionMessages(); ActionMessages errors = new ActionMessages(); int page; long id; try { id = Long.parseLong( request.ge...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionMessages msgs = new ActionMessages(); ActionMessages errors = new ActionMessages(); int page; long id; try { id = Long.parseLong( request.ge...
diff --git a/src/nerd/tuxmobil/fahrplan/congress/EventDetailFragment.java b/src/nerd/tuxmobil/fahrplan/congress/EventDetailFragment.java index 5f7440f..c7754e1 100644 --- a/src/nerd/tuxmobil/fahrplan/congress/EventDetailFragment.java +++ b/src/nerd/tuxmobil/fahrplan/congress/EventDetailFragment.java @@ -1,288 +1,289 @@...
true
true
public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); if (hasArguments) { boldCondensed = Typeface.createFromAsset(getSherlockActivity().getAssets(), "Roboto-BoldCondensed.ttf"); black = Typeface.createFromAsset(getSherlockActivity().getAss...
public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); if (hasArguments) { boldCondensed = Typeface.createFromAsset(getSherlockActivity().getAssets(), "Roboto-BoldCondensed.ttf"); black = Typeface.createFromAsset(getSherlockActivity().getAss...
diff --git a/demo-application/src/main/java/com/homenet/demo/ui/CustomBaseLayout.java b/demo-application/src/main/java/com/homenet/demo/ui/CustomBaseLayout.java index 14a828a..afdf2ba 100644 --- a/demo-application/src/main/java/com/homenet/demo/ui/CustomBaseLayout.java +++ b/demo-application/src/main/java/com/homenet/d...
true
true
public void getRootFactory(RootLayoutFactory factory) { factory.setCompositionPage(new Button("test")); InputStream is = getClass().getResourceAsStream("/img/logo.png"); factory.customizeLogo(is); CssLayout comp = new CssLayout(new Label("MenuItem")); comp.setStyleName("us-me...
public void getRootFactory(RootLayoutFactory factory) { factory.setCompositionPage(new Button("test")); InputStream is = getClass().getResourceAsStream("/img/logo.png"); factory.customizeLogo(is); CssLayout comp = new CssLayout(new Label("MenuItem")); comp.setStyleName("us-me...
diff --git a/jabox-standalone/src/main/java/org/jabox/standalone/Start.java b/jabox-standalone/src/main/java/org/jabox/standalone/Start.java index 8fdba70b..12bb2674 100644 --- a/jabox-standalone/src/main/java/org/jabox/standalone/Start.java +++ b/jabox-standalone/src/main/java/org/jabox/standalone/Start.java @@ -1,182...
true
true
public static void startEmbeddedJetty(final boolean startJabox) throws MalformedURLException { // (1) Optional step to install the container from a URL pointing to its // distribution Installer installer; installer = new ZipURLInstaller( new URL( "http://archive.apache.org/dist/tomcat/tomcat-6/v6....
public static void startEmbeddedJetty(final boolean startJabox) throws MalformedURLException { // (1) Optional step to install the container from a URL pointing to its // distribution Installer installer; installer = new ZipURLInstaller( new URL( "http://archive.apache.org/dist/tomcat/tomcat-6/v6....
diff --git a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/AptVerifier.java b/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/AptVerifier.java index 0eefef9..2ec2130 100644 --- a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/AptVerifier.java +++ b/do...
false
true
public void verify( String file ) throws Exception { HtmlPage page = htmlPage( file ); assertNotNull( page ); HtmlElement element = page.getHtmlElementById( "contentBox" ); assertNotNull( element ); HtmlDivision division = (HtmlDivision) element; asse...
public void verify( String file ) throws Exception { HtmlPage page = htmlPage( file ); assertNotNull( page ); HtmlElement element = page.getHtmlElementById( "contentBox" ); assertNotNull( element ); HtmlDivision division = (HtmlDivision) element; asse...
diff --git a/integration/src/main/java/com/quartercode/quarterbukkit/QuarterBukkitIntegration.java b/integration/src/main/java/com/quartercode/quarterbukkit/QuarterBukkitIntegration.java index 2fcca0c..56b0d01 100644 --- a/integration/src/main/java/com/quartercode/quarterbukkit/QuarterBukkitIntegration.java +++ b/integ...
true
true
public static boolean integrate(final Plugin plugin) { if (new File("plugins/QuarterBukkit_extract").exists()) { deleteRecursive(new File("plugins/QuarterBukkit_extract")); } final File installConfigFile = new File("plugins/QuarterBukkit", "install.yml"); try { ...
public static boolean integrate(final Plugin plugin) { if (new File("plugins/QuarterBukkit_extract").exists()) { deleteRecursive(new File("plugins/QuarterBukkit_extract")); } final File installConfigFile = new File("plugins/QuarterBukkit", "install.yml"); try { ...
diff --git a/overthere/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/JdkHttpConnector.java b/overthere/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/JdkHttpConnector.java index 5bbdd17..e48b1cf 100644 --- a/overthere/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/JdkHttpConnector.j...
false
true
public Document sendMessage(Document requestDocument, SoapAction soapAction) { Document responseDocument = null; try { final URLConnection urlConnection = targetURL.openConnection(); HttpURLConnection con = (HttpURLConnection) urlConnection; con.setDoInput(true); con.setDoOutput(true); con.setReque...
public Document sendMessage(Document requestDocument, SoapAction soapAction) { Document responseDocument = null; try { final URLConnection urlConnection = targetURL.openConnection(); HttpURLConnection con = (HttpURLConnection) urlConnection; con.setDoInput(true); con.setDoOutput(true); con.setReque...
diff --git a/eclipse/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/views/ViolationRuleNameField.java b/eclipse/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/views/ViolationRuleNameField.java index d06f729..cbf6030 100644 --- a/eclipse/org.sonar.ide.eclipse/src/org/sonar/ide/eclipse/views/ViolationRuleNameField.java...
true
true
public String getValue(MarkerItem item) { return item.getMarker().getAttribute("rulename", ""); }
public String getValue(MarkerItem item) { if (item == null || item.getMarker() == null) { return null; } return item.getMarker().getAttribute("rulename", ""); }
diff --git a/plugins/org.bigraph.model/src/org/bigraph/model/loaders/EditXMLLoader.java b/plugins/org.bigraph.model/src/org/bigraph/model/loaders/EditXMLLoader.java index 58c787e3..9bea25b2 100644 --- a/plugins/org.bigraph.model/src/org/bigraph/model/loaders/EditXMLLoader.java +++ b/plugins/org.bigraph.model/src/org/bi...
false
true
public Edit makeObject(Element el) throws LoadFailedException { cycleCheck(); String replacement = getAttributeNS(el, EDIT, "src"); if (replacement != null) return loadRelative(replacement, Edit.class, new EditXMLLoader(this)); Edit ed = new Edit(); int index = 0; for (Element i : forNodeLis...
public Edit makeObject(Element el) throws LoadFailedException { cycleCheck(); String replacement = getAttributeNS(el, EDIT, "src"); if (replacement != null) return loadRelative(replacement, Edit.class, new EditXMLLoader(this)); Edit ed = new Edit(); int index = 0; for (Element i : forNodeLis...
diff --git a/src/Extensions/org/objectweb/proactive/extensions/masterworker/core/AOWorkerManager.java b/src/Extensions/org/objectweb/proactive/extensions/masterworker/core/AOWorkerManager.java index 5777d84eb..ddb1d8129 100644 --- a/src/Extensions/org/objectweb/proactive/extensions/masterworker/core/AOWorkerManager.jav...
true
true
public BooleanWrapper terminate(final boolean freeResources) { isTerminated = true; if (logger.isDebugEnabled()) { logger.debug("Terminating WorkerManager..."); } try { // we shutdown the thread pool, no new thread will be accepted threadPool.shu...
public BooleanWrapper terminate(final boolean freeResources) { isTerminated = true; if (logger.isDebugEnabled()) { logger.debug("Terminating WorkerManager..."); } try { // we shutdown the thread pool, no new thread will be accepted threadPool.shu...
diff --git a/src/org/ssgwt/client/ui/form/ComplexInputForm.java b/src/org/ssgwt/client/ui/form/ComplexInputForm.java index b4c7966..6190f54 100644 --- a/src/org/ssgwt/client/ui/form/ComplexInputForm.java +++ b/src/org/ssgwt/client/ui/form/ComplexInputForm.java @@ -1,583 +1,583 @@ package org.ssgwt.client.ui.form; i...
true
true
public void onComplexInputFormRemove(ComplexInputFormRemoveEvent event) { complexInputFormRemoveEvent = event; ComplexInputFormConfirmationEvent.fire(true, this, new AsyncCallback<T>() { /** * The onfailure method that will not do anything * * @aut...
public void onComplexInputFormRemove(ComplexInputFormRemoveEvent event) { complexInputFormRemoveEvent = event; ComplexInputFormConfirmationEvent.fire(true, this, new AsyncCallback<T>() { /** * The onfailure method that will not do anything * * @aut...
diff --git a/trunk/crux-dev/src/main/java/org/cruxframework/crux/core/rebind/rest/JSonSerializerProxyCreator.java b/trunk/crux-dev/src/main/java/org/cruxframework/crux/core/rebind/rest/JSonSerializerProxyCreator.java index 4a9ab92bb..4f2905c1c 100644 --- a/trunk/crux-dev/src/main/java/org/cruxframework/crux/core/rebind...
false
true
private void generateDecodeStringForCustomType(SourcePrinter srcWriter, JClassType objectType, String jsonValueVar, String resultObjectVar, String resultSourceName) { JsonSubTypes jsonSubTypesClass = objectType.getAnnotation(JsonSubTypes.class); boolean hasJsonSubTypes = jsonSubTypesClass != null && jsonSubTypesC...
private void generateDecodeStringForCustomType(SourcePrinter srcWriter, JClassType objectType, String jsonValueVar, String resultObjectVar, String resultSourceName) { JsonSubTypes jsonSubTypesClass = objectType.getAnnotation(JsonSubTypes.class); boolean hasJsonSubTypes = jsonSubTypesClass != null && jsonSubTypesC...
diff --git a/src/main/java/net/pms/encoders/VLCVideo.java b/src/main/java/net/pms/encoders/VLCVideo.java index 8a090dab4..c450b474e 100644 --- a/src/main/java/net/pms/encoders/VLCVideo.java +++ b/src/main/java/net/pms/encoders/VLCVideo.java @@ -1,512 +1,512 @@ /* * PS3 Media Server, for streaming any medias to your ...
true
true
public ProcessWrapper launchTranscode(String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException { boolean isWindows = Platform.isWindows(); // Make sure we can play this CodecConfig config = genConfig(params.mediaRenderer); PipeProcess tsPipe = new PipeProcess("VLC" + S...
public ProcessWrapper launchTranscode(String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException { boolean isWindows = Platform.isWindows(); // Make sure we can play this CodecConfig config = genConfig(params.mediaRenderer); PipeProcess tsPipe = new PipeProcess("VLC" + S...
diff --git a/src/com/gitblit/wicket/panels/TeamsPanel.java b/src/com/gitblit/wicket/panels/TeamsPanel.java index ae5a30a6..cc37c519 100644 --- a/src/com/gitblit/wicket/panels/TeamsPanel.java +++ b/src/com/gitblit/wicket/panels/TeamsPanel.java @@ -1,96 +1,96 @@ /* * Copyright 2011 gitblit.com. * * Licensed under ...
true
true
public TeamsPanel(String wicketId, final boolean showAdmin) { super(wicketId); Fragment adminLinks = new Fragment("adminPanel", "adminLinks", this); adminLinks.add(new BookmarkablePageLink<Void>("newTeam", EditTeamPage.class)); add(adminLinks.setVisible(showAdmin)); final List<TeamModel> teams = GitBlit.se...
public TeamsPanel(String wicketId, final boolean showAdmin) { super(wicketId); Fragment adminLinks = new Fragment("adminPanel", "adminLinks", this); adminLinks.add(new BookmarkablePageLink<Void>("newTeam", EditTeamPage.class)); add(adminLinks.setVisible(showAdmin && GitBlit.self().supportsTeamMembershipChange...
diff --git a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java index 2c7134a44..68914639d 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java +++ b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPla...
true
true
protected TextureSequence.TextureFrame getNextTextureImpl(GL gl, boolean blocking) { if(0==moviePtr) { throw new GLException("FFMPEG native instance null"); } if(null != lastTex) { psm.setUnpackAlignment(gl, 1); // RGBA ? 4 : 1 try { ...
protected TextureSequence.TextureFrame getNextTextureImpl(GL gl, boolean blocking) { if(0==moviePtr) { throw new GLException("FFMPEG native instance null"); } if(null != lastTex) { psm.setUnpackAlignment(gl, 1); // RGBA ? 4 : 1 try { ...
diff --git a/src/com/github/nicolassmith/urlevaluator/GeneralEvaluatorTask.java b/src/com/github/nicolassmith/urlevaluator/GeneralEvaluatorTask.java index 95b9599..700eeeb 100644 --- a/src/com/github/nicolassmith/urlevaluator/GeneralEvaluatorTask.java +++ b/src/com/github/nicolassmith/urlevaluator/GeneralEvaluatorTask....
true
true
public String evaluate(String uriString) { HttpURLConnection con; int responseCode = 0; String location = null; try { // thanks to StackExchange user syb0rg con = (HttpURLConnection) (new URL(uriString).openConnection()); con.setInstanceFollowRedirects(false); con.setRequestMethod("HEAD"); con.c...
public String evaluate(String uriString) { HttpURLConnection con; int responseCode = 0; String location = null; try { // thanks to StackExchange user syb0rg con = (HttpURLConnection) (new URL(uriString).openConnection()); con.setInstanceFollowRedirects(false); con.setRequestMethod("HEAD"); // Th...