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/main/java/com/alta189/cyborg/factoids/handlers/util/VariableUtil.java b/src/main/java/com/alta189/cyborg/factoids/handlers/util/VariableUtil.java index b7e8979..41ccbc8 100644 --- a/src/main/java/com/alta189/cyborg/factoids/handlers/util/VariableUtil.java +++ b/src/main/java/com/alta189/cyborg/factoids...
true
true
public static String replaceVars(String raw, FactoidContext context) { String[] args = context.getRawArgs().split(" "); Matcher matcher = nickPattern.matcher(raw); raw = matcher.replaceAll(context.getSender().getNick()); if (context.getLocationType() == LocationType.CHANNEL_MESSAGE) { matcher = chanPatte...
public static String replaceVars(String raw, FactoidContext context) { if (context.getRawArgs() == null || context.getRawArgs().isEmpty()) return raw; String[] args = context.getRawArgs().split(" "); Matcher matcher = nickPattern.matcher(raw); raw = matcher.replaceAll(context.getSender().getNick()); if...
diff --git a/src/javaapplication/JavaApplication.java b/src/javaapplication/JavaApplication.java index bd008bf..b9ee93a 100644 --- a/src/javaapplication/JavaApplication.java +++ b/src/javaapplication/JavaApplication.java @@ -1,98 +1,98 @@ /* * To change this template, choose Tools | Templates * and open the templa...
false
true
public static void main(String[] args) { // TODO code application logic here // entity manager and a transaction EntityManagerFactory emf = Persistence.createEntityManagerFactory("JavaApplicationPU"); EntityManager em = emf.createEntityManager(); EntityTransaction tx ...
public static void main(String[] args) { // TODO code application logic here // entity manager and a transaction EntityManagerFactory emf = Persistence.createEntityManagerFactory("JavaApplicationPU"); EntityManager em = emf.createEntityManager(); EntityTransaction tx ...
diff --git a/ProcessorPlugin/src/org/gephi/io/processor/plugin/DynamicProcessor.java b/ProcessorPlugin/src/org/gephi/io/processor/plugin/DynamicProcessor.java index 20f0ad9bf..b2bfc2269 100644 --- a/ProcessorPlugin/src/org/gephi/io/processor/plugin/DynamicProcessor.java +++ b/ProcessorPlugin/src/org/gephi/io/processor/...
true
true
public void process() { ProjectController pc = Lookup.getDefault().lookup(ProjectController.class); //Workspace if (workspace == null) { workspace = pc.getCurrentWorkspace(); if (workspace == null) { //Append mode but no workspace works...
public void process() { ProjectController pc = Lookup.getDefault().lookup(ProjectController.class); //Workspace if (workspace == null) { workspace = pc.getCurrentWorkspace(); if (workspace == null) { //Append mode but no workspace works...
diff --git a/javasrc/src/org/ccnx/ccn/impl/CCNFlowControl.java b/javasrc/src/org/ccnx/ccn/impl/CCNFlowControl.java index 8c2ec889f..34ad36c5f 100644 --- a/javasrc/src/org/ccnx/ccn/impl/CCNFlowControl.java +++ b/javasrc/src/org/ccnx/ccn/impl/CCNFlowControl.java @@ -1,452 +1,453 @@ package org.ccnx.ccn.impl; import j...
true
true
private ContentObject waitForMatch(ContentObject co) throws IOException { if (_flowControlEnabled) { synchronized (_holdingArea) { Entry<UnmatchedInterest> match = null; Log.finest("Holding " + co.name()); _holdingArea.put(co.name(), co); match = _unmatchedInterests.removeMatch(co); if (match ...
private ContentObject waitForMatch(ContentObject co) throws IOException { if (_flowControlEnabled) { synchronized (_holdingArea) { Entry<UnmatchedInterest> match = null; Log.finest("Holding " + co.name()); _holdingArea.put(co.name(), co); match = _unmatchedInterests.removeMatch(co); if (match ...
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java index e299ff72..2263205e 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java +++ b/jetty-server/src/main/java/org/eclip...
false
true
public void run() { Thread current = Thread.currentThread(); synchronized(AbstractConnector.this) { if (_acceptorThread==null) return; _acceptorThread[_acceptor]=current; } ...
public void run() { Thread current = Thread.currentThread(); synchronized(AbstractConnector.this) { if (_acceptorThread==null) return; _acceptorThread[_acceptor]=current; String na...
diff --git a/core/src/main/java/org/mobicents/media/core/connections/LocalConnectionImpl.java b/core/src/main/java/org/mobicents/media/core/connections/LocalConnectionImpl.java index f0f9727e3..84ae06d52 100644 --- a/core/src/main/java/org/mobicents/media/core/connections/LocalConnectionImpl.java +++ b/core/src/main/ja...
true
true
public void setOtherParty(Connection other) throws IOException { if (!(other instanceof LocalConnectionImpl)) { throw new IOException("Not compatible"); } this.localAudioChannel.join(((LocalConnectionImpl)other).localAudioChannel); try { join(); ...
public void setOtherParty(Connection other) throws IOException { if (!(other instanceof LocalConnectionImpl)) { throw new IOException("Not compatible"); } this.localAudioChannel.join(((LocalConnectionImpl)other).localAudioChannel); try { join(); ...
diff --git a/src/main/java/com/github/ucchyocean/et/ExpTimer.java b/src/main/java/com/github/ucchyocean/et/ExpTimer.java index c1cbc0f..289f62c 100644 --- a/src/main/java/com/github/ucchyocean/et/ExpTimer.java +++ b/src/main/java/com/github/ucchyocean/et/ExpTimer.java @@ -1,355 +1,355 @@ /* * @author ucchy * @...
true
true
public boolean onCommand( CommandSender sender, Command command, String label, String[] args) { // 引数がない場合は実行しない if ( args.length <= 0 ) { return false; } if ( args[0].equalsIgnoreCase("start") ) { // タイマーをスタートする if ( runnable == nul...
public boolean onCommand( CommandSender sender, Command command, String label, String[] args) { // 引数がない場合は実行しない if ( args.length <= 0 ) { return false; } if ( args[0].equalsIgnoreCase("start") ) { // タイマーをスタートする if ( runnable == nul...
diff --git a/nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/walker/DefaultWalker.java b/nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/walker/DefaultWalker.java index 4e7fc07b8..ab664ba82 100644 --- a/nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/walker/DefaultWalker.java +++ b/nexus/nexu...
true
true
public void walk( WalkerContext context ) throws WalkerException { String fromPath = context.getResourceStoreRequest().getRequestPath(); if ( fromPath == null ) { fromPath = RepositoryItemUid.PATH_ROOT; } context.getContext().put( WALKER_WALKED_FROM_...
public void walk( WalkerContext context ) throws WalkerException { String fromPath = context.getResourceStoreRequest().getRequestPath(); if ( fromPath == null ) { fromPath = RepositoryItemUid.PATH_ROOT; } context.getContext().put( WALKER_WALKED_FROM_...
diff --git a/feeder-sns-parent/feeder-sns-twitter/src/main/java/org/komusubi/feeder/sns/twitter/Twitter4j.java b/feeder-sns-parent/feeder-sns-twitter/src/main/java/org/komusubi/feeder/sns/twitter/Twitter4j.java index 91b8b7c..b84808d 100644 --- a/feeder-sns-parent/feeder-sns-twitter/src/main/java/org/komusubi/feeder/sn...
false
true
public void tweet(Message message) { try { for (Script script: message) { logger.info("script codepoint length: {}", script.codePointCount()); if (outputConsole) { System.out.printf("tweet: %s%n", script.trimedLine()); } else { ...
public void tweet(Message message) { try { for (Script script: message) { if (outputConsole) { System.out.printf("tweet: %s%n", script.trimedLine()); } else { StatusUpdate status = new StatusUpdate(script.trimedLine()); ...
diff --git a/src/btwmod/protectedzones/mod_ProtectedZones.java b/src/btwmod/protectedzones/mod_ProtectedZones.java index 55b20ae..4e3c3fb 100644 --- a/src/btwmod/protectedzones/mod_ProtectedZones.java +++ b/src/btwmod/protectedzones/mod_ProtectedZones.java @@ -1,489 +1,490 @@ package btwmod.protectedzones; import j...
true
true
protected boolean isProtectedBlock(APIEvent event, ACTION action, EntityPlayer player, Block block, World world, int x, int y, int z) { if (!isProtectedBlockType(action, block)) return false; if (player != null && isPlayerGloballyAllowed(player.username)) return true; List<Area<Zone>> areas = zonesBy...
protected boolean isProtectedBlock(APIEvent event, ACTION action, EntityPlayer player, Block block, World world, int x, int y, int z) { if (!isProtectedBlockType(action, block)) return false; if (player != null && isPlayerGloballyAllowed(player.username)) return true; List<Area<Zone>> areas = zonesBy...
diff --git a/android/src/com/google/zxing/client/android/wifi/WifiActivity.java b/android/src/com/google/zxing/client/android/wifi/WifiActivity.java index 56488098..0654d868 100644 --- a/android/src/com/google/zxing/client/android/wifi/WifiActivity.java +++ b/android/src/com/google/zxing/client/android/wifi/WifiActivit...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); if (intent == null || !intent.getAction().equals(Intents.WifiConnect.ACTION)) { finish(); return; } String ssid = intent.getStringExtra(Intents.WifiConnect.SSID); ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); if (intent == null || !intent.getAction().equals(Intents.WifiConnect.ACTION)) { finish(); return; } String ssid = intent.getStringExtra(Intents.WifiConnect.SSID); ...
diff --git a/public/java/test/org/broadinstitute/sting/gatk/walkers/recalibration/RecalibrationWalkersPerformanceTest.java b/public/java/test/org/broadinstitute/sting/gatk/walkers/recalibration/RecalibrationWalkersPerformanceTest.java index 08b9e0431..f89b80ead 100755 --- a/public/java/test/org/broadinstitute/sting/gat...
true
true
private void testCountCovariatesWholeGenomeRunner(String moreArgs) { WalkerTestSpec spec = new WalkerTestSpec( "-R " + hg18Reference + " -T CountCovariates" + " -I " + evaluationDataLocation + "NA12878.GAII.chr1.50MB.bam" + ...
private void testCountCovariatesWholeGenomeRunner(String moreArgs) { WalkerTestSpec spec = new WalkerTestSpec( "-R " + hg18Reference + " -T CountCovariates" + " -I " + evaluationDataLocation + "NA12878.GAII.chr1.50MB.bam" + ...
diff --git a/src/au/com/addstar/truehardcore/CommandTH.java b/src/au/com/addstar/truehardcore/CommandTH.java index 55cd283..a257ddd 100644 --- a/src/au/com/addstar/truehardcore/CommandTH.java +++ b/src/au/com/addstar/truehardcore/CommandTH.java @@ -1,348 +1,348 @@ package au.com.addstar.truehardcore; /* * TrueHardco...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String action = ""; if (args.length > 0) { action = args[0].toUpperCase(); } if (action.equals("PLAY")) { if (sender instanceof Player) { if (!Util.RequirePermission((Player) sender, "truehardcore.use")...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String action = ""; if (args.length > 0) { action = args[0].toUpperCase(); } if (action.equals("PLAY")) { if (sender instanceof Player) { if (!Util.RequirePermission((Player) sender, "truehardcore.use")...
diff --git a/src/com/modcrafting/diablodrops/listeners/TomeListener.java b/src/com/modcrafting/diablodrops/listeners/TomeListener.java index d15b0ef..8890a4e 100644 --- a/src/com/modcrafting/diablodrops/listeners/TomeListener.java +++ b/src/com/modcrafting/diablodrops/listeners/TomeListener.java @@ -1,129 +1,129 @@ pa...
true
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/gsf-action/src/main/java/com/fatwire/gst/foundation/include/IncludeTemplate.java b/gsf-action/src/main/java/com/fatwire/gst/foundation/include/IncludeTemplate.java index 1d7e1f1a..a9dd44f4 100644 --- a/gsf-action/src/main/java/com/fatwire/gst/foundation/include/IncludeTemplate.java +++ b/gsf-action/src/mai...
true
true
public IncludeTemplate(final ICS ics, final AssetId asset, final String tname) { this.ics = ics; tag = new CallTemplate(); tag.setTname(tname); final String eid = ics.GetVar("eid"); if (eid != null) { tag.setTid(eid); tag.setTtype(Type.CSElement); ...
public IncludeTemplate(final ICS ics, final AssetId asset, final String tname) { this.ics = ics; tag = new CallTemplate(); tag.setTname(tname); final String eid = ics.GetVar("eid"); if (eid != null) { tag.setTid(eid); tag.setTtype(Type.CSElement); ...
diff --git a/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java b/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java index 714ae685e..666f03027 100644 --- a/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java +++ b/juddi-core/src/main/java/org...
true
true
public UddiEntityPublisher getEntityPublisher(EntityManager em, String authInfo) throws DispositionReportFaultMessage { if (authInfo == null || authInfo.length() == 0) throw new AuthTokenRequiredException(new ErrorMessage("errors.auth.AuthRequired")); org.apache.juddi.model.AuthToken modelAuthToken = em.f...
public UddiEntityPublisher getEntityPublisher(EntityManager em, String authInfo) throws DispositionReportFaultMessage { if (authInfo == null || authInfo.length() == 0) throw new AuthTokenRequiredException(new ErrorMessage("errors.auth.AuthRequired")); org.apache.juddi.model.AuthToken modelAuthToken = em.f...
diff --git a/BasicGame/src/mygame/States/Scenario/Scenario.java b/BasicGame/src/mygame/States/Scenario/Scenario.java index 4882b3d..ffb2e1e 100755 --- a/BasicGame/src/mygame/States/Scenario/Scenario.java +++ b/BasicGame/src/mygame/States/Scenario/Scenario.java @@ -1,78 +1,78 @@ /* * To change this template, choose T...
true
true
public Scenario(SimpleApplication app) { this.rootNode = app.getRootNode(); this.viewPort = app.getViewPort(); this.assetManager = app.getAssetManager(); this.app = app; //Ponemos el fondo en color azul viewPort.setBackgroundColor(backgroundColor); //Cargamos...
public Scenario(SimpleApplication app) { this.rootNode = app.getRootNode(); this.viewPort = app.getViewPort(); this.assetManager = app.getAssetManager(); this.app = app; //Ponemos el fondo en color azul viewPort.setBackgroundColor(backgroundColor); //Cargamos...
diff --git a/org.emftext.test/src/org/emftext/test/bug674/Bug674Test.java b/org.emftext.test/src/org/emftext/test/bug674/Bug674Test.java index d1a077f43..62e49573f 100644 --- a/org.emftext.test/src/org/emftext/test/bug674/Bug674Test.java +++ b/org.emftext.test/src/org/emftext/test/bug674/Bug674Test.java @@ -1,58 +1,58 ...
true
true
public void testBug674() { final String filename = "YggdrasilComponents.cs"; final String path = "src" + File.separator + "org" + File.separator + "emftext" + File.separator + "test" + File.separator + "bug674" + File.separator; File file = new File(path + filename); ITextResource resource = new TextResourc...
public void testBug674() { final String filename = "YggdrasilComponents.cs"; final String path = "src" + File.separator + "org" + File.separator + "emftext" + File.separator + "test" + File.separator + "bug674" + File.separator; File file = new File(path + filename); ITextResource resource = new TextResourc...
diff --git a/esmska/src/esmska/gui/EditContactPanel.java b/esmska/src/esmska/gui/EditContactPanel.java index 48153ec8..62e36734 100644 --- a/esmska/src/esmska/gui/EditContactPanel.java +++ b/esmska/src/esmska/gui/EditContactPanel.java @@ -1,404 +1,404 @@ /* * EditContactPanel.java * * Created on 26. červenec 200...
false
true
private void initComponents() { nameTextField = new JTextField(); nameTextField.requestFocusInWindow(); numberTextField = new JTextField() { @Override public String getText() { String text = super.getText(); if (StringUtils.isNotEmpty(...
private void initComponents() { nameTextField = new JTextField(); nameTextField.requestFocusInWindow(); numberTextField = new JTextField() { @Override public String getText() { String text = super.getText(); if (StringUtils.isNotEmpty(...
diff --git a/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java b/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java index a2a13e381..7a5d6cbfc 100755 --- a/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java +++ b/src/net/java/sip/communicator/impl/neome...
true
true
public void run() { try { socket.setReceiveBufferSize(65535); } catch(Throwable t) { } while (!closed) { DatagramPacket p = new DatagramPacket( buffer, 0, PACKET_RECEIVE_BUFFER); try ...
public void run() { try { socket.setReceiveBufferSize(65535); } catch(Throwable t) { } while (!closed) { DatagramPacket p = new DatagramPacket( buffer, 0, PACKET_RECEIVE_BUFFER); try ...
diff --git a/web/src/main/java/org/eurekastreams/web/client/ui/common/FooterComposite.java b/web/src/main/java/org/eurekastreams/web/client/ui/common/FooterComposite.java index 487ba2242..631abeff3 100644 --- a/web/src/main/java/org/eurekastreams/web/client/ui/common/FooterComposite.java +++ b/web/src/main/java/org/eur...
true
true
public FooterComposite() { FlowPanel panel = new FlowPanel(); initWidget(panel); final FlowPanel navPanel = new FlowPanel(); EventBus.getInstance().addObserver(GotSystemSettingsResponseEvent.class, new Observer<GotSystemSettingsResponseEvent>() {...
public FooterComposite() { FlowPanel panel = new FlowPanel(); initWidget(panel); final FlowPanel navPanel = new FlowPanel(); EventBus.getInstance().addObserver(GotSystemSettingsResponseEvent.class, new Observer<GotSystemSettingsResponseEvent>() {...
diff --git a/solr/src/java/org/apache/solr/handler/component/PivotFacetHelper.java b/solr/src/java/org/apache/solr/handler/component/PivotFacetHelper.java index b47be4fe6..c00add584 100644 --- a/solr/src/java/org/apache/solr/handler/component/PivotFacetHelper.java +++ b/solr/src/java/org/apache/solr/handler/component/P...
false
true
protected List<NamedList<Object>> doPivots( NamedList<Integer> superFacets, String field, String subField, Deque<String> fnames, ResponseBuilder rb, DocSet docs, int minMatch ) throws IOException { SolrIndexSearcher searcher = rb.req.getSearcher(); // TODO: optimize to avoid converting to an external string...
protected List<NamedList<Object>> doPivots( NamedList<Integer> superFacets, String field, String subField, Deque<String> fnames, ResponseBuilder rb, DocSet docs, int minMatch ) throws IOException { SolrIndexSearcher searcher = rb.req.getSearcher(); // TODO: optimize to avoid converting to an external string...
diff --git a/src/org/subethamail/smtp/io/ReceivedHeaderStream.java b/src/org/subethamail/smtp/io/ReceivedHeaderStream.java index bee83f1..0bea8c9 100644 --- a/src/org/subethamail/smtp/io/ReceivedHeaderStream.java +++ b/src/org/subethamail/smtp/io/ReceivedHeaderStream.java @@ -1,127 +1,127 @@ /* * */ package org.s...
true
true
public ReceivedHeaderStream(InputStream in, String heloHost, InetAddress host, String whoami) { super(in); /* Looks like: Received: from iamhelo (wasabi.infohazard.org [209.237.247.14]) by mx.google.com with SMTP id 32si2669129wfa.13.2009.05.27.18.27.31; Wed, 27 May 2009 18:27:48 -0700 (PDT) */ ...
public ReceivedHeaderStream(InputStream in, String heloHost, InetAddress host, String whoami) { super(in); /* Looks like: Received: from iamhelo (wasabi.infohazard.org [209.237.247.14]) by mx.google.com with SMTP id 32si2669129wfa.13.2009.05.27.18.27.31; Wed, 27 May 2009 18:27:48 -0700 (PDT) */ ...
diff --git a/main/src/main/java/com/bloatit/web/html/pages/DemandsPage.java b/main/src/main/java/com/bloatit/web/html/pages/DemandsPage.java index 9da33a4c2..0a0ca9ae8 100644 --- a/main/src/main/java/com/bloatit/web/html/pages/DemandsPage.java +++ b/main/src/main/java/com/bloatit/web/html/pages/DemandsPage.java @@ -1,8...
true
true
private void generateContent() { final HtmlTitleBlock pageTitle = new HtmlTitleBlock(session.tr("Demands list"),2); final PageIterable<Demand> demandList = DemandManager.getDemands(); final HtmlRenderer<Demand> demandItemRenderer = new HtmlRenderer<Demand>() { UrlBuilder dema...
private void generateContent() { final HtmlTitleBlock pageTitle = new HtmlTitleBlock(session.tr("Demands list"),2); final PageIterable<Demand> demandList = DemandManager.getDemands(); final HtmlRenderer<Demand> demandItemRenderer = new HtmlRenderer<Demand>() { UrlBuilder dema...
diff --git a/src/com/bekvon/bukkit/residence/Residence.java b/src/com/bekvon/bukkit/residence/Residence.java index e1568eb..137a26e 100644 --- a/src/com/bekvon/bukkit/residence/Residence.java +++ b/src/com/bekvon/bukkit/residence/Residence.java @@ -1,1928 +1,1932 @@ /* * To change this template, choose Tools | Templ...
false
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { ResidenceCommandEvent cevent = new ResidenceCommandEvent(command.getName(),args,sender); server.getPluginManager().callEvent(cevent); if(cevent.isCancelled()) return true; if(co...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { ResidenceCommandEvent cevent = new ResidenceCommandEvent(command.getName(),args,sender); server.getPluginManager().callEvent(cevent); if(cevent.isCancelled()) return true; if(co...
diff --git a/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CheckoutProjectContinuumAction.java b/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CheckoutProjectContinuumAction.java index 5a43ef0fd..172d9698b 100644 --- a/continuum-core/src/main/java/org/apache/maven/continuum/c...
false
true
public void execute( Map context ) throws Exception { Project project = getProject( context ); int oldState = project.getState(); BuildDefinition buildDefinition = getBuildDefinition( context ); project.setState( ContinuumProjectState.CHECKING_OUT ); store.upd...
public void execute( Map context ) throws Exception { Project project = getProject( context ); int oldState = project.getState(); BuildDefinition buildDefinition = getBuildDefinition( context ); project.setState( ContinuumProjectState.CHECKING_OUT ); store.upd...
diff --git a/src/org/apache/xerces/validators/schema/identity/XPathMatcher.java b/src/org/apache/xerces/validators/schema/identity/XPathMatcher.java index 690d266a6..5634c6361 100644 --- a/src/org/apache/xerces/validators/schema/identity/XPathMatcher.java +++ b/src/org/apache/xerces/validators/schema/identity/XPathMatc...
false
true
public void startElement(QName element, XMLAttrList attributes, int handle) throws Exception { if (DEBUG_METHODS || DEBUG_METHODS2) { System.out.println("XPATH["+toString()+"]: startElement("+ "element={"+ "prefix="+fStringPoo...
public void startElement(QName element, XMLAttrList attributes, int handle) throws Exception { if (DEBUG_METHODS || DEBUG_METHODS2) { System.out.println("XPATH["+toString()+"]: startElement("+ "element={"+ "prefix="+fStringPoo...
diff --git a/hk2/class-model/src/main/java/org/glassfish/hk2/classmodel/reflect/impl/TypesImpl.java b/hk2/class-model/src/main/java/org/glassfish/hk2/classmodel/reflect/impl/TypesImpl.java index 0a8962fba..473e2ca82 100755 --- a/hk2/class-model/src/main/java/org/glassfish/hk2/classmodel/reflect/impl/TypesImpl.java +++ ...
false
true
public synchronized TypeImpl getType(int access, String name, TypeProxy parent) { Class<? extends Type> requestedType = getType(access); TypeProxy<Type> typeProxy = types.getHolder(name, requestedType); final Type type = typeProxy.get(); if (null == type) { if ((access &...
public TypeImpl getType(int access, String name, TypeProxy parent) { Class<? extends Type> requestedType = getType(access); TypeProxy<Type> typeProxy = types.getHolder(name, requestedType); synchronized(typeProxy) { final Type type = typeProxy.get(); if (null == type...
diff --git a/app/net/sparkmuse/data/twig/TwigUserDao.java b/app/net/sparkmuse/data/twig/TwigUserDao.java index f00afaa..bfa0a57 100644 --- a/app/net/sparkmuse/data/twig/TwigUserDao.java +++ b/app/net/sparkmuse/data/twig/TwigUserDao.java @@ -1,169 +1,175 @@ package net.sparkmuse.data.twig; import net.sparkmuse.data....
false
true
public UserVO findOrCreateUserBy(UserLogin login) { final UserVO userVO = helper.only(datastore.find() .type(UserVO.class) .addFilter("authProviderUserId", EQUAL, login.getAuthProviderUserId())); //user never logged in before if (null == userVO) { //see if we already created one ...
public UserVO findOrCreateUserBy(UserLogin login) { final UserVO userVO = helper.only(datastore.find() .type(UserVO.class) .addFilter("authProviderUserId", EQUAL, login.getAuthProviderUserId())); //user never logged in before if (null == userVO) { //see if we already created one ...
diff --git a/java/src/com/android/inputmethod/latin/ContactsDictionary.java b/java/src/com/android/inputmethod/latin/ContactsDictionary.java index b057cf4e..e789e63c 100644 --- a/java/src/com/android/inputmethod/latin/ContactsDictionary.java +++ b/java/src/com/android/inputmethod/latin/ContactsDictionary.java @@ -1,164...
false
true
private void addWords(Cursor cursor) { clearDictionary(); final int maxWordLength = getMaxWordLength(); try { if (cursor.moveToFirst()) { while (!cursor.isAfterLast()) { String name = cursor.getString(INDEX_NAME); if (name...
private void addWords(Cursor cursor) { clearDictionary(); final int maxWordLength = getMaxWordLength(); try { if (cursor.moveToFirst()) { while (!cursor.isAfterLast()) { String name = cursor.getString(INDEX_NAME); if (name...
diff --git a/src/main/java/com/sorcix/sirc/IrcInput.java b/src/main/java/com/sorcix/sirc/IrcInput.java index 1048582..6f5228d 100644 --- a/src/main/java/com/sorcix/sirc/IrcInput.java +++ b/src/main/java/com/sorcix/sirc/IrcInput.java @@ -1,134 +1,134 @@ /* * IrcInput.java * * This file is part of the Sorcix Java...
true
true
public void run() { String line = null; try { // wait for lines to come in while ((line = this.in.readLine()) != null) { IrcDebug.log("<<< " + line); // always respond to PING if (line.startsWith("PING ")) { this.irc.out.pong(line.substring(5)); } else { this.handleLine(line); }...
public void run() { String line = null; try { // wait for lines to come in while ((line = this.in.readLine()) != null) { IrcDebug.log("<<< " + line); // always respond to PING if (line.startsWith("PING ")) { this.irc.out.pong(line.substring(5)); } else { this.handleLine(line); }...
diff --git a/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends/PnlAbstractUniqueValue.java b/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends/PnlAbstractUniqueValue.java index 72b665f33..85d0a06cb 100644 --- a/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends...
false
true
public final AbstractRecodedLegend<U> createColouredClassification(TreeSet<String> set, ProgressMonitor pm, Color start, Color end) { U lp = legend.getFallbackParameters(); AbstractRecodedLegend<U> newRL = getEmptyAnalysis(); ...
public final AbstractRecodedLegend<U> createColouredClassification(TreeSet<String> set, ProgressMonitor pm, Color start, Color end) { U lp = legend.getFallbackParameters(); AbstractRecodedLegend<U> newRL = getEmptyAnalysis(); ...
diff --git a/coreplugins/browser/src/main/java/browser/DataEditAction.java b/coreplugins/browser/src/main/java/browser/DataEditAction.java index 9f1c6d9d0..2bc1fbfff 100644 --- a/coreplugins/browser/src/main/java/browser/DataEditAction.java +++ b/coreplugins/browser/src/main/java/browser/DataEditAction.java @@ -1,604 +...
false
true
private void handleList(final String newValueStr, final CyAttributes attrs, final String id) { // Deal with equations first: if (newValueStr != null && newValueStr.length() >= 2 && newValueStr.charAt(0) == '=') { final Equation equation = parseEquation(newValueStr, attrs, id, attrName); if (equation == null)...
private void handleList(final String newValueStr, final CyAttributes attrs, final String id) { // Deal with equations first: if (newValueStr != null && newValueStr.length() >= 2 && newValueStr.charAt(0) == '=') { final Equation equation = parseEquation(newValueStr, attrs, id, attrName); if (equation == null)...
diff --git a/src/org/jbs/happysad/UIDhelper.java b/src/org/jbs/happysad/UIDhelper.java index 0ea4d89..7dba479 100644 --- a/src/org/jbs/happysad/UIDhelper.java +++ b/src/org/jbs/happysad/UIDhelper.java @@ -1,70 +1,70 @@ package org.jbs.happysad; import android.content.SharedPreferences; import android.accounts.Ac...
true
true
public long getSetUID(SharedPreferences sp, Context ctx){ long tempID = this.getUID(); if ( tempID >=0 ){ return tempID;} final AccountManager manager = AccountManager.get(ctx); final Account[] accounts = manager.getAccounts(); if (accounts.length > 1){ //ok so we know there's at least one account b...
public long getSetUID(SharedPreferences sp, Context ctx){ long tempID = this.getUID(); if ( tempID >=0 ){ return tempID;} final AccountManager manager = AccountManager.get(ctx); final Account[] accounts = manager.getAccounts(); if (accounts.length >= 1){ //ok so we know there's at least one account ...
diff --git a/de.walware.docmlet.tex.core/src/de/walware/docmlet/tex/internal/core/builder/TexProjectBuild.java b/de.walware.docmlet.tex.core/src/de/walware/docmlet/tex/internal/core/builder/TexProjectBuild.java index 9253e51..a2761ea 100644 --- a/de.walware.docmlet.tex.core/src/de/walware/docmlet/tex/internal/core/buil...
true
true
private void processLtxFiles(final SubMonitor progress) throws CoreException { progress.setWorkRemaining(2); final LtxModelManager ltxModelManager= TexCorePlugin.getDefault().getLtxModelManager(); { final SubMonitor sub= progress.newChild(1); int subRemaining= this.removedLtxFiles.size() + this.updatedL...
private void processLtxFiles(final SubMonitor progress) throws CoreException { progress.setWorkRemaining(2); final LtxModelManager ltxModelManager= TexCorePlugin.getDefault().getLtxModelManager(); { final SubMonitor sub= progress.newChild(1); int subRemaining= this.removedLtxFiles.size() + this.updatedL...
diff --git a/Power/src/Power.java b/Power/src/Power.java index 8e2f209..8a6853c 100644 --- a/Power/src/Power.java +++ b/Power/src/Power.java @@ -1,20 +1,20 @@ // Compute integer powers of 2. class Power { public static void main(String args[]) { int e; int result; for (int i = 0; i...
true
true
public static void main(String args[]) { int e; int result; for (int i = 0; i < 10; i++) { result = i; e = i; while (e > 0) { result *= 2; e--; } System.out.println("2 to the " + i + ...
public static void main(String args[]) { int e; int result; for (int i = 0; i < 10; i++) { result = 1; e = i; while (e > 0) { result *= 2; e--; } System.out.println("2 to the " + i + ...
diff --git a/E-Adventure/src/es/eucm/eadventure/editor/gui/structurepanel/EffectsStructurePanel.java b/E-Adventure/src/es/eucm/eadventure/editor/gui/structurepanel/EffectsStructurePanel.java index 934ee694..a647d699 100644 --- a/E-Adventure/src/es/eucm/eadventure/editor/gui/structurepanel/EffectsStructurePanel.java +++...
true
true
public static Icon getEffectIcon( String name, int size ) { Icon effectIcon = null; if( name.equals( TC.get( "Effect.Activate" ) ) ) { effectIcon = new ImageIcon( getIconBasePath( size ) + "activate.png" ); } else if( name.equals( TC.get( "Effect.Deactivate" ) ) ) { ...
public static Icon getEffectIcon( String name, int size ) { Icon effectIcon = null; if( name.equals( TC.get( "Effect.Activate" ) ) ) { effectIcon = new ImageIcon( getIconBasePath( size ) + "activate.png" ); } else if( name.equals( TC.get( "Effect.Deactivate" ) ) ) { ...
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/cli/MainImpl.java b/container/openejb-core/src/main/java/org/apache/openejb/cli/MainImpl.java index cd52c5e06e..261ac733e1 100644 --- a/container/openejb-core/src/main/java/org/apache/openejb/cli/MainImpl.java +++ b/container/openejb-core/src/main/jav...
false
true
public void main(String[] args) { args = processSystemProperties(args); finder = new ResourceFinder(BASE_PATH); locale = Locale.getDefault().getLanguage(); descriptionI18n = descriptionBase + "." + locale; CommandLineParser parser = new PosixParser(); // create th...
public void main(String[] args) { args = processSystemProperties(args); finder = new ResourceFinder(BASE_PATH); locale = Locale.getDefault().getLanguage(); descriptionI18n = descriptionBase + "." + locale; CommandLineParser parser = new PosixParser(); // create th...
diff --git a/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java b/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java index 543f3b76..b50865d1 100644 --- a/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java +++ b/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java @@ -1...
true
true
public static List<Boundary> loadBoundaryFile(File boundaryFile, uk.me.parabola.imgfmt.app.Area bbox) throws IOException { log.debug("Load boundary file",boundaryFile,"within",bbox); List<Boundary> boundaryList = new ArrayList<Boundary>(); FileInputStream stream = new FileInputStream(boundaryFile); try { ...
public static List<Boundary> loadBoundaryFile(File boundaryFile, uk.me.parabola.imgfmt.app.Area bbox) throws IOException { log.debug("Load boundary file",boundaryFile,"within",bbox); List<Boundary> boundaryList = new ArrayList<Boundary>(); FileInputStream stream = new FileInputStream(boundaryFile); try { ...
diff --git a/src/main/java/org/glom/web/server/database/DetailsDBAccess.java b/src/main/java/org/glom/web/server/database/DetailsDBAccess.java index 323a78c..5b2a508 100644 --- a/src/main/java/org/glom/web/server/database/DetailsDBAccess.java +++ b/src/main/java/org/glom/web/server/database/DetailsDBAccess.java @@ -1,1...
false
true
public DataItem[] getData(TypedDataItem primaryKeyValue) { LayoutFieldVector fieldsToGet = getFieldsToShowForSQLQuery(document .get_data_layout_groups("details", tableName)); if (fieldsToGet == null || fieldsToGet.size() <= 0) { Log.warn(documentID, tableName, "Didn't find any fields to show. Returning nu...
public DataItem[] getData(TypedDataItem primaryKeyValue) { LayoutFieldVector fieldsToGet = getFieldsToShowForSQLQuery(document .get_data_layout_groups("details", tableName)); if (fieldsToGet == null || fieldsToGet.size() <= 0) { Log.warn(documentID, tableName, "Didn't find any fields to show. Returning nu...
diff --git a/web/src/main/java/org/eurekastreams/web/client/ui/pages/discover/ActiveStreamItemPanel.java b/web/src/main/java/org/eurekastreams/web/client/ui/pages/discover/ActiveStreamItemPanel.java index cf36281e9..abf1ab5aa 100644 --- a/web/src/main/java/org/eurekastreams/web/client/ui/pages/discover/ActiveStreamItem...
true
true
public ActiveStreamItemPanel(final StreamDTO inStreamDTO) { coreCss = StaticResourceBundle.INSTANCE.coreCss(); avatarPanel = new AvatarLinkPanel(inStreamDTO.getEntityType(), inStreamDTO.getUniqueId(), inStreamDTO.getId(), inStreamDTO.getAvatarId(), Size.Small); Widget mai...
public ActiveStreamItemPanel(final StreamDTO inStreamDTO) { coreCss = StaticResourceBundle.INSTANCE.coreCss(); avatarPanel = new AvatarLinkPanel(inStreamDTO.getEntityType(), inStreamDTO.getUniqueId(), inStreamDTO.getId(), inStreamDTO.getAvatarId(), Size.Small); Widget mai...
diff --git a/src/com/werebug/randomsequencegenerator/Rsg_main.java b/src/com/werebug/randomsequencegenerator/Rsg_main.java index c2d6a40..77ef225 100644 --- a/src/com/werebug/randomsequencegenerator/Rsg_main.java +++ b/src/com/werebug/randomsequencegenerator/Rsg_main.java @@ -1,248 +1,248 @@ package com.werebug.random...
true
true
public void onClick (View v) { int clicked = v.getId(); switch (clicked) { case R.id.button_create: String chars = ""; String result = ""; int selected = this.rg.getCheckedRadioButtonId(); switch (selected) { case R.id.binary_radio: ...
public void onClick (View v) { int clicked = v.getId(); switch (clicked) { case R.id.button_create: String chars = ""; String result = ""; int selected = this.rg.getCheckedRadioButtonId(); switch (selected) { case R.id.binary_radio: ...
diff --git a/preflight/src/main/java/org/apache/pdfbox/preflight/process/AcroFormValidationProcess.java b/preflight/src/main/java/org/apache/pdfbox/preflight/process/AcroFormValidationProcess.java index 143cc7bb4..b7021cd43 100644 --- a/preflight/src/main/java/org/apache/pdfbox/preflight/process/AcroFormValidationProce...
true
true
protected boolean valideField(PreflightContext ctx, PDField aField) throws IOException { boolean res = true; PDFormFieldAdditionalActions aa = aField.getActions(); if (aa != null) { addValidationError(ctx, new ValidationError(ERROR_ACTION_FORBIDDEN_ADDITIONAL_ACTIONS_...
protected boolean valideField(PreflightContext ctx, PDField aField) throws IOException { boolean res = true; PDFormFieldAdditionalActions aa = aField.getActions(); if (aa != null) { addValidationError(ctx, new ValidationError(ERROR_ACTION_FORBIDDEN_ADDITIONAL_ACTIONS_...
diff --git a/src/jvm/clojure/lang/ASeq.java b/src/jvm/clojure/lang/ASeq.java index aa02aa98..0a31797c 100644 --- a/src/jvm/clojure/lang/ASeq.java +++ b/src/jvm/clojure/lang/ASeq.java @@ -1,74 +1,74 @@ /** * Copyright (c) Rich Hickey. All rights reserved. * The use and distribution terms for this software are c...
true
true
public boolean equals(Object obj){ if(!(obj instanceof Sequential)) return false; ISeq ms = ((IPersistentCollection) obj).seq(); for(ISeq s = seq(); s != null; s = s.rest(), ms = ms.rest()) { if(ms == null || !RT.equal(s.first(), ms.first())) return false; } if(ms.rest() != null) return false; retur...
public boolean equals(Object obj){ if(!(obj instanceof Sequential)) return false; ISeq ms = ((IPersistentCollection) obj).seq(); for(ISeq s = seq(); s != null; s = s.rest(), ms = ms.rest()) { if(ms == null || !RT.equal(s.first(), ms.first())) return false; } if(ms != null) return false; return true;...
diff --git a/src/main/java/edu/cshl/schatz/jnomics/manager/client/GlobusPasswordPrompter.java b/src/main/java/edu/cshl/schatz/jnomics/manager/client/GlobusPasswordPrompter.java index 13fbcee..c08b317 100644 --- a/src/main/java/edu/cshl/schatz/jnomics/manager/client/GlobusPasswordPrompter.java +++ b/src/main/java/edu/cs...
true
true
public static void getPasswordFromUser(String user, String passwd) throws Exception{ URL url = new URL(GLOBUS_API_URL); SSLContext sc = SSLContext.getInstance("SSL"); sc.init(null, trustAllCerts, new SecureRandom()); HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactor...
public static void getPasswordFromUser(String user, String passwd) throws Exception{ URL url = new URL(GLOBUS_API_URL); SSLContext sc = SSLContext.getInstance("SSL"); sc.init(null, trustAllCerts, new SecureRandom()); HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactor...
diff --git a/src/main/java/org/wikipathways/cytoscapeapp/internal/io/GpmlVizStyle.java b/src/main/java/org/wikipathways/cytoscapeapp/internal/io/GpmlVizStyle.java index 9ddf3a1..825f92f 100644 --- a/src/main/java/org/wikipathways/cytoscapeapp/internal/io/GpmlVizStyle.java +++ b/src/main/java/org/wikipathways/cytoscapea...
true
true
private static VisualStyle create(final VisualStyleFactory vizStyleFactory, final VisualMappingManager vizMapMgr) { final VisualStyle vizStyle = vizStyleFactory.createVisualStyle(vizMapMgr.getDefaultVisualStyle()); vizStyle.setTitle("WikiPathways"); vizStyle.setDefaultValue(BasicVisualLexicon.NODE_FILL_CO...
private static VisualStyle create(final VisualStyleFactory vizStyleFactory, final VisualMappingManager vizMapMgr) { final VisualStyle vizStyle = vizStyleFactory.createVisualStyle(vizMapMgr.getDefaultVisualStyle()); vizStyle.setTitle("WikiPathways"); vizStyle.setDefaultValue(BasicVisualLexicon.NODE_FILL_CO...
diff --git a/src/web/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java b/src/web/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java index f8fb1967f..2415eb717 100644 --- a/src/web/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java +++ b/src/web/org/codehaus/groovy/gra...
true
true
protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent) throws BeansException { // use config file locations if available ApplicationContext grailsContext = (ApplicationContext)getServletContext().getAttribute(GRAILS_APPLICATION_CONTEXT ); GrailsApplication applic...
protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent) throws BeansException { // use config file locations if available ApplicationContext grailsContext = (ApplicationContext)getServletContext().getAttribute(GRAILS_APPLICATION_CONTEXT ); GrailsApplication applic...
diff --git a/src/main/java/org/utgenome/weaver/align/BitParallelSmithWaterman.java b/src/main/java/org/utgenome/weaver/align/BitParallelSmithWaterman.java index f1db812..b98d6c9 100755 --- a/src/main/java/org/utgenome/weaver/align/BitParallelSmithWaterman.java +++ b/src/main/java/org/utgenome/weaver/align/BitParallelSm...
true
true
public Alignment traceback(ACGTSequence ref, ACGTSequence query, SWResult bestHit) { if (bestHit == null) return null; final int N = (int) ref.textSize(); int maxRow = m - 1; int maxCol = bestHit.tailPos; StringBuilder cigar = new Str...
public Alignment traceback(ACGTSequence ref, ACGTSequence query, SWResult bestHit) { if (bestHit == null) return null; final int N = (int) ref.textSize(); int maxRow = m - 1; int maxCol = bestHit.tailPos; StringBuilder cigar = new Str...
diff --git a/flexodesktop/GUI/flexointerfacebuilder/src/main/java/org/openflexo/fib/view/widget/FIBBrowserWidget.java b/flexodesktop/GUI/flexointerfacebuilder/src/main/java/org/openflexo/fib/view/widget/FIBBrowserWidget.java index bc804342e..988cbaca7 100644 --- a/flexodesktop/GUI/flexointerfacebuilder/src/main/java/or...
false
true
public synchronized void valueChanged(TreeSelectionEvent e) { Vector<Object> oldSelection = new Vector<Object>(); oldSelection.addAll(selection); /*System.out.println("Selection: "+e); System.out.println("Paths="+e.getPaths()); for (TreePath tp : e.getPaths()) { System.out.println("> "+tp.getLastPathComp...
public synchronized void valueChanged(TreeSelectionEvent e) { Vector<Object> oldSelection = new Vector<Object>(); oldSelection.addAll(selection); /*System.out.println("Selection: "+e); System.out.println("Paths="+e.getPaths()); for (TreePath tp : e.getPaths()) { System.out.println("> "+tp.getLastPathComp...
diff --git a/fizzbuzz/src/test/java/org/bonitasoft/dojo/fizzbuzz/FizzBuzzGameTest2.java b/fizzbuzz/src/test/java/org/bonitasoft/dojo/fizzbuzz/FizzBuzzGameTest2.java index 77f1d0d..3075d0a 100644 --- a/fizzbuzz/src/test/java/org/bonitasoft/dojo/fizzbuzz/FizzBuzzGameTest2.java +++ b/fizzbuzz/src/test/java/org/bonitasoft/...
true
true
public void testPlayUntil() throws Exception { String expectedGameResult = "1 2 Fizz 4 5 6 Buzz 8 Fizz 10 11 Fizz 13 Buzz Fizz 16 Buzz Fizz 19 20 FizzBuzz 22 " + "Fizz Fizz 25 26 Buzz Fizz 29 Fizz Fizz Fizz Fizz Fizz Fizz Fizz FizzBuzz Fizz Fizz 40 41"; String gameResult = fizzBuz...
public void testPlayUntil() throws Exception { String expectedGameResult = "1 2 Fizz 4 5 Fizz Buzz 8 Fizz 10 11 Fizz Fizz Buzz Fizz 16 Buzz Fizz 19 20 FizzBuzz 22 " + "Fizz Fizz 25 26 FizzBuzz Buzz 29 Fizz Fizz Fizz Fizz Fizz FizzBuzz Fizz FizzBuzz Fizz Fizz 40 41"; String g...
diff --git a/plugins/org.bigraph.model/src/org/bigraph/model/Layoutable.java b/plugins/org.bigraph.model/src/org/bigraph/model/Layoutable.java index 2bcdd21a..ac166eff 100644 --- a/plugins/org.bigraph.model/src/org/bigraph/model/Layoutable.java +++ b/plugins/org.bigraph.model/src/org/bigraph/model/Layoutable.java @@ -1...
true
true
public void simulate(PropertyScratchpad context) { Layoutable l = getCreator(); Container c = l.getParent(context); context.<Layoutable>getModifiableList( c, Container.PROPERTY_CHILD, c.getChildren()). remove(l); context.setProperty(l, Layoutable.PROPERTY_PARENT, null); c.getBigraph(co...
public void simulate(PropertyScratchpad context) { Layoutable l = getCreator(); Container c = l.getParent(context); context.<Layoutable>getModifiableSet( c, Container.PROPERTY_CHILD, c.getChildren()). remove(l); context.setProperty(l, Layoutable.PROPERTY_PARENT, null); c.getBigraph(con...
diff --git a/com.toedter.e4.ui.workbench.renderers.javafx/src/com/toedter/e4/ui/workbench/renderers/javafx/ToolBarRenderer.java b/com.toedter.e4.ui.workbench.renderers.javafx/src/com/toedter/e4/ui/workbench/renderers/javafx/ToolBarRenderer.java index 13515bf..f826ef3 100644 --- a/com.toedter.e4.ui.workbench.renderers.j...
true
true
public void createWidget(MUIElement element, MElementContainer<MUIElement> parent) { if (!(element instanceof MToolBar)) { return; } Orientation orientation = getOrientation(element); if (orientation == Orientation.VERTICAL) { VBox toolBar = new VBox(); element.setWidget(toolBar); } // Since we u...
public void createWidget(MUIElement element, MElementContainer<MUIElement> parent) { if (!(element instanceof MToolBar)) { return; } Orientation orientation = getOrientation(element); if (orientation == Orientation.VERTICAL) { VBox toolBar = new VBox(); element.setWidget(toolBar); return; } //...
diff --git a/src/simpleserver/stream/StreamTunnel.java b/src/simpleserver/stream/StreamTunnel.java index 828a76c..383bd9b 100644 --- a/src/simpleserver/stream/StreamTunnel.java +++ b/src/simpleserver/stream/StreamTunnel.java @@ -1,1422 +1,1422 @@ /* * Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS) * ...
true
true
private void handlePacket() throws IOException { Byte packetId = in.readByte(); // System.out.println((isServerTunnel ? "server " : "client ") + // String.format("%02x", packetId)); int x; byte y; int z; byte dimension; Coordinate coordinate; switch (packetId) { case 0x00: //...
private void handlePacket() throws IOException { Byte packetId = in.readByte(); // System.out.println((isServerTunnel ? "server " : "client ") + // String.format("%02x", packetId)); int x; byte y; int z; byte dimension; Coordinate coordinate; switch (packetId) { case 0x00: //...
diff --git a/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNPropSetCommand.java b/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNPropSetCommand.java index 023111228..36963e7e7 100644 --- a/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNPropSetCommand.java +++ b/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNPropSetCommand.java @@ ...
false
true
public void run() throws SVNException { String propertyName = getSVNEnvironment().popArgument(); if (propertyName == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS); SVNErrorManager.error(err, SVNLogType.CLIENT); } if (!...
public void run() throws SVNException { String propertyName = getSVNEnvironment().popArgument(); if (propertyName == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS); SVNErrorManager.error(err, SVNLogType.CLIENT); } if (!...
diff --git a/JamJam/src/com/touchlabs/jamjam/GameModel.java b/JamJam/src/com/touchlabs/jamjam/GameModel.java index 796a85b..574bf32 100644 --- a/JamJam/src/com/touchlabs/jamjam/GameModel.java +++ b/JamJam/src/com/touchlabs/jamjam/GameModel.java @@ -1,277 +1,277 @@ package com.touchlabs.jamjam; import java.util.Arra...
true
true
public void updateModel(float timeDelta) { if(!lost){ groundTop.setXPos(timeDelta); groundMid.setXPos(timeDelta); groundBot.setXPos(timeDelta); mDront.updateDront(timeDelta); mPowerUp.updatePowerUp(timeDelta); mBg.setXPos(timeDelta); int count = listEnemyWall.size(); if(mDront.ge...
public void updateModel(float timeDelta) { if(!lost){ groundTop.setXPos(timeDelta); groundMid.setXPos(timeDelta); groundBot.setXPos(timeDelta); mDront.updateDront(timeDelta); mPowerUp.updatePowerUp(timeDelta); mBg.setXPos(timeDelta); int count = listEnemyWall.size(); if(mDront.ge...
diff --git a/core/src/main/java/dagger/internal/FailoverLoader.java b/core/src/main/java/dagger/internal/FailoverLoader.java index 52f923ee..4b14af25 100644 --- a/core/src/main/java/dagger/internal/FailoverLoader.java +++ b/core/src/main/java/dagger/internal/FailoverLoader.java @@ -1,72 +1,72 @@ /* * Copyright (C) 2...
true
true
@Override public Binding<?> getAtInjectBinding(String key, String className, ClassLoader classLoader, boolean mustHaveInjections) { try { return GeneratedAdapters.initInjectAdapter(className, classLoader); } catch (ClassNotFoundException ignored /* failover case */) { try { ...
@Override public Binding<?> getAtInjectBinding(String key, String className, ClassLoader classLoader, boolean mustHaveInjections) { try { return GeneratedAdapters.initInjectAdapter(className, classLoader); } catch (ClassNotFoundException ignored /* failover case */) { try { ...
diff --git a/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editparts/BetterLookingPresenterEditPart.java b/examples/org.eclipse.gmf.examples.eclipsecon.diagram.custom/src/org/eclipse/gmf/examples/eclipsecon/diagram/custom/editparts/BetterLookingPresen...
true
true
protected NodeFigure createNodeFigure() { // determine which figure to create - first check for default display PresenterStyle presenterStyle = (PresenterStyle)getNotationView().getStyle(StylesPackage.eINSTANCE.getPresenterStyle()); if (presenterStyle == null || presenterStyle.g...
protected NodeFigure createNodeFigure() { // determine which figure to create - first check for default display PresenterStyle presenterStyle = (PresenterStyle)getNotationView().getStyle(StylesPackage.eINSTANCE.getPresenterStyle()); if (presenterStyle == null || presenterStyle.g...
diff --git a/src/org/dita/dost/reader/MergeMapParser.java b/src/org/dita/dost/reader/MergeMapParser.java index ff4fdb4af..d51caa323 100644 --- a/src/org/dita/dost/reader/MergeMapParser.java +++ b/src/org/dita/dost/reader/MergeMapParser.java @@ -1,179 +1,180 @@ /* * This file is part of the DITA Open Toolkit project ...
true
true
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { String scopeValue = null; String formatValue = null; String classValue = null; String fileId = null; int attsLen = atts.getLength(); mapInfo.append(Constants.LESS_THAN).append(qName); for ...
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { String scopeValue = null; String formatValue = null; String classValue = null; String fileId = null; int attsLen = atts.getLength(); mapInfo.append(Constants.LESS_THAN).append(qName); classVa...
diff --git a/src/player/millitta/Millitta.java b/src/player/millitta/Millitta.java index 0f0af67..aeeb57e 100644 --- a/src/player/millitta/Millitta.java +++ b/src/player/millitta/Millitta.java @@ -1,131 +1,132 @@ package player.millitta; import algds.Player; import player.millitta.Evaluate.Evaluator; public cla...
false
true
private long getBoardLong() { // Reset board long board = 0L; int[] boardArray = getBoard(); // Speichere aktiven Spieler if (getMyColor() == BLACK) { board = 1L << BIT_PLAYER; } // Positionen der Spielfiguren for (int i = 0; i < 24; ++i)...
private long getBoardLong() { // Reset board long board = 0L; int[] boardArray = getBoard(); // Speichere aktiven Spieler if (getMyColor() == BLACK) { board = 1L << BIT_PLAYER; } // Positionen der Spielfiguren for (int i = 0; i < 24; ++i)...
diff --git a/src/java/sulfur/factories/SPageFactory.java b/src/java/sulfur/factories/SPageFactory.java index 18447b5..63123a8 100644 --- a/src/java/sulfur/factories/SPageFactory.java +++ b/src/java/sulfur/factories/SPageFactory.java @@ -1,194 +1,194 @@ /* This file is part of the Sulfur project by Ivan De Marino (htt...
true
true
public SPage createPage(String driverName, String pageName, Map<String, String> pathParams, Map<String, String> queryParams) { // Validate Driver Name if (!getConfig().getDrivers().contains(driverName)) { t...
public SPage createPage(String driverName, String pageName, Map<String, String> pathParams, Map<String, String> queryParams) { // Validate Driver Name if (!getConfig().getDrivers().contains(driverName)) { t...
diff --git a/src/ox/stackgame/stackmachine/StringStackValue.java b/src/ox/stackgame/stackmachine/StringStackValue.java index b97f90a..433e503 100644 --- a/src/ox/stackgame/stackmachine/StringStackValue.java +++ b/src/ox/stackgame/stackmachine/StringStackValue.java @@ -1,58 +1,58 @@ package ox.stackgame.stackmachine; ...
true
true
public boolean equals(Object other) { if (other instanceof StackValue<?>) { StackValue<?> otherStackValue = (StackValue<?>) other; return value.equals(otherStackValue); // TODO is this self referential? } else return false; }
public boolean equals(Object other) { if (other instanceof StackValue<?>) { StackValue<?> otherStackValue = (StackValue<?>) other; return value.equals(otherStackValue.toString()); } else return false; }
diff --git a/core/src/test/java/com/google/bitcoin/core/FakeChannelSink.java b/core/src/test/java/com/google/bitcoin/core/FakeChannelSink.java index ff3bd57..9e23a61 100644 --- a/core/src/test/java/com/google/bitcoin/core/FakeChannelSink.java +++ b/core/src/test/java/com/google/bitcoin/core/FakeChannelSink.java @@ -1,5...
true
true
public void eventSunk(ChannelPipeline pipeline, ChannelEvent e) throws Exception { if (e instanceof ChannelStateEvent) { ChannelStateEvent event = (ChannelStateEvent) e; FakeChannel channel = (FakeChannel) event.getChannel(); boolean offered = channel.events.offer(event)...
public void eventSunk(ChannelPipeline pipeline, ChannelEvent e) throws Exception { if (e instanceof ChannelStateEvent) { ChannelStateEvent event = (ChannelStateEvent) e; FakeChannel channel = (FakeChannel) event.getChannel(); boolean offered = channel.events.offer(event)...
diff --git a/src/java/fedora/server/storage/replication/DefaultDOReplicator.java b/src/java/fedora/server/storage/replication/DefaultDOReplicator.java index b72248630..93c2bac95 100755 --- a/src/java/fedora/server/storage/replication/DefaultDOReplicator.java +++ b/src/java/fedora/server/storage/replication/DefaultDORep...
true
true
private boolean updateComponents(DOReader reader) throws ReplicationException { Connection connection=null; Statement st=null; ResultSet results=null; boolean triedUpdate=false; boolean failed=false; logFinest("DefaultDOReplicator.updateComponents: Enterin...
private boolean updateComponents(DOReader reader) throws ReplicationException { Connection connection=null; Statement st=null; ResultSet results=null; boolean triedUpdate=false; boolean failed=false; logFinest("DefaultDOReplicator.updateComponents: Enterin...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java index 925d31f04..de4aaf9e4 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java @@ -1,899 +1,899 @@...
false
true
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <-- // <l@location.biome.formatted> -> Element // Returns the formatted biome name at the location. // --> if (attribute.startsWith("biome.formatted")) return new Ele...
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <-- // <l@location.biome.formatted> -> Element // Returns the formatted biome name at the location. // --> if (attribute.startsWith("biome.formatted")) return new Ele...
diff --git a/src/org/geworkbench/engine/skin/Skin.java b/src/org/geworkbench/engine/skin/Skin.java index 8a8d9976..7c72c878 100755 --- a/src/org/geworkbench/engine/skin/Skin.java +++ b/src/org/geworkbench/engine/skin/Skin.java @@ -1,870 +1,868 @@ package org.geworkbench.engine.skin; import java.awt.AWTEvent; impor...
false
true
private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); this.setIconImage(Icons.MICROARRAYS_ICON.getImage()); contentPane.setLayout(borderLayout1); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); int guiHeight = 0; int guiWi...
private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); this.setIconImage(Icons.MICROARRAYS_ICON.getImage()); contentPane.setLayout(borderLayout1); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); int guiHeight = 0; int guiWi...
diff --git a/util/src/test/java/com/ning/billing/util/dao/TestStringTemplateInheritance.java b/util/src/test/java/com/ning/billing/util/dao/TestStringTemplateInheritance.java index 1306cfeb6..df148e12e 100644 --- a/util/src/test/java/com/ning/billing/util/dao/TestStringTemplateInheritance.java +++ b/util/src/test/java/...
true
true
public void testCheckQueries() throws Exception { // From http://www.antlr.org/wiki/display/ST/ST+condensed+--+Templates+and+groups#STcondensed--Templatesandgroups-Withsupergroupfile: // there is no mechanism for automatically loading a mentioned super-group file new StringTemplateGroup(...
public void testCheckQueries() throws Exception { // From http://www.antlr.org/wiki/display/ST/ST+condensed+--+Templates+and+groups#STcondensed--Templatesandgroups-Withsupergroupfile: // there is no mechanism for automatically loading a mentioned super-group file new StringTemplateGroup(...
diff --git a/src/vooga/scroller/model/ModelInputs.java b/src/vooga/scroller/model/ModelInputs.java index f910a792..9a93adc1 100644 --- a/src/vooga/scroller/model/ModelInputs.java +++ b/src/vooga/scroller/model/ModelInputs.java @@ -1,96 +1,96 @@ package vooga.scroller.model; import javax.swing.JComponent; import ...
true
true
public void jumpInput (AlertObject alObj) { if(myPlayer.getVelocity().getRelativeMagnitude(new Vector(Sprite.UP_DIRECTION,myPlayer.getVelocity().getMagnitude())) < 0.5) { System.out.println("jump!"); myPlayer.addVector(new Vector(Sprite.UP_DIRECTION, 200)); ...
public void jumpInput (AlertObject alObj) { if(Math.abs(myPlayer.getVelocity().getComponentVector(Sprite.UP_DIRECTION).getMagnitude()) < 1) { System.out.println("jump!"); myPlayer.addVector(new Vector(Sprite.UP_DIRECTION, 200)); } }
diff --git a/genetica-libraries/src/main/java/umcg/genetica/math/matrix2/MatrixHandling.java b/genetica-libraries/src/main/java/umcg/genetica/math/matrix2/MatrixHandling.java index 9abf43c2..1710c452 100644 --- a/genetica-libraries/src/main/java/umcg/genetica/math/matrix2/MatrixHandling.java +++ b/genetica-libraries/sr...
true
true
public static DoubleMatrixDataset<String, String> CreatSubsetBasedOnColumns(umcg.genetica.math.matrix2.DoubleMatrixDataset<String, String> dataset, HashSet<String> colNames, boolean remove) { int newSize = 0; HashSet<String> removeList = new HashSet<String>(); if(remove){ ...
public static DoubleMatrixDataset<String, String> CreatSubsetBasedOnColumns(umcg.genetica.math.matrix2.DoubleMatrixDataset<String, String> dataset, HashSet<String> colNames, boolean remove) { int newSize = 0; HashSet<String> removeList = new HashSet<String>(); if(remove){ ...
diff --git a/src/main/java/com/akzia/googleapi/geocoding/Result.java b/src/main/java/com/akzia/googleapi/geocoding/Result.java index f126530..8fda2c2 100644 --- a/src/main/java/com/akzia/googleapi/geocoding/Result.java +++ b/src/main/java/com/akzia/googleapi/geocoding/Result.java @@ -1,88 +1,88 @@ package com.akzia.go...
true
true
public String getFormattedResult() { String streetAddress = null; String streetNumber = null; String city = null; for (AddressComponent component : getAddressComponents()) { if (component.getTypes().contains(Type.STREET_NUMBER)) { streetNumber = component....
public String getFormattedResult() { String streetAddress = null; String streetNumber = null; String city = null; for (AddressComponent component : getAddressComponents()) { if (component.getTypes().contains(Type.STREET_NUMBER)) { streetNumber = component....
diff --git a/src/gov/nih/ncgc/bard/search/SolrSearch.java b/src/gov/nih/ncgc/bard/search/SolrSearch.java index 3ca07d1..f4984d7 100644 --- a/src/gov/nih/ncgc/bard/search/SolrSearch.java +++ b/src/gov/nih/ncgc/bard/search/SolrSearch.java @@ -1,217 +1,217 @@ package gov.nih.ncgc.bard.search; import com.sun.jersey.api...
true
true
protected SolrQuery setFilterQueries(SolrQuery solrQuery, String filter) { if (filter == null) return solrQuery; try { List<SolrField> fields = getFieldNames(); List<String> fnames = new ArrayList<String>(); for (SolrField field : fields) fnames.add(field.getName...
protected SolrQuery setFilterQueries(SolrQuery solrQuery, String filter) { if (filter == null) return solrQuery; try { List<SolrField> fields = getFieldNames(); List<String> fnames = new ArrayList<String>(); for (SolrField field : fields) fnames.add(field.getName...
diff --git a/src/main/java/forms/ModelForm.java b/src/main/java/forms/ModelForm.java index c93b22b..c5fd963 100644 --- a/src/main/java/forms/ModelForm.java +++ b/src/main/java/forms/ModelForm.java @@ -1,91 +1,91 @@ package forms; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; ...
false
true
public String getErrorsDisplay() { StringBuilder sb = new StringBuilder("<html>"); sb.append("<h3>Input was not valid</h3>"); for ( Map.Entry<String, List<String>> e : errors.entrySet() ) { sb.append("<h4>"); sb.append(e.getKey()).append(":")...
public String getErrorsDisplay() { StringBuilder sb = new StringBuilder("<html>"); sb.append("<h3>Input was not valid</h3>"); for ( Map.Entry<String, List<String>> e : errors.entrySet() ) { sb.append("<h4>"); sb.append(e.getKey()).append(":")...
diff --git a/camel-talendjob/src/main/java/org/talend/camel/TalendProducer.java b/camel-talendjob/src/main/java/org/talend/camel/TalendProducer.java index b1adf4413..084d24522 100644 --- a/camel-talendjob/src/main/java/org/talend/camel/TalendProducer.java +++ b/camel-talendjob/src/main/java/org/talend/camel/TalendProdu...
true
true
private void invokeTalendJob(TalendJob jobInstance, String[] args, Method setExchangeMethod, Exchange exchange) { if(setExchangeMethod != null){ LOG.debug("Pass the exchange from router to Job"); ObjectHelper.invokeMethod(setExchangeMethod, jobInstance, exchange); } i...
private void invokeTalendJob(TalendJob jobInstance, String[] args, Method setExchangeMethod, Exchange exchange) { if(setExchangeMethod != null){ LOG.debug("Pass the exchange from router to Job"); ObjectHelper.invokeMethod(setExchangeMethod, jobInstance, exchange); } i...
diff --git a/src/main/java/org/jboss/as/jpa/processor/PersistenceRefProcessor.java b/src/main/java/org/jboss/as/jpa/processor/PersistenceRefProcessor.java index efbe169..9223ed2 100644 --- a/src/main/java/org/jboss/as/jpa/processor/PersistenceRefProcessor.java +++ b/src/main/java/org/jboss/as/jpa/processor/PersistenceR...
true
true
private List<BindingConfiguration> getPersistenceContextRefs(DeploymentUnit deploymentUnit, DeploymentDescriptorEnvironment environment, ClassLoader classLoader, DeploymentReflectionIndex deploymentReflectionIndex, EEModuleDescription moduleDescription, ComponentDescription componentDescription) throws DeploymentUn...
private List<BindingConfiguration> getPersistenceContextRefs(DeploymentUnit deploymentUnit, DeploymentDescriptorEnvironment environment, ClassLoader classLoader, DeploymentReflectionIndex deploymentReflectionIndex, EEModuleDescription moduleDescription, ComponentDescription componentDescription) throws DeploymentUn...
diff --git a/application/src/main/java/org/richfaces/tests/metamer/bean/RichToggleControlBean.java b/application/src/main/java/org/richfaces/tests/metamer/bean/RichToggleControlBean.java index 8c0d2c84..0f8dd470 100644 --- a/application/src/main/java/org/richfaces/tests/metamer/bean/RichToggleControlBean.java +++ b/app...
true
true
public void init() { logger = LoggerFactory.getLogger(getClass()); logger.debug("initializing bean " + getClass().getName()); attributes = Attributes.getBehaviorAttributes(ToggleControl.class, getClass()); attributes.setAttribute("forPanel", "panel1"); attributes.setAttribu...
public void init() { logger = LoggerFactory.getLogger(getClass()); logger.debug("initializing bean " + getClass().getName()); attributes = Attributes.getBehaviorAttributes(ToggleControl.class, getClass()); attributes.setAttribute("targetPanel", "panel1"); attributes.setAttr...
diff --git a/WordToGuess.java b/WordToGuess.java index 248e631..e3d5502 100644 --- a/WordToGuess.java +++ b/WordToGuess.java @@ -1,98 +1,98 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class WordToGuess here. * * @author (your name) * @ver...
false
true
private void checkForLetterInString(String alphabet){ String wordFromDB = WordList.getWord(); word = wordFromDB.toUpperCase(); System.out.println("word is "+ word); int[] alphabetPosition = new int[word.length()]; int index =0; int size = -1; i...
private void checkForLetterInString(String alphabet){ String wordFromDB = WordList.getWord(); word = wordFromDB.toUpperCase(); System.out.println("word is "+ word); int[] alphabetPosition = new int[word.length()]; int index =0; int size = -1; i...
diff --git a/eclipse/plugins/net.sf.orcc.cal.ui/src/net/sf/orcc/cal/ui/builder/ActorBuilder.java b/eclipse/plugins/net.sf.orcc.cal.ui/src/net/sf/orcc/cal/ui/builder/ActorBuilder.java index 7b0a9b0e7..438375cb2 100644 --- a/eclipse/plugins/net.sf.orcc.cal.ui/src/net/sf/orcc/cal/ui/builder/ActorBuilder.java +++ b/eclipse...
false
true
public void build(IBuildContext context, IProgressMonitor monitor) throws CoreException { // only build Orcc projects IProject project = context.getBuiltProject(); if (!project.hasNature(OrccProjectNature.NATURE_ID)) { if (project.hasNature("net.sf.orcc.ui.OrccNature")) { migrateNature(project); } e...
public void build(IBuildContext context, IProgressMonitor monitor) throws CoreException { // only build Orcc projects IProject project = context.getBuiltProject(); if (!project.hasNature(OrccProjectNature.NATURE_ID)) { if (project.hasNature("net.sf.orcc.ui.OrccNature")) { migrateNature(project); } e...
diff --git a/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java b/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java index 68dd3ee12ef..a8c31294086 100644 --- a/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java +++ b/src/main/java/org/elasticsearch/index/engine/robin/...
true
true
private void innerCreate(Create create, IndexWriter writer) throws IOException { synchronized (dirtyLock(create.uid())) { HashedBytesRef versionKey = versionKey(create.uid()); final long currentVersion; VersionValue versionValue = versionMap.get(versionKey); i...
private void innerCreate(Create create, IndexWriter writer) throws IOException { synchronized (dirtyLock(create.uid())) { HashedBytesRef versionKey = versionKey(create.uid()); final long currentVersion; VersionValue versionValue = versionMap.get(versionKey); i...
diff --git a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/product/BambooProductHandler.java b/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/product/BambooProductHandler.java index d12da512..4453b256 100644 --- a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/prod...
false
true
public void processHomeDirectory(final Product ctx, final File homeDir) throws MojoExecutionException { ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "@project-dir@", homeDir.getParent()); ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "/bamboo-home/", "/home/"); ...
public void processHomeDirectory(final Product ctx, final File homeDir) throws MojoExecutionException { ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "@project-dir@", homeDir.getParent()); ConfigFileUtils.replace(new File(homeDir, "bamboo.cfg.xml"), "/bamboo-home/", "/home/"); ...
diff --git a/src/main/java/com/celements/invoice/service/InvoiceService.java b/src/main/java/com/celements/invoice/service/InvoiceService.java index adac25b..6faf5a0 100644 --- a/src/main/java/com/celements/invoice/service/InvoiceService.java +++ b/src/main/java/com/celements/invoice/service/InvoiceService.java @@ -1,9...
false
true
private Integer getLatestInvoiceNumberFromDb() { try { List<Integer> result = query.createQuery(getLatestInvoiceNumberXWQL(), Query.XWQL ).execute(); if (!result.isEmpty()) { return result.get(0); } } catch (QueryException exp) { LOGGER.error("Failed to get latest inv...
private Integer getLatestInvoiceNumberFromDb() { try { List<String> result = query.createQuery(getLatestInvoiceNumberXWQL(), Query.XWQL ).execute(); if (!result.isEmpty()) { return Integer.parseInt(result.get(0)); } } catch (QueryException exp) { LOGGER.error("Failed...
diff --git a/src/org/newdawn/slick/Animation.java b/src/org/newdawn/slick/Animation.java index 892d323..a52ce30 100644 --- a/src/org/newdawn/slick/Animation.java +++ b/src/org/newdawn/slick/Animation.java @@ -1,240 +1,243 @@ package org.newdawn.slick; import java.util.ArrayList; import org.lwjgl.Sys; /** * ...
true
true
private void nextFrame() { if (stopped) { return; } if (frames.size() == 0) { return; } long now = getTime(); while ((now > nextChange) || (currentFrame == -1)) { currentFrame = (currentFrame + 1) % frames.size(); nextChange = (long) (nextChange + (((Frame) frames.get(currentFrame)).duration...
private void nextFrame() { if (stopped) { return; } if (frames.size() == 0) { return; } long now = getTime(); if (currentFrame == -1) { nextChange = now; } while ((now > nextChange) || (currentFrame == -1)) { currentFrame = (currentFrame + 1) % frames.size(); nextChange = (long) (next...
diff --git a/woodcock/WCConservation.java b/woodcock/WCConservation.java index 552195e..59e108d 100644 --- a/woodcock/WCConservation.java +++ b/woodcock/WCConservation.java @@ -1,188 +1,191 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package woodcock; i...
false
true
public LinkedList<Patch> optimizeCuts() { LinkedList<Patch> selectedPatches = new LinkedList<>(); String results = new String(); HashMap<Integer, Integer> xValues = new HashMap<>(); HashMap<Integer, Integer> yValues = new HashMap<>(); PriorityQueue<Integer> xOrdered = new Pri...
public LinkedList<Patch> optimizeCuts() { LinkedList<Patch> selectedPatches = new LinkedList<>(); String results = new String(); HashMap<Integer, Integer> xValues = new HashMap<>(); HashMap<Integer, Integer> yValues = new HashMap<>(); PriorityQueue<Integer> xOrdered = new Pri...
diff --git a/src/main/java/me/chaseoes/tf2/capturepoints/CapturePoint.java b/src/main/java/me/chaseoes/tf2/capturepoints/CapturePoint.java index abd6e2e..861103c 100644 --- a/src/main/java/me/chaseoes/tf2/capturepoints/CapturePoint.java +++ b/src/main/java/me/chaseoes/tf2/capturepoints/CapturePoint.java @@ -1,137 +1,13...
true
true
public void startCapturing(final GamePlayer player) { capturing = player; setStatus(CaptureStatus.CAPTURING); Game game = capturing.getGame(); game.broadcast(Localizer.getLocalizer().loadPrefixedMessage("CP-BEING-CAPTURED").replace("%id", id.toString())); task = CapturePoint...
public void startCapturing(final GamePlayer player) { capturing = player; setStatus(CaptureStatus.CAPTURING); Game game = capturing.getGame(); game.broadcast(Localizer.getLocalizer().loadPrefixedMessage("CP-BEING-CAPTURED").replace("%id", id.toString())); task = CapturePoint...
diff --git a/src/org/python/core/PyString.java b/src/org/python/core/PyString.java index a9361f01..4f73a076 100644 --- a/src/org/python/core/PyString.java +++ b/src/org/python/core/PyString.java @@ -1,3007 +1,3012 @@ /// Copyright (c) Corporation for National Research Initiatives package org.python.core; import ja...
true
true
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = unicodeCoercion; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIn...
public PyString format(PyObject args) { PyObject dict = null; this.args = args; boolean needUnicode = unicodeCoercion; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIn...
diff --git a/src/main/java/com/ning/metrics/eventtracker/ScribeCollectorFactory.java b/src/main/java/com/ning/metrics/eventtracker/ScribeCollectorFactory.java index cec7c2c..ce9ea01 100644 --- a/src/main/java/com/ning/metrics/eventtracker/ScribeCollectorFactory.java +++ b/src/main/java/com/ning/metrics/eventtracker/Scr...
true
true
ScribeCollectorFactory( String scribeHost, int scribePort, int scribeRefreshRate, String spoolDirectoryName, boolean isFlushEnabled, long flushIntervalInSeconds, String syncType, int syncBatchSize, int rateWindowSizeMinutes, long flushE...
ScribeCollectorFactory( String scribeHost, int scribePort, int scribeRefreshRate, String spoolDirectoryName, boolean isFlushEnabled, long flushIntervalInSeconds, String syncType, int syncBatchSize, int rateWindowSizeMinutes, long flushE...
diff --git a/mes-plugins/mes-plugins-orders/src/test/java/com/qcadoo/mes/orders/states/OrderStatesChangingServiceTest.java b/mes-plugins/mes-plugins-orders/src/test/java/com/qcadoo/mes/orders/states/OrderStatesChangingServiceTest.java index 4d370c4096..160644811e 100644 --- a/mes-plugins/mes-plugins-orders/src/test/jav...
true
true
public void init() { orderStatesChangingService = new OrderStatesChangingService(); orderStateListener = mock(OrderStateListener.class); listeners = mock(LinkedList.class); newOrder = mock(Entity.class); oldOrder = mock(Entity.class); listenersIterator = mock(Iterato...
public void init() { orderStatesChangingService = new OrderStatesChangingService(); orderStateListener = mock(OrderStateListener.class); listeners = mock(LinkedList.class); newOrder = mock(Entity.class); oldOrder = mock(Entity.class); listenersIterator = mock(Iterato...
diff --git a/src/ml/VisualTreeDiff.java b/src/ml/VisualTreeDiff.java index 3eb658e..ce36c0c 100644 --- a/src/ml/VisualTreeDiff.java +++ b/src/ml/VisualTreeDiff.java @@ -1,205 +1,208 @@ package ml; import java.io.File; import java.io.PrintStream; import java.util.Arrays; import java.util.BitSet; import java.util...
false
true
public static void main(String[] args) { File t1_name = new File( args[0] ); File t2_name = new File( args[1] ); LN t1 = TreeParser.parse(t1_name); LN t2 = TreeParser.parse(t2_name); final String[] t1_tips; LN[] t1_list = LN.getAsList(t1); LN[] t2_list = LN.getAsList(t2); { Set<S...
public static void main(String[] args) { File t1_name = new File( args[0] ); File t2_name = new File( args[1] ); LN t1 = TreeParser.parse(t1_name); LN t2 = TreeParser.parse(t2_name); final String[] t1_tips; LN[] t1_list = LN.getAsList(t1); LN[] t2_list = LN.getAsList(t2); { Set<S...
diff --git a/clustermate-client-ahc/src/main/java/com/fasterxml/clustermate/client/ahc/AHCContentPutter.java b/clustermate-client-ahc/src/main/java/com/fasterxml/clustermate/client/ahc/AHCContentPutter.java index 15ffeefb..40667b55 100644 --- a/clustermate-client-ahc/src/main/java/com/fasterxml/clustermate/client/ahc/A...
true
true
public CallFailure _tryPutAsync(CallConfig config, PutCallParameters params, long endOfTime, K contentId, PutContentProvider content, final long startTime, final long timeout) throws IOException, ExecutionException, InterruptedException { AHCPathBuilder path = _serv...
public CallFailure _tryPutAsync(CallConfig config, PutCallParameters params, long endOfTime, K contentId, PutContentProvider content, final long startTime, final long timeout) throws IOException, ExecutionException, InterruptedException { AHCPathBuilder path = _serv...
diff --git a/src/net/skyebook/DBActions.java b/src/net/skyebook/DBActions.java index 0559b8e..91962ec 100644 --- a/src/net/skyebook/DBActions.java +++ b/src/net/skyebook/DBActions.java @@ -1,217 +1,217 @@ /** * */ package net.skyebook; import java.sql.Connection; import java.sql.DriverManager; import java.s...
true
true
public DBActions(String user, String pass, String dbName) { try { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/"+dbName, pass, pass); statement = con.createStatement(); System.out.println("Preparing ...
public DBActions(String user, String pass, String dbName) { try { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/"+dbName, pass, pass); statement = con.createStatement(); System.out.println("Preparing ...
diff --git a/wikapidia-core/src/main/java/org/wikapidia/core/dao/ArticleDao.java b/wikapidia-core/src/main/java/org/wikapidia/core/dao/ArticleDao.java index 2fac9a80..0d727c37 100644 --- a/wikapidia-core/src/main/java/org/wikapidia/core/dao/ArticleDao.java +++ b/wikapidia-core/src/main/java/org/wikapidia/core/dao/Artic...
true
true
public Article get(int wpId) { try{ Connection conn = connect(); DSLContext context = DSL.using(conn, SQLDialect.H2); Record record = context.select().from(Tables.ARTICLE).where(Tables.ARTICLE.ID.equal(wpId)).fetchOne(); Article a = new Article( ...
public Article get(int wpId) { try{ Connection conn = connect(); DSLContext context = DSL.using(conn, SQLDialect.H2); Record record = context.select().from(Tables.ARTICLE).where(Tables.ARTICLE.ID.equal(wpId)).fetchOne(); Article a = new Article( ...
diff --git a/syncronizer/src/org/sync/GitImporter.java b/syncronizer/src/org/sync/GitImporter.java index b6f48c6..68faf07 100644 --- a/syncronizer/src/org/sync/GitImporter.java +++ b/syncronizer/src/org/sync/GitImporter.java @@ -1,364 +1,372 @@ /*************************************************************************...
false
true
public void generateFastImportStream(View view, long vcTime, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createChe...
public void generateFastImportStream(View view, long vcTime, String folderPath, String domain) { // http://techpubs.borland.com/starteam/2009/en/sdk_documentation/api/com/starbase/starteam/CheckoutManager.html // said old version (passed in /opt/StarTeamCP_2005r2/lib/starteam80.jar) "Deprecated. Use View.createChe...
diff --git a/dbproject/src/my/triviagame/xmcd/XmcdDisc.java b/dbproject/src/my/triviagame/xmcd/XmcdDisc.java index fa1cab9..e94a838 100644 --- a/dbproject/src/my/triviagame/xmcd/XmcdDisc.java +++ b/dbproject/src/my/triviagame/xmcd/XmcdDisc.java @@ -1,282 +1,282 @@ package my.triviagame.xmcd; import com.google.commo...
true
true
public static XmcdDisc fromXmcdFile(String contents, FreedbGenre freedbGenre) throws XmcdFormatException, XmcdMissingInformationException { XmcdDisc disc = new XmcdDisc(); disc.freedbGenre = freedbGenre; // Validate xmcd signature Matcher m = XmcdRegEx.SIGNATURE....
public static XmcdDisc fromXmcdFile(String contents, FreedbGenre freedbGenre) throws XmcdFormatException, XmcdMissingInformationException { XmcdDisc disc = new XmcdDisc(); disc.freedbGenre = freedbGenre; // Validate xmcd signature Matcher m = XmcdRegEx.SIGNATURE....
diff --git a/test/src/com/socialize/test/ui/integrationtest/actionbutton/LikeButtonManualTest.java b/test/src/com/socialize/test/ui/integrationtest/actionbutton/LikeButtonManualTest.java index f4f89ad1..ec976208 100644 --- a/test/src/com/socialize/test/ui/integrationtest/actionbutton/LikeButtonManualTest.java +++ b/tes...
false
true
public void testListButtonRenderAndClick() throws Throwable { TestUtils.setupSocializeOverrides(true, true); TestUtils.setUpActivityMonitor(ActionButtonActivity.class); final int likes = 69; final Like action = new Like(); action.setId(100L); final Entity entity = AndroidMock.createMock(Entity.cla...
public void testLikeButtonRenderAndClick() throws Throwable { TestUtils.setupSocializeOverrides(true, true); TestUtils.setUpActivityMonitor(ActionButtonActivity.class); final int likes = 69; final Like action = new Like(); action.setId(100L); final Entity entity = AndroidMock.createMock(Entity.cla...
diff --git a/src/main/java/com/heroku/gyoza/Main.java b/src/main/java/com/heroku/gyoza/Main.java index 200625c..2ff1e21 100644 --- a/src/main/java/com/heroku/gyoza/Main.java +++ b/src/main/java/com/heroku/gyoza/Main.java @@ -1,26 +1,24 @@ package com.heroku.gyoza; import java.io.IOException; import java.util.HashM...
false
true
public static void main(String[] args) throws IOException { final String baseUri = "http://localhost:"+(System.getenv("PORT")!=null?System.getenv("PORT"):"9998")+"/"; final Map<String, String> initParams = new HashMap<String, String>(); initParams.put("com.sun.jersey.config.property...
public static void main(String[] args) throws IOException { final String baseUri = "http://localhost:"+(System.getenv("PORT")!=null?System.getenv("PORT"):"9998")+"/"; final Map<String, String> initParams = new HashMap<String, String>(); initParams.put("com.sun.jersey.config.property...
diff --git a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAStreamBufferMgr.java b/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAStreamBufferMgr.java index 86bc0fd..001aafe 100644 --- a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAStreamBufferMgr.java +++ b/pl...
false
true
private RAStreamBuffer getBuffer( long offset ) throws IOException { // If we already have a buffer allocated for that offset, just // return it. RAStreamBuffer buffer = (RAStreamBuffer)bufferMap.get( offset ); if ( buffer != null ) return buffer; // If not, and MAX_NUMBER_OF_STREAM_BUFFER has not been ...
private RAStreamBuffer getBuffer( long offset ) throws IOException { // If we already have a buffer allocated for that offset, just // return it. Long offsetKey = new Long(offset); RAStreamBuffer buffer = (RAStreamBuffer)bufferMap.get( offsetKey ); if ( buffer != null ) return buffer; // If not, and M...
diff --git a/play-platformservices-core/src/main/java/eu/play_project/play_platformservices/PlayPlatformservices.java b/play-platformservices-core/src/main/java/eu/play_project/play_platformservices/PlayPlatformservices.java index deb200ad..2e1296af 100644 --- a/play-platformservices-core/src/main/java/eu/play_project/...
false
true
public void initComponentActivity(Body body) { if (!init) { this.logger = LoggerFactory.getLogger(this.getClass()); logger.info("Initialising {} component.", this.getClass().getSimpleName()); eleGenerator = new EleGeneratorForConstructQuery(); // Provide PublishApi as SOAP Webservice try { ...
public void initComponentActivity(Body body) { if (!init) { this.logger = LoggerFactory.getLogger(this.getClass()); logger.info("Initialising {} component.", this.getClass().getSimpleName()); eleGenerator = new EleGeneratorForConstructQuery(); /* * Provide PublishApi as SOAP Webservice ...
diff --git a/src/evolution/binPacking/Checker.java b/src/evolution/binPacking/Checker.java index 72351b3..4a13d59 100644 --- a/src/evolution/binPacking/Checker.java +++ b/src/evolution/binPacking/Checker.java @@ -1,49 +1,49 @@ package evolution.binPacking; import java.io.BufferedReader; import java.io.FileNotFound...
false
true
public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new FileReader(args[0])); double[] vahy = new double[10]; String line; while ((line = in.readLine()) != null) { Scanner lineScanner = new Scanner(line); ...
public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new FileReader(args[0])); double[] vahy = new double[10]; String line; while ((line = in.readLine()) != null) { String[] nums = line.split(" "); ...
diff --git a/src/org/eclipse/core/internal/resources/WorkManager.java b/src/org/eclipse/core/internal/resources/WorkManager.java index 9dd0edc4..83dea1de 100644 --- a/src/org/eclipse/core/internal/resources/WorkManager.java +++ b/src/org/eclipse/core/internal/resources/WorkManager.java @@ -1,278 +1,278 @@ /***********...
false
true
public void checkIn() throws CoreException { try { boolean acquired = false; while (!acquired) { try { acquired = getWorkspaceLock().acquire(); //above call should block, but sleep just in case it doesn't behave Thread.sleep(50); } catch (InterruptedException e) { } } } finally { incremen...
public void checkIn() throws CoreException { try { while (true) { try { if (getWorkspaceLock().acquire()) return; //above call should block, but sleep just in case it doesn't behave Thread.sleep(50); } catch (InterruptedException e) { } } } finally { incrementPreparedOperations(); } }...
diff --git a/src/main/java/net/aufdemrand/denizen/tags/TagManager.java b/src/main/java/net/aufdemrand/denizen/tags/TagManager.java index 21f16cfd6..3e7c70c51 100644 --- a/src/main/java/net/aufdemrand/denizen/tags/TagManager.java +++ b/src/main/java/net/aufdemrand/denizen/tags/TagManager.java @@ -1,201 +1,201 @@ packag...
false
true
public static String tag(dPlayer player, dNPC npc, String arg, boolean instant, ScriptEntry scriptEntry) { if (arg == null) return null; // confirm there are/is a replaceable TAG(s), if not, return the arg. if (arg.indexOf('>') == -1 || arg.length() < 3) return arg; // Find locatio...
public static String tag(dPlayer player, dNPC npc, String arg, boolean instant, ScriptEntry scriptEntry) { if (arg == null) return null; // confirm there are/is a replaceable TAG(s), if not, return the arg. if (arg.indexOf('>') == -1 || arg.length() < 3) return arg; // Find locatio...
diff --git a/src/program/main/Robot.java b/src/program/main/Robot.java index ba0dfbb..f22aa52 100644 --- a/src/program/main/Robot.java +++ b/src/program/main/Robot.java @@ -1,187 +1,178 @@ package program.main; import java.util.ArrayList; import lejos.nxt.Motor; import lejos.nxt.NXTRegulatedMotor; import lejos.n...
false
true
public void followSteps(ArrayList<Step> steps) { Step currentStep, nextStep; while (steps.size() > 1) { currentStep = steps.get(0); nextStep = steps.get(1); if (currentStep.getDirection() == Direction.Straight && nextStep.getDirection() == Direction.Right) { do followRightLine(false); while (!checkFor...
public void followSteps(ArrayList<Step> steps) { Step currentStep, nextStep; while (steps.size() > 1) { currentStep = steps.get(0); nextStep = steps.get(1); boolean circle = currentStep.getRoad().isCircle(); if (currentStep.getDirection() == Direction.Straight && nextStep.getDirection() == Direction.Ri...
diff --git a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java index 4dfaa7fe5..cfa64bc3c 100644 --- a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java +++ b/src/com/android/gallery3d/filtershow/category/CategoryAdap...
true
true
public View getView(int position, View convertView, ViewGroup parent) { if (mUseFilterIconButton) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); conver...
public View getView(int position, View convertView, ViewGroup parent) { if (mUseFilterIconButton) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); conver...