query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
we need days relative to a year divisible by 400
@TruffleBoundary public static int yearFromDays(int daysAfter1970) { int daysAfter2000 = daysAfter1970 - DAYS_FROM_1970_TO_2000; // days after year (2000 - yearShift) int days = daysAfter2000 + DAY_SHIFT; // we need days > 0 to ensure that integer division rounds correctly assert days > 0; int year = 400 * (days / DAYS_IN_400_YEARS); int remainingDays = days % DAYS_IN_400_YEARS; remainingDays--; year += 100 * (remainingDays / DAYS_IN_100_YEARS); remainingDays %= DAYS_IN_100_YEARS; remainingDays++; year += 4 * (remainingDays / DAYS_IN_4_YEARS); remainingDays %= DAYS_IN_4_YEARS; remainingDays--; year += remainingDays / 365; return year - YEAR_SHIFT + 2000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getDaysSinceNewYear() {\n\t\tGregorianCalendar now = new GregorianCalendar();\n\n\t\treturn now.get(GregorianCalendar.DAY_OF_YEAR);\n\t}", "private static int getDaysInYear(final int year) {\n return LocalDate.ofYearDay(year, 1).lengthOfYear();\n }", "static int countLeapYears(Days...
[ "0.69552493", "0.68186134", "0.6644324", "0.66207063", "0.6409652", "0.6400933", "0.6397881", "0.63500327", "0.6339876", "0.62767935", "0.62566125", "0.6236564", "0.6210868", "0.61725545", "0.6156491", "0.6152011", "0.61275834", "0.61252064", "0.6114537", "0.61025655", "0.604...
0.6147008
16
we need days relative to a year divisible by 4
@TruffleBoundary public static double dateFromDaysRegularLeapYears(int daysAfter1970) { int daysAfter2000 = daysAfter1970 - DAYS_FROM_1970_TO_2000; // days after year 1900 (as if it was a leap year) int days = daysAfter2000 + 25 * DAYS_IN_4_YEARS; // we need days > 0 to ensure that integer division rounds correctly assert days > 0; int year = 4 * (days / DAYS_IN_4_YEARS); int remainingDays = days % DAYS_IN_4_YEARS; remainingDays--; year += remainingDays / 365 + 1900; remainingDays %= 365; boolean leapYear = (year & 3) == 0; if (leapYear) { remainingDays++; } return dateFromDayInYear(year, remainingDays); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void leapYearIsDivisibleBy4(){\n int year = 2020;\n assertTrue(LeapYear.isLeapYear(year));\n }", "private static int getDaysInYear(final int year) {\n return LocalDate.ofYearDay(year, 1).lengthOfYear();\n }", "private static int getDaysSinceNewYear() {\n\t\tGregoria...
[ "0.69216067", "0.67773414", "0.6658162", "0.6580098", "0.6548986", "0.65321726", "0.64165604", "0.635848", "0.63446295", "0.6298807", "0.62144876", "0.6211094", "0.6192184", "0.6150742", "0.6115367", "0.60978866", "0.60764015", "0.6057882", "0.60443604", "0.6025989", "0.60245...
0.0
-1
ES5 15.9.1.8 Daylight Saving Time Adjustment, in milliseconds.
@TruffleBoundary private static long daylightSavingTA(ZoneId zone, double t) { Duration d = zone.getRules().getDaylightSavings(Instant.ofEpochMilli((long) t)); long offset = d.getSeconds() * 1000L; assert 0 <= offset && offset <= MS_MAX_DST; return offset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean useDaylightTime();", "public abstract boolean useDaylightTime();", "private static long getAdjustedEndTime(MergedAnomalyResultDTO anomaly) {\n if (anomaly.getEndTime() % 60000 == 0) {\n return anomaly.getEndTime();\n }\n return (long) Math.floor((anomaly.getEndTime() + 599...
[ "0.63127875", "0.63127875", "0.6003972", "0.58376884", "0.5664498", "0.5563689", "0.5511124", "0.5490765", "0.54207677", "0.54175735", "0.5389487", "0.53680074", "0.5366773", "0.5344047", "0.53012556", "0.5288075", "0.5276562", "0.5265974", "0.52318233", "0.51732343", "0.5140...
0.6458039
0
Implementation of ECMAScript 5.1 15.9.1.14 TimeClip.
public static double timeClip(double time) { if (Double.isInfinite(time) || Double.isNaN(time) || Math.abs(time) > MAX_DATE) { return Double.NaN; } // The standard expects only integer values, cf. 15.9.1.1 // it does not state, however, WHERE the conversion should happen return ((Double) time).longValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void clip();", "@Override\n\tpublic void clip(Node n) {\n\t}", "@Override\n public long getMicrosecondLength() {\n return clip.getMicrosecondLength();\n }", "public void StopClip() {\n clip.stop();\n }", "public abstract void setClip(int x, int y, int width, int he...
[ "0.6021333", "0.542352", "0.5394065", "0.5244901", "0.5243494", "0.522766", "0.49363878", "0.48616835", "0.48539418", "0.4845288", "0.4827569", "0.4823754", "0.48094442", "0.47843838", "0.47558832", "0.4752981", "0.47453716", "0.47219026", "0.4720471", "0.47099277", "0.470538...
0.60152406
1
0 <= ToInteger(year) <= 99 according to standard, but we are omitting the ToInteger here!
private static double toFullYear(double year) { if (-1 < year && year < 100) { return 1900 + (int) year; } return year; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getTenYear();", "public static int cleanReleaseYear(Literal year) {\n String yearString;\n int yearInt = 0;\n if(year == null || \"\".equals(year.toString())) {\n yearString = \"0\";\n } else {\n yearString = year.toString();\n }\n Pattern p...
[ "0.7481551", "0.7249438", "0.72030956", "0.7157489", "0.7057121", "0.7050305", "0.7018596", "0.7018596", "0.70133865", "0.69881177", "0.6952603", "0.6952603", "0.6952603", "0.6940905", "0.6940905", "0.69345754", "0.69180447", "0.68984526", "0.68984526", "0.6795534", "0.677707...
0.6714315
28
The local time zone adjustment is a value LocalTZA measured in milliseconds which when added to UTC represents the local standard time. Daylight saving time is not reflected by LocalTZA.
public static long getLocalTZA(ZoneId localTimeZoneId) { ZoneOffset localTimeZoneOffset = localTimeZoneId.getRules().getOffset(Instant.ofEpochMilli(0)); return localTimeZoneOffset.getTotalSeconds() * 1000L; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Duration localSystemTimezoneDuration() {\n ZonedDateTime zdt = ZonedDateTime.now();\n int tzDurationInSeconds = zdt.getOffset().getTotalSeconds();\n Duration dur = NodeFunctions.duration(tzDurationInSeconds);\n return dur;\n }", "private DateTime goodLocalTimeUse() {...
[ "0.6306352", "0.62351334", "0.6185377", "0.6041375", "0.57670176", "0.5760338", "0.5738506", "0.5682126", "0.56469065", "0.5579987", "0.5545911", "0.55328864", "0.55000633", "0.5470575", "0.5462029", "0.5461057", "0.5430157", "0.54009825", "0.53308713", "0.5287538", "0.528135...
0.6516804
0
Creates new form AdminJP
public AdminJP() { initComponents(); aplicarTextPrompt(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public FormInserir() {\n initComponents();\n }", "@RequestMapping(params = ...
[ "0.7037948", "0.67954725", "0.67397857", "0.66781914", "0.65592575", "0.6440145", "0.6378724", "0.6343689", "0.63315475", "0.6268362", "0.62609875", "0.6197116", "0.6168807", "0.61685586", "0.6161494", "0.61356366", "0.61191255", "0.61169446", "0.6109184", "0.609595", "0.6085...
0.58492655
42
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTextField1 = new javax.swing.JTextField(); jPasswordField1 = new javax.swing.JPasswordField(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jLabel6 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox<>(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jLabel7 = new javax.swing.JLabel(); jComboBox3 = new javax.swing.JComboBox<>(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); usernameJTF = new javax.swing.JTextField(); urlJTF = new javax.swing.JTextField(); passwordJPF = new javax.swing.JPasswordField(); passwordJB = new javax.swing.JButton(); urlJB = new javax.swing.JButton(); usernameJB = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); setBackground(new java.awt.Color(24, 24, 24)); setPreferredSize(new java.awt.Dimension(960, 540)); setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jTextField1.setFont(jTextField1.getFont()); add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 170, 280, 30)); jPasswordField1.setFont(jPasswordField1.getFont()); add(jPasswordField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 230, 280, 30)); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/back.png"))); // NOI18N jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jLabel2.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { jLabel2MousePressed(evt); } }); add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, -1, -1)); jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Contraseña:"); add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 210, -1, -1)); jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setText("Regresar"); add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 90, -1, -1)); jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("Cambiar PASSWORD de la base de datos:"); add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 430, -1, -1)); jButton1.setText("Acceder"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 280, 130, -1)); jLabel6.setForeground(new java.awt.Color(255, 255, 255)); jLabel6.setText("Administrador:"); add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 150, -1, -1)); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(nombreInstrumento)); jComboBox1.setEnabled(false); add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 250, 130, -1)); jButton2.setText("Dar de alta"); jButton2.setEnabled(false); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 170, -1, -1)); jButton3.setText("Dar de baja"); jButton3.setEnabled(false); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 290, -1, -1)); jLabel7.setForeground(new java.awt.Color(255, 255, 255)); jLabel7.setText("Dar de baja instrumento:"); add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 230, -1, -1)); jComboBox3.setModel(new javax.swing.DefaultComboBoxModel<>(nombreInstrumento)); jComboBox3.setEnabled(false); add(jComboBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 130, 130, -1)); jLabel8.setForeground(new java.awt.Color(255, 255, 255)); jLabel8.setText("Dar de alta instrumento:"); add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 110, -1, -1)); jLabel9.setForeground(new java.awt.Color(255, 255, 255)); jLabel9.setText("Cambiar URL de la base de datos:"); add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 430, -1, -1)); jLabel10.setForeground(new java.awt.Color(255, 255, 255)); jLabel10.setText("Cambiar USERNAME de la base de datos:"); add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 430, -1, -1)); usernameJTF.setEnabled(false); add(usernameJTF, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 450, 190, -1)); urlJTF.setEnabled(false); add(urlJTF, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 450, 190, -1)); passwordJPF.setEnabled(false); add(passwordJPF, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 450, 190, -1)); passwordJB.setText("Cambiar"); passwordJB.setEnabled(false); passwordJB.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { passwordJBActionPerformed(evt); } }); add(passwordJB, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 480, -1, -1)); urlJB.setText("Cambiar"); urlJB.setEnabled(false); urlJB.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { urlJBActionPerformed(evt); } }); add(urlJB, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 480, -1, -1)); usernameJB.setText("Cambiar"); usernameJB.setEnabled(false); usernameJB.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { usernameJBActionPerformed(evt); } }); add(usernameJB, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 480, -1, -1)); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/background0.png"))); // NOI18N add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319573", "0.72908455", "0.72908455", "0.72908455", "0.7286827", "0.7248724", "0.7213511", "0.7208325", "0.7195998", "0.7190202", "0.7184771", "0.7158966", "0.7147921", "0.7093225", "0.7080275", "0.7057302", "0.69875276", "0.6977057", "0.6955658", "0.6953942", "0.69454855"...
0.0
-1
GENLAST:event_jButton3ActionPerformed Cambiar URL de la BD
private void urlJBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_urlJBActionPerformed String newUrl = urlJTF.getText(); BD.cambiarUrl(newUrl); JOptionPane.showMessageDialog(null, "La URL se ha modificado con éxito.", "Información", JOptionPane.INFORMATION_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n ...
[ "0.61061305", "0.60508275", "0.5937152", "0.5912357", "0.58788353", "0.5829955", "0.5795863", "0.5782876", "0.5749934", "0.57488453", "0.5671915", "0.5663521", "0.5653335", "0.5629121", "0.56082356", "0.5543697", "0.55124986", "0.55080646", "0.5506577", "0.54984343", "0.54970...
0.7218548
0
GENLAST:event_urlJBActionPerformed Cambiar USERNAME de la BD
private void usernameJBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_usernameJBActionPerformed String newUsername = usernameJTF.getText(); BD.cambiarUsername(newUsername); JOptionPane.showMessageDialog(null, "El USERNAME se ha modificado con éxito.", "Información", JOptionPane.INFORMATION_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tuserName = (String) JOptionPane.showInputDialog(frame,\"Digite o nome:\");\n\t\t\t\t\t}", "private void getUsernameButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_getUsernameButtonActionPerformed\n\n cl...
[ "0.71185714", "0.6695688", "0.6667098", "0.664841", "0.65610975", "0.64870423", "0.64275485", "0.63922703", "0.6264471", "0.6248104", "0.61436397", "0.6139031", "0.61305916", "0.6093059", "0.60712457", "0.60497105", "0.604238", "0.6041897", "0.60271394", "0.6021953", "0.60064...
0.74306315
0
GENLAST:event_usernameJBActionPerformed Cambiar PASSWORD de la BD
private void passwordJBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_passwordJBActionPerformed String newPassword = String.valueOf(passwordJPF.getPassword()); BD.cambiarPassword(newPassword); JOptionPane.showMessageDialog(null, "La PASSWORD se ha modificado con éxito.", "Información", JOptionPane.INFORMATION_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangePassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n jPasswordField2.setEnabled(false);\n jPasswordField3.setEnabled(false);\n }", "public void actionPerformed(ActionEvent arg0){\n char[] tamanho = tsenha.ge...
[ "0.7449788", "0.71181554", "0.70882106", "0.7045514", "0.6997238", "0.69130456", "0.6892661", "0.68319005", "0.6820548", "0.6817939", "0.6743046", "0.673465", "0.6729847", "0.6720001", "0.6650592", "0.66481376", "0.661426", "0.660938", "0.6606104", "0.6590342", "0.6568449", ...
0.7854384
0
Aplica el texto opaco en los campos de texto.
private void aplicarTextPrompt() { TextPrompt textPrompt = new TextPrompt("jdbc:mysql://localhost:3306/mydb", urlJTF); TextPrompt textPrompt1 = new TextPrompt("root", usernameJTF); TextPrompt textPrompt2 = new TextPrompt("*********", passwordJPF); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void limparCampos(JTextComponent... campos) {\n String vazio = \"\";\n for (JTextComponent c : campos) {\n c.setText(vazio);\n }\n }", "public void setText(String operaciones) {\r\n this.operaciones = operaciones;\r\n }", "public String getTexto() {\n ...
[ "0.6563228", "0.6491684", "0.633583", "0.6262422", "0.6182505", "0.61760354", "0.61172533", "0.61078364", "0.6062588", "0.6051547", "0.6046322", "0.60286117", "0.60226655", "0.60181797", "0.5979231", "0.597663", "0.594874", "0.594874", "0.5943815", "0.5940722", "0.5928391", ...
0.0
-1
to manage multiple game states
public State(GameStateManager gameStateManager){ //constructor this.gameStateManager = gameStateManager; camera = new OrthographicCamera(); mouse = new Vector3(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface GameState {\n String WAITING_FOR_SECOND_PLAYER = \"WAITING_FOR_SECOND_PLAYER\";\n String TURN_HARE = \"TURN_HARE\";\n String TURN_HOUND = \"TURN_HOUND\";\n String WIN_HARE_BY_ESCAPE = \"WIN_HARE_BY_ESCAPE\";\n String WIN_HARE_BY_STALLING = \"WIN_HARE_BY_STALLING\";\n ...
[ "0.7225978", "0.7173156", "0.7060451", "0.704781", "0.70432824", "0.6958033", "0.69542855", "0.6896431", "0.68612695", "0.6829298", "0.68207407", "0.6813332", "0.6801177", "0.6770301", "0.6764648", "0.67339194", "0.6730803", "0.67265105", "0.664734", "0.6566733", "0.6554681",...
0.62199986
61
deltatime = diff btween one frame rendered and the other frame to render
public abstract void render(SpriteBatch spriteBatch);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processFrame(float deltaTime);", "protected abstract float getFrameTimeNormalAnimation();", "private void calculateDelta() {\n // 60 fps <=> delta ~ 0.016f\n //\n long curTime = SystemClock.elapsedRealtimeNanos();\n delta = (curTime - lastTime) / 1_000_000_000.0f;\n ...
[ "0.63841224", "0.62558836", "0.6191959", "0.6138861", "0.6058794", "0.5995731", "0.59595245", "0.59289706", "0.5777987", "0.5772723", "0.5683757", "0.5676383", "0.5616244", "0.5597451", "0.55331415", "0.55270505", "0.54884", "0.54748076", "0.54704905", "0.544965", "0.544965",...
0.0
-1
Webservice to find all Users
@GetMapping() @ResponseBody public List<UserResult> findAll() { return userService.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getAllUsers();", "List<User> getAllUsers();", "List<User> getAllUsers();", "public List<User> getAllUsers();", "public List getUsers(User user);", "List<KingdomUser> getAllUsers();", "public void getAllUsers() {\n\t\t\n\t}", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATI...
[ "0.8501783", "0.8071012", "0.8071012", "0.80554605", "0.79446155", "0.79340357", "0.79001516", "0.78473216", "0.7832913", "0.78150433", "0.7739799", "0.7671193", "0.7671193", "0.76666707", "0.7664622", "0.7660285", "0.7642375", "0.7637015", "0.7620143", "0.76069945", "0.76046...
0.7500053
38
Webservice to find one User by the id
@GetMapping("{id}") @ResponseBody public UserResult findById(@PathVariable Long id) throws NotFoundException { return userService.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User getUserById(int id);", "public User getUserById(Long id) throws Exception;", "@GET\n\t@Path(\"/id\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response findById(@QueryParam(\"id\") Long id) throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\...
[ "0.8139736", "0.7960739", "0.7927105", "0.78791445", "0.78783", "0.7863916", "0.7827263", "0.7827263", "0.77089083", "0.76726687", "0.76661026", "0.76577663", "0.7648207", "0.75829947", "0.7569216", "0.7562547", "0.7513206", "0.7501572", "0.7499608", "0.7496194", "0.74795216"...
0.7079665
87
Webservice to save a new user and flush into database
@PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody public UserResult createUser(@RequestBody UserInput userInput) { return userService.create(userInput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "public int saveUser(User user);", "public void saveUser(User user);", "@Override\r\n\tpublic void save() {\n\t\tSystem.out.println(\"UserServiceImplÍ┤đđ┴╦\");\r\n\t\tuserDao.save();\r\n\t}", "void save(User user);", "public User saveUs...
[ "0.76831543", "0.75244987", "0.7521849", "0.7484054", "0.72794825", "0.72577137", "0.7206291", "0.72014093", "0.7116052", "0.7077353", "0.70287716", "0.7014128", "0.7011821", "0.69991434", "0.6993346", "0.69517344", "0.6946033", "0.69321847", "0.6928032", "0.6864585", "0.6860...
0.0
-1
Singup and create a new user
@PostMapping(path = "/signup", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody public UserResult signUp(@RequestBody UserSignUpInput userSignUpInput) { return userService.signUp(userSignUpInput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean registerNewUser(User user);", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void createUser(User user) {\n\n\t}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consum...
[ "0.74036944", "0.7351624", "0.72176814", "0.72159743", "0.7179625", "0.7082917", "0.7056415", "0.70149636", "0.69744754", "0.6942847", "0.692934", "0.69178843", "0.6851586", "0.6842644", "0.68343335", "0.6806147", "0.6804806", "0.6803735", "0.6799337", "0.6788381", "0.6759898...
0.0
-1
Update the existing User
@PutMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody public UserResult update(@RequestBody UserInput userInput) throws NotFoundException { return userService.update(userInput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User updateUser(User user);", "ManageUserResponse updateUser(UserUpdateRequest user, Long userId);", "public void updateUser(User user) {\n\t\t\r\n\t}", "void updateUser(@Nonnull User user);", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "@Override\n\tpublic void updateUser...
[ "0.8080612", "0.8024663", "0.8020996", "0.794279", "0.79246545", "0.7835591", "0.78278387", "0.781176", "0.77898437", "0.77874255", "0.7754805", "0.7745822", "0.7703042", "0.7693407", "0.7675139", "0.7656033", "0.76314", "0.7596165", "0.7592933", "0.7579065", "0.7501126", "...
0.0
-1
Delete user by id
@DeleteMapping("{id}") @ResponseBody public void deleteById(@PathVariable Long id) throws NotFoundException { userService.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteUserById(Integer id);", "void deleteUserById(Long id);", "void deleteUser(int id);", "public void deleteUser(Integer id) throws BadRequestException;", "public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}"...
[ "0.9240706", "0.9226005", "0.90180826", "0.89823693", "0.8783483", "0.87454915", "0.8739996", "0.86615336", "0.8649522", "0.8598275", "0.8593937", "0.85877776", "0.85666096", "0.8525514", "0.85154355", "0.8509766", "0.8500066", "0.84280264", "0.84159786", "0.84146905", "0.839...
0.7894192
71
TODO Autogenerated method stub
@Override public String toString() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Object objId() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
We want to run that on the main thread.
@Override public void run() { Platform.runLater(() -> { game().tick(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void run() {}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\n\t\t\tpub...
[ "0.75517577", "0.75517577", "0.75022703", "0.7499035", "0.7499035", "0.7497501", "0.7497501", "0.74959284", "0.74959284", "0.7486924", "0.7486924", "0.7486924", "0.7486924", "0.7486924", "0.7486924", "0.7486924", "0.7486924", "0.7486924", "0.7485057", "0.74800074", "0.7480007...
0.0
-1
TODO Autogenerated method stub
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LayoutInflater inflater = getActivity().getLayoutInflater(); mView = inflater.inflate(R.layout.fragment1, (ViewGroup) getActivity() .findViewById(R.id.viewpager), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup viewgproup = (ViewGroup) mView.getParent(); if (viewgproup != null) { viewgproup.removeAllViewsInLayout(); } return mView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Method to goto Custom Activity
public void Custom(View view) { Intent intent = new Intent(this,Customize.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "private void openActivity() {\n }", "public void goTestActivity()\n\t {\n\t }", "@Override\n public void onClick(View view) {\n\n startActivity(getInte...
[ "0.7539374", "0.7292079", "0.7255337", "0.72117513", "0.71940833", "0.7071501", "0.7046545", "0.69321823", "0.69277066", "0.6913824", "0.68785655", "0.68734246", "0.6859374", "0.6845091", "0.6820774", "0.68190044", "0.68161213", "0.67936796", "0.6769359", "0.67485225", "0.673...
0.67073834
24
fetching value from sharedpreference
private void formatsetting() { SharedPreferences sharedPreferences =this.getSharedPreferences(Settings.SHARED_PREF_NAME, Context.MODE_PRIVATE); //Fetching thepatient_mobile_Number value form sharedpreferences String FormattedString = sharedPreferences.getString(Settings.Format_Selected_SHARED_PREF,"Thousands separator"); String DecimalplaceString= sharedPreferences.getString(Settings.Decimal_Place_Selected_SHARED_PREF,"2"); Settings settings=new Settings(FormattedString,DecimalplaceString); formatter= settings.setting(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}", "public void retrieveDataFromSharedPreference(View...
[ "0.6894342", "0.68900335", "0.68763", "0.6766742", "0.6766742", "0.6574307", "0.65508306", "0.6541477", "0.64917755", "0.6477106", "0.64176327", "0.6412627", "0.6390811", "0.6389274", "0.6318846", "0.629996", "0.62867826", "0.6269322", "0.6261189", "0.6251148", "0.6220185", ...
0.0
-1
Take appropriate action for each action item click
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: this.finish(); break; default: return super.onOptionsItemSelected(item); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void issuedClick(String item);", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\n\n...
[ "0.75727224", "0.74649024", "0.7294812", "0.7090134", "0.7069622", "0.706504", "0.705016", "0.70108104", "0.6974975", "0.6916171", "0.6892298", "0.6885662", "0.6808489", "0.67767835", "0.6766101", "0.67544", "0.6750739", "0.6739564", "0.67364", "0.67359805", "0.6730347", "0...
0.0
-1
cycle (or loop). A linked list is said to contain cycle if any node is revisited while traversing the list. The head pointer given may be null meaning that the list is empty.
int hasCycle(Node head) { // If list is null if(head == null) { // No cycle return 0; } Set<Node> visitedNodes = new HashSet<Node>(); Node current = head; // Loop through the list while(current != null) { // If we have seen this node befor if(visitedNodes.contains(current)) { return 1; } // Add it to the set visitedNodes.add(current); // Update current current = current.next; } // If we get here, there are no cycles return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode detectCycle(ListNode head) {\n ListNode walker = head;\n ListNode runner = head;\n \n while(runner != null && runner.next != null) {\n runner = runner.next.next;\n walker = walker.next;\n \n if (runner == walker) {\n ...
[ "0.7533235", "0.74596786", "0.7444588", "0.72401863", "0.71981955", "0.7103378", "0.6985876", "0.6976028", "0.69066584", "0.6757854", "0.6750277", "0.6730502", "0.6669365", "0.6654253", "0.6638011", "0.6623958", "0.6619691", "0.66033345", "0.6568247", "0.6557849", "0.6481898"...
0.71403253
5
Getter for fallback value
public String getFallback() { return fallback; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getFallback() {\r\n return fallback;\r\n }", "public Object getElseValue();", "String getDefaultValue();", "String getDefaultValue();", "@java.lang.Override\n public boolean getIsFallback() {\n return isFallback_;\n }", "public abstract int getPreferredValue();", ...
[ "0.74850166", "0.6694981", "0.636468", "0.636468", "0.6341747", "0.6306209", "0.62813145", "0.6204811", "0.6204811", "0.60707784", "0.6070679", "0.6053003", "0.603154", "0.6030908", "0.5981795", "0.5977591", "0.5928535", "0.59002477", "0.5895098", "0.5857498", "0.5804385", ...
0.7578311
0
Get list of all retrieved items.
public List<Item> getItemsForAllLabels(boolean forceZip) { List<Item> itemList = new ArrayList<>(); if (forceZip) { int maxIdx = 0; for (ShopTheLookResponseItem item : items) { if (item.getItems().size() - 1 > maxIdx) { maxIdx = item.getItems().size() - 1; } } for (int i = 0; i <= maxIdx; i++) { for (ShopTheLookResponseItem item : items) { if (item.getItems().size() > i) { itemList.add(item.getItems().get(i)); } } } return itemList; } for (ShopTheLookResponseItem item : items) { itemList.addAll(item.getItems()); } return itemList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Item> getAll()\r\n {\r\n\r\n CriteriaQuery<Item> criteria = this.entityManager\r\n .getCriteriaBuilder().createQuery(Item.class);\r\n return this.entityManager.createQuery(\r\n criteria.select(criteria.from(Item.class))).getResultList();\r\n }", "public static List...
[ "0.7655963", "0.765513", "0.7519794", "0.7504654", "0.75012684", "0.7386685", "0.7386685", "0.7386685", "0.7386685", "0.7386685", "0.73651564", "0.73229355", "0.72834957", "0.7242361", "0.7232596", "0.72247225", "0.718093", "0.718078", "0.7149585", "0.71466345", "0.71336144",...
0.0
-1
Creates and runs the music editor.
public static void main(String[] args) { try { IMusicEditor composition = MusicReader.parseFile(new FileReader(args[0]), new MusicEditorModel.Builder()); View display; if (args[1].equals("combo")) { Controller c = new Controller(new CompositeViewImpl(new GuiViewImpl(), new MidiViewImpl()), composition); } else { display = ViewFactory.create(args[1]); ViewModel m = new ViewModel(composition); display.display(m); } } catch (FileNotFoundException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "public Music createMusic(String file);", "private void startMusic() {\r\n final Format input1 = new AudioFormat(AudioFormat.MPEGLAYER3);\r\n final Format input2 = new AudioFormat(AudioFormat.MPEG);\r\n final Format output = ne...
[ "0.6210097", "0.6191902", "0.6185601", "0.61245304", "0.6021941", "0.5939505", "0.5879546", "0.5860732", "0.57878935", "0.5758086", "0.573747", "0.5718424", "0.56651366", "0.5658956", "0.5641089", "0.56315196", "0.56310016", "0.5571121", "0.55696493", "0.5553716", "0.5547977"...
0.59380156
6
TODO Autogenerated method stub
@Override public void render() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Component render(String command, Integer entityFilterId) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Component render(String command, HierarchicalContainer treeItemContainer) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
render site contents com box,article table,image table
public void renderSiteContent(){ buildTables(); siteDto = (Collection<SiteDto>) siteService.findSitesByAccountId(accountId, false); //siteDto = new ArrayList<SiteDto>(); if(!(siteDto.isEmpty())){ renderCombobox(); renderArticleTable(); renderImageTable(); verticalLayout.addComponent(articleTable); verticalLayout.addComponent(imageTable); } else { Button linkButton = new Button("Create new site"); linkButton.setStyleName(BaseTheme.BUTTON_LINK); linkButton.addClickListener(new ClickListener() { private static final long serialVersionUID = 1L; public void buttonClick(ClickEvent event) { final SiteUIManager siteUiManager = new SiteUIManager(siteDashboardTab,helper); VerticalLayout newlayout = siteUiManager.renderNewSite(); Tab tab1 = siteDashboardTab.addTab(newlayout, "Create site", null); tab1.setClosable(true); siteDashboardTab.setSelectedTab(newlayout); } }); verticalLayout.addComponent(linkButton); } verticalLayout.addComponent(label);//article label verticalLayout.addComponent(label2);//image label }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildTables(){\r\n\t\tarticleTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\tarticleTable.setPageLength(5);\r\n\t\tlabel = new Label(\"No article found\");\r\n\t\tlabel2 = new Label(\"No image found\");\r\n\t\timageTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\timageTable.setPageLength(5);\r\n\t}", "privat...
[ "0.5815174", "0.5759673", "0.5602657", "0.5544942", "0.5442733", "0.53636724", "0.53396106", "0.53326285", "0.53223234", "0.5255446", "0.5220216", "0.5214516", "0.5211487", "0.5202026", "0.51653355", "0.51562256", "0.5154789", "0.5153125", "0.51503557", "0.5142541", "0.511203...
0.69922256
0
Render combo box that contains the sites
private void renderCombobox(){ Collection<String> sitesName= new ArrayList<String>(); for(SiteDto site : siteDto){ sitesName.add(site.getSiteName()); } ComboBox siteComboBox = new ComboBox("Select Site",sitesName); siteName = sitesName.iterator().next(); siteComboBox.setValue(siteName); siteComboBox.setImmediate(true); siteComboBox.addValueChangeListener(this); verticalLayout.addComponent(siteComboBox); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void RenderCombo()\r\n\t{\r\n\t\tSystem.out.println(\"Setup\");\r\n\t\tList<ProductionOrder> productionOrders = null;\r\n\t\t\t\t\r\n \ttry {\r\n \t\tproductionOrders = this.getProductionOrderService().findProductionOrders(); \r\n \t\tif(productionOrders==null)\r\n \t\t\tSystem.out.println(\"pr...
[ "0.63932174", "0.60358006", "0.5959213", "0.5921931", "0.58499086", "0.5806775", "0.57932824", "0.57643145", "0.5746177", "0.5701315", "0.5679738", "0.56463146", "0.56306696", "0.5627504", "0.5619597", "0.5600065", "0.5596496", "0.5593153", "0.55791306", "0.5571984", "0.55544...
0.8720055
0
Combo box handler to change the table data when the user selects the site from the combobox.
@Override public void valueChange(ValueChangeEvent event) { Notification.show("Loading "+event.getProperty()+" latest contents"); siteName = event.getProperty().getValue().toString(); renderArticleTable(); renderImageTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void renderCombobox(){\r\n\r\n\t\tCollection<String> sitesName= new ArrayList<String>();\r\n\t\t\tfor(SiteDto site : siteDto){\r\n\t\t\t\tsitesName.add(site.getSiteName());\r\n\t\t\t}\r\n\t\t\r\n\t\tComboBox siteComboBox = new ComboBox(\"Select Site\",sitesName);\r\n\t\tsiteName = sitesName.iterator().next...
[ "0.6255256", "0.5838038", "0.5811283", "0.5712707", "0.5694018", "0.5688589", "0.5656073", "0.564402", "0.56253386", "0.56243944", "0.5576584", "0.5576543", "0.55683017", "0.55599636", "0.5559213", "0.55208755", "0.55107397", "0.5506439", "0.5489778", "0.5486381", "0.54687643...
0.55542815
15
Used to render the article if there are latest articles to be displayed, otherwise table is hidden and a message is displayed.
private void renderArticleTable(){ articleTable.setContainerDataSource(loadLatestArticles()); if(articleDto.isEmpty()){ label.setVisible(true); articleTable.setVisible(false); }else { label.setVisible(false); articleTable.setVisible(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SkipValidation\n public String importantNewsView() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "private void display()\n {\n //Dis...
[ "0.5787547", "0.5715719", "0.571391", "0.5709379", "0.5561647", "0.55397946", "0.5529941", "0.54540217", "0.5366719", "0.5310056", "0.52312434", "0.5222992", "0.5170301", "0.514236", "0.5125887", "0.5104249", "0.50910795", "0.5016983", "0.49877447", "0.49733758", "0.49601403"...
0.76285267
0
Used to just build the article and image tables i.e. sets the properties for the table.
private void buildTables(){ articleTable.setWidth(50, Unit.PERCENTAGE); articleTable.setPageLength(5); label = new Label("No article found"); label2 = new Label("No image found"); imageTable.setWidth(50, Unit.PERCENTAGE); imageTable.setPageLength(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void buildTable(PdfPTable table);", "private void buildTables() {\n\t\tint k = G.getK();\n\t\tint numEachPod = k * k / 4 + k;\n \n\t\tbuildEdgeTable(k, numEachPod);\n\t\tbuildAggTable(k, numEachPod);\n\t\tbuildCoreTable(k, numEachPod); \n\t}", "public Table buildAssetDetailsTable(M...
[ "0.67540777", "0.6632374", "0.6407123", "0.6402643", "0.629603", "0.62901586", "0.62307036", "0.620086", "0.6199609", "0.6144074", "0.60977226", "0.6094942", "0.6093086", "0.60838956", "0.60789347", "0.6075238", "0.60419816", "0.6029146", "0.6019503", "0.6013143", "0.6006569"...
0.7777933
0
give the player a little xp
public void changed (ChangeEvent event, Actor actor) { float percent = (float)theCasing.maintenance/(float)ST.getJarMaintenance( theCasing.strain.temp_required, Assets.player.inc_temp ); if ( theCasing.location==ST.FC ) percent = (float)theCasing.maintenance/(float)ST.getJarMaintenance( theCasing.strain.temp_required, Assets.player.fc_temp ); Assets.player.increaseXP( (int)(ST.MAINTENANCE_XP*ST.logisticSpread( percent ) ) ); ST.focus( pane, maintenanceBar ); // reduce the jar's maintenance to 0 theCasing.maintenance = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void givePlayerExp(BPlayer bPlayer, int exp);", "public int xp(){\n return this.xp;\n }", "public static String getXP(){\n\t\treturn (String) \"\" + String.valueOf((int) Math.ceil(mc.thePlayer.experience * mc.thePlayer.xpBarCap())) + \"/\" + mc.thePlayer.xpBarCap();\n\t}", "public static void expe...
[ "0.71934384", "0.6998956", "0.6746788", "0.6641585", "0.6637678", "0.65912724", "0.63855356", "0.62992173", "0.62935394", "0.626825", "0.62506086", "0.6235218", "0.6230848", "0.61633855", "0.61482275", "0.61341065", "0.6127444", "0.61212534", "0.6117176", "0.6101318", "0.6099...
0.0
-1
First, we'll need a ObjectPool that serves as the actual pool of connections. We'll use a GenericObjectPool instance, although any ObjectPool implementation will suffice.
public static DataSource getPoolDataSource(String connectURI, String user, String password) { // First, we'll need a ObjectPool that serves as the // actual pool of connections. // // We'll use a GenericObjectPool instance, although // any ObjectPool implementation will suffice. // ObjectPool connectionPool = new GenericObjectPool(null,20); /* Integer.parseInt( props.getProperty(Environment.DBCP_MAXACTIVE) ), Byte.parseByte( props.getProperty(Environment.DBCP_WHENEXHAUSTED) ), Long.parseLong( props.getProperty(Environment.DBCP_MAXWAIT) ), Integer.parseInt( props.getProperty(Environment.DBCP_MAXIDLE) ) */ // // Next, we'll create a ConnectionFactory that the // pool will use to create Connections. // We'll use the DriverManagerConnectionFactory, // using the connect string passed in the command line // arguments. // Properties properties=new Properties(); properties.put("user", user); properties.put("password", password); ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(connectURI, properties); // ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(connectURI, // userName, // password, // null); // // Now we'll create the PoolableConnectionFactory, which wraps // the "real" Connections created by the ConnectionFactory with // the classes that implement the pooling functionality. // PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory, connectionPool, null, null, false,// readOnly true// autocommit ); // // Finally, we create the PoolingDriver itself, // passing in the object pool we created. // PoolingDataSource dataSource = new PoolingDataSource(connectionPool); // For close/shutdown driver try{ PoolingDriver driver = (PoolingDriver) DriverManager.getDriver("org.firebirdsql.jdbc.FBDriver"); driver.registerPool("",connectionPool); }catch(Exception ex){ }; return dataSource; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OMMPool getPool();", "private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }", "private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB....
[ "0.7185785", "0.7140866", "0.7127643", "0.70735", "0.6964858", "0.6907916", "0.6902031", "0.6883647", "0.67606807", "0.67488164", "0.6699563", "0.66760784", "0.66715884", "0.6618365", "0.65691435", "0.65509063", "0.65229034", "0.6473689", "0.64102185", "0.63855153", "0.638395...
0.60487396
42
Methode modifiant BorneM et BorneP
public Symbole(int [] borneM,int [] borneP) { this.borneM=borneM; this.borneP=borneP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BOp createBOp();", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public ModuloAgenteBR() {\n initComponents();\n }", "public RepositorioTransacaoHBM() {\n\n\t}", "private void initBoutons() {\n bMonterDomaine.setText(null);\n ...
[ "0.6084991", "0.6005564", "0.5875626", "0.58724165", "0.56731987", "0.5639871", "0.5526213", "0.5516204", "0.54792607", "0.5430571", "0.54138863", "0.5376932", "0.5360306", "0.5359575", "0.5349321", "0.53424567", "0.530162", "0.5298235", "0.52904975", "0.5287833", "0.5274779"...
0.58804756
2
fonction retournant la valeur symbole
public String getSymb() { return symb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String symbol();", "String getDisplayValue() {\n\t\treturn symbol;\n\t}", "long getSymbol();", "String getVal();", "int getSymptomTypeValue();", "public V getValue27();", "public int getSymbology() {\r\n return Symbology;\r\n }", "public int get(int symbol);", "protected char getS...
[ "0.59968764", "0.592451", "0.5897346", "0.5800603", "0.5796626", "0.5781389", "0.57729876", "0.5734769", "0.5670288", "0.56514937", "0.56348574", "0.56315833", "0.5608269", "0.5602143", "0.5602143", "0.5602143", "0.5602143", "0.5602143", "0.5602143", "0.5602143", "0.5602143",...
0.0
-1
Fonctions scanner permettant de prendre en compte la reponse du joueur
public void codeJ(int number) { String d; //Scanner scan = new Scanner(System.in); do { do{ if (App.SCANNER.hasNextInt()) { }else { System.out.println(" Entrez Uniquement un code a " + number + "chiffres"); App.SCANNER.next(); } }while(!App.SCANNER.hasNextInt()) ; this.codeHumain=App.SCANNER.nextInt(); d = Integer.toString(codeHumain); if(d.length() != number) { System.out.println(" Entrez Uniquement un code a " + number + "chiffres svp" ); }else if(d.length() == number) { } }while(d.length() != number) ; //scan.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }", "private static void scan() {\n\t\tt = la;\n\t\tla = Scanner.next();\n\t\tla.toString();\n\t\tsym = la.kind;\n\t}", "static void soustraire() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\t...
[ "0.6300859", "0.62360144", "0.61896574", "0.61669207", "0.6150262", "0.6119208", "0.60189795", "0.6011574", "0.59834456", "0.59707016", "0.59672225", "0.5886918", "0.5797518", "0.5794804", "0.5760939", "0.57354784", "0.572668", "0.5700148", "0.56925285", "0.56539047", "0.5581...
0.5322943
64
Methode retournant un string en fonction de number et number 1
public String verificationUtilisateur( int number, int number1) { final String SEPARATEUR = ""; // car va avec number char car; // car1 va avec number1 char car1; String code; StringBuilder codeSymbole = new StringBuilder() ; String proposition; code = String.valueOf(number); proposition = String.valueOf(number1); String mot[] = proposition.split(SEPARATEUR); for (int i = 0; i < mot.length; i++) { car = code.charAt(i); car1 = proposition.charAt(i); if ( car > car1) { codeSymbole.append("+"); }else if (car == car1) { codeSymbole.append("="); }else { codeSymbole.append("-"); } } //System.out.println("les indices sont" + arraylist.get(0) + arraylist.get(1) + arraylist.get(2) + arraylist.get(3)); System.out.println( codeSymbole.toString()); return codeSymbole.toString() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNum1();", "java.lang.String getNum2();", "private String parseStringtoInt(String welcome,Student s1){\n\n String time = TimeUitl.getTime(s1);\n\n String slogan = welcome + time;\n\n return slogan;\n }", "abstract String convertEnglishNumber(String number);", "voi...
[ "0.70027864", "0.6568515", "0.6519475", "0.64335644", "0.6159972", "0.6090186", "0.60526115", "0.60526115", "0.60526115", "0.6052549", "0.6026605", "0.60076123", "0.5997549", "0.5958123", "0.5930564", "0.5901475", "0.588078", "0.5878746", "0.5838235", "0.5827185", "0.5804886"...
0.5794367
21
Create a new BasicStatistic.
public BasicStatistic(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BasicStatistic(String name, long time)\n {\n this.name = name;\n this.time = time;\n }", "public SmallStatistic() {\n\n }", "public static Statistic newInstance(Statistic stat) {\n Statistic s = new Statistic();\n s.myNumMissing = stat.myNumMissing;\n s.firstx = sta...
[ "0.73694956", "0.7106063", "0.66135436", "0.65690553", "0.6345376", "0.62608474", "0.6140844", "0.61039925", "0.6103323", "0.60621077", "0.59149325", "0.58278877", "0.5735338", "0.57324195", "0.5695446", "0.56845707", "0.56691563", "0.56597304", "0.5633142", "0.5626047", "0.5...
0.8011177
0
Create a new BasicStatistic with the given time.
public BasicStatistic(String name, long time) { this.name = name; this.time = time; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BasicStatistic(String name)\n {\n this.name = name;\n }", "public SmallStatistic() {\n\n }", "public Time() {\n this(System.currentTimeMillis());\n }", "public TimeDataItem(Date time, short value) {\n this(time, new Short(value));\n }", "public MutableBlock createMuta...
[ "0.67032045", "0.57486486", "0.5739823", "0.56912094", "0.56164706", "0.5548955", "0.5520556", "0.55178994", "0.544163", "0.5420207", "0.53685564", "0.5341208", "0.5321846", "0.52694005", "0.5259094", "0.52569133", "0.52458346", "0.52380383", "0.5221012", "0.5177829", "0.5141...
0.82633
0
$ANTLR start "entryRuleSurvey" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:67:1: entryRuleSurvey returns [EObject current=null] : iv_ruleSurvey= ruleSurvey EOF ;
public final EObject entryRuleSurvey() throws RecognitionException { EObject current = null; EObject iv_ruleSurvey = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:68:2: (iv_ruleSurvey= ruleSurvey EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:69:2: iv_ruleSurvey= ruleSurvey EOF { newCompositeNode(grammarAccess.getSurveyRule()); pushFollow(FollowSets000.FOLLOW_ruleSurvey_in_entryRuleSurvey75); iv_ruleSurvey=ruleSurvey(); state._fsp--; current =iv_ruleSurvey; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleSurvey85); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleQuestion() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleQuestion = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:231:2: (iv_ruleQuestion= ruleQuesti...
[ "0.60037625", "0.58502644", "0.57854426", "0.55043083", "0.5501964", "0.5366344", "0.53220737", "0.5274024", "0.5260005", "0.52152336", "0.51845807", "0.5174078", "0.515087", "0.5126262", "0.51184374", "0.50938475", "0.5083283", "0.5059603", "0.5045177", "0.5033313", "0.50237...
0.7619094
0
$ANTLR end "entryRuleSurvey" $ANTLR start "ruleSurvey" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:76:1: ruleSurvey returns [EObject current=null] : (otherlv_0= 'survey' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'date' ( (lv_date_3_0= ruleEString ) ) )? (otherlv_4= 'description' ( (lv_description_5_0= ruleEString ) ) )? (otherlv_6= 'email' ( (lv_email_7_0= ruleEString ) ) )? ( (lv_person_8_0= rulePerson ) )? ( (lv_categories_9_0= ruleCategory ) ) ( (lv_categories_10_0= ruleCategory ) ) ) ;
public final EObject ruleSurvey() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token otherlv_2=null; Token otherlv_4=null; Token otherlv_6=null; AntlrDatatypeRuleToken lv_title_1_0 = null; AntlrDatatypeRuleToken lv_date_3_0 = null; AntlrDatatypeRuleToken lv_description_5_0 = null; AntlrDatatypeRuleToken lv_email_7_0 = null; EObject lv_person_8_0 = null; EObject lv_categories_9_0 = null; EObject lv_categories_10_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:79:28: ( (otherlv_0= 'survey' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'date' ( (lv_date_3_0= ruleEString ) ) )? (otherlv_4= 'description' ( (lv_description_5_0= ruleEString ) ) )? (otherlv_6= 'email' ( (lv_email_7_0= ruleEString ) ) )? ( (lv_person_8_0= rulePerson ) )? ( (lv_categories_9_0= ruleCategory ) ) ( (lv_categories_10_0= ruleCategory ) )* ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:80:1: (otherlv_0= 'survey' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'date' ( (lv_date_3_0= ruleEString ) ) )? (otherlv_4= 'description' ( (lv_description_5_0= ruleEString ) ) )? (otherlv_6= 'email' ( (lv_email_7_0= ruleEString ) ) )? ( (lv_person_8_0= rulePerson ) )? ( (lv_categories_9_0= ruleCategory ) ) ( (lv_categories_10_0= ruleCategory ) )* ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:80:1: (otherlv_0= 'survey' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'date' ( (lv_date_3_0= ruleEString ) ) )? (otherlv_4= 'description' ( (lv_description_5_0= ruleEString ) ) )? (otherlv_6= 'email' ( (lv_email_7_0= ruleEString ) ) )? ( (lv_person_8_0= rulePerson ) )? ( (lv_categories_9_0= ruleCategory ) ) ( (lv_categories_10_0= ruleCategory ) )* ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:80:3: otherlv_0= 'survey' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'date' ( (lv_date_3_0= ruleEString ) ) )? (otherlv_4= 'description' ( (lv_description_5_0= ruleEString ) ) )? (otherlv_6= 'email' ( (lv_email_7_0= ruleEString ) ) )? ( (lv_person_8_0= rulePerson ) )? ( (lv_categories_9_0= ruleCategory ) ) ( (lv_categories_10_0= ruleCategory ) )* { otherlv_0=(Token)match(input,11,FollowSets000.FOLLOW_11_in_ruleSurvey122); newLeafNode(otherlv_0, grammarAccess.getSurveyAccess().getSurveyKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:84:1: ( (lv_title_1_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:85:1: (lv_title_1_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:85:1: (lv_title_1_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:86:3: lv_title_1_0= ruleEString { newCompositeNode(grammarAccess.getSurveyAccess().getTitleEStringParserRuleCall_1_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleSurvey143); lv_title_1_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getSurveyRule()); } set( current, "title", lv_title_1_0, "EString"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:102:2: (otherlv_2= 'date' ( (lv_date_3_0= ruleEString ) ) )? int alt1=2; int LA1_0 = input.LA(1); if ( (LA1_0==12) ) { alt1=1; } switch (alt1) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:102:4: otherlv_2= 'date' ( (lv_date_3_0= ruleEString ) ) { otherlv_2=(Token)match(input,12,FollowSets000.FOLLOW_12_in_ruleSurvey156); newLeafNode(otherlv_2, grammarAccess.getSurveyAccess().getDateKeyword_2_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:106:1: ( (lv_date_3_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:107:1: (lv_date_3_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:107:1: (lv_date_3_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:108:3: lv_date_3_0= ruleEString { newCompositeNode(grammarAccess.getSurveyAccess().getDateEStringParserRuleCall_2_1_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleSurvey177); lv_date_3_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getSurveyRule()); } set( current, "date", lv_date_3_0, "EString"); afterParserOrEnumRuleCall(); } } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:124:4: (otherlv_4= 'description' ( (lv_description_5_0= ruleEString ) ) )? int alt2=2; int LA2_0 = input.LA(1); if ( (LA2_0==13) ) { alt2=1; } switch (alt2) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:124:6: otherlv_4= 'description' ( (lv_description_5_0= ruleEString ) ) { otherlv_4=(Token)match(input,13,FollowSets000.FOLLOW_13_in_ruleSurvey192); newLeafNode(otherlv_4, grammarAccess.getSurveyAccess().getDescriptionKeyword_3_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:128:1: ( (lv_description_5_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:129:1: (lv_description_5_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:129:1: (lv_description_5_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:130:3: lv_description_5_0= ruleEString { newCompositeNode(grammarAccess.getSurveyAccess().getDescriptionEStringParserRuleCall_3_1_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleSurvey213); lv_description_5_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getSurveyRule()); } set( current, "description", lv_description_5_0, "EString"); afterParserOrEnumRuleCall(); } } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:146:4: (otherlv_6= 'email' ( (lv_email_7_0= ruleEString ) ) )? int alt3=2; int LA3_0 = input.LA(1); if ( (LA3_0==14) ) { alt3=1; } switch (alt3) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:146:6: otherlv_6= 'email' ( (lv_email_7_0= ruleEString ) ) { otherlv_6=(Token)match(input,14,FollowSets000.FOLLOW_14_in_ruleSurvey228); newLeafNode(otherlv_6, grammarAccess.getSurveyAccess().getEmailKeyword_4_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:150:1: ( (lv_email_7_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:151:1: (lv_email_7_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:151:1: (lv_email_7_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:152:3: lv_email_7_0= ruleEString { newCompositeNode(grammarAccess.getSurveyAccess().getEmailEStringParserRuleCall_4_1_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleSurvey249); lv_email_7_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getSurveyRule()); } set( current, "email", lv_email_7_0, "EString"); afterParserOrEnumRuleCall(); } } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:168:4: ( (lv_person_8_0= rulePerson ) )? int alt4=2; int LA4_0 = input.LA(1); if ( (LA4_0==16) ) { alt4=1; } switch (alt4) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:169:1: (lv_person_8_0= rulePerson ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:169:1: (lv_person_8_0= rulePerson ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:170:3: lv_person_8_0= rulePerson { newCompositeNode(grammarAccess.getSurveyAccess().getPersonPersonParserRuleCall_5_0()); pushFollow(FollowSets000.FOLLOW_rulePerson_in_ruleSurvey272); lv_person_8_0=rulePerson(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getSurveyRule()); } set( current, "person", lv_person_8_0, "Person"); afterParserOrEnumRuleCall(); } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:186:3: ( (lv_categories_9_0= ruleCategory ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:187:1: (lv_categories_9_0= ruleCategory ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:187:1: (lv_categories_9_0= ruleCategory ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:188:3: lv_categories_9_0= ruleCategory { newCompositeNode(grammarAccess.getSurveyAccess().getCategoriesCategoryParserRuleCall_6_0()); pushFollow(FollowSets000.FOLLOW_ruleCategory_in_ruleSurvey294); lv_categories_9_0=ruleCategory(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getSurveyRule()); } add( current, "categories", lv_categories_9_0, "Category"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:204:2: ( (lv_categories_10_0= ruleCategory ) )* loop5: do { int alt5=2; int LA5_0 = input.LA(1); if ( (LA5_0==15) ) { alt5=1; } switch (alt5) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:205:1: (lv_categories_10_0= ruleCategory ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:205:1: (lv_categories_10_0= ruleCategory ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:206:3: lv_categories_10_0= ruleCategory { newCompositeNode(grammarAccess.getSurveyAccess().getCategoriesCategoryParserRuleCall_7_0()); pushFollow(FollowSets000.FOLLOW_ruleCategory_in_ruleSurvey315); lv_categories_10_0=ruleCategory(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getSurveyRule()); } add( current, "categories", lv_categories_10_0, "Category"); afterParserOrEnumRuleCall(); } } break; default : break loop5; } } while (true); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleSurvey() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSurvey = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:68:2: (iv_ruleSurvey= ruleSurvey EOF )\...
[ "0.68383765", "0.55994403", "0.526387", "0.49992448", "0.48889756", "0.48673066", "0.48620978", "0.46759817", "0.4670594", "0.46695006", "0.46566802", "0.46505544", "0.46303174", "0.45960766", "0.4575717", "0.45654204", "0.45480204", "0.45444316", "0.4537824", "0.4513855", "0...
0.7949295
0
$ANTLR end "ruleSurvey" $ANTLR start "entryRuleQuestion" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:230:1: entryRuleQuestion returns [EObject current=null] : iv_ruleQuestion= ruleQuestion EOF ;
public final EObject entryRuleQuestion() throws RecognitionException { EObject current = null; EObject iv_ruleQuestion = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:231:2: (iv_ruleQuestion= ruleQuestion EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:232:2: iv_ruleQuestion= ruleQuestion EOF { newCompositeNode(grammarAccess.getQuestionRule()); pushFollow(FollowSets000.FOLLOW_ruleQuestion_in_entryRuleQuestion352); iv_ruleQuestion=ruleQuestion(); state._fsp--; current =iv_ruleQuestion; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleQuestion362); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleSurvey() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSurvey = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:68:2: (iv_ruleSurvey= ruleSurvey EOF )\...
[ "0.7356619", "0.63507867", "0.5874944", "0.58673185", "0.5629018", "0.5471044", "0.53496677", "0.5342853", "0.5277282", "0.5260223", "0.5227275", "0.5222776", "0.5190418", "0.5188217", "0.51782954", "0.5176983", "0.5147954", "0.51307595", "0.5089399", "0.50825894", "0.5069377...
0.7402028
0
$ANTLR end "entryRuleQuestion" $ANTLR start "ruleQuestion" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:239:1: ruleQuestion returns [EObject current=null] : (this_MultipleChoice_Impl_0= ruleMultipleChoice_Impl | this_Ranking_1= ruleRanking | this_Rating_2= ruleRating | this_YesNo_3= ruleYesNo | this_OpenField_4= ruleOpenField | this_MutuallyExclusive_Impl_5= ruleMutuallyExclusive_Impl ) ;
public final EObject ruleQuestion() throws RecognitionException { EObject current = null; EObject this_MultipleChoice_Impl_0 = null; EObject this_Ranking_1 = null; EObject this_Rating_2 = null; EObject this_YesNo_3 = null; EObject this_OpenField_4 = null; EObject this_MutuallyExclusive_Impl_5 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:242:28: ( (this_MultipleChoice_Impl_0= ruleMultipleChoice_Impl | this_Ranking_1= ruleRanking | this_Rating_2= ruleRating | this_YesNo_3= ruleYesNo | this_OpenField_4= ruleOpenField | this_MutuallyExclusive_Impl_5= ruleMutuallyExclusive_Impl ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:243:1: (this_MultipleChoice_Impl_0= ruleMultipleChoice_Impl | this_Ranking_1= ruleRanking | this_Rating_2= ruleRating | this_YesNo_3= ruleYesNo | this_OpenField_4= ruleOpenField | this_MutuallyExclusive_Impl_5= ruleMutuallyExclusive_Impl ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:243:1: (this_MultipleChoice_Impl_0= ruleMultipleChoice_Impl | this_Ranking_1= ruleRanking | this_Rating_2= ruleRating | this_YesNo_3= ruleYesNo | this_OpenField_4= ruleOpenField | this_MutuallyExclusive_Impl_5= ruleMutuallyExclusive_Impl ) int alt6=6; alt6 = dfa6.predict(input); switch (alt6) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:244:5: this_MultipleChoice_Impl_0= ruleMultipleChoice_Impl { newCompositeNode(grammarAccess.getQuestionAccess().getMultipleChoice_ImplParserRuleCall_0()); pushFollow(FollowSets000.FOLLOW_ruleMultipleChoice_Impl_in_ruleQuestion409); this_MultipleChoice_Impl_0=ruleMultipleChoice_Impl(); state._fsp--; current = this_MultipleChoice_Impl_0; afterParserOrEnumRuleCall(); } break; case 2 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:254:5: this_Ranking_1= ruleRanking { newCompositeNode(grammarAccess.getQuestionAccess().getRankingParserRuleCall_1()); pushFollow(FollowSets000.FOLLOW_ruleRanking_in_ruleQuestion436); this_Ranking_1=ruleRanking(); state._fsp--; current = this_Ranking_1; afterParserOrEnumRuleCall(); } break; case 3 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:264:5: this_Rating_2= ruleRating { newCompositeNode(grammarAccess.getQuestionAccess().getRatingParserRuleCall_2()); pushFollow(FollowSets000.FOLLOW_ruleRating_in_ruleQuestion463); this_Rating_2=ruleRating(); state._fsp--; current = this_Rating_2; afterParserOrEnumRuleCall(); } break; case 4 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:274:5: this_YesNo_3= ruleYesNo { newCompositeNode(grammarAccess.getQuestionAccess().getYesNoParserRuleCall_3()); pushFollow(FollowSets000.FOLLOW_ruleYesNo_in_ruleQuestion490); this_YesNo_3=ruleYesNo(); state._fsp--; current = this_YesNo_3; afterParserOrEnumRuleCall(); } break; case 5 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:284:5: this_OpenField_4= ruleOpenField { newCompositeNode(grammarAccess.getQuestionAccess().getOpenFieldParserRuleCall_4()); pushFollow(FollowSets000.FOLLOW_ruleOpenField_in_ruleQuestion517); this_OpenField_4=ruleOpenField(); state._fsp--; current = this_OpenField_4; afterParserOrEnumRuleCall(); } break; case 6 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:294:5: this_MutuallyExclusive_Impl_5= ruleMutuallyExclusive_Impl { newCompositeNode(grammarAccess.getQuestionAccess().getMutuallyExclusive_ImplParserRuleCall_5()); pushFollow(FollowSets000.FOLLOW_ruleMutuallyExclusive_Impl_in_ruleQuestion544); this_MutuallyExclusive_Impl_5=ruleMutuallyExclusive_Impl(); state._fsp--; current = this_MutuallyExclusive_Impl_5; afterParserOrEnumRuleCall(); } break; } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleQuestion() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleQuestion = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:231:2: (iv_ruleQuestion= ruleQuesti...
[ "0.7126333", "0.6329105", "0.59615797", "0.5886596", "0.5789652", "0.5650688", "0.55568385", "0.5399678", "0.5374751", "0.5322374", "0.5292341", "0.5257657", "0.52514595", "0.5241507", "0.52390635", "0.5199179", "0.51642674", "0.5103665", "0.5089286", "0.50313914", "0.4999839...
0.7079348
1
$ANTLR end "ruleQuestion" $ANTLR start "entryRuleCategory" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:310:1: entryRuleCategory returns [EObject current=null] : iv_ruleCategory= ruleCategory EOF ;
public final EObject entryRuleCategory() throws RecognitionException { EObject current = null; EObject iv_ruleCategory = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:311:2: (iv_ruleCategory= ruleCategory EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:312:2: iv_ruleCategory= ruleCategory EOF { newCompositeNode(grammarAccess.getCategoryRule()); pushFollow(FollowSets000.FOLLOW_ruleCategory_in_entryRuleCategory579); iv_ruleCategory=ruleCategory(); state._fsp--; current =iv_ruleCategory; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleCategory589); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleQuestion() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleQuestion = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:231:2: (iv_ruleQuestion= ruleQuesti...
[ "0.7072233", "0.61689985", "0.5878466", "0.58459544", "0.5825522", "0.58045566", "0.5773307", "0.571832", "0.570772", "0.5657622", "0.56363726", "0.56337684", "0.5616303", "0.55903125", "0.55880916", "0.55625993", "0.5556634", "0.5529585", "0.55267304", "0.5505038", "0.549301...
0.7295479
0
$ANTLR end "entryRuleCategory" $ANTLR start "ruleCategory" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:319:1: ruleCategory returns [EObject current=null] : (otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) ) ) ;
public final EObject ruleCategory() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token otherlv_2=null; AntlrDatatypeRuleToken lv_title_1_0 = null; AntlrDatatypeRuleToken lv_description_3_0 = null; EObject lv_pages_4_0 = null; EObject lv_pages_5_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:322:28: ( (otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )* ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:323:1: (otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )* ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:323:1: (otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )* ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:323:3: otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )* { otherlv_0=(Token)match(input,15,FollowSets000.FOLLOW_15_in_ruleCategory626); newLeafNode(otherlv_0, grammarAccess.getCategoryAccess().getCategoryKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:327:1: ( (lv_title_1_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:328:1: (lv_title_1_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:328:1: (lv_title_1_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:329:3: lv_title_1_0= ruleEString { newCompositeNode(grammarAccess.getCategoryAccess().getTitleEStringParserRuleCall_1_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleCategory647); lv_title_1_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getCategoryRule()); } set( current, "title", lv_title_1_0, "EString"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:345:2: (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? int alt7=2; int LA7_0 = input.LA(1); if ( (LA7_0==13) ) { alt7=1; } switch (alt7) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:345:4: otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) { otherlv_2=(Token)match(input,13,FollowSets000.FOLLOW_13_in_ruleCategory660); newLeafNode(otherlv_2, grammarAccess.getCategoryAccess().getDescriptionKeyword_2_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:349:1: ( (lv_description_3_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:350:1: (lv_description_3_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:350:1: (lv_description_3_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:351:3: lv_description_3_0= ruleEString { newCompositeNode(grammarAccess.getCategoryAccess().getDescriptionEStringParserRuleCall_2_1_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleCategory681); lv_description_3_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getCategoryRule()); } set( current, "description", lv_description_3_0, "EString"); afterParserOrEnumRuleCall(); } } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:367:4: ( (lv_pages_4_0= rulePage ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:368:1: (lv_pages_4_0= rulePage ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:368:1: (lv_pages_4_0= rulePage ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:369:3: lv_pages_4_0= rulePage { newCompositeNode(grammarAccess.getCategoryAccess().getPagesPageParserRuleCall_3_0()); pushFollow(FollowSets000.FOLLOW_rulePage_in_ruleCategory704); lv_pages_4_0=rulePage(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getCategoryRule()); } add( current, "pages", lv_pages_4_0, "Page"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:385:2: ( (lv_pages_5_0= rulePage ) )* loop8: do { int alt8=2; int LA8_0 = input.LA(1); if ( (LA8_0==18) ) { alt8=1; } switch (alt8) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:386:1: (lv_pages_5_0= rulePage ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:386:1: (lv_pages_5_0= rulePage ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:387:3: lv_pages_5_0= rulePage { newCompositeNode(grammarAccess.getCategoryAccess().getPagesPageParserRuleCall_4_0()); pushFollow(FollowSets000.FOLLOW_rulePage_in_ruleCategory725); lv_pages_5_0=rulePage(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getCategoryRule()); } add( current, "pages", lv_pages_5_0, "Page"); afterParserOrEnumRuleCall(); } } break; default : break loop8; } } while (true); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleCategory() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCategory = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:311:2: (iv_ruleCategory= ruleCatego...
[ "0.742977", "0.6007644", "0.59665704", "0.5894866", "0.5861025", "0.5782492", "0.57595116", "0.57590604", "0.5745869", "0.5737876", "0.5710159", "0.5710159", "0.57090443", "0.56963354", "0.56963354", "0.56963354", "0.56963354", "0.56963354", "0.56963354", "0.56963354", "0.568...
0.7808025
0
$ANTLR end "ruleCategory" $ANTLR start "entryRuleEString" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:411:1: entryRuleEString returns [String current=null] : iv_ruleEString= ruleEString EOF ;
public final String entryRuleEString() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleEString = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:412:2: (iv_ruleEString= ruleEString EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:413:2: iv_ruleEString= ruleEString EOF { newCompositeNode(grammarAccess.getEStringRule()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_entryRuleEString763); iv_ruleEString=ruleEString(); state._fsp--; current =iv_ruleEString.getText(); match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleEString774); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String entryRuleEString() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleEString = null;\n\n\n try {\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:297:2: (iv_ruleEString= rul...
[ "0.7134351", "0.70920587", "0.69528216", "0.6903711", "0.68982863", "0.67451274", "0.6639783", "0.64268804", "0.6410477", "0.6401519", "0.63780487", "0.6233116", "0.6232002", "0.6160365", "0.6153271", "0.6142604", "0.6074952", "0.6073308", "0.60244375", "0.5978221", "0.596019...
0.71086663
1
$ANTLR end "entryRuleEString" $ANTLR start "ruleEString" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:420:1: ruleEString returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID ) ;
public final AntlrDatatypeRuleToken ruleEString() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); Token this_STRING_0=null; Token this_ID_1=null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:423:28: ( (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:424:1: (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:424:1: (this_STRING_0= RULE_STRING | this_ID_1= RULE_ID ) int alt9=2; int LA9_0 = input.LA(1); if ( (LA9_0==RULE_STRING) ) { alt9=1; } else if ( (LA9_0==RULE_ID) ) { alt9=2; } else { NoViableAltException nvae = new NoViableAltException("", 9, 0, input); throw nvae; } switch (alt9) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:424:6: this_STRING_0= RULE_STRING { this_STRING_0=(Token)match(input,RULE_STRING,FollowSets000.FOLLOW_RULE_STRING_in_ruleEString814); current.merge(this_STRING_0); newLeafNode(this_STRING_0, grammarAccess.getEStringAccess().getSTRINGTerminalRuleCall_0()); } break; case 2 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:432:10: this_ID_1= RULE_ID { this_ID_1=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleEString840); current.merge(this_ID_1); newLeafNode(this_ID_1, grammarAccess.getEStringAccess().getIDTerminalRuleCall_1()); } break; } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final AntlrDatatypeRuleToken ruleEString() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_STRING_0=null;\n Token this_ID_1=null;\n\n enterRule(); \n \n try {\n // ../ac.soton.xtext.contex...
[ "0.77998036", "0.760817", "0.7552627", "0.75394416", "0.7508999", "0.7499643", "0.7440575", "0.74213445", "0.73686326", "0.7344084", "0.71783406", "0.7122234", "0.7101149", "0.7063082", "0.7002792", "0.69888216", "0.6983083", "0.6939977", "0.6823388", "0.66136116", "0.6450690...
0.7834501
0
$ANTLR end "ruleEString" $ANTLR start "entryRulePerson" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:447:1: entryRulePerson returns [EObject current=null] : iv_rulePerson= rulePerson EOF ;
public final EObject entryRulePerson() throws RecognitionException { EObject current = null; EObject iv_rulePerson = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:448:2: (iv_rulePerson= rulePerson EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:449:2: iv_rulePerson= rulePerson EOF { newCompositeNode(grammarAccess.getPersonRule()); pushFollow(FollowSets000.FOLLOW_rulePerson_in_entryRulePerson885); iv_rulePerson=rulePerson(); state._fsp--; current =iv_rulePerson; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRulePerson895); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRulePerson() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulePerson = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:223:47: (iv_rulePerson= rulePerson EOF )\r\n // InternalEsportDsl.g:224:2: iv_rulePerson= ru...
[ "0.7570126", "0.6738845", "0.6544922", "0.5833189", "0.5189239", "0.5108656", "0.5073982", "0.5067819", "0.50169116", "0.49924687", "0.4950285", "0.4943927", "0.49292022", "0.4909684", "0.48984218", "0.4876244", "0.48307168", "0.48050302", "0.4802366", "0.4796913", "0.4794415...
0.74706703
1
$ANTLR end "entryRulePerson" $ANTLR start "rulePerson" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:456:1: rulePerson returns [EObject current=null] : (otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) ) ) ;
public final EObject rulePerson() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token otherlv_2=null; EObject lv_attribute_1_0 = null; EObject lv_attribute_3_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:459:28: ( (otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:460:1: (otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:460:1: (otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:460:3: otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* { otherlv_0=(Token)match(input,16,FollowSets000.FOLLOW_16_in_rulePerson932); newLeafNode(otherlv_0, grammarAccess.getPersonAccess().getPersonKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:464:1: ( (lv_attribute_1_0= rulePersonAttribute ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:465:1: (lv_attribute_1_0= rulePersonAttribute ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:465:1: (lv_attribute_1_0= rulePersonAttribute ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:466:3: lv_attribute_1_0= rulePersonAttribute { newCompositeNode(grammarAccess.getPersonAccess().getAttributePersonAttributeParserRuleCall_1_0()); pushFollow(FollowSets000.FOLLOW_rulePersonAttribute_in_rulePerson953); lv_attribute_1_0=rulePersonAttribute(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getPersonRule()); } add( current, "attribute", lv_attribute_1_0, "PersonAttribute"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:482:2: (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* loop10: do { int alt10=2; int LA10_0 = input.LA(1); if ( (LA10_0==17) ) { alt10=1; } switch (alt10) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:482:4: otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) { otherlv_2=(Token)match(input,17,FollowSets000.FOLLOW_17_in_rulePerson966); newLeafNode(otherlv_2, grammarAccess.getPersonAccess().getCommaKeyword_2_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:486:1: ( (lv_attribute_3_0= rulePersonAttribute ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:487:1: (lv_attribute_3_0= rulePersonAttribute ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:487:1: (lv_attribute_3_0= rulePersonAttribute ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:488:3: lv_attribute_3_0= rulePersonAttribute { newCompositeNode(grammarAccess.getPersonAccess().getAttributePersonAttributeParserRuleCall_2_1_0()); pushFollow(FollowSets000.FOLLOW_rulePersonAttribute_in_rulePerson987); lv_attribute_3_0=rulePersonAttribute(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getPersonRule()); } add( current, "attribute", lv_attribute_3_0, "PersonAttribute"); afterParserOrEnumRuleCall(); } } } break; default : break loop10; } } while (true); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRulePerson() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulePerson = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:223:47: (iv_rulePerson= rulePerson EOF )\r\n // InternalEsportDsl.g:224:2: iv_rulePerson= ru...
[ "0.71135193", "0.70201933", "0.68912125", "0.6335837", "0.55232173", "0.5273771", "0.50476587", "0.5036199", "0.49316525", "0.49164385", "0.48802066", "0.48734763", "0.4872005", "0.48419347", "0.4761845", "0.4754154", "0.47494853", "0.47017917", "0.46635383", "0.46616238", "0...
0.8029919
0
$ANTLR end "rulePerson" $ANTLR start "entryRulePage" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:512:1: entryRulePage returns [EObject current=null] : iv_rulePage= rulePage EOF ;
public final EObject entryRulePage() throws RecognitionException { EObject current = null; EObject iv_rulePage = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:513:2: (iv_rulePage= rulePage EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:514:2: iv_rulePage= rulePage EOF { newCompositeNode(grammarAccess.getPageRule()); pushFollow(FollowSets000.FOLLOW_rulePage_in_entryRulePage1025); iv_rulePage=rulePage(); state._fsp--; current =iv_rulePage; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRulePage1035); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRulePerson() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePerson = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:448:2: (iv_rulePerson= rulePerson EOF )...
[ "0.7329677", "0.71726733", "0.6606814", "0.55999815", "0.5360745", "0.535084", "0.5317829", "0.5295211", "0.5274562", "0.5250091", "0.5241351", "0.5228169", "0.5183163", "0.51551086", "0.51418656", "0.51412857", "0.5139374", "0.51295316", "0.51170725", "0.5096072", "0.508152"...
0.6129015
3
$ANTLR end "entryRulePage" $ANTLR start "rulePage" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:521:1: rulePage returns [EObject current=null] : (otherlv_0= 'page' ( (lv_questions_1_0= ruleQuestion ) ) ( (lv_questions_2_0= ruleQuestion ) ) ) ;
public final EObject rulePage() throws RecognitionException { EObject current = null; Token otherlv_0=null; EObject lv_questions_1_0 = null; EObject lv_questions_2_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:524:28: ( (otherlv_0= 'page' ( (lv_questions_1_0= ruleQuestion ) ) ( (lv_questions_2_0= ruleQuestion ) )* ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:525:1: (otherlv_0= 'page' ( (lv_questions_1_0= ruleQuestion ) ) ( (lv_questions_2_0= ruleQuestion ) )* ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:525:1: (otherlv_0= 'page' ( (lv_questions_1_0= ruleQuestion ) ) ( (lv_questions_2_0= ruleQuestion ) )* ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:525:3: otherlv_0= 'page' ( (lv_questions_1_0= ruleQuestion ) ) ( (lv_questions_2_0= ruleQuestion ) )* { otherlv_0=(Token)match(input,18,FollowSets000.FOLLOW_18_in_rulePage1072); newLeafNode(otherlv_0, grammarAccess.getPageAccess().getPageKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:529:1: ( (lv_questions_1_0= ruleQuestion ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:530:1: (lv_questions_1_0= ruleQuestion ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:530:1: (lv_questions_1_0= ruleQuestion ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:531:3: lv_questions_1_0= ruleQuestion { newCompositeNode(grammarAccess.getPageAccess().getQuestionsQuestionParserRuleCall_1_0()); pushFollow(FollowSets000.FOLLOW_ruleQuestion_in_rulePage1093); lv_questions_1_0=ruleQuestion(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getPageRule()); } add( current, "questions", lv_questions_1_0, "Question"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:547:2: ( (lv_questions_2_0= ruleQuestion ) )* loop11: do { int alt11=2; int LA11_0 = input.LA(1); if ( (LA11_0==25) ) { alt11=1; } switch (alt11) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:548:1: (lv_questions_2_0= ruleQuestion ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:548:1: (lv_questions_2_0= ruleQuestion ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:549:3: lv_questions_2_0= ruleQuestion { newCompositeNode(grammarAccess.getPageAccess().getQuestionsQuestionParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleQuestion_in_rulePage1114); lv_questions_2_0=ruleQuestion(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getPageRule()); } add( current, "questions", lv_questions_2_0, "Question"); afterParserOrEnumRuleCall(); } } break; default : break loop11; } } while (true); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRulePage() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePage = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:513:2: (iv_rulePage= rulePage EOF )\n ...
[ "0.71472013", "0.5303538", "0.52602017", "0.5161474", "0.51199794", "0.49938276", "0.49183935", "0.4913997", "0.48658276", "0.48351714", "0.4753498", "0.47499156", "0.47447366", "0.47301322", "0.47261226", "0.47209826", "0.471973", "0.4710774", "0.47081283", "0.46978498", "0....
0.7818845
0
$ANTLR end "rulePage" $ANTLR start "entryRuleAnswer" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:575:1: entryRuleAnswer returns [EObject current=null] : iv_ruleAnswer= ruleAnswer EOF ;
public final EObject entryRuleAnswer() throws RecognitionException { EObject current = null; EObject iv_ruleAnswer = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:576:2: (iv_ruleAnswer= ruleAnswer EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:577:2: iv_ruleAnswer= ruleAnswer EOF { newCompositeNode(grammarAccess.getAnswerRule()); pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_entryRuleAnswer1153); iv_ruleAnswer=ruleAnswer(); state._fsp--; current =iv_ruleAnswer; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAnswer1163); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRulePage() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePage = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:513:2: (iv_rulePage= rulePage EOF )\n ...
[ "0.66642696", "0.6353012", "0.5960239", "0.59218764", "0.59111786", "0.5898327", "0.585614", "0.5853993", "0.58147776", "0.58147395", "0.57988006", "0.57698923", "0.5734937", "0.5722318", "0.5711792", "0.5702463", "0.5689202", "0.5662416", "0.56618947", "0.5626152", "0.562159...
0.74265057
0
$ANTLR end "entryRuleAnswer" $ANTLR start "ruleAnswer" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:584:1: ruleAnswer returns [EObject current=null] : ( () otherlv_1= 'A' ( (lv_description_2_0= ruleEString ) ) ( ( (lv_isUserInputAllowed_3_0= '[' ) ) otherlv_4= 'input' otherlv_5= ']' )? (otherlv_6= 'sub' ( (lv_subquestion_7_0= ruleQuestion ) ) ( (lv_subquestion_8_0= ruleQuestion ) ) otherlv_9= 'end' )? ) ;
public final EObject ruleAnswer() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token lv_isUserInputAllowed_3_0=null; Token otherlv_4=null; Token otherlv_5=null; Token otherlv_6=null; Token otherlv_9=null; AntlrDatatypeRuleToken lv_description_2_0 = null; EObject lv_subquestion_7_0 = null; EObject lv_subquestion_8_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:587:28: ( ( () otherlv_1= 'A' ( (lv_description_2_0= ruleEString ) ) ( ( (lv_isUserInputAllowed_3_0= '[' ) ) otherlv_4= 'input' otherlv_5= ']' )? (otherlv_6= 'sub' ( (lv_subquestion_7_0= ruleQuestion ) ) ( (lv_subquestion_8_0= ruleQuestion ) )* otherlv_9= 'end' )? ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:588:1: ( () otherlv_1= 'A' ( (lv_description_2_0= ruleEString ) ) ( ( (lv_isUserInputAllowed_3_0= '[' ) ) otherlv_4= 'input' otherlv_5= ']' )? (otherlv_6= 'sub' ( (lv_subquestion_7_0= ruleQuestion ) ) ( (lv_subquestion_8_0= ruleQuestion ) )* otherlv_9= 'end' )? ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:588:1: ( () otherlv_1= 'A' ( (lv_description_2_0= ruleEString ) ) ( ( (lv_isUserInputAllowed_3_0= '[' ) ) otherlv_4= 'input' otherlv_5= ']' )? (otherlv_6= 'sub' ( (lv_subquestion_7_0= ruleQuestion ) ) ( (lv_subquestion_8_0= ruleQuestion ) )* otherlv_9= 'end' )? ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:588:2: () otherlv_1= 'A' ( (lv_description_2_0= ruleEString ) ) ( ( (lv_isUserInputAllowed_3_0= '[' ) ) otherlv_4= 'input' otherlv_5= ']' )? (otherlv_6= 'sub' ( (lv_subquestion_7_0= ruleQuestion ) ) ( (lv_subquestion_8_0= ruleQuestion ) )* otherlv_9= 'end' )? { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:588:2: () // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:589:5: { current = forceCreateModelElement( grammarAccess.getAnswerAccess().getAnswerAction_0(), current); } otherlv_1=(Token)match(input,19,FollowSets000.FOLLOW_19_in_ruleAnswer1209); newLeafNode(otherlv_1, grammarAccess.getAnswerAccess().getAKeyword_1()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:598:1: ( (lv_description_2_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:599:1: (lv_description_2_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:599:1: (lv_description_2_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:600:3: lv_description_2_0= ruleEString { newCompositeNode(grammarAccess.getAnswerAccess().getDescriptionEStringParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleAnswer1230); lv_description_2_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getAnswerRule()); } set( current, "description", lv_description_2_0, "EString"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:616:2: ( ( (lv_isUserInputAllowed_3_0= '[' ) ) otherlv_4= 'input' otherlv_5= ']' )? int alt12=2; int LA12_0 = input.LA(1); if ( (LA12_0==20) ) { alt12=1; } switch (alt12) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:616:3: ( (lv_isUserInputAllowed_3_0= '[' ) ) otherlv_4= 'input' otherlv_5= ']' { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:616:3: ( (lv_isUserInputAllowed_3_0= '[' ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:617:1: (lv_isUserInputAllowed_3_0= '[' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:617:1: (lv_isUserInputAllowed_3_0= '[' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:618:3: lv_isUserInputAllowed_3_0= '[' { lv_isUserInputAllowed_3_0=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleAnswer1249); newLeafNode(lv_isUserInputAllowed_3_0, grammarAccess.getAnswerAccess().getIsUserInputAllowedLeftSquareBracketKeyword_3_0_0()); if (current==null) { current = createModelElement(grammarAccess.getAnswerRule()); } setWithLastConsumed(current, "isUserInputAllowed", true, "["); } } otherlv_4=(Token)match(input,21,FollowSets000.FOLLOW_21_in_ruleAnswer1274); newLeafNode(otherlv_4, grammarAccess.getAnswerAccess().getInputKeyword_3_1()); otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleAnswer1286); newLeafNode(otherlv_5, grammarAccess.getAnswerAccess().getRightSquareBracketKeyword_3_2()); } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:639:3: (otherlv_6= 'sub' ( (lv_subquestion_7_0= ruleQuestion ) ) ( (lv_subquestion_8_0= ruleQuestion ) )* otherlv_9= 'end' )? int alt14=2; int LA14_0 = input.LA(1); if ( (LA14_0==23) ) { alt14=1; } switch (alt14) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:639:5: otherlv_6= 'sub' ( (lv_subquestion_7_0= ruleQuestion ) ) ( (lv_subquestion_8_0= ruleQuestion ) )* otherlv_9= 'end' { otherlv_6=(Token)match(input,23,FollowSets000.FOLLOW_23_in_ruleAnswer1301); newLeafNode(otherlv_6, grammarAccess.getAnswerAccess().getSubKeyword_4_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:643:1: ( (lv_subquestion_7_0= ruleQuestion ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:644:1: (lv_subquestion_7_0= ruleQuestion ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:644:1: (lv_subquestion_7_0= ruleQuestion ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:645:3: lv_subquestion_7_0= ruleQuestion { newCompositeNode(grammarAccess.getAnswerAccess().getSubquestionQuestionParserRuleCall_4_1_0()); pushFollow(FollowSets000.FOLLOW_ruleQuestion_in_ruleAnswer1322); lv_subquestion_7_0=ruleQuestion(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getAnswerRule()); } add( current, "subquestion", lv_subquestion_7_0, "Question"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:661:2: ( (lv_subquestion_8_0= ruleQuestion ) )* loop13: do { int alt13=2; int LA13_0 = input.LA(1); if ( (LA13_0==25) ) { alt13=1; } switch (alt13) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:662:1: (lv_subquestion_8_0= ruleQuestion ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:662:1: (lv_subquestion_8_0= ruleQuestion ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:663:3: lv_subquestion_8_0= ruleQuestion { newCompositeNode(grammarAccess.getAnswerAccess().getSubquestionQuestionParserRuleCall_4_2_0()); pushFollow(FollowSets000.FOLLOW_ruleQuestion_in_ruleAnswer1343); lv_subquestion_8_0=ruleQuestion(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getAnswerRule()); } add( current, "subquestion", lv_subquestion_8_0, "Question"); afterParserOrEnumRuleCall(); } } break; default : break loop13; } } while (true); otherlv_9=(Token)match(input,24,FollowSets000.FOLLOW_24_in_ruleAnswer1356); newLeafNode(otherlv_9, grammarAccess.getAnswerAccess().getEndKeyword_4_3()); } break; } } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleAnswer() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAnswer = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:576:2: (iv_ruleAnswer= ruleAnswer EOF )...
[ "0.7207248", "0.61815315", "0.6023971", "0.5696562", "0.5687099", "0.56074244", "0.56021065", "0.5576269", "0.55412036", "0.5515599", "0.5512378", "0.5452022", "0.53988475", "0.5363525", "0.5347671", "0.53171587", "0.5302802", "0.5299017", "0.5278907", "0.5205084", "0.5201795...
0.80908674
0
$ANTLR end "ruleAnswer" $ANTLR start "entryRuleMultipleChoice_Impl" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:691:1: entryRuleMultipleChoice_Impl returns [EObject current=null] : iv_ruleMultipleChoice_Impl= ruleMultipleChoice_Impl EOF ;
public final EObject entryRuleMultipleChoice_Impl() throws RecognitionException { EObject current = null; EObject iv_ruleMultipleChoice_Impl = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:692:2: (iv_ruleMultipleChoice_Impl= ruleMultipleChoice_Impl EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:693:2: iv_ruleMultipleChoice_Impl= ruleMultipleChoice_Impl EOF { newCompositeNode(grammarAccess.getMultipleChoice_ImplRule()); pushFollow(FollowSets000.FOLLOW_ruleMultipleChoice_Impl_in_entryRuleMultipleChoice_Impl1394); iv_ruleMultipleChoice_Impl=ruleMultipleChoice_Impl(); state._fsp--; current =iv_ruleMultipleChoice_Impl; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleMultipleChoice_Impl1404); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleAnswer() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAnswer = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:576:2: (iv_ruleAnswer= ruleAnswer EOF )...
[ "0.58298856", "0.57378316", "0.57319224", "0.5694908", "0.5559474", "0.552364", "0.5521337", "0.5505893", "0.548074", "0.5453197", "0.53044397", "0.53021145", "0.5237521", "0.52221763", "0.5150464", "0.5146354", "0.51326317", "0.50738364", "0.50518095", "0.50292045", "0.49832...
0.7481388
0
$ANTLR end "entryRuleMultipleChoice_Impl" $ANTLR start "ruleMultipleChoice_Impl" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:700:1: ruleMultipleChoice_Impl returns [EObject current=null] : (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) ) ) ;
public final EObject ruleMultipleChoice_Impl() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_isMandatory_1_0=null; Token otherlv_3=null; Token otherlv_5=null; Token otherlv_7=null; AntlrDatatypeRuleToken lv_questionText_2_0 = null; AntlrDatatypeRuleToken lv_min_4_0 = null; AntlrDatatypeRuleToken lv_max_6_0 = null; EObject lv_answers_8_0 = null; EObject lv_answers_9_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:703:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )* ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:704:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )* ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:704:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )* ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:704:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )* { otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleMultipleChoice_Impl1441); newLeafNode(otherlv_0, grammarAccess.getMultipleChoice_ImplAccess().getQKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:708:1: ( (lv_isMandatory_1_0= '*' ) )? int alt15=2; int LA15_0 = input.LA(1); if ( (LA15_0==26) ) { alt15=1; } switch (alt15) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:709:1: (lv_isMandatory_1_0= '*' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:709:1: (lv_isMandatory_1_0= '*' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:710:3: lv_isMandatory_1_0= '*' { lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleMultipleChoice_Impl1459); newLeafNode(lv_isMandatory_1_0, grammarAccess.getMultipleChoice_ImplAccess().getIsMandatoryAsteriskKeyword_1_0()); if (current==null) { current = createModelElement(grammarAccess.getMultipleChoice_ImplRule()); } setWithLastConsumed(current, "isMandatory", true, "*"); } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:723:3: ( (lv_questionText_2_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:724:1: (lv_questionText_2_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:724:1: (lv_questionText_2_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:725:3: lv_questionText_2_0= ruleEString { newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getQuestionTextEStringParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleMultipleChoice_Impl1494); lv_questionText_2_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule()); } set( current, "questionText", lv_questionText_2_0, "EString"); afterParserOrEnumRuleCall(); } } otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleMultipleChoice_Impl1506); newLeafNode(otherlv_3, grammarAccess.getMultipleChoice_ImplAccess().getLeftSquareBracketKeyword_3()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:745:1: ( (lv_min_4_0= ruleEInt ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:746:1: (lv_min_4_0= ruleEInt ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:746:1: (lv_min_4_0= ruleEInt ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:747:3: lv_min_4_0= ruleEInt { newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getMinEIntParserRuleCall_4_0()); pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleMultipleChoice_Impl1527); lv_min_4_0=ruleEInt(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule()); } set( current, "min", lv_min_4_0, "EInt"); afterParserOrEnumRuleCall(); } } otherlv_5=(Token)match(input,27,FollowSets000.FOLLOW_27_in_ruleMultipleChoice_Impl1539); newLeafNode(otherlv_5, grammarAccess.getMultipleChoice_ImplAccess().getHyphenMinusKeyword_5()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:767:1: ( (lv_max_6_0= ruleEInt ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:768:1: (lv_max_6_0= ruleEInt ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:768:1: (lv_max_6_0= ruleEInt ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:769:3: lv_max_6_0= ruleEInt { newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getMaxEIntParserRuleCall_6_0()); pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleMultipleChoice_Impl1560); lv_max_6_0=ruleEInt(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule()); } set( current, "max", lv_max_6_0, "EInt"); afterParserOrEnumRuleCall(); } } otherlv_7=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleMultipleChoice_Impl1572); newLeafNode(otherlv_7, grammarAccess.getMultipleChoice_ImplAccess().getRightSquareBracketKeyword_7()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:789:1: ( (lv_answers_8_0= ruleAnswer ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:790:1: (lv_answers_8_0= ruleAnswer ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:790:1: (lv_answers_8_0= ruleAnswer ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:791:3: lv_answers_8_0= ruleAnswer { newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getAnswersAnswerParserRuleCall_8_0()); pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleMultipleChoice_Impl1593); lv_answers_8_0=ruleAnswer(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule()); } add( current, "answers", lv_answers_8_0, "Answer"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:807:2: ( (lv_answers_9_0= ruleAnswer ) )* loop16: do { int alt16=2; int LA16_0 = input.LA(1); if ( (LA16_0==19) ) { alt16=1; } switch (alt16) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:808:1: (lv_answers_9_0= ruleAnswer ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:808:1: (lv_answers_9_0= ruleAnswer ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:809:3: lv_answers_9_0= ruleAnswer { newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getAnswersAnswerParserRuleCall_9_0()); pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleMultipleChoice_Impl1614); lv_answers_9_0=ruleAnswer(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule()); } add( current, "answers", lv_answers_9_0, "Answer"); afterParserOrEnumRuleCall(); } } break; default : break loop16; } } while (true); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleMultipleChoice_Impl() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleMultipleChoice_Impl = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:692:2: (iv_ru...
[ "0.64788145", "0.6225752", "0.589128", "0.5792772", "0.56307214", "0.56244516", "0.5610495", "0.5502684", "0.5409319", "0.53187656", "0.5296186", "0.52334756", "0.5196615", "0.5159906", "0.5156553", "0.51168734", "0.5096783", "0.50292605", "0.50266486", "0.49790293", "0.49716...
0.7653266
0
$ANTLR end "ruleMultipleChoice_Impl" $ANTLR start "entryRuleRanking" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:833:1: entryRuleRanking returns [EObject current=null] : iv_ruleRanking= ruleRanking EOF ;
public final EObject entryRuleRanking() throws RecognitionException { EObject current = null; EObject iv_ruleRanking = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:834:2: (iv_ruleRanking= ruleRanking EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:835:2: iv_ruleRanking= ruleRanking EOF { newCompositeNode(grammarAccess.getRankingRule()); pushFollow(FollowSets000.FOLLOW_ruleRanking_in_entryRuleRanking1651); iv_ruleRanking=ruleRanking(); state._fsp--; current =iv_ruleRanking; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleRanking1661); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject ruleRanking() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_isMandatory_1_0=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n Token otherlv_5=null;\n AntlrDatatypeRuleToken lv_questionText_2_0...
[ "0.6014057", "0.5504643", "0.541587", "0.5334027", "0.5255877", "0.5254158", "0.5192765", "0.51732314", "0.51031345", "0.5077387", "0.50650233", "0.50584793", "0.50498414", "0.50404125", "0.50358814", "0.5004072", "0.49946144", "0.49804607", "0.49804607", "0.49681333", "0.496...
0.71470255
0
$ANTLR end "entryRuleRanking" $ANTLR start "ruleRanking" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:842:1: ruleRanking returns [EObject current=null] : (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) ) ) ;
public final EObject ruleRanking() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_isMandatory_1_0=null; Token otherlv_3=null; Token otherlv_4=null; Token otherlv_5=null; AntlrDatatypeRuleToken lv_questionText_2_0 = null; EObject lv_answers_6_0 = null; EObject lv_answers_7_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:845:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* { otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleRanking1698); newLeafNode(otherlv_0, grammarAccess.getRankingAccess().getQKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:850:1: ( (lv_isMandatory_1_0= '*' ) )? int alt17=2; int LA17_0 = input.LA(1); if ( (LA17_0==26) ) { alt17=1; } switch (alt17) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:852:3: lv_isMandatory_1_0= '*' { lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleRanking1716); newLeafNode(lv_isMandatory_1_0, grammarAccess.getRankingAccess().getIsMandatoryAsteriskKeyword_1_0()); if (current==null) { current = createModelElement(grammarAccess.getRankingRule()); } setWithLastConsumed(current, "isMandatory", true, "*"); } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:865:3: ( (lv_questionText_2_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:867:3: lv_questionText_2_0= ruleEString { newCompositeNode(grammarAccess.getRankingAccess().getQuestionTextEStringParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleRanking1751); lv_questionText_2_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getRankingRule()); } set( current, "questionText", lv_questionText_2_0, "EString"); afterParserOrEnumRuleCall(); } } otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleRanking1763); newLeafNode(otherlv_3, grammarAccess.getRankingAccess().getLeftSquareBracketKeyword_3()); otherlv_4=(Token)match(input,28,FollowSets000.FOLLOW_28_in_ruleRanking1775); newLeafNode(otherlv_4, grammarAccess.getRankingAccess().getRankKeyword_4()); otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleRanking1787); newLeafNode(otherlv_5, grammarAccess.getRankingAccess().getRightSquareBracketKeyword_5()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:895:1: ( (lv_answers_6_0= ruleAnswer ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:897:3: lv_answers_6_0= ruleAnswer { newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_6_0()); pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1808); lv_answers_6_0=ruleAnswer(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getRankingRule()); } add( current, "answers", lv_answers_6_0, "Answer"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:913:2: ( (lv_answers_7_0= ruleAnswer ) )* loop18: do { int alt18=2; int LA18_0 = input.LA(1); if ( (LA18_0==19) ) { alt18=1; } switch (alt18) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:915:3: lv_answers_7_0= ruleAnswer { newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_7_0()); pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1829); lv_answers_7_0=ruleAnswer(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getRankingRule()); } add( current, "answers", lv_answers_7_0, "Answer"); afterParserOrEnumRuleCall(); } } break; default : break loop18; } } while (true); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleRanking() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRanking = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:834:2: (iv_ruleRanking= ruleRanking E...
[ "0.7391573", "0.6463162", "0.63011426", "0.6198076", "0.6188019", "0.615722", "0.61494076", "0.61494076", "0.61266047", "0.60550714", "0.60304743", "0.59809756", "0.5978547", "0.5957405", "0.59572744", "0.5935649", "0.5926509", "0.5923291", "0.5915402", "0.5903876", "0.589178...
0.8175733
0
$ANTLR end "ruleRanking" $ANTLR start "entryRuleRating" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:939:1: entryRuleRating returns [EObject current=null] : iv_ruleRating= ruleRating EOF ;
public final EObject entryRuleRating() throws RecognitionException { EObject current = null; EObject iv_ruleRating = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:940:2: (iv_ruleRating= ruleRating EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:941:2: iv_ruleRating= ruleRating EOF { newCompositeNode(grammarAccess.getRatingRule()); pushFollow(FollowSets000.FOLLOW_ruleRating_in_entryRuleRating1866); iv_ruleRating=ruleRating(); state._fsp--; current =iv_ruleRating; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleRating1876); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleRanking() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRanking = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:834:2: (iv_ruleRanking= ruleRanking E...
[ "0.73708254", "0.6139904", "0.5863894", "0.5739716", "0.5547016", "0.55175424", "0.54699445", "0.54135513", "0.5401989", "0.53958315", "0.53890914", "0.53737634", "0.5356682", "0.53270835", "0.53270054", "0.5306998", "0.5298221", "0.5294811", "0.52862245", "0.5282588", "0.527...
0.736716
1
$ANTLR end "entryRuleRating" $ANTLR start "ruleRating" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:948:1: ruleRating returns [EObject current=null] : (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_start_4_0= ruleEInt ) ) otherlv_5= '' ( (lv_end_6_0= ruleEInt ) ) otherlv_7= ',' ( (lv_interval_8_0= ruleEInt ) ) otherlv_9= ']' ) ;
public final EObject ruleRating() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_isMandatory_1_0=null; Token otherlv_3=null; Token otherlv_5=null; Token otherlv_7=null; Token otherlv_9=null; AntlrDatatypeRuleToken lv_questionText_2_0 = null; AntlrDatatypeRuleToken lv_start_4_0 = null; AntlrDatatypeRuleToken lv_end_6_0 = null; AntlrDatatypeRuleToken lv_interval_8_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:951:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_start_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_end_6_0= ruleEInt ) ) otherlv_7= ',' ( (lv_interval_8_0= ruleEInt ) ) otherlv_9= ']' ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:952:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_start_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_end_6_0= ruleEInt ) ) otherlv_7= ',' ( (lv_interval_8_0= ruleEInt ) ) otherlv_9= ']' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:952:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_start_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_end_6_0= ruleEInt ) ) otherlv_7= ',' ( (lv_interval_8_0= ruleEInt ) ) otherlv_9= ']' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:952:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_start_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_end_6_0= ruleEInt ) ) otherlv_7= ',' ( (lv_interval_8_0= ruleEInt ) ) otherlv_9= ']' { otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleRating1913); newLeafNode(otherlv_0, grammarAccess.getRatingAccess().getQKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:956:1: ( (lv_isMandatory_1_0= '*' ) )? int alt19=2; int LA19_0 = input.LA(1); if ( (LA19_0==26) ) { alt19=1; } switch (alt19) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:957:1: (lv_isMandatory_1_0= '*' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:957:1: (lv_isMandatory_1_0= '*' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:958:3: lv_isMandatory_1_0= '*' { lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleRating1931); newLeafNode(lv_isMandatory_1_0, grammarAccess.getRatingAccess().getIsMandatoryAsteriskKeyword_1_0()); if (current==null) { current = createModelElement(grammarAccess.getRatingRule()); } setWithLastConsumed(current, "isMandatory", true, "*"); } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:971:3: ( (lv_questionText_2_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:972:1: (lv_questionText_2_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:972:1: (lv_questionText_2_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:973:3: lv_questionText_2_0= ruleEString { newCompositeNode(grammarAccess.getRatingAccess().getQuestionTextEStringParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleRating1966); lv_questionText_2_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getRatingRule()); } set( current, "questionText", lv_questionText_2_0, "EString"); afterParserOrEnumRuleCall(); } } otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleRating1978); newLeafNode(otherlv_3, grammarAccess.getRatingAccess().getLeftSquareBracketKeyword_3()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:993:1: ( (lv_start_4_0= ruleEInt ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:994:1: (lv_start_4_0= ruleEInt ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:994:1: (lv_start_4_0= ruleEInt ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:995:3: lv_start_4_0= ruleEInt { newCompositeNode(grammarAccess.getRatingAccess().getStartEIntParserRuleCall_4_0()); pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleRating1999); lv_start_4_0=ruleEInt(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getRatingRule()); } set( current, "start", lv_start_4_0, "EInt"); afterParserOrEnumRuleCall(); } } otherlv_5=(Token)match(input,27,FollowSets000.FOLLOW_27_in_ruleRating2011); newLeafNode(otherlv_5, grammarAccess.getRatingAccess().getHyphenMinusKeyword_5()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1015:1: ( (lv_end_6_0= ruleEInt ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1016:1: (lv_end_6_0= ruleEInt ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1016:1: (lv_end_6_0= ruleEInt ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1017:3: lv_end_6_0= ruleEInt { newCompositeNode(grammarAccess.getRatingAccess().getEndEIntParserRuleCall_6_0()); pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleRating2032); lv_end_6_0=ruleEInt(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getRatingRule()); } set( current, "end", lv_end_6_0, "EInt"); afterParserOrEnumRuleCall(); } } otherlv_7=(Token)match(input,17,FollowSets000.FOLLOW_17_in_ruleRating2044); newLeafNode(otherlv_7, grammarAccess.getRatingAccess().getCommaKeyword_7()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1037:1: ( (lv_interval_8_0= ruleEInt ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1038:1: (lv_interval_8_0= ruleEInt ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1038:1: (lv_interval_8_0= ruleEInt ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1039:3: lv_interval_8_0= ruleEInt { newCompositeNode(grammarAccess.getRatingAccess().getIntervalEIntParserRuleCall_8_0()); pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleRating2065); lv_interval_8_0=ruleEInt(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getRatingRule()); } set( current, "interval", lv_interval_8_0, "EInt"); afterParserOrEnumRuleCall(); } } otherlv_9=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleRating2077); newLeafNode(otherlv_9, grammarAccess.getRatingAccess().getRightSquareBracketKeyword_9()); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleRating() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRating = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:940:2: (iv_ruleRating= ruleRating EOF )...
[ "0.67290133", "0.56832266", "0.56539667", "0.55389917", "0.5509251", "0.5194398", "0.5164447", "0.5159531", "0.5139666", "0.5049063", "0.5043755", "0.504163", "0.5021667", "0.49955937", "0.49917802", "0.4971466", "0.4957684", "0.495391", "0.494373", "0.4932391", "0.4913047", ...
0.7446404
0
$ANTLR end "ruleRating" $ANTLR start "entryRuleYesNo" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1067:1: entryRuleYesNo returns [EObject current=null] : iv_ruleYesNo= ruleYesNo EOF ;
public final EObject entryRuleYesNo() throws RecognitionException { EObject current = null; EObject iv_ruleYesNo = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1068:2: (iv_ruleYesNo= ruleYesNo EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1069:2: iv_ruleYesNo= ruleYesNo EOF { newCompositeNode(grammarAccess.getYesNoRule()); pushFollow(FollowSets000.FOLLOW_ruleYesNo_in_entryRuleYesNo2113); iv_ruleYesNo=ruleYesNo(); state._fsp--; current =iv_ruleYesNo; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleYesNo2123); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleRating() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRating = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:940:2: (iv_ruleRating= ruleRating EOF )...
[ "0.6045083", "0.5655871", "0.5306961", "0.52854115", "0.5248448", "0.51679254", "0.5141606", "0.51412535", "0.5122447", "0.5102695", "0.50955504", "0.5094864", "0.50304145", "0.49278826", "0.49055", "0.48381138", "0.48035815", "0.47923633", "0.47918242", "0.47783974", "0.4760...
0.7244682
0
$ANTLR end "entryRuleYesNo" $ANTLR start "ruleYesNo" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1076:1: ruleYesNo returns [EObject current=null] : (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'y/n' otherlv_5= ']' ) ;
public final EObject ruleYesNo() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_isMandatory_1_0=null; Token otherlv_3=null; Token otherlv_4=null; Token otherlv_5=null; AntlrDatatypeRuleToken lv_questionText_2_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1079:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'y/n' otherlv_5= ']' ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1080:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'y/n' otherlv_5= ']' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1080:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'y/n' otherlv_5= ']' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1080:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'y/n' otherlv_5= ']' { otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleYesNo2160); newLeafNode(otherlv_0, grammarAccess.getYesNoAccess().getQKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1084:1: ( (lv_isMandatory_1_0= '*' ) )? int alt20=2; int LA20_0 = input.LA(1); if ( (LA20_0==26) ) { alt20=1; } switch (alt20) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1085:1: (lv_isMandatory_1_0= '*' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1085:1: (lv_isMandatory_1_0= '*' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1086:3: lv_isMandatory_1_0= '*' { lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleYesNo2178); newLeafNode(lv_isMandatory_1_0, grammarAccess.getYesNoAccess().getIsMandatoryAsteriskKeyword_1_0()); if (current==null) { current = createModelElement(grammarAccess.getYesNoRule()); } setWithLastConsumed(current, "isMandatory", true, "*"); } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1099:3: ( (lv_questionText_2_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1100:1: (lv_questionText_2_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1100:1: (lv_questionText_2_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1101:3: lv_questionText_2_0= ruleEString { newCompositeNode(grammarAccess.getYesNoAccess().getQuestionTextEStringParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleYesNo2213); lv_questionText_2_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getYesNoRule()); } set( current, "questionText", lv_questionText_2_0, "EString"); afterParserOrEnumRuleCall(); } } otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleYesNo2225); newLeafNode(otherlv_3, grammarAccess.getYesNoAccess().getLeftSquareBracketKeyword_3()); otherlv_4=(Token)match(input,29,FollowSets000.FOLLOW_29_in_ruleYesNo2237); newLeafNode(otherlv_4, grammarAccess.getYesNoAccess().getYNKeyword_4()); otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleYesNo2249); newLeafNode(otherlv_5, grammarAccess.getYesNoAccess().getRightSquareBracketKeyword_5()); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleYesNo() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleYesNo = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1068:2: (iv_ruleYesNo= ruleYesNo EOF )\n ...
[ "0.72119033", "0.5953216", "0.5945018", "0.5941687", "0.5805258", "0.5600076", "0.5473263", "0.5418813", "0.5399706", "0.5399706", "0.5394931", "0.5334777", "0.5253311", "0.52293104", "0.51760364", "0.51413184", "0.5116639", "0.51139164", "0.5104779", "0.51013803", "0.5092829...
0.8214158
0
$ANTLR end "ruleYesNo" $ANTLR start "entryRuleOpenField" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1137:1: entryRuleOpenField returns [EObject current=null] : iv_ruleOpenField= ruleOpenField EOF ;
public final EObject entryRuleOpenField() throws RecognitionException { EObject current = null; EObject iv_ruleOpenField = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1138:2: (iv_ruleOpenField= ruleOpenField EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1139:2: iv_ruleOpenField= ruleOpenField EOF { newCompositeNode(grammarAccess.getOpenFieldRule()); pushFollow(FollowSets000.FOLLOW_ruleOpenField_in_entryRuleOpenField2285); iv_ruleOpenField=ruleOpenField(); state._fsp--; current =iv_ruleOpenField; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleOpenField2295); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleYesNo() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleYesNo = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1068:2: (iv_ruleYesNo= ruleYesNo EOF )\n ...
[ "0.62525636", "0.57731616", "0.50644124", "0.49587694", "0.49474585", "0.4853258", "0.4768201", "0.47187585", "0.4669539", "0.46321663", "0.46313697", "0.46223152", "0.46074292", "0.46031034", "0.46002412", "0.45754132", "0.45749253", "0.457216", "0.45718342", "0.45234153", "...
0.6263913
0
$ANTLR end "entryRuleOpenField" $ANTLR start "ruleOpenField" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1146:1: ruleOpenField returns [EObject current=null] : (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '' ) )? ( (lv_questionText_2_0= ruleEString ) ) ) ;
public final EObject ruleOpenField() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_isMandatory_1_0=null; AntlrDatatypeRuleToken lv_questionText_2_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1149:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1150:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1150:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1150:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) { otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleOpenField2332); newLeafNode(otherlv_0, grammarAccess.getOpenFieldAccess().getQKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1154:1: ( (lv_isMandatory_1_0= '*' ) )? int alt21=2; int LA21_0 = input.LA(1); if ( (LA21_0==26) ) { alt21=1; } switch (alt21) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1155:1: (lv_isMandatory_1_0= '*' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1155:1: (lv_isMandatory_1_0= '*' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1156:3: lv_isMandatory_1_0= '*' { lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleOpenField2350); newLeafNode(lv_isMandatory_1_0, grammarAccess.getOpenFieldAccess().getIsMandatoryAsteriskKeyword_1_0()); if (current==null) { current = createModelElement(grammarAccess.getOpenFieldRule()); } setWithLastConsumed(current, "isMandatory", true, "*"); } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1169:3: ( (lv_questionText_2_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1170:1: (lv_questionText_2_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1170:1: (lv_questionText_2_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1171:3: lv_questionText_2_0= ruleEString { newCompositeNode(grammarAccess.getOpenFieldAccess().getQuestionTextEStringParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleOpenField2385); lv_questionText_2_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getOpenFieldRule()); } set( current, "questionText", lv_questionText_2_0, "EString"); afterParserOrEnumRuleCall(); } } } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleOpenField() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOpenField = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1138:2: (iv_ruleOpenField= ruleOp...
[ "0.6930795", "0.52880794", "0.527872", "0.5261397", "0.5147997", "0.49423274", "0.48366815", "0.475417", "0.47420603", "0.46798664", "0.45873824", "0.45342773", "0.45234635", "0.44966364", "0.44921795", "0.44887742", "0.44854555", "0.44665167", "0.44510204", "0.4449433", "0.4...
0.8402296
0
$ANTLR end "ruleOpenField" $ANTLR start "entryRuleMutuallyExclusive_Impl" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1195:1: entryRuleMutuallyExclusive_Impl returns [EObject current=null] : iv_ruleMutuallyExclusive_Impl= ruleMutuallyExclusive_Impl EOF ;
public final EObject entryRuleMutuallyExclusive_Impl() throws RecognitionException { EObject current = null; EObject iv_ruleMutuallyExclusive_Impl = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1196:2: (iv_ruleMutuallyExclusive_Impl= ruleMutuallyExclusive_Impl EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1197:2: iv_ruleMutuallyExclusive_Impl= ruleMutuallyExclusive_Impl EOF { newCompositeNode(grammarAccess.getMutuallyExclusive_ImplRule()); pushFollow(FollowSets000.FOLLOW_ruleMutuallyExclusive_Impl_in_entryRuleMutuallyExclusive_Impl2421); iv_ruleMutuallyExclusive_Impl=ruleMutuallyExclusive_Impl(); state._fsp--; current =iv_ruleMutuallyExclusive_Impl; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleMutuallyExclusive_Impl2431); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleOpenField() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOpenField = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1138:2: (iv_ruleOpenField= ruleOp...
[ "0.5938339", "0.48726314", "0.47827414", "0.4724782", "0.4478506", "0.44174764", "0.43804246", "0.43510413", "0.43510225", "0.43268943", "0.42995423", "0.42789915", "0.42565233", "0.42546996", "0.4191261", "0.4181796", "0.41765752", "0.41750723", "0.4172891", "0.41721085", "0...
0.64948887
0
$ANTLR end "entryRuleMutuallyExclusive_Impl" $ANTLR start "ruleMutuallyExclusive_Impl" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1204:1: ruleMutuallyExclusive_Impl returns [EObject current=null] : (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '' ) )? ( (lv_questionText_2_0= ruleEString ) ) ( (lv_answers_3_0= ruleAnswer ) ) ( (lv_answers_4_0= ruleAnswer ) ) ) ;
public final EObject ruleMutuallyExclusive_Impl() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token lv_isMandatory_1_0=null; AntlrDatatypeRuleToken lv_questionText_2_0 = null; EObject lv_answers_3_0 = null; EObject lv_answers_4_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1207:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) ( (lv_answers_3_0= ruleAnswer ) ) ( (lv_answers_4_0= ruleAnswer ) )* ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1208:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) ( (lv_answers_3_0= ruleAnswer ) ) ( (lv_answers_4_0= ruleAnswer ) )* ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1208:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) ( (lv_answers_3_0= ruleAnswer ) ) ( (lv_answers_4_0= ruleAnswer ) )* ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1208:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) ( (lv_answers_3_0= ruleAnswer ) ) ( (lv_answers_4_0= ruleAnswer ) )* { otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleMutuallyExclusive_Impl2468); newLeafNode(otherlv_0, grammarAccess.getMutuallyExclusive_ImplAccess().getQKeyword_0()); // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1212:1: ( (lv_isMandatory_1_0= '*' ) )? int alt22=2; int LA22_0 = input.LA(1); if ( (LA22_0==26) ) { alt22=1; } switch (alt22) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1213:1: (lv_isMandatory_1_0= '*' ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1213:1: (lv_isMandatory_1_0= '*' ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1214:3: lv_isMandatory_1_0= '*' { lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleMutuallyExclusive_Impl2486); newLeafNode(lv_isMandatory_1_0, grammarAccess.getMutuallyExclusive_ImplAccess().getIsMandatoryAsteriskKeyword_1_0()); if (current==null) { current = createModelElement(grammarAccess.getMutuallyExclusive_ImplRule()); } setWithLastConsumed(current, "isMandatory", true, "*"); } } break; } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1227:3: ( (lv_questionText_2_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1228:1: (lv_questionText_2_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1228:1: (lv_questionText_2_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1229:3: lv_questionText_2_0= ruleEString { newCompositeNode(grammarAccess.getMutuallyExclusive_ImplAccess().getQuestionTextEStringParserRuleCall_2_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleMutuallyExclusive_Impl2521); lv_questionText_2_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMutuallyExclusive_ImplRule()); } set( current, "questionText", lv_questionText_2_0, "EString"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1245:2: ( (lv_answers_3_0= ruleAnswer ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1246:1: (lv_answers_3_0= ruleAnswer ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1246:1: (lv_answers_3_0= ruleAnswer ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1247:3: lv_answers_3_0= ruleAnswer { newCompositeNode(grammarAccess.getMutuallyExclusive_ImplAccess().getAnswersAnswerParserRuleCall_3_0()); pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleMutuallyExclusive_Impl2542); lv_answers_3_0=ruleAnswer(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMutuallyExclusive_ImplRule()); } add( current, "answers", lv_answers_3_0, "Answer"); afterParserOrEnumRuleCall(); } } // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1263:2: ( (lv_answers_4_0= ruleAnswer ) )* loop23: do { int alt23=2; int LA23_0 = input.LA(1); if ( (LA23_0==19) ) { alt23=1; } switch (alt23) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1264:1: (lv_answers_4_0= ruleAnswer ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1264:1: (lv_answers_4_0= ruleAnswer ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1265:3: lv_answers_4_0= ruleAnswer { newCompositeNode(grammarAccess.getMutuallyExclusive_ImplAccess().getAnswersAnswerParserRuleCall_4_0()); pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleMutuallyExclusive_Impl2563); lv_answers_4_0=ruleAnswer(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getMutuallyExclusive_ImplRule()); } add( current, "answers", lv_answers_4_0, "Answer"); afterParserOrEnumRuleCall(); } } break; default : break loop23; } } while (true); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleMutuallyExclusive_Impl() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleMutuallyExclusive_Impl = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1196:2:...
[ "0.61895984", "0.56776476", "0.54738647", "0.5390633", "0.5074205", "0.506581", "0.48899454", "0.48349002", "0.4737233", "0.4701144", "0.46694165", "0.46323287", "0.46292043", "0.4628438", "0.45817283", "0.45357776", "0.45208538", "0.45153782", "0.45153782", "0.45153782", "0....
0.79253423
0
$ANTLR end "ruleMutuallyExclusive_Impl" $ANTLR start "entryRuleEInt" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1289:1: entryRuleEInt returns [String current=null] : iv_ruleEInt= ruleEInt EOF ;
public final String entryRuleEInt() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleEInt = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1290:2: (iv_ruleEInt= ruleEInt EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1291:2: iv_ruleEInt= ruleEInt EOF { newCompositeNode(grammarAccess.getEIntRule()); pushFollow(FollowSets000.FOLLOW_ruleEInt_in_entryRuleEInt2601); iv_ruleEInt=ruleEInt(); state._fsp--; current =iv_ruleEInt.getText(); match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleEInt2612); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleMutuallyExclusive_Impl() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleMutuallyExclusive_Impl = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1196:2:...
[ "0.6493613", "0.6414365", "0.6344218", "0.59919035", "0.59288394", "0.5868176", "0.58551055", "0.5761486", "0.5683272", "0.56802815", "0.5671142", "0.56633466", "0.5642325", "0.56041276", "0.55952656", "0.55796826", "0.5565824", "0.55510354", "0.55401963", "0.5423717", "0.539...
0.65685546
0
$ANTLR end "entryRuleEInt" $ANTLR start "ruleEInt" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1298:1: ruleEInt returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '' )? this_INT_1= RULE_INT ) ;
public final AntlrDatatypeRuleToken ruleEInt() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); Token kw=null; Token this_INT_1=null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1301:28: ( ( (kw= '-' )? this_INT_1= RULE_INT ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1302:1: ( (kw= '-' )? this_INT_1= RULE_INT ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1302:1: ( (kw= '-' )? this_INT_1= RULE_INT ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1302:2: (kw= '-' )? this_INT_1= RULE_INT { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1302:2: (kw= '-' )? int alt24=2; int LA24_0 = input.LA(1); if ( (LA24_0==27) ) { alt24=1; } switch (alt24) { case 1 : // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1303:2: kw= '-' { kw=(Token)match(input,27,FollowSets000.FOLLOW_27_in_ruleEInt2651); current.merge(kw); newLeafNode(kw, grammarAccess.getEIntAccess().getHyphenMinusKeyword_0()); } break; } this_INT_1=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_RULE_INT_in_ruleEInt2668); current.merge(this_INT_1); newLeafNode(this_INT_1, grammarAccess.getEIntAccess().getINTTerminalRuleCall_1()); } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final AntlrDatatypeRuleToken ruleEInt() throws RecognitionException {\r\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\r\n\r\n Token kw=null;\r\n Token this_INT_1=null;\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalEsportDsl.g:1285:2:...
[ "0.7384947", "0.6901992", "0.68394965", "0.67681074", "0.66694057", "0.6439061", "0.6361996", "0.6328342", "0.6150185", "0.6104287", "0.6096667", "0.59618306", "0.59565675", "0.5941283", "0.59251934", "0.589176", "0.5868313", "0.58390534", "0.58323526", "0.5826583", "0.578677...
0.7724485
0
$ANTLR end "ruleEInt" $ANTLR start "entryRulePersonAttribute" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1323:1: entryRulePersonAttribute returns [EObject current=null] : iv_rulePersonAttribute= rulePersonAttribute EOF ;
public final EObject entryRulePersonAttribute() throws RecognitionException { EObject current = null; EObject iv_rulePersonAttribute = null; try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1324:2: (iv_rulePersonAttribute= rulePersonAttribute EOF ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1325:2: iv_rulePersonAttribute= rulePersonAttribute EOF { newCompositeNode(grammarAccess.getPersonAttributeRule()); pushFollow(FollowSets000.FOLLOW_rulePersonAttribute_in_entryRulePersonAttribute2713); iv_rulePersonAttribute=rulePersonAttribute(); state._fsp--; current =iv_rulePersonAttribute; match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRulePersonAttribute2723); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRulePerson() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulePerson = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:223:47: (iv_rulePerson= rulePerson EOF )\r\n // InternalEsportDsl.g:224:2: iv_rulePerson= ru...
[ "0.7464423", "0.7453727", "0.6783161", "0.66071457", "0.6083864", "0.5587448", "0.5538666", "0.5470048", "0.5227679", "0.5174523", "0.505442", "0.4965245", "0.48913628", "0.48456684", "0.48307815", "0.48062873", "0.47847036", "0.4782834", "0.47777686", "0.47430515", "0.471970...
0.8283602
0
$ANTLR end "entryRulePersonAttribute" $ANTLR start "rulePersonAttribute" ../dk.itu.smdp.survey.xtext/srcgen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1332:1: rulePersonAttribute returns [EObject current=null] : ( (lv_key_0_0= ruleEString ) ) ;
public final EObject rulePersonAttribute() throws RecognitionException { EObject current = null; AntlrDatatypeRuleToken lv_key_0_0 = null; enterRule(); try { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1335:28: ( ( (lv_key_0_0= ruleEString ) ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1336:1: ( (lv_key_0_0= ruleEString ) ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1336:1: ( (lv_key_0_0= ruleEString ) ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1337:1: (lv_key_0_0= ruleEString ) { // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1337:1: (lv_key_0_0= ruleEString ) // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1338:3: lv_key_0_0= ruleEString { newCompositeNode(grammarAccess.getPersonAttributeAccess().getKeyEStringParserRuleCall_0()); pushFollow(FollowSets000.FOLLOW_ruleEString_in_rulePersonAttribute2768); lv_key_0_0=ruleEString(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getPersonAttributeRule()); } set( current, "key", lv_key_0_0, "EString"); afterParserOrEnumRuleCall(); } } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRulePersonAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePersonAttribute = null;\n\n\n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:1324:2: (iv_rulePerso...
[ "0.70627177", "0.7049106", "0.62204033", "0.6010368", "0.49657577", "0.4941802", "0.49381858", "0.4932792", "0.48992932", "0.4757994", "0.47521496", "0.47206956", "0.46733153", "0.46197563", "0.46066648", "0.45926735", "0.45926735", "0.45137137", "0.4504523", "0.44993788", "0...
0.7729472
0
Restricting access to the creation of objects of this class
private ServiceFactory() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "@Override\n public boolean isInstantiable() {\n return false;\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private MigrationInstantiationUtil() ...
[ "0.6703846", "0.6656798", "0.65350354", "0.636114", "0.6304602", "0.62614846", "0.6204237", "0.6160137", "0.6129709", "0.61226934", "0.61211246", "0.6087772", "0.607131", "0.6059075", "0.60479635", "0.6029175", "0.6023073", "0.59927696", "0.59752053", "0.5962181", "0.5956185"...
0.0
-1
affiche fizz, buzz, fizzbuzz ou le nombre suivant la nature de nb
public static void afficherFizzBuzzOuNombre(int nb) { if (estUnFizzBuzz(nb)) { System.out.println("FIZZBUZZ"); } else if (estUnBuzz(nb)) { System.out.println("BUZZ"); } else if (estUnFizz(nb)) { System.out.println("FIZZ"); } else { System.out.println(nb); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}", "public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\n //ask or integer\nSystem...
[ "0.6917532", "0.6394312", "0.6179555", "0.6138138", "0.59382707", "0.5929775", "0.5900273", "0.58486587", "0.5806242", "0.5780667", "0.5778424", "0.57501817", "0.5724538", "0.571714", "0.57139695", "0.5713749", "0.57005155", "0.56631154", "0.56623584", "0.56578714", "0.564881...
0.7377745
0
Lance une partie de FizzBuzz
public static void jouerAuFizzBuzz(){ int nb = Tools.inputInt("Tapez un nombre : "); int i=0; while (i<=nb) { afficherFizzBuzzOuNombre(i); i++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void afficherFizzBuzzOuNombre(int nb) {\n\t\tif (estUnFizzBuzz(nb)) {\n\t\t\tSystem.out.println(\"FIZZBUZZ\");\n\t\t} else if (estUnBuzz(nb)) {\n\t\t\tSystem.out.println(\"BUZZ\");\n\t\t} else if (estUnFizz(nb)) {\n\t\t\tSystem.out.println(\"FIZZ\");\t\n\t\t} else {\n\t\t\tSystem.out.println(nb);\n\t...
[ "0.62058413", "0.5882762", "0.5798862", "0.56501055", "0.557329", "0.5523895", "0.5425442", "0.53615785", "0.53427446", "0.5329242", "0.51636094", "0.5104689", "0.50714165", "0.50472856", "0.50073135", "0.50016403", "0.49843484", "0.49713364", "0.49589577", "0.49475947", "0.4...
0.6802244
0
end of Main method Convert Celsius to Fahrenheit
public static double celsiusToFahrenheit(double celsius){ //declare variable for converted temperature double convertedTemperature = ((9.0 / 5) * celsius + 32); //return value of converted temperature return convertedTemperature; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double cToF(double celsius){\n return (celsius*1.8) + 32;\n }", "void FahtoCel() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + fahrenheit + \" degrees celcius.\");\t// prints out converted degrees, with fahrenheit = conversion.fahrenheit\r\n\t}", "private String co...
[ "0.801763", "0.79654145", "0.7930651", "0.79261434", "0.78259003", "0.7817792", "0.7806599", "0.7696826", "0.76662725", "0.75946075", "0.75314", "0.7509864", "0.74739563", "0.7422453", "0.7355786", "0.73217505", "0.7318028", "0.7284712", "0.72260183", "0.71695787", "0.7163150...
0.8070607
0
end of celsiusToFahrenheit method Convert Fahrenheit to Celsius
public static double fahrenheitToCelsius(double fahrenheit){ //declare variable for converted temperature double convertedTemperature = ((5.0 / 9) * (fahrenheit - 32)); //return value of converted temperature return convertedTemperature; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double cToF(double celsius){\n return (celsius*1.8) + 32;\n }", "public static double celsiusToFahrenheit(double celsius){\n \n //declare variable for converted temperature\n double convertedTemperature = ((9.0 / 5) * celsius + 32);\n \n //return value o...
[ "0.7740961", "0.7694518", "0.7615187", "0.75576174", "0.7551431", "0.750095", "0.74471706", "0.7391741", "0.7387901", "0.73109096", "0.7284117", "0.7176864", "0.7167328", "0.71603554", "0.70986414", "0.7066092", "0.7050819", "0.7021547", "0.7008781", "0.6964595", "0.69629544"...
0.7996304
0
creating a Database connection using oracle jdbc
public void createCon(){ try { Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@172.26.132.40:1521:ORCLILP", "a63d", "a63d"); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupDB(){\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n String username = \"sys as sysdba\"; //Provide username for your database\n String password = \"oracle\"; //provide pa...
[ "0.79300046", "0.77477914", "0.76661915", "0.75616324", "0.7557775", "0.74838114", "0.74824667", "0.74643224", "0.7333809", "0.73062795", "0.72313005", "0.71935916", "0.71810526", "0.71047354", "0.7024511", "0.70041263", "0.70030445", "0.69845927", "0.69578964", "0.69578964", ...
0.75663376
3
Is String a contained in String b
private boolean containedIn(String a, String b){ if(a.length() > b.length())return false; int aInd = 0; int bInd = 0; while(bInd < b.length()){ if(aInd >= a.length())return true; char bChar = b.charAt(bInd); char aChar = a.charAt(aInd); if(bChar == aChar){ aInd++; } bInd++; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean stringIntersect(String a, String b, int len) {\n\t\tif(len == 0) return true;\n\t\tSet<String> first = new HashSet<String>();\n\t\tSet<String> second = new HashSet<String>();\n\t\tfor(int i = 0; i < a.length() - len + 1; i++){\n\t\t\tfirst.add(a.substring(i, i + len));\n\t\t}\n\t\tfor(int i =...
[ "0.7774291", "0.76405597", "0.74297273", "0.73293585", "0.73223853", "0.69302744", "0.689516", "0.68080544", "0.67859024", "0.67497206", "0.6738417", "0.6714109", "0.67063737", "0.6613675", "0.65891767", "0.6559273", "0.6545454", "0.6522591", "0.65099263", "0.6504442", "0.650...
0.87565106
0
maintenanceOps/CurrentMaintenanceOperationIterator_I.java . Generated by the IDLtoJava compiler (portable), version "3.2" from maintenanceOps.idl Wednesday, June 15, 2016 7:24:37 PM COT In order to allow the NMS to deal with a large number of objects, iterators are used. See SD115 iterator overview for information on how iterators are used in this interface.
public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CurrentOperations\n\textends org.omg.CORBA.CurrentOperations\n{\n\t/* constants */\n\t/* operations */\n\tvoid begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;\n\tvoid commit(boolean report_heuristics) throws org.omg.CosTransactions.NoTransaction,org.omg.CosTransactions.Heuristi...
[ "0.6164593", "0.59576696", "0.57614124", "0.55235285", "0.54499024", "0.5417214", "0.5298763", "0.5291044", "0.5280106", "0.52709395", "0.5158592", "0.51487684", "0.5139889", "0.5122168", "0.5117834", "0.50911385", "0.5066976", "0.5063941", "0.5044001", "0.50277394", "0.50243...
0.645282
0
Best Case Scenario and it doesn't need to perform Algorithm
@Test public void testNormalAnagrams() { AnagramFinderImpl anagramFinderObj = new AnagramFinderImpl(); boolean inputNormalAnagrams = anagramFinderObj.areAnagrams("aba", "aba"); assertTrue("true", inputNormalAnagrams); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void runBest() {\n }", "@Test\n @Order(1)\n void algorithms() {\n \n Combination initialComb = new Combination();\n for (int i = 0; i < assignementProblem.getAssignmentData().getLength(); i++) {\n initialComb.add((long) i + 1);\n }\n assignementProbl...
[ "0.6620377", "0.6287937", "0.62604165", "0.5885256", "0.5877936", "0.58713716", "0.5868433", "0.5814211", "0.58094025", "0.58057827", "0.57873464", "0.5773639", "0.57652044", "0.5750099", "0.5746403", "0.57463396", "0.5733216", "0.56993675", "0.56904584", "0.568931", "0.56837...
0.0
-1
Runtime: 0 ms, faster than 100.00% of Java online submissions for Sum of Two Integers. Memory Usage: 37.9 MB, less than 6.67% of Java online submissions for Sum of Two Integers.
public int getSumLoop(int a, int b) { while (b != 0) { int temp = a ^ b; b = (a & b) << 1; a = temp; } return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }", "static int sum(int a, int b) {\n return a+b;\r\n }", "public int sumTwo(int a, int b) {\n\t\twhile (b != 0) {\n\t\t\tint sum = a ^ b;\n\t\t\tint carry = (a & b) << 1;\n\t\t\ta = sum; \n\t\t\tb = carry; \n\t...
[ "0.7324372", "0.68195343", "0.67465305", "0.67459047", "0.6737013", "0.6732334", "0.66840816", "0.66523206", "0.66317284", "0.6607", "0.6602281", "0.65891975", "0.6539762", "0.65213144", "0.6508261", "0.6496682", "0.64812326", "0.6480277", "0.64723974", "0.6449051", "0.644780...
0.6455765
19
Runtime: 0 ms, faster than 100.00% of Java online submissions for Sum of Two Integers. Memory Usage: 37.7 MB, less than 6.67% of Java online submissions for Sum of Two Integers.
public int getSum(int a, int b) { return b == 0 ? a : getSum(a ^ b, (a & b) << 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }", "static int sum(int a, int b) {\n return a+b;\r\n }", "public int sumTwo(int a, int b) {\n\t\twhile (b != 0) {\n\t\t\tint sum = a ^ b;\n\t\t\tint carry = (a & b) << 1;\n\t\t\ta = sum; \n\t\t\tb = carry; \n\t...
[ "0.7316149", "0.6820583", "0.6739142", "0.6735175", "0.67340493", "0.67294466", "0.6689379", "0.66500396", "0.6628093", "0.6601322", "0.6595253", "0.6577279", "0.65362835", "0.6515711", "0.65066016", "0.6492681", "0.6481087", "0.6473521", "0.6464206", "0.6463289", "0.64500695...
0.616604
49
Shutdown the thread pool
@Override public void shutdown() throws ExecutionException, InterruptedException { // When we close this service we need to shutdown our executor! threadPoolExecutorService.shutdown(); if (!threadPoolExecutorService.awaitTermination(SHUTDOWN_TIME, TimeUnit.SECONDS)) { LOG.error("SfcOfFlowProgrammerImpl Executor did not terminate in the specified time."); List<Runnable> droppedTasks = threadPoolExecutorService.shutdownNow(); LOG.error("SfcOfFlowProgrammerImpl Executor was abruptly shut down. [{}] tasks will not be executed.", droppedTasks.size()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown() {\n\t\tthreadPool.shutdown();\n\t}", "public void shutDown()\n\t{\n\t\tthis.threadPool.shutdown();\n\t}", "public void closePool() {\n threadPool.destroy();\n }", "public void stopPollingThread() {\n pool.shutdown();\n }", "public ExecutorService shutdown() {\n\t\...
[ "0.86825013", "0.8431083", "0.8092532", "0.7495386", "0.7494773", "0.7477242", "0.7450707", "0.73013043", "0.7212314", "0.71974665", "0.71464676", "0.70732117", "0.704714", "0.70319927", "0.6965459", "0.69617975", "0.6872734", "0.68495554", "0.68136096", "0.67602783", "0.6682...
0.6242842
51
This constructor is used for storing flows to be added
public FlowDetails(final String sffNodeName, FlowKey flowKey, TableKey tableKey, Flow flow) { this.sffNodeName = sffNodeName; this.flowKey = flowKey; this.tableKey = tableKey; this.flow = flow; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Flows createFlows();", "Flow createFlow();", "public FlowRule() {\r\n }", "public Flow(UseCase useCase) {\r\n\t\tthis.useCase = useCase;\r\n\t}", "DataFlow createDataFlow();", "public FlowAddSender() {\n logger = LoggerFactory.getLogger(FlowAddSender.class.getSimpleName());\n }", "private ...
[ "0.66056967", "0.6216868", "0.6056974", "0.58240795", "0.5776884", "0.57457936", "0.57423", "0.5692333", "0.5660899", "0.565575", "0.5650947", "0.5644423", "0.5586139", "0.5566668", "0.5548565", "0.5521729", "0.5491433", "0.5480437", "0.5446564", "0.54364246", "0.5393198", ...
0.60458654
3
This constructor is used for storing flows to be deleted. Only the path ids are needed
public FlowDetails(final String sffNodeName, FlowKey flowKey, TableKey tableKey) { this(sffNodeName, flowKey, tableKey, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HaFlowPath() {\n data = new HaFlowPathDataImpl();\n }", "@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }", "void delete(LogicalDatastoreType store, P path);", "public void startFlowDeletion(@NonNull CommandContext comma...
[ "0.5597518", "0.5289109", "0.50673175", "0.50462705", "0.49754444", "0.49295", "0.49018312", "0.49018312", "0.48977247", "0.48526567", "0.4845491", "0.47909033", "0.4785536", "0.47658125", "0.4760234", "0.47588488", "0.46854758", "0.46734396", "0.46711734", "0.467036", "0.466...
0.0
-1
Store a flow to be written later. The flows will be stored per SFF and table. Later, when flushFlows() is called, all the flows will be written. The tableId is taken from the FlowBuilder.
@Override public void writeFlow(Long rspId, String sffNodeName, FlowBuilder flow) { this.flowBuilder = flow; LOG.debug("writeFlow storing flow to Node {}, table {}", sffNodeName, flow.getTableId()); // Add the flow to the set of flows to be added in a single transaction setOfFlowsToAdd.add(new FlowDetails(sffNodeName, flow.getKey(), new TableKey(flow.getTableId()), flowBuilder.build())); // This will store the flow info and rspId for removal later storeFlowDetails(rspId, sffNodeName, flow.getKey(), flow.getTableId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void storeFlowDetails(final Long rspId, final String sffNodeName, FlowKey flowKey, short tableId) {\n Optional<Map<String, List<FlowDetails>>> theFlowsPerSffMap =\n Optional.ofNullable(rspNameToFlowsMap.get(rspId));\n if (!theFlowsPerSffMap.isPresent()) {\n rspNameTo...
[ "0.60727954", "0.5908419", "0.53328776", "0.51784194", "0.5136401", "0.50837994", "0.50639784", "0.5013651", "0.49642015", "0.49344644", "0.4840942", "0.48393127", "0.48157042", "0.4808568", "0.47901377", "0.4785549", "0.4755852", "0.4751922", "0.47255662", "0.471213", "0.468...
0.7034141
0
From previous calls to writeFlowToConfig(), flows were stored per table and per SFF. Now the flows will be written, one table at at time per SFF.
@Override public void flushFlows() { LOG.info("flushFlows: creating flowWriter task, writing [{}] flows.", setOfFlowsToAdd.size()); FlowSetWriterTask writerThread = new FlowSetWriterTask(setOfFlowsToAdd); try { threadPoolExecutorService.execute(writerThread); } catch (Exception ex) { LOG.error(LOGSTR_THREAD_EXCEPTION, ex.toString()); } // Clear the entries setOfFlowsToAdd.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void writeFlow(Long rspId, String sffNodeName, FlowBuilder flow) {\n this.flowBuilder = flow;\n\n LOG.debug(\"writeFlow storing flow to Node {}, table {}\", sffNodeName, flow.getTableId());\n\n // Add the flow to the set of flows to be added in a single transaction\n ...
[ "0.6147477", "0.6045579", "0.5435272", "0.5301782", "0.52437085", "0.5208396", "0.50054437", "0.49632353", "0.48856226", "0.4859772", "0.48279995", "0.4776558", "0.4749442", "0.47388133", "0.4724984", "0.46742818", "0.46713", "0.4634815", "0.4631211", "0.46300414", "0.4614873...
0.5744142
2
Purge any unwritten flows not writtendeleted yet. This should be called upon errors, when the remaining buffered flows should not be persisted
@Override public void purgeFlows() { setOfFlowsToAdd.clear(); setOfFlowsToDelete.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\n streams.clear();\n }", "@Override\n public void flushFlows() {\n LOG.info(\"flushFlows: creating flowWriter task, writing [{}] flows.\",\n setOfFlowsToAdd.size());\n\n FlowSetWriterTask writerThread = new FlowSetWriterTask(setOfFlowsToAdd);\n\n ...
[ "0.5911948", "0.57364124", "0.5692593", "0.56792575", "0.56199527", "0.5590612", "0.5557626", "0.55530584", "0.5467862", "0.5465408", "0.54489815", "0.5438758", "0.5426781", "0.54004234", "0.5371183", "0.5362168", "0.53490365", "0.53258854", "0.5309381", "0.5305362", "0.53035...
0.7625124
0
storeFlowDetails Store the flow details so the flows are easy to delete later
private void storeFlowDetails(final Long rspId, final String sffNodeName, FlowKey flowKey, short tableId) { Optional<Map<String, List<FlowDetails>>> theFlowsPerSffMap = Optional.ofNullable(rspNameToFlowsMap.get(rspId)); if (!theFlowsPerSffMap.isPresent()) { rspNameToFlowsMap.put(rspId, new HashMap<> ()); } Optional<List<FlowDetails>> theFlowsPerSff = Optional.ofNullable(rspNameToFlowsMap.get(rspId).get(sffNodeName)); if (!theFlowsPerSff.isPresent()) { rspNameToFlowsMap.get(rspId).put(sffNodeName, new ArrayList<>()); } List<FlowDetails> flowDetails = rspNameToFlowsMap.get(rspId).get(sffNodeName); flowDetails.add(new FlowDetails(sffNodeName, flowKey, new TableKey(tableId))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void writeFlow(Long rspId, String sffNodeName, FlowBuilder flow) {\n this.flowBuilder = flow;\n\n LOG.debug(\"writeFlow storing flow to Node {}, table {}\", sffNodeName, flow.getTableId());\n\n // Add the flow to the set of flows to be added in a single transaction\n ...
[ "0.6382052", "0.6238823", "0.58153194", "0.57389456", "0.56480277", "0.5605559", "0.543801", "0.5311733", "0.53035194", "0.52642643", "0.5261515", "0.5137953", "0.5113362", "0.51100343", "0.5100769", "0.5074053", "0.50705785", "0.50462157", "0.5006216", "0.5006216", "0.494170...
0.6829493
0
Return the last flow builder Used mainly in Unit Testing
@Override public FlowBuilder getFlowBuilder() { return this.flowBuilder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MakeflowFactory getMakeflowFactory();", "private ScenarioDefinition returnLastScenarioDefinition() {\n return Iterables.getLast(testedFeature.getScenarioDefinitionList());\n }", "public org.apache.calcite.avatica.proto.Common.Frame.Builder getFirstFrameBuilder() {\n \n onChanged();\n ...
[ "0.6171225", "0.5766493", "0.56396496", "0.5633014", "0.56243384", "0.5615367", "0.5553389", "0.5544186", "0.5510866", "0.5498455", "0.5426224", "0.5422815", "0.53506535", "0.53449845", "0.53312576", "0.53058195", "0.52698874", "0.5236078", "0.5229102", "0.5209673", "0.518077...
0.6641715
0
Delete all flows created for the given rspId (flows are stored in a deletion buffer; actual transactional deletion is performed upon deleteFlowSet() invokation
@Override public void deleteRspFlows(final Long rspId) { if (!rspNameToFlowsMap.containsKey(rspId)) { LOG.warn("deleteRspFlows() Attempting to delete RSP [{}], and it does not exist", rspId); return; } List<FlowDetails> flowDetailsList = new ArrayList<>(); rspNameToFlowsMap.get(rspId).forEach( (sffName, flowsPerSff) -> { flowDetailsList.addAll(flowsPerSff); flowsPerSff.clear(); } ); if (flowDetailsList.size() == 0) { LOG.warn("deleteRspFlows() no flows exist for RSP [{}]", rspId); return; } rspNameToFlowsMap.remove(rspId); setOfFlowsToDelete.addAll(flowDetailsList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteOrganizationStages(long orgId) throws ServiceManagementException {\n\t\tPreparedStatement preparedDELETEStatement = null;\n\t\t\n\t\t// get the connection\n\t\tConnection conn = openConnection();\n\t\t\n\t\t// \n\t\t// process the request\n\t\t\n\t\t\n\t\t// create the query\n\t\tString deleteQue...
[ "0.50913477", "0.5052208", "0.4951821", "0.4788739", "0.47421432", "0.47097903", "0.46805993", "0.4601952", "0.4546816", "0.45064566", "0.4483004", "0.44820827", "0.4463793", "0.44595546", "0.44493616", "0.44396955", "0.4438242", "0.4435123", "0.4417687", "0.44101843", "0.439...
0.8039504
0
Clear all flows from the SFFs whenever they are not featured in any RSP
@Override public Set<NodeId> clearSffsIfNoRspExists() { Set<NodeId> sffNodeIDs = new HashSet<>(); Map<String, List<FlowDetails>> theInitializationFlows = rspNameToFlowsMap.get(SfcOfRspProcessor.SFC_FLOWS); // an orphan SFF is a forwarder not featured in any RSP Predicate <String> isOrphanSff = sffName -> this.timesFeaturedInRsps(sffName) == 1; Set<String> orphanSffs = theInitializationFlows.entrySet().stream() .map(Entry::getKey) .filter(isOrphanSff) .collect(Collectors.toSet()); orphanSffs.forEach( sffName -> { // mark this SFF as orphan sffNodeIDs.add(new NodeId(sffName)); // mark the set of flows to remove from the switches setOfFlowsToDelete.addAll(theInitializationFlows.get(sffName)); // delete the cache of initialization flows of orphan SFFs theInitializationFlows.remove(sffName); }); return sffNodeIDs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }", "public void reset()\r\n {\n if_list.removeAllElements();\r\n ls_db.reset();\r\n spf_root = null;\r\n vertex_list.removeAllElements();\r\n router_lsa_self = null;\r\n flood...
[ "0.7799643", "0.6982694", "0.666159", "0.65399474", "0.6404058", "0.626716", "0.62614405", "0.61527526", "0.6118095", "0.6098885", "0.6094812", "0.6090683", "0.6090683", "0.6064005", "0.6043271", "0.60386604", "0.6016523", "0.60163546", "0.60094494", "0.59896034", "0.59570867...
0.67630905
2
Given the name of an sff, returns the number of times that SFF is featured in RSPs
private long timesFeaturedInRsps(String sffName) { Predicate<Entry<Long, Map<String, List<FlowDetails>>>> isSffFeatured = theInputEntry -> theInputEntry.getValue().containsKey(sffName); return rspNameToFlowsMap.entrySet().stream().filter(isSffFeatured).count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int searchCountByName(Object name) {\n\t\treturn 0;\r\n\t}", "public int countByname(java.lang.String name);", "public int fs(String s) {\n char min = 'z', current;\n int frequency = 0;\n for (int i = 0; i < s.length(); i++){\n current = s.charAt(i);\n if (cur...
[ "0.59238774", "0.58199346", "0.57476836", "0.56534547", "0.56534547", "0.56534547", "0.5645187", "0.55951333", "0.55167514", "0.5467463", "0.544434", "0.54227847", "0.542028", "0.53879994", "0.53518075", "0.5339107", "0.5327751", "0.5325437", "0.5325437", "0.5322258", "0.5315...
0.77373296
0