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
Retrieves the current user in session.
public static void getMe(final Context context, final OnLoginListener onLoginListener) { HttpClientHelper client = new HttpClientHelper(Endpoints.User.me, context); Network.newRequest(client, Network.GET, Network.WITH_COOKIE, new Delegate() { @Override public void requestResults(Network.Status status) { User user = null; boolean err = false; if(status.hasInternet) { if(status.response.getStatusLine().getStatusCode() == 200) { try { user = new User(status.result.getJSONObject("data")); } catch (JSONException e) { err = true; e.printStackTrace(); } } else { err = true; } } onLoginListener.onLogin(user, status, err); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic UtenteBase getSessionUser() {\n\t\tUtenteBase user = (UtenteBase) getThreadLocalRequest().getSession().getAttribute(\"user\");\n\t\treturn user;\n\t}", "public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT...
[ "0.7764474", "0.77084947", "0.7657185", "0.7656192", "0.76283216", "0.7594907", "0.75534296", "0.7505619", "0.7292973", "0.72669613", "0.7265743", "0.7238735", "0.72271603", "0.72213787", "0.7214059", "0.71975017", "0.71632844", "0.716315", "0.7148002", "0.71094525", "0.71032...
0.0
-1
is mouse being clicked?
public CStage() { keysDown = new HashSet<Integer>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isMouseClicked() {\n\t\treturn input.isMouseClicked();\n\t}", "public boolean isMouseClicked(){\n\t\treturn mouseClick;\n\t}", "public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\...
[ "0.8580193", "0.84695476", "0.7973241", "0.77893203", "0.77000517", "0.7647431", "0.75715166", "0.75555694", "0.7503322", "0.7492239", "0.74248236", "0.72634697", "0.726153", "0.71702874", "0.7132248", "0.71292627", "0.7126003", "0.7121877", "0.70973825", "0.7052143", "0.7043...
0.0
-1
prints out what "button" is, left is 0, right is 1, mouse scroll is 2 MyUtils.DrawText("Mouse button: " + button, true, new Vector2(4,5), 30); prints out where user has clicked TODO: figure out why clicks are not going through MyUtils.DrawText("Mouse location: " + "(" + screenX + ", " + screenY + ")", true, new Vector2(4,6), 30); gets location of mouse
@Override public boolean touchDown(int screenX, int screenY, int pointer, int button) { mousePosition.x = screenX / LovePirates.TILESIZE; mousePosition.y = screenY / LovePirates.TILESIZE; isClicking = true; return super.touchDown(screenX, screenY, pointer, button); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void mousePressed(MouseEvent event ) {\n\t\t\r\n\t\tint whichButton =event.getButton();\r\n\t\tmsg=\"\";\r\n\t\tmsg =\"You Pressed Mouse \" ;\r\n\t\t\r\n\t\tif(whichButton==MouseEvent.BUTTON1)\r\n\t\t\tmsg+=\" BUTTON 1\";\r\n\t\telse if(whichButton==MouseEvent.BUTTON2)\r\n\t\t\tmsg+=\"Button ...
[ "0.70372427", "0.666991", "0.6526164", "0.64766157", "0.6467717", "0.645512", "0.64210325", "0.6413383", "0.6311853", "0.62648517", "0.6214114", "0.6206058", "0.62056124", "0.62056124", "0.62056124", "0.6195198", "0.61912763", "0.61759967", "0.61706084", "0.6166909", "0.61635...
0.6083664
26
Create a Stack with default values. Stack starts empty with maximum possible size
public MyStack() { topNode = null; MAX_SIZE = Integer.MAX_VALUE; nodeCount = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}", "public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public ArrayStack() {\n this( DEFAULT_CAPACITY );\n }", ...
[ "0.75560457", "0.7258837", "0.7080878", "0.7078916", "0.7074991", "0.7035187", "0.69394886", "0.69135493", "0.6906982", "0.68635297", "0.68426424", "0.67852026", "0.67704505", "0.67168736", "0.6703089", "0.6667511", "0.66609895", "0.6650019", "0.6638135", "0.65528214", "0.653...
0.7030805
6
Create a Stack with default values and a predetermined maximum size
public MyStack(int size) { topNode = null; MAX_SIZE = size; nodeCount = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxStack(int maxStack);", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public IntStack(int maxsize) {\n ar = new int[maxsize];\n }", "public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}", "public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n ...
[ "0.702608", "0.6850634", "0.6777273", "0.6728228", "0.6726538", "0.6716601", "0.6716199", "0.6708033", "0.6676187", "0.6560097", "0.65600276", "0.65424126", "0.65255797", "0.65227246", "0.63927895", "0.6375025", "0.6316729", "0.63132894", "0.6295699", "0.62756234", "0.6272075...
0.6442355
14
Create a Stack with a single data point. Stack will be set to the maximum possible size
public MyStack(T data) { //Wrap the data in a Node Node newNode = new Node(data); //Enter the Node into the stack topNode = newNode; nodeCount = 1; MAX_SIZE = Integer.MAX_VALUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }", "public MyStack(T data, int size) {\n\t\t//...
[ "0.7372285", "0.6795253", "0.67818946", "0.6767531", "0.67575586", "0.6602567", "0.65638024", "0.6459104", "0.6440965", "0.64019436", "0.62942076", "0.62574136", "0.62495846", "0.6248426", "0.6226473", "0.6214808", "0.61767924", "0.6161742", "0.615733", "0.61221224", "0.61211...
0.6613646
5
Create a Stack with a single data point and indicated maximum size
public MyStack(T data, int size) { //Wrap the data in a Node Node newNode = new Node(data); //Enter the Node into the stack topNode = newNode; nodeCount = 1; MAX_SIZE = size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }", "public MinStack()\n\t{\n\t\tindex = -1;\n\...
[ "0.71274316", "0.6669321", "0.65874654", "0.64530617", "0.63574547", "0.6336672", "0.63177925", "0.6252252", "0.62300444", "0.62073684", "0.60789627", "0.6052523", "0.6025206", "0.5993605", "0.59691787", "0.59590024", "0.59053165", "0.5866277", "0.58445615", "0.5813968", "0.5...
0.6411363
4
Determine if the Stack is empty (containing no data)
@Override public boolean isEmpty() { if(nodeCount == 0) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public...
[ "0.890199", "0.8750391", "0.8706278", "0.86879075", "0.8642668", "0.86151385", "0.86030865", "0.8563691", "0.8553403", "0.8540452", "0.852409", "0.8523879", "0.85097474", "0.85097474", "0.8489656", "0.8455329", "0.84132487", "0.8390587", "0.8376289", "0.8324303", "0.83239794"...
0.0
-1
Determine if the Stack is full (cannot admit more data)
@Override public boolean isFull() { if(nodeCount == this.MAX_SIZE) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.87387776", "0.8542512", "0.84987", "0.84984976", "0.8178578", "0.7761478", "0.76649094", "0.7601762", "0.7509633", "0.7400335", "0.7375511", "0.73518485", "0.73274124", "0.7321459", "0.73107374", "0.7310449", "0.7297387", "0.7292377", "0.7274034", "0.7265291", "0.7263665",...
0.71322304
32
Remove the top Node from the Stack
@Override public T pop() throws StackUnderflowException { //If the Stack is empty, throw Exception if(this.isEmpty()) throw new StackUnderflowException("The stack is empty. The operation may not be completed"); else { //Retrieve the Object from the top Node of the Stack T returnData = topNode.data; //Remove the top Node and promote second Node topNode = topNode.nextNode; nodeCount--; //Return retrieved data return returnData; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pop() {\n // -\n top = top.getNextNode();\n }", "public void pop()\n {\n this.top = this.top.getNext();\n }", "public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}", "public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n ...
[ "0.7795455", "0.76812434", "0.7664463", "0.7568773", "0.7416831", "0.73312116", "0.7316148", "0.7293581", "0.72886515", "0.728478", "0.7219909", "0.72177774", "0.7185914", "0.7132816", "0.71162146", "0.70953673", "0.6996312", "0.6974414", "0.6972123", "0.6964818", "0.6955457"...
0.6508729
77
Retrieve the Object data from the top of the stack without removing the Node
@Override public T peek() throws StackUnderflowException { //If the Stack is empty, throw Exception if(this.isEmpty()) throw new StackUnderflowException("The stack is empty. The operation may not be completed"); else { //Retrieve the data from the top Node of the stack T returnData = topNode.data; return returnData; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Object peek() {\n\t\treturn top.data;\n\t}", "public T peek(){\n if (this.top == null) {\n throw new EmptyStackException();\n }\n return this.top.data;\n }", "public T peek() {\r\n\t\t\r\n\t\tif (isEmpty()) { // Throws exception if empty.\r\n\t\t\tthrow new EmptyStackExceptio...
[ "0.72554266", "0.71911883", "0.6985968", "0.69701326", "0.69662577", "0.6929409", "0.68606555", "0.6828071", "0.6813134", "0.67744094", "0.67475665", "0.6747274", "0.67391914", "0.669867", "0.66692346", "0.66605884", "0.66579515", "0.6641609", "0.6639903", "0.6630333", "0.662...
0.65811247
24
Determine the current size of the Stack
@Override public int size() { return nodeCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSize() {\r\n\t\treturn stack.size();\r\n\t}", "public int getSize(){\n return this.stack.size();\n }", "int size() {\n return stackSize;\n }", "public int size() {\n \treturn stack.size();\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}", ...
[ "0.85770494", "0.82058084", "0.81977886", "0.8114341", "0.802663", "0.79757196", "0.79265267", "0.7562839", "0.747592", "0.73998946", "0.71032", "0.7036553", "0.69832516", "0.68833613", "0.6874858", "0.68464065", "0.68446237", "0.6836804", "0.68211055", "0.6792692", "0.676582...
0.0
-1
Add an Object to the top of the Stack
@Override public boolean push(T e) throws StackOverflowException { //If the stack is full, throw Exception if(this.isFull()) throw new StackOverflowException("The stack is full. The operation may not be completed"); else { Node newNode = new Node(e, topNode); topNode = newNode; nodeCount++; return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(E object) {stackList.insertAtFront(object);}", "public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }", "@Override\n publ...
[ "0.81647754", "0.7739619", "0.7575081", "0.7547604", "0.7481152", "0.72831357", "0.7267031", "0.71299064", "0.70524627", "0.6956688", "0.68948066", "0.68810093", "0.68724304", "0.6861008", "0.68561083", "0.6752793", "0.6744308", "0.67262274", "0.6725683", "0.67176634", "0.671...
0.0
-1
Create a single String containing all data contained in the stack, starting at the bottom of the Stack. Each Object's data will be separated by the indicated delimiter String
@Override public String toString(String delimiter) { //Invert the stack by pushing Nodes to a new Stack MyStack<T> invertedStack = new MyStack<T>(this.size()); while(!this.isEmpty()) { invertedStack.push(this.pop()); } //Create empty String for returning String returnString = ""; //Create an iterator for traversing the Stack Node iteratorNode = invertedStack.topNode; //Traverse the Stack and append the individual data Strings to the return String for(int i = 0; i < invertedStack.size() - 1; i++) { returnString += iteratorNode.data.toString() + delimiter; iteratorNode = iteratorNode.nextNode; } //Add the bottom Node's data to the returnString (prevents extra terminating delimiter) returnString += iteratorNode.data.toString(); //Restore the original Stack so that it isn't destroyed while(!invertedStack.isEmpty()) { this.push(invertedStack.pop()); } //Return the finished String to the function caller return returnString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString + e + delimiter;\r\n\t\t}\r\n\t\treturn stackString.substring(0, stackString.length()-1);\r\n\t}", "public String toString(int stack) {\n\t\tString stkStr = \"\...
[ "0.8170041", "0.68630326", "0.6626574", "0.65794015", "0.640544", "0.6354598", "0.6331539", "0.6204084", "0.61999255", "0.6168101", "0.6033855", "0.6027672", "0.5999297", "0.59287447", "0.5912905", "0.5789172", "0.57787263", "0.57247907", "0.56233186", "0.557288", "0.5547837"...
0.7419491
1
Create a single String containing all data contained in the stack, starting with the bottom Node
@Override public String toString() { //Invert the Stack by pushing Nodes to a new Stack MyStack<T> invertedStack = new MyStack<T>(this.size()); while(!this.isEmpty()) { invertedStack.push(this.pop()); } //Create empty String for returning String returnString = ""; //Create an iterator for traversing the Stack Node iteratorNode = invertedStack.topNode; //Traverse the Stack and append the individual data Strings to the return String for(int i = 0; i < invertedStack.size(); i++) { returnString += iteratorNode.data.toString(); iteratorNode = iteratorNode.nextNode; } //Restore the original Stack so that it isn't destroyed while(!invertedStack.isEmpty()) { this.push(invertedStack.pop()); } //Return the finished String to the function caller return returnString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString()\r\n {\r\n String result = \"\";\r\n \r\n for (int index=0; index < top; index++) \r\n result = result + stack[index].toString() + \"\\n\";\r\n \r\n return result;\r\n }", "@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tfor(int i = 0; i...
[ "0.7662589", "0.7515948", "0.7433562", "0.7426362", "0.7358987", "0.72356635", "0.7131451", "0.68791133", "0.68155605", "0.67392135", "0.6728513", "0.67237496", "0.6721414", "0.667989", "0.66663426", "0.65848255", "0.65467936", "0.64863783", "0.6446258", "0.64076215", "0.6392...
0.7393945
4
Populate a Stack with data contained in an existing Arraylist. The first item in the ArrayList will be the first entered in the Stack (at the bottom)
@Override public void fill(ArrayList<T> list) throws StackOverflowException { //Iterate through the ArrayList. Copy each item, and add the copy to the Stack for(int i = 0; i < list.size(); i++) { T newItem = list.get(i); this.push(newItem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void fill(ArrayList<T> list) {\r\n\t\t//Copy of list\r\n\t\tArrayList<T> copyData = list;\r\n\t\t// Add copy of list to the Stack\r\n\t\tfor (T e: copyData) {\r\n\t\t\tdata.add(e);\r\n\t\t}\r\n\t}", "public ArrayListStack(){\r\n theData = new ArrayList<E>();\r\n }", "public MySt...
[ "0.721824", "0.68481266", "0.6699406", "0.6627538", "0.6551404", "0.65380204", "0.6519649", "0.6434457", "0.6376222", "0.6322608", "0.63197553", "0.6292987", "0.6270424", "0.6219266", "0.60572416", "0.60521", "0.60147125", "0.601316", "0.59564394", "0.59475356", "0.58731043",...
0.71388286
1
The next Node in line Create a Node for wrapping a given piece of data. Used as the bottom Node of the stack
public Node(T data) { this.data = data; this.nextNode = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Node<UnderlyingData> getBottomLineNode();", "public ListNode<T> getNext();", "Node<UnderlyingData> getCurrentLineNode();", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "public void insertAfterCurernt(T aData){\r\n if(curr == null){\r\n return;\r\n }\r\n ...
[ "0.62610006", "0.6142452", "0.61204183", "0.5945626", "0.59443426", "0.5919629", "0.5902257", "0.58990145", "0.5865394", "0.5815202", "0.5790499", "0.5782773", "0.5774156", "0.5758794", "0.57569116", "0.5735389", "0.5670995", "0.5659838", "0.5655974", "0.5652818", "0.56347454...
0.0
-1
Create a Node that points to the next Node in the Stack
public Node(T data, Node topNode) { this.data = data; this.nextNode = topNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ListNode<T> push(T e) {\n \treturn new ListNode<T>(e, this);\n }", "public ListNode<T> getNext();", "public Node<S> next() {\n Node<S> current = popUnvisited();\n // Take the associated state\n S currentState = current.transition().to();\n // Explore the ...
[ "0.6518964", "0.6512487", "0.6510857", "0.64827365", "0.63575757", "0.63474154", "0.6298601", "0.6284035", "0.6281943", "0.6249045", "0.62173164", "0.61514753", "0.6116472", "0.6094148", "0.6081752", "0.6071949", "0.60548633", "0.6043412", "0.6026125", "0.60258603", "0.602321...
0.0
-1
Create a new StackUnderflowException with a specific message
public StackUnderflowException(String e) { super(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnderflowException(String message) {\n super(message);\n }", "public QueueOverFlowException(String message){\r\n\t\tsuper(message);\r\n\t}", "public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }", "public StackException(String message){\n super...
[ "0.7613175", "0.7099522", "0.6983624", "0.69196564", "0.66662234", "0.6651521", "0.64064944", "0.62610126", "0.61938614", "0.6115038", "0.6066067", "0.6031246", "0.60144585", "0.59590364", "0.5951801", "0.5925094", "0.5886001", "0.5880827", "0.58585757", "0.58117545", "0.5811...
0.71977174
1
Create a new StackoverflowException with a specific message
public StackOverflowException(String e) { super(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StackException(String message){\n super(message);\n }", "public OverflowTransactionException(String message) {\n\t\tsuper(message);\n\t}", "public QueueOverFlowException(String message){\r\n\t\tsuper(message);\r\n\t}", "public PriQOverflowException(String msg) {\n\t\tsuper(msg);\n\t}", "pu...
[ "0.6772312", "0.6714921", "0.6644063", "0.66165835", "0.6606633", "0.6464489", "0.64419526", "0.6367526", "0.6363757", "0.6293494", "0.62432504", "0.62193125", "0.62140596", "0.6209906", "0.6182038", "0.6171664", "0.6127811", "0.6112743", "0.61081797", "0.60261196", "0.600273...
0.6587526
5
TODO Autogenerated method stub
public static void main(String[] args) { int[] arr = new int[]{1,2,5,6,3,2}; System.out.println("Second Largest : " + getLarg(arr,arr.length)); }
{ "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
Creates a new instance of the Travel Request Document. Initializes the empty arrays as well as the line tracking numbers
public TravelAuthorizationDocument() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Request() {\n this.setRequestId(newRequestId());\n this.setRequestValue(0.0);\n this.date = new Date();\n }", "public Request(){\n\t\tthis(null, null, null);\n\t}", "Request(Request otherRequest) {\n this.reqNum = otherRequest.reqNum;\n this.reqText = otherRequest.r...
[ "0.5981359", "0.56615293", "0.5601155", "0.559365", "0.54463553", "0.535989", "0.53575253", "0.5343245", "0.5321352", "0.5273653", "0.5263035", "0.52547216", "0.52542424", "0.52383775", "0.5237881", "0.5218753", "0.5214038", "0.519344", "0.51861537", "0.5179133", "0.5164685",...
0.5296644
9
Utility method which initiates the travel advance, hte wire transfer, the travel payment, and sets up all the related keys. Also, if the parameters are set for the advance accounting line, that is set up as well
protected void initiateAdvancePaymentAndLines() { setDefaultBankCode(); setTravelAdvance(new TravelAdvance()); getTravelAdvance().setDocumentNumber(getDocumentNumber()); setAdvanceTravelPayment(new TravelPayment()); getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber()); getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE, getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE))); getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT)); final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate(); getAdvanceTravelPayment().setDueDate(currentDate); updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment setWireTransfer(new PaymentSourceWireTransfer()); getWireTransfer().setDocumentNumber(getDocumentNumber()); setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>()); resetNextAdvanceLineNumber(); TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine(); addAdvanceAccountingLine(accountingLine); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance()....
[ "0.59614193", "0.5925554", "0.5638693", "0.5523894", "0.5405566", "0.53134054", "0.53076375", "0.521455", "0.517468", "0.51711947", "0.5126248", "0.51116914", "0.5110603", "0.5106701", "0.5104744", "0.5083536", "0.50735486", "0.5054256", "0.5053287", "0.5047731", "0.50365907"...
0.74873656
0
Creates a TA which is a copy of this TAA document
public TravelAuthorizationDocument toCopyTA() throws WorkflowException { TravelAuthorizationDocument doc = (TravelAuthorizationDocument) SpringContext.getBean(DocumentService.class).getNewDocument(TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT); toCopyTravelAuthorizationDocument(doc); doc.getDocumentHeader().setDocumentDescription(TemConstants.PRE_FILLED_DESCRIPTION); doc.getDocumentHeader().setOrganizationDocumentNumber(""); doc.setApplicationDocumentStatus(TravelAuthorizationStatusCodeKeys.IN_PROCESS); doc.setTravelDocumentIdentifier(null); // reset, so it regenerates doc.initiateAdvancePaymentAndLines(); return doc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n ...
[ "0.63808787", "0.5811746", "0.5727116", "0.5401916", "0.5267295", "0.5218178", "0.515465", "0.51397634", "0.5078293", "0.5070616", "0.5045736", "0.504509", "0.50447094", "0.5040757", "0.5037338", "0.5015798", "0.50104225", "0.4990079", "0.4935441", "0.49151713", "0.4913128", ...
0.65209836
0
cleans up the advance and accounting lines associated with it those should be blank for the copy
@Override public void toCopy() throws WorkflowException { super.toCopy(); travelAdvancesForTrip = null; setTravelDocumentIdentifier(null); if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances initiateAdvancePaymentAndLines(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeLines() {\n int compLines = 0;\n int cont2 = 0;\n\n for(cont2=20; cont2>0; cont2--) {\n while(completeLines[compLines] == cont2) {\n cont2--; compLines++;\n }\n this.copyLine(cont2, cont2+compLines);\n }\n\n lines ...
[ "0.65901834", "0.6270632", "0.6231014", "0.6058334", "0.5938424", "0.59171927", "0.5899804", "0.58489245", "0.57775784", "0.57748824", "0.57607865", "0.57543963", "0.5752001", "0.5744125", "0.5738191", "0.57255065", "0.5717517", "0.5710139", "0.57042843", "0.5684147", "0.5683...
0.0
-1
Determines if this document should do the extra work on a document copy associated with reverting to a TA document Of course, in this implementation, we return false always because a TA doesn't have to do the extra work. But TAA's and TAC's do.
public boolean shouldRevertToOriginalAuthorizationOnCopy() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean canChangeDocuments() {\n\n // If the text is modified, give the user a chance to\n // save it. Otherwise return true.\n\n if (fDocument.isModified()) {\n byte save = askSave(this, getTitle());\n if (save == YES) {\n return doSave();\n ...
[ "0.59579587", "0.5698011", "0.560645", "0.552731", "0.55124223", "0.54725516", "0.54360133", "0.5410152", "0.5405254", "0.5395587", "0.53954387", "0.535933", "0.5335783", "0.5322369", "0.5321753", "0.52883375", "0.52668226", "0.52639353", "0.526134", "0.526134", "0.5260358", ...
0.55229485
4
Gets the perDiemAdjustment attribute.
@Override @Column(name = "PER_DIEM_ADJ", precision = 19, scale = 2) public KualiDecimal getPerDiemAdjustment() { return perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPerDiemAdjustment(KualiDecimal perDiemAdjustment) {\n this.perDiemAdjustment = perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment;\n }", "public double getDPad() {\n\t\treturn this.getRawAxis(6);\n\t}", "public double getAdjustmentRatio() {\n return adj...
[ "0.6524349", "0.6482478", "0.6423656", "0.621363", "0.6063039", "0.6055495", "0.5976941", "0.5960877", "0.59388286", "0.58744824", "0.5866621", "0.5859143", "0.584602", "0.58201766", "0.58177114", "0.5815917", "0.5806102", "0.58046085", "0.5786982", "0.57307434", "0.572683", ...
0.8420015
0
Sets the perDiemAdjustment attribute value.
@Override public void setPerDiemAdjustment(KualiDecimal perDiemAdjustment) { this.perDiemAdjustment = perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Column(name = \"PER_DIEM_ADJ\", precision = 19, scale = 2)\n public KualiDecimal getPerDiemAdjustment() {\n return perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment;\n }", "public void setAdjustmentRatio(double value) {\n this.adjustmentRatio = value;\n }", "p...
[ "0.6724869", "0.56387115", "0.5532573", "0.5444755", "0.52778214", "0.5264014", "0.51982373", "0.51979476", "0.51326746", "0.512051", "0.50922966", "0.50740546", "0.50674903", "0.5065336", "0.50456583", "0.5007522", "0.49995488", "0.4921421", "0.48879412", "0.4871844", "0.484...
0.8202134
0
This method returns the traveler's cell phone number
@Column(name = "CELL_PH_NUM", length = 10) public String getCellPhoneNumber() { return cellPhoneNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCellphone() {\n return cellphone;\n }", "java.lang.String getPhonenumber();", "@Override\n public java.lang.String getCellPhone() {\n return _entityCustomer.getCellPhone();\n }", "public java.lang.String getTelphone () {\r\n\t\treturn telphone;\r\n\t}", "java.lang.St...
[ "0.7550241", "0.7162453", "0.70833486", "0.6927609", "0.68055284", "0.6779731", "0.6779731", "0.6779731", "0.6743958", "0.6742882", "0.67353916", "0.67353916", "0.67353916", "0.67066425", "0.669804", "0.6669323", "0.6648726", "0.6621122", "0.65991145", "0.6597463", "0.6572761...
0.67270434
13
This method sets the cell phone of the traveler
public void setCellPhoneNumber(String cellPhoneNumber) { this.cellPhoneNumber = cellPhoneNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCellphone(String cellphone) {\n this.cellphone = cellphone;\n }", "@Override\n public void setCellPhone(java.lang.String cellPhone) {\n _entityCustomer.setCellPhone(cellPhone);\n }", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = pho...
[ "0.7411568", "0.71442974", "0.6499377", "0.64362097", "0.6413917", "0.63383055", "0.6325262", "0.6325262", "0.6191756", "0.61472476", "0.61439127", "0.6090196", "0.6046853", "0.6038085", "0.6033112", "0.6017294", "0.6016513", "0.6010868", "0.5973643", "0.5973643", "0.5973643"...
0.64057213
5
This method gets the traveler's familiarity with the region
@Column(name = "rgn_famil") public String getRegionFamiliarity() { return regionFamiliarity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegionFamiliarity(String regionFamiliarity) {\n this.regionFamiliarity = regionFamiliarity;\n }", "String getPersonality();", "int getRegionValue();", "kr.pik.message.Profile.HowMe.Region getRegion();", "public TypeOfRegion getRegion();", "public EnumRegion getRegion()\n {\n ...
[ "0.5991221", "0.57325304", "0.5711238", "0.5696765", "0.56270784", "0.5457563", "0.54263335", "0.540453", "0.53828984", "0.53546333", "0.5337729", "0.52982855", "0.5261297", "0.5260998", "0.5233876", "0.5211638", "0.52050775", "0.5200706", "0.51988906", "0.51709634", "0.51618...
0.6319525
0
This method sets the traveler's familiarity with the region
public void setRegionFamiliarity(String regionFamiliarity) { this.regionFamiliarity = regionFamiliarity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegion(final TypeOfRegion region);", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public void setRegion(String region);", "public void setRegion(CoordinateRadius region);", "public void setRegion(Region region) {\n this.region = region;\n }", ...
[ "0.62606597", "0.6064607", "0.60488874", "0.59967947", "0.59467936", "0.58540654", "0.58114153", "0.5769804", "0.57257605", "0.56323296", "0.56175274", "0.55638474", "0.55418986", "0.5529599", "0.5529599", "0.5529599", "0.5458982", "0.5458982", "0.5458982", "0.54372734", "0.5...
0.6497024
0
This method sets the transportation modes
@Override public void setTransportationModes(List<TransportationModeDetail> transportationModes) { this.transportationModes = transportationModes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}", "public void set_transaction_mode(TransactionType mode){\n\t\ttransaction_type = mode;\n\t}", "@Override\r\n\tpublic void travelMode() {\n\t\tthis.travelMode = \"Car\";\r\n\t\tSystem.out.println(\"Mode of ...
[ "0.6361158", "0.6086713", "0.60597557", "0.60553396", "0.5976088", "0.5974493", "0.59622496", "0.59134555", "0.58948326", "0.58654636", "0.58307505", "0.5822412", "0.58194053", "0.58169234", "0.5810825", "0.5786561", "0.5765809", "0.57651633", "0.5756861", "0.57490575", "0.57...
0.7640552
0
Helper method to add a transportation mode detail to a Travel Request
public void addTransportationMode(TransportationModeDetail transportationModeDetail) { transportationModeDetail.setDocumentNumber(this.documentNumber); this.transportationModes.add(transportationModeDetail); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addInludedTransportType(Integer includedTransportType);", "private TransportOutDescription getTranport(String epr) {\r\n\t\tTransportOutDescription transport = null;\r\n\r\n\t\ttry {\r\n\t\t\tURL url = new URL(epr);\r\n\t\t\tString protocol = url.getProtocol();\r\n\t\t\tif (\"http\".equalsIgnoreCase(...
[ "0.56753695", "0.5445933", "0.5395519", "0.5325083", "0.5290977", "0.5277424", "0.52056056", "0.5108115", "0.51061034", "0.51061034", "0.5098455", "0.5073464", "0.50716215", "0.50259364", "0.49973768", "0.49803588", "0.49424282", "0.4941461", "0.49410498", "0.49244738", "0.49...
0.66798747
0
This method populates the list of transportation modes from an array of strings
@Transient public void setTransportationModeCodes(List<String> selectedTransportationModes) { // now we need to lookup the corresponding transportation mode and add it for (String string : selectedTransportationModes) { // now we need to determine if this mode is already stored as a detail object TransportationModeDetail detail = new TransportationModeDetail(); detail.setTransportationModeCode(string); detail.setDocumentNumber(this.documentNumber); if (!transportationModes.contains(detail)) { this.addTransportationMode(detail); } } // now for removed items if (selectedTransportationModes.size() != this.transportationModes.size()) { // need to figure out which items need to be removed from the transportation modes array for (ListIterator<TransportationModeDetail> iter = transportationModes.listIterator(); iter.hasNext();) { TransportationModeDetail detail = iter.next(); if (!selectedTransportationModes.contains(detail.getTransportationModeCode())) { // we need to remove this item from collection (and OJB should manage the rest iter.remove(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setTransportationModes(List<TransportationModeDetail> transportationModes) {\n this.transportationModes = transportationModes;\n }", "private void findMode(ArrayList<PlanElement> elements) {\r\n\t\tfor(PlanElement p : elements){\r\n\t\t\tif(p instanceof Leg){\r\n\t\t\t\tif(((...
[ "0.58733845", "0.5577222", "0.5273984", "0.5211462", "0.5023144", "0.49896955", "0.4866249", "0.48386115", "0.47973555", "0.47904354", "0.47487912", "0.47425237", "0.47060308", "0.47040796", "0.4686035", "0.46784815", "0.46743137", "0.46731052", "0.46107244", "0.4586126", "0....
0.5988759
0
The toCopy method is forcing me to put in this method so it doesn't choke when trying to copy over
@Transient public List<String> getTransportationModeCodes() { List<String> codes = new ArrayList<String>(); for (TransportationModeDetail mode : transportationModes) { codes.add(mode.getTransportationModeCode()); } return codes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy() {\n\n\t}", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public abstract INodo copy();", "@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}", "public CMObject copyOf();", "static void setCopying(){isCopying...
[ "0.7655451", "0.7636182", "0.7476185", "0.72757286", "0.70974815", "0.7046477", "0.7000582", "0.6992036", "0.6933065", "0.6840063", "0.68366665", "0.68131626", "0.6737858", "0.67146623", "0.6702844", "0.6664892", "0.662138", "0.66001934", "0.658637", "0.6579788", "0.6572453",...
0.0
-1
This method adds a new travel expense line to the managed collection
public void addActualExpenseLine(ActualExpense line) { line.setDocumentLineNumber(getActualExpenses().size() + 1); final String sequenceName = line.getSequenceName(); final Long sequenceNumber = getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceName, ActualExpense.class); line.setId(sequenceNumber); line.setDocumentNumber(this.documentNumber); notifyChangeListeners(new PropertyChangeEvent(this, TemPropertyConstants.ACTUAL_EXPENSES, null, line)); getActualExpenses().add(line); logErrors(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pushSavedExpenseLineItem(){\n //Cursor cursor = getExpenseStatusCursor(SyncStatus.SAVED_REPORT);\n Cursor cursor = getSavedExpenseLineItemCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n do {\n final Long expenseBaseId = c...
[ "0.6836299", "0.64533573", "0.62042564", "0.59920025", "0.588998", "0.58633345", "0.5732302", "0.5721199", "0.57082915", "0.5687112", "0.5670075", "0.5653587", "0.5621675", "0.55942947", "0.55851114", "0.5574442", "0.5547312", "0.5521538", "0.5471697", "0.5469808", "0.5440415...
0.6844584
0
Sets the TravelAdvance associated with this document
public void setTravelAdvance(TravelAdvance travelAdvance) { this.travelAdvance = travelAdvance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }", "public void setTravel(Travel travel) {\n this.travel = travel;\n }", "public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(get...
[ "0.6306207", "0.56873477", "0.55434775", "0.53664064", "0.5325855", "0.5205953", "0.50319195", "0.4967619", "0.49663508", "0.49013558", "0.4883541", "0.4820081", "0.4804382", "0.47597516", "0.47546935", "0.4743138", "0.47423765", "0.47420248", "0.47324646", "0.47105876", "0.4...
0.74405926
0
Initiates the accounting line to go with the advance if all the parameters for the advance are set
protected TemSourceAccountingLine initiateAdvanceAccountingLine() { try { TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance(); accountingLine.setDocumentNumber(getDocumentNumber()); accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE); accountingLine.setSequenceNumber(new Integer(1)); accountingLine.setCardType(TemConstants.ADVANCE); if (this.allParametersForAdvanceAccountingLinesSet()) { accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART)); accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT)); accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE)); } return accountingLine; } catch (InstantiationException ie) { LOG.error("Could not instantiate new advance accounting line of type: "+getAdvanceAccountingLineClass().getName()); throw new RuntimeException("Could not instantiate new advance accounting line of type: "+getAdvanceAccountingLineClass().getName(), ie); } catch (IllegalAccessException iae) { LOG.error("Illegal access attempting to instantiate advance accounting line of class "+getAdvanceAccountingLineClass().getName()); throw new RuntimeException("Illegal access attempting to instantiate advance accounting line of class "+getAdvanceAccountingLineClass().getName(), iae); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumen...
[ "0.781898", "0.6862935", "0.652464", "0.6391636", "0.60117346", "0.5909604", "0.5834673", "0.58025575", "0.5798105", "0.5707383", "0.5589243", "0.5548258", "0.5505135", "0.5370642", "0.53678304", "0.53111416", "0.52767074", "0.5274189", "0.5214618", "0.52093357", "0.51786387"...
0.67651725
2
Adds a new emergency contact line
public void addEmergencyContactLine(TravelerDetailEmergencyContact line) { if (!ObjectUtils.isNull(getTraveler())) { line.setFinancialDocumentLineNumber(getTraveler().getEmergencyContacts().size() + 1); line.setDocumentNumber(this.documentNumber); line.setTravelerDetailId(getTraveler().getId()); getTraveler().getEmergencyContacts().add(line); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addContact() throws IOException {\n\t\t\n\t\tContact contact = Contact.getContact();\n\t\twhile (checkPhone(contact.getPhone()) != -1) {\n\t\t\tSystem.out.println(\"Phone already exits. Please input again!\");\n\t\t\tcontact.setPhone(getString(\"phone\"));\n\t\t}\n\t\tlist.add(contact);\n\t\tSystem.out...
[ "0.6206872", "0.6065404", "0.58430636", "0.57400596", "0.57375896", "0.56416184", "0.5613925", "0.55412525", "0.5526454", "0.55245745", "0.5498782", "0.5476427", "0.5455206", "0.54443574", "0.53935444", "0.5351191", "0.5349369", "0.5315803", "0.52901894", "0.5281983", "0.5258...
0.74862754
0
Determines if this document should be able to return to the fiscal officer node again. This can happen if the user has rights to reroute and also if the document is already ENROUTE.
@Override public boolean canReturn() { return getDocumentHeader().getWorkflowDocument().isEnroute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean requiresRiskManagementReviewRouting() {\n // Right now this works just like International Travel Reviewer, but may change for next version\n if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, ...
[ "0.626645", "0.60608613", "0.6044793", "0.6006933", "0.59975463", "0.59469575", "0.5828336", "0.5818794", "0.57645243", "0.5741783", "0.5682614", "0.56738025", "0.5672024", "0.5643294", "0.56207585", "0.56055534", "0.55734134", "0.55006343", "0.5493765", "0.5486202", "0.54546...
0.65334874
0
Customization for "normal" accounting lines the accounting lines which will encumber
protected void customizeExpenseExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry) { // set the encumbrance update code Set to ENCUMB_UPDT_REFERENCE_DOCUMENT_CD ("R") explicitEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD); // set the offset entry to Debit "D" explicitEntry.setTransactionDebitCreditCode(KFSConstants.GL_DEBIT_CODE); explicitEntry.setDocumentNumber(this.getDocumentNumber()); String referenceDocumentNumber = this.getTravelDocumentIdentifier(); if (ObjectUtils.isNotNull(referenceDocumentNumber)) { explicitEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber); explicitEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT); explicitEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE); } String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this); if (StringUtils.isNotEmpty(balanceType)) { explicitEntry.setFinancialBalanceTypeCode(balanceType); } explicitEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }", "@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccoun...
[ "0.5746537", "0.56003654", "0.5513055", "0.5496479", "0.54800427", "0.5455229", "0.53490615", "0.5333196", "0.5304755", "0.529758", "0.5280227", "0.5266371", "0.5245667", "0.5243505", "0.5233789", "0.52273864", "0.51924384", "0.5179395", "0.51548404", "0.5153954", "0.5152909"...
0.0
-1
Customization for accounting lines associated with travel advances
protected void customizeAdvanceExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry) { final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType(); explicitEntry.setFinancialDocumentTypeCode(paymentDocumentType); final String description = MessageFormat.format(getConfigurationService().getPropertyValueAsString(TemKeyConstants.TA_MESSAGE_ADVANCE_ACCOUNTING_LINES_GLPE_DESCRIPTION), getDataDictionaryService().getDocumentTypeNameByClass(getClass()), getDocumentNumber()); final int maxLength = getDataDictionaryService().getAttributeMaxLength(GeneralLedgerPendingEntry.class, KFSPropertyConstants.TRANSACTION_LEDGER_ENTRY_DESC); explicitEntry.setTransactionLedgerEntryDescription(StringUtils.abbreviate(description, maxLength)); explicitEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumen...
[ "0.6850824", "0.66087466", "0.6503315", "0.6409674", "0.63556415", "0.60568887", "0.59357774", "0.5910547", "0.56425506", "0.552856", "0.5503778", "0.5488682", "0.5420114", "0.5374609", "0.5363476", "0.5333808", "0.53216475", "0.52869725", "0.52748424", "0.52695906", "0.51967...
0.0
-1
Customizes offset GLPE's for "normal" accounting lines which are offsetting entries which are paying off expenses
public boolean customizeExpenseOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) { boolean customized = false; // set the encumbrance update code offsetEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD); // set the offset entry to Credit "C" offsetEntry.setTransactionDebitCreditCode(KFSConstants.GL_CREDIT_CODE); offsetEntry.setDocumentNumber(this.getDocumentNumber()); String referenceDocumentNumber = this.getTravelDocumentIdentifier(); if (ObjectUtils.isNotNull(referenceDocumentNumber)) { offsetEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber); offsetEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT); offsetEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE); } String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this); if (StringUtils.isNotEmpty(balanceType)) { offsetEntry.setFinancialBalanceTypeCode(balanceType); customized = true; } offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier()); return customized; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initOffset(){\n\t\tdouble maxDistance = Math.sqrt(Math.pow(getBattleFieldWidth(),2) + Math.pow(getBattleFieldHeight(),2));\n\n\t\tif(eDistance < 100) { \n\t\t\toffset = 0;\n\t\t} else if (eDistance <=700){\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\n...
[ "0.5583206", "0.5463955", "0.53452474", "0.5331012", "0.5319597", "0.5282894", "0.52269423", "0.5203896", "0.51998615", "0.5196713", "0.5092641", "0.50510544", "0.5048191", "0.49954158", "0.49919033", "0.4987443", "0.49792108", "0.49209023", "0.49121714", "0.49060667", "0.488...
0.4845422
21
Customizes offset GLPE's for accounting lines associated with advances
public boolean customizeAdvanceOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) { final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType(); offsetEntry.setFinancialDocumentTypeCode(paymentDocumentType); offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier()); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initOffset(){\n\t\tdouble maxDistance = Math.sqrt(Math.pow(getBattleFieldWidth(),2) + Math.pow(getBattleFieldHeight(),2));\n\n\t\tif(eDistance < 100) { \n\t\t\toffset = 0;\n\t\t} else if (eDistance <=700){\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\n...
[ "0.6174367", "0.608607", "0.5916314", "0.58435786", "0.58404994", "0.580183", "0.57910293", "0.5789053", "0.57563955", "0.57320833", "0.5678128", "0.5616743", "0.5597861", "0.5577411", "0.5481979", "0.546519", "0.545385", "0.54047346", "0.53663707", "0.53589946", "0.53413033"...
0.0
-1
Determines if this document should hold its encumbrances because the trip end date belongs to a fiscal year which does not yet exist
protected boolean shouldHoldEncumbrance() { if (getTripEnd() == null) { return false; // we won't hold encumbrances if we don't know when the trip is ending } final java.sql.Date tripEnd = new java.sql.Date(getTripEnd().getTime()); return getTravelEncumbranceService().shouldHoldEntries(tripEnd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasEndDate();", "public boolean hasEndDate() {\n return fieldSetFlags()[2];\n }", "protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdva...
[ "0.6106312", "0.60385954", "0.6023568", "0.5996845", "0.59846944", "0.5966867", "0.5800611", "0.5777117", "0.56882334", "0.5664486", "0.5662999", "0.55785257", "0.5555423", "0.55467886", "0.5519053", "0.55007744", "0.54644704", "0.5458349", "0.54248166", "0.5415816", "0.53758...
0.6500647
0
Determines if this document has an advance and the due date for the advance occurs in a nonexisting fiscal year, in which case, the advance's glpes should be held
protected boolean shouldHoldAdvance() { if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) { return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate()); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear...
[ "0.6058103", "0.599478", "0.59573907", "0.5820195", "0.5717746", "0.5661284", "0.5624506", "0.56169903", "0.5586345", "0.55745625", "0.55552477", "0.55250674", "0.5467151", "0.5463386", "0.5376043", "0.5373747", "0.5345962", "0.5337557", "0.53257525", "0.53088725", "0.5301615...
0.63220316
0
Determines if the given general ledger pending entry represents an encumbrance entry
protected boolean isEncumbrancePendingEntry(GeneralLedgerPendingEntry glpe) { return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT) || StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT) || StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CLOSE_DOCUMENT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isAdvancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(),TemConstants.TravelDocTyp...
[ "0.67546785", "0.5796372", "0.53471255", "0.5335143", "0.52424896", "0.5219965", "0.520439", "0.51787823", "0.5173039", "0.51594144", "0.5130951", "0.51185787", "0.51031643", "0.50805146", "0.50294614", "0.5014363", "0.5002975", "0.49884182", "0.49646997", "0.49625367", "0.49...
0.7824591
0
Determines if the given pending entry represents an advance
protected boolean isAdvancePendingEntry(GeneralLedgerPendingEntry glpe) { return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT) || StringUtils.equals(glpe.getFinancialDocumentTypeCode(),TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_WIRE_OR_FOREIGN_DRAFT_DOCUMENT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean processAdvance() throws BattleEventException {\n \n \n return true;\n }", "@Override\n\tpublic boolean isAdvanceable() {\n\t\treturn false;\n\t}", "protected boolean isEncumbrancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFin...
[ "0.61026514", "0.5673256", "0.5652542", "0.56516176", "0.56047076", "0.55450326", "0.55271095", "0.54643834", "0.544849", "0.53886104", "0.53705835", "0.5350862", "0.5294646", "0.528633", "0.52796763", "0.52538824", "0.5209881", "0.51893", "0.5184434", "0.5175187", "0.5171339...
0.6827285
0
Sets the doc status for previous authorizations to "Retired"
protected void retirePreviousAuthorizations() { List<Document> relatedDocs = getTravelDocumentService().getDocumentsRelatedTo(this, TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT, TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT); //updating the related's document appDocStatus to be retired final DocumentAttributeIndexingQueue documentAttributeIndexingQueue = KewApiServiceLocator.getDocumentAttributeIndexingQueue(); try { for (Document document : relatedDocs){ if (!document.getDocumentNumber().equals(this.getDocumentNumber())) { ((TravelAuthorizationDocument) document).updateAndSaveAppDocStatus(TravelAuthorizationStatusCodeKeys.RETIRED_VERSION); documentAttributeIndexingQueue.indexDocument(document.getDocumentNumber()); } } } catch (WorkflowException we) { throw new RuntimeException("Workflow document exception while updating related documents", we); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDocStatus (String DocStatus);", "public void setDocStatus (String DocStatus);", "public void setDocStatus (String DocStatus);", "public void setRelDocStatus(int v) \n {\n \n if (this.relDocStatus != v)\n {\n this.relDocStatus = v;\n set...
[ "0.5545196", "0.5545196", "0.5545196", "0.5422187", "0.5245473", "0.523629", "0.52251285", "0.5175165", "0.5166159", "0.5092579", "0.5076672", "0.5076463", "0.50749063", "0.50664717", "0.49979344", "0.499135", "0.49788618", "0.49656108", "0.49611986", "0.49593776", "0.4942985...
0.7319802
0
NOTE: need to find out all reference to TA's source accounting lines
@Override public List getSourceAccountingLines() { return super.getSourceAccountingLines(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseListSources(String source) {\r\n\t\t// Gets a scanner from the source\r\n\t\tInputStream in = new ByteArrayInputStream(source.getBytes());\r\n\t\t_assertedFacs = new HashSet<String>();\r\n\t\tScanner scan = new Scanner(in);\r\n\t\tString file = null;\r\n\t\tString line = null;\r\n\t\tboolean isFil...
[ "0.5724583", "0.5548832", "0.53977776", "0.5318948", "0.5158906", "0.49734503", "0.49572915", "0.49539572", "0.49437296", "0.4934458", "0.49090233", "0.4897166", "0.4856507", "0.48508817", "0.4841734", "0.48258552", "0.4819792", "0.4809363", "0.4809263", "0.47874725", "0.4783...
0.63460785
0
Get all of the encumbrance source accounting lines (for estimated expenses) do not include any import expense lines
public List<TemSourceAccountingLine> getEncumbranceSourceAccountingLines() { List<TemSourceAccountingLine> encumbranceLines = new ArrayList<TemSourceAccountingLine>(); for (TemSourceAccountingLine line : (List<TemSourceAccountingLine>) getSourceAccountingLines()){ if (TemConstants.ENCUMBRANCE.equals(line.getCardType())){ encumbranceLines.add(line); } } return encumbranceLines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }", "protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(...
[ "0.664779", "0.56568736", "0.5427321", "0.5225152", "0.5178836", "0.5118124", "0.5116687", "0.5105071", "0.5067648", "0.50522196", "0.50119025", "0.5009645", "0.4912688", "0.48738062", "0.4870264", "0.4869271", "0.48611203", "0.48313016", "0.4788818", "0.47705615", "0.4763654...
0.78686374
0
Only return something if the document is not closed or cancelled
@Override public List<GeneralLedgerPendingEntrySourceDetail> getGeneralLedgerPendingEntrySourceDetails() { if (TemConstants.TravelAuthorizationStatusCodeKeys.CLOSED.equals(getAppDocStatus()) || TemConstants.TravelAuthorizationStatusCodeKeys.CANCELLED.equals(getAppDocStatus())) { return new ArrayList<GeneralLedgerPendingEntrySourceDetail>(); // hey, we're closed or cancelled. Let's not generate entries } return super.getGeneralLedgerPendingEntrySourceDetails(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean canCancel(Document document) {\n return false;\r\n }", "public boolean isFinishedWithDocument(DocText docText) {\n return false;\n }", "boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();",...
[ "0.6880617", "0.6231582", "0.60281134", "0.60038185", "0.60038185", "0.60038185", "0.59557766", "0.59444165", "0.5931268", "0.593015", "0.5928284", "0.5915974", "0.58719355", "0.58262026", "0.5810461", "0.57627654", "0.5723358", "0.5722414", "0.57184577", "0.5717294", "0.5717...
0.0
-1
Sets the payment information for advances on this document
public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) { this.advanceTravelPayment = advanceTravelPayment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumen...
[ "0.6655281", "0.62730503", "0.62659556", "0.6194865", "0.59600186", "0.5935788", "0.5928798", "0.58501303", "0.58344126", "0.58344126", "0.581534", "0.57884836", "0.5702975", "0.56500965", "0.5574483", "0.5561141", "0.5558516", "0.5551644", "0.5531149", "0.55015355", "0.54744...
0.62059635
3
Sets accounting lines associated with advances on this document
public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) { this.advanceAccountingLines = advanceAccountingLines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }", "protected void initiateAdv...
[ "0.68379116", "0.676574", "0.58858925", "0.5821463", "0.57380396", "0.57251793", "0.56545055", "0.55325675", "0.52212167", "0.5104315", "0.50526434", "0.5045079", "0.499079", "0.49454814", "0.4940457", "0.4935854", "0.4930716", "0.49042824", "0.48971114", "0.48629403", "0.486...
0.74119186
0
This implementation sets the sequence number appropriately for the passed in source accounting line using the value that has been stored in the nextSourceLineNumber variable, adds the accounting line to the list that is aggregated by this object, and then handles incrementing the nextSourceLineNumber variable for you.
public void addAdvanceAccountingLine(TemSourceAccountingLine line) { line.setSequenceNumber(this.getNextAdvanceLineNumber()); this.advanceAccountingLines.add(line); this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void fixLineNumbers() {\n int prevLn = -1;\n for (DexlibAbstractInstruction instruction : instructions) {\n Unit unit = instruction.getUnit();\n int lineNumber = unit.getJavaSourceStartLineNumber();\n if (lineNumber < 0) {\n if (prevLn >= 0) {\n unit.addTag(new LineNu...
[ "0.58104676", "0.5766421", "0.5711996", "0.5650238", "0.56138676", "0.5587075", "0.5577529", "0.5484428", "0.54104316", "0.5408986", "0.53536475", "0.5316231", "0.52732176", "0.5267809", "0.5245423", "0.5232047", "0.5227173", "0.5227173", "0.5227173", "0.5201076", "0.51798075...
0.59601307
0
This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects get instantiated within lists. The first three lines are required otherwise when the PojoProcessor tries to automatically inject values into the list, it will get an index out of bounds error if the instance at an index is being called and prior instances at indices before that one are not being instantiated. So changing the code below will cause adding lines to break if you add more than one item to the list.
public TemSourceAccountingLine getAdvanceAccountingLine(int index) { while (getAdvanceAccountingLines().size() <= index) { getAdvanceAccountingLines().add(createNewAdvanceAccountingLine()); } return getAdvanceAccountingLines().get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);", "public static void addList() {\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate List<Object> injectClassInvariantBuilder(List<Object> list) {\n\t\tList<Object> tempList = new ArrayList<Object>();\n\n...
[ "0.5623908", "0.55551296", "0.5374768", "0.5360411", "0.5305327", "0.528654", "0.5258247", "0.5231532", "0.52143115", "0.5211452", "0.51686263", "0.5164508", "0.5162876", "0.5162284", "0.51419073", "0.5138412", "0.5132839", "0.5125278", "0.5124486", "0.51132214", "0.5112535",...
0.0
-1
Creates a new, properlyinitiated accounting line of the advance accounting line class specified on the Travel Authorization document
public TemSourceAccountingLine createNewAdvanceAccountingLine() { try { TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance(); accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE); accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING)); return accountingLine; } catch (IllegalAccessException iae) { throw new RuntimeException("unable to create a new source accounting line for advances", iae); } catch (InstantiationException ie) { throw new RuntimeException("unable to create a new source accounting line for advances", ie); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(Te...
[ "0.7931215", "0.66562474", "0.64841574", "0.6379891", "0.634072", "0.61070013", "0.61015946", "0.5859681", "0.57561916", "0.5679552", "0.5593014", "0.5550108", "0.541363", "0.5355913", "0.535584", "0.5350923", "0.53481203", "0.53129154", "0.5300585", "0.5274429", "0.5240677",...
0.8264816
0
Method which resets the next next advance accounting line number back to 1; it should only be called by internal methods (like that which creates TAA's)
protected void resetNextAdvanceLineNumber() { this.nextAdvanceLineNumber = new Integer(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\n next = 1000;\n }", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "public void setAccNo(int accNo) {\r\n\t\tthis.accNo = accNo+1;\r\n\t}", "public void nextLevelTogo() {\n if (this.myClearedLines % 2 == 0) {\n myLinesToGo = 2;\n } else...
[ "0.6602993", "0.621467", "0.61282676", "0.61245495", "0.59478617", "0.59269303", "0.59010684", "0.58490026", "0.58349466", "0.5812169", "0.57639134", "0.5720846", "0.56472796", "0.5627949", "0.5597776", "0.5585502", "0.55719954", "0.5559397", "0.5554819", "0.5530868", "0.5522...
0.84155315
0
Provides answers to the following splits: PurchaseWasReceived VendorIsEmployeeOrNonResidentAlien
@Override public boolean answerSplitNodeQuestion(String nodeName) throws UnsupportedOperationException { if (nodeName.equals(TemWorkflowConstants.SPECIAL_REQUEST)) { return requiresSpecialRequestReviewRouting(); } if (nodeName.equals(TemWorkflowConstants.INTL_TRAVEL)) { return requiresInternationalTravelReviewRouting(); } if (nodeName.equals(TemWorkflowConstants.RISK_MANAGEMENT)) { return requiresRiskManagementReviewRouting(); } if (nodeName.equals(TemWorkflowConstants.TRVL_ADV_REQUESTED)) { return requiresTravelAdvanceReviewRouting(); } if (nodeName.equals(TemWorkflowConstants.DIVISION_APPROVAL_REQUIRED)) { return requiresDivisionApprovalRouting(); } if (nodeName.equals(TemWorkflowConstants.REQUIRES_TRAVELER_REVIEW)) { return requiresTravelerApprovalRouting(); } if (StringUtils.equals(TemWorkflowConstants.REQUIRES_BUDGET_REVIEW, nodeName)) { return isBudgetReviewRequired(); } if (nodeName.equals(TemWorkflowConstants.SEPARATION_OF_DUTIES)) { return requiresSeparationOfDutiesRouting(); } throw new UnsupportedOperationException("Cannot answer split question for this node you call \"" + nodeName + "\""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void whenPriceEventIsReceived_ThenItCanBeReadBackByVendorId() throws JsonProcessingException {\n Price bloomberg_AAPL = sendMessage(\"Bloomberg\", \"AAPL\");\n Price bloomberg_MSFT = sendMessage(\"Bloomberg\", \"MSFT\");\n Price reuters_AAPL = sendMessage(\"Reuters\", \"AAPL\...
[ "0.55671775", "0.55665946", "0.5132208", "0.49870133", "0.4853982", "0.48203862", "0.4791626", "0.4720602", "0.4695215", "0.46702325", "0.46249482", "0.46130273", "0.45923966", "0.45870093", "0.45658457", "0.45580557", "0.45522642", "0.45443842", "0.4534295", "0.45170856", "0...
0.0
-1
Traveler approval is required if it requires review for travel advance
protected boolean requiresTravelerApprovalRouting() { //If there's travel advances, route to traveler if necessary return requiresTravelAdvanceReviewRouting() && !getTravelAdvance().getTravelAdvancePolicy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SystemAPI\n\tboolean needsApproval();", "public boolean requiresPostApproval() {\n return true;\n }", "@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "private TransferPointRequest checkT...
[ "0.7193743", "0.6518735", "0.64658964", "0.64040196", "0.6295172", "0.626199", "0.6260812", "0.61190754", "0.6118132", "0.6118132", "0.6099909", "0.6031947", "0.60067654", "0.5983526", "0.59713805", "0.595714", "0.58948916", "0.5889719", "0.58766776", "0.5876157", "0.58618504...
0.6851932
1
This method checks to see if Risk Management needs to be routed
private boolean requiresRiskManagementReviewRouting() { // Right now this works just like International Travel Reviewer, but may change for next version if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) { return true; } if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager aut...
[ "0.6168445", "0.59991676", "0.5830136", "0.54638916", "0.5457158", "0.5364802", "0.53063756", "0.52202153", "0.5193267", "0.51582396", "0.5145202", "0.508572", "0.5049092", "0.50277936", "0.5013627", "0.49905923", "0.4990005", "0.49740094", "0.4972903", "0.4962555", "0.496247...
0.7070863
0
If the line is for an advance, always returns true; otherwise, always returns false
@Override public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable) { if (postable instanceof AccountingLine && TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE.equals(((AccountingLine)postable).getFinancialDocumentLineTypeCode())) { return true; // we're an advance accounting line? then we're debiting... } return false; // we're not an advance accounting line? then we should return false... }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean advance_lookahead() {\r\n this.lookahead_pos++;\r\n if (this.lookahead_pos < error_sync_size()) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean advance() {\n currentFrame ++;\n if(currentFrame >= frames.size()) {\n ...
[ "0.698559", "0.6653793", "0.66275424", "0.6536644", "0.6525784", "0.63954216", "0.63934946", "0.63631153", "0.6314199", "0.631386", "0.62869096", "0.62745565", "0.626655", "0.62503755", "0.62456095", "0.6235445", "0.62240136", "0.61423534", "0.61311", "0.6116653", "0.6086259"...
0.0
-1
Set the document number and the trip id on our travel advance
@Override public void prepareForSave(KualiDocumentEvent event) { super.prepareForSave(event); if (!(this instanceof TravelAuthorizationCloseDocument)) { if (!ObjectUtils.isNull(getTravelAdvance())) { getTravelAdvance().setTravelDocumentIdentifier(getTravelDocumentIdentifier()); final String checkStubPrefix = getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_CHECK_TEXT_PREFIX); getAdvanceTravelPayment().setCheckStubText(checkStubPrefix+" "+getDocumentHeader().getDocumentDescription()); getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate()); getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber()); // this should already be set but no harm in resetting... updatePayeeTypeForAuthorization(); } } if(maskTravelDocumentIdentifierAndOrganizationDocNumber()) { this.getDocumentHeader().setOrganizationDocumentNumber(null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTrip(Integer trip) {\n this.trip = trip;\n }", "public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "p...
[ "0.6485967", "0.6263623", "0.62263614", "0.62263614", "0.62263614", "0.6192282", "0.5992978", "0.5992978", "0.59656596", "0.57368606", "0.5721305", "0.56461245", "0.56440294", "0.5635038", "0.5577796", "0.5505331", "0.54460824", "0.5426725", "0.541746", "0.5365157", "0.535680...
0.0
-1
For reimbursable documents, sets the proper payee type code and profile id after a profile lookup
public void updatePayeeTypeForAuthorization() { if (!ObjectUtils.isNull(getTraveler()) && !ObjectUtils.isNull(getAdvanceTravelPayment())) { if (getTravelerService().isEmployee(getTraveler())){ getAdvanceTravelPayment().setPayeeTypeCode(KFSConstants.PaymentPayeeTypes.EMPLOYEE); }else{ getAdvanceTravelPayment().setPayeeTypeCode(KFSConstants.PaymentPayeeTypes.CUSTOMER); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "public void setProfileId(Integer profileId) {\n _profileId = profileId;\n }", "public void setProfile(Profile profile) {\n\...
[ "0.6146448", "0.60940945", "0.59393144", "0.5804389", "0.5754655", "0.56929517", "0.56704533", "0.5626681", "0.56081027", "0.5568012", "0.5547834", "0.55247664", "0.5521069", "0.5497587", "0.54265934", "0.5425154", "0.5424834", "0.5415253", "0.53755873", "0.5355247", "0.53433...
0.5293976
29
Returns the WireTransfer associated with this travel authorization
@Override public PaymentSourceWireTransfer getWireTransfer() { return wireTransfer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTransferId() {\n return transferId;\n }", "public Long getTransferId() {\n return transferId;\n }", "public SepaDauerauftrag getTransfer() throws RemoteException\n\t{\n if (transfer != null)\n return transfer;\n\n Object o = getCurrentObject();\n if (o != null && (o ins...
[ "0.5995441", "0.5969192", "0.5572317", "0.5525961", "0.5323677", "0.52821594", "0.52372354", "0.51326334", "0.5131404", "0.5106952", "0.510558", "0.5074485", "0.50738", "0.50441533", "0.5031525", "0.50279117", "0.5023422", "0.5010667", "0.49877566", "0.49824804", "0.49579254"...
0.64816225
0
Sets the wire transfer for this travel authorization
public void setWireTransfer(PaymentSourceWireTransfer wireTransfer) { this.wireTransfer = wireTransfer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }", "public void setDriven( Wire w ) {\n\t\tErrors.warn( \"Gate output \" + name + \" cannot drive anything\" );\n\t}", "public void setTravel(Travel travel) {\n this.travel = travel;\n }", "@Ov...
[ "0.5650382", "0.554578", "0.54700744", "0.5433626", "0.54202265", "0.5337667", "0.5265814", "0.5250276", "0.5223687", "0.5194311", "0.5161818", "0.5158836", "0.5120126", "0.5088214", "0.5070107", "0.50645584", "0.506311", "0.5061587", "0.50264144", "0.5019524", "0.50064564", ...
0.70244473
0
Returns the cancel date from the travel payment
public Date getCancelDate() { return this.getAdvanceTravelPayment().getCancelDate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPreviousCloseDate();", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}", "public static URL getUrlForRequestSubCancel()\r\n {\r\n String rop = P.isCountryNop() ? \"rop...
[ "0.6001734", "0.5829488", "0.57611984", "0.5734565", "0.5631739", "0.56024677", "0.55532324", "0.5542732", "0.5542732", "0.54984546", "0.5490683", "0.5431083", "0.54030466", "0.53920543", "0.53248453", "0.5316351", "0.5302952", "0.52657574", "0.52391547", "0.52305037", "0.520...
0.8246983
0
Returns the attachment code from the travel payment
@Override public boolean hasAttachment() { return this.getAdvanceTravelPayment().isAttachmentCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPaymentInformation();", "@Override\n public String getPaymentMethodCode() {\n return this.getAdvanceTravelPayment().getPaymentMethodCode();\n }", "java.lang.String getTransitAirportCode();", "com.google.protobuf.ByteString getSerializedPaymentDetails();", "int getNumberPaymentReceipt...
[ "0.578399", "0.56630886", "0.5575188", "0.5564592", "0.53879404", "0.5384523", "0.5374525", "0.5360549", "0.5360549", "0.5360549", "0.5329519", "0.53114706", "0.5308097", "0.5297328", "0.5291336", "0.52657026", "0.5260839", "0.5253133", "0.5228063", "0.522668", "0.52266574", ...
0.5448161
4
Returns the payment method code associated with the travel payment for the advance
@Override public String getPaymentMethodCode() { return this.getAdvanceTravelPayment().getPaymentMethodCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();", "PaymentMethod getPaymentMethod();", "public AppCDef.PaymentMethod getPaymentMethodCodeAsPaymentMethod() {\n return AppCDef.PaymentMethod.codeOf(getPaymentMethodCode());\n }", "public String getPayMethod() {\n return payMethod...
[ "0.69820017", "0.6917606", "0.6749295", "0.6660229", "0.643443", "0.63866156", "0.6381597", "0.6142111", "0.60613865", "0.5822643", "0.581717", "0.58100754", "0.5806408", "0.57988346", "0.5751236", "0.57335496", "0.56748474", "0.56748474", "0.56699425", "0.5662618", "0.566123...
0.8067001
0
Returns the campus code of the initiator of this document
@Override public String getCampusCode() { final Person initiator = getPersonService().getPerson(getDocumentHeader().getWorkflowDocument().getInitiatorPrincipalId()); return initiator.getCampusCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCampusCode() {\n return campusCode;\n }", "public char getSponsorFirstChar() {\r\n\t\treturn sponsorFirstChar;\r\n\t}", "public String getInitiator()\n {\n return m_initiator;\n }", "public java.lang.Object getInitiatingContactID() {\n return initiatingContactID...
[ "0.5818643", "0.5795109", "0.5749114", "0.5539751", "0.55007356", "0.5429605", "0.5423287", "0.5415184", "0.5396726", "0.5374665", "0.53249073", "0.5305026", "0.5304914", "0.52811456", "0.519015", "0.51890707", "0.51612365", "0.51503235", "0.51373863", "0.51357025", "0.513317...
0.7503407
0
Determines whether the parameters which fill in the advance accounting line are set
public boolean allParametersForAdvanceAccountingLinesSet() { // not checking the object code because that will need to be set no matter what - every advance accounting line will use that return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) && !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean hasRentabilityValues() {\n return (pensionParameters.getRentRisk() != null &&\n pensionParameters.getRentCons() != null &&\n pensionParameters.getRentMod() != null);\n }", "public boolean checkAcross() {\r\n\t\tif (p1[0] + p1[1] + p1[2] == 15...
[ "0.63473964", "0.6030495", "0.5790882", "0.5789135", "0.57448167", "0.5739097", "0.5727031", "0.57097656", "0.5684239", "0.5674283", "0.5663487", "0.56599927", "0.5657268", "0.5630742", "0.55927575", "0.5553208", "0.55477935", "0.5521028", "0.5501968", "0.5488617", "0.5477040...
0.7885374
0
Propagates the amount from the advance to the travel payment and to the accounting line if the accounting line is read only
public void propagateAdvanceInformationIfNeeded() { if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) { if (!ObjectUtils.isNull(getAdvanceTravelPayment())) { getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested()); } final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount(); if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) { getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested()); } if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) { // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines if (maxAmountLine != null) { getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode()); getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber()); getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber()); } } // let's also propogate the due date if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) { getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumen...
[ "0.6242765", "0.6189203", "0.6154513", "0.60776395", "0.6032234", "0.5987538", "0.5962131", "0.5950135", "0.5919579", "0.5880376", "0.5876894", "0.584909", "0.58353055", "0.5792414", "0.57877445", "0.578118", "0.57678396", "0.575724", "0.5701087", "0.569177", "0.5679034", "...
0.72583634
0
Generate events for advance accounting lines
@Override public List generateSaveEvents() { List events = super.generateSaveEvents(); if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().isAtLeastPartiallyFilledIn() && !(getDocumentHeader().getWorkflowDocument().isInitiated() || getDocumentHeader().getWorkflowDocument().isSaved())) { // only check advance accounting lines if the travel advance is filled in final List<TemSourceAccountingLine> persistedAdvanceAccountingLines = getPersistedAdvanceAccountingLinesForComparison(); final List<TemSourceAccountingLine> currentAdvanceAccountingLines = getAdvanceAccountingLinesForComparison(); final List advanceEvents = generateEventsForAdvanceAccountingLines(persistedAdvanceAccountingLines, currentAdvanceAccountingLines); events.addAll(advanceEvents); } return events; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {\n List events = new ArrayList();\n Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);\n ...
[ "0.6238797", "0.57323724", "0.5667798", "0.5633643", "0.55159765", "0.5510531", "0.55047774", "0.5340418", "0.52951086", "0.52852196", "0.5251863", "0.5219833", "0.52052355", "0.5197484", "0.51647085", "0.51521677", "0.51503086", "0.51355493", "0.51044595", "0.5094464", "0.50...
0.65614873
0
Generates a List of events for advance accounting lines. UpdateAccountingLine events will never be generated only ReviewAccountingLine, AddAccountingLine, and DeleteAccountingLine events; this way, we never check accessibility for advance accounting lines which is something that isn't really needed
protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) { List events = new ArrayList(); Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines); final String errorPathPrefix = KFSConstants.DOCUMENT_PROPERTY_NAME + "." + TemPropertyConstants.ADVANCE_ACCOUNTING_LINES; final String groupErrorPathPrefix = errorPathPrefix + KFSConstants.ACCOUNTING_LINE_GROUP_SUFFIX; // (iterate through current lines to detect additions and updates, removing affected lines from persistedLineMap as we go // so deletions can be detected by looking at whatever remains in persistedLineMap) int index = 0; for (TemSourceAccountingLine currentLine : currentAdvanceAccountingLines) { String indexedErrorPathPrefix = errorPathPrefix + "[" + index + "]"; Integer key = currentLine.getSequenceNumber(); AccountingLine persistedLine = (AccountingLine) persistedLineMap.get(key); if (persistedLine != null) { ReviewAccountingLineEvent reviewEvent = new ReviewAccountingLineEvent(indexedErrorPathPrefix, this, currentLine); events.add(reviewEvent); persistedLineMap.remove(key); } else { // it must be a new addition AddAccountingLineEvent addEvent = new AddAccountingLineEvent(indexedErrorPathPrefix, this, currentLine); events.add(addEvent); } } // detect deletions List<TemSourceAccountingLine> remainingPersistedLines = new ArrayList<TemSourceAccountingLine>(); remainingPersistedLines.addAll(persistedLineMap.values()); for (TemSourceAccountingLine persistedLine : remainingPersistedLines) { DeleteAccountingLineEvent deleteEvent = new DeleteAccountingLineEvent(groupErrorPathPrefix, this, persistedLine, true); events.add(deleteEvent); } return events; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List generateSaveEvents() {\n List events = super.generateSaveEvents();\n\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().isAtLeastPartiallyFilledIn() && !(getDocumentHeader().getWorkflowDocument().isInitiated() || getDocumentHeader().getWorkflowDocument().is...
[ "0.6695982", "0.6467981", "0.6340381", "0.5905387", "0.5765996", "0.55381894", "0.5536641", "0.54553413", "0.5405989", "0.5260336", "0.5254903", "0.5192552", "0.5063615", "0.5055233", "0.50185937", "0.48194987", "0.47514805", "0.4743744", "0.46802664", "0.46767944", "0.467242...
0.7478397
0
This method gets the Persisted advance Accounting Lines that will be used in comparisons
protected List getPersistedAdvanceAccountingLinesForComparison() { return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {\n List events = new ArrayList();\n Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);\n ...
[ "0.55634415", "0.54753625", "0.545475", "0.5449407", "0.53983635", "0.52946025", "0.5253756", "0.52167374", "0.5178857", "0.5162511", "0.51537704", "0.51148957", "0.5114228", "0.5100785", "0.5087117", "0.50793904", "0.5051421", "0.5027728", "0.50221616", "0.50098336", "0.4989...
0.7601001
0
TA's will route by profile account if they are blanket travel or if the trip type does not generate an enumbrance
@Override protected boolean shouldRouteByProfileAccount() { return getBlanketTravel() || !getTripType().isGenerateEncumbrance() || hasOnlyPrepaidExpenses(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getRoute(Point origin, Point destination){\n NavigationRoute.builder(this)\n .profile(DirectionsCriteria.PROFILE_WALKING) //Change Here for car navigation\n .accessToken(Mapbox.getAccessToken())\n .origin(origin)\n .destination(destina...
[ "0.5778484", "0.56321913", "0.5609763", "0.55974823", "0.55733126", "0.541609", "0.53536963", "0.53122616", "0.5293905", "0.5276773", "0.5250711", "0.5163916", "0.514144", "0.51276493", "0.512353", "0.50824547", "0.50658107", "0.5065506", "0.5038438", "0.5029451", "0.5027334"...
0.7359832
0
Returns the initiation date of the TA
@Override public Date getEffectiveDateForMileageRate(ActualExpense expense) { if (getTripBegin() == null) { return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis()); } return new java.sql.Date(getTripBegin().getTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n r...
[ "0.7024682", "0.66976184", "0.6425951", "0.6283977", "0.61900055", "0.6129337", "0.60811037", "0.60623914", "0.6004461", "0.6000034", "0.599747", "0.5992051", "0.5962503", "0.5942058", "0.59214574", "0.59214574", "0.59214574", "0.5882331", "0.58773404", "0.5874607", "0.587298...
0.0
-1
Returns the initiation date of the TA
@Override public Date getEffectiveDateForMileageRate(PerDiemExpense expense) { if (getTripBegin() == null) { return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis()); } return new java.sql.Date(getTripBegin().getTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n r...
[ "0.70246005", "0.6696484", "0.6425127", "0.62837243", "0.6190139", "0.6130035", "0.6081716", "0.6061651", "0.60026306", "0.6002619", "0.5998153", "0.5993253", "0.59610325", "0.59427196", "0.5923168", "0.5923168", "0.5923168", "0.58808744", "0.5876311", "0.58745193", "0.587302...
0.0
-1
Returns the initiation date of the TA
@Override public Date getEffectiveDateForPerDiem(PerDiemExpense expense) { if (getTripBegin() == null) { return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis()); } return new java.sql.Date(getTripBegin().getTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n r...
[ "0.7022776", "0.66953045", "0.6423966", "0.6281863", "0.6188251", "0.6128163", "0.6080153", "0.6060747", "0.6002195", "0.599908", "0.59965676", "0.59915656", "0.5962883", "0.5940811", "0.5919881", "0.5919881", "0.5919881", "0.58815885", "0.58762634", "0.58733916", "0.5872673"...
0.0
-1
Returns the initiation date of the TA
@Override public Date getEffectiveDateForPerDiem(java.sql.Timestamp expenseDate) { if (getTripBegin() == null) { return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis()); } return new java.sql.Date(getTripBegin().getTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n r...
[ "0.7022776", "0.66953045", "0.6423966", "0.6281863", "0.6188251", "0.6128163", "0.6080153", "0.6060747", "0.6002195", "0.599908", "0.59965676", "0.59915656", "0.5962883", "0.5940811", "0.5919881", "0.5919881", "0.5919881", "0.58815885", "0.58762634", "0.58733916", "0.5872673"...
0.0
-1
The note target for the big travel docs are the progenitor of the trip
@Override public PersistableBusinessObject getNoteTarget() { if (StringUtils.isBlank(getTravelDocumentIdentifier()) || isTripProgenitor()) { // I may not even have a travel doc identifier yet, or else, I call myself the progentitor! I must be the progenitor! return getDocumentHeader(); } final TravelDocument rootDocument = getTravelDocumentService().getRootTravelDocumentWithoutWorkflowDocument(getTravelDocumentIdentifier()); if (rootDocument == null) { return getDocumentHeader(); // I couldn't find a root, so once again, chances are that I am the progenitor, even though I don't believe it entirely myself } return rootDocument.getDocumentHeader(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDocumentNote();", "private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}", "protected String usaNote() {\n String testo = VUOTA;\n String tag = \"Note\";\n String ref = \"<references/>\";\n\n testo +...
[ "0.54723215", "0.54686534", "0.5369139", "0.51656526", "0.51377386", "0.50502867", "0.5041249", "0.5004424", "0.5004259", "0.4958785", "0.48586383", "0.4855084", "0.4850457", "0.4848502", "0.48416504", "0.4823668", "0.4823668", "0.48225048", "0.4809308", "0.4809308", "0.47848...
0.6625741
0
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
int countByExample(ReviewLevelSettingExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68411285", "0.62139314", "0.6177488", "0.61231226", "0.5251172", "0.5207476", "0.52065986", "0.5131146", "0.5103007", "0.50536233", "0.50087017", "0.49993244", "0.4989223", "0.4979635", "0.49489287", "0.49485302", "0.4942931", "0.49369144", "0.49369144", "0.49369144", "0.4...
0.45795137
81
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
int deleteByExample(ReviewLevelSettingExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68405455", "0.6214392", "0.6177646", "0.6122873", "0.52501476", "0.5209048", "0.52076334", "0.5129414", "0.5100407", "0.5052653", "0.50065285", "0.4997834", "0.4987267", "0.49777448", "0.49470526", "0.4946789", "0.4943164", "0.49352738", "0.49352738", "0.49352738", "0.4935...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
@Delete({ "delete from `review_level_setting`", "where `id` = #{id,jdbcType=VARCHAR}" }) int deleteByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68405455", "0.6214392", "0.6177646", "0.6122873", "0.52501476", "0.5209048", "0.52076334", "0.5129414", "0.5100407", "0.5052653", "0.50065285", "0.4997834", "0.4987267", "0.49777448", "0.49470526", "0.4946789", "0.49352738", "0.49352738", "0.49352738", "0.49352738", "0.493...
0.4943164
16
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
@Insert({ "insert into `review_level_setting` (`id`, `ops_op`, ", "`ops_op_label`, `ops_op_level`, ", "`created_by`, `created_at`, ", "`updated_by`, `updated_at`, ", "`del_flg`)", "values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, ", "#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, ", "#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, ", "#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, ", "#{delFlg,jdbcType=VARCHAR})" }) int insert(ReviewLevelSetting record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.6840986", "0.61784756", "0.6122362", "0.52511483", "0.52083963", "0.52072066", "0.5130003", "0.5100895", "0.50540996", "0.5007428", "0.49974728", "0.4987594", "0.49781394", "0.4947288", "0.49468568", "0.49425763", "0.49357766", "0.49357766", "0.49357766", "0.49357766", "0....
0.62142193
1
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
int insertSelective(ReviewLevelSetting record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68411285", "0.62139314", "0.6177488", "0.61231226", "0.5251172", "0.52065986", "0.5131146", "0.5103007", "0.50536233", "0.50087017", "0.49993244", "0.4989223", "0.4979635", "0.49489287", "0.49485302", "0.4942931", "0.49369144", "0.49369144", "0.49369144", "0.49369144", "0....
0.5207476
5
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68405455", "0.6214392", "0.6122873", "0.52501476", "0.5209048", "0.52076334", "0.5129414", "0.5100407", "0.5052653", "0.50065285", "0.4997834", "0.4987267", "0.49777448", "0.49470526", "0.4946789", "0.4943164", "0.49352738", "0.49352738", "0.49352738", "0.49352738", "0.493...
0.6177646
2
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
@Select({ "select", "`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, ", "`updated_by`, `updated_at`, `del_flg`", "from `review_level_setting`", "where `id` = #{id,jdbcType=VARCHAR}" }) @ResultMap("BaseResultMap") ReviewLevelSetting selectByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}...
[ "0.6214392", "0.6177646", "0.6122873", "0.52501476", "0.5209048", "0.52076334", "0.5129414", "0.5100407", "0.5052653", "0.50065285", "0.4997834", "0.4987267", "0.49777448", "0.49470526", "0.4946789", "0.4943164", "0.49352738", "0.49352738", "0.49352738", "0.49352738", "0.4935...
0.68405455
0
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
int updateByExampleSelective(@Param("record") ReviewLevelSetting record, @Param("example") ReviewLevelSettingExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.6840986", "0.62142193", "0.61784756", "0.6122362", "0.52511483", "0.52083963", "0.52072066", "0.5130003", "0.5100895", "0.50540996", "0.5007428", "0.49974728", "0.4987594", "0.49781394", "0.4947288", "0.49468568", "0.49425763", "0.49357766", "0.49357766", "0.49357766", "0....
0.47289175
47
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
int updateByExample(@Param("record") ReviewLevelSetting record, @Param("example") ReviewLevelSettingExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68411285", "0.62139314", "0.6177488", "0.61231226", "0.5251172", "0.5207476", "0.52065986", "0.5131146", "0.5103007", "0.50536233", "0.50087017", "0.49993244", "0.4989223", "0.4979635", "0.49489287", "0.49485302", "0.4942931", "0.49369144", "0.49369144", "0.49369144", "0.4...
0.48049483
34
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
int updateByPrimaryKeySelective(ReviewLevelSetting record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68405455", "0.6214392", "0.6177646", "0.6122873", "0.52501476", "0.5209048", "0.5129414", "0.5100407", "0.5052653", "0.50065285", "0.4997834", "0.4987267", "0.49777448", "0.49470526", "0.4946789", "0.4943164", "0.49352738", "0.49352738", "0.49352738", "0.49352738", "0.4935...
0.52076334
6
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting
@Update({ "update `review_level_setting`", "set `ops_op` = #{opsOp,jdbcType=VARCHAR},", "`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},", "`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},", "`created_by` = #{createdBy,jdbcType=VARCHAR},", "`created_at` = #{createdAt,jdbcType=TIMESTAMP},", "`updated_by` = #{updatedBy,jdbcType=VARCHAR},", "`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},", "`del_flg` = #{delFlg,jdbcType=VARCHAR}", "where `id` = #{id,jdbcType=VARCHAR}" }) int updateByPrimaryKey(ReviewLevelSetting record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResult...
[ "0.68405455", "0.6214392", "0.6177646", "0.52501476", "0.5209048", "0.52076334", "0.5129414", "0.5100407", "0.5052653", "0.50065285", "0.4997834", "0.4987267", "0.49777448", "0.49470526", "0.4946789", "0.4943164", "0.49352738", "0.49352738", "0.49352738", "0.49352738", "0.493...
0.6122873
3
Give it perfect input and see if it computes the expected values
@Test void perfect() { standardScene(); simulateScene(0); var alg = new DistanceMetricTripleReprojection23(); var model = new MetricCameraTriple(); model.view1.setTo(cameraA); model.view2.setTo(cameraB); model.view3.setTo(cameraC); model.view_1_to_2.setTo(truthView_1_to_i(1)); model.view_1_to_3.setTo(truthView_1_to_i(2)); alg.setModel(model); for (AssociatedTriple a : observations3) { assertEquals(0.0, alg.distance(a), UtilEjml.TEST_F64); } var set = observations3.subList(4, 11); var distances = new double[set.size()]; alg.distances(set, distances); for (int i = 0; i < distances.length; i++) { assertEquals(0.0, distances[i], UtilEjml.TEST_F64); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test() {\n Assert.assertEquals(0.83648556F, Problem232.solve(/* change signature to provide required inputs */));\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int no_cases = scanner.nextInt();\n for (int i = 0;...
[ "0.680083", "0.64299935", "0.6403282", "0.6402218", "0.64006335", "0.6331664", "0.63313216", "0.6322365", "0.6308928", "0.6307317", "0.6279225", "0.6255244", "0.6253739", "0.62003654", "0.61811376", "0.6088167", "0.60606915", "0.6058805", "0.60530895", "0.60425633", "0.603902...
0.0
-1
Checks to see if distance() and distances() return the same value and the the error is larger than 0
@Test void noisy() { standardScene(); simulateScene(0); var alg = new DistanceMetricTripleReprojection23(); var model = new MetricCameraTriple(); model.view1.setTo(cameraA); model.view2.setTo(cameraB); model.view3.setTo(cameraC); model.view_1_to_2.setTo(truthView_1_to_i(1)); model.view_1_to_3.setTo(truthView_1_to_i(2)); model.view3.fx += 40; // this will mess things up a bit alg.setModel(model); var set = observations3.subList(0, 20); var distances = new double[set.size()]; alg.distances(set, distances); for (int i = 0; i < distances.length; i++) { assertTrue(distances[i] != 0.0); assertEquals(distances[i], alg.distance(set.get(i)), UtilEjml.TEST_F64); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isDistanceOK(double[] diff) {\n\t\tfor (double d : diff) {\n\t\t\tif (Math.abs(d) > MAX_PIXEL_DISTANCE) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean isFinished() {\n double[] positions = drivetrain.getPositions();\n\n return Math.abs(...
[ "0.6451864", "0.6392978", "0.6354002", "0.6329067", "0.6319817", "0.623446", "0.61366063", "0.6118318", "0.60687345", "0.5979597", "0.5876661", "0.5861186", "0.5847188", "0.5828991", "0.5800161", "0.57967883", "0.5793623", "0.5785841", "0.57838094", "0.575225", "0.5709465", ...
0.0
-1
split this resource in two will transfer as much as possible to the new object ( minimum between amount and this.amount )
public Resource split( int amount ) { Resource r = pool.obtain(); this.transter(r, amount); return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}", "public void transter( Resource r, int amount )\n\t{\n\t\tif( amount<0 )\n\t\t\tthrow new IllegalArgumentException(\"cannot transfer negative amount\");\n\t\t\n\t\tif( r.type != this.type )\n\t\t\tthrow new IllegalArgumentException(\"two resourc...
[ "0.6373766", "0.60612434", "0.54738814", "0.52505904", "0.5216801", "0.5213341", "0.5210743", "0.5203942", "0.50810283", "0.5078856", "0.5036304", "0.502175", "0.4998687", "0.498159", "0.49779257", "0.49772894", "0.4977165", "0.49771225", "0.49455088", "0.49442324", "0.494311...
0.717197
0
transfer amount of this resource to Resource r this and r must be of the same type. will transfer as much as possible ( minimum between amount and this.amount )
public void transter( Resource r, int amount ) { if( amount<0 ) throw new IllegalArgumentException("cannot transfer negative amount"); if( r.type != this.type ) throw new IllegalArgumentException("two resources must be of the same type to transfer"); if( this.amount < amount ) amount = this.amount; r.amount = amount; this.amount -= amount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void increaseDomesticTradeResourceAmount(ResourceType resource) {\n\t\t\r\n\t}", "@Transactional\n public String transferMoney(Integer destCardId, double amount, HttpServletRequest r) {\n Card toC...
[ "0.6296365", "0.6245939", "0.6195216", "0.6179543", "0.6157056", "0.6136403", "0.6085878", "0.6085128", "0.5966026", "0.59376746", "0.5918161", "0.5904995", "0.584037", "0.582138", "0.5800361", "0.57773596", "0.5774817", "0.5770859", "0.57568264", "0.57482755", "0.5726276", ...
0.80302364
0
merge r with this. r will be recycled.
public void merge( Resource r ) { r.transter(this, r.amount); r.recycle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node merge(Node r) {\r\n if (r.op() == Empty) return r;\r\n assert(r.op() == List);\r\n if (r.left().op() == Rule) { merge(r.right()); return r; }\r\n Node n = r.left();\r\n assert(n.op() == List);\r\n r.left(n.left());\r\n if (n.right().op() == Empty) retur...
[ "0.60706407", "0.5663269", "0.5644627", "0.56343704", "0.5558426", "0.54842097", "0.5358995", "0.5335529", "0.53000313", "0.52872753", "0.5263885", "0.5237371", "0.52268976", "0.5128656", "0.51004875", "0.50773287", "0.50449467", "0.5036711", "0.5013807", "0.5004277", "0.4991...
0.7185297
0
this was removed from API by precaution
public long increaseExitDelay(long value) { logger.warn("ShutdownService : increaseExitDelay : " + value); return _delay.addAndGet(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "OptimizeResponse() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a(...
[ "0.58745974", "0.58001405", "0.57952356", "0.5756292", "0.5694681", "0.5694681", "0.5694681", "0.5694681", "0.5694681", "0.5694681", "0.5694681", "0.5635445", "0.5610516", "0.55918115", "0.5569258", "0.55600244", "0.55468047", "0.5531138", "0.5531138", "0.5508927", "0.5504423...
0.0
-1
TODO Autogenerated method stub
@RequiresApi(api = Build.VERSION_CODES.O) @Override public void onCreate() { super.onCreate(); createVirtualEnvironment(); createNotificationChannel(); }
{ "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