This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class State(object): | |
def __init__(self, label, rules, dot_idx, start_idx, end_idx, idx, made_from, producer): | |
self.label = label | |
self.rules = rules | |
self.dot_idx = dot_idx | |
self.start_idx = start_idx | |
self.end_idx = end_idx | |
self.idx = idx | |
self.made_from = made_from | |
self.producer = producer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Mathias Bak Bertelsen' | |
__email__ = '[email protected]' | |
from __future__ import division | |
import math | |
def segment_set_by_class(es): | |
return segment_set_by_attr(es, len(es[0])-1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Mathias Bak Bertelsen | |
* Email: [email protected] | |
* Date: 03-08-2014 | |
* | |
* A very simple implementation of a generic FIFO queue. | |
*/ | |
public class Queue<T> { | |