[ Launch: Ejemplo Jacathon Streamgraph ] 0c9daf6053778d6ee0be by bluezio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\lstdefinelanguage{EOL}{ | |
morekeywords={delete,import,for,while,in,and,or,self,operation,return,def,var,throw,if,new,else,transaction,abort, | |
break,breakAll,continue,assert,assertError,not, switch, case, default}, | |
sensitive=true, | |
morecomment=[l]{//}, | |
morecomment=[l]{--}, | |
morecomment=[s]{/*}{*/}, | |
morecomment=[s]{-*}{*-}, | |
morestring=[b]", | |
morestring=[b]', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE SEQUENCE elems_seq; | |
CREATE TABLE nodes ( id BIGINT PRIMARY KEY, label VARCHAR NOT NULL); | |
CREATE INDEX nodes_label ON nodes (label); | |
CREATE TABLE edges (id BIGINT PRIMARY KEY,from_node_id BIGINT NOT NULL,to_node_id BIGINT NOT NULL,label STRING NOT NULL,UNIQUE (from_node_id, to_node_id, label)); | |
CREATE INDEX edges_outgoing ON edges (from_node_id, label); | |
CREATE INDEX edges_incoming ON edges (to_node_id, label); | |
CREATE TABLE properties ( elem_id BIGINT NOT NULL, name VARCHAR NOT NULL, value_boolean BOOLEAN, value_long BIGINT, value_int INTEGER, value_float FLOAT, value_double DOUBLE, value_string VARCHAR, value_blob BLOB, PRIMARY KEY (elem_id, name)); | |
CREATE INDEX properties_elemid ON properties (elem_id); | |
INSERT INTO nodes (id, label) SELECT nextval('elems_seq'), 'test'; | |
SELECT * FROM nodes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adapted from here, tested on a Windows machine: | |
https://www.baeldung.com/jlink | |
First, compile your JavaFX program as usual in Eclipse. Drop the "requires junit;" requirement if you have it - it should be fine as long as your test classes are in the src-test source folder, and the src-test source folder compiles .java files into bin-test (instead of bin). Your test classes will temporarily not compile, but you can restore that line after you are done with this. | |
Note down where you have installed JavaFX: we'll call it $JAVAFX_HOME. | |
Note down where you have installed your JDK: we'll call it $JDK_HOME. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Shows an external label on A with the name of the B it's pointing to | |
var canvas = GmfGraph!Canvas.all.first; | |
var gallery = canvas.figures; | |
-- Create figure descriptor for external label | |
var fd = new GmfGraph!FigureDescriptor; | |
fd.name = 'AFigureBName'; | |
gallery.descriptors.add(fd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package timsort.minibench; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Random; | |
/** | |
* <p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/org.eclipse.modisco.infra.discovery.ui/src/org/eclipse/modisco/infra/discovery/ui/internal/actions/MoDiscoMenuSelectionListener.java b/org.eclipse.modisco.infra.discovery.ui/src/org/eclipse/modisco/infra/discovery/ui/internal/actions/MoDiscoMenuSelectionListener.java | |
index 16ef796..469d613 100644 | |
--- a/org.eclipse.modisco.infra.discovery.ui/src/org/eclipse/modisco/infra/discovery/ui/internal/actions/MoDiscoMenuSelectionListener.java | |
+++ b/org.eclipse.modisco.infra.discovery.ui/src/org/eclipse/modisco/infra/discovery/ui/internal/actions/MoDiscoMenuSelectionListener.java | |
@@ -165,6 +165,9 @@ public class MoDiscoMenuSelectionListener implements SelectionListener { | |
if (monitor.isCanceled()) { | |
return Status.CANCEL_STATUS; | |
} | |
+ | |
+ final long startMillis = System.currentTimeMillis(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @path OCL=http://www.eclipse.org/ocl/1.1.0/Ecore | |
-- @path Gremlin=/fr.inria.atlanmod.mogwai.gremlin/model/gremlin.ecore | |
-- Operations computing a value (collection or not) from a collection | |
-- transformations from OCL to Gremlin | |
-- Covered features are: | |
-- Complex collection operations (operations that necessitate variables to store intermediate | |
-- results and built-in function calls to compute the operation results) | |
-- Global variable creation (to store intermediate results) | |
-- Variable filling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@thrift(javans="ecore2thrift.example") | |
@namespace(uri="http://github.com/ecore2thrift", prefix="") | |
package Blog; | |
@doc(d="One post in the blog") | |
class Post { | |
@doc(d="Title of the post") | |
attr String title; | |
@doc(d="Date and time in ISO 8601 format") | |
attr String date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Number of an instances of a type | |
return %s.all.size; | |
// Instances of a type | |
return %s.all; | |
// Get the number of instances of an EDataType (unseeded) ////////////////////////// |
NewerOlder